From 08c61784adaf2329402bdefe25a0be8bc6df4b16 Mon Sep 17 00:00:00 2001 From: bluezdot Date: Tue, 9 Jul 2024 18:31:17 +0700 Subject: [PATCH 1/4] [Issue-242] Update chainlist --- package.json | 2 +- .../extension-base/src/services/chain-service/index.ts | 6 +++++- yarn.lock | 8 ++++---- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 37066374c5..7c94a91839 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "@polkadot/types-codec": "10.10.1", "@polkadot/util": "^12.6.2", "@polkadot/util-crypto": "^12.6.2", - "@subwallet/chain-list": "0.2.72-beta.6", + "@subwallet/chain-list": "0.2.73-beta.5", "@subwallet/keyring": "file:./local-libs/keyring", "@subwallet/ui-keyring": "file:./local-libs/ui-keyring", "babel-core": "^7.0.0-bridge.0", diff --git a/packages/extension-base/src/services/chain-service/index.ts b/packages/extension-base/src/services/chain-service/index.ts index 84c4befe80..7d6e1712a8 100644 --- a/packages/extension-base/src/services/chain-service/index.ts +++ b/packages/extension-base/src/services/chain-service/index.ts @@ -62,7 +62,11 @@ const openbitChainInfoMap = (() => { 'sepolia_ethereum', 'syscoin_evm', 'rollux_evm', - 'b2_testnet' + 'b2_testnet', + 'boolAlpha', + 'boolBeta_testnet', + 'rollux_testnet', + 'syscoin_evm_testnet' ]; const enableList = nativeList.concat(bitcoinL2List); diff --git a/yarn.lock b/yarn.lock index f5af4b6d33..65d9ab7e1a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6400,14 +6400,14 @@ __metadata: languageName: node linkType: hard -"@subwallet/chain-list@npm:0.2.72-beta.6": - version: 0.2.72-beta.6 - resolution: "@subwallet/chain-list@npm:0.2.72-beta.6" +"@subwallet/chain-list@npm:0.2.73-beta.5": + version: 0.2.73-beta.5 + resolution: "@subwallet/chain-list@npm:0.2.73-beta.5" dependencies: "@polkadot/dev": 0.67.167 "@polkadot/util": ^12.5.1 eventemitter3: ^5.0.1 - checksum: 3e561c0636a251f6f6cad9f680551d2407bfe9aa5c5264885c424803cc0c62d4dc0d8b1644f9b67fd3db770431eb86d09ad208caa98842cf66606254768d3087 + checksum: 77eb160cb750132253e47cc006169e6aa1b6f132fb55218e2057c7139a9da2eebe23e844146362b0f60cdd0caccbcb5907713ba1323389faab0ab78908eb7c88 languageName: node linkType: hard From f345b8f3272304b0a91b4798a2f7805cf6748fbf Mon Sep 17 00:00:00 2001 From: bluezdot Date: Wed, 10 Jul 2024 14:44:27 +0700 Subject: [PATCH 2/4] [Issue-242] Update chainlist --- package.json | 2 +- .../src/services/transaction-service/utils.ts | 4 ++++ yarn.lock | 8 ++++---- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 7c94a91839..27073bff74 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "@polkadot/types-codec": "10.10.1", "@polkadot/util": "^12.6.2", "@polkadot/util-crypto": "^12.6.2", - "@subwallet/chain-list": "0.2.73-beta.5", + "@subwallet/chain-list": "0.2.73-beta.9", "@subwallet/keyring": "file:./local-libs/keyring", "@subwallet/ui-keyring": "file:./local-libs/ui-keyring", "babel-core": "^7.0.0-bridge.0", diff --git a/packages/extension-base/src/services/transaction-service/utils.ts b/packages/extension-base/src/services/transaction-service/utils.ts index aa8fc7b33d..e78ffe2746 100644 --- a/packages/extension-base/src/services/transaction-service/utils.ts +++ b/packages/extension-base/src/services/transaction-service/utils.ts @@ -29,6 +29,10 @@ function getBlockExplorerAccountRoute (explorerLink: string) { return 'account'; } + if (explorerLink.includes('boolscan')) { + return 'account'; + } + return 'address'; } diff --git a/yarn.lock b/yarn.lock index 65d9ab7e1a..872f9585a0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6400,14 +6400,14 @@ __metadata: languageName: node linkType: hard -"@subwallet/chain-list@npm:0.2.73-beta.5": - version: 0.2.73-beta.5 - resolution: "@subwallet/chain-list@npm:0.2.73-beta.5" +"@subwallet/chain-list@npm:0.2.73-beta.9": + version: 0.2.73-beta.9 + resolution: "@subwallet/chain-list@npm:0.2.73-beta.9" dependencies: "@polkadot/dev": 0.67.167 "@polkadot/util": ^12.5.1 eventemitter3: ^5.0.1 - checksum: 77eb160cb750132253e47cc006169e6aa1b6f132fb55218e2057c7139a9da2eebe23e844146362b0f60cdd0caccbcb5907713ba1323389faab0ab78908eb7c88 + checksum: ca1f6288cf0effa71bf442197b3da845ca7f18fe1377a51afbf489b21f3db58a83153e38e06fedecf41282d01271e7cea4a17fa4b3aff3ca1d38f04a66cef2a8 languageName: node linkType: hard From d852bb0e858a1b1ae58fe441b6ef65e9e135e22b Mon Sep 17 00:00:00 2001 From: bluezdot Date: Thu, 11 Jul 2024 15:32:52 +0700 Subject: [PATCH 3/4] Disable BoolMainnet --- package.json | 2 +- .../extension-base/src/services/chain-service/index.ts | 1 - yarn.lock | 8 ++++---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 27073bff74..6ece63f983 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "@polkadot/types-codec": "10.10.1", "@polkadot/util": "^12.6.2", "@polkadot/util-crypto": "^12.6.2", - "@subwallet/chain-list": "0.2.73-beta.9", + "@subwallet/chain-list": "0.2.73-beta.11", "@subwallet/keyring": "file:./local-libs/keyring", "@subwallet/ui-keyring": "file:./local-libs/ui-keyring", "babel-core": "^7.0.0-bridge.0", diff --git a/packages/extension-base/src/services/chain-service/index.ts b/packages/extension-base/src/services/chain-service/index.ts index 7d6e1712a8..affb6b27ae 100644 --- a/packages/extension-base/src/services/chain-service/index.ts +++ b/packages/extension-base/src/services/chain-service/index.ts @@ -63,7 +63,6 @@ const openbitChainInfoMap = (() => { 'syscoin_evm', 'rollux_evm', 'b2_testnet', - 'boolAlpha', 'boolBeta_testnet', 'rollux_testnet', 'syscoin_evm_testnet' diff --git a/yarn.lock b/yarn.lock index 872f9585a0..3cfea42d1f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6400,14 +6400,14 @@ __metadata: languageName: node linkType: hard -"@subwallet/chain-list@npm:0.2.73-beta.9": - version: 0.2.73-beta.9 - resolution: "@subwallet/chain-list@npm:0.2.73-beta.9" +"@subwallet/chain-list@npm:0.2.73-beta.11": + version: 0.2.73-beta.11 + resolution: "@subwallet/chain-list@npm:0.2.73-beta.11" dependencies: "@polkadot/dev": 0.67.167 "@polkadot/util": ^12.5.1 eventemitter3: ^5.0.1 - checksum: ca1f6288cf0effa71bf442197b3da845ca7f18fe1377a51afbf489b21f3db58a83153e38e06fedecf41282d01271e7cea4a17fa4b3aff3ca1d38f04a66cef2a8 + checksum: 105dd465f1c8fd64f66981e96747e11e9e62129e8b5294cc66b8b4e2a1f90e087884e93d04660d329401cfc7ec925590077794374221ef650051fecd869ace53 languageName: node linkType: hard From 44dfa177eb961d5b07b43f0ded8ebbd414e768d5 Mon Sep 17 00:00:00 2001 From: bluezdot Date: Thu, 11 Jul 2024 18:13:03 +0700 Subject: [PATCH 4/4] Update explorer Bool test --- .../extension-base/src/services/transaction-service/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/extension-base/src/services/transaction-service/utils.ts b/packages/extension-base/src/services/transaction-service/utils.ts index e78ffe2746..bf7731642e 100644 --- a/packages/extension-base/src/services/transaction-service/utils.ts +++ b/packages/extension-base/src/services/transaction-service/utils.ts @@ -29,8 +29,8 @@ function getBlockExplorerAccountRoute (explorerLink: string) { return 'account'; } - if (explorerLink.includes('boolscan')) { - return 'account'; + if (explorerLink.includes('beta-testnet.boolscan')) { + return 'address'; } return 'address';