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