@subwallet/extension-base 1.3.60-0 → 1.3.61-0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/packageInfo.js +1 -1
- package/cjs/services/chain-service/constants.js +2 -2
- package/cjs/services/chain-service/utils/patch.js +1 -1
- package/cjs/services/earning-service/constants/chains.js +3 -3
- package/cjs/services/earning-service/service.js +14 -10
- package/cjs/services/transaction-service/utils.js +3 -3
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/services/chain-service/constants.js +2 -2
- package/services/chain-service/utils/patch.d.ts +1 -1
- package/services/chain-service/utils/patch.js +1 -1
- package/services/earning-service/constants/chains.js +3 -3
- package/services/earning-service/service.js +14 -10
- package/services/transaction-service/utils.js +3 -3
package/cjs/packageInfo.js
CHANGED
|
@@ -41,7 +41,7 @@ const _BALANCE_CHAIN_GROUP = {
|
|
|
41
41
|
genshiro: ['genshiro_testnet', 'genshiro'],
|
|
42
42
|
equilibrium_parachain: ['equilibrium_parachain'],
|
|
43
43
|
bifrost: ['bifrost', 'acala', 'karura', 'acala_testnet', 'pioneer', 'bitcountry', 'bifrost_dot', 'hydradx_main', 'hydradx_rococo', 'pendulum', 'amplitude', 'continuum_network', 'truth_network', 'jamton', 'hydradx_hollarnet'],
|
|
44
|
-
statemine: ['statemine', 'astar', 'shiden', 'statemint', 'crabParachain', 'darwinia2', 'parallel', 'calamari', 'manta_network', 'rococo_assethub', 'liberlandTest', 'liberland', 'dentnet', 'pangolin', 'crust', 'phala', 'shibuya', 'dbcchain', 'westend_assethub', 'chainflip_assethub', 'origintrail', 'xode'],
|
|
44
|
+
statemine: ['statemine', 'astar', 'shiden', 'statemint', 'crabParachain', 'darwinia2', 'parallel', 'calamari', 'manta_network', 'rococo_assethub', 'liberlandTest', 'liberland', 'dentnet', 'pangolin', 'crust', 'phala', 'shibuya', 'dbcchain', 'westend_assethub', 'chainflip_assethub', 'origintrail', 'xode', 'paseo_assethub'],
|
|
45
45
|
kusama: ['kusama', 'kintsugi', 'kintsugi_test', 'interlay', 'acala', 'statemint', 'karura', 'bifrost'],
|
|
46
46
|
// perhaps there are some runtime updates
|
|
47
47
|
centrifuge: ['centrifuge'],
|
|
@@ -283,7 +283,7 @@ const _TRANSFER_CHAIN_GROUP = {
|
|
|
283
283
|
genshiro: ['genshiro_testnet', 'genshiro', 'equilibrium_parachain'],
|
|
284
284
|
// crab: ['crab', 'pangolin'],
|
|
285
285
|
bitcountry: ['pioneer', 'bitcountry'],
|
|
286
|
-
statemine: ['statemint', 'statemine', 'darwinia2', 'astar', 'shiden', 'shibuya', 'parallel', 'liberland', 'liberlandTest', 'dentnet', 'dbcchain', 'westend_assethub', 'chainflip_assethub', 'origintrail', 'xode'],
|
|
286
|
+
statemine: ['statemint', 'statemine', 'darwinia2', 'astar', 'shiden', 'shibuya', 'parallel', 'liberland', 'liberlandTest', 'dentnet', 'dbcchain', 'westend_assethub', 'chainflip_assethub', 'origintrail', 'xode', 'paseo_assethub'],
|
|
287
287
|
riochain: ['riochain'],
|
|
288
288
|
sora_substrate: ['sora_substrate'],
|
|
289
289
|
avail: ['kate', 'goldberg_testnet'],
|
|
@@ -12,7 +12,7 @@ const PRODUCTION_BRANCHES = ['master', 'webapp', 'webapp-dev'];
|
|
|
12
12
|
const branchName = process.env.BRANCH_NAME || 'subwallet-dev';
|
|
13
13
|
const fetchDomain = process.env.PATCH_CHAIN_LIST_URL || (PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'https://chain-list-assets.subwallet.app' : 'https://dev.sw-chain-list-assets.pages.dev');
|
|
14
14
|
const fetchFile = PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'list.json' : 'preview.json';
|
|
15
|
-
const ChainListVersion = '0.2.
|
|
15
|
+
const ChainListVersion = '0.2.117'; // update this when build chain-list
|
|
16
16
|
|
|
17
17
|
// todo: move this interface to chainlist
|
|
18
18
|
exports.ChainListVersion = ChainListVersion;
|
|
@@ -8,13 +8,13 @@ exports._STAKING_CHAIN_GROUP = exports.TON_CHAINS = exports.ST_LIQUID_TOKEN_ABI
|
|
|
8
8
|
// SPDX-License-Identifier: Apache-2.0
|
|
9
9
|
|
|
10
10
|
const _STAKING_CHAIN_GROUP = {
|
|
11
|
-
relay: ['polkadot', 'kusama', 'aleph', 'polkadex', 'ternoa', 'alephTest', 'polkadexTest', 'westend', 'kate', 'edgeware', 'creditcoin', 'vara_network', 'goldberg_testnet', 'availTuringTest', 'avail_mainnet', 'vara_testnet', 'dentnet', 'cere', '
|
|
12
|
-
assetHub: ['statemine', 'statemint', 'westend_assethub'],
|
|
11
|
+
relay: ['polkadot', 'kusama', 'aleph', 'polkadex', 'ternoa', 'alephTest', 'polkadexTest', 'westend', 'kate', 'edgeware', 'creditcoin', 'vara_network', 'goldberg_testnet', 'availTuringTest', 'avail_mainnet', 'vara_testnet', 'dentnet', 'cere', 'zkverify', 'zkverify_testnet', 'paseoTest'],
|
|
12
|
+
assetHub: ['statemine', 'statemint', 'westend_assethub', 'paseo_assethub'],
|
|
13
13
|
para: ['moonbeam', 'moonriver', 'moonbase', 'turing', 'turingStaging', 'bifrost', 'bifrost_testnet', 'calamari_test', 'calamari', 'manta_network', 'polimec'],
|
|
14
14
|
astar: ['astar', 'shiden', 'shibuya'],
|
|
15
15
|
amplitude: ['amplitude', 'amplitude_test', 'pendulum', 'krest_network'],
|
|
16
16
|
// amplitude and kilt only share some common logic
|
|
17
|
-
nominationPool: ['polkadot', 'kusama', 'westend', 'alephTest', 'aleph', 'kate', 'vara_network', 'goldberg_testnet', 'availTuringTest', 'avail_mainnet', 'vara_testnet', 'cere', 'analog_timechain'],
|
|
17
|
+
nominationPool: ['polkadot', 'kusama', 'westend', 'alephTest', 'aleph', 'kate', 'vara_network', 'goldberg_testnet', 'availTuringTest', 'avail_mainnet', 'vara_testnet', 'cere', 'analog_timechain', 'paseoTest'],
|
|
18
18
|
bifrost: ['bifrost', 'bifrost_testnet'],
|
|
19
19
|
aleph: ['aleph', 'alephTest'],
|
|
20
20
|
// A0 has distinct tokenomics
|
|
@@ -64,24 +64,29 @@ class EarningService {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
const minAmountPercent = {};
|
|
67
|
-
const
|
|
67
|
+
const ahMigratedChainMap = await this.state.chainService.fetchAhMapChain();
|
|
68
|
+
const ahMigratedChains = Object.values(ahMigratedChainMap);
|
|
68
69
|
for (const chain of chains) {
|
|
69
70
|
const handlers = [];
|
|
70
71
|
const chainInfo = this.state.getChainInfo(chain);
|
|
71
72
|
const symbol = (0, _utils._getChainSubstrateTokenSymbol)(chainInfo);
|
|
72
73
|
if (_constants2._STAKING_CHAIN_GROUP.relay.includes(chain)) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
const ahChain = ahMapChain[chain];
|
|
77
|
-
if (ahChain) {
|
|
78
|
-
handlers.push(new _handlers.RelayNativeStakingPoolHandler(this.state, ahChain));
|
|
74
|
+
const ahMigratedChain = ahMigratedChainMap[chain];
|
|
75
|
+
if (ahMigratedChain) {
|
|
79
76
|
const relaySlug = _handlers.RelayNativeStakingPoolHandler.generateSlug(symbol, chain);
|
|
80
77
|
this.inactivePoolSlug.add(relaySlug);
|
|
81
78
|
} else {
|
|
82
79
|
handlers.push(new _handlers.RelayNativeStakingPoolHandler(this.state, chain));
|
|
83
80
|
}
|
|
84
81
|
}
|
|
82
|
+
if (_constants2._STAKING_CHAIN_GROUP.assetHub.includes(chain)) {
|
|
83
|
+
// define list of migrating asset hub
|
|
84
|
+
if (ahMigratedChains.includes(chain)) {
|
|
85
|
+
// check if chain migrate with online data
|
|
86
|
+
handlers.push(new _handlers.RelayNativeStakingPoolHandler(this.state, chain));
|
|
87
|
+
handlers.push(new _handlers.NominationPoolHandler(this.state, chain));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
85
90
|
if (_constants2._STAKING_CHAIN_GROUP.para.includes(chain)) {
|
|
86
91
|
handlers.push(new _handlers.ParaNativeStakingPoolHandler(this.state, chain));
|
|
87
92
|
}
|
|
@@ -104,9 +109,8 @@ class EarningService {
|
|
|
104
109
|
handlers.push(new _handlers.EnergyNativeStakingPoolHandler(this.state, chain));
|
|
105
110
|
}
|
|
106
111
|
if (_constants2._STAKING_CHAIN_GROUP.nominationPool.includes(chain)) {
|
|
107
|
-
const
|
|
108
|
-
if (
|
|
109
|
-
handlers.push(new _handlers.NominationPoolHandler(this.state, ahChain));
|
|
112
|
+
const ahMigratedChain = ahMigratedChainMap[chain];
|
|
113
|
+
if (ahMigratedChain) {
|
|
110
114
|
const relaySlug = _handlers.NominationPoolHandler.generateSlug(symbol, chain);
|
|
111
115
|
this.inactivePoolSlug.add(relaySlug);
|
|
112
116
|
} else {
|
|
@@ -60,6 +60,9 @@ function getBlockExplorerAccountRoute(explorerLink) {
|
|
|
60
60
|
if (explorerLink.includes('uniquescan.io')) {
|
|
61
61
|
return 'account';
|
|
62
62
|
}
|
|
63
|
+
if (explorerLink.includes('node.xode.net')) {
|
|
64
|
+
return 'account';
|
|
65
|
+
}
|
|
63
66
|
if (explorerLink.includes('tonviewer.com')) {
|
|
64
67
|
return '';
|
|
65
68
|
}
|
|
@@ -124,9 +127,6 @@ function getExplorerLink(chainInfo, value, type) {
|
|
|
124
127
|
const address = (0, _util.u8aToHex)((0, _utilCrypto.decodeAddress)(value));
|
|
125
128
|
return `${explorerLink}${explorerLink.endsWith('/') ? '' : '/'}${route}/${address}`;
|
|
126
129
|
}
|
|
127
|
-
if (chainInfo.slug === 'xode') {
|
|
128
|
-
return undefined;
|
|
129
|
-
}
|
|
130
130
|
return `${explorerLink}${explorerLink.endsWith('/') ? '' : '/'}${route}/${value}`;
|
|
131
131
|
}
|
|
132
132
|
if (explorerLink && (0, _util.isHex)((0, _util.hexAddPrefix)(value))) {
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"./cjs/detectPackage.js"
|
|
18
18
|
],
|
|
19
19
|
"type": "module",
|
|
20
|
-
"version": "1.3.
|
|
20
|
+
"version": "1.3.61-0",
|
|
21
21
|
"main": "./cjs/index.js",
|
|
22
22
|
"module": "./index.js",
|
|
23
23
|
"types": "./index.d.ts",
|
|
@@ -2878,11 +2878,11 @@
|
|
|
2878
2878
|
"@sora-substrate/type-definitions": "^1.17.7",
|
|
2879
2879
|
"@substrate/connect": "^0.8.9",
|
|
2880
2880
|
"@subwallet-monorepos/subwallet-services-sdk": "^0.1.8",
|
|
2881
|
-
"@subwallet/chain-list": "0.2.117
|
|
2882
|
-
"@subwallet/extension-base": "^1.3.
|
|
2883
|
-
"@subwallet/extension-chains": "^1.3.
|
|
2884
|
-
"@subwallet/extension-dapp": "^1.3.
|
|
2885
|
-
"@subwallet/extension-inject": "^1.3.
|
|
2881
|
+
"@subwallet/chain-list": "0.2.117",
|
|
2882
|
+
"@subwallet/extension-base": "^1.3.61-0",
|
|
2883
|
+
"@subwallet/extension-chains": "^1.3.61-0",
|
|
2884
|
+
"@subwallet/extension-dapp": "^1.3.61-0",
|
|
2885
|
+
"@subwallet/extension-inject": "^1.3.61-0",
|
|
2886
2886
|
"@subwallet/keyring": "^0.1.13",
|
|
2887
2887
|
"@subwallet/ui-keyring": "^0.1.13",
|
|
2888
2888
|
"@ton/core": "^0.56.3",
|
package/packageInfo.js
CHANGED
|
@@ -7,5 +7,5 @@ export const packageInfo = {
|
|
|
7
7
|
name: '@subwallet/extension-base',
|
|
8
8
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
9
9
|
type: 'esm',
|
|
10
|
-
version: '1.3.
|
|
10
|
+
version: '1.3.61-0'
|
|
11
11
|
};
|
|
@@ -30,7 +30,7 @@ export const _BALANCE_CHAIN_GROUP = {
|
|
|
30
30
|
genshiro: ['genshiro_testnet', 'genshiro'],
|
|
31
31
|
equilibrium_parachain: ['equilibrium_parachain'],
|
|
32
32
|
bifrost: ['bifrost', 'acala', 'karura', 'acala_testnet', 'pioneer', 'bitcountry', 'bifrost_dot', 'hydradx_main', 'hydradx_rococo', 'pendulum', 'amplitude', 'continuum_network', 'truth_network', 'jamton', 'hydradx_hollarnet'],
|
|
33
|
-
statemine: ['statemine', 'astar', 'shiden', 'statemint', 'crabParachain', 'darwinia2', 'parallel', 'calamari', 'manta_network', 'rococo_assethub', 'liberlandTest', 'liberland', 'dentnet', 'pangolin', 'crust', 'phala', 'shibuya', 'dbcchain', 'westend_assethub', 'chainflip_assethub', 'origintrail', 'xode'],
|
|
33
|
+
statemine: ['statemine', 'astar', 'shiden', 'statemint', 'crabParachain', 'darwinia2', 'parallel', 'calamari', 'manta_network', 'rococo_assethub', 'liberlandTest', 'liberland', 'dentnet', 'pangolin', 'crust', 'phala', 'shibuya', 'dbcchain', 'westend_assethub', 'chainflip_assethub', 'origintrail', 'xode', 'paseo_assethub'],
|
|
34
34
|
kusama: ['kusama', 'kintsugi', 'kintsugi_test', 'interlay', 'acala', 'statemint', 'karura', 'bifrost'],
|
|
35
35
|
// perhaps there are some runtime updates
|
|
36
36
|
centrifuge: ['centrifuge'],
|
|
@@ -265,7 +265,7 @@ export const _TRANSFER_CHAIN_GROUP = {
|
|
|
265
265
|
genshiro: ['genshiro_testnet', 'genshiro', 'equilibrium_parachain'],
|
|
266
266
|
// crab: ['crab', 'pangolin'],
|
|
267
267
|
bitcountry: ['pioneer', 'bitcountry'],
|
|
268
|
-
statemine: ['statemint', 'statemine', 'darwinia2', 'astar', 'shiden', 'shibuya', 'parallel', 'liberland', 'liberlandTest', 'dentnet', 'dbcchain', 'westend_assethub', 'chainflip_assethub', 'origintrail', 'xode'],
|
|
268
|
+
statemine: ['statemint', 'statemine', 'darwinia2', 'astar', 'shiden', 'shibuya', 'parallel', 'liberland', 'liberlandTest', 'dentnet', 'dbcchain', 'westend_assethub', 'chainflip_assethub', 'origintrail', 'xode', 'paseo_assethub'],
|
|
269
269
|
riochain: ['riochain'],
|
|
270
270
|
sora_substrate: ['sora_substrate'],
|
|
271
271
|
avail: ['kate', 'goldberg_testnet'],
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { _ChainAsset, _ChainInfo, _MultiChainAsset } from '@subwallet/chain-list/types';
|
|
2
|
-
export declare const ChainListVersion = "0.2.
|
|
2
|
+
export declare const ChainListVersion = "0.2.117";
|
|
3
3
|
export interface PatchInfo {
|
|
4
4
|
patchVersion: string;
|
|
5
5
|
appliedVersion: string;
|
|
@@ -5,7 +5,7 @@ const PRODUCTION_BRANCHES = ['master', 'webapp', 'webapp-dev'];
|
|
|
5
5
|
const branchName = process.env.BRANCH_NAME || 'subwallet-dev';
|
|
6
6
|
const fetchDomain = process.env.PATCH_CHAIN_LIST_URL || (PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'https://chain-list-assets.subwallet.app' : 'https://dev.sw-chain-list-assets.pages.dev');
|
|
7
7
|
const fetchFile = PRODUCTION_BRANCHES.indexOf(branchName) > -1 ? 'list.json' : 'preview.json';
|
|
8
|
-
export const ChainListVersion = '0.2.
|
|
8
|
+
export const ChainListVersion = '0.2.117'; // update this when build chain-list
|
|
9
9
|
|
|
10
10
|
// todo: move this interface to chainlist
|
|
11
11
|
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
4
|
export const _STAKING_CHAIN_GROUP = {
|
|
5
|
-
relay: ['polkadot', 'kusama', 'aleph', 'polkadex', 'ternoa', 'alephTest', 'polkadexTest', 'westend', 'kate', 'edgeware', 'creditcoin', 'vara_network', 'goldberg_testnet', 'availTuringTest', 'avail_mainnet', 'vara_testnet', 'dentnet', 'cere', '
|
|
6
|
-
assetHub: ['statemine', 'statemint', 'westend_assethub'],
|
|
5
|
+
relay: ['polkadot', 'kusama', 'aleph', 'polkadex', 'ternoa', 'alephTest', 'polkadexTest', 'westend', 'kate', 'edgeware', 'creditcoin', 'vara_network', 'goldberg_testnet', 'availTuringTest', 'avail_mainnet', 'vara_testnet', 'dentnet', 'cere', 'zkverify', 'zkverify_testnet', 'paseoTest'],
|
|
6
|
+
assetHub: ['statemine', 'statemint', 'westend_assethub', 'paseo_assethub'],
|
|
7
7
|
para: ['moonbeam', 'moonriver', 'moonbase', 'turing', 'turingStaging', 'bifrost', 'bifrost_testnet', 'calamari_test', 'calamari', 'manta_network', 'polimec'],
|
|
8
8
|
astar: ['astar', 'shiden', 'shibuya'],
|
|
9
9
|
amplitude: ['amplitude', 'amplitude_test', 'pendulum', 'krest_network'],
|
|
10
10
|
// amplitude and kilt only share some common logic
|
|
11
|
-
nominationPool: ['polkadot', 'kusama', 'westend', 'alephTest', 'aleph', 'kate', 'vara_network', 'goldberg_testnet', 'availTuringTest', 'avail_mainnet', 'vara_testnet', 'cere', 'analog_timechain'],
|
|
11
|
+
nominationPool: ['polkadot', 'kusama', 'westend', 'alephTest', 'aleph', 'kate', 'vara_network', 'goldberg_testnet', 'availTuringTest', 'avail_mainnet', 'vara_testnet', 'cere', 'analog_timechain', 'paseoTest'],
|
|
12
12
|
bifrost: ['bifrost', 'bifrost_testnet'],
|
|
13
13
|
aleph: ['aleph', 'alephTest'],
|
|
14
14
|
// A0 has distinct tokenomics
|
|
@@ -56,24 +56,29 @@ export default class EarningService {
|
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
const minAmountPercent = {};
|
|
59
|
-
const
|
|
59
|
+
const ahMigratedChainMap = await this.state.chainService.fetchAhMapChain();
|
|
60
|
+
const ahMigratedChains = Object.values(ahMigratedChainMap);
|
|
60
61
|
for (const chain of chains) {
|
|
61
62
|
const handlers = [];
|
|
62
63
|
const chainInfo = this.state.getChainInfo(chain);
|
|
63
64
|
const symbol = _getChainSubstrateTokenSymbol(chainInfo);
|
|
64
65
|
if (_STAKING_CHAIN_GROUP.relay.includes(chain)) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
const ahChain = ahMapChain[chain];
|
|
69
|
-
if (ahChain) {
|
|
70
|
-
handlers.push(new RelayNativeStakingPoolHandler(this.state, ahChain));
|
|
66
|
+
const ahMigratedChain = ahMigratedChainMap[chain];
|
|
67
|
+
if (ahMigratedChain) {
|
|
71
68
|
const relaySlug = RelayNativeStakingPoolHandler.generateSlug(symbol, chain);
|
|
72
69
|
this.inactivePoolSlug.add(relaySlug);
|
|
73
70
|
} else {
|
|
74
71
|
handlers.push(new RelayNativeStakingPoolHandler(this.state, chain));
|
|
75
72
|
}
|
|
76
73
|
}
|
|
74
|
+
if (_STAKING_CHAIN_GROUP.assetHub.includes(chain)) {
|
|
75
|
+
// define list of migrating asset hub
|
|
76
|
+
if (ahMigratedChains.includes(chain)) {
|
|
77
|
+
// check if chain migrate with online data
|
|
78
|
+
handlers.push(new RelayNativeStakingPoolHandler(this.state, chain));
|
|
79
|
+
handlers.push(new NominationPoolHandler(this.state, chain));
|
|
80
|
+
}
|
|
81
|
+
}
|
|
77
82
|
if (_STAKING_CHAIN_GROUP.para.includes(chain)) {
|
|
78
83
|
handlers.push(new ParaNativeStakingPoolHandler(this.state, chain));
|
|
79
84
|
}
|
|
@@ -96,9 +101,8 @@ export default class EarningService {
|
|
|
96
101
|
handlers.push(new EnergyNativeStakingPoolHandler(this.state, chain));
|
|
97
102
|
}
|
|
98
103
|
if (_STAKING_CHAIN_GROUP.nominationPool.includes(chain)) {
|
|
99
|
-
const
|
|
100
|
-
if (
|
|
101
|
-
handlers.push(new NominationPoolHandler(this.state, ahChain));
|
|
104
|
+
const ahMigratedChain = ahMigratedChainMap[chain];
|
|
105
|
+
if (ahMigratedChain) {
|
|
102
106
|
const relaySlug = NominationPoolHandler.generateSlug(symbol, chain);
|
|
103
107
|
this.inactivePoolSlug.add(relaySlug);
|
|
104
108
|
} else {
|
|
@@ -52,6 +52,9 @@ function getBlockExplorerAccountRoute(explorerLink) {
|
|
|
52
52
|
if (explorerLink.includes('uniquescan.io')) {
|
|
53
53
|
return 'account';
|
|
54
54
|
}
|
|
55
|
+
if (explorerLink.includes('node.xode.net')) {
|
|
56
|
+
return 'account';
|
|
57
|
+
}
|
|
55
58
|
if (explorerLink.includes('tonviewer.com')) {
|
|
56
59
|
return '';
|
|
57
60
|
}
|
|
@@ -116,9 +119,6 @@ export function getExplorerLink(chainInfo, value, type) {
|
|
|
116
119
|
const address = u8aToHex(decodeAddress(value));
|
|
117
120
|
return `${explorerLink}${explorerLink.endsWith('/') ? '' : '/'}${route}/${address}`;
|
|
118
121
|
}
|
|
119
|
-
if (chainInfo.slug === 'xode') {
|
|
120
|
-
return undefined;
|
|
121
|
-
}
|
|
122
122
|
return `${explorerLink}${explorerLink.endsWith('/') ? '' : '/'}${route}/${value}`;
|
|
123
123
|
}
|
|
124
124
|
if (explorerLink && isHex(hexAddPrefix(value))) {
|