@subwallet/extension-base 1.0.4-1 → 1.0.5-1

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.
Files changed (134) hide show
  1. package/background/KoniTypes.d.ts +12 -1
  2. package/background/KoniTypes.js +1 -0
  3. package/background/errors/TransactionError.js +4 -0
  4. package/background/handlers/State.d.ts +1 -1
  5. package/background/handlers/State.js +2 -8
  6. package/background/handlers/subscriptions.js +0 -1
  7. package/background/types.d.ts +2 -2
  8. package/cjs/background/KoniTypes.js +1 -0
  9. package/cjs/background/errors/TransactionError.js +4 -0
  10. package/cjs/background/handlers/State.js +1 -7
  11. package/cjs/background/handlers/subscriptions.js +0 -1
  12. package/cjs/constants/index.js +6 -6
  13. package/cjs/koni/api/coingecko.js +1 -4
  14. package/cjs/koni/api/dotsama/balance.js +7 -5
  15. package/cjs/koni/api/dotsama/crowdloan.js +0 -4
  16. package/cjs/koni/api/dotsama/transfer.js +0 -4
  17. package/cjs/koni/api/nft/acala_nft/index.js +1 -1
  18. package/cjs/koni/api/nft/bit.country/index.js +1 -1
  19. package/cjs/koni/api/nft/evm_nft/index.js +2 -3
  20. package/cjs/koni/api/nft/index.js +1 -2
  21. package/cjs/koni/api/nft/karura_nft/index.js +1 -1
  22. package/cjs/koni/api/nft/quartz_nft/index.js +1 -1
  23. package/cjs/koni/api/nft/rmrk_nft/index.js +2 -3
  24. package/cjs/koni/api/nft/statemine_nft/index.js +1 -1
  25. package/cjs/koni/api/nft/transfer.js +5 -5
  26. package/cjs/koni/api/nft/unique_nft/index.js +1 -1
  27. package/cjs/koni/api/nft/unique_nft/uniqueNftV2.js +0 -1
  28. package/cjs/koni/api/nft/wasm_nft/index.js +1 -2
  29. package/cjs/koni/api/staking/bonding/astar.js +28 -12
  30. package/cjs/koni/api/staking/bonding/utils.js +4 -0
  31. package/cjs/koni/api/staking/relayChain.js +0 -1
  32. package/cjs/koni/api/staking/subsquidStaking.js +0 -2
  33. package/cjs/koni/api/tokens/wasm/index.js +0 -1
  34. package/cjs/koni/api/tokens/wasm/utils.js +0 -1
  35. package/cjs/koni/api/xcm/index.js +0 -1
  36. package/cjs/koni/background/cron.js +0 -45
  37. package/cjs/koni/background/handlers/Extension.js +163 -133
  38. package/cjs/koni/background/handlers/State.js +18 -3
  39. package/cjs/koni/background/handlers/Tabs.js +34 -2
  40. package/cjs/koni/background/handlers/index.js +3 -2
  41. package/cjs/koni/background/subscription.js +0 -26
  42. package/cjs/packageInfo.js +1 -1
  43. package/cjs/services/chain-service/handler/EvmChainHandler.js +1 -1
  44. package/cjs/services/chain-service/handler/SubstrateChainHandler.js +2 -9
  45. package/cjs/services/chain-service/handler/light-client/index.js +9 -6
  46. package/cjs/services/chain-service/index.js +0 -2
  47. package/cjs/services/chain-service/utils.js +3 -0
  48. package/cjs/services/history-service/helpers/recoverHistoryStatus.js +108 -0
  49. package/cjs/services/history-service/index.js +60 -5
  50. package/cjs/services/history-service/subsquid-multi-chain-history.js +3 -2
  51. package/cjs/services/history-service/testChainMap.js +724 -0
  52. package/cjs/services/keyring-service/index.js +0 -2
  53. package/cjs/services/migration-service/index.js +0 -3
  54. package/cjs/services/migration-service/scripts/MigrateAutoLock.js +30 -0
  55. package/cjs/services/migration-service/scripts/MigrateChainPatrol.js +30 -0
  56. package/cjs/services/migration-service/scripts/index.js +5 -1
  57. package/cjs/services/price-service/coingecko.js +1 -1
  58. package/cjs/services/price-service/index.js +0 -3
  59. package/cjs/services/request-service/handler/AuthRequestHandler.js +1 -1
  60. package/cjs/services/setting-service/constants.js +8 -2
  61. package/cjs/services/storage-service/DatabaseService.js +2 -44
  62. package/cjs/services/transaction-service/constants.js +11 -0
  63. package/cjs/services/transaction-service/index.js +28 -9
  64. package/cjs/services/transaction-service/utils.js +25 -14
  65. package/constants/index.d.ts +1 -1
  66. package/constants/index.js +1 -1
  67. package/koni/api/coingecko.js +1 -4
  68. package/koni/api/dotsama/balance.js +7 -5
  69. package/koni/api/dotsama/crowdloan.js +0 -4
  70. package/koni/api/dotsama/transfer.js +0 -4
  71. package/koni/api/nft/acala_nft/index.js +1 -1
  72. package/koni/api/nft/bit.country/index.js +1 -1
  73. package/koni/api/nft/evm_nft/index.js +2 -3
  74. package/koni/api/nft/index.js +1 -2
  75. package/koni/api/nft/karura_nft/index.js +1 -1
  76. package/koni/api/nft/quartz_nft/index.js +1 -1
  77. package/koni/api/nft/rmrk_nft/index.js +2 -3
  78. package/koni/api/nft/statemine_nft/index.js +1 -1
  79. package/koni/api/nft/transfer.js +5 -5
  80. package/koni/api/nft/unique_nft/index.js +1 -1
  81. package/koni/api/nft/unique_nft/uniqueNftV2.js +0 -1
  82. package/koni/api/nft/wasm_nft/index.js +1 -2
  83. package/koni/api/staking/bonding/astar.d.ts +2 -1
  84. package/koni/api/staking/bonding/astar.js +27 -12
  85. package/koni/api/staking/bonding/utils.js +4 -0
  86. package/koni/api/staking/relayChain.js +0 -1
  87. package/koni/api/staking/subsquidStaking.js +0 -2
  88. package/koni/api/tokens/wasm/index.js +0 -1
  89. package/koni/api/tokens/wasm/utils.js +0 -1
  90. package/koni/api/xcm/index.js +0 -1
  91. package/koni/background/cron.js +0 -45
  92. package/koni/background/handlers/Extension.d.ts +2 -0
  93. package/koni/background/handlers/Extension.js +78 -50
  94. package/koni/background/handlers/State.d.ts +3 -1
  95. package/koni/background/handlers/State.js +18 -3
  96. package/koni/background/handlers/Tabs.d.ts +1 -0
  97. package/koni/background/handlers/Tabs.js +32 -1
  98. package/koni/background/handlers/index.js +3 -2
  99. package/koni/background/subscription.d.ts +0 -1
  100. package/koni/background/subscription.js +0 -26
  101. package/package.json +55 -34
  102. package/packageInfo.js +1 -1
  103. package/services/chain-service/handler/EvmChainHandler.js +1 -1
  104. package/services/chain-service/handler/SubstrateChainHandler.js +2 -9
  105. package/services/chain-service/handler/light-client/index.js +8 -6
  106. package/services/chain-service/helper/api-helper/spec/acala.d.ts +3 -3
  107. package/services/chain-service/index.js +0 -2
  108. package/services/chain-service/utils.js +3 -0
  109. package/services/history-service/helpers/recoverHistoryStatus.d.ts +11 -0
  110. package/services/history-service/helpers/recoverHistoryStatus.js +98 -0
  111. package/services/history-service/index.d.ts +6 -0
  112. package/services/history-service/index.js +61 -6
  113. package/services/history-service/subsquid-multi-chain-history.js +3 -2
  114. package/services/history-service/testChainMap.d.ts +3 -0
  115. package/services/history-service/testChainMap.js +716 -0
  116. package/services/keyring-service/index.js +0 -2
  117. package/services/migration-service/index.js +0 -3
  118. package/services/migration-service/scripts/MigrateAutoLock.d.ts +4 -0
  119. package/services/migration-service/scripts/MigrateAutoLock.js +22 -0
  120. package/services/migration-service/scripts/MigrateChainPatrol.d.ts +4 -0
  121. package/services/migration-service/scripts/MigrateChainPatrol.js +22 -0
  122. package/services/migration-service/scripts/index.js +5 -1
  123. package/services/price-service/coingecko.js +1 -1
  124. package/services/price-service/index.js +0 -3
  125. package/services/request-service/handler/AuthRequestHandler.js +1 -1
  126. package/services/setting-service/constants.d.ts +4 -2
  127. package/services/setting-service/constants.js +5 -1
  128. package/services/storage-service/DatabaseService.js +2 -44
  129. package/services/transaction-service/constants.d.ts +1 -0
  130. package/services/transaction-service/constants.js +4 -0
  131. package/services/transaction-service/index.d.ts +1 -0
  132. package/services/transaction-service/index.js +29 -10
  133. package/services/transaction-service/utils.d.ts +1 -1
  134. package/services/transaction-service/utils.js +24 -13
@@ -0,0 +1,724 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TEST_CHAIN_MAP = exports.TEST_CHAIN_LIST = void 0;
7
+ // Copyright 2019-2022 @polkadot/extension-base authors & contributors
8
+ // SPDX-License-Identifier: Apache-2.0
9
+
10
+ const TEST_CHAIN_LIST = [{
11
+ slug: 'acala',
12
+ name: 'Acala',
13
+ isTestnet: false,
14
+ chainStatus: 'ACTIVE',
15
+ providers: {
16
+ 'Acala Foundation 0': 'wss://acala-rpc-0.aca-api.network',
17
+ 'Acala Foundation 1': 'wss://acala-rpc-1.aca-api.network',
18
+ 'Acala Foundation 2': 'wss://acala-rpc-2.aca-api.network/ws',
19
+ 'Acala Foundation 3': 'wss://acala-rpc-3.aca-api.network/ws',
20
+ 'Polkawallet 0': 'wss://acala.polkawallet.io',
21
+ OnFinality: 'wss://acala-polkadot.api.onfinality.io/public-ws',
22
+ Dwellir: 'wss://acala-rpc.dwellir.com'
23
+ },
24
+ substrateInfo: {
25
+ paraId: 2000,
26
+ relaySlug: 'polkadot',
27
+ genesisHash: '0xfc41b9bd8ef8fe53d58c7ea67c794c7ec9a73daf05e6d54b14ff6342c99ba64c',
28
+ addressPrefix: 10,
29
+ crowdloanUrl: 'https://distribution.acala.network/',
30
+ chainType: 'PARACHAIN',
31
+ blockExplorer: 'https://acala.subscan.io/',
32
+ symbol: 'ACA',
33
+ existentialDeposit: '100000000000',
34
+ decimals: 12,
35
+ hasNativeNft: true,
36
+ supportStaking: false,
37
+ supportSmartContract: null
38
+ },
39
+ active: false,
40
+ currentProvider: 'Acala Foundation 0'
41
+ }, {
42
+ slug: 'alephTest',
43
+ name: 'Aleph Zero Testnet',
44
+ isTestnet: true,
45
+ chainStatus: 'ACTIVE',
46
+ providers: {
47
+ 'Aleph Zero Foundation': 'wss://ws.test.azero.dev'
48
+ },
49
+ substrateInfo: {
50
+ paraId: null,
51
+ relaySlug: null,
52
+ genesisHash: '0x05d5279c52c484cc80396535a316add7d47b1c5b9e0398dd1f584149341460c5',
53
+ addressPrefix: 42,
54
+ crowdloanUrl: null,
55
+ chainType: 'RELAYCHAIN',
56
+ blockExplorer: null,
57
+ symbol: 'TZERO',
58
+ existentialDeposit: '500',
59
+ decimals: 12,
60
+ hasNativeNft: false,
61
+ supportSmartContract: ['PSP34', 'PSP22'],
62
+ supportStaking: true
63
+ },
64
+ evmInfo: null,
65
+ active: true,
66
+ currentProvider: 'Aleph Zero Foundation'
67
+ }, {
68
+ slug: 'amplitude',
69
+ name: 'Amplitude',
70
+ isTestnet: false,
71
+ chainStatus: 'ACTIVE',
72
+ providers: {
73
+ Amplitude: 'wss://rpc-amplitude.pendulumchain.tech'
74
+ },
75
+ substrateInfo: {
76
+ paraId: 2124,
77
+ relaySlug: 'kusama',
78
+ genesisHash: '0xcceae7f3b9947cdb67369c026ef78efa5f34a08fe5808d373c04421ecf4f1aaf',
79
+ addressPrefix: 57,
80
+ crowdloanUrl: null,
81
+ chainType: 'PARACHAIN',
82
+ blockExplorer: null,
83
+ symbol: 'AMPE',
84
+ existentialDeposit: '1000000000',
85
+ decimals: 12,
86
+ hasNativeNft: false,
87
+ supportStaking: true,
88
+ supportSmartContract: null
89
+ },
90
+ evmInfo: null,
91
+ active: false,
92
+ currentProvider: 'Amplitude'
93
+ }, {
94
+ slug: 'amplitude_test',
95
+ name: 'Amplitude Testnet',
96
+ isTestnet: true,
97
+ chainStatus: 'ACTIVE',
98
+ providers: {
99
+ Amplitude: 'wss://rpc-foucoco.pendulumchain.tech'
100
+ },
101
+ substrateInfo: {
102
+ paraId: 2124,
103
+ relaySlug: 'rococo',
104
+ genesisHash: '0x67221cd96c1551b72d55f65164d6a39f31b570c77a05c90e31931b0e2f379e13',
105
+ addressPrefix: 57,
106
+ crowdloanUrl: null,
107
+ chainType: 'PARACHAIN',
108
+ blockExplorer: null,
109
+ symbol: 'AMPE',
110
+ existentialDeposit: '1000000000',
111
+ decimals: 12,
112
+ hasNativeNft: false,
113
+ supportStaking: true,
114
+ supportSmartContract: null
115
+ },
116
+ evmInfo: null,
117
+ active: false,
118
+ currentProvider: 'Amplitude'
119
+ }, {
120
+ slug: 'astar',
121
+ name: 'Astar',
122
+ isTestnet: false,
123
+ chainStatus: 'ACTIVE',
124
+ providers: {
125
+ OnFinality: 'wss://astar.api.onfinality.io/public-ws',
126
+ Dwellir: 'wss://astar-rpc.dwellir.com',
127
+ Astar: 'wss://rpc.astar.network',
128
+ PinkNode: 'wss://public-rpc.pinknode.io/astar',
129
+ Blast: 'wss://astar.public.blastapi.io',
130
+ '1RPC': 'wss://1rpc.io/astr',
131
+ 'Light Client': 'light://substrate-connect/polkadot/astar'
132
+ },
133
+ substrateInfo: {
134
+ paraId: 2006,
135
+ relaySlug: 'polkadot',
136
+ genesisHash: '0x9eb76c5184c4ab8679d2d5d819fdf90b9c001403e9e17da2e14b6d8aec4029c6',
137
+ addressPrefix: 5,
138
+ crowdloanUrl: 'https://crowdloan.astar.network/#/',
139
+ chainType: 'PARACHAIN',
140
+ blockExplorer: 'https://astar.subscan.io/',
141
+ symbol: 'ASTR',
142
+ existentialDeposit: '1000000',
143
+ decimals: 18,
144
+ hasNativeNft: false,
145
+ supportSmartContract: ['PSP34', 'PSP22'],
146
+ supportStaking: true
147
+ },
148
+ evmInfo: null,
149
+ active: false,
150
+ currentProvider: 'OnFinality'
151
+ }, {
152
+ slug: 'astarEvm',
153
+ name: 'Astar - EVM',
154
+ isTestnet: false,
155
+ chainStatus: 'ACTIVE',
156
+ providers: {
157
+ OnFinality: 'wss://astar.api.onfinality.io/public-ws',
158
+ Dwellir: 'wss://astar-rpc.dwellir.com',
159
+ Astar: 'wss://rpc.astar.network',
160
+ PinkNode: 'wss://public-rpc.pinknode.io/astar',
161
+ Blast: 'wss://astar.public.blastapi.io',
162
+ '1RPC': 'wss://1rpc.io/astr',
163
+ 'Light Client': 'light://substrate-connect/polkadot/astar'
164
+ },
165
+ substrateInfo: null,
166
+ evmInfo: {
167
+ evmChainId: 592,
168
+ blockExplorer: 'https://blockscout.com/astar/',
169
+ symbol: 'ASTR',
170
+ decimals: 18,
171
+ existentialDeposit: '0',
172
+ supportSmartContract: ['ERC20', 'ERC721'],
173
+ abiExplorer: null
174
+ },
175
+ active: false,
176
+ currentProvider: 'OnFinality'
177
+ }, {
178
+ slug: 'bifrost',
179
+ name: 'Bifrost Kusama',
180
+ isTestnet: false,
181
+ chainStatus: 'ACTIVE',
182
+ providers: {
183
+ 'Liebi 0': 'wss://bifrost-rpc.liebi.com/ws',
184
+ Dwellir: 'wss://bifrost-rpc.dwellir.com',
185
+ OnFinality: 'wss://bifrost-parachain.api.onfinality.io/public-ws'
186
+ },
187
+ substrateInfo: {
188
+ paraId: 2001,
189
+ relaySlug: 'kusama',
190
+ genesisHash: '0x9f28c6a68e0fc9646eff64935684f6eeeece527e37bbe1f213d22caa1d9d6bed',
191
+ addressPrefix: 6,
192
+ crowdloanUrl: 'https://bifrost.app/vcrowdloan',
193
+ chainType: 'PARACHAIN',
194
+ blockExplorer: 'https://bifrost-kusama.subscan.io',
195
+ symbol: 'BNC',
196
+ existentialDeposit: '10000000000',
197
+ decimals: 12,
198
+ hasNativeNft: false,
199
+ supportStaking: true,
200
+ supportSmartContract: null
201
+ },
202
+ evmInfo: null,
203
+ active: false,
204
+ currentProvider: 'Liebi 0'
205
+ }, {
206
+ slug: 'bifrost_dot',
207
+ name: 'Bifrost Polkadot',
208
+ isTestnet: false,
209
+ chainStatus: 'ACTIVE',
210
+ providers: {
211
+ Liebi: 'wss://hk.p.bifrost-rpc.liebi.com/ws',
212
+ OnFinality: 'wss://bifrost-polkadot.api.onfinality.io/public-ws'
213
+ },
214
+ substrateInfo: {
215
+ paraId: 2030,
216
+ relaySlug: 'polkadot',
217
+ genesisHash: '0x262e1b2ad728475fd6fe88e62d34c200abe6fd693931ddad144059b1eb884e5b',
218
+ addressPrefix: 6,
219
+ crowdloanUrl: 'https://bifrost.app/vcrowdloan',
220
+ chainType: 'PARACHAIN',
221
+ blockExplorer: 'https://bifrost.subscan.io',
222
+ symbol: 'BNC',
223
+ existentialDeposit: '10000000000',
224
+ decimals: 12,
225
+ hasNativeNft: false,
226
+ supportStaking: true,
227
+ supportSmartContract: null
228
+ },
229
+ evmInfo: null,
230
+ active: false,
231
+ currentProvider: 'Liebi'
232
+ }, {
233
+ slug: 'bifrost_testnet',
234
+ name: 'Bifrost Testnet',
235
+ isTestnet: true,
236
+ chainStatus: 'ACTIVE',
237
+ providers: {
238
+ Liebi: 'wss://bifrost-rpc.rococo.liebi.com/ws'
239
+ },
240
+ substrateInfo: {
241
+ paraId: 2030,
242
+ relaySlug: 'rococo',
243
+ genesisHash: '0x8b290fa39a8808f29d7309ea99442c95bf964838aef14be5a6449ae48f8a5f1f',
244
+ addressPrefix: 6,
245
+ crowdloanUrl: null,
246
+ chainType: 'PARACHAIN',
247
+ blockExplorer: 'https://bifrost-testnet.subscan.io/',
248
+ symbol: 'BNC',
249
+ existentialDeposit: '10000000000',
250
+ decimals: 12,
251
+ hasNativeNft: false,
252
+ supportStaking: true,
253
+ supportSmartContract: null
254
+ },
255
+ evmInfo: null,
256
+ active: false,
257
+ currentProvider: 'Liebi'
258
+ }, {
259
+ slug: 'bitcountry',
260
+ name: 'Bit.Country - Alpha Net',
261
+ isTestnet: true,
262
+ chainStatus: 'ACTIVE',
263
+ providers: {
264
+ 'Metaverse Foundation': 'wss://alphanet-rpc.bit.country'
265
+ },
266
+ substrateInfo: {
267
+ paraId: null,
268
+ relaySlug: null,
269
+ genesisHash: '0xfff6fd94251f570d4c9cdf25a0475da0d7ad35160290da19dad8f9caf8bf31b5',
270
+ addressPrefix: 42,
271
+ crowdloanUrl: null,
272
+ chainType: 'RELAYCHAIN',
273
+ blockExplorer: null,
274
+ symbol: 'NUUM',
275
+ existentialDeposit: '1',
276
+ decimals: 18,
277
+ hasNativeNft: true,
278
+ supportSmartContract: null,
279
+ supportStaking: false
280
+ },
281
+ evmInfo: null,
282
+ active: false,
283
+ currentProvider: 'Metaverse Foundation'
284
+ }, {
285
+ slug: 'bobabase',
286
+ name: 'Bobabase Testnet',
287
+ isTestnet: true,
288
+ chainStatus: 'ACTIVE',
289
+ providers: {
290
+ RPC: 'https://bobabase.boba.network',
291
+ 'Replica RPC': 'https://replica.bobabase.boba.network'
292
+ },
293
+ substrateInfo: null,
294
+ evmInfo: {
295
+ evmChainId: 1297,
296
+ blockExplorer: null,
297
+ symbol: 'BOBA',
298
+ decimals: 18,
299
+ existentialDeposit: '0',
300
+ supportSmartContract: ['ERC20', 'ERC721'],
301
+ abiExplorer: 'https://blockexplorer.bobabase.boba.network'
302
+ },
303
+ active: false,
304
+ currentProvider: 'RPC'
305
+ }, {
306
+ slug: 'calamari',
307
+ name: 'Calamari Parachain',
308
+ isTestnet: false,
309
+ chainStatus: 'ACTIVE',
310
+ providers: {
311
+ 'Manta Network': 'wss://ws.calamari.systems/',
312
+ OnFinality: 'wss://calamari.api.onfinality.io/public-ws'
313
+ },
314
+ substrateInfo: {
315
+ paraId: 2084,
316
+ relaySlug: 'kusama',
317
+ genesisHash: '0x4ac80c99289841dd946ef92765bf659a307d39189b3ce374a92b5f0415ee17a1',
318
+ addressPrefix: 78,
319
+ crowdloanUrl: 'https://calamari.network/',
320
+ chainType: 'PARACHAIN',
321
+ blockExplorer: 'https://calamari.subscan.io/',
322
+ symbol: 'KMA',
323
+ existentialDeposit: '100000000000',
324
+ decimals: 12,
325
+ hasNativeNft: false,
326
+ supportStaking: true,
327
+ supportSmartContract: null
328
+ },
329
+ evmInfo: null,
330
+ active: false,
331
+ currentProvider: 'Manta Network'
332
+ }, {
333
+ slug: 'equilibrium_parachain',
334
+ name: 'Equilibrium',
335
+ isTestnet: false,
336
+ chainStatus: 'ACTIVE',
337
+ providers: {
338
+ Equilibrium: 'wss://node.pol.equilibrium.io',
339
+ Dwellir: 'wss://equilibrium-rpc.dwellir.com'
340
+ },
341
+ substrateInfo: {
342
+ paraId: 2011,
343
+ relaySlug: 'polkadot',
344
+ genesisHash: '0x89d3ec46d2fb43ef5a9713833373d5ea666b092fa8fd68fbc34596036571b907',
345
+ addressPrefix: 68,
346
+ crowdloanUrl: 'https://equilibrium.io/en/crowdloan#bid',
347
+ chainType: 'PARACHAIN',
348
+ blockExplorer: 'https://equilibrium.subscan.io',
349
+ symbol: 'EQ',
350
+ existentialDeposit: '100000000',
351
+ decimals: 9,
352
+ hasNativeNft: false,
353
+ supportSmartContract: null,
354
+ supportStaking: false
355
+ },
356
+ evmInfo: null,
357
+ active: false,
358
+ currentProvider: 'Equilibrium'
359
+ }, {
360
+ slug: 'ethereum',
361
+ name: 'Ethereum',
362
+ isTestnet: false,
363
+ chainStatus: 'ACTIVE',
364
+ providers: {
365
+ Cloudflare: 'https://cloudflare-eth.com',
366
+ BlastApi: 'https://eth-mainnet.public.blastapi.io',
367
+ Infura: 'https://mainnet.infura.io/v3/b6bf7d3508c941499b10025c0776eaf8'
368
+ },
369
+ substrateInfo: null,
370
+ evmInfo: {
371
+ evmChainId: 1,
372
+ blockExplorer: 'https://etherscan.io',
373
+ symbol: 'ETH',
374
+ decimals: 18,
375
+ existentialDeposit: '0',
376
+ supportSmartContract: ['ERC20', 'ERC721'],
377
+ abiExplorer: 'https://etherscan.io'
378
+ },
379
+ active: true,
380
+ currentProvider: 'Cloudflare'
381
+ }, {
382
+ slug: 'kusama',
383
+ name: 'Kusama',
384
+ isTestnet: false,
385
+ chainStatus: 'ACTIVE',
386
+ providers: {
387
+ Parity: 'wss://kusama-rpc.polkadot.io',
388
+ OnFinality: 'wss://kusama.api.onfinality.io/public-ws',
389
+ Dwellir: 'wss://kusama-rpc.dwellir.com',
390
+ 'Light Client': 'light://substrate-connect/kusama',
391
+ PinkNode: 'wss://public-rpc.pinknode.io/kusama',
392
+ RadiumBlock: 'wss://kusama.public.curie.radiumblock.xyz/ws',
393
+ '1RPC': 'wss://1rpc.io/ksm'
394
+ },
395
+ substrateInfo: {
396
+ paraId: null,
397
+ relaySlug: null,
398
+ genesisHash: '0xb0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe',
399
+ addressPrefix: 2,
400
+ crowdloanUrl: null,
401
+ chainType: 'RELAYCHAIN',
402
+ blockExplorer: 'https://kusama.subscan.io/',
403
+ symbol: 'KSM',
404
+ existentialDeposit: '333333333',
405
+ decimals: 12,
406
+ hasNativeNft: true,
407
+ supportStaking: true,
408
+ supportSmartContract: null
409
+ },
410
+ evmInfo: null,
411
+ active: true,
412
+ currentProvider: 'Parity'
413
+ }, {
414
+ slug: 'moonbase',
415
+ name: 'Moonbase Alpha',
416
+ isTestnet: true,
417
+ chainStatus: 'ACTIVE',
418
+ providers: {
419
+ 'Moonbeam Foundation': 'wss://wss.api.moonbase.moonbeam.network',
420
+ OnFinality: 'wss://moonbeam-alpha.api.onfinality.io/public-ws',
421
+ Blast: 'wss://moonbase-alpha.public.blastapi.io'
422
+ },
423
+ substrateInfo: {
424
+ paraId: 1000,
425
+ relaySlug: null,
426
+ genesisHash: '0x91bc6e169807aaa54802737e1c504b2577d4fafedd5a02c10293b1cd60e39527',
427
+ addressPrefix: 1287,
428
+ crowdloanUrl: null,
429
+ chainType: 'PARACHAIN',
430
+ blockExplorer: 'https://moonbase.subscan.io/',
431
+ symbol: 'DEV',
432
+ existentialDeposit: '0',
433
+ decimals: 18,
434
+ hasNativeNft: false,
435
+ supportStaking: true,
436
+ supportSmartContract: null
437
+ },
438
+ evmInfo: {
439
+ evmChainId: 1287,
440
+ blockExplorer: 'https://moonbase.moonscan.io/',
441
+ symbol: 'DEV',
442
+ decimals: 18,
443
+ existentialDeposit: '0',
444
+ supportSmartContract: ['ERC721', 'ERC20'],
445
+ abiExplorer: 'https://api-moonbase.moonscan.io/api?module=contract&action=getabi'
446
+ },
447
+ active: true,
448
+ currentProvider: 'Moonbeam Foundation'
449
+ }, {
450
+ slug: 'moonbeam',
451
+ name: 'Moonbeam',
452
+ isTestnet: false,
453
+ chainStatus: 'ACTIVE',
454
+ providers: {
455
+ 'Moonbeam Foundation': 'wss://wss.api.moonbeam.network',
456
+ OnFinality: 'wss://moonbeam.api.onfinality.io/public-ws',
457
+ Dwellir: 'wss://moonbeam-rpc.dwellir.com',
458
+ '1rpc': 'wss://1rpc.io/glmr',
459
+ PinkNode: 'wss://public-rpc.pinknode.io/moonbeam',
460
+ Blast: 'wss://moonbeam.public.blastapi.io'
461
+ },
462
+ substrateInfo: {
463
+ paraId: 2004,
464
+ relaySlug: 'polkadot',
465
+ genesisHash: '0xfe58ea77779b7abda7da4ec526d14db9b1e9cd40a217c34892af80a9b332b76d',
466
+ addressPrefix: 1284,
467
+ crowdloanUrl: 'https://moonbeam.foundation/moonbeam-crowdloan/',
468
+ chainType: 'PARACHAIN',
469
+ blockExplorer: 'https://moonbeam.subscan.io/',
470
+ symbol: 'GLMR',
471
+ existentialDeposit: '0',
472
+ decimals: 18,
473
+ hasNativeNft: false,
474
+ supportStaking: true,
475
+ supportSmartContract: null
476
+ },
477
+ evmInfo: {
478
+ evmChainId: 1284,
479
+ blockExplorer: 'https://moonscan.io/',
480
+ symbol: 'GLMR',
481
+ decimals: 18,
482
+ existentialDeposit: '0',
483
+ supportSmartContract: ['ERC721', 'ERC20'],
484
+ abiExplorer: 'https://api-moonbeam.moonscan.io/api?module=contract&action=getabi'
485
+ },
486
+ active: true,
487
+ currentProvider: 'Moonbeam Foundation'
488
+ }, {
489
+ slug: 'moonriver',
490
+ name: 'Moonriver',
491
+ isTestnet: false,
492
+ chainStatus: 'ACTIVE',
493
+ providers: {
494
+ 'Moonbeam Foundation': 'wss://wss.api.moonriver.moonbeam.network',
495
+ OnFinality: 'wss://moonriver.api.onfinality.io/public-ws',
496
+ Blast: 'wss://moonriver.public.blastapi.io',
497
+ Dwellir: 'wss://moonriver-rpc.dwellir.com',
498
+ Pinknode: 'wss://public-rpc.pinknode.io/moonriver',
499
+ UnitedBloc: 'wss://moonriver.unitedbloc.com:2001'
500
+ },
501
+ substrateInfo: {
502
+ paraId: 2023,
503
+ relaySlug: 'kusama',
504
+ genesisHash: '0x401a1f9dca3da46f5c4091016c8a2f26dcea05865116b286f60f668207d1474b',
505
+ addressPrefix: 1285,
506
+ crowdloanUrl: null,
507
+ chainType: 'PARACHAIN',
508
+ blockExplorer: 'https://moonriver.subscan.io/',
509
+ symbol: 'MOVR',
510
+ existentialDeposit: '0',
511
+ decimals: 18,
512
+ hasNativeNft: false,
513
+ supportStaking: true,
514
+ supportSmartContract: null
515
+ },
516
+ evmInfo: {
517
+ evmChainId: 1285,
518
+ blockExplorer: 'https://moonriver.moonscan.io/',
519
+ symbol: 'MOVR',
520
+ decimals: 18,
521
+ existentialDeposit: '0',
522
+ supportSmartContract: ['ERC721', 'ERC20'],
523
+ abiExplorer: 'https://api-moonriver.moonscan.io/api?module=contract&action=getabi'
524
+ },
525
+ active: false,
526
+ currentProvider: 'Moonbeam Foundation'
527
+ }, {
528
+ slug: 'polkadot',
529
+ name: 'Polkadot',
530
+ isTestnet: false,
531
+ chainStatus: 'ACTIVE',
532
+ providers: {
533
+ Parity: 'wss://rpc.polkadot.io',
534
+ OnFinality: 'wss://polkadot.api.onfinality.io/public-ws',
535
+ Dwellir: 'wss://polkadot-rpc.dwellir.com',
536
+ 'Light Client': 'light://substrate-connect/polkadot',
537
+ RadiumBlock: 'wss://polkadot.public.curie.radiumblock.io/ws',
538
+ '1RPC': 'wss://1rpc.io/dot',
539
+ PinkNode: 'wss://public-rpc.pinknode.io/polkadot'
540
+ },
541
+ substrateInfo: {
542
+ paraId: null,
543
+ relaySlug: null,
544
+ genesisHash: '0x91b171bb158e2d3848fa23a9f1c25182fb8e20313b2c1eb49219da7a70ce90c3',
545
+ addressPrefix: 0,
546
+ crowdloanUrl: null,
547
+ chainType: 'RELAYCHAIN',
548
+ blockExplorer: 'https://polkadot.subscan.io/',
549
+ symbol: 'DOT',
550
+ existentialDeposit: '10000000000',
551
+ decimals: 10,
552
+ hasNativeNft: false,
553
+ supportStaking: true,
554
+ supportSmartContract: null
555
+ },
556
+ evmInfo: null,
557
+ active: true,
558
+ currentProvider: 'Parity'
559
+ }, {
560
+ slug: 'rococo',
561
+ name: 'Rococo',
562
+ isTestnet: true,
563
+ chainStatus: 'ACTIVE',
564
+ providers: {
565
+ Parity: 'wss://rococo-rpc.polkadot.io',
566
+ OnFinality: 'wss://rococo.api.onfinality.io/public-ws',
567
+ Pinknode: 'wss://rpc.pinknode.io/rococo/explorer',
568
+ 'Ares Protocol': 'wss://rococo.aresprotocol.com',
569
+ 'Light Client': 'light://substrate-connect/rococo'
570
+ },
571
+ substrateInfo: {
572
+ paraId: null,
573
+ relaySlug: null,
574
+ genesisHash: '0x6408de7737c59c238890533af25896a2c20608d8b380bb01029acb392781063e',
575
+ addressPrefix: 42,
576
+ crowdloanUrl: null,
577
+ chainType: 'RELAYCHAIN',
578
+ blockExplorer: null,
579
+ symbol: 'ROC',
580
+ existentialDeposit: '33333333',
581
+ decimals: 12,
582
+ hasNativeNft: false,
583
+ supportSmartContract: ['PSP34', 'PSP22'],
584
+ supportStaking: false
585
+ },
586
+ evmInfo: null,
587
+ active: true,
588
+ currentProvider: 'Parity'
589
+ }, {
590
+ slug: 'shibuya',
591
+ name: 'Shibuya Testnet',
592
+ isTestnet: true,
593
+ chainStatus: 'ACTIVE',
594
+ providers: {
595
+ Shibuya: 'wss://rpc.shibuya.astar.network',
596
+ Dwellir: 'wss://shibuya-rpc.dwellir.com'
597
+ },
598
+ substrateInfo: {
599
+ paraId: 1000,
600
+ relaySlug: null,
601
+ genesisHash: '0xddb89973361a170839f80f152d2e9e38a376a5a7eccefcade763f46a8e567019',
602
+ addressPrefix: 5,
603
+ crowdloanUrl: null,
604
+ chainType: 'PARACHAIN',
605
+ blockExplorer: 'https://shibuya.subscan.io/',
606
+ symbol: 'SBY',
607
+ existentialDeposit: '1000000',
608
+ decimals: 18,
609
+ hasNativeNft: false,
610
+ supportSmartContract: ['PSP34', 'PSP22'],
611
+ supportStaking: true
612
+ },
613
+ evmInfo: null,
614
+ active: false,
615
+ currentProvider: 'Shibuya'
616
+ }, {
617
+ slug: 'shibuyaEvm',
618
+ name: 'Shibuya Testnet - EVM',
619
+ isTestnet: true,
620
+ chainStatus: 'ACTIVE',
621
+ providers: {
622
+ Shibuya: 'wss://rpc.shibuya.astar.network',
623
+ Dwellir: 'wss://shibuya-rpc.dwellir.com'
624
+ },
625
+ substrateInfo: null,
626
+ evmInfo: {
627
+ evmChainId: 81,
628
+ blockExplorer: null,
629
+ symbol: 'SBY',
630
+ decimals: 18,
631
+ existentialDeposit: '0',
632
+ supportSmartContract: ['ERC20', 'ERC721'],
633
+ abiExplorer: null
634
+ },
635
+ active: false,
636
+ currentProvider: 'Shibuya'
637
+ }, {
638
+ slug: 'turing',
639
+ name: 'Turing',
640
+ isTestnet: false,
641
+ chainStatus: 'ACTIVE',
642
+ providers: {
643
+ Turing: 'wss://rpc.turing.oak.tech',
644
+ Dwellir: 'wss://turing-rpc.dwellir.com'
645
+ },
646
+ substrateInfo: {
647
+ paraId: 2114,
648
+ relaySlug: 'kusama',
649
+ genesisHash: '0x0f62b701fb12d02237a33b84818c11f621653d2b1614c777973babf4652b535d',
650
+ addressPrefix: 51,
651
+ crowdloanUrl: null,
652
+ chainType: 'PARACHAIN',
653
+ blockExplorer: 'https://turing.subscan.io/',
654
+ symbol: 'TUR',
655
+ existentialDeposit: '100000000',
656
+ decimals: 10,
657
+ hasNativeNft: false,
658
+ supportStaking: true,
659
+ supportSmartContract: null
660
+ },
661
+ evmInfo: null,
662
+ active: false,
663
+ currentProvider: 'Turing'
664
+ }, {
665
+ slug: 'turingStaging',
666
+ name: 'Turing Staging',
667
+ isTestnet: true,
668
+ chainStatus: 'ACTIVE',
669
+ providers: {
670
+ Turing: 'wss://rpc.turing-staging.oak.tech'
671
+ },
672
+ substrateInfo: {
673
+ paraId: 2114,
674
+ relaySlug: null,
675
+ genesisHash: '0xd54f0988402deb4548538626ce37e4a318441ea0529ca369400ebec4e04dfe4b',
676
+ addressPrefix: 51,
677
+ crowdloanUrl: null,
678
+ chainType: 'PARACHAIN',
679
+ blockExplorer: null,
680
+ symbol: 'TUR',
681
+ existentialDeposit: '100000000',
682
+ decimals: 10,
683
+ hasNativeNft: false,
684
+ supportStaking: true,
685
+ supportSmartContract: null
686
+ },
687
+ evmInfo: null,
688
+ active: false,
689
+ currentProvider: 'Turing'
690
+ }, {
691
+ slug: 'westend',
692
+ name: 'Westend',
693
+ isTestnet: true,
694
+ chainStatus: 'ACTIVE',
695
+ providers: {
696
+ Parity: 'wss://westend-rpc.polkadot.io',
697
+ Pinknode: 'wss://rpc.pinknode.io/westend/explorer',
698
+ Dwellir: 'wss://westend-rpc.dwellir.com',
699
+ 'Light Client': 'light://substrate-connect/westend',
700
+ DottersNet: 'wss://rpc.dotters.network/westend',
701
+ 'Dwellir Tunisia': 'wss://westend-rpc-tn.dwellir.com'
702
+ },
703
+ substrateInfo: {
704
+ paraId: null,
705
+ relaySlug: null,
706
+ genesisHash: '0xe143f23803ac50e8f6f8e62695d1ce9e4e1d68aa36c1cd2cfd15340213f3423e',
707
+ addressPrefix: 42,
708
+ crowdloanUrl: null,
709
+ chainType: 'RELAYCHAIN',
710
+ blockExplorer: 'https://westend.subscan.io/',
711
+ symbol: 'WND',
712
+ existentialDeposit: '10000000000',
713
+ decimals: 12,
714
+ hasNativeNft: false,
715
+ supportSmartContract: null,
716
+ supportStaking: true
717
+ },
718
+ evmInfo: null,
719
+ active: true,
720
+ currentProvider: 'Parity'
721
+ }];
722
+ exports.TEST_CHAIN_LIST = TEST_CHAIN_LIST;
723
+ const TEST_CHAIN_MAP = Object.fromEntries(TEST_CHAIN_LIST.map(chain => [chain.slug, chain]));
724
+ exports.TEST_CHAIN_MAP = TEST_CHAIN_MAP;