@evergonlabs/tmi-protocol-staking-sdk 0.10.0-rc.2 → 0.10.1-rc.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.d.cts +105 -45
- package/dist/index.d.ts +105 -45
- package/package.json +8 -10
package/dist/index.d.cts
CHANGED
|
@@ -189,19 +189,18 @@ declare const StakingChains: {
|
|
|
189
189
|
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
190
190
|
};
|
|
191
191
|
};
|
|
192
|
+
blockTime?: number | undefined | undefined;
|
|
192
193
|
contracts: {
|
|
193
194
|
readonly multicall3: {
|
|
194
195
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
195
196
|
readonly blockCreated: 751532;
|
|
196
197
|
};
|
|
197
|
-
readonly ensRegistry: {
|
|
198
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
199
|
-
};
|
|
200
198
|
readonly ensUniversalResolver: {
|
|
201
|
-
readonly address: "
|
|
202
|
-
readonly blockCreated:
|
|
199
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
200
|
+
readonly blockCreated: 8928790;
|
|
203
201
|
};
|
|
204
202
|
};
|
|
203
|
+
ensTlds?: readonly string[] | undefined;
|
|
205
204
|
id: 11155111;
|
|
206
205
|
name: "Sepolia";
|
|
207
206
|
nativeCurrency: {
|
|
@@ -209,17 +208,27 @@ declare const StakingChains: {
|
|
|
209
208
|
readonly symbol: "ETH";
|
|
210
209
|
readonly decimals: 18;
|
|
211
210
|
};
|
|
211
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
212
212
|
rpcUrls: {
|
|
213
213
|
readonly default: {
|
|
214
|
-
readonly http: readonly ["https://
|
|
214
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
215
215
|
};
|
|
216
216
|
};
|
|
217
|
-
sourceId?: number | undefined;
|
|
217
|
+
sourceId?: number | undefined | undefined;
|
|
218
218
|
testnet: true;
|
|
219
219
|
custom?: Record<string, unknown> | undefined;
|
|
220
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
220
221
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
221
222
|
formatters?: undefined;
|
|
223
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
224
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
225
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
226
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
227
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
228
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
229
|
+
}] | undefined;
|
|
222
230
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
231
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
223
232
|
} | {
|
|
224
233
|
blockExplorers?: {
|
|
225
234
|
[key: string]: {
|
|
@@ -232,17 +241,18 @@ declare const StakingChains: {
|
|
|
232
241
|
url: string;
|
|
233
242
|
apiUrl?: string | undefined;
|
|
234
243
|
};
|
|
235
|
-
} | undefined;
|
|
236
|
-
|
|
237
|
-
|
|
244
|
+
} | undefined | undefined;
|
|
245
|
+
blockTime?: number | undefined | undefined;
|
|
246
|
+
contracts?: {
|
|
247
|
+
[x: string]: viem.ChainContract | {
|
|
238
248
|
[sourceId: number]: viem.ChainContract | undefined;
|
|
239
249
|
} | undefined;
|
|
240
|
-
} & {
|
|
241
250
|
ensRegistry?: viem.ChainContract | undefined;
|
|
242
251
|
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
243
252
|
multicall3?: viem.ChainContract | undefined;
|
|
244
|
-
|
|
245
|
-
}
|
|
253
|
+
erc6492Verifier?: viem.ChainContract | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
ensTlds?: readonly string[] | undefined;
|
|
246
256
|
id: 31337;
|
|
247
257
|
name: "Anvil";
|
|
248
258
|
nativeCurrency: {
|
|
@@ -250,18 +260,28 @@ declare const StakingChains: {
|
|
|
250
260
|
readonly name: "Ether";
|
|
251
261
|
readonly symbol: "ETH";
|
|
252
262
|
};
|
|
263
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
253
264
|
rpcUrls: {
|
|
254
265
|
readonly default: {
|
|
255
266
|
readonly http: readonly ["http://127.0.0.1:8545"];
|
|
256
267
|
readonly webSocket: readonly ["ws://127.0.0.1:8545"];
|
|
257
268
|
};
|
|
258
269
|
};
|
|
259
|
-
sourceId?: number | undefined;
|
|
260
|
-
testnet?: boolean | undefined;
|
|
270
|
+
sourceId?: number | undefined | undefined;
|
|
271
|
+
testnet?: boolean | undefined | undefined;
|
|
261
272
|
custom?: Record<string, unknown> | undefined;
|
|
273
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
262
274
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
263
275
|
formatters?: undefined;
|
|
276
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
277
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
278
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
279
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
280
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
281
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
282
|
+
}] | undefined;
|
|
264
283
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
284
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
265
285
|
})[];
|
|
266
286
|
chainIds: (11155111 | 31337)[];
|
|
267
287
|
isSupported: (chainId: number) => chainId is 11155111 | 31337;
|
|
@@ -273,19 +293,18 @@ declare const StakingChains: {
|
|
|
273
293
|
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
274
294
|
};
|
|
275
295
|
};
|
|
296
|
+
blockTime?: number | undefined | undefined;
|
|
276
297
|
contracts: {
|
|
277
298
|
readonly multicall3: {
|
|
278
299
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
279
300
|
readonly blockCreated: 751532;
|
|
280
301
|
};
|
|
281
|
-
readonly ensRegistry: {
|
|
282
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
283
|
-
};
|
|
284
302
|
readonly ensUniversalResolver: {
|
|
285
|
-
readonly address: "
|
|
286
|
-
readonly blockCreated:
|
|
303
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
304
|
+
readonly blockCreated: 8928790;
|
|
287
305
|
};
|
|
288
306
|
};
|
|
307
|
+
ensTlds?: readonly string[] | undefined;
|
|
289
308
|
id: 11155111;
|
|
290
309
|
name: "Sepolia";
|
|
291
310
|
nativeCurrency: {
|
|
@@ -293,17 +312,27 @@ declare const StakingChains: {
|
|
|
293
312
|
readonly symbol: "ETH";
|
|
294
313
|
readonly decimals: 18;
|
|
295
314
|
};
|
|
315
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
296
316
|
rpcUrls: {
|
|
297
317
|
readonly default: {
|
|
298
|
-
readonly http: readonly ["https://
|
|
318
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
299
319
|
};
|
|
300
320
|
};
|
|
301
|
-
sourceId?: number | undefined;
|
|
321
|
+
sourceId?: number | undefined | undefined;
|
|
302
322
|
testnet: true;
|
|
303
323
|
custom?: Record<string, unknown> | undefined;
|
|
324
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
304
325
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
305
326
|
formatters?: undefined;
|
|
327
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
328
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
329
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
330
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
331
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
332
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
333
|
+
}] | undefined;
|
|
306
334
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
335
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
307
336
|
}, {
|
|
308
337
|
id: T;
|
|
309
338
|
}> | Extract<{
|
|
@@ -318,17 +347,18 @@ declare const StakingChains: {
|
|
|
318
347
|
url: string;
|
|
319
348
|
apiUrl?: string | undefined;
|
|
320
349
|
};
|
|
321
|
-
} | undefined;
|
|
322
|
-
|
|
323
|
-
|
|
350
|
+
} | undefined | undefined;
|
|
351
|
+
blockTime?: number | undefined | undefined;
|
|
352
|
+
contracts?: {
|
|
353
|
+
[x: string]: viem.ChainContract | {
|
|
324
354
|
[sourceId: number]: viem.ChainContract | undefined;
|
|
325
355
|
} | undefined;
|
|
326
|
-
} & {
|
|
327
356
|
ensRegistry?: viem.ChainContract | undefined;
|
|
328
357
|
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
329
358
|
multicall3?: viem.ChainContract | undefined;
|
|
330
|
-
|
|
331
|
-
}
|
|
359
|
+
erc6492Verifier?: viem.ChainContract | undefined;
|
|
360
|
+
} | undefined;
|
|
361
|
+
ensTlds?: readonly string[] | undefined;
|
|
332
362
|
id: 31337;
|
|
333
363
|
name: "Anvil";
|
|
334
364
|
nativeCurrency: {
|
|
@@ -336,18 +366,28 @@ declare const StakingChains: {
|
|
|
336
366
|
readonly name: "Ether";
|
|
337
367
|
readonly symbol: "ETH";
|
|
338
368
|
};
|
|
369
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
339
370
|
rpcUrls: {
|
|
340
371
|
readonly default: {
|
|
341
372
|
readonly http: readonly ["http://127.0.0.1:8545"];
|
|
342
373
|
readonly webSocket: readonly ["ws://127.0.0.1:8545"];
|
|
343
374
|
};
|
|
344
375
|
};
|
|
345
|
-
sourceId?: number | undefined;
|
|
346
|
-
testnet?: boolean | undefined;
|
|
376
|
+
sourceId?: number | undefined | undefined;
|
|
377
|
+
testnet?: boolean | undefined | undefined;
|
|
347
378
|
custom?: Record<string, unknown> | undefined;
|
|
379
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
348
380
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
349
381
|
formatters?: undefined;
|
|
382
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
383
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
384
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
385
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
386
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
387
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
388
|
+
}] | undefined;
|
|
350
389
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
390
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
351
391
|
}, {
|
|
352
392
|
id: T;
|
|
353
393
|
}>;
|
|
@@ -361,19 +401,18 @@ declare const getStakingChain: <T extends 11155111 | 31337>(chainId: T) => Extra
|
|
|
361
401
|
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
362
402
|
};
|
|
363
403
|
};
|
|
404
|
+
blockTime?: number | undefined | undefined;
|
|
364
405
|
contracts: {
|
|
365
406
|
readonly multicall3: {
|
|
366
407
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
367
408
|
readonly blockCreated: 751532;
|
|
368
409
|
};
|
|
369
|
-
readonly ensRegistry: {
|
|
370
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
371
|
-
};
|
|
372
410
|
readonly ensUniversalResolver: {
|
|
373
|
-
readonly address: "
|
|
374
|
-
readonly blockCreated:
|
|
411
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
412
|
+
readonly blockCreated: 8928790;
|
|
375
413
|
};
|
|
376
414
|
};
|
|
415
|
+
ensTlds?: readonly string[] | undefined;
|
|
377
416
|
id: 11155111;
|
|
378
417
|
name: "Sepolia";
|
|
379
418
|
nativeCurrency: {
|
|
@@ -381,17 +420,27 @@ declare const getStakingChain: <T extends 11155111 | 31337>(chainId: T) => Extra
|
|
|
381
420
|
readonly symbol: "ETH";
|
|
382
421
|
readonly decimals: 18;
|
|
383
422
|
};
|
|
423
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
384
424
|
rpcUrls: {
|
|
385
425
|
readonly default: {
|
|
386
|
-
readonly http: readonly ["https://
|
|
426
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
387
427
|
};
|
|
388
428
|
};
|
|
389
|
-
sourceId?: number | undefined;
|
|
429
|
+
sourceId?: number | undefined | undefined;
|
|
390
430
|
testnet: true;
|
|
391
431
|
custom?: Record<string, unknown> | undefined;
|
|
432
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
392
433
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
393
434
|
formatters?: undefined;
|
|
435
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
436
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
437
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
438
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
439
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
440
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
441
|
+
}] | undefined;
|
|
394
442
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
443
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
395
444
|
}, {
|
|
396
445
|
id: T;
|
|
397
446
|
}> | Extract<{
|
|
@@ -406,17 +455,18 @@ declare const getStakingChain: <T extends 11155111 | 31337>(chainId: T) => Extra
|
|
|
406
455
|
url: string;
|
|
407
456
|
apiUrl?: string | undefined;
|
|
408
457
|
};
|
|
409
|
-
} | undefined;
|
|
410
|
-
|
|
411
|
-
|
|
458
|
+
} | undefined | undefined;
|
|
459
|
+
blockTime?: number | undefined | undefined;
|
|
460
|
+
contracts?: {
|
|
461
|
+
[x: string]: viem.ChainContract | {
|
|
412
462
|
[sourceId: number]: viem.ChainContract | undefined;
|
|
413
463
|
} | undefined;
|
|
414
|
-
} & {
|
|
415
464
|
ensRegistry?: viem.ChainContract | undefined;
|
|
416
465
|
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
417
466
|
multicall3?: viem.ChainContract | undefined;
|
|
418
|
-
|
|
419
|
-
}
|
|
467
|
+
erc6492Verifier?: viem.ChainContract | undefined;
|
|
468
|
+
} | undefined;
|
|
469
|
+
ensTlds?: readonly string[] | undefined;
|
|
420
470
|
id: 31337;
|
|
421
471
|
name: "Anvil";
|
|
422
472
|
nativeCurrency: {
|
|
@@ -424,18 +474,28 @@ declare const getStakingChain: <T extends 11155111 | 31337>(chainId: T) => Extra
|
|
|
424
474
|
readonly name: "Ether";
|
|
425
475
|
readonly symbol: "ETH";
|
|
426
476
|
};
|
|
477
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
427
478
|
rpcUrls: {
|
|
428
479
|
readonly default: {
|
|
429
480
|
readonly http: readonly ["http://127.0.0.1:8545"];
|
|
430
481
|
readonly webSocket: readonly ["ws://127.0.0.1:8545"];
|
|
431
482
|
};
|
|
432
483
|
};
|
|
433
|
-
sourceId?: number | undefined;
|
|
434
|
-
testnet?: boolean | undefined;
|
|
484
|
+
sourceId?: number | undefined | undefined;
|
|
485
|
+
testnet?: boolean | undefined | undefined;
|
|
435
486
|
custom?: Record<string, unknown> | undefined;
|
|
487
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
436
488
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
437
489
|
formatters?: undefined;
|
|
490
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
491
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
492
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
493
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
494
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
495
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
496
|
+
}] | undefined;
|
|
438
497
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
498
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
439
499
|
}, {
|
|
440
500
|
id: T;
|
|
441
501
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -189,19 +189,18 @@ declare const StakingChains: {
|
|
|
189
189
|
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
190
190
|
};
|
|
191
191
|
};
|
|
192
|
+
blockTime?: number | undefined | undefined;
|
|
192
193
|
contracts: {
|
|
193
194
|
readonly multicall3: {
|
|
194
195
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
195
196
|
readonly blockCreated: 751532;
|
|
196
197
|
};
|
|
197
|
-
readonly ensRegistry: {
|
|
198
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
199
|
-
};
|
|
200
198
|
readonly ensUniversalResolver: {
|
|
201
|
-
readonly address: "
|
|
202
|
-
readonly blockCreated:
|
|
199
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
200
|
+
readonly blockCreated: 8928790;
|
|
203
201
|
};
|
|
204
202
|
};
|
|
203
|
+
ensTlds?: readonly string[] | undefined;
|
|
205
204
|
id: 11155111;
|
|
206
205
|
name: "Sepolia";
|
|
207
206
|
nativeCurrency: {
|
|
@@ -209,17 +208,27 @@ declare const StakingChains: {
|
|
|
209
208
|
readonly symbol: "ETH";
|
|
210
209
|
readonly decimals: 18;
|
|
211
210
|
};
|
|
211
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
212
212
|
rpcUrls: {
|
|
213
213
|
readonly default: {
|
|
214
|
-
readonly http: readonly ["https://
|
|
214
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
215
215
|
};
|
|
216
216
|
};
|
|
217
|
-
sourceId?: number | undefined;
|
|
217
|
+
sourceId?: number | undefined | undefined;
|
|
218
218
|
testnet: true;
|
|
219
219
|
custom?: Record<string, unknown> | undefined;
|
|
220
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
220
221
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
221
222
|
formatters?: undefined;
|
|
223
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
224
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
225
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
226
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
227
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
228
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
229
|
+
}] | undefined;
|
|
222
230
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
231
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
223
232
|
} | {
|
|
224
233
|
blockExplorers?: {
|
|
225
234
|
[key: string]: {
|
|
@@ -232,17 +241,18 @@ declare const StakingChains: {
|
|
|
232
241
|
url: string;
|
|
233
242
|
apiUrl?: string | undefined;
|
|
234
243
|
};
|
|
235
|
-
} | undefined;
|
|
236
|
-
|
|
237
|
-
|
|
244
|
+
} | undefined | undefined;
|
|
245
|
+
blockTime?: number | undefined | undefined;
|
|
246
|
+
contracts?: {
|
|
247
|
+
[x: string]: viem.ChainContract | {
|
|
238
248
|
[sourceId: number]: viem.ChainContract | undefined;
|
|
239
249
|
} | undefined;
|
|
240
|
-
} & {
|
|
241
250
|
ensRegistry?: viem.ChainContract | undefined;
|
|
242
251
|
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
243
252
|
multicall3?: viem.ChainContract | undefined;
|
|
244
|
-
|
|
245
|
-
}
|
|
253
|
+
erc6492Verifier?: viem.ChainContract | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
ensTlds?: readonly string[] | undefined;
|
|
246
256
|
id: 31337;
|
|
247
257
|
name: "Anvil";
|
|
248
258
|
nativeCurrency: {
|
|
@@ -250,18 +260,28 @@ declare const StakingChains: {
|
|
|
250
260
|
readonly name: "Ether";
|
|
251
261
|
readonly symbol: "ETH";
|
|
252
262
|
};
|
|
263
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
253
264
|
rpcUrls: {
|
|
254
265
|
readonly default: {
|
|
255
266
|
readonly http: readonly ["http://127.0.0.1:8545"];
|
|
256
267
|
readonly webSocket: readonly ["ws://127.0.0.1:8545"];
|
|
257
268
|
};
|
|
258
269
|
};
|
|
259
|
-
sourceId?: number | undefined;
|
|
260
|
-
testnet?: boolean | undefined;
|
|
270
|
+
sourceId?: number | undefined | undefined;
|
|
271
|
+
testnet?: boolean | undefined | undefined;
|
|
261
272
|
custom?: Record<string, unknown> | undefined;
|
|
273
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
262
274
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
263
275
|
formatters?: undefined;
|
|
276
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
277
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
278
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
279
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
280
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
281
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
282
|
+
}] | undefined;
|
|
264
283
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
284
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
265
285
|
})[];
|
|
266
286
|
chainIds: (11155111 | 31337)[];
|
|
267
287
|
isSupported: (chainId: number) => chainId is 11155111 | 31337;
|
|
@@ -273,19 +293,18 @@ declare const StakingChains: {
|
|
|
273
293
|
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
274
294
|
};
|
|
275
295
|
};
|
|
296
|
+
blockTime?: number | undefined | undefined;
|
|
276
297
|
contracts: {
|
|
277
298
|
readonly multicall3: {
|
|
278
299
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
279
300
|
readonly blockCreated: 751532;
|
|
280
301
|
};
|
|
281
|
-
readonly ensRegistry: {
|
|
282
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
283
|
-
};
|
|
284
302
|
readonly ensUniversalResolver: {
|
|
285
|
-
readonly address: "
|
|
286
|
-
readonly blockCreated:
|
|
303
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
304
|
+
readonly blockCreated: 8928790;
|
|
287
305
|
};
|
|
288
306
|
};
|
|
307
|
+
ensTlds?: readonly string[] | undefined;
|
|
289
308
|
id: 11155111;
|
|
290
309
|
name: "Sepolia";
|
|
291
310
|
nativeCurrency: {
|
|
@@ -293,17 +312,27 @@ declare const StakingChains: {
|
|
|
293
312
|
readonly symbol: "ETH";
|
|
294
313
|
readonly decimals: 18;
|
|
295
314
|
};
|
|
315
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
296
316
|
rpcUrls: {
|
|
297
317
|
readonly default: {
|
|
298
|
-
readonly http: readonly ["https://
|
|
318
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
299
319
|
};
|
|
300
320
|
};
|
|
301
|
-
sourceId?: number | undefined;
|
|
321
|
+
sourceId?: number | undefined | undefined;
|
|
302
322
|
testnet: true;
|
|
303
323
|
custom?: Record<string, unknown> | undefined;
|
|
324
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
304
325
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
305
326
|
formatters?: undefined;
|
|
327
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
328
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
329
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
330
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
331
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
332
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
333
|
+
}] | undefined;
|
|
306
334
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
335
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
307
336
|
}, {
|
|
308
337
|
id: T;
|
|
309
338
|
}> | Extract<{
|
|
@@ -318,17 +347,18 @@ declare const StakingChains: {
|
|
|
318
347
|
url: string;
|
|
319
348
|
apiUrl?: string | undefined;
|
|
320
349
|
};
|
|
321
|
-
} | undefined;
|
|
322
|
-
|
|
323
|
-
|
|
350
|
+
} | undefined | undefined;
|
|
351
|
+
blockTime?: number | undefined | undefined;
|
|
352
|
+
contracts?: {
|
|
353
|
+
[x: string]: viem.ChainContract | {
|
|
324
354
|
[sourceId: number]: viem.ChainContract | undefined;
|
|
325
355
|
} | undefined;
|
|
326
|
-
} & {
|
|
327
356
|
ensRegistry?: viem.ChainContract | undefined;
|
|
328
357
|
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
329
358
|
multicall3?: viem.ChainContract | undefined;
|
|
330
|
-
|
|
331
|
-
}
|
|
359
|
+
erc6492Verifier?: viem.ChainContract | undefined;
|
|
360
|
+
} | undefined;
|
|
361
|
+
ensTlds?: readonly string[] | undefined;
|
|
332
362
|
id: 31337;
|
|
333
363
|
name: "Anvil";
|
|
334
364
|
nativeCurrency: {
|
|
@@ -336,18 +366,28 @@ declare const StakingChains: {
|
|
|
336
366
|
readonly name: "Ether";
|
|
337
367
|
readonly symbol: "ETH";
|
|
338
368
|
};
|
|
369
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
339
370
|
rpcUrls: {
|
|
340
371
|
readonly default: {
|
|
341
372
|
readonly http: readonly ["http://127.0.0.1:8545"];
|
|
342
373
|
readonly webSocket: readonly ["ws://127.0.0.1:8545"];
|
|
343
374
|
};
|
|
344
375
|
};
|
|
345
|
-
sourceId?: number | undefined;
|
|
346
|
-
testnet?: boolean | undefined;
|
|
376
|
+
sourceId?: number | undefined | undefined;
|
|
377
|
+
testnet?: boolean | undefined | undefined;
|
|
347
378
|
custom?: Record<string, unknown> | undefined;
|
|
379
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
348
380
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
349
381
|
formatters?: undefined;
|
|
382
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
383
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
384
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
385
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
386
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
387
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
388
|
+
}] | undefined;
|
|
350
389
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
390
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
351
391
|
}, {
|
|
352
392
|
id: T;
|
|
353
393
|
}>;
|
|
@@ -361,19 +401,18 @@ declare const getStakingChain: <T extends 11155111 | 31337>(chainId: T) => Extra
|
|
|
361
401
|
readonly apiUrl: "https://api-sepolia.etherscan.io/api";
|
|
362
402
|
};
|
|
363
403
|
};
|
|
404
|
+
blockTime?: number | undefined | undefined;
|
|
364
405
|
contracts: {
|
|
365
406
|
readonly multicall3: {
|
|
366
407
|
readonly address: "0xca11bde05977b3631167028862be2a173976ca11";
|
|
367
408
|
readonly blockCreated: 751532;
|
|
368
409
|
};
|
|
369
|
-
readonly ensRegistry: {
|
|
370
|
-
readonly address: "0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e";
|
|
371
|
-
};
|
|
372
410
|
readonly ensUniversalResolver: {
|
|
373
|
-
readonly address: "
|
|
374
|
-
readonly blockCreated:
|
|
411
|
+
readonly address: "0xeeeeeeee14d718c2b47d9923deab1335e144eeee";
|
|
412
|
+
readonly blockCreated: 8928790;
|
|
375
413
|
};
|
|
376
414
|
};
|
|
415
|
+
ensTlds?: readonly string[] | undefined;
|
|
377
416
|
id: 11155111;
|
|
378
417
|
name: "Sepolia";
|
|
379
418
|
nativeCurrency: {
|
|
@@ -381,17 +420,27 @@ declare const getStakingChain: <T extends 11155111 | 31337>(chainId: T) => Extra
|
|
|
381
420
|
readonly symbol: "ETH";
|
|
382
421
|
readonly decimals: 18;
|
|
383
422
|
};
|
|
423
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
384
424
|
rpcUrls: {
|
|
385
425
|
readonly default: {
|
|
386
|
-
readonly http: readonly ["https://
|
|
426
|
+
readonly http: readonly ["https://11155111.rpc.thirdweb.com"];
|
|
387
427
|
};
|
|
388
428
|
};
|
|
389
|
-
sourceId?: number | undefined;
|
|
429
|
+
sourceId?: number | undefined | undefined;
|
|
390
430
|
testnet: true;
|
|
391
431
|
custom?: Record<string, unknown> | undefined;
|
|
432
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
392
433
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
393
434
|
formatters?: undefined;
|
|
435
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
436
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
437
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
438
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
439
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
440
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
441
|
+
}] | undefined;
|
|
394
442
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
443
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
395
444
|
}, {
|
|
396
445
|
id: T;
|
|
397
446
|
}> | Extract<{
|
|
@@ -406,17 +455,18 @@ declare const getStakingChain: <T extends 11155111 | 31337>(chainId: T) => Extra
|
|
|
406
455
|
url: string;
|
|
407
456
|
apiUrl?: string | undefined;
|
|
408
457
|
};
|
|
409
|
-
} | undefined;
|
|
410
|
-
|
|
411
|
-
|
|
458
|
+
} | undefined | undefined;
|
|
459
|
+
blockTime?: number | undefined | undefined;
|
|
460
|
+
contracts?: {
|
|
461
|
+
[x: string]: viem.ChainContract | {
|
|
412
462
|
[sourceId: number]: viem.ChainContract | undefined;
|
|
413
463
|
} | undefined;
|
|
414
|
-
} & {
|
|
415
464
|
ensRegistry?: viem.ChainContract | undefined;
|
|
416
465
|
ensUniversalResolver?: viem.ChainContract | undefined;
|
|
417
466
|
multicall3?: viem.ChainContract | undefined;
|
|
418
|
-
|
|
419
|
-
}
|
|
467
|
+
erc6492Verifier?: viem.ChainContract | undefined;
|
|
468
|
+
} | undefined;
|
|
469
|
+
ensTlds?: readonly string[] | undefined;
|
|
420
470
|
id: 31337;
|
|
421
471
|
name: "Anvil";
|
|
422
472
|
nativeCurrency: {
|
|
@@ -424,18 +474,28 @@ declare const getStakingChain: <T extends 11155111 | 31337>(chainId: T) => Extra
|
|
|
424
474
|
readonly name: "Ether";
|
|
425
475
|
readonly symbol: "ETH";
|
|
426
476
|
};
|
|
477
|
+
experimental_preconfirmationTime?: number | undefined | undefined;
|
|
427
478
|
rpcUrls: {
|
|
428
479
|
readonly default: {
|
|
429
480
|
readonly http: readonly ["http://127.0.0.1:8545"];
|
|
430
481
|
readonly webSocket: readonly ["ws://127.0.0.1:8545"];
|
|
431
482
|
};
|
|
432
483
|
};
|
|
433
|
-
sourceId?: number | undefined;
|
|
434
|
-
testnet?: boolean | undefined;
|
|
484
|
+
sourceId?: number | undefined | undefined;
|
|
485
|
+
testnet?: boolean | undefined | undefined;
|
|
435
486
|
custom?: Record<string, unknown> | undefined;
|
|
487
|
+
extendSchema?: Record<string, unknown> | undefined;
|
|
436
488
|
fees?: viem.ChainFees<undefined> | undefined;
|
|
437
489
|
formatters?: undefined;
|
|
490
|
+
prepareTransactionRequest?: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
491
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
492
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | [fn: ((args: viem.PrepareTransactionRequestParameters, options: {
|
|
493
|
+
phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
|
|
494
|
+
}) => Promise<viem.PrepareTransactionRequestParameters>) | undefined, options: {
|
|
495
|
+
runAt: readonly ("beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters")[];
|
|
496
|
+
}] | undefined;
|
|
438
497
|
serializers?: viem.ChainSerializers<undefined, viem.TransactionSerializable> | undefined;
|
|
498
|
+
verifyHash?: ((client: viem.Client, parameters: viem.VerifyHashActionParameters) => Promise<viem.VerifyHashActionReturnType>) | undefined;
|
|
439
499
|
}, {
|
|
440
500
|
id: T;
|
|
441
501
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evergonlabs/tmi-protocol-staking-sdk",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -21,24 +21,23 @@
|
|
|
21
21
|
"@evergonlabs/tmi-contracts-staking-sdk": "^0.1.0",
|
|
22
22
|
"@evergonlabs/tmi-utils": "0.6.0",
|
|
23
23
|
"type-fest": "^5.0.0",
|
|
24
|
-
"@evergonlabs/tmi-protocol-types": "0.10.
|
|
25
|
-
"@evergonlabs/tmi-protocol-utils": "0.10.
|
|
24
|
+
"@evergonlabs/tmi-protocol-types": "0.10.1-rc.0",
|
|
25
|
+
"@evergonlabs/tmi-protocol-utils": "0.10.1-rc.0"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@evergonlabs/tmi-eslint-config": "0.3.0",
|
|
29
29
|
"@evergonlabs/tmi-evm-test": "0.4.3",
|
|
30
|
+
"@evergonlabs/tmi-factories-sdk": "0.3.0",
|
|
30
31
|
"@evergonlabs/tmi-typescript-config": "0.2.1",
|
|
31
32
|
"@topcli/prompts": "^2.1.0",
|
|
32
|
-
"@wagmi/cli": "^2.2.0",
|
|
33
33
|
"dotenv": "^17.2.2",
|
|
34
34
|
"eslint": "^9.39.2",
|
|
35
35
|
"jiti": "^2.4.2",
|
|
36
36
|
"kleur": "^4.1.5",
|
|
37
|
-
"npm-run-all": "^4.1.5",
|
|
38
37
|
"rimraf": "^6.0.1",
|
|
39
38
|
"tsx": "^4.19.2",
|
|
40
39
|
"typescript": "5.7.3",
|
|
41
|
-
"viem": "
|
|
40
|
+
"viem": "2.46.2",
|
|
42
41
|
"vitest": "^3.1.3",
|
|
43
42
|
"zod": "^4.3.6",
|
|
44
43
|
"@evergonlabs/internal": "0.0.0"
|
|
@@ -52,16 +51,15 @@
|
|
|
52
51
|
"registry": "https://registry.npmjs.org/"
|
|
53
52
|
},
|
|
54
53
|
"scripts": {
|
|
55
|
-
"build": "
|
|
56
|
-
"build:lib": "tsx ./scripts/compile-prod.ts",
|
|
54
|
+
"build": "tsx ./scripts/compile-prod.ts",
|
|
57
55
|
"check-types": "tsc -b --noEmit",
|
|
58
|
-
"clean": "rimraf ./dist
|
|
56
|
+
"clean": "rimraf ./dist",
|
|
59
57
|
"dev": "tsx ./scripts/compile-dev.ts",
|
|
60
58
|
"lint": "eslint .",
|
|
61
59
|
"lint:fix": "eslint . --fix",
|
|
62
60
|
"scripts": "pnpm run env -- tsx ./scripts/bin.ts",
|
|
63
61
|
"test": "pnpm run env -- vitest run",
|
|
64
|
-
"
|
|
62
|
+
"test:e2e": "pnpm run env -- vitest run -c vitest.config.e2e.ts",
|
|
65
63
|
"env": "dotenv -e ../../.env"
|
|
66
64
|
}
|
|
67
65
|
}
|