@subwallet/extension-base 1.1.20-4 → 1.1.21-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 +1 -1
- package/cjs/services/chain-service/index.js +5 -2
- package/cjs/services/setting-service/SettingService.js +3 -3
- package/package.json +6 -6
- package/packageInfo.js +1 -1
- package/services/chain-service/constants.js +1 -1
- package/services/chain-service/index.js +5 -2
- package/services/setting-service/SettingService.js +3 -3
package/cjs/packageInfo.js
CHANGED
|
@@ -69,7 +69,7 @@ const _STAKING_CHAIN_GROUP = {
|
|
|
69
69
|
amplitude: ['amplitude', 'amplitude_test', 'kilt', 'kilt_peregrine', 'pendulum'],
|
|
70
70
|
// amplitude and kilt only share some common logic
|
|
71
71
|
kilt: ['kilt', 'kilt_peregrine'],
|
|
72
|
-
nominationPool: ['polkadot', 'kusama', 'westend', 'alephTest', 'aleph', 'kate'],
|
|
72
|
+
nominationPool: ['polkadot', 'kusama', 'westend', 'alephTest', 'aleph', 'kate', 'vara_network'],
|
|
73
73
|
bifrost: ['bifrost', 'bifrost_testnet'],
|
|
74
74
|
aleph: ['aleph', 'alephTest'],
|
|
75
75
|
// A0 has distinct tokenomics
|
|
@@ -721,7 +721,8 @@ class ChainService {
|
|
|
721
721
|
substrateInfo: storedChainInfo.substrateInfo,
|
|
722
722
|
isTestnet: storedChainInfo.isTestnet,
|
|
723
723
|
chainStatus: storedChainInfo.chainStatus,
|
|
724
|
-
icon: storedChainInfo.icon
|
|
724
|
+
icon: storedChainInfo.icon,
|
|
725
|
+
extraInfo: null
|
|
725
726
|
};
|
|
726
727
|
this.dataMap.chainStateMap[storedSlug] = {
|
|
727
728
|
currentProvider: storedChainInfo.currentProvider,
|
|
@@ -921,7 +922,9 @@ class ChainService {
|
|
|
921
922
|
evmInfo,
|
|
922
923
|
isTestnet: false,
|
|
923
924
|
chainStatus: _types._ChainStatus.ACTIVE,
|
|
924
|
-
icon: ''
|
|
925
|
+
icon: '',
|
|
926
|
+
// Todo: Allow update with custom chain,
|
|
927
|
+
extraInfo: null
|
|
925
928
|
};
|
|
926
929
|
|
|
927
930
|
// insert new chainInfo
|
|
@@ -61,14 +61,14 @@ class SettingService {
|
|
|
61
61
|
// Use for mobile only
|
|
62
62
|
get isAlwaysRequired() {
|
|
63
63
|
return new Promise(resolve => {
|
|
64
|
-
this.
|
|
64
|
+
this.getSettings(value => {
|
|
65
65
|
resolve(!value.timeAutoLock);
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
resetWallet() {
|
|
70
|
-
this.
|
|
71
|
-
this.
|
|
70
|
+
this.setSettings(_constants2.DEFAULT_SETTING);
|
|
71
|
+
this.setPassPhishing({});
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
exports.default = SettingService;
|
package/package.json
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"./cjs/detectPackage.js"
|
|
18
18
|
],
|
|
19
19
|
"type": "module",
|
|
20
|
-
"version": "1.1.
|
|
20
|
+
"version": "1.1.21-0",
|
|
21
21
|
"main": "./cjs/index.js",
|
|
22
22
|
"module": "./index.js",
|
|
23
23
|
"types": "./index.d.ts",
|
|
@@ -1307,11 +1307,11 @@
|
|
|
1307
1307
|
"@reduxjs/toolkit": "^1.9.1",
|
|
1308
1308
|
"@sora-substrate/type-definitions": "^1.17.7",
|
|
1309
1309
|
"@substrate/connect": "^0.7.26",
|
|
1310
|
-
"@subwallet/chain-list": "0.2.
|
|
1311
|
-
"@subwallet/extension-base": "^1.1.
|
|
1312
|
-
"@subwallet/extension-chains": "^1.1.
|
|
1313
|
-
"@subwallet/extension-dapp": "^1.1.
|
|
1314
|
-
"@subwallet/extension-inject": "^1.1.
|
|
1310
|
+
"@subwallet/chain-list": "0.2.23",
|
|
1311
|
+
"@subwallet/extension-base": "^1.1.21-0",
|
|
1312
|
+
"@subwallet/extension-chains": "^1.1.21-0",
|
|
1313
|
+
"@subwallet/extension-dapp": "^1.1.21-0",
|
|
1314
|
+
"@subwallet/extension-inject": "^1.1.21-0",
|
|
1315
1315
|
"@subwallet/keyring": "^0.1.1",
|
|
1316
1316
|
"@subwallet/ui-keyring": "^0.1.1",
|
|
1317
1317
|
"@walletconnect/sign-client": "^2.8.4",
|
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.1.
|
|
10
|
+
version: '1.1.21-0'
|
|
11
11
|
};
|
|
@@ -57,7 +57,7 @@ export const _STAKING_CHAIN_GROUP = {
|
|
|
57
57
|
amplitude: ['amplitude', 'amplitude_test', 'kilt', 'kilt_peregrine', 'pendulum'],
|
|
58
58
|
// amplitude and kilt only share some common logic
|
|
59
59
|
kilt: ['kilt', 'kilt_peregrine'],
|
|
60
|
-
nominationPool: ['polkadot', 'kusama', 'westend', 'alephTest', 'aleph', 'kate'],
|
|
60
|
+
nominationPool: ['polkadot', 'kusama', 'westend', 'alephTest', 'aleph', 'kate', 'vara_network'],
|
|
61
61
|
bifrost: ['bifrost', 'bifrost_testnet'],
|
|
62
62
|
aleph: ['aleph', 'alephTest'],
|
|
63
63
|
// A0 has distinct tokenomics
|
|
@@ -705,7 +705,8 @@ export class ChainService {
|
|
|
705
705
|
substrateInfo: storedChainInfo.substrateInfo,
|
|
706
706
|
isTestnet: storedChainInfo.isTestnet,
|
|
707
707
|
chainStatus: storedChainInfo.chainStatus,
|
|
708
|
-
icon: storedChainInfo.icon
|
|
708
|
+
icon: storedChainInfo.icon,
|
|
709
|
+
extraInfo: null
|
|
709
710
|
};
|
|
710
711
|
this.dataMap.chainStateMap[storedSlug] = {
|
|
711
712
|
currentProvider: storedChainInfo.currentProvider,
|
|
@@ -904,7 +905,9 @@ export class ChainService {
|
|
|
904
905
|
evmInfo,
|
|
905
906
|
isTestnet: false,
|
|
906
907
|
chainStatus: _ChainStatus.ACTIVE,
|
|
907
|
-
icon: ''
|
|
908
|
+
icon: '',
|
|
909
|
+
// Todo: Allow update with custom chain,
|
|
910
|
+
extraInfo: null
|
|
908
911
|
};
|
|
909
912
|
|
|
910
913
|
// insert new chainInfo
|
|
@@ -53,13 +53,13 @@ export default class SettingService {
|
|
|
53
53
|
// Use for mobile only
|
|
54
54
|
get isAlwaysRequired() {
|
|
55
55
|
return new Promise(resolve => {
|
|
56
|
-
this.
|
|
56
|
+
this.getSettings(value => {
|
|
57
57
|
resolve(!value.timeAutoLock);
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
resetWallet() {
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
62
|
+
this.setSettings(DEFAULT_SETTING);
|
|
63
|
+
this.setPassPhishing({});
|
|
64
64
|
}
|
|
65
65
|
}
|