@swapkit/types 0.1.4 → 0.2.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.
- 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 +23 -1
- 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 +192 -80
- package/dist/types/chains/evm.d.ts.map +1 -1
- package/dist/types/chains/index.d.ts +240 -71
- 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 +5 -5
- package/dist/types/chains/substrate.d.ts.map +1 -1
- package/dist/types/chains/utxo.d.ts +12 -12
- 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,190 @@ 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";
|
|
228
|
+
}) | ({
|
|
229
|
+
readonly baseDecimal: 18;
|
|
230
|
+
readonly blockTime: 2;
|
|
231
|
+
readonly chain: Chain.Hyperevm;
|
|
232
|
+
readonly chainId: ChainId.Hyperevm;
|
|
233
|
+
readonly chainIdHex: "0x3e7";
|
|
234
|
+
readonly explorerUrl: "https://app.hyperliquid.xyz/explorer";
|
|
235
|
+
readonly name: "Hyperliquid";
|
|
236
|
+
readonly nativeCurrency: "HYPE";
|
|
237
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
238
|
+
readonly rpcUrls: ["https://rpc.hyperliquid.xyz/evm", "https://rpc.hypurrscan.io"];
|
|
239
|
+
readonly type: "evm";
|
|
240
|
+
} & {
|
|
241
|
+
chainIdHex: "0x3e7";
|
|
242
|
+
}) | ({
|
|
243
|
+
readonly baseDecimal: 18;
|
|
244
|
+
readonly blockTime: 2;
|
|
245
|
+
readonly chain: Chain.Unichain;
|
|
246
|
+
readonly chainId: ChainId.Unichain;
|
|
247
|
+
readonly chainIdHex: "0x82";
|
|
248
|
+
readonly explorerUrl: "https://unichain.blockscout.com";
|
|
249
|
+
readonly name: "Unichain";
|
|
250
|
+
readonly nativeCurrency: "ETH";
|
|
251
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
252
|
+
readonly rpcUrls: ["https://unichain-rpc.publicnode.com", "https://unichain.drpc.org"];
|
|
253
|
+
readonly type: "evm";
|
|
254
|
+
} & {
|
|
255
|
+
chainIdHex: "0x82";
|
|
256
|
+
}) | ({
|
|
257
|
+
readonly baseDecimal: 18;
|
|
258
|
+
readonly blockTime: 2;
|
|
259
|
+
readonly chain: Chain.Corn;
|
|
260
|
+
readonly chainId: ChainId.Corn;
|
|
261
|
+
readonly chainIdHex: "0x1406f40";
|
|
262
|
+
readonly explorerUrl: "https://cornscan.io";
|
|
263
|
+
readonly name: "Corn";
|
|
264
|
+
readonly nativeCurrency: "BTCN";
|
|
265
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
266
|
+
readonly rpcUrls: ["https://mainnet.corn-rpc.com", "https://rpc.ankr.com/corn_maizenet"];
|
|
267
|
+
readonly type: "evm";
|
|
268
|
+
} & {
|
|
269
|
+
chainIdHex: "0x1406f40";
|
|
270
|
+
}) | ({
|
|
271
|
+
readonly baseDecimal: 18;
|
|
272
|
+
readonly blockTime: 2;
|
|
273
|
+
readonly chain: Chain.Core;
|
|
274
|
+
readonly chainId: ChainId.Core;
|
|
275
|
+
readonly chainIdHex: "0x45c";
|
|
276
|
+
readonly explorerUrl: "https://corescan.io";
|
|
277
|
+
readonly name: "Core";
|
|
278
|
+
readonly nativeCurrency: "CORE";
|
|
279
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
280
|
+
readonly rpcUrls: ["https://core-rpc.publicnode.com", "https://1rpc.io/core"];
|
|
281
|
+
readonly type: "evm";
|
|
282
|
+
} & {
|
|
283
|
+
chainIdHex: "0x45c";
|
|
284
|
+
}) | ({
|
|
285
|
+
readonly baseDecimal: 18;
|
|
286
|
+
readonly blockTime: 2;
|
|
287
|
+
readonly chain: Chain.Botanix;
|
|
288
|
+
readonly chainId: ChainId.Botanix;
|
|
289
|
+
readonly chainIdHex: "0xe35";
|
|
290
|
+
readonly explorerUrl: "https://botanixscan.io";
|
|
291
|
+
readonly name: "Botanix";
|
|
292
|
+
readonly nativeCurrency: "BTC";
|
|
293
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
294
|
+
readonly rpcUrls: ["https://core.drpc.org", "https://1rpc.io/core"];
|
|
295
|
+
readonly type: "evm";
|
|
296
|
+
} & {
|
|
297
|
+
chainIdHex: "0xe35";
|
|
298
|
+
}) | ({
|
|
299
|
+
readonly baseDecimal: 18;
|
|
300
|
+
readonly blockTime: 2;
|
|
301
|
+
readonly chain: Chain.Cronos;
|
|
302
|
+
readonly chainId: ChainId.Cronos;
|
|
303
|
+
readonly chainIdHex: "0x19";
|
|
304
|
+
readonly explorerUrl: "https://croscan.io";
|
|
305
|
+
readonly name: "Cronos";
|
|
306
|
+
readonly nativeCurrency: "CRO";
|
|
307
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
308
|
+
readonly rpcUrls: ["https://rpc.vvs.finance"];
|
|
309
|
+
readonly type: "evm";
|
|
310
|
+
} & {
|
|
311
|
+
chainIdHex: "0x19";
|
|
312
|
+
}) | ({
|
|
313
|
+
readonly baseDecimal: 18;
|
|
314
|
+
readonly blockTime: 2;
|
|
315
|
+
readonly chain: Chain.XLayer;
|
|
316
|
+
readonly chainId: ChainId.XLayer;
|
|
317
|
+
readonly chainIdHex: "0xc4";
|
|
318
|
+
readonly explorerUrl: "https://okbscan.com";
|
|
319
|
+
readonly name: "X Layer";
|
|
320
|
+
readonly nativeCurrency: "OKB";
|
|
321
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
322
|
+
readonly rpcUrls: ["https://rpc.xlayer.tech"];
|
|
323
|
+
readonly type: "evm";
|
|
324
|
+
} & {
|
|
325
|
+
chainIdHex: "0xc4";
|
|
326
|
+
}) | ({
|
|
327
|
+
readonly baseDecimal: 18;
|
|
328
|
+
readonly blockTime: 2;
|
|
329
|
+
readonly chain: Chain.Sonic;
|
|
330
|
+
readonly chainId: ChainId.Sonic;
|
|
331
|
+
readonly chainIdHex: "0x92";
|
|
332
|
+
readonly explorerUrl: "https://sonicscan.io";
|
|
333
|
+
readonly name: "Sonic";
|
|
334
|
+
readonly nativeCurrency: "S";
|
|
335
|
+
readonly networkDerivationPath: [number, number, number, number, number];
|
|
336
|
+
readonly rpcUrls: ["https://rpc.sonic.xyz"];
|
|
337
|
+
readonly type: "evm";
|
|
338
|
+
} & {
|
|
339
|
+
chainIdHex: "0x92";
|
|
226
340
|
}) | ({
|
|
227
341
|
readonly baseDecimal: 24;
|
|
228
|
-
readonly blockExplorerUrl: "https://nearblocks.io";
|
|
229
342
|
readonly blockTime: 1;
|
|
230
343
|
readonly chain: Chain.Near;
|
|
231
344
|
readonly chainId: ChainId.Near;
|
|
232
345
|
readonly explorerUrl: "https://nearblocks.io";
|
|
233
346
|
readonly name: "Near";
|
|
234
347
|
readonly nativeCurrency: "NEAR";
|
|
235
|
-
readonly
|
|
348
|
+
readonly networkDerivationPath: [44, 397, 0, 0, 0];
|
|
349
|
+
readonly rpcUrls: ["https://rpc.mainnet.near.org", "https://1rpc.io/near", "https://near.lava.build", "https://near-mainnet.infura.io/v3/3cbfcafa5e1e48b7bb0ea41f2fbc4abf"];
|
|
236
350
|
readonly type: "others";
|
|
237
351
|
} & {
|
|
238
352
|
chainIdHex: undefined;
|
|
239
353
|
}) | ({
|
|
240
354
|
readonly baseDecimal: 18;
|
|
241
|
-
readonly blockExplorerUrl: "https://dashboard.radixdlt.com";
|
|
242
355
|
readonly blockTime: 5;
|
|
243
356
|
readonly chain: Chain.Radix;
|
|
244
357
|
readonly chainId: ChainId.Radix;
|
|
245
358
|
readonly explorerUrl: "https://dashboard.radixdlt.com";
|
|
246
359
|
readonly name: "Radix";
|
|
247
360
|
readonly nativeCurrency: "XRD";
|
|
248
|
-
readonly
|
|
361
|
+
readonly networkDerivationPath: [0, 0, 0, 0, 0];
|
|
362
|
+
readonly rpcUrls: ["https://radix-mainnet.rpc.grove.city/v1/326002fc/core", "https://mainnet.radixdlt.com", "https://radix-mainnet.rpc.grove.city/v1"];
|
|
249
363
|
readonly type: "others";
|
|
250
364
|
} & {
|
|
251
365
|
chainIdHex: undefined;
|
|
252
366
|
}) | ({
|
|
253
367
|
readonly baseDecimal: 6;
|
|
254
|
-
readonly blockExplorerUrl: "https://livenet.xrpl.org/";
|
|
255
368
|
readonly blockTime: 5;
|
|
256
369
|
readonly chain: Chain.Ripple;
|
|
257
370
|
readonly chainId: ChainId.Ripple;
|
|
258
371
|
readonly explorerUrl: "https://livenet.xrpl.org/";
|
|
259
372
|
readonly name: "Ripple";
|
|
260
373
|
readonly nativeCurrency: "XRP";
|
|
261
|
-
readonly
|
|
374
|
+
readonly networkDerivationPath: [44, 144, 0, 0, 0];
|
|
375
|
+
readonly rpcUrls: ["wss://xrpl.ws/", "wss://s1.ripple.com/", "wss://s2.ripple.com/"];
|
|
262
376
|
readonly type: "others";
|
|
263
377
|
} & {
|
|
264
378
|
chainIdHex: undefined;
|
|
265
379
|
}) | ({
|
|
266
380
|
readonly baseDecimal: 9;
|
|
267
|
-
readonly blockExplorerUrl: "https://solscan.io";
|
|
268
381
|
readonly blockTime: 0.4;
|
|
269
382
|
readonly chain: Chain.Solana;
|
|
270
383
|
readonly chainId: ChainId.Solana;
|
|
271
384
|
readonly explorerUrl: "https://solscan.io";
|
|
272
385
|
readonly name: "Solana";
|
|
273
386
|
readonly nativeCurrency: "SOL";
|
|
274
|
-
readonly
|
|
387
|
+
readonly networkDerivationPath: [44, 501, 0, 0, 0];
|
|
388
|
+
readonly rpcUrls: ["https://solana-rpc.publicnode.com", "https://api.mainnet-beta.solana.com", "https://solana-mainnet.rpc.extrnode.com"];
|
|
389
|
+
readonly type: "others";
|
|
390
|
+
} & {
|
|
391
|
+
chainIdHex: undefined;
|
|
392
|
+
}) | ({
|
|
393
|
+
readonly baseDecimal: 9;
|
|
394
|
+
readonly blockTime: 5;
|
|
395
|
+
readonly chain: Chain.Ton;
|
|
396
|
+
readonly chainId: ChainId.Ton;
|
|
397
|
+
readonly explorerUrl: "https://tonscan.org";
|
|
398
|
+
readonly name: "Ton";
|
|
399
|
+
readonly nativeCurrency: "TON";
|
|
400
|
+
readonly networkDerivationPath: [44, 607, 0, 0, 0];
|
|
401
|
+
readonly rpcUrls: ["https://ton.api.onfinality.io/public", "https://ton.drpc.org/rest/", "https://toncenter.com/api/v2/jsonRPC"];
|
|
275
402
|
readonly type: "others";
|
|
276
403
|
} & {
|
|
277
404
|
chainIdHex: undefined;
|
|
278
405
|
}) | ({
|
|
279
406
|
readonly baseDecimal: 6;
|
|
280
|
-
readonly blockExplorerUrl: "https://tronscan.org";
|
|
281
407
|
readonly blockTime: 3;
|
|
282
408
|
readonly chain: Chain.Tron;
|
|
283
409
|
readonly chainId: ChainId.Tron;
|
|
@@ -285,111 +411,138 @@ export declare const AllChainConfigs: (({
|
|
|
285
411
|
readonly explorerUrl: "https://tronscan.org";
|
|
286
412
|
readonly name: "Tron";
|
|
287
413
|
readonly nativeCurrency: "TRX";
|
|
288
|
-
readonly
|
|
414
|
+
readonly networkDerivationPath: [44, 195, 0, 0, 0];
|
|
415
|
+
readonly rpcUrls: ["https://tron-rpc.publicnode.com", "https://api.tronstack.io", "https://api.tron.network"];
|
|
289
416
|
readonly type: "others";
|
|
290
417
|
} & {
|
|
291
418
|
chainIdHex: "0x2b6653dc";
|
|
419
|
+
}) | ({
|
|
420
|
+
readonly baseDecimal: 9;
|
|
421
|
+
readonly blockTime: 5;
|
|
422
|
+
readonly chain: Chain.Sui;
|
|
423
|
+
readonly chainId: ChainId.Sui;
|
|
424
|
+
readonly explorerUrl: "https://suiscan.xyz";
|
|
425
|
+
readonly name: "Sui";
|
|
426
|
+
readonly nativeCurrency: "SUI";
|
|
427
|
+
readonly networkDerivationPath: [44, 784, 0, 0, 0];
|
|
428
|
+
readonly rpcUrls: ["https://fullnode.mainnet.sui.io:443"];
|
|
429
|
+
readonly type: "others";
|
|
430
|
+
} & {
|
|
431
|
+
chainIdHex: undefined;
|
|
432
|
+
}) | ({
|
|
433
|
+
readonly baseDecimal: 6;
|
|
434
|
+
readonly blockTime: 600;
|
|
435
|
+
readonly chain: Chain.Cardano;
|
|
436
|
+
readonly chainId: ChainId.Cardano;
|
|
437
|
+
readonly explorerUrl: "https://cexplorer.io";
|
|
438
|
+
readonly name: "Cardano";
|
|
439
|
+
readonly nativeCurrency: "ADA";
|
|
440
|
+
readonly networkDerivationPath: [1852, 1815, 0, 0, 0];
|
|
441
|
+
readonly rpcUrls: ["https://api.koios.rest/api/v1", "https://cardano-mainnet.blockfrost.io/api/v0"];
|
|
442
|
+
readonly type: "others";
|
|
443
|
+
} & {
|
|
444
|
+
chainIdHex: undefined;
|
|
292
445
|
}) | ({
|
|
293
446
|
readonly baseDecimal: 10;
|
|
294
|
-
readonly blockExplorerUrl: "https://polkadot.subscan.io";
|
|
295
447
|
readonly blockTime: 6;
|
|
296
448
|
readonly chain: Chain.Polkadot;
|
|
297
449
|
readonly chainId: ChainId.Polkadot;
|
|
298
450
|
readonly explorerUrl: "https://polkadot.subscan.io";
|
|
299
451
|
readonly name: "Polkadot";
|
|
300
452
|
readonly nativeCurrency: "DOT";
|
|
301
|
-
readonly
|
|
453
|
+
readonly networkDerivationPath: [0, 0, 0, 0, 0];
|
|
454
|
+
readonly rpcUrls: ["wss://rpc.polkadot.io", "wss://polkadot-rpc.dwellir.com", "wss://polkadot.api.onfinality.io/public-ws"];
|
|
302
455
|
readonly type: "substrate";
|
|
303
456
|
} & {
|
|
304
457
|
chainIdHex: undefined;
|
|
305
458
|
}) | ({
|
|
306
459
|
readonly baseDecimal: 18;
|
|
307
|
-
readonly blockExplorerUrl: "https://explorer.polkascan.io/polkadot";
|
|
308
460
|
readonly blockTime: 5;
|
|
309
461
|
readonly chain: Chain.Chainflip;
|
|
310
462
|
readonly chainId: ChainId.Chainflip;
|
|
311
463
|
readonly explorerUrl: "https://explorer.polkascan.io/polkadot";
|
|
312
464
|
readonly name: "Chainflip";
|
|
313
465
|
readonly nativeCurrency: "FLIP";
|
|
314
|
-
readonly
|
|
466
|
+
readonly networkDerivationPath: [0, 0, 0, 0, 0];
|
|
467
|
+
readonly rpcUrls: ["wss://mainnet-archive.chainflip.io", "wss://archive-1.mainnet.chainflip.io", "wss://archive-2.mainnet.chainflip.io"];
|
|
315
468
|
readonly type: "substrate";
|
|
316
469
|
} & {
|
|
317
470
|
chainIdHex: undefined;
|
|
318
471
|
}) | ({
|
|
319
472
|
readonly baseDecimal: 8;
|
|
320
|
-
readonly blockExplorerUrl: "https://blockchair.com/bitcoin";
|
|
321
473
|
readonly blockTime: 600;
|
|
322
474
|
readonly chain: Chain.Bitcoin;
|
|
323
475
|
readonly chainId: ChainId.Bitcoin;
|
|
324
476
|
readonly explorerUrl: "https://blockchair.com/bitcoin";
|
|
325
477
|
readonly name: "Bitcoin";
|
|
326
478
|
readonly nativeCurrency: "BTC";
|
|
327
|
-
readonly
|
|
479
|
+
readonly networkDerivationPath: [number, number, number, number, number?];
|
|
480
|
+
readonly rpcUrls: ["https://bitcoin-rpc.publicnode.com", "https://bitcoin.publicnode.com"];
|
|
328
481
|
readonly type: "utxo";
|
|
329
482
|
} & {
|
|
330
483
|
chainIdHex: undefined;
|
|
331
484
|
}) | ({
|
|
332
485
|
readonly baseDecimal: 8;
|
|
333
|
-
readonly blockExplorerUrl: "https://www.blockchair.com/bitcoin-cash";
|
|
334
486
|
readonly blockTime: 600;
|
|
335
487
|
readonly chain: Chain.BitcoinCash;
|
|
336
488
|
readonly chainId: ChainId.BitcoinCash;
|
|
337
489
|
readonly explorerUrl: "https://www.blockchair.com/bitcoin-cash";
|
|
338
490
|
readonly name: "BitcoinCash";
|
|
339
491
|
readonly nativeCurrency: "BCH";
|
|
340
|
-
readonly
|
|
492
|
+
readonly networkDerivationPath: [44, 145, 0, 0, 0];
|
|
493
|
+
readonly rpcUrls: ["https://bch-dataseed.binance.org", "https://bch.getblock.io/mainnet"];
|
|
341
494
|
readonly type: "utxo";
|
|
342
495
|
} & {
|
|
343
496
|
chainIdHex: undefined;
|
|
344
497
|
}) | ({
|
|
345
498
|
readonly baseDecimal: 8;
|
|
346
|
-
readonly blockExplorerUrl: "https://blockchair.com/litecoin";
|
|
347
499
|
readonly blockTime: 150;
|
|
348
500
|
readonly chain: Chain.Litecoin;
|
|
349
501
|
readonly chainId: ChainId.Litecoin;
|
|
350
502
|
readonly explorerUrl: "https://blockchair.com/litecoin";
|
|
351
503
|
readonly name: "Litecoin";
|
|
352
504
|
readonly nativeCurrency: "LTC";
|
|
353
|
-
readonly
|
|
505
|
+
readonly networkDerivationPath: [84, 2, 0, 0, 0];
|
|
506
|
+
readonly rpcUrls: ["https://ltc.getblock.io/mainnet", "https://litecoin.publicnode.com"];
|
|
354
507
|
readonly type: "utxo";
|
|
355
508
|
} & {
|
|
356
509
|
chainIdHex: undefined;
|
|
357
510
|
}) | ({
|
|
358
511
|
readonly baseDecimal: 8;
|
|
359
|
-
readonly blockExplorerUrl: "https://blockchair.com/dogecoin";
|
|
360
512
|
readonly blockTime: 60;
|
|
361
513
|
readonly chain: Chain.Dogecoin;
|
|
362
514
|
readonly chainId: ChainId.Dogecoin;
|
|
363
515
|
readonly explorerUrl: "https://blockchair.com/dogecoin";
|
|
364
516
|
readonly name: "Dogecoin";
|
|
365
517
|
readonly nativeCurrency: "DOGE";
|
|
366
|
-
readonly
|
|
518
|
+
readonly networkDerivationPath: [44, 3, 0, 0, 0];
|
|
519
|
+
readonly rpcUrls: ["https://doge.getblock.io/mainnet", "https://dogecoin.publicnode.com"];
|
|
367
520
|
readonly type: "utxo";
|
|
368
521
|
} & {
|
|
369
522
|
chainIdHex: undefined;
|
|
370
523
|
}) | ({
|
|
371
524
|
readonly baseDecimal: 8;
|
|
372
|
-
readonly blockExplorerUrl: "https://blockchair.com/dash";
|
|
373
525
|
readonly blockTime: 150;
|
|
374
526
|
readonly chain: Chain.Dash;
|
|
375
527
|
readonly chainId: ChainId.Dash;
|
|
376
528
|
readonly explorerUrl: "https://blockchair.com/dash";
|
|
377
529
|
readonly name: "Dash";
|
|
378
530
|
readonly nativeCurrency: "DASH";
|
|
379
|
-
readonly
|
|
531
|
+
readonly networkDerivationPath: [44, 5, 0, 0, 0];
|
|
532
|
+
readonly rpcUrls: ["https://dash-rpc.publicnode.com", "https://dash.getblock.io/mainnet"];
|
|
380
533
|
readonly type: "utxo";
|
|
381
534
|
} & {
|
|
382
535
|
chainIdHex: undefined;
|
|
383
536
|
}) | ({
|
|
384
537
|
readonly baseDecimal: 8;
|
|
385
|
-
readonly blockExplorerUrl: "https://blockchair.com/zcash";
|
|
386
538
|
readonly blockTime: 75;
|
|
387
539
|
readonly chain: Chain.Zcash;
|
|
388
540
|
readonly chainId: ChainId.Zcash;
|
|
389
541
|
readonly explorerUrl: "https://blockchair.com/zcash";
|
|
390
542
|
readonly name: "Zcash";
|
|
391
543
|
readonly nativeCurrency: "ZEC";
|
|
392
|
-
readonly
|
|
544
|
+
readonly networkDerivationPath: [44, 133, 0, 0, 0];
|
|
545
|
+
readonly rpcUrls: [];
|
|
393
546
|
readonly type: "utxo";
|
|
394
547
|
} & {
|
|
395
548
|
chainIdHex: undefined;
|
|
@@ -408,8 +561,30 @@ type ChainConfigMap = {
|
|
|
408
561
|
}>;
|
|
409
562
|
};
|
|
410
563
|
export declare function getChainConfig<T extends keyof ChainConfigMap>(chainOrChainId: T): ChainConfigMap[T];
|
|
564
|
+
export declare const NODE_URLS: {
|
|
565
|
+
THOR: string;
|
|
566
|
+
MAYA: string;
|
|
567
|
+
THOR_STAGENET: string;
|
|
568
|
+
MAYA_STAGENET: string;
|
|
569
|
+
};
|
|
411
570
|
/**
|
|
412
|
-
*
|
|
571
|
+
* @example
|
|
572
|
+
* ```diff
|
|
573
|
+
* -const rpcUrl = RPC_URLS[Chain.Ethereum];
|
|
574
|
+
* +const { rpcUrls: [rpcUrl] } = getChainConfig(Chain.Ethereum);
|
|
575
|
+
* ```
|
|
576
|
+
*/
|
|
577
|
+
export declare const RPC_URLS: Record<Chain | StagenetChain, string>;
|
|
578
|
+
/**
|
|
579
|
+
* @example
|
|
580
|
+
* ```diff
|
|
581
|
+
* -const explorerUrl = EXPLORER_URLS[Chain.Ethereum];
|
|
582
|
+
* +const { explorerUrl } = getChainConfig(Chain.Ethereum);
|
|
583
|
+
*/
|
|
584
|
+
export declare const EXPLORER_URLS: Record<Chain, string>;
|
|
585
|
+
/**
|
|
586
|
+
*
|
|
587
|
+
* Note: ChainIdToChain will be discontinued in future versions.
|
|
413
588
|
* Please use getChainConfig instead.
|
|
414
589
|
* @example
|
|
415
590
|
* ```diff
|
|
@@ -417,7 +592,7 @@ export declare function getChainConfig<T extends keyof ChainConfigMap>(chainOrCh
|
|
|
417
592
|
* +const { chainId } = getChainConfig(Chain.Ethereum);
|
|
418
593
|
* ```
|
|
419
594
|
*/
|
|
420
|
-
export declare const ChainToChainId: { readonly [K in Chain]: Extract<ChainConfig, {
|
|
595
|
+
export declare const ChainToChainId: { readonly [K in Chain | StagenetChain]: Extract<ChainConfig, {
|
|
421
596
|
chain: K;
|
|
422
597
|
}>["chainId"]; };
|
|
423
598
|
/**
|
|
@@ -429,9 +604,7 @@ export declare const ChainToChainId: { readonly [K in Chain]: Extract<ChainConfi
|
|
|
429
604
|
* +const { chain } = getChainConfig(ChainId.Ethereum);
|
|
430
605
|
* ```
|
|
431
606
|
*/
|
|
432
|
-
export declare const ChainIdToChain:
|
|
433
|
-
chainId: K;
|
|
434
|
-
}>["chain"]; };
|
|
607
|
+
export declare const ChainIdToChain: Record<ChainId, Chain>;
|
|
435
608
|
/**
|
|
436
609
|
* Note: BaseDecimal will be discontinued in future versions.
|
|
437
610
|
* Please use getChainConfig instead.
|
|
@@ -441,9 +614,7 @@ export declare const ChainIdToChain: { readonly [K in ChainId]: Extract<ChainCon
|
|
|
441
614
|
* +const { baseDecimal } = getChainConfig(Chain.Ethereum);
|
|
442
615
|
* ```
|
|
443
616
|
*/
|
|
444
|
-
export declare const BaseDecimal:
|
|
445
|
-
chain: K;
|
|
446
|
-
}>["baseDecimal"]; };
|
|
617
|
+
export declare const BaseDecimal: Record<Chain, number>;
|
|
447
618
|
/**
|
|
448
619
|
* Note: BlockTimes will be discontinued in future versions.
|
|
449
620
|
* Please use getChainConfig instead.
|
|
@@ -453,7 +624,5 @@ export declare const BaseDecimal: { readonly [K in Chain]: Extract<ChainConfig,
|
|
|
453
624
|
* +const { blockTime } = getChainConfig(Chain.Ethereum);
|
|
454
625
|
* ```
|
|
455
626
|
*/
|
|
456
|
-
export declare const BlockTimes:
|
|
457
|
-
chain: K;
|
|
458
|
-
}>["blockTime"]; };
|
|
627
|
+
export declare const BlockTimes: Record<Chain, number>;
|
|
459
628
|
//# sourceMappingURL=index.d.ts.map
|