@wormhole-foundation/sdk-base 0.1.8-beta.10 → 0.1.8-beta.11
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/cjs/constants/contracts/index.d.ts +185 -0
- package/dist/cjs/constants/contracts/index.d.ts.map +1 -1
- package/dist/cjs/constants/contracts/index.js +3 -1
- package/dist/cjs/constants/contracts/index.js.map +1 -1
- package/dist/cjs/constants/contracts/rollupCheckpoint.d.ts +2 -0
- package/dist/cjs/constants/contracts/rollupCheckpoint.d.ts.map +1 -0
- package/dist/cjs/constants/contracts/rollupCheckpoint.js +25 -0
- package/dist/cjs/constants/contracts/rollupCheckpoint.js.map +1 -0
- package/dist/cjs/constants/finality.d.ts +74 -611
- package/dist/cjs/constants/finality.d.ts.map +1 -1
- package/dist/cjs/constants/finality.js +71 -24
- package/dist/cjs/constants/finality.js.map +1 -1
- package/dist/cjs/constants/platforms.d.ts +38 -0
- package/dist/cjs/constants/platforms.d.ts.map +1 -1
- package/dist/cjs/constants/platforms.js +12 -1
- package/dist/cjs/constants/platforms.js.map +1 -1
- package/dist/cjs/utils/encoding.d.ts +3 -0
- package/dist/cjs/utils/encoding.d.ts.map +1 -1
- package/dist/cjs/utils/encoding.js +16 -1
- package/dist/cjs/utils/encoding.js.map +1 -1
- package/dist/cjs/utils/misc.d.ts +2 -0
- package/dist/cjs/utils/misc.d.ts.map +1 -1
- package/dist/cjs/utils/misc.js +21 -1
- package/dist/cjs/utils/misc.js.map +1 -1
- package/dist/esm/constants/contracts/index.d.ts +185 -0
- package/dist/esm/constants/contracts/index.d.ts.map +1 -1
- package/dist/esm/constants/contracts/index.js +2 -0
- package/dist/esm/constants/contracts/index.js.map +1 -1
- package/dist/esm/constants/contracts/rollupCheckpoint.d.ts +2 -0
- package/dist/esm/constants/contracts/rollupCheckpoint.d.ts.map +1 -0
- package/dist/esm/constants/contracts/rollupCheckpoint.js +22 -0
- package/dist/esm/constants/contracts/rollupCheckpoint.js.map +1 -0
- package/dist/esm/constants/finality.d.ts +74 -611
- package/dist/esm/constants/finality.d.ts.map +1 -1
- package/dist/esm/constants/finality.js +69 -23
- package/dist/esm/constants/finality.js.map +1 -1
- package/dist/esm/constants/platforms.d.ts +38 -0
- package/dist/esm/constants/platforms.d.ts.map +1 -1
- package/dist/esm/constants/platforms.js +11 -0
- package/dist/esm/constants/platforms.js.map +1 -1
- package/dist/esm/utils/encoding.d.ts +3 -0
- package/dist/esm/utils/encoding.d.ts.map +1 -1
- package/dist/esm/utils/encoding.js +12 -0
- package/dist/esm/utils/encoding.js.map +1 -1
- package/dist/esm/utils/misc.d.ts +2 -0
- package/dist/esm/utils/misc.d.ts.map +1 -1
- package/dist/esm/utils/misc.js +18 -0
- package/dist/esm/utils/misc.js.map +1 -1
- package/package.json +1 -1
- package/src/constants/contracts/index.ts +2 -0
- package/src/constants/contracts/rollupCheckpoint.ts +27 -0
- package/src/constants/finality.ts +78 -28
- package/src/constants/platforms.ts +14 -0
- package/src/utils/encoding.ts +16 -0
- package/src/utils/misc.ts +19 -0
|
@@ -1,622 +1,84 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly Moonbeam: 1;
|
|
11
|
-
readonly Sui: 0;
|
|
12
|
-
readonly Aptos: 0;
|
|
13
|
-
readonly Sei: 0;
|
|
14
|
-
};
|
|
15
|
-
readonly Testnet: {
|
|
16
|
-
readonly Ethereum: 64;
|
|
17
|
-
readonly Solana: 32;
|
|
18
|
-
readonly Polygon: 64;
|
|
19
|
-
readonly Bsc: 15;
|
|
20
|
-
readonly Avalanche: 1;
|
|
21
|
-
readonly Fantom: 1;
|
|
22
|
-
readonly Celo: 1;
|
|
23
|
-
readonly Moonbeam: 1;
|
|
24
|
-
readonly Sui: 0;
|
|
25
|
-
readonly Aptos: 0;
|
|
26
|
-
readonly Sei: 0;
|
|
27
|
-
};
|
|
28
|
-
readonly Devnet: {
|
|
29
|
-
readonly Ethereum: 64;
|
|
30
|
-
readonly Solana: 32;
|
|
31
|
-
readonly Polygon: 64;
|
|
32
|
-
readonly Bsc: 15;
|
|
33
|
-
readonly Avalanche: 1;
|
|
34
|
-
readonly Fantom: 1;
|
|
35
|
-
readonly Celo: 1;
|
|
36
|
-
readonly Moonbeam: 1;
|
|
37
|
-
readonly Sui: 0;
|
|
38
|
-
readonly Aptos: 0;
|
|
39
|
-
readonly Sei: 0;
|
|
40
|
-
};
|
|
41
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] extends {
|
|
1
|
+
import { ChainName } from "./chains";
|
|
2
|
+
export declare enum ConsistencyLevels {
|
|
3
|
+
Finalized = 1,
|
|
4
|
+
Immediate = 200,
|
|
5
|
+
Safe = 201
|
|
6
|
+
}
|
|
7
|
+
export declare const safeThreshold: (<K1 extends "Ethereum">(args_0: K1) => (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1) extends "Ethereum" ? {
|
|
8
|
+
readonly Ethereum: 32;
|
|
9
|
+
}["Ethereum" & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] extends {
|
|
42
10
|
[key: string]: unknown;
|
|
43
11
|
[key: number]: unknown;
|
|
44
12
|
[key: symbol]: unknown;
|
|
45
13
|
} ? {
|
|
46
|
-
readonly
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
readonly
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
readonly Devnet: {
|
|
73
|
-
readonly Ethereum: 64;
|
|
74
|
-
readonly Solana: 32;
|
|
75
|
-
readonly Polygon: 64;
|
|
76
|
-
readonly Bsc: 15;
|
|
77
|
-
readonly Avalanche: 1;
|
|
78
|
-
readonly Fantom: 1;
|
|
79
|
-
readonly Celo: 1;
|
|
80
|
-
readonly Moonbeam: 1;
|
|
81
|
-
readonly Sui: 0;
|
|
82
|
-
readonly Aptos: 0;
|
|
83
|
-
readonly Sei: 0;
|
|
84
|
-
};
|
|
85
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] : {
|
|
86
|
-
readonly Mainnet: {
|
|
87
|
-
readonly Ethereum: 64;
|
|
88
|
-
readonly Solana: 32;
|
|
89
|
-
readonly Polygon: 512;
|
|
90
|
-
readonly Bsc: 15;
|
|
91
|
-
readonly Avalanche: 1;
|
|
92
|
-
readonly Fantom: 1;
|
|
93
|
-
readonly Celo: 1;
|
|
94
|
-
readonly Moonbeam: 1;
|
|
95
|
-
readonly Sui: 0;
|
|
96
|
-
readonly Aptos: 0;
|
|
97
|
-
readonly Sei: 0;
|
|
98
|
-
};
|
|
99
|
-
readonly Testnet: {
|
|
100
|
-
readonly Ethereum: 64;
|
|
101
|
-
readonly Solana: 32;
|
|
102
|
-
readonly Polygon: 64;
|
|
103
|
-
readonly Bsc: 15;
|
|
104
|
-
readonly Avalanche: 1;
|
|
105
|
-
readonly Fantom: 1;
|
|
106
|
-
readonly Celo: 1;
|
|
107
|
-
readonly Moonbeam: 1;
|
|
108
|
-
readonly Sui: 0;
|
|
109
|
-
readonly Aptos: 0;
|
|
110
|
-
readonly Sei: 0;
|
|
111
|
-
};
|
|
112
|
-
readonly Devnet: {
|
|
113
|
-
readonly Ethereum: 64;
|
|
114
|
-
readonly Solana: 32;
|
|
115
|
-
readonly Polygon: 64;
|
|
116
|
-
readonly Bsc: 15;
|
|
117
|
-
readonly Avalanche: 1;
|
|
118
|
-
readonly Fantom: 1;
|
|
119
|
-
readonly Celo: 1;
|
|
120
|
-
readonly Moonbeam: 1;
|
|
121
|
-
readonly Sui: 0;
|
|
122
|
-
readonly Aptos: 0;
|
|
123
|
-
readonly Sei: 0;
|
|
124
|
-
};
|
|
125
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] : never) extends infer T ? T extends keyof ((K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1) extends "Mainnet" | "Testnet" | "Devnet" ? {
|
|
126
|
-
readonly Mainnet: {
|
|
127
|
-
readonly Ethereum: 64;
|
|
128
|
-
readonly Solana: 32;
|
|
129
|
-
readonly Polygon: 512;
|
|
130
|
-
readonly Bsc: 15;
|
|
131
|
-
readonly Avalanche: 1;
|
|
132
|
-
readonly Fantom: 1;
|
|
133
|
-
readonly Celo: 1;
|
|
134
|
-
readonly Moonbeam: 1;
|
|
135
|
-
readonly Sui: 0;
|
|
136
|
-
readonly Aptos: 0;
|
|
137
|
-
readonly Sei: 0;
|
|
138
|
-
};
|
|
139
|
-
readonly Testnet: {
|
|
140
|
-
readonly Ethereum: 64;
|
|
141
|
-
readonly Solana: 32;
|
|
142
|
-
readonly Polygon: 64;
|
|
143
|
-
readonly Bsc: 15;
|
|
144
|
-
readonly Avalanche: 1;
|
|
145
|
-
readonly Fantom: 1;
|
|
146
|
-
readonly Celo: 1;
|
|
147
|
-
readonly Moonbeam: 1;
|
|
148
|
-
readonly Sui: 0;
|
|
149
|
-
readonly Aptos: 0;
|
|
150
|
-
readonly Sei: 0;
|
|
151
|
-
};
|
|
152
|
-
readonly Devnet: {
|
|
153
|
-
readonly Ethereum: 64;
|
|
154
|
-
readonly Solana: 32;
|
|
155
|
-
readonly Polygon: 64;
|
|
156
|
-
readonly Bsc: 15;
|
|
157
|
-
readonly Avalanche: 1;
|
|
158
|
-
readonly Fantom: 1;
|
|
159
|
-
readonly Celo: 1;
|
|
160
|
-
readonly Moonbeam: 1;
|
|
161
|
-
readonly Sui: 0;
|
|
162
|
-
readonly Aptos: 0;
|
|
163
|
-
readonly Sei: 0;
|
|
164
|
-
};
|
|
165
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] extends {
|
|
166
|
-
[key: string]: unknown;
|
|
167
|
-
[key: number]: unknown;
|
|
168
|
-
[key: symbol]: unknown;
|
|
169
|
-
} ? {
|
|
170
|
-
readonly Mainnet: {
|
|
171
|
-
readonly Ethereum: 64;
|
|
172
|
-
readonly Solana: 32;
|
|
173
|
-
readonly Polygon: 512;
|
|
174
|
-
readonly Bsc: 15;
|
|
175
|
-
readonly Avalanche: 1;
|
|
176
|
-
readonly Fantom: 1;
|
|
177
|
-
readonly Celo: 1;
|
|
178
|
-
readonly Moonbeam: 1;
|
|
179
|
-
readonly Sui: 0;
|
|
180
|
-
readonly Aptos: 0;
|
|
181
|
-
readonly Sei: 0;
|
|
182
|
-
};
|
|
183
|
-
readonly Testnet: {
|
|
184
|
-
readonly Ethereum: 64;
|
|
185
|
-
readonly Solana: 32;
|
|
186
|
-
readonly Polygon: 64;
|
|
187
|
-
readonly Bsc: 15;
|
|
188
|
-
readonly Avalanche: 1;
|
|
189
|
-
readonly Fantom: 1;
|
|
190
|
-
readonly Celo: 1;
|
|
191
|
-
readonly Moonbeam: 1;
|
|
192
|
-
readonly Sui: 0;
|
|
193
|
-
readonly Aptos: 0;
|
|
194
|
-
readonly Sei: 0;
|
|
195
|
-
};
|
|
196
|
-
readonly Devnet: {
|
|
197
|
-
readonly Ethereum: 64;
|
|
198
|
-
readonly Solana: 32;
|
|
199
|
-
readonly Polygon: 64;
|
|
200
|
-
readonly Bsc: 15;
|
|
201
|
-
readonly Avalanche: 1;
|
|
202
|
-
readonly Fantom: 1;
|
|
203
|
-
readonly Celo: 1;
|
|
204
|
-
readonly Moonbeam: 1;
|
|
205
|
-
readonly Sui: 0;
|
|
206
|
-
readonly Aptos: 0;
|
|
207
|
-
readonly Sei: 0;
|
|
208
|
-
};
|
|
209
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] : {
|
|
210
|
-
readonly Mainnet: {
|
|
211
|
-
readonly Ethereum: 64;
|
|
212
|
-
readonly Solana: 32;
|
|
213
|
-
readonly Polygon: 512;
|
|
214
|
-
readonly Bsc: 15;
|
|
215
|
-
readonly Avalanche: 1;
|
|
216
|
-
readonly Fantom: 1;
|
|
217
|
-
readonly Celo: 1;
|
|
218
|
-
readonly Moonbeam: 1;
|
|
219
|
-
readonly Sui: 0;
|
|
220
|
-
readonly Aptos: 0;
|
|
221
|
-
readonly Sei: 0;
|
|
222
|
-
};
|
|
223
|
-
readonly Testnet: {
|
|
224
|
-
readonly Ethereum: 64;
|
|
225
|
-
readonly Solana: 32;
|
|
226
|
-
readonly Polygon: 64;
|
|
227
|
-
readonly Bsc: 15;
|
|
228
|
-
readonly Avalanche: 1;
|
|
229
|
-
readonly Fantom: 1;
|
|
230
|
-
readonly Celo: 1;
|
|
231
|
-
readonly Moonbeam: 1;
|
|
232
|
-
readonly Sui: 0;
|
|
233
|
-
readonly Aptos: 0;
|
|
234
|
-
readonly Sei: 0;
|
|
235
|
-
};
|
|
236
|
-
readonly Devnet: {
|
|
237
|
-
readonly Ethereum: 64;
|
|
238
|
-
readonly Solana: 32;
|
|
239
|
-
readonly Polygon: 64;
|
|
240
|
-
readonly Bsc: 15;
|
|
241
|
-
readonly Avalanche: 1;
|
|
242
|
-
readonly Fantom: 1;
|
|
243
|
-
readonly Celo: 1;
|
|
244
|
-
readonly Moonbeam: 1;
|
|
245
|
-
readonly Sui: 0;
|
|
246
|
-
readonly Aptos: 0;
|
|
247
|
-
readonly Sei: 0;
|
|
248
|
-
};
|
|
249
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] : never) ? T extends `bigint(${infer V extends bigint})` ? V : T extends `boolean(${infer V_1 extends boolean})` ? V_1 : T : never : never>(args_0: K1, args_1: K2) => (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1) extends "Mainnet" | "Testnet" | "Devnet" ? {
|
|
250
|
-
readonly Mainnet: {
|
|
251
|
-
readonly Ethereum: 64;
|
|
252
|
-
readonly Solana: 32;
|
|
253
|
-
readonly Polygon: 512;
|
|
254
|
-
readonly Bsc: 15;
|
|
255
|
-
readonly Avalanche: 1;
|
|
256
|
-
readonly Fantom: 1;
|
|
257
|
-
readonly Celo: 1;
|
|
258
|
-
readonly Moonbeam: 1;
|
|
259
|
-
readonly Sui: 0;
|
|
260
|
-
readonly Aptos: 0;
|
|
261
|
-
readonly Sei: 0;
|
|
262
|
-
};
|
|
263
|
-
readonly Testnet: {
|
|
264
|
-
readonly Ethereum: 64;
|
|
265
|
-
readonly Solana: 32;
|
|
266
|
-
readonly Polygon: 64;
|
|
267
|
-
readonly Bsc: 15;
|
|
268
|
-
readonly Avalanche: 1;
|
|
269
|
-
readonly Fantom: 1;
|
|
270
|
-
readonly Celo: 1;
|
|
271
|
-
readonly Moonbeam: 1;
|
|
272
|
-
readonly Sui: 0;
|
|
273
|
-
readonly Aptos: 0;
|
|
274
|
-
readonly Sei: 0;
|
|
275
|
-
};
|
|
276
|
-
readonly Devnet: {
|
|
277
|
-
readonly Ethereum: 64;
|
|
278
|
-
readonly Solana: 32;
|
|
279
|
-
readonly Polygon: 64;
|
|
280
|
-
readonly Bsc: 15;
|
|
281
|
-
readonly Avalanche: 1;
|
|
282
|
-
readonly Fantom: 1;
|
|
283
|
-
readonly Celo: 1;
|
|
284
|
-
readonly Moonbeam: 1;
|
|
285
|
-
readonly Sui: 0;
|
|
286
|
-
readonly Aptos: 0;
|
|
287
|
-
readonly Sei: 0;
|
|
288
|
-
};
|
|
289
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] extends {
|
|
290
|
-
[key: string]: unknown;
|
|
291
|
-
[key: number]: unknown;
|
|
292
|
-
[key: symbol]: unknown;
|
|
293
|
-
} ? (K2 extends bigint ? `bigint(${K2})` : K2 extends boolean ? `boolean(${K2})` : K2) extends keyof {
|
|
294
|
-
readonly Mainnet: {
|
|
295
|
-
readonly Ethereum: 64;
|
|
296
|
-
readonly Solana: 32;
|
|
297
|
-
readonly Polygon: 512;
|
|
298
|
-
readonly Bsc: 15;
|
|
299
|
-
readonly Avalanche: 1;
|
|
300
|
-
readonly Fantom: 1;
|
|
301
|
-
readonly Celo: 1;
|
|
302
|
-
readonly Moonbeam: 1;
|
|
303
|
-
readonly Sui: 0;
|
|
304
|
-
readonly Aptos: 0;
|
|
305
|
-
readonly Sei: 0;
|
|
306
|
-
};
|
|
307
|
-
readonly Testnet: {
|
|
308
|
-
readonly Ethereum: 64;
|
|
309
|
-
readonly Solana: 32;
|
|
310
|
-
readonly Polygon: 64;
|
|
311
|
-
readonly Bsc: 15;
|
|
312
|
-
readonly Avalanche: 1;
|
|
313
|
-
readonly Fantom: 1;
|
|
314
|
-
readonly Celo: 1;
|
|
315
|
-
readonly Moonbeam: 1;
|
|
316
|
-
readonly Sui: 0;
|
|
317
|
-
readonly Aptos: 0;
|
|
318
|
-
readonly Sei: 0;
|
|
319
|
-
};
|
|
320
|
-
readonly Devnet: {
|
|
321
|
-
readonly Ethereum: 64;
|
|
322
|
-
readonly Solana: 32;
|
|
323
|
-
readonly Polygon: 64;
|
|
324
|
-
readonly Bsc: 15;
|
|
325
|
-
readonly Avalanche: 1;
|
|
326
|
-
readonly Fantom: 1;
|
|
327
|
-
readonly Celo: 1;
|
|
328
|
-
readonly Moonbeam: 1;
|
|
329
|
-
readonly Sui: 0;
|
|
330
|
-
readonly Aptos: 0;
|
|
331
|
-
readonly Sei: 0;
|
|
332
|
-
};
|
|
333
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] ? {
|
|
334
|
-
readonly Mainnet: {
|
|
335
|
-
readonly Ethereum: 64;
|
|
336
|
-
readonly Solana: 32;
|
|
337
|
-
readonly Polygon: 512;
|
|
338
|
-
readonly Bsc: 15;
|
|
339
|
-
readonly Avalanche: 1;
|
|
340
|
-
readonly Fantom: 1;
|
|
341
|
-
readonly Celo: 1;
|
|
342
|
-
readonly Moonbeam: 1;
|
|
343
|
-
readonly Sui: 0;
|
|
344
|
-
readonly Aptos: 0;
|
|
345
|
-
readonly Sei: 0;
|
|
346
|
-
};
|
|
347
|
-
readonly Testnet: {
|
|
348
|
-
readonly Ethereum: 64;
|
|
349
|
-
readonly Solana: 32;
|
|
350
|
-
readonly Polygon: 64;
|
|
351
|
-
readonly Bsc: 15;
|
|
352
|
-
readonly Avalanche: 1;
|
|
353
|
-
readonly Fantom: 1;
|
|
354
|
-
readonly Celo: 1;
|
|
355
|
-
readonly Moonbeam: 1;
|
|
356
|
-
readonly Sui: 0;
|
|
357
|
-
readonly Aptos: 0;
|
|
358
|
-
readonly Sei: 0;
|
|
359
|
-
};
|
|
360
|
-
readonly Devnet: {
|
|
361
|
-
readonly Ethereum: 64;
|
|
362
|
-
readonly Solana: 32;
|
|
363
|
-
readonly Polygon: 64;
|
|
364
|
-
readonly Bsc: 15;
|
|
365
|
-
readonly Avalanche: 1;
|
|
366
|
-
readonly Fantom: 1;
|
|
367
|
-
readonly Celo: 1;
|
|
368
|
-
readonly Moonbeam: 1;
|
|
369
|
-
readonly Sui: 0;
|
|
370
|
-
readonly Aptos: 0;
|
|
371
|
-
readonly Sei: 0;
|
|
372
|
-
};
|
|
373
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)][keyof {
|
|
374
|
-
readonly Mainnet: {
|
|
375
|
-
readonly Ethereum: 64;
|
|
376
|
-
readonly Solana: 32;
|
|
377
|
-
readonly Polygon: 512;
|
|
378
|
-
readonly Bsc: 15;
|
|
379
|
-
readonly Avalanche: 1;
|
|
380
|
-
readonly Fantom: 1;
|
|
381
|
-
readonly Celo: 1;
|
|
382
|
-
readonly Moonbeam: 1;
|
|
383
|
-
readonly Sui: 0;
|
|
384
|
-
readonly Aptos: 0;
|
|
385
|
-
readonly Sei: 0;
|
|
386
|
-
};
|
|
387
|
-
readonly Testnet: {
|
|
388
|
-
readonly Ethereum: 64;
|
|
389
|
-
readonly Solana: 32;
|
|
390
|
-
readonly Polygon: 64;
|
|
391
|
-
readonly Bsc: 15;
|
|
392
|
-
readonly Avalanche: 1;
|
|
393
|
-
readonly Fantom: 1;
|
|
394
|
-
readonly Celo: 1;
|
|
395
|
-
readonly Moonbeam: 1;
|
|
396
|
-
readonly Sui: 0;
|
|
397
|
-
readonly Aptos: 0;
|
|
398
|
-
readonly Sei: 0;
|
|
399
|
-
};
|
|
400
|
-
readonly Devnet: {
|
|
401
|
-
readonly Ethereum: 64;
|
|
402
|
-
readonly Solana: 32;
|
|
403
|
-
readonly Polygon: 64;
|
|
404
|
-
readonly Bsc: 15;
|
|
405
|
-
readonly Avalanche: 1;
|
|
406
|
-
readonly Fantom: 1;
|
|
407
|
-
readonly Celo: 1;
|
|
408
|
-
readonly Moonbeam: 1;
|
|
409
|
-
readonly Sui: 0;
|
|
410
|
-
readonly Aptos: 0;
|
|
411
|
-
readonly Sei: 0;
|
|
412
|
-
};
|
|
413
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] & (K2 extends bigint ? `bigint(${K2})` : K2 extends boolean ? `boolean(${K2})` : K2)] extends {
|
|
14
|
+
readonly Ethereum: 32;
|
|
15
|
+
}["Ethereum" & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] : {
|
|
16
|
+
readonly Ethereum: 32;
|
|
17
|
+
}["Ethereum" & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] : never) & {
|
|
18
|
+
get: (args_0: string) => 32;
|
|
19
|
+
has: (args_0: string) => boolean;
|
|
20
|
+
};
|
|
21
|
+
export declare const finalityThreshold: (<K1 extends "Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Celo" | "Near" | "Moonbeam" | "Terra2" | "Injective" | "Sui" | "Aptos" | "Xpla" | "Sei">(args_0: K1) => (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1) extends "Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Celo" | "Near" | "Moonbeam" | "Terra2" | "Injective" | "Sui" | "Aptos" | "Xpla" | "Sei" ? {
|
|
22
|
+
readonly Ethereum: 64;
|
|
23
|
+
readonly Solana: 32;
|
|
24
|
+
readonly Polygon: 512;
|
|
25
|
+
readonly Bsc: 15;
|
|
26
|
+
readonly Fantom: 1;
|
|
27
|
+
readonly Celo: 1;
|
|
28
|
+
readonly Moonbeam: 1;
|
|
29
|
+
readonly Avalanche: 0;
|
|
30
|
+
readonly Sui: 0;
|
|
31
|
+
readonly Algorand: 0;
|
|
32
|
+
readonly Aptos: 0;
|
|
33
|
+
readonly Sei: 0;
|
|
34
|
+
readonly Near: 0;
|
|
35
|
+
readonly Terra: 0;
|
|
36
|
+
readonly Terra2: 0;
|
|
37
|
+
readonly Xpla: 0;
|
|
38
|
+
readonly Injective: 0;
|
|
39
|
+
}[("Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Celo" | "Near" | "Moonbeam" | "Terra2" | "Injective" | "Sui" | "Aptos" | "Xpla" | "Sei") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] extends {
|
|
414
40
|
[key: string]: unknown;
|
|
415
41
|
[key: number]: unknown;
|
|
416
42
|
[key: symbol]: unknown;
|
|
417
43
|
} ? {
|
|
418
|
-
readonly
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
readonly
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
readonly
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
};
|
|
457
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)][keyof {
|
|
458
|
-
readonly Mainnet: {
|
|
459
|
-
readonly Ethereum: 64;
|
|
460
|
-
readonly Solana: 32;
|
|
461
|
-
readonly Polygon: 512;
|
|
462
|
-
readonly Bsc: 15;
|
|
463
|
-
readonly Avalanche: 1;
|
|
464
|
-
readonly Fantom: 1;
|
|
465
|
-
readonly Celo: 1;
|
|
466
|
-
readonly Moonbeam: 1;
|
|
467
|
-
readonly Sui: 0;
|
|
468
|
-
readonly Aptos: 0;
|
|
469
|
-
readonly Sei: 0;
|
|
470
|
-
};
|
|
471
|
-
readonly Testnet: {
|
|
472
|
-
readonly Ethereum: 64;
|
|
473
|
-
readonly Solana: 32;
|
|
474
|
-
readonly Polygon: 64;
|
|
475
|
-
readonly Bsc: 15;
|
|
476
|
-
readonly Avalanche: 1;
|
|
477
|
-
readonly Fantom: 1;
|
|
478
|
-
readonly Celo: 1;
|
|
479
|
-
readonly Moonbeam: 1;
|
|
480
|
-
readonly Sui: 0;
|
|
481
|
-
readonly Aptos: 0;
|
|
482
|
-
readonly Sei: 0;
|
|
483
|
-
};
|
|
484
|
-
readonly Devnet: {
|
|
485
|
-
readonly Ethereum: 64;
|
|
486
|
-
readonly Solana: 32;
|
|
487
|
-
readonly Polygon: 64;
|
|
488
|
-
readonly Bsc: 15;
|
|
489
|
-
readonly Avalanche: 1;
|
|
490
|
-
readonly Fantom: 1;
|
|
491
|
-
readonly Celo: 1;
|
|
492
|
-
readonly Moonbeam: 1;
|
|
493
|
-
readonly Sui: 0;
|
|
494
|
-
readonly Aptos: 0;
|
|
495
|
-
readonly Sei: 0;
|
|
496
|
-
};
|
|
497
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] & (K2 extends bigint ? `bigint(${K2})` : K2 extends boolean ? `boolean(${K2})` : K2)] : {
|
|
498
|
-
readonly Mainnet: {
|
|
499
|
-
readonly Ethereum: 64;
|
|
500
|
-
readonly Solana: 32;
|
|
501
|
-
readonly Polygon: 512;
|
|
502
|
-
readonly Bsc: 15;
|
|
503
|
-
readonly Avalanche: 1;
|
|
504
|
-
readonly Fantom: 1;
|
|
505
|
-
readonly Celo: 1;
|
|
506
|
-
readonly Moonbeam: 1;
|
|
507
|
-
readonly Sui: 0;
|
|
508
|
-
readonly Aptos: 0;
|
|
509
|
-
readonly Sei: 0;
|
|
510
|
-
};
|
|
511
|
-
readonly Testnet: {
|
|
512
|
-
readonly Ethereum: 64;
|
|
513
|
-
readonly Solana: 32;
|
|
514
|
-
readonly Polygon: 64;
|
|
515
|
-
readonly Bsc: 15;
|
|
516
|
-
readonly Avalanche: 1;
|
|
517
|
-
readonly Fantom: 1;
|
|
518
|
-
readonly Celo: 1;
|
|
519
|
-
readonly Moonbeam: 1;
|
|
520
|
-
readonly Sui: 0;
|
|
521
|
-
readonly Aptos: 0;
|
|
522
|
-
readonly Sei: 0;
|
|
523
|
-
};
|
|
524
|
-
readonly Devnet: {
|
|
525
|
-
readonly Ethereum: 64;
|
|
526
|
-
readonly Solana: 32;
|
|
527
|
-
readonly Polygon: 64;
|
|
528
|
-
readonly Bsc: 15;
|
|
529
|
-
readonly Avalanche: 1;
|
|
530
|
-
readonly Fantom: 1;
|
|
531
|
-
readonly Celo: 1;
|
|
532
|
-
readonly Moonbeam: 1;
|
|
533
|
-
readonly Sui: 0;
|
|
534
|
-
readonly Aptos: 0;
|
|
535
|
-
readonly Sei: 0;
|
|
536
|
-
};
|
|
537
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)][keyof {
|
|
538
|
-
readonly Mainnet: {
|
|
539
|
-
readonly Ethereum: 64;
|
|
540
|
-
readonly Solana: 32;
|
|
541
|
-
readonly Polygon: 512;
|
|
542
|
-
readonly Bsc: 15;
|
|
543
|
-
readonly Avalanche: 1;
|
|
544
|
-
readonly Fantom: 1;
|
|
545
|
-
readonly Celo: 1;
|
|
546
|
-
readonly Moonbeam: 1;
|
|
547
|
-
readonly Sui: 0;
|
|
548
|
-
readonly Aptos: 0;
|
|
549
|
-
readonly Sei: 0;
|
|
550
|
-
};
|
|
551
|
-
readonly Testnet: {
|
|
552
|
-
readonly Ethereum: 64;
|
|
553
|
-
readonly Solana: 32;
|
|
554
|
-
readonly Polygon: 64;
|
|
555
|
-
readonly Bsc: 15;
|
|
556
|
-
readonly Avalanche: 1;
|
|
557
|
-
readonly Fantom: 1;
|
|
558
|
-
readonly Celo: 1;
|
|
559
|
-
readonly Moonbeam: 1;
|
|
560
|
-
readonly Sui: 0;
|
|
561
|
-
readonly Aptos: 0;
|
|
562
|
-
readonly Sei: 0;
|
|
563
|
-
};
|
|
564
|
-
readonly Devnet: {
|
|
565
|
-
readonly Ethereum: 64;
|
|
566
|
-
readonly Solana: 32;
|
|
567
|
-
readonly Polygon: 64;
|
|
568
|
-
readonly Bsc: 15;
|
|
569
|
-
readonly Avalanche: 1;
|
|
570
|
-
readonly Fantom: 1;
|
|
571
|
-
readonly Celo: 1;
|
|
572
|
-
readonly Moonbeam: 1;
|
|
573
|
-
readonly Sui: 0;
|
|
574
|
-
readonly Aptos: 0;
|
|
575
|
-
readonly Sei: 0;
|
|
576
|
-
};
|
|
577
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] & (K2 extends bigint ? `bigint(${K2})` : K2 extends boolean ? `boolean(${K2})` : K2)] : never : {
|
|
578
|
-
readonly Mainnet: {
|
|
579
|
-
readonly Ethereum: 64;
|
|
580
|
-
readonly Solana: 32;
|
|
581
|
-
readonly Polygon: 512;
|
|
582
|
-
readonly Bsc: 15;
|
|
583
|
-
readonly Avalanche: 1;
|
|
584
|
-
readonly Fantom: 1;
|
|
585
|
-
readonly Celo: 1;
|
|
586
|
-
readonly Moonbeam: 1;
|
|
587
|
-
readonly Sui: 0;
|
|
588
|
-
readonly Aptos: 0;
|
|
589
|
-
readonly Sei: 0;
|
|
590
|
-
};
|
|
591
|
-
readonly Testnet: {
|
|
592
|
-
readonly Ethereum: 64;
|
|
593
|
-
readonly Solana: 32;
|
|
594
|
-
readonly Polygon: 64;
|
|
595
|
-
readonly Bsc: 15;
|
|
596
|
-
readonly Avalanche: 1;
|
|
597
|
-
readonly Fantom: 1;
|
|
598
|
-
readonly Celo: 1;
|
|
599
|
-
readonly Moonbeam: 1;
|
|
600
|
-
readonly Sui: 0;
|
|
601
|
-
readonly Aptos: 0;
|
|
602
|
-
readonly Sei: 0;
|
|
603
|
-
};
|
|
604
|
-
readonly Devnet: {
|
|
605
|
-
readonly Ethereum: 64;
|
|
606
|
-
readonly Solana: 32;
|
|
607
|
-
readonly Polygon: 64;
|
|
608
|
-
readonly Bsc: 15;
|
|
609
|
-
readonly Avalanche: 1;
|
|
610
|
-
readonly Fantom: 1;
|
|
611
|
-
readonly Celo: 1;
|
|
612
|
-
readonly Moonbeam: 1;
|
|
613
|
-
readonly Sui: 0;
|
|
614
|
-
readonly Aptos: 0;
|
|
615
|
-
readonly Sei: 0;
|
|
616
|
-
};
|
|
617
|
-
}[("Mainnet" | "Testnet" | "Devnet") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] : never) & {
|
|
618
|
-
get: (args_0: string, args_1: string) => 0 | 1 | 15 | 32 | 64 | 512;
|
|
619
|
-
has: (args_0: string, args_1: string) => boolean;
|
|
44
|
+
readonly Ethereum: 64;
|
|
45
|
+
readonly Solana: 32;
|
|
46
|
+
readonly Polygon: 512;
|
|
47
|
+
readonly Bsc: 15;
|
|
48
|
+
readonly Fantom: 1;
|
|
49
|
+
readonly Celo: 1;
|
|
50
|
+
readonly Moonbeam: 1;
|
|
51
|
+
readonly Avalanche: 0;
|
|
52
|
+
readonly Sui: 0;
|
|
53
|
+
readonly Algorand: 0;
|
|
54
|
+
readonly Aptos: 0;
|
|
55
|
+
readonly Sei: 0;
|
|
56
|
+
readonly Near: 0;
|
|
57
|
+
readonly Terra: 0;
|
|
58
|
+
readonly Terra2: 0;
|
|
59
|
+
readonly Xpla: 0;
|
|
60
|
+
readonly Injective: 0;
|
|
61
|
+
}[("Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Celo" | "Near" | "Moonbeam" | "Terra2" | "Injective" | "Sui" | "Aptos" | "Xpla" | "Sei") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] : {
|
|
62
|
+
readonly Ethereum: 64;
|
|
63
|
+
readonly Solana: 32;
|
|
64
|
+
readonly Polygon: 512;
|
|
65
|
+
readonly Bsc: 15;
|
|
66
|
+
readonly Fantom: 1;
|
|
67
|
+
readonly Celo: 1;
|
|
68
|
+
readonly Moonbeam: 1;
|
|
69
|
+
readonly Avalanche: 0;
|
|
70
|
+
readonly Sui: 0;
|
|
71
|
+
readonly Algorand: 0;
|
|
72
|
+
readonly Aptos: 0;
|
|
73
|
+
readonly Sei: 0;
|
|
74
|
+
readonly Near: 0;
|
|
75
|
+
readonly Terra: 0;
|
|
76
|
+
readonly Terra2: 0;
|
|
77
|
+
readonly Xpla: 0;
|
|
78
|
+
readonly Injective: 0;
|
|
79
|
+
}[("Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Algorand" | "Fantom" | "Celo" | "Near" | "Moonbeam" | "Terra2" | "Injective" | "Sui" | "Aptos" | "Xpla" | "Sei") & (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1)] : never) & {
|
|
80
|
+
get: (args_0: string) => 0 | 1 | 15 | 32 | 64 | 512;
|
|
81
|
+
has: (args_0: string) => boolean;
|
|
620
82
|
};
|
|
621
83
|
export declare const blockTime: (<K1 extends "Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia">(args_0: K1) => (K1 extends bigint ? `bigint(${K1})` : K1 extends boolean ? `boolean(${K1})` : K1) extends "Solana" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Algorand" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Near" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Sui" | "Aptos" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Btc" | "Base" | "Sei" | "Rootstock" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Sepolia" ? {
|
|
622
84
|
readonly Acala: 12000;
|
|
@@ -737,4 +199,5 @@ export declare const blockTime: (<K1 extends "Solana" | "Ethereum" | "Terra" | "
|
|
|
737
199
|
get: (args_0: string) => 4000 | 12000 | 3300 | 300 | 3000 | 2000 | 5000 | 15000 | 2500 | 1000 | 1500 | 30000 | 6000 | 400 | 600000;
|
|
738
200
|
has: (args_0: string) => boolean;
|
|
739
201
|
};
|
|
202
|
+
export declare function consistencyLevelToBlock(chain: ChainName, consistencyLevel: number, fromBlock?: bigint): bigint;
|
|
740
203
|
//# sourceMappingURL=finality.d.ts.map
|