@swapkit/types 0.1.1 → 0.1.3
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/dist/index.cjs +2 -2
- package/dist/index.cjs.map +10 -10
- package/dist/index.js +2 -2
- package/dist/index.js.map +10 -10
- package/dist/types/chains/_createChain.d.ts +1 -1
- package/dist/types/chains/_createChain.d.ts.map +1 -1
- package/dist/types/chains/_enums.d.ts +11 -120
- package/dist/types/chains/_enums.d.ts.map +1 -1
- package/dist/types/chains/cosmos.d.ts +57 -16
- package/dist/types/chains/cosmos.d.ts.map +1 -1
- package/dist/types/chains/evm.d.ts +10 -10
- package/dist/types/chains/index.d.ts +53 -34
- package/dist/types/chains/index.d.ts.map +1 -1
- package/dist/types/chains/others.d.ts +5 -5
- package/dist/types/chains/substrate.d.ts +2 -2
- package/dist/types/chains/utxo.d.ts +6 -6
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Chain, ChainId, StagenetChain } from "./_enums";
|
|
1
|
+
import { Chain, type ChainId, StagenetChain } from "./_enums";
|
|
2
2
|
export * from "./_enums";
|
|
3
3
|
export * from "./cosmos";
|
|
4
4
|
export * from "./evm";
|
|
@@ -10,7 +10,7 @@ export declare const AllChainConfigs: (({
|
|
|
10
10
|
readonly blockExplorerUrl: "https://www.mintscan.io/cosmos";
|
|
11
11
|
readonly blockTime: 2;
|
|
12
12
|
readonly chain: Chain.Cosmos;
|
|
13
|
-
readonly chainId: ChainId.
|
|
13
|
+
readonly chainId: ChainId.Cosmos;
|
|
14
14
|
readonly explorerUrl: "https://www.mintscan.io/cosmos";
|
|
15
15
|
readonly name: "Cosmos";
|
|
16
16
|
readonly nativeCurrency: "ATOM";
|
|
@@ -23,7 +23,7 @@ export declare const AllChainConfigs: (({
|
|
|
23
23
|
readonly blockExplorerUrl: "https://runescan.io";
|
|
24
24
|
readonly blockTime: 6;
|
|
25
25
|
readonly chain: Chain.THORChain;
|
|
26
|
-
readonly chainId: ChainId.
|
|
26
|
+
readonly chainId: ChainId.THORChain;
|
|
27
27
|
readonly explorerUrl: "https://runescan.io";
|
|
28
28
|
readonly name: "THORChain";
|
|
29
29
|
readonly nativeCurrency: "RUNE";
|
|
@@ -36,7 +36,7 @@ export declare const AllChainConfigs: (({
|
|
|
36
36
|
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
37
37
|
readonly blockTime: 6;
|
|
38
38
|
readonly chain: Chain.Maya;
|
|
39
|
-
readonly chainId: ChainId.
|
|
39
|
+
readonly chainId: ChainId.Maya;
|
|
40
40
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
41
41
|
readonly name: "Maya";
|
|
42
42
|
readonly nativeCurrency: "CACAO";
|
|
@@ -44,12 +44,25 @@ export declare const AllChainConfigs: (({
|
|
|
44
44
|
readonly type: "cosmos";
|
|
45
45
|
} & {
|
|
46
46
|
chainIdHex: undefined;
|
|
47
|
+
}) | ({
|
|
48
|
+
readonly baseDecimal: 8;
|
|
49
|
+
readonly blockExplorerUrl: "";
|
|
50
|
+
readonly blockTime: 6;
|
|
51
|
+
readonly chain: Chain.Harbor;
|
|
52
|
+
readonly chainId: ChainId.Harbor;
|
|
53
|
+
readonly explorerUrl: "";
|
|
54
|
+
readonly name: "Harbor";
|
|
55
|
+
readonly nativeCurrency: "HRB";
|
|
56
|
+
readonly rpcUrl: "https://xnode.harbor-dev.xyz/xnode";
|
|
57
|
+
readonly type: "cosmos";
|
|
58
|
+
} & {
|
|
59
|
+
chainIdHex: undefined;
|
|
47
60
|
}) | ({
|
|
48
61
|
readonly baseDecimal: 6;
|
|
49
62
|
readonly blockExplorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
50
63
|
readonly blockTime: 2.2;
|
|
51
64
|
readonly chain: Chain.Kujira;
|
|
52
|
-
readonly chainId: ChainId.
|
|
65
|
+
readonly chainId: ChainId.Kujira;
|
|
53
66
|
readonly explorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
54
67
|
readonly name: "Kujira";
|
|
55
68
|
readonly nativeCurrency: "KUJI";
|
|
@@ -62,7 +75,7 @@ export declare const AllChainConfigs: (({
|
|
|
62
75
|
readonly blockExplorerUrl: "https://www.mintscan.io/noble";
|
|
63
76
|
readonly blockTime: 1.3;
|
|
64
77
|
readonly chain: Chain.Noble;
|
|
65
|
-
readonly chainId: ChainId.
|
|
78
|
+
readonly chainId: ChainId.Noble;
|
|
66
79
|
readonly explorerUrl: "https://www.mintscan.io/noble";
|
|
67
80
|
readonly name: "Noble";
|
|
68
81
|
readonly nativeCurrency: "USDC";
|
|
@@ -75,7 +88,7 @@ export declare const AllChainConfigs: (({
|
|
|
75
88
|
readonly blockExplorerUrl: "https://etherscan.io";
|
|
76
89
|
readonly blockTime: 12.5;
|
|
77
90
|
readonly chain: Chain.Ethereum;
|
|
78
|
-
readonly chainId: ChainId.
|
|
91
|
+
readonly chainId: ChainId.Ethereum;
|
|
79
92
|
readonly chainIdHex: "0x1";
|
|
80
93
|
readonly explorerUrl: "https://etherscan.io";
|
|
81
94
|
readonly name: "Ethereum";
|
|
@@ -89,7 +102,7 @@ export declare const AllChainConfigs: (({
|
|
|
89
102
|
readonly blockExplorerUrl: "https://bscscan.com";
|
|
90
103
|
readonly blockTime: 3;
|
|
91
104
|
readonly chain: Chain.BinanceSmartChain;
|
|
92
|
-
readonly chainId: ChainId.
|
|
105
|
+
readonly chainId: ChainId.BinanceSmartChain;
|
|
93
106
|
readonly chainIdHex: "0x38";
|
|
94
107
|
readonly explorerUrl: "https://bscscan.com";
|
|
95
108
|
readonly name: "BinanceSmartChain";
|
|
@@ -103,7 +116,7 @@ export declare const AllChainConfigs: (({
|
|
|
103
116
|
readonly blockExplorerUrl: "https://snowtrace.io";
|
|
104
117
|
readonly blockTime: 3;
|
|
105
118
|
readonly chain: Chain.Avalanche;
|
|
106
|
-
readonly chainId: ChainId.
|
|
119
|
+
readonly chainId: ChainId.Avalanche;
|
|
107
120
|
readonly chainIdHex: "0xa86a";
|
|
108
121
|
readonly explorerUrl: "https://snowtrace.io";
|
|
109
122
|
readonly name: "Avalanche";
|
|
@@ -117,7 +130,7 @@ export declare const AllChainConfigs: (({
|
|
|
117
130
|
readonly blockExplorerUrl: "https://polygonscan.com";
|
|
118
131
|
readonly blockTime: 2.1;
|
|
119
132
|
readonly chain: Chain.Polygon;
|
|
120
|
-
readonly chainId: ChainId.
|
|
133
|
+
readonly chainId: ChainId.Polygon;
|
|
121
134
|
readonly chainIdHex: "0x89";
|
|
122
135
|
readonly explorerUrl: "https://polygonscan.com";
|
|
123
136
|
readonly name: "Polygon";
|
|
@@ -131,7 +144,7 @@ export declare const AllChainConfigs: (({
|
|
|
131
144
|
readonly blockExplorerUrl: "https://arbiscan.io";
|
|
132
145
|
readonly blockTime: 0.3;
|
|
133
146
|
readonly chain: Chain.Arbitrum;
|
|
134
|
-
readonly chainId: ChainId.
|
|
147
|
+
readonly chainId: ChainId.Arbitrum;
|
|
135
148
|
readonly chainIdHex: "0xa4b1";
|
|
136
149
|
readonly explorerUrl: "https://arbiscan.io";
|
|
137
150
|
readonly name: "Arbitrum";
|
|
@@ -145,7 +158,7 @@ export declare const AllChainConfigs: (({
|
|
|
145
158
|
readonly blockExplorerUrl: "https://optimistic.etherscan.io";
|
|
146
159
|
readonly blockTime: 2;
|
|
147
160
|
readonly chain: Chain.Optimism;
|
|
148
|
-
readonly chainId: ChainId.
|
|
161
|
+
readonly chainId: ChainId.Optimism;
|
|
149
162
|
readonly chainIdHex: "0xa";
|
|
150
163
|
readonly explorerUrl: "https://optimistic.etherscan.io";
|
|
151
164
|
readonly name: "Optimism";
|
|
@@ -159,7 +172,7 @@ export declare const AllChainConfigs: (({
|
|
|
159
172
|
readonly blockExplorerUrl: "https://basescan.org";
|
|
160
173
|
readonly blockTime: 2;
|
|
161
174
|
readonly chain: Chain.Base;
|
|
162
|
-
readonly chainId: ChainId.
|
|
175
|
+
readonly chainId: ChainId.Base;
|
|
163
176
|
readonly chainIdHex: "0x2105";
|
|
164
177
|
readonly explorerUrl: "https://basescan.org";
|
|
165
178
|
readonly name: "Base";
|
|
@@ -173,7 +186,7 @@ export declare const AllChainConfigs: (({
|
|
|
173
186
|
readonly blockExplorerUrl: "https://gnosisscan.io";
|
|
174
187
|
readonly blockTime: 5.2;
|
|
175
188
|
readonly chain: Chain.Gnosis;
|
|
176
|
-
readonly chainId: ChainId.
|
|
189
|
+
readonly chainId: ChainId.Gnosis;
|
|
177
190
|
readonly chainIdHex: "0x64";
|
|
178
191
|
readonly explorerUrl: "https://gnosisscan.io";
|
|
179
192
|
readonly name: "Gnosis";
|
|
@@ -187,7 +200,7 @@ export declare const AllChainConfigs: (({
|
|
|
187
200
|
readonly blockExplorerUrl: "https://explorer.mainnet.aurora.dev";
|
|
188
201
|
readonly blockTime: 1;
|
|
189
202
|
readonly chain: Chain.Aurora;
|
|
190
|
-
readonly chainId: ChainId.
|
|
203
|
+
readonly chainId: ChainId.Aurora;
|
|
191
204
|
readonly chainIdHex: "0x4e454152";
|
|
192
205
|
readonly explorerUrl: "https://explorer.mainnet.aurora.dev";
|
|
193
206
|
readonly name: "Aurora";
|
|
@@ -201,7 +214,7 @@ export declare const AllChainConfigs: (({
|
|
|
201
214
|
readonly blockExplorerUrl: "https://berascan.com";
|
|
202
215
|
readonly blockTime: 2;
|
|
203
216
|
readonly chain: Chain.Berachain;
|
|
204
|
-
readonly chainId: ChainId.
|
|
217
|
+
readonly chainId: ChainId.Berachain;
|
|
205
218
|
readonly chainIdHex: "0x138de";
|
|
206
219
|
readonly explorerUrl: "https://berascan.com";
|
|
207
220
|
readonly name: "Berachain";
|
|
@@ -215,7 +228,7 @@ export declare const AllChainConfigs: (({
|
|
|
215
228
|
readonly blockExplorerUrl: "https://nearblocks.io";
|
|
216
229
|
readonly blockTime: 1;
|
|
217
230
|
readonly chain: Chain.Near;
|
|
218
|
-
readonly chainId: ChainId.
|
|
231
|
+
readonly chainId: ChainId.Near;
|
|
219
232
|
readonly explorerUrl: "https://nearblocks.io";
|
|
220
233
|
readonly name: "Near";
|
|
221
234
|
readonly nativeCurrency: "NEAR";
|
|
@@ -228,7 +241,7 @@ export declare const AllChainConfigs: (({
|
|
|
228
241
|
readonly blockExplorerUrl: "https://dashboard.radixdlt.com";
|
|
229
242
|
readonly blockTime: 5;
|
|
230
243
|
readonly chain: Chain.Radix;
|
|
231
|
-
readonly chainId: ChainId.
|
|
244
|
+
readonly chainId: ChainId.Radix;
|
|
232
245
|
readonly explorerUrl: "https://dashboard.radixdlt.com";
|
|
233
246
|
readonly name: "Radix";
|
|
234
247
|
readonly nativeCurrency: "XRD";
|
|
@@ -241,7 +254,7 @@ export declare const AllChainConfigs: (({
|
|
|
241
254
|
readonly blockExplorerUrl: "https://livenet.xrpl.org/";
|
|
242
255
|
readonly blockTime: 5;
|
|
243
256
|
readonly chain: Chain.Ripple;
|
|
244
|
-
readonly chainId: ChainId.
|
|
257
|
+
readonly chainId: ChainId.Ripple;
|
|
245
258
|
readonly explorerUrl: "https://livenet.xrpl.org/";
|
|
246
259
|
readonly name: "Ripple";
|
|
247
260
|
readonly nativeCurrency: "XRP";
|
|
@@ -254,7 +267,7 @@ export declare const AllChainConfigs: (({
|
|
|
254
267
|
readonly blockExplorerUrl: "https://solscan.io";
|
|
255
268
|
readonly blockTime: 0.4;
|
|
256
269
|
readonly chain: Chain.Solana;
|
|
257
|
-
readonly chainId: ChainId.
|
|
270
|
+
readonly chainId: ChainId.Solana;
|
|
258
271
|
readonly explorerUrl: "https://solscan.io";
|
|
259
272
|
readonly name: "Solana";
|
|
260
273
|
readonly nativeCurrency: "SOL";
|
|
@@ -267,7 +280,7 @@ export declare const AllChainConfigs: (({
|
|
|
267
280
|
readonly blockExplorerUrl: "https://tronscan.org";
|
|
268
281
|
readonly blockTime: 3;
|
|
269
282
|
readonly chain: Chain.Tron;
|
|
270
|
-
readonly chainId: ChainId.
|
|
283
|
+
readonly chainId: ChainId.Tron;
|
|
271
284
|
readonly chainIdHex: "0x2b6653dc";
|
|
272
285
|
readonly explorerUrl: "https://tronscan.org";
|
|
273
286
|
readonly name: "Tron";
|
|
@@ -281,7 +294,7 @@ export declare const AllChainConfigs: (({
|
|
|
281
294
|
readonly blockExplorerUrl: "https://polkadot.subscan.io";
|
|
282
295
|
readonly blockTime: 6;
|
|
283
296
|
readonly chain: Chain.Polkadot;
|
|
284
|
-
readonly chainId: ChainId.
|
|
297
|
+
readonly chainId: ChainId.Polkadot;
|
|
285
298
|
readonly explorerUrl: "https://polkadot.subscan.io";
|
|
286
299
|
readonly name: "Polkadot";
|
|
287
300
|
readonly nativeCurrency: "DOT";
|
|
@@ -294,7 +307,7 @@ export declare const AllChainConfigs: (({
|
|
|
294
307
|
readonly blockExplorerUrl: "https://explorer.polkascan.io/polkadot";
|
|
295
308
|
readonly blockTime: 5;
|
|
296
309
|
readonly chain: Chain.Chainflip;
|
|
297
|
-
readonly chainId: ChainId.
|
|
310
|
+
readonly chainId: ChainId.Chainflip;
|
|
298
311
|
readonly explorerUrl: "https://explorer.polkascan.io/polkadot";
|
|
299
312
|
readonly name: "Chainflip";
|
|
300
313
|
readonly nativeCurrency: "FLIP";
|
|
@@ -307,7 +320,7 @@ export declare const AllChainConfigs: (({
|
|
|
307
320
|
readonly blockExplorerUrl: "https://blockchair.com/bitcoin";
|
|
308
321
|
readonly blockTime: 600;
|
|
309
322
|
readonly chain: Chain.Bitcoin;
|
|
310
|
-
readonly chainId: ChainId.
|
|
323
|
+
readonly chainId: ChainId.Bitcoin;
|
|
311
324
|
readonly explorerUrl: "https://blockchair.com/bitcoin";
|
|
312
325
|
readonly name: "Bitcoin";
|
|
313
326
|
readonly nativeCurrency: "BTC";
|
|
@@ -320,7 +333,7 @@ export declare const AllChainConfigs: (({
|
|
|
320
333
|
readonly blockExplorerUrl: "https://www.blockchair.com/bitcoin-cash";
|
|
321
334
|
readonly blockTime: 600;
|
|
322
335
|
readonly chain: Chain.BitcoinCash;
|
|
323
|
-
readonly chainId: ChainId.
|
|
336
|
+
readonly chainId: ChainId.BitcoinCash;
|
|
324
337
|
readonly explorerUrl: "https://www.blockchair.com/bitcoin-cash";
|
|
325
338
|
readonly name: "BitcoinCash";
|
|
326
339
|
readonly nativeCurrency: "BCH";
|
|
@@ -333,7 +346,7 @@ export declare const AllChainConfigs: (({
|
|
|
333
346
|
readonly blockExplorerUrl: "https://blockchair.com/litecoin";
|
|
334
347
|
readonly blockTime: 150;
|
|
335
348
|
readonly chain: Chain.Litecoin;
|
|
336
|
-
readonly chainId: ChainId.
|
|
349
|
+
readonly chainId: ChainId.Litecoin;
|
|
337
350
|
readonly explorerUrl: "https://blockchair.com/litecoin";
|
|
338
351
|
readonly name: "Litecoin";
|
|
339
352
|
readonly nativeCurrency: "LTC";
|
|
@@ -346,7 +359,7 @@ export declare const AllChainConfigs: (({
|
|
|
346
359
|
readonly blockExplorerUrl: "https://blockchair.com/dogecoin";
|
|
347
360
|
readonly blockTime: 600;
|
|
348
361
|
readonly chain: Chain.Dogecoin;
|
|
349
|
-
readonly chainId: ChainId.
|
|
362
|
+
readonly chainId: ChainId.Dogecoin;
|
|
350
363
|
readonly explorerUrl: "https://blockchair.com/dogecoin";
|
|
351
364
|
readonly name: "Dogecoin";
|
|
352
365
|
readonly nativeCurrency: "DOGE";
|
|
@@ -359,7 +372,7 @@ export declare const AllChainConfigs: (({
|
|
|
359
372
|
readonly blockExplorerUrl: "https://blockchair.com/dash";
|
|
360
373
|
readonly blockTime: 150;
|
|
361
374
|
readonly chain: Chain.Dash;
|
|
362
|
-
readonly chainId: ChainId.
|
|
375
|
+
readonly chainId: ChainId.Dash;
|
|
363
376
|
readonly explorerUrl: "https://blockchair.com/dash";
|
|
364
377
|
readonly name: "Dash";
|
|
365
378
|
readonly nativeCurrency: "DASH";
|
|
@@ -372,7 +385,7 @@ export declare const AllChainConfigs: (({
|
|
|
372
385
|
readonly blockExplorerUrl: "https://blockchair.com/zcash";
|
|
373
386
|
readonly blockTime: 150;
|
|
374
387
|
readonly chain: Chain.Zcash;
|
|
375
|
-
readonly chainId: ChainId.
|
|
388
|
+
readonly chainId: ChainId.Zcash;
|
|
376
389
|
readonly explorerUrl: "https://blockchair.com/zcash";
|
|
377
390
|
readonly name: "Zcash";
|
|
378
391
|
readonly nativeCurrency: "ZEC";
|
|
@@ -396,16 +409,20 @@ type ChainConfigMap = {
|
|
|
396
409
|
};
|
|
397
410
|
export declare function getChainConfig<T extends keyof ChainConfigMap>(chainOrChainId: T): ChainConfigMap[T];
|
|
398
411
|
/**
|
|
399
|
-
*
|
|
412
|
+
* Note: ChainToChainId will be discontinued in future versions.
|
|
413
|
+
* Please use getChainConfig instead.
|
|
400
414
|
* @example
|
|
401
415
|
* ```diff
|
|
402
416
|
* -const chainId = ChainToChainId[Chain.Ethereum];
|
|
403
417
|
* +const { chainId } = getChainConfig(Chain.Ethereum);
|
|
404
418
|
* ```
|
|
405
419
|
*/
|
|
406
|
-
export declare const ChainToChainId:
|
|
420
|
+
export declare const ChainToChainId: { readonly [K in Chain]: Extract<ChainConfig, {
|
|
421
|
+
chain: K;
|
|
422
|
+
}>["chainId"]; };
|
|
407
423
|
/**
|
|
408
|
-
*
|
|
424
|
+
* Note: ChainIdToChain will be discontinued in future versions.
|
|
425
|
+
* Please use getChainConfig instead.
|
|
409
426
|
* @example
|
|
410
427
|
* ```diff
|
|
411
428
|
* -const chain = ChainIdToChain[ChainId.Ethereum];
|
|
@@ -416,7 +433,8 @@ export declare const ChainIdToChain: { readonly [K in ChainId]: Extract<ChainCon
|
|
|
416
433
|
chainId: K;
|
|
417
434
|
}>["chain"]; };
|
|
418
435
|
/**
|
|
419
|
-
*
|
|
436
|
+
* Note: BaseDecimal will be discontinued in future versions.
|
|
437
|
+
* Please use getChainConfig instead.
|
|
420
438
|
* @example
|
|
421
439
|
* ```diff
|
|
422
440
|
* -const baseDecimal = BaseDecimal[Chain.Ethereum];
|
|
@@ -427,7 +445,8 @@ export declare const BaseDecimal: { readonly [K in Chain]: Extract<ChainConfig,
|
|
|
427
445
|
chain: K;
|
|
428
446
|
}>["baseDecimal"]; };
|
|
429
447
|
/**
|
|
430
|
-
*
|
|
448
|
+
* Note: BlockTimes will be discontinued in future versions.
|
|
449
|
+
* Please use getChainConfig instead.
|
|
431
450
|
* @example
|
|
432
451
|
* ```diff
|
|
433
452
|
* -const blockTime = BlockTimes[Chain.Ethereum];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chains/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/chains/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAO9D,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AAEvB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAMoB,CAAC;AACjD,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC;AACrD,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;AAElD,eAAO,MAAM,SAAS,SAAuB,CAAC;AAC9C,eAAO,MAAM,cAAc,wDAAyD,CAAC;AAErF,KAAK,cAAc,GAAG;KACnB,CAAC,IAAI,WAAW,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC,WAAW,EAAE;QAAE,KAAK,EAAE,CAAC,CAAA;KAAE,CAAC;CAChE,GAAG;KACD,CAAC,IAAI,WAAW,CAAC,SAAS,CAAC,GAAG,OAAO,CAAC,WAAW,EAAE;QAAE,OAAO,EAAE,CAAC,CAAA;KAAE,CAAC;CACpE,CAAC;AAWF,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,cAAc,EAAE,cAAc,EAAE,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAInG;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,EAEtB,EACH,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,OAAO,CAAC,WAAW,EAAE;IAAE,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC,SAAS,CAAC,GACrE,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,EAEtB,EACH,QAAQ,EAAE,CAAC,IAAI,OAAO,GAAG,OAAO,CAAC,WAAW,EAAE;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC,OAAO,CAAC,GACvE,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,EAEnB,EACH,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,OAAO,CAAC,WAAW,EAAE;IAAE,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC,aAAa,CAAC,GACzE,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,EAElB,EACH,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,OAAO,CAAC,WAAW,EAAE;IAAE,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC,WAAW,CAAC,GACvE,CAAC"}
|
|
@@ -4,7 +4,7 @@ export declare const OtherChainConfigs: readonly [{
|
|
|
4
4
|
readonly blockExplorerUrl: "https://nearblocks.io";
|
|
5
5
|
readonly blockTime: 1;
|
|
6
6
|
readonly chain: Chain.Near;
|
|
7
|
-
readonly chainId: ChainId.
|
|
7
|
+
readonly chainId: ChainId.Near;
|
|
8
8
|
readonly explorerUrl: "https://nearblocks.io";
|
|
9
9
|
readonly name: "Near";
|
|
10
10
|
readonly nativeCurrency: "NEAR";
|
|
@@ -17,7 +17,7 @@ export declare const OtherChainConfigs: readonly [{
|
|
|
17
17
|
readonly blockExplorerUrl: "https://dashboard.radixdlt.com";
|
|
18
18
|
readonly blockTime: 5;
|
|
19
19
|
readonly chain: Chain.Radix;
|
|
20
|
-
readonly chainId: ChainId.
|
|
20
|
+
readonly chainId: ChainId.Radix;
|
|
21
21
|
readonly explorerUrl: "https://dashboard.radixdlt.com";
|
|
22
22
|
readonly name: "Radix";
|
|
23
23
|
readonly nativeCurrency: "XRD";
|
|
@@ -30,7 +30,7 @@ export declare const OtherChainConfigs: readonly [{
|
|
|
30
30
|
readonly blockExplorerUrl: "https://livenet.xrpl.org/";
|
|
31
31
|
readonly blockTime: 5;
|
|
32
32
|
readonly chain: Chain.Ripple;
|
|
33
|
-
readonly chainId: ChainId.
|
|
33
|
+
readonly chainId: ChainId.Ripple;
|
|
34
34
|
readonly explorerUrl: "https://livenet.xrpl.org/";
|
|
35
35
|
readonly name: "Ripple";
|
|
36
36
|
readonly nativeCurrency: "XRP";
|
|
@@ -43,7 +43,7 @@ export declare const OtherChainConfigs: readonly [{
|
|
|
43
43
|
readonly blockExplorerUrl: "https://solscan.io";
|
|
44
44
|
readonly blockTime: 0.4;
|
|
45
45
|
readonly chain: Chain.Solana;
|
|
46
|
-
readonly chainId: ChainId.
|
|
46
|
+
readonly chainId: ChainId.Solana;
|
|
47
47
|
readonly explorerUrl: "https://solscan.io";
|
|
48
48
|
readonly name: "Solana";
|
|
49
49
|
readonly nativeCurrency: "SOL";
|
|
@@ -56,7 +56,7 @@ export declare const OtherChainConfigs: readonly [{
|
|
|
56
56
|
readonly blockExplorerUrl: "https://tronscan.org";
|
|
57
57
|
readonly blockTime: 3;
|
|
58
58
|
readonly chain: Chain.Tron;
|
|
59
|
-
readonly chainId: ChainId.
|
|
59
|
+
readonly chainId: ChainId.Tron;
|
|
60
60
|
readonly chainIdHex: "0x2b6653dc";
|
|
61
61
|
readonly explorerUrl: "https://tronscan.org";
|
|
62
62
|
readonly name: "Tron";
|
|
@@ -4,7 +4,7 @@ export declare const SubstrateChainConfigs: readonly [{
|
|
|
4
4
|
readonly blockExplorerUrl: "https://polkadot.subscan.io";
|
|
5
5
|
readonly blockTime: 6;
|
|
6
6
|
readonly chain: Chain.Polkadot;
|
|
7
|
-
readonly chainId: ChainId.
|
|
7
|
+
readonly chainId: ChainId.Polkadot;
|
|
8
8
|
readonly explorerUrl: "https://polkadot.subscan.io";
|
|
9
9
|
readonly name: "Polkadot";
|
|
10
10
|
readonly nativeCurrency: "DOT";
|
|
@@ -17,7 +17,7 @@ export declare const SubstrateChainConfigs: readonly [{
|
|
|
17
17
|
readonly blockExplorerUrl: "https://explorer.polkascan.io/polkadot";
|
|
18
18
|
readonly blockTime: 5;
|
|
19
19
|
readonly chain: Chain.Chainflip;
|
|
20
|
-
readonly chainId: ChainId.
|
|
20
|
+
readonly chainId: ChainId.Chainflip;
|
|
21
21
|
readonly explorerUrl: "https://explorer.polkascan.io/polkadot";
|
|
22
22
|
readonly name: "Chainflip";
|
|
23
23
|
readonly nativeCurrency: "FLIP";
|
|
@@ -4,7 +4,7 @@ export declare const UTXOChainConfigs: readonly [{
|
|
|
4
4
|
readonly blockExplorerUrl: "https://blockchair.com/bitcoin";
|
|
5
5
|
readonly blockTime: 600;
|
|
6
6
|
readonly chain: Chain.Bitcoin;
|
|
7
|
-
readonly chainId: ChainId.
|
|
7
|
+
readonly chainId: ChainId.Bitcoin;
|
|
8
8
|
readonly explorerUrl: "https://blockchair.com/bitcoin";
|
|
9
9
|
readonly name: "Bitcoin";
|
|
10
10
|
readonly nativeCurrency: "BTC";
|
|
@@ -17,7 +17,7 @@ export declare const UTXOChainConfigs: readonly [{
|
|
|
17
17
|
readonly blockExplorerUrl: "https://www.blockchair.com/bitcoin-cash";
|
|
18
18
|
readonly blockTime: 600;
|
|
19
19
|
readonly chain: Chain.BitcoinCash;
|
|
20
|
-
readonly chainId: ChainId.
|
|
20
|
+
readonly chainId: ChainId.BitcoinCash;
|
|
21
21
|
readonly explorerUrl: "https://www.blockchair.com/bitcoin-cash";
|
|
22
22
|
readonly name: "BitcoinCash";
|
|
23
23
|
readonly nativeCurrency: "BCH";
|
|
@@ -30,7 +30,7 @@ export declare const UTXOChainConfigs: readonly [{
|
|
|
30
30
|
readonly blockExplorerUrl: "https://blockchair.com/litecoin";
|
|
31
31
|
readonly blockTime: 150;
|
|
32
32
|
readonly chain: Chain.Litecoin;
|
|
33
|
-
readonly chainId: ChainId.
|
|
33
|
+
readonly chainId: ChainId.Litecoin;
|
|
34
34
|
readonly explorerUrl: "https://blockchair.com/litecoin";
|
|
35
35
|
readonly name: "Litecoin";
|
|
36
36
|
readonly nativeCurrency: "LTC";
|
|
@@ -43,7 +43,7 @@ export declare const UTXOChainConfigs: readonly [{
|
|
|
43
43
|
readonly blockExplorerUrl: "https://blockchair.com/dogecoin";
|
|
44
44
|
readonly blockTime: 600;
|
|
45
45
|
readonly chain: Chain.Dogecoin;
|
|
46
|
-
readonly chainId: ChainId.
|
|
46
|
+
readonly chainId: ChainId.Dogecoin;
|
|
47
47
|
readonly explorerUrl: "https://blockchair.com/dogecoin";
|
|
48
48
|
readonly name: "Dogecoin";
|
|
49
49
|
readonly nativeCurrency: "DOGE";
|
|
@@ -56,7 +56,7 @@ export declare const UTXOChainConfigs: readonly [{
|
|
|
56
56
|
readonly blockExplorerUrl: "https://blockchair.com/dash";
|
|
57
57
|
readonly blockTime: 150;
|
|
58
58
|
readonly chain: Chain.Dash;
|
|
59
|
-
readonly chainId: ChainId.
|
|
59
|
+
readonly chainId: ChainId.Dash;
|
|
60
60
|
readonly explorerUrl: "https://blockchair.com/dash";
|
|
61
61
|
readonly name: "Dash";
|
|
62
62
|
readonly nativeCurrency: "DASH";
|
|
@@ -69,7 +69,7 @@ export declare const UTXOChainConfigs: readonly [{
|
|
|
69
69
|
readonly blockExplorerUrl: "https://blockchair.com/zcash";
|
|
70
70
|
readonly blockTime: 150;
|
|
71
71
|
readonly chain: Chain.Zcash;
|
|
72
|
-
readonly chainId: ChainId.
|
|
72
|
+
readonly chainId: ChainId.Zcash;
|
|
73
73
|
readonly explorerUrl: "https://blockchair.com/zcash";
|
|
74
74
|
readonly name: "Zcash";
|
|
75
75
|
readonly nativeCurrency: "ZEC";
|
package/package.json
CHANGED