From 77582708a42da470e095ff15f018a112a788a257 Mon Sep 17 00:00:00 2001 From: PDTnhah Date: Fri, 10 Jan 2025 17:36:16 +0700 Subject: [PATCH 1/2] [Issue-3985] WebApp - Some update Chainlist for WebApp --- package.json | 2 +- packages/extension-base/package.json | 2 +- .../src/services/chain-service/constants.ts | 4 ++-- .../utils/new-utils/asset-asset-validate.ts | 2 +- packages/extension-koni-ui/package.json | 2 +- packages/extension-web-ui/package.json | 2 +- packages/webapp/package.json | 2 +- yarn.lock | 14 +++++++------- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index fc61522823..9b8a88ee9d 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "@polkadot/types-support": "^12.0.2", "@polkadot/util": "^12.6.2", "@polkadot/util-crypto": "^12.6.2", - "@subwallet/chain-list": "0.2.88", + "@subwallet/chain-list": "0.2.89-webapp", "@subwallet/keyring": "^0.1.7", "@subwallet/react-ui": "5.1.2-b79", "@subwallet/ui-keyring": "^0.1.7", diff --git a/packages/extension-base/package.json b/packages/extension-base/package.json index 81a654934e..80225615ce 100644 --- a/packages/extension-base/package.json +++ b/packages/extension-base/package.json @@ -55,7 +55,7 @@ "@reduxjs/toolkit": "^1.9.1", "@sora-substrate/type-definitions": "^1.17.7", "@substrate/connect": "^0.8.9", - "@subwallet/chain-list": "0.2.88", + "@subwallet/chain-list": "0.2.89-webapp", "@subwallet/extension-base": "^1.2.32-0", "@subwallet/extension-chains": "^1.2.32-0", "@subwallet/extension-dapp": "^1.2.32-0", diff --git a/packages/extension-base/src/services/chain-service/constants.ts b/packages/extension-base/src/services/chain-service/constants.ts index fd957dacdc..30bfd06ab6 100644 --- a/packages/extension-base/src/services/chain-service/constants.ts +++ b/packages/extension-base/src/services/chain-service/constants.ts @@ -228,12 +228,12 @@ export const _TRANSFER_CHAIN_GROUP = { kintsugi: ['kintsugi', 'kintsugi_test', 'interlay', 'mangatax_para'], genshiro: ['genshiro_testnet', 'genshiro', 'equilibrium_parachain'], // crab: ['crab', 'pangolin'], - bitcountry: ['pioneer', 'bitcountry', 'bifrost', 'bifrost_dot'], + bitcountry: ['pioneer', 'bitcountry'], statemine: ['statemint', 'statemine', 'darwinia2', 'astar', 'shiden', 'shibuya', 'parallel', 'liberland', 'liberlandTest', 'dentnet', 'dbcchain'], riochain: ['riochain'], sora_substrate: ['sora_substrate'], avail: ['kate', 'goldberg_testnet'], - pendulum: ['pendulum', 'amplitude', 'amplitude_test', 'hydradx_main'], + pendulum: ['pendulum', 'amplitude', 'amplitude_test', 'hydradx_main', 'bifrost', 'bifrost_dot'], centrifuge: ['centrifuge'], disable_transfer: ['invarch', 'crab', 'pangolin'] }; diff --git a/packages/extension-base/src/services/chain-service/health-check/utils/new-utils/asset-asset-validate.ts b/packages/extension-base/src/services/chain-service/health-check/utils/new-utils/asset-asset-validate.ts index 1f32dd3f23..2483d81992 100644 --- a/packages/extension-base/src/services/chain-service/health-check/utils/new-utils/asset-asset-validate.ts +++ b/packages/extension-base/src/services/chain-service/health-check/utils/new-utils/asset-asset-validate.ts @@ -71,7 +71,7 @@ export function validateNativeLocalTransferMetadata (chainAsset: _ChainAsset) { } const moonbeamGroup = ['moonbeam, moonbase, moonriver']; - const onChainInfoLocalGroup = [_TRANSFER_CHAIN_GROUP.centrifuge, ..._TRANSFER_CHAIN_GROUP.bitcountry, ..._TRANSFER_CHAIN_GROUP.acala, ..._TRANSFER_CHAIN_GROUP.kintsugi, 'pendulum', 'amplitude']; + const onChainInfoLocalGroup = [_TRANSFER_CHAIN_GROUP.centrifuge, ..._TRANSFER_CHAIN_GROUP.bitcountry, ..._TRANSFER_CHAIN_GROUP.acala, ..._TRANSFER_CHAIN_GROUP.kintsugi, 'pendulum', 'amplitude', 'bifrost', 'bifrost_dot']; const onChainInfoNativeGroup = [_TRANSFER_CHAIN_GROUP.centrifuge, ..._TRANSFER_CHAIN_GROUP.acala, ..._TRANSFER_CHAIN_GROUP.kintsugi]; const assetIdLocalGroup = [..._TRANSFER_CHAIN_GROUP.statemine, ..._TRANSFER_CHAIN_GROUP.genshiro, ...moonbeamGroup, 'hydradx']; const assetIdNativeGroup = [..._TRANSFER_CHAIN_GROUP.sora_substrate, 'hydradx']; diff --git a/packages/extension-koni-ui/package.json b/packages/extension-koni-ui/package.json index 6172f2b261..7144d7b749 100644 --- a/packages/extension-koni-ui/package.json +++ b/packages/extension-koni-ui/package.json @@ -34,7 +34,7 @@ "@polkadot/util-crypto": "^12.6.2", "@ramonak/react-progress-bar": "^5.0.3", "@reduxjs/toolkit": "^1.9.1", - "@subwallet/chain-list": "0.2.88", + "@subwallet/chain-list": "0.2.89-webapp", "@subwallet/extension-base": "^1.2.32-0", "@subwallet/extension-chains": "^1.2.32-0", "@subwallet/extension-dapp": "^1.2.32-0", diff --git a/packages/extension-web-ui/package.json b/packages/extension-web-ui/package.json index 953f0e78f1..e3b88ae02d 100644 --- a/packages/extension-web-ui/package.json +++ b/packages/extension-web-ui/package.json @@ -35,7 +35,7 @@ "@polkadot/util-crypto": "^12.6.2", "@ramonak/react-progress-bar": "^5.0.3", "@reduxjs/toolkit": "^1.9.1", - "@subwallet/chain-list": "0.2.88", + "@subwallet/chain-list": "0.2.89-webapp", "@subwallet/extension-base": "^1.2.32-0", "@subwallet/extension-chains": "^1.2.32-0", "@subwallet/extension-dapp": "^1.2.32-0", diff --git a/packages/webapp/package.json b/packages/webapp/package.json index be72147d8b..b5f85cd14a 100644 --- a/packages/webapp/package.json +++ b/packages/webapp/package.json @@ -49,4 +49,4 @@ "webpack-cli": "^5.1.4", "webpack-dev-server": "^5.0.4" } -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index 33856b80fb..83c09356e4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6268,14 +6268,14 @@ __metadata: languageName: node linkType: hard -"@subwallet/chain-list@npm:0.2.88": - version: 0.2.88 - resolution: "@subwallet/chain-list@npm:0.2.88" +"@subwallet/chain-list@npm:0.2.89-webapp": + version: 0.2.89-webapp + resolution: "@subwallet/chain-list@npm:0.2.89-webapp" dependencies: "@polkadot/dev": 0.67.167 "@polkadot/util": ^12.5.1 eventemitter3: ^5.0.1 - checksum: 80640b5b555c238398ecaf9d6a5ae0c27680b67e3352408da5c1b0e3da79e792eb5f75ca1db866e529655071c7a158cae55fc90086b77908218f19e3deeca338 + checksum: d87e771f67ff0329a3d41bdb0cd91cf9c8935b96313a24ae0812cae857fdb0cf234b41ddc2ec3d75c41507c60861fb36050ff0180077cf9d13c278ab51721148 languageName: node linkType: hard @@ -6318,7 +6318,7 @@ __metadata: "@reduxjs/toolkit": ^1.9.1 "@sora-substrate/type-definitions": ^1.17.7 "@substrate/connect": ^0.8.9 - "@subwallet/chain-list": 0.2.88 + "@subwallet/chain-list": 0.2.89-webapp "@subwallet/extension-base": ^1.2.32-0 "@subwallet/extension-chains": ^1.2.32-0 "@subwallet/extension-dapp": ^1.2.32-0 @@ -6451,7 +6451,7 @@ __metadata: "@polkadot/util-crypto": ^12.6.2 "@ramonak/react-progress-bar": ^5.0.3 "@reduxjs/toolkit": ^1.9.1 - "@subwallet/chain-list": 0.2.88 + "@subwallet/chain-list": 0.2.89-webapp "@subwallet/extension-base": ^1.2.32-0 "@subwallet/extension-chains": ^1.2.32-0 "@subwallet/extension-dapp": ^1.2.32-0 @@ -6591,7 +6591,7 @@ __metadata: "@polkadot/util-crypto": ^12.6.2 "@ramonak/react-progress-bar": ^5.0.3 "@reduxjs/toolkit": ^1.9.1 - "@subwallet/chain-list": 0.2.88 + "@subwallet/chain-list": 0.2.89-webapp "@subwallet/extension-base": ^1.2.32-0 "@subwallet/extension-chains": ^1.2.32-0 "@subwallet/extension-dapp": ^1.2.32-0 From 4e50fff1df982a392b26f2e9d78106531ee37bbc Mon Sep 17 00:00:00 2001 From: bluezdot <72647326+bluezdot@users.noreply.github.com> Date: Mon, 13 Jan 2025 15:47:03 +0700 Subject: [PATCH 2/2] [Issue-3985] feat: add price multi-asset wud --- package.json | 2 +- packages/extension-base/package.json | 2 +- packages/extension-koni-ui/package.json | 2 +- packages/extension-web-ui/package.json | 2 +- yarn.lock | 14 +++++++------- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 9b8a88ee9d..8495ca2fb7 100644 --- a/package.json +++ b/package.json @@ -104,7 +104,7 @@ "@polkadot/types-support": "^12.0.2", "@polkadot/util": "^12.6.2", "@polkadot/util-crypto": "^12.6.2", - "@subwallet/chain-list": "0.2.89-webapp", + "@subwallet/chain-list": "0.2.89-webapp-v2", "@subwallet/keyring": "^0.1.7", "@subwallet/react-ui": "5.1.2-b79", "@subwallet/ui-keyring": "^0.1.7", diff --git a/packages/extension-base/package.json b/packages/extension-base/package.json index 80225615ce..ce69097fe2 100644 --- a/packages/extension-base/package.json +++ b/packages/extension-base/package.json @@ -55,7 +55,7 @@ "@reduxjs/toolkit": "^1.9.1", "@sora-substrate/type-definitions": "^1.17.7", "@substrate/connect": "^0.8.9", - "@subwallet/chain-list": "0.2.89-webapp", + "@subwallet/chain-list": "0.2.89-webapp-v2", "@subwallet/extension-base": "^1.2.32-0", "@subwallet/extension-chains": "^1.2.32-0", "@subwallet/extension-dapp": "^1.2.32-0", diff --git a/packages/extension-koni-ui/package.json b/packages/extension-koni-ui/package.json index 7144d7b749..412d8440b4 100644 --- a/packages/extension-koni-ui/package.json +++ b/packages/extension-koni-ui/package.json @@ -34,7 +34,7 @@ "@polkadot/util-crypto": "^12.6.2", "@ramonak/react-progress-bar": "^5.0.3", "@reduxjs/toolkit": "^1.9.1", - "@subwallet/chain-list": "0.2.89-webapp", + "@subwallet/chain-list": "0.2.89-webapp-v2", "@subwallet/extension-base": "^1.2.32-0", "@subwallet/extension-chains": "^1.2.32-0", "@subwallet/extension-dapp": "^1.2.32-0", diff --git a/packages/extension-web-ui/package.json b/packages/extension-web-ui/package.json index e3b88ae02d..5cd2db098c 100644 --- a/packages/extension-web-ui/package.json +++ b/packages/extension-web-ui/package.json @@ -35,7 +35,7 @@ "@polkadot/util-crypto": "^12.6.2", "@ramonak/react-progress-bar": "^5.0.3", "@reduxjs/toolkit": "^1.9.1", - "@subwallet/chain-list": "0.2.89-webapp", + "@subwallet/chain-list": "0.2.89-webapp-v2", "@subwallet/extension-base": "^1.2.32-0", "@subwallet/extension-chains": "^1.2.32-0", "@subwallet/extension-dapp": "^1.2.32-0", diff --git a/yarn.lock b/yarn.lock index 83c09356e4..7bc7763647 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6268,14 +6268,14 @@ __metadata: languageName: node linkType: hard -"@subwallet/chain-list@npm:0.2.89-webapp": - version: 0.2.89-webapp - resolution: "@subwallet/chain-list@npm:0.2.89-webapp" +"@subwallet/chain-list@npm:0.2.89-webapp-v2": + version: 0.2.89-webapp-v2 + resolution: "@subwallet/chain-list@npm:0.2.89-webapp-v2" dependencies: "@polkadot/dev": 0.67.167 "@polkadot/util": ^12.5.1 eventemitter3: ^5.0.1 - checksum: d87e771f67ff0329a3d41bdb0cd91cf9c8935b96313a24ae0812cae857fdb0cf234b41ddc2ec3d75c41507c60861fb36050ff0180077cf9d13c278ab51721148 + checksum: 60a743611e1eb1a81ef2f8a3a01b1ab09e5727c55991f1a89f27cc8c10f51b6abb3a5bf5d031f249de0aa53e32d104daa014cf0437383df14f258eec31aeee56 languageName: node linkType: hard @@ -6318,7 +6318,7 @@ __metadata: "@reduxjs/toolkit": ^1.9.1 "@sora-substrate/type-definitions": ^1.17.7 "@substrate/connect": ^0.8.9 - "@subwallet/chain-list": 0.2.89-webapp + "@subwallet/chain-list": 0.2.89-webapp-v2 "@subwallet/extension-base": ^1.2.32-0 "@subwallet/extension-chains": ^1.2.32-0 "@subwallet/extension-dapp": ^1.2.32-0 @@ -6451,7 +6451,7 @@ __metadata: "@polkadot/util-crypto": ^12.6.2 "@ramonak/react-progress-bar": ^5.0.3 "@reduxjs/toolkit": ^1.9.1 - "@subwallet/chain-list": 0.2.89-webapp + "@subwallet/chain-list": 0.2.89-webapp-v2 "@subwallet/extension-base": ^1.2.32-0 "@subwallet/extension-chains": ^1.2.32-0 "@subwallet/extension-dapp": ^1.2.32-0 @@ -6591,7 +6591,7 @@ __metadata: "@polkadot/util-crypto": ^12.6.2 "@ramonak/react-progress-bar": ^5.0.3 "@reduxjs/toolkit": ^1.9.1 - "@subwallet/chain-list": 0.2.89-webapp + "@subwallet/chain-list": 0.2.89-webapp-v2 "@subwallet/extension-base": ^1.2.32-0 "@subwallet/extension-chains": ^1.2.32-0 "@subwallet/extension-dapp": ^1.2.32-0