Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into devnet
Browse files Browse the repository at this point in the history
  • Loading branch information
devinxl committed Aug 31, 2023
2 parents 99b6ac5 + 9544f79 commit 93bd99f
Show file tree
Hide file tree
Showing 285 changed files with 20,758 additions and 9,635 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,4 @@ After we switched to monorepo, we have to add `next` as dependency in `package.j
```shell
$ rush add -p next
```

4 changes: 2 additions & 2 deletions apps/dcellar-web-ui/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ NEXT_PUBLIC_GREENFIELD_CHAIN_ID=9000
NEXT_PUBLIC_BSC_RPC_URL=https://data-seed-prebsc-1-s1.binance.org:8545
NEXT_PUBLIC_BSC_CHAIN_ID=97

NEXT_PUBLIC_TOKEN_HUB_CONTRACT_ADDRESS=0x8f884C423CAd3cA9572431ec52e92877E2947E72
NEXT_PUBLIC_CROSS_CHAIN_CONTRACT_ADDRESS=0x3EccDf255D556800e34c71694eed207cE928eC92
NEXT_PUBLIC_TOKEN_HUB_CONTRACT_ADDRESS=0x3d493E826f55f87f9146e88f7C4E61e292e7F084
NEXT_PUBLIC_CROSS_CHAIN_CONTRACT_ADDRESS=0xB8C21c8Ece3F07Bb49A295A5c75cd26dd72c521f
NEXT_PUBLIC_GREENFIELD_CHAIN_EXPLORER_URL=https://greenfieldscan-qanet.fe.nodereal.cc
NEXT_PUBLIC_BSC_EXPLORER_URL=https://testnet.bscscan.com
NEXT_PUBLIC_SENTRY_DSN=https://[email protected]/4505232676093952
Expand Down
2 changes: 1 addition & 1 deletion apps/dcellar-web-ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ EXPOSE 3000

ENV NODE_ENV production

CMD [ "yarn", "start" ]
CMD [ "yarn", "start" ]
8 changes: 7 additions & 1 deletion apps/dcellar-web-ui/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,14 @@ const sentryWebpackPluginOptions = {
authToken: '9e42bc70fd9f45e7a3aaac568e0204a60e734f6ce56d4384af57bedf72e0fcc8',
};

/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
headers: async () => [
{
// cache public folder assets (default max-age: 0).
source: `${assetPrefix}/:public(fonts|images|wasm|zk-wasm)/:path*`,
source: `${assetPrefix}/:public(fonts|images|wasm|zk-crypto)/:path*`,
locale: false,
headers: [
{
Expand Down Expand Up @@ -81,6 +84,9 @@ const nextConfig = {
sentry: {
hideSourceMaps: true,
},
experimental: {
instrumentationHook: true,
},
};

module.exports = withSentryConfig(withBundleAnalyzer(nextConfig), sentryWebpackPluginOptions);
28 changes: 18 additions & 10 deletions apps/dcellar-web-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,38 +13,44 @@
"type-check": "tsc"
},
"dependencies": {
"apollo-node-client": "1.4.3",
"antd": "5.6.3",
"ahooks": "3.7.7",
"hash-wasm": "4.9.0",
"@babel/core": "^7.20.12",
"@bnb-chain/greenfield-chain-sdk": "0.2.2-alpha.9",
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.11",
"@bnb-chain/greenfield-js-sdk": "0.2.4-alpha.26",
"@bnb-chain/greenfield-cosmos-types": "0.4.0-alpha.22",
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@next/bundle-analyzer": "^13.1.6",
"@tanstack/react-query": "4.24.6",
"@tanstack/react-query-devtools": "4.24.6",
"@tanstack/react-table": "^8.7.9",
"@tanstack/react-virtual": "3.0.0-alpha.0",
"@totejs/icons": "^2.10.0",
"@totejs/uikit": "~2.44.5",
"@totejs/uikit": "~2.50.2",
"axios": "^1.3.2",
"axios-retry": "^3.4.0",
"bignumber.js": "^9.1.1",
"comlink": "^4.4.1",
"dayjs": "^1.11.7",
"eslint-config-next": "13.3.1",
"eslint-config-next": "13.3.4",
"ethers": "^5.7.2",
"lodash-es": "^4.17.21",
"long": "^5.2.1",
"next": "13.3.1",
"next": "13.3.4",
"query-string": "^8.1.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-hook-form": "^7.43.1",
"react-use": "^17.4.0",
"typescript": "5.0.4",
"wagmi": "^0.12.9",
"@sentry/nextjs": "~7.52.1"
"@sentry/nextjs": "~7.52.1",
"@reduxjs/toolkit": "^1.9.5",
"react-redux": "^8.1.1",
"next-redux-wrapper": "^8.1.0",
"redux-persist": "^6.0.0",
"@wagmi/core": "^0.10.13",
"fast-xml-parser": "~4.2.7"
},
"devDependencies": {
"@babel/plugin-syntax-flow": "^7.14.5",
Expand All @@ -63,7 +69,8 @@
"eslint": "8.39.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.1",
"prettier": "^2.8.4"
"prettier": "^2.8.4",
"tsc-files": "~1.1.4"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
Expand All @@ -72,7 +79,8 @@
],
"*.{css,less,md}": [
"prettier --write"
]
],
"*.ts?(x)": "tsc-files --noEmit"
},
"prettier": "@totejs/prettier-config",
"eslintConfig": {
Expand Down
58 changes: 58 additions & 0 deletions apps/dcellar-web-ui/public/images/accounts/disable-account.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 93bd99f

Please sign in to comment.