@swapkit/types 0.1.3 → 0.2.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/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 +4 -10
- package/dist/types/chains/_createChain.d.ts.map +1 -1
- package/dist/types/chains/_enums.d.ts +6 -0
- package/dist/types/chains/_enums.d.ts.map +1 -1
- package/dist/types/chains/cosmos.d.ts +60 -39
- package/dist/types/chains/cosmos.d.ts.map +1 -1
- package/dist/types/chains/evm.d.ts +22 -22
- package/dist/types/chains/evm.d.ts.map +1 -1
- package/dist/types/chains/index.d.ts +130 -73
- package/dist/types/chains/index.d.ts.map +1 -1
- package/dist/types/chains/others.d.ts +50 -11
- package/dist/types/chains/others.d.ts.map +1 -1
- package/dist/types/chains/substrate.d.ts +4 -4
- package/dist/types/chains/substrate.d.ts.map +1 -1
- package/dist/types/chains/utxo.d.ts +14 -14
- package/dist/types/chains/utxo.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -7,85 +7,86 @@ export * from "./substrate";
|
|
|
7
7
|
export * from "./utxo";
|
|
8
8
|
export declare const AllChainConfigs: (({
|
|
9
9
|
readonly baseDecimal: 6;
|
|
10
|
-
readonly blockExplorerUrl: "https://www.mintscan.io/cosmos";
|
|
11
10
|
readonly blockTime: 2;
|
|
12
11
|
readonly chain: Chain.Cosmos;
|
|
13
12
|
readonly chainId: ChainId.Cosmos;
|
|
14
13
|
readonly explorerUrl: "https://www.mintscan.io/cosmos";
|
|
15
14
|
readonly name: "Cosmos";
|
|
16
15
|
readonly nativeCurrency: "ATOM";
|
|
17
|
-
readonly
|
|
16
|
+
readonly networkDerivationPath: [44, 118, 0, 0, 0];
|
|
17
|
+
readonly rpcUrls: ["https://cosmos-rpc.publicnode.com:443", "https://cosmos-rpc.publicnode.com"];
|
|
18
18
|
readonly type: "cosmos";
|
|
19
19
|
} & {
|
|
20
20
|
chainIdHex: undefined;
|
|
21
21
|
}) | ({
|
|
22
22
|
readonly baseDecimal: 8;
|
|
23
|
-
readonly blockExplorerUrl: "https://runescan.io";
|
|
24
23
|
readonly blockTime: 6;
|
|
25
24
|
readonly chain: Chain.THORChain;
|
|
26
25
|
readonly chainId: ChainId.THORChain;
|
|
27
26
|
readonly explorerUrl: "https://runescan.io";
|
|
28
27
|
readonly name: "THORChain";
|
|
29
28
|
readonly nativeCurrency: "RUNE";
|
|
30
|
-
readonly
|
|
29
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
30
|
+
readonly nodeUrl: "https://thornode.ninerealms.com";
|
|
31
|
+
readonly rpcUrls: ["https://rpc.ninerealms.com", "https://thornode.ninerealms.com"];
|
|
31
32
|
readonly type: "cosmos";
|
|
32
33
|
} & {
|
|
33
34
|
chainIdHex: undefined;
|
|
34
35
|
}) | ({
|
|
35
36
|
readonly baseDecimal: 8;
|
|
36
|
-
readonly blockExplorerUrl: "https://www.mayascan.org";
|
|
37
37
|
readonly blockTime: 6;
|
|
38
38
|
readonly chain: Chain.Maya;
|
|
39
39
|
readonly chainId: ChainId.Maya;
|
|
40
40
|
readonly explorerUrl: "https://www.mayascan.org";
|
|
41
41
|
readonly name: "Maya";
|
|
42
42
|
readonly nativeCurrency: "CACAO";
|
|
43
|
-
readonly
|
|
43
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
44
|
+
readonly nodeUrl: "https://mayanode.mayachain.info";
|
|
45
|
+
readonly rpcUrls: ["https://tendermint.mayachain.info", "https://maya-tendermint.publicnode.com", "https://mayanode.mayachain.info"];
|
|
44
46
|
readonly type: "cosmos";
|
|
45
47
|
} & {
|
|
46
48
|
chainIdHex: undefined;
|
|
47
49
|
}) | ({
|
|
48
50
|
readonly baseDecimal: 8;
|
|
49
|
-
readonly blockExplorerUrl: "";
|
|
50
51
|
readonly blockTime: 6;
|
|
51
52
|
readonly chain: Chain.Harbor;
|
|
52
53
|
readonly chainId: ChainId.Harbor;
|
|
53
54
|
readonly explorerUrl: "";
|
|
54
55
|
readonly name: "Harbor";
|
|
55
56
|
readonly nativeCurrency: "HRB";
|
|
56
|
-
readonly
|
|
57
|
+
readonly networkDerivationPath: [44, 931, 0, 0, 0];
|
|
58
|
+
readonly rpcUrls: ["https://xnode.harbor-dev.xyz/xnode"];
|
|
57
59
|
readonly type: "cosmos";
|
|
58
60
|
} & {
|
|
59
61
|
chainIdHex: undefined;
|
|
60
62
|
}) | ({
|
|
61
63
|
readonly baseDecimal: 6;
|
|
62
|
-
readonly blockExplorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
63
64
|
readonly blockTime: 2.2;
|
|
64
65
|
readonly chain: Chain.Kujira;
|
|
65
66
|
readonly chainId: ChainId.Kujira;
|
|
66
67
|
readonly explorerUrl: "https://finder.kujira.network/kaiyo-1";
|
|
67
68
|
readonly name: "Kujira";
|
|
68
69
|
readonly nativeCurrency: "KUJI";
|
|
69
|
-
readonly
|
|
70
|
+
readonly networkDerivationPath: [44, 118, 0, 0, 0];
|
|
71
|
+
readonly rpcUrls: ["https://kujira-rpc.ibs.team", "https://kujira-rpc.polkachu.com", "https://rpc-kujira.synergynodes.com/"];
|
|
70
72
|
readonly type: "cosmos";
|
|
71
73
|
} & {
|
|
72
74
|
chainIdHex: undefined;
|
|
73
75
|
}) | ({
|
|
74
76
|
readonly baseDecimal: 6;
|
|
75
|
-
readonly blockExplorerUrl: "https://www.mintscan.io/noble";
|
|
76
77
|
readonly blockTime: 1.3;
|
|
77
78
|
readonly chain: Chain.Noble;
|
|
78
79
|
readonly chainId: ChainId.Noble;
|
|
79
80
|
readonly explorerUrl: "https://www.mintscan.io/noble";
|
|
80
81
|
readonly name: "Noble";
|
|
81
82
|
readonly nativeCurrency: "USDC";
|
|
82
|
-
readonly
|
|
83
|
+
readonly networkDerivationPath: [44, 118, 0, 0, 0];
|
|
84
|
+
readonly rpcUrls: ["https://noble-rpc.polkachu.com", "https://rpc.noble.xyz", "https://rpc.cosmos.directory/noble"];
|
|
83
85
|
readonly type: "cosmos";
|
|
84
86
|
} & {
|
|
85
87
|
chainIdHex: undefined;
|
|
86
88
|
}) | ({
|
|
87
89
|
readonly baseDecimal: 18;
|
|
88
|
-
readonly blockExplorerUrl: "https://etherscan.io";
|
|
89
90
|
readonly blockTime: 12.5;
|
|
90
91
|
readonly chain: Chain.Ethereum;
|
|
91
92
|
readonly chainId: ChainId.Ethereum;
|
|
@@ -93,41 +94,41 @@ export declare const AllChainConfigs: (({
|
|
|
93
94
|
readonly explorerUrl: "https://etherscan.io";
|
|
94
95
|
readonly name: "Ethereum";
|
|
95
96
|
readonly nativeCurrency: "ETH";
|
|
96
|
-
readonly
|
|
97
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
98
|
+
readonly rpcUrls: ["https://ethereum-rpc.publicnode.com", "https://eth.llamarpc.com", "https://cloudflare-eth.com"];
|
|
97
99
|
readonly type: "evm";
|
|
98
100
|
} & {
|
|
99
101
|
chainIdHex: "0x1";
|
|
100
102
|
}) | ({
|
|
101
103
|
readonly baseDecimal: 18;
|
|
102
|
-
readonly
|
|
103
|
-
readonly blockTime: 3;
|
|
104
|
+
readonly blockTime: 1;
|
|
104
105
|
readonly chain: Chain.BinanceSmartChain;
|
|
105
106
|
readonly chainId: ChainId.BinanceSmartChain;
|
|
106
107
|
readonly chainIdHex: "0x38";
|
|
107
108
|
readonly explorerUrl: "https://bscscan.com";
|
|
108
109
|
readonly name: "BinanceSmartChain";
|
|
109
110
|
readonly nativeCurrency: "BNB";
|
|
110
|
-
readonly
|
|
111
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
112
|
+
readonly rpcUrls: ["https://bsc-dataseed.binance.org", "https://bsc-rpc.gateway.pokt.network", "https://bsc-dataseed2.binance.org"];
|
|
111
113
|
readonly type: "evm";
|
|
112
114
|
} & {
|
|
113
115
|
chainIdHex: "0x38";
|
|
114
116
|
}) | ({
|
|
115
117
|
readonly baseDecimal: 18;
|
|
116
|
-
readonly
|
|
117
|
-
readonly blockTime: 3;
|
|
118
|
+
readonly blockTime: 2;
|
|
118
119
|
readonly chain: Chain.Avalanche;
|
|
119
120
|
readonly chainId: ChainId.Avalanche;
|
|
120
121
|
readonly chainIdHex: "0xa86a";
|
|
121
122
|
readonly explorerUrl: "https://snowtrace.io";
|
|
122
123
|
readonly name: "Avalanche";
|
|
123
124
|
readonly nativeCurrency: "AVAX";
|
|
124
|
-
readonly
|
|
125
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
126
|
+
readonly rpcUrls: ["https://api.avax.network/ext/bc/C/rpc", "https://api.avax.network/ext/bc/C/rpc", "https://avalanche-c-chain-rpc.publicnode.com"];
|
|
125
127
|
readonly type: "evm";
|
|
126
128
|
} & {
|
|
127
129
|
chainIdHex: "0xa86a";
|
|
128
130
|
}) | ({
|
|
129
131
|
readonly baseDecimal: 18;
|
|
130
|
-
readonly blockExplorerUrl: "https://polygonscan.com";
|
|
131
132
|
readonly blockTime: 2.1;
|
|
132
133
|
readonly chain: Chain.Polygon;
|
|
133
134
|
readonly chainId: ChainId.Polygon;
|
|
@@ -135,13 +136,13 @@ export declare const AllChainConfigs: (({
|
|
|
135
136
|
readonly explorerUrl: "https://polygonscan.com";
|
|
136
137
|
readonly name: "Polygon";
|
|
137
138
|
readonly nativeCurrency: "POL";
|
|
138
|
-
readonly
|
|
139
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
140
|
+
readonly rpcUrls: ["https://polygon-rpc.com", "https://polygon.llamarpc.com", "https://polygon-bor-rpc.publicnode.com"];
|
|
139
141
|
readonly type: "evm";
|
|
140
142
|
} & {
|
|
141
143
|
chainIdHex: "0x89";
|
|
142
144
|
}) | ({
|
|
143
145
|
readonly baseDecimal: 18;
|
|
144
|
-
readonly blockExplorerUrl: "https://arbiscan.io";
|
|
145
146
|
readonly blockTime: 0.3;
|
|
146
147
|
readonly chain: Chain.Arbitrum;
|
|
147
148
|
readonly chainId: ChainId.Arbitrum;
|
|
@@ -149,13 +150,13 @@ export declare const AllChainConfigs: (({
|
|
|
149
150
|
readonly explorerUrl: "https://arbiscan.io";
|
|
150
151
|
readonly name: "Arbitrum";
|
|
151
152
|
readonly nativeCurrency: "ETH";
|
|
152
|
-
readonly
|
|
153
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
154
|
+
readonly rpcUrls: ["https://arb1.arbitrum.io/rpc", "https://arb-mainnet.g.alchemy.com/v2/demo", "https://arbitrum.blockpi.network/v1/rpc/public"];
|
|
153
155
|
readonly type: "evm";
|
|
154
156
|
} & {
|
|
155
157
|
chainIdHex: "0xa4b1";
|
|
156
158
|
}) | ({
|
|
157
159
|
readonly baseDecimal: 18;
|
|
158
|
-
readonly blockExplorerUrl: "https://optimistic.etherscan.io";
|
|
159
160
|
readonly blockTime: 2;
|
|
160
161
|
readonly chain: Chain.Optimism;
|
|
161
162
|
readonly chainId: ChainId.Optimism;
|
|
@@ -163,13 +164,13 @@ export declare const AllChainConfigs: (({
|
|
|
163
164
|
readonly explorerUrl: "https://optimistic.etherscan.io";
|
|
164
165
|
readonly name: "Optimism";
|
|
165
166
|
readonly nativeCurrency: "ETH";
|
|
166
|
-
readonly
|
|
167
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
168
|
+
readonly rpcUrls: ["https://mainnet.optimism.io", "https://optimism.llamarpc.com", "https://1rpc.io/op"];
|
|
167
169
|
readonly type: "evm";
|
|
168
170
|
} & {
|
|
169
171
|
chainIdHex: "0xa";
|
|
170
172
|
}) | ({
|
|
171
173
|
readonly baseDecimal: 18;
|
|
172
|
-
readonly blockExplorerUrl: "https://basescan.org";
|
|
173
174
|
readonly blockTime: 2;
|
|
174
175
|
readonly chain: Chain.Base;
|
|
175
176
|
readonly chainId: ChainId.Base;
|
|
@@ -177,13 +178,13 @@ export declare const AllChainConfigs: (({
|
|
|
177
178
|
readonly explorerUrl: "https://basescan.org";
|
|
178
179
|
readonly name: "Base";
|
|
179
180
|
readonly nativeCurrency: "ETH";
|
|
180
|
-
readonly
|
|
181
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
182
|
+
readonly rpcUrls: ["https://base-rpc.publicnode.com", "https://base.blockpi.network/v1/rpc/public", "https://1rpc.io/base"];
|
|
181
183
|
readonly type: "evm";
|
|
182
184
|
} & {
|
|
183
185
|
chainIdHex: "0x2105";
|
|
184
186
|
}) | ({
|
|
185
187
|
readonly baseDecimal: 18;
|
|
186
|
-
readonly blockExplorerUrl: "https://gnosisscan.io";
|
|
187
188
|
readonly blockTime: 5.2;
|
|
188
189
|
readonly chain: Chain.Gnosis;
|
|
189
190
|
readonly chainId: ChainId.Gnosis;
|
|
@@ -191,13 +192,13 @@ export declare const AllChainConfigs: (({
|
|
|
191
192
|
readonly explorerUrl: "https://gnosisscan.io";
|
|
192
193
|
readonly name: "Gnosis";
|
|
193
194
|
readonly nativeCurrency: "xDAI";
|
|
194
|
-
readonly
|
|
195
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
196
|
+
readonly rpcUrls: ["https://gnosis-rpc.publicnode.com", "https://gnosis.drpc.org", "https://rpc.ankr.com/gnosis"];
|
|
195
197
|
readonly type: "evm";
|
|
196
198
|
} & {
|
|
197
199
|
chainIdHex: "0x64";
|
|
198
200
|
}) | ({
|
|
199
201
|
readonly baseDecimal: 18;
|
|
200
|
-
readonly blockExplorerUrl: "https://explorer.mainnet.aurora.dev";
|
|
201
202
|
readonly blockTime: 1;
|
|
202
203
|
readonly chain: Chain.Aurora;
|
|
203
204
|
readonly chainId: ChainId.Aurora;
|
|
@@ -205,13 +206,13 @@ export declare const AllChainConfigs: (({
|
|
|
205
206
|
readonly explorerUrl: "https://explorer.mainnet.aurora.dev";
|
|
206
207
|
readonly name: "Aurora";
|
|
207
208
|
readonly nativeCurrency: "ETH";
|
|
208
|
-
readonly
|
|
209
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
210
|
+
readonly rpcUrls: ["https://aurora-rpc.publicnode.com", "https://1rpc.io/aurora", "https://mainnet.aurora.dev"];
|
|
209
211
|
readonly type: "evm";
|
|
210
212
|
} & {
|
|
211
213
|
chainIdHex: "0x4e454152";
|
|
212
214
|
}) | ({
|
|
213
215
|
readonly baseDecimal: 18;
|
|
214
|
-
readonly blockExplorerUrl: "https://berascan.com";
|
|
215
216
|
readonly blockTime: 2;
|
|
216
217
|
readonly chain: Chain.Berachain;
|
|
217
218
|
readonly chainId: ChainId.Berachain;
|
|
@@ -219,65 +220,78 @@ export declare const AllChainConfigs: (({
|
|
|
219
220
|
readonly explorerUrl: "https://berascan.com";
|
|
220
221
|
readonly name: "Berachain";
|
|
221
222
|
readonly nativeCurrency: "BERA";
|
|
222
|
-
readonly
|
|
223
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
224
|
+
readonly rpcUrls: ["https://berachain-rpc.publicnode.com", "https://rpc.berachain.com", "https://berachain.drpc.org"];
|
|
223
225
|
readonly type: "evm";
|
|
224
226
|
} & {
|
|
225
227
|
chainIdHex: "0x138de";
|
|
226
228
|
}) | ({
|
|
227
229
|
readonly baseDecimal: 24;
|
|
228
|
-
readonly blockExplorerUrl: "https://nearblocks.io";
|
|
229
230
|
readonly blockTime: 1;
|
|
230
231
|
readonly chain: Chain.Near;
|
|
231
232
|
readonly chainId: ChainId.Near;
|
|
232
233
|
readonly explorerUrl: "https://nearblocks.io";
|
|
233
234
|
readonly name: "Near";
|
|
234
235
|
readonly nativeCurrency: "NEAR";
|
|
235
|
-
readonly
|
|
236
|
+
readonly networkDerivationPath: [44, 397, 0, 0, 0];
|
|
237
|
+
readonly rpcUrls: ["https://rpc.mainnet.near.org", "https://1rpc.io/near", "https://near.lava.build", "https://near-mainnet.infura.io/v3/3cbfcafa5e1e48b7bb0ea41f2fbc4abf"];
|
|
236
238
|
readonly type: "others";
|
|
237
239
|
} & {
|
|
238
240
|
chainIdHex: undefined;
|
|
239
241
|
}) | ({
|
|
240
242
|
readonly baseDecimal: 18;
|
|
241
|
-
readonly blockExplorerUrl: "https://dashboard.radixdlt.com";
|
|
242
243
|
readonly blockTime: 5;
|
|
243
244
|
readonly chain: Chain.Radix;
|
|
244
245
|
readonly chainId: ChainId.Radix;
|
|
245
246
|
readonly explorerUrl: "https://dashboard.radixdlt.com";
|
|
246
247
|
readonly name: "Radix";
|
|
247
248
|
readonly nativeCurrency: "XRD";
|
|
248
|
-
readonly
|
|
249
|
+
readonly networkDerivationPath: [0, 0, 0, 0, 0];
|
|
250
|
+
readonly rpcUrls: ["https://radix-mainnet.rpc.grove.city/v1/326002fc/core", "https://mainnet.radixdlt.com", "https://radix-mainnet.rpc.grove.city/v1"];
|
|
249
251
|
readonly type: "others";
|
|
250
252
|
} & {
|
|
251
253
|
chainIdHex: undefined;
|
|
252
254
|
}) | ({
|
|
253
255
|
readonly baseDecimal: 6;
|
|
254
|
-
readonly blockExplorerUrl: "https://livenet.xrpl.org/";
|
|
255
256
|
readonly blockTime: 5;
|
|
256
257
|
readonly chain: Chain.Ripple;
|
|
257
258
|
readonly chainId: ChainId.Ripple;
|
|
258
259
|
readonly explorerUrl: "https://livenet.xrpl.org/";
|
|
259
260
|
readonly name: "Ripple";
|
|
260
261
|
readonly nativeCurrency: "XRP";
|
|
261
|
-
readonly
|
|
262
|
+
readonly networkDerivationPath: [44, 144, 0, 0, 0];
|
|
263
|
+
readonly rpcUrls: ["wss://xrpl.ws/", "wss://s1.ripple.com/", "wss://s2.ripple.com/"];
|
|
262
264
|
readonly type: "others";
|
|
263
265
|
} & {
|
|
264
266
|
chainIdHex: undefined;
|
|
265
267
|
}) | ({
|
|
266
268
|
readonly baseDecimal: 9;
|
|
267
|
-
readonly blockExplorerUrl: "https://solscan.io";
|
|
268
269
|
readonly blockTime: 0.4;
|
|
269
270
|
readonly chain: Chain.Solana;
|
|
270
271
|
readonly chainId: ChainId.Solana;
|
|
271
272
|
readonly explorerUrl: "https://solscan.io";
|
|
272
273
|
readonly name: "Solana";
|
|
273
274
|
readonly nativeCurrency: "SOL";
|
|
274
|
-
readonly
|
|
275
|
+
readonly networkDerivationPath: [44, 501, 0, 0, 0];
|
|
276
|
+
readonly rpcUrls: ["https://solana-rpc.publicnode.com", "https://api.mainnet-beta.solana.com", "https://solana-mainnet.rpc.extrnode.com"];
|
|
277
|
+
readonly type: "others";
|
|
278
|
+
} & {
|
|
279
|
+
chainIdHex: undefined;
|
|
280
|
+
}) | ({
|
|
281
|
+
readonly baseDecimal: 9;
|
|
282
|
+
readonly blockTime: 5;
|
|
283
|
+
readonly chain: Chain.Ton;
|
|
284
|
+
readonly chainId: ChainId.Ton;
|
|
285
|
+
readonly explorerUrl: "https://tonscan.org";
|
|
286
|
+
readonly name: "Ton";
|
|
287
|
+
readonly nativeCurrency: "TON";
|
|
288
|
+
readonly networkDerivationPath: [44, 607, 0, 0, 0];
|
|
289
|
+
readonly rpcUrls: ["https://ton.api.onfinality.io/public", "https://ton.drpc.org/rest/", "https://toncenter.com/api/v2/jsonRPC"];
|
|
275
290
|
readonly type: "others";
|
|
276
291
|
} & {
|
|
277
292
|
chainIdHex: undefined;
|
|
278
293
|
}) | ({
|
|
279
294
|
readonly baseDecimal: 6;
|
|
280
|
-
readonly blockExplorerUrl: "https://tronscan.org";
|
|
281
295
|
readonly blockTime: 3;
|
|
282
296
|
readonly chain: Chain.Tron;
|
|
283
297
|
readonly chainId: ChainId.Tron;
|
|
@@ -285,111 +299,138 @@ export declare const AllChainConfigs: (({
|
|
|
285
299
|
readonly explorerUrl: "https://tronscan.org";
|
|
286
300
|
readonly name: "Tron";
|
|
287
301
|
readonly nativeCurrency: "TRX";
|
|
288
|
-
readonly
|
|
302
|
+
readonly networkDerivationPath: [44, 195, 0, 0, 0];
|
|
303
|
+
readonly rpcUrls: ["https://tron-rpc.publicnode.com", "https://api.tronstack.io", "https://api.tron.network"];
|
|
289
304
|
readonly type: "others";
|
|
290
305
|
} & {
|
|
291
306
|
chainIdHex: "0x2b6653dc";
|
|
307
|
+
}) | ({
|
|
308
|
+
readonly baseDecimal: 9;
|
|
309
|
+
readonly blockTime: 5;
|
|
310
|
+
readonly chain: Chain.Sui;
|
|
311
|
+
readonly chainId: ChainId.Sui;
|
|
312
|
+
readonly explorerUrl: "https://suiscan.xyz";
|
|
313
|
+
readonly name: "Sui";
|
|
314
|
+
readonly nativeCurrency: "SUI";
|
|
315
|
+
readonly networkDerivationPath: [44, 784, 0, 0, 0];
|
|
316
|
+
readonly rpcUrls: ["https://fullnode.mainnet.sui.io:443"];
|
|
317
|
+
readonly type: "others";
|
|
318
|
+
} & {
|
|
319
|
+
chainIdHex: undefined;
|
|
320
|
+
}) | ({
|
|
321
|
+
readonly baseDecimal: 6;
|
|
322
|
+
readonly blockTime: 600;
|
|
323
|
+
readonly chain: Chain.Cardano;
|
|
324
|
+
readonly chainId: ChainId.Cardano;
|
|
325
|
+
readonly explorerUrl: "https://cexplorer.io";
|
|
326
|
+
readonly name: "Cardano";
|
|
327
|
+
readonly nativeCurrency: "ADA";
|
|
328
|
+
readonly networkDerivationPath: [1852, 1815, 0, 0, 0];
|
|
329
|
+
readonly rpcUrls: ["https://api.koios.rest/api/v1", "https://cardano-mainnet.blockfrost.io/api/v0"];
|
|
330
|
+
readonly type: "others";
|
|
331
|
+
} & {
|
|
332
|
+
chainIdHex: undefined;
|
|
292
333
|
}) | ({
|
|
293
334
|
readonly baseDecimal: 10;
|
|
294
|
-
readonly blockExplorerUrl: "https://polkadot.subscan.io";
|
|
295
335
|
readonly blockTime: 6;
|
|
296
336
|
readonly chain: Chain.Polkadot;
|
|
297
337
|
readonly chainId: ChainId.Polkadot;
|
|
298
338
|
readonly explorerUrl: "https://polkadot.subscan.io";
|
|
299
339
|
readonly name: "Polkadot";
|
|
300
340
|
readonly nativeCurrency: "DOT";
|
|
301
|
-
readonly
|
|
341
|
+
readonly networkDerivationPath: [0, 0, 0, 0, 0];
|
|
342
|
+
readonly rpcUrls: ["wss://rpc.polkadot.io", "wss://polkadot-rpc.dwellir.com", "wss://polkadot.api.onfinality.io/public-ws"];
|
|
302
343
|
readonly type: "substrate";
|
|
303
344
|
} & {
|
|
304
345
|
chainIdHex: undefined;
|
|
305
346
|
}) | ({
|
|
306
347
|
readonly baseDecimal: 18;
|
|
307
|
-
readonly blockExplorerUrl: "https://explorer.polkascan.io/polkadot";
|
|
308
348
|
readonly blockTime: 5;
|
|
309
349
|
readonly chain: Chain.Chainflip;
|
|
310
350
|
readonly chainId: ChainId.Chainflip;
|
|
311
351
|
readonly explorerUrl: "https://explorer.polkascan.io/polkadot";
|
|
312
352
|
readonly name: "Chainflip";
|
|
313
353
|
readonly nativeCurrency: "FLIP";
|
|
314
|
-
readonly
|
|
354
|
+
readonly networkDerivationPath: [0, 0, 0, 0, 0];
|
|
355
|
+
readonly rpcUrls: ["wss://mainnet-archive.chainflip.io", "wss://archive-1.mainnet.chainflip.io", "wss://archive-2.mainnet.chainflip.io"];
|
|
315
356
|
readonly type: "substrate";
|
|
316
357
|
} & {
|
|
317
358
|
chainIdHex: undefined;
|
|
318
359
|
}) | ({
|
|
319
360
|
readonly baseDecimal: 8;
|
|
320
|
-
readonly blockExplorerUrl: "https://blockchair.com/bitcoin";
|
|
321
361
|
readonly blockTime: 600;
|
|
322
362
|
readonly chain: Chain.Bitcoin;
|
|
323
363
|
readonly chainId: ChainId.Bitcoin;
|
|
324
364
|
readonly explorerUrl: "https://blockchair.com/bitcoin";
|
|
325
365
|
readonly name: "Bitcoin";
|
|
326
366
|
readonly nativeCurrency: "BTC";
|
|
327
|
-
readonly
|
|
367
|
+
readonly networkDerivationPath: [number, number, number, number, number?];
|
|
368
|
+
readonly rpcUrls: ["https://bitcoin-rpc.publicnode.com", "https://bitcoin.publicnode.com"];
|
|
328
369
|
readonly type: "utxo";
|
|
329
370
|
} & {
|
|
330
371
|
chainIdHex: undefined;
|
|
331
372
|
}) | ({
|
|
332
373
|
readonly baseDecimal: 8;
|
|
333
|
-
readonly blockExplorerUrl: "https://www.blockchair.com/bitcoin-cash";
|
|
334
374
|
readonly blockTime: 600;
|
|
335
375
|
readonly chain: Chain.BitcoinCash;
|
|
336
376
|
readonly chainId: ChainId.BitcoinCash;
|
|
337
377
|
readonly explorerUrl: "https://www.blockchair.com/bitcoin-cash";
|
|
338
378
|
readonly name: "BitcoinCash";
|
|
339
379
|
readonly nativeCurrency: "BCH";
|
|
340
|
-
readonly
|
|
380
|
+
readonly networkDerivationPath: [44, 145, 0, 0, 0];
|
|
381
|
+
readonly rpcUrls: ["https://bch-dataseed.binance.org", "https://bch.getblock.io/mainnet"];
|
|
341
382
|
readonly type: "utxo";
|
|
342
383
|
} & {
|
|
343
384
|
chainIdHex: undefined;
|
|
344
385
|
}) | ({
|
|
345
386
|
readonly baseDecimal: 8;
|
|
346
|
-
readonly blockExplorerUrl: "https://blockchair.com/litecoin";
|
|
347
387
|
readonly blockTime: 150;
|
|
348
388
|
readonly chain: Chain.Litecoin;
|
|
349
389
|
readonly chainId: ChainId.Litecoin;
|
|
350
390
|
readonly explorerUrl: "https://blockchair.com/litecoin";
|
|
351
391
|
readonly name: "Litecoin";
|
|
352
392
|
readonly nativeCurrency: "LTC";
|
|
353
|
-
readonly
|
|
393
|
+
readonly networkDerivationPath: [84, 2, 0, 0, 0];
|
|
394
|
+
readonly rpcUrls: ["https://ltc.getblock.io/mainnet", "https://litecoin.publicnode.com"];
|
|
354
395
|
readonly type: "utxo";
|
|
355
396
|
} & {
|
|
356
397
|
chainIdHex: undefined;
|
|
357
398
|
}) | ({
|
|
358
399
|
readonly baseDecimal: 8;
|
|
359
|
-
readonly
|
|
360
|
-
readonly blockTime: 600;
|
|
400
|
+
readonly blockTime: 60;
|
|
361
401
|
readonly chain: Chain.Dogecoin;
|
|
362
402
|
readonly chainId: ChainId.Dogecoin;
|
|
363
403
|
readonly explorerUrl: "https://blockchair.com/dogecoin";
|
|
364
404
|
readonly name: "Dogecoin";
|
|
365
405
|
readonly nativeCurrency: "DOGE";
|
|
366
|
-
readonly
|
|
406
|
+
readonly networkDerivationPath: [44, 3, 0, 0, 0];
|
|
407
|
+
readonly rpcUrls: ["https://doge.getblock.io/mainnet", "https://dogecoin.publicnode.com"];
|
|
367
408
|
readonly type: "utxo";
|
|
368
409
|
} & {
|
|
369
410
|
chainIdHex: undefined;
|
|
370
411
|
}) | ({
|
|
371
412
|
readonly baseDecimal: 8;
|
|
372
|
-
readonly blockExplorerUrl: "https://blockchair.com/dash";
|
|
373
413
|
readonly blockTime: 150;
|
|
374
414
|
readonly chain: Chain.Dash;
|
|
375
415
|
readonly chainId: ChainId.Dash;
|
|
376
416
|
readonly explorerUrl: "https://blockchair.com/dash";
|
|
377
417
|
readonly name: "Dash";
|
|
378
418
|
readonly nativeCurrency: "DASH";
|
|
379
|
-
readonly
|
|
419
|
+
readonly networkDerivationPath: [44, 5, 0, 0, 0];
|
|
420
|
+
readonly rpcUrls: ["https://dash-rpc.publicnode.com", "https://dash.getblock.io/mainnet"];
|
|
380
421
|
readonly type: "utxo";
|
|
381
422
|
} & {
|
|
382
423
|
chainIdHex: undefined;
|
|
383
424
|
}) | ({
|
|
384
425
|
readonly baseDecimal: 8;
|
|
385
|
-
readonly
|
|
386
|
-
readonly blockTime: 150;
|
|
426
|
+
readonly blockTime: 75;
|
|
387
427
|
readonly chain: Chain.Zcash;
|
|
388
428
|
readonly chainId: ChainId.Zcash;
|
|
389
429
|
readonly explorerUrl: "https://blockchair.com/zcash";
|
|
390
430
|
readonly name: "Zcash";
|
|
391
431
|
readonly nativeCurrency: "ZEC";
|
|
392
|
-
readonly
|
|
432
|
+
readonly networkDerivationPath: [44, 133, 0, 0, 0];
|
|
433
|
+
readonly rpcUrls: [];
|
|
393
434
|
readonly type: "utxo";
|
|
394
435
|
} & {
|
|
395
436
|
chainIdHex: undefined;
|
|
@@ -408,8 +449,30 @@ type ChainConfigMap = {
|
|
|
408
449
|
}>;
|
|
409
450
|
};
|
|
410
451
|
export declare function getChainConfig<T extends keyof ChainConfigMap>(chainOrChainId: T): ChainConfigMap[T];
|
|
452
|
+
export declare const NODE_URLS: {
|
|
453
|
+
THOR: string;
|
|
454
|
+
MAYA: string;
|
|
455
|
+
THOR_STAGENET: string;
|
|
456
|
+
MAYA_STAGENET: string;
|
|
457
|
+
};
|
|
458
|
+
/**
|
|
459
|
+
* @example
|
|
460
|
+
* ```diff
|
|
461
|
+
* -const rpcUrl = RPC_URLS[Chain.Ethereum];
|
|
462
|
+
* +const { rpcUrls: [rpcUrl] } = getChainConfig(Chain.Ethereum);
|
|
463
|
+
* ```
|
|
464
|
+
*/
|
|
465
|
+
export declare const RPC_URLS: Record<Chain | StagenetChain, string>;
|
|
411
466
|
/**
|
|
412
|
-
*
|
|
467
|
+
* @example
|
|
468
|
+
* ```diff
|
|
469
|
+
* -const explorerUrl = EXPLORER_URLS[Chain.Ethereum];
|
|
470
|
+
* +const { explorerUrl } = getChainConfig(Chain.Ethereum);
|
|
471
|
+
*/
|
|
472
|
+
export declare const EXPLORER_URLS: Record<Chain, string>;
|
|
473
|
+
/**
|
|
474
|
+
*
|
|
475
|
+
* Note: ChainIdToChain will be discontinued in future versions.
|
|
413
476
|
* Please use getChainConfig instead.
|
|
414
477
|
* @example
|
|
415
478
|
* ```diff
|
|
@@ -417,7 +480,7 @@ export declare function getChainConfig<T extends keyof ChainConfigMap>(chainOrCh
|
|
|
417
480
|
* +const { chainId } = getChainConfig(Chain.Ethereum);
|
|
418
481
|
* ```
|
|
419
482
|
*/
|
|
420
|
-
export declare const ChainToChainId: { readonly [K in Chain]: Extract<ChainConfig, {
|
|
483
|
+
export declare const ChainToChainId: { readonly [K in Chain | StagenetChain]: Extract<ChainConfig, {
|
|
421
484
|
chain: K;
|
|
422
485
|
}>["chainId"]; };
|
|
423
486
|
/**
|
|
@@ -429,9 +492,7 @@ export declare const ChainToChainId: { readonly [K in Chain]: Extract<ChainConfi
|
|
|
429
492
|
* +const { chain } = getChainConfig(ChainId.Ethereum);
|
|
430
493
|
* ```
|
|
431
494
|
*/
|
|
432
|
-
export declare const ChainIdToChain:
|
|
433
|
-
chainId: K;
|
|
434
|
-
}>["chain"]; };
|
|
495
|
+
export declare const ChainIdToChain: Record<ChainId, Chain>;
|
|
435
496
|
/**
|
|
436
497
|
* Note: BaseDecimal will be discontinued in future versions.
|
|
437
498
|
* Please use getChainConfig instead.
|
|
@@ -441,9 +502,7 @@ export declare const ChainIdToChain: { readonly [K in ChainId]: Extract<ChainCon
|
|
|
441
502
|
* +const { baseDecimal } = getChainConfig(Chain.Ethereum);
|
|
442
503
|
* ```
|
|
443
504
|
*/
|
|
444
|
-
export declare const BaseDecimal:
|
|
445
|
-
chain: K;
|
|
446
|
-
}>["baseDecimal"]; };
|
|
505
|
+
export declare const BaseDecimal: Record<Chain, number>;
|
|
447
506
|
/**
|
|
448
507
|
* Note: BlockTimes will be discontinued in future versions.
|
|
449
508
|
* Please use getChainConfig instead.
|
|
@@ -453,7 +512,5 @@ export declare const BaseDecimal: { readonly [K in Chain]: Extract<ChainConfig,
|
|
|
453
512
|
* +const { blockTime } = getChainConfig(Chain.Ethereum);
|
|
454
513
|
* ```
|
|
455
514
|
*/
|
|
456
|
-
export declare const BlockTimes:
|
|
457
|
-
chain: K;
|
|
458
|
-
}>["blockTime"]; };
|
|
515
|
+
export declare const BlockTimes: Record<Chain, number>;
|
|
459
516
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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
|
|
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;AA+BD,eAAO,MAAM,SAAS;;;;;CAKrB,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,KAAK,GAAG,aAAa,EAAE,MAAM,CAAW,CAAC;AAEvE;;;;;GAKG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,CAAgB,CAAC;AAEjE;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,EAEtB,EACH,QAAQ,EAAE,CAAC,IAAI,KAAK,GAAG,aAAa,GAAG,OAAO,CAAC,WAAW,EAAE;IAAE,KAAK,EAAE,CAAC,CAAA;CAAE,CAAC,CAAC,SAAS,CAAC,GACrF,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,wBAAiB,CAAC;AAE7C;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,uBAAqB,CAAC;AAE9C;;;;;;;;GAQG;AACH,eAAO,MAAM,UAAU,uBAAmB,CAAC"}
|