From 5d08223cbc546b4ff8337967e3dfe893840e3b8f Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 30 Dec 2024 19:31:56 +1000 Subject: [PATCH 1/4] fix: Fix stargate fee display text and handle api error --- .release/.changeset/giant-rings-warn.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .release/.changeset/giant-rings-warn.md diff --git a/.release/.changeset/giant-rings-warn.md b/.release/.changeset/giant-rings-warn.md new file mode 100644 index 00000000..cd0e45b9 --- /dev/null +++ b/.release/.changeset/giant-rings-warn.md @@ -0,0 +1,5 @@ +--- +"@bnb-chain/canonical-bridge-widget": patch +--- + +Fix stargate fee display and handle api error From be8248ca7d6736345a128c998fb2a95d6b907e8f Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 30 Dec 2024 22:18:19 +1000 Subject: [PATCH 2/4] chore: Remove unused files --- ....timestamp-1732519098773-fb36ae85ee687.mjs | 44 ------------------- ....timestamp-1734950241948-d28c013da946b.mjs | 44 ------------------- 2 files changed, 88 deletions(-) delete mode 100644 packages/canonical-bridge-sdk/vite.config.ts.timestamp-1732519098773-fb36ae85ee687.mjs delete mode 100644 packages/canonical-bridge-sdk/vite.config.ts.timestamp-1734950241948-d28c013da946b.mjs diff --git a/packages/canonical-bridge-sdk/vite.config.ts.timestamp-1732519098773-fb36ae85ee687.mjs b/packages/canonical-bridge-sdk/vite.config.ts.timestamp-1732519098773-fb36ae85ee687.mjs deleted file mode 100644 index 914888b9..00000000 --- a/packages/canonical-bridge-sdk/vite.config.ts.timestamp-1732519098773-fb36ae85ee687.mjs +++ /dev/null @@ -1,44 +0,0 @@ -// vite.config.ts -import { defineConfig } from "file:///Users/liwen/Documents/bnb-chain/canonical-bridge/common/temp/node_modules/.pnpm/vite@4.5.5_@types+node@22.7.5_terser@5.36.0/node_modules/vite/dist/node/index.js"; -import react from "file:///Users/liwen/Documents/bnb-chain/canonical-bridge/common/temp/node_modules/.pnpm/@vitejs+plugin-react@4.3.3_vite@4.5.5_@types+node@22.7.5_terser@5.36.0_/node_modules/@vitejs/plugin-react/dist/index.mjs"; -import dts from "file:///Users/liwen/Documents/bnb-chain/canonical-bridge/common/temp/node_modules/.pnpm/vite-plugin-dts@3.9.1_@types+node@22.7.5_rollup@3.29.5_typescript@5.5.4_vite@4.5.5_@types+node@22.7.5_terser@5.36.0_/node_modules/vite-plugin-dts/dist/index.mjs"; -import peerDepsExternal from "file:///Users/liwen/Documents/bnb-chain/canonical-bridge/common/temp/node_modules/.pnpm/rollup-plugin-peer-deps-external@2.2.4_rollup@3.29.5/node_modules/rollup-plugin-peer-deps-external/dist/rollup-plugin-peer-deps-external.js"; -import path from "path"; -var __vite_injected_original_dirname = "/Users/liwen/Documents/bnb-chain/canonical-bridge/packages/canonical-bridge-sdk"; -var vite_config_default = defineConfig({ - plugins: [ - react(), - dts({ - include: "src" - }) - ], - resolve: { - alias: { - "@": path.resolve(__vite_injected_original_dirname, "src") - } - }, - build: { - target: "esnext", - minify: false, - lib: { - formats: ["es"], - entry: { - index: "src/index.ts" - } - }, - rollupOptions: { - plugins: [ - peerDepsExternal({ - includeDependencies: true - }) - ], - output: { - chunkFileNames: "common.js" - } - } - } -}); -export { - vite_config_default as default -}; -//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvVXNlcnMvbGl3ZW4vRG9jdW1lbnRzL2JuYi1jaGFpbi9jYW5vbmljYWwtYnJpZGdlL3BhY2thZ2VzL2Nhbm9uaWNhbC1icmlkZ2Utc2RrXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCIvVXNlcnMvbGl3ZW4vRG9jdW1lbnRzL2JuYi1jaGFpbi9jYW5vbmljYWwtYnJpZGdlL3BhY2thZ2VzL2Nhbm9u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UFDRixDQUFDOyIsCiAgIm5hbWVzIjogW10KfQo= diff --git a/packages/canonical-bridge-sdk/vite.config.ts.timestamp-1734950241948-d28c013da946b.mjs b/packages/canonical-bridge-sdk/vite.config.ts.timestamp-1734950241948-d28c013da946b.mjs deleted file mode 100644 index 914888b9..00000000 --- a/packages/canonical-bridge-sdk/vite.config.ts.timestamp-1734950241948-d28c013da946b.mjs +++ /dev/null @@ -1,44 +0,0 @@ -// vite.config.ts -import { defineConfig } from "file:///Users/liwen/Documents/bnb-chain/canonical-bridge/common/temp/node_modules/.pnpm/vite@4.5.5_@types+node@22.7.5_terser@5.36.0/node_modules/vite/dist/node/index.js"; -import react from "file:///Users/liwen/Documents/bnb-chain/canonical-bridge/common/temp/node_modules/.pnpm/@vitejs+plugin-react@4.3.3_vite@4.5.5_@types+node@22.7.5_terser@5.36.0_/node_modules/@vitejs/plugin-react/dist/index.mjs"; -import dts from "file:///Users/liwen/Documents/bnb-chain/canonical-bridge/common/temp/node_modules/.pnpm/vite-plugin-dts@3.9.1_@types+node@22.7.5_rollup@3.29.5_typescript@5.5.4_vite@4.5.5_@types+node@22.7.5_terser@5.36.0_/node_modules/vite-plugin-dts/dist/index.mjs"; -import peerDepsExternal from "file:///Users/liwen/Documents/bnb-chain/canonical-bridge/common/temp/node_modules/.pnpm/rollup-plugin-peer-deps-external@2.2.4_rollup@3.29.5/node_modules/rollup-plugin-peer-deps-external/dist/rollup-plugin-peer-deps-external.js"; -import path from "path"; -var __vite_injected_original_dirname = "/Users/liwen/Documents/bnb-chain/canonical-bridge/packages/canonical-bridge-sdk"; -var vite_config_default = defineConfig({ - plugins: [ - react(), - dts({ - include: "src" - }) - ], - resolve: { - alias: { - "@": path.resolve(__vite_injected_original_dirname, "src") - } - }, - build: { - target: "esnext", - minify: false, - lib: { - formats: ["es"], - entry: { - index: "src/index.ts" - } - }, - rollupOptions: { - plugins: [ - peerDepsExternal({ - includeDependencies: true - }) - ], - output: { - chunkFileNames: "common.js" - } - } - } -}); -export { - vite_config_default as default -}; -//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCIvVXNlcnMvbGl3ZW4vRG9jdW1lbnRzL2JuYi1jaGFpbi9jYW5vbmljYWwtYnJpZGdlL3BhY2thZ2VzL2Nhbm9uaWNhbC1icmlkZ2Utc2RrXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCIvVXNlcnMvbGl3ZW4vRG9jdW1lbnRzL2JuYi1jaGFpbi9jYW5vbmljYWwtYnJpZGdlL3BhY2thZ2VzL2Nhbm9uaWNhbC1icmlkZ2Utc2RrL3ZpdGUuY29uZmlnLnRzXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ltcG9ydF9tZXRhX3VybCA9IFwiZmlsZTovLy9Vc2Vycy9saXdlbi9Eb2N1bWVudHMvYm5iLWNoYWluL2Nhbm9uaWNhbC1icmlkZ2UvcGFja2FnZXMvY2Fub25pY2FsLWJyaWRnZS1zZGsvdml0ZS5jb25maWcudHNcIjtpbXBvcnQgeyBkZWZpbmVDb25maWcgfSBmcm9tICd2aXRlJztcbmltcG9ydCByZWFjdCBmcm9tICdAdml0ZWpzL3BsdWdpbi1yZWFjdCc7XG5pbXBvcnQgZHRzIGZyb20gJ3ZpdGUtcGx1Z2luLWR0cyc7XG5pbXBvcnQgcGVlckRlcHNFeHRlcm5hbCBmcm9tICdyb2xsdXAtcGx1Z2luLXBlZXItZGVwcy1leHRlcm5hbCc7XG5pbXBvcnQgcGF0aCBmcm9tICdwYXRoJztcblxuLy8gaHR0cHM6Ly92aXRlanMuZGV2L2NvbmZpZy9cbmV4cG9ydCBkZWZhdWx0IGRlZmluZUNvbmZpZyh7XG4gIHBsdWdpbn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EtBQUs7QUFBQSxJQUNwQztBQUFBLEVBQ0Y7QUFBQSxFQUNBLE9BQU87QUFBQSxJQUNMLFFBQVE7QUFBQSxJQUNSLFFBQVE7QUFBQSxJQUNSLEtBQUs7QUFBQSxNQUNILFNBQVMsQ0FBQyxJQUFJO0FBQUEsTUFDZCxPQUFPO0FBQUEsUUFDTCxPQUFPO0FBQUEsTUFDVDtBQUFBLElBQ0Y7QUFBQSxJQUNBLGVBQWU7QUFBQSxNQUNiLFNBQVM7QUFBQSxRQUNQLGlCQUFpQjtBQUFBLFVBQ2YscUJBQXFCO0FBQUEsUUFDdkIsQ0FBQztBQUFBLE1BQ0g7QUFBQSxNQUNBLFFBQVE7QUFBQSxRQUNOLGdCQUFnQjtBQUFBLE1BQ2xCO0FBQUEsSUFDRjtBQUFBLEVBQ0Y7QUFDRixDQUFDOyIsCiAgIm5hbWVzIjogW10KfQo= From c0fa2ece47e350d9a996435b0efdb17b2ae22c80 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 30 Dec 2024 12:36:22 +0000 Subject: [PATCH 3/4] chore: Update versions --- .release/.changeset/bright-impalas-sniff.md | 6 ------ .release/.changeset/dull-moose-deliver.md | 6 ------ .release/.changeset/giant-rings-warn.md | 5 ----- .release/.changeset/hungry-doors-lick.md | 6 ------ .release/.changeset/itchy-dots-enjoy.md | 6 ------ .release/.changeset/poor-kings-compete.md | 5 ----- .release/.changeset/pre.json | 16 ---------------- .release/.changeset/serious-cars-worry.md | 5 ----- packages/canonical-bridge-sdk/CHANGELOG.md | 9 +++++++++ packages/canonical-bridge-sdk/package.json | 2 +- packages/canonical-bridge-widget/CHANGELOG.md | 12 ++++++++++++ packages/canonical-bridge-widget/package.json | 2 +- 12 files changed, 23 insertions(+), 57 deletions(-) delete mode 100644 .release/.changeset/bright-impalas-sniff.md delete mode 100644 .release/.changeset/dull-moose-deliver.md delete mode 100644 .release/.changeset/giant-rings-warn.md delete mode 100644 .release/.changeset/hungry-doors-lick.md delete mode 100644 .release/.changeset/itchy-dots-enjoy.md delete mode 100644 .release/.changeset/poor-kings-compete.md delete mode 100644 .release/.changeset/pre.json delete mode 100644 .release/.changeset/serious-cars-worry.md diff --git a/.release/.changeset/bright-impalas-sniff.md b/.release/.changeset/bright-impalas-sniff.md deleted file mode 100644 index 11a379bb..00000000 --- a/.release/.changeset/bright-impalas-sniff.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@bnb-chain/canonical-bridge-widget": patch -"@bnb-chain/canonical-bridge-sdk": patch ---- - -Use stargate & meson api to fetch chain & token config diff --git a/.release/.changeset/dull-moose-deliver.md b/.release/.changeset/dull-moose-deliver.md deleted file mode 100644 index 7a08558c..00000000 --- a/.release/.changeset/dull-moose-deliver.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@bnb-chain/canonical-bridge-widget": patch -"@bnb-chain/canonical-bridge-sdk": patch ---- - -Remove duplicated tokens for stargate diff --git a/.release/.changeset/giant-rings-warn.md b/.release/.changeset/giant-rings-warn.md deleted file mode 100644 index cd0e45b9..00000000 --- a/.release/.changeset/giant-rings-warn.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@bnb-chain/canonical-bridge-widget": patch ---- - -Fix stargate fee display and handle api error diff --git a/.release/.changeset/hungry-doors-lick.md b/.release/.changeset/hungry-doors-lick.md deleted file mode 100644 index aa293e89..00000000 --- a/.release/.changeset/hungry-doors-lick.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@bnb-chain/canonical-bridge-widget": patch -"@bnb-chain/canonical-bridge-sdk": patch ---- - -Update token element's info diff --git a/.release/.changeset/itchy-dots-enjoy.md b/.release/.changeset/itchy-dots-enjoy.md deleted file mode 100644 index b39fd553..00000000 --- a/.release/.changeset/itchy-dots-enjoy.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@bnb-chain/canonical-bridge-widget": patch -"@bnb-chain/canonical-bridge-sdk": patch ---- - -Fix meson token display symbol issue diff --git a/.release/.changeset/poor-kings-compete.md b/.release/.changeset/poor-kings-compete.md deleted file mode 100644 index 5095b9dd..00000000 --- a/.release/.changeset/poor-kings-compete.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@bnb-chain/canonical-bridge-widget": patch ---- - -Fix tron does not display due to its id diff --git a/.release/.changeset/pre.json b/.release/.changeset/pre.json deleted file mode 100644 index ae3bf878..00000000 --- a/.release/.changeset/pre.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "mode": "pre", - "tag": "alpha", - "initialVersions": { - "@bnb-chain/canonical-bridge-sdk": "0.4.5", - "@bnb-chain/canonical-bridge-widget": "0.5.15" - }, - "changesets": [ - "bright-impalas-sniff", - "dull-moose-deliver", - "hungry-doors-lick", - "itchy-dots-enjoy", - "poor-kings-compete", - "serious-cars-worry" - ] -} diff --git a/.release/.changeset/serious-cars-worry.md b/.release/.changeset/serious-cars-worry.md deleted file mode 100644 index 910f2f9c..00000000 --- a/.release/.changeset/serious-cars-worry.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@bnb-chain/canonical-bridge-widget": patch ---- - -Add more token info to token element diff --git a/packages/canonical-bridge-sdk/CHANGELOG.md b/packages/canonical-bridge-sdk/CHANGELOG.md index 06ae4a88..32972b04 100644 --- a/packages/canonical-bridge-sdk/CHANGELOG.md +++ b/packages/canonical-bridge-sdk/CHANGELOG.md @@ -1,5 +1,14 @@ # @bnb-chain/canonical-bridge-sdk +## 0.4.6 + +### Patch Changes + +- Use stargate & meson api to fetch chain & token config +- 2538636: Remove duplicated tokens for stargate +- c4f3ee7: Update token element's info +- 7caf17e: Fix meson token display symbol issue + ## 0.4.6-alpha.3 ### Patch Changes diff --git a/packages/canonical-bridge-sdk/package.json b/packages/canonical-bridge-sdk/package.json index 7275b044..434eef71 100644 --- a/packages/canonical-bridge-sdk/package.json +++ b/packages/canonical-bridge-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@bnb-chain/canonical-bridge-sdk", - "version": "0.4.6-alpha.3", + "version": "0.4.6", "description": "canonical bridge sdk", "author": "bnb-chain", "private": false, diff --git a/packages/canonical-bridge-widget/CHANGELOG.md b/packages/canonical-bridge-widget/CHANGELOG.md index 69e9c0b7..a425fd23 100644 --- a/packages/canonical-bridge-widget/CHANGELOG.md +++ b/packages/canonical-bridge-widget/CHANGELOG.md @@ -1,5 +1,17 @@ # @bnb-chain/canonical-bridge-widget +## 0.5.16 + +### Patch Changes + +- Use stargate & meson api to fetch chain & token config +- 2538636: Remove duplicated tokens for stargate +- 5d08223: Fix stargate fee display and handle api error +- c4f3ee7: Update token element's info +- 7caf17e: Fix meson token display symbol issue +- e19a76c: Fix tron does not display due to its id +- b930ad4: Add more token info to token element + ## 0.5.16-alpha.5 ### Patch Changes diff --git a/packages/canonical-bridge-widget/package.json b/packages/canonical-bridge-widget/package.json index 8a7d7a57..78bb0e38 100644 --- a/packages/canonical-bridge-widget/package.json +++ b/packages/canonical-bridge-widget/package.json @@ -1,6 +1,6 @@ { "name": "@bnb-chain/canonical-bridge-widget", - "version": "0.5.16-alpha.5", + "version": "0.5.16", "description": "canonical bridge widget", "author": "bnb-chain", "private": false, From 956fcbf5b9a682557055c1aa36584dbc320ad524 Mon Sep 17 00:00:00 2001 From: chris Date: Fri, 3 Jan 2025 13:18:33 +1000 Subject: [PATCH 4/4] feat: Remove try catch --- .../src/shared/web3/web3.service.ts | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/apps/canonical-bridge-server/src/shared/web3/web3.service.ts b/apps/canonical-bridge-server/src/shared/web3/web3.service.ts index 3b7ee373..82cb83a4 100644 --- a/apps/canonical-bridge-server/src/shared/web3/web3.service.ts +++ b/apps/canonical-bridge-server/src/shared/web3/web3.service.ts @@ -60,41 +60,41 @@ export class Web3Service { } async getTransferConfigsForAll() { - try { - const { data } = await this.httpService.axiosRef.get( - `${CBRIDGE_ENDPOINT}/v2/getTransferConfigsForAll`, - ); - return data; - } catch (e) { - console.error(`Failed to retrieve cBridge data at ${new Date().getTime()}`, e.message); - } + // try { + const { data } = await this.httpService.axiosRef.get( + `${CBRIDGE_ENDPOINT}/v2/getTransferConfigsForAll`, + ); + return data; + // } catch (e) { + // console.error(`Failed to retrieve cBridge data at ${new Date().getTime()}`, e.message); + // } } async getDebridgeChains() { - try { - const { data } = await this.httpService.axiosRef.get<{ chains: IDebridgeChain[] }>( - `${DEBRIDGE_ENDPOINT}/supported-chains-info`, - ); + // try { + const { data } = await this.httpService.axiosRef.get<{ chains: IDebridgeChain[] }>( + `${DEBRIDGE_ENDPOINT}/supported-chains-info`, + ); - return data; - } catch (e) { - console.error(`Failed to retrieve DeBridge chain data at ${new Date().getTime()}`, e.message); - } + return data; + // } catch (e) { + // console.error(`Failed to retrieve DeBridge chain data at ${new Date().getTime()}`, e.message); + // } } async getDebridgeChainTokens(chainId: number) { - try { - const { data } = await this.httpService.axiosRef.get<{ - tokens: Record; - }>(`${DEBRIDGE_ENDPOINT}/token-list?chainId=${chainId}`); + // try { + const { data } = await this.httpService.axiosRef.get<{ + tokens: Record; + }>(`${DEBRIDGE_ENDPOINT}/token-list?chainId=${chainId}`); - return data; - } catch (e) { - console.error( - `Failed to retrieve DeBridge token data from ${chainId} at ${new Date().getTime()}`, - e.message, - ); - } + return data; + // } catch (e) { + // console.error( + // `Failed to retrieve DeBridge token data from ${chainId} at ${new Date().getTime()}`, + // e.message, + // ); + // } } async getStargateConfigs() {