viem 2.44.1 → 2.44.2

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.
Files changed (55) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/_cjs/chains/definitions/adi.js +26 -0
  3. package/_cjs/chains/definitions/adi.js.map +1 -0
  4. package/_cjs/chains/definitions/tempo.js +28 -0
  5. package/_cjs/chains/definitions/tempo.js.map +1 -0
  6. package/_cjs/chains/definitions/zkXPLA.js +28 -0
  7. package/_cjs/chains/definitions/zkXPLA.js.map +1 -0
  8. package/_cjs/chains/definitions/zkXPLATestnet.js +28 -0
  9. package/_cjs/chains/definitions/zkXPLATestnet.js.map +1 -0
  10. package/_cjs/chains/index.js +22 -14
  11. package/_cjs/chains/index.js.map +1 -1
  12. package/_cjs/errors/version.js +1 -1
  13. package/_cjs/utils/encoding/fromHex.js +11 -1
  14. package/_cjs/utils/encoding/fromHex.js.map +1 -1
  15. package/_cjs/utils/rpc/http.js +25 -1
  16. package/_cjs/utils/rpc/http.js.map +1 -1
  17. package/_esm/chains/definitions/adi.js +23 -0
  18. package/_esm/chains/definitions/adi.js.map +1 -0
  19. package/_esm/chains/definitions/tempo.js +25 -0
  20. package/_esm/chains/definitions/tempo.js.map +1 -0
  21. package/_esm/chains/definitions/zkXPLA.js +25 -0
  22. package/_esm/chains/definitions/zkXPLA.js.map +1 -0
  23. package/_esm/chains/definitions/zkXPLATestnet.js +25 -0
  24. package/_esm/chains/definitions/zkXPLATestnet.js.map +1 -0
  25. package/_esm/chains/index.js +4 -0
  26. package/_esm/chains/index.js.map +1 -1
  27. package/_esm/errors/version.js +1 -1
  28. package/_esm/utils/encoding/fromHex.js +12 -2
  29. package/_esm/utils/encoding/fromHex.js.map +1 -1
  30. package/_esm/utils/rpc/http.js +26 -1
  31. package/_esm/utils/rpc/http.js.map +1 -1
  32. package/_types/chains/definitions/adi.d.ts +48 -0
  33. package/_types/chains/definitions/adi.d.ts.map +1 -0
  34. package/_types/chains/definitions/tempo.d.ts +916 -0
  35. package/_types/chains/definitions/tempo.d.ts.map +1 -0
  36. package/_types/chains/definitions/zkXPLA.d.ts +50 -0
  37. package/_types/chains/definitions/zkXPLA.d.ts.map +1 -0
  38. package/_types/chains/definitions/zkXPLATestnet.d.ts +50 -0
  39. package/_types/chains/definitions/zkXPLATestnet.d.ts.map +1 -0
  40. package/_types/chains/index.d.ts +4 -0
  41. package/_types/chains/index.d.ts.map +1 -1
  42. package/_types/errors/version.d.ts +1 -1
  43. package/_types/utils/encoding/fromHex.d.ts +2 -2
  44. package/_types/utils/encoding/fromHex.d.ts.map +1 -1
  45. package/_types/utils/rpc/http.d.ts +8 -1
  46. package/_types/utils/rpc/http.d.ts.map +1 -1
  47. package/chains/definitions/adi.ts +23 -0
  48. package/chains/definitions/tempo.ts +25 -0
  49. package/chains/definitions/zkXPLA.ts +25 -0
  50. package/chains/definitions/zkXPLATestnet.ts +25 -0
  51. package/chains/index.ts +4 -0
  52. package/errors/version.ts +1 -1
  53. package/package.json +1 -1
  54. package/utils/encoding/fromHex.ts +17 -2
  55. package/utils/rpc/http.ts +31 -1
@@ -0,0 +1,916 @@
1
+ export declare const tempo: {
2
+ blockExplorers: {
3
+ readonly default: {
4
+ readonly name: "Tempo Explorer";
5
+ readonly url: "https://explore.mainnet.tempo.xyz";
6
+ };
7
+ };
8
+ blockTime: 1000;
9
+ contracts?: {
10
+ [x: string]: import("../../index.js").ChainContract | {
11
+ [sourceId: number]: import("../../index.js").ChainContract | undefined;
12
+ } | undefined;
13
+ ensRegistry?: import("../../index.js").ChainContract | undefined;
14
+ ensUniversalResolver?: import("../../index.js").ChainContract | undefined;
15
+ multicall3?: import("../../index.js").ChainContract | undefined;
16
+ erc6492Verifier?: import("../../index.js").ChainContract | undefined;
17
+ } | undefined;
18
+ ensTlds?: readonly string[] | undefined;
19
+ id: 4217;
20
+ name: "Tempo Mainnet";
21
+ nativeCurrency: {
22
+ readonly name: "USD";
23
+ readonly symbol: "USD";
24
+ readonly decimals: 6;
25
+ };
26
+ experimental_preconfirmationTime?: number | undefined | undefined;
27
+ rpcUrls: {
28
+ readonly default: {
29
+ readonly http: readonly ["https://rpc.presto.tempo.xyz"];
30
+ readonly webSocket: readonly ["wss://rpc.presto.tempo.xyz"];
31
+ };
32
+ };
33
+ sourceId?: number | undefined | undefined;
34
+ testnet?: boolean | undefined | undefined;
35
+ custom?: Record<string, unknown> | undefined;
36
+ extendSchema: {
37
+ feeToken?: import("ox/tempo/TokenId").TokenIdOrAddress | undefined;
38
+ };
39
+ fees?: import("../../index.js").ChainFees<undefined> | undefined;
40
+ formatters: {
41
+ readonly transaction: {
42
+ exclude: never[] | undefined;
43
+ format: (args: import("../../tempo/Transaction.js").TransactionRpc, action?: string | undefined) => ({
44
+ r: import("../../index.js").Hex;
45
+ s: import("../../index.js").Hex;
46
+ v: bigint;
47
+ to: import("abitype").Address | null;
48
+ from: import("abitype").Address;
49
+ gas: bigint;
50
+ nonce: number;
51
+ value: bigint;
52
+ blockHash: `0x${string}` | null;
53
+ blockNumber: bigint | null;
54
+ hash: import("../../index.js").Hash;
55
+ input: import("../../index.js").Hex;
56
+ transactionIndex: number | null;
57
+ typeHex: import("../../index.js").Hex | null;
58
+ accessList?: undefined | undefined;
59
+ authorizationList?: undefined | undefined;
60
+ blobVersionedHashes?: undefined | undefined;
61
+ chainId?: number | undefined;
62
+ yParity?: undefined | undefined;
63
+ type: "legacy";
64
+ gasPrice: bigint;
65
+ maxFeePerBlobGas?: undefined | undefined;
66
+ maxFeePerGas?: undefined | undefined;
67
+ maxPriorityFeePerGas?: undefined | undefined;
68
+ signature?: undefined;
69
+ calls?: undefined;
70
+ nonceKey?: undefined;
71
+ validAfter?: undefined;
72
+ feeToken?: undefined;
73
+ feePayerSignature?: undefined;
74
+ keyAuthorization?: undefined;
75
+ validBefore?: undefined;
76
+ } | {
77
+ blockHash: `0x${string}` | null;
78
+ blockNumber: bigint | null;
79
+ from: import("abitype").Address;
80
+ gas: bigint;
81
+ hash: import("../../index.js").Hash;
82
+ input: import("../../index.js").Hex;
83
+ nonce: number;
84
+ r: import("../../index.js").Hex;
85
+ s: import("../../index.js").Hex;
86
+ to: import("abitype").Address | null;
87
+ transactionIndex: number | null;
88
+ typeHex: import("../../index.js").Hex | null;
89
+ v: bigint;
90
+ value: bigint;
91
+ yParity: number;
92
+ accessList: import("../../index.js").AccessList;
93
+ authorizationList?: undefined | undefined;
94
+ blobVersionedHashes?: undefined | undefined;
95
+ chainId: number;
96
+ type: "eip2930";
97
+ gasPrice: bigint;
98
+ maxFeePerBlobGas?: undefined | undefined;
99
+ maxFeePerGas?: undefined | undefined;
100
+ maxPriorityFeePerGas?: undefined | undefined;
101
+ signature?: undefined;
102
+ calls?: undefined;
103
+ nonceKey?: undefined;
104
+ validAfter?: undefined;
105
+ feeToken?: undefined;
106
+ feePayerSignature?: undefined;
107
+ keyAuthorization?: undefined;
108
+ validBefore?: undefined;
109
+ } | {
110
+ blockHash: `0x${string}` | null;
111
+ blockNumber: bigint | null;
112
+ from: import("abitype").Address;
113
+ gas: bigint;
114
+ hash: import("../../index.js").Hash;
115
+ input: import("../../index.js").Hex;
116
+ nonce: number;
117
+ r: import("../../index.js").Hex;
118
+ s: import("../../index.js").Hex;
119
+ to: import("abitype").Address | null;
120
+ transactionIndex: number | null;
121
+ typeHex: import("../../index.js").Hex | null;
122
+ v: bigint;
123
+ value: bigint;
124
+ yParity: number;
125
+ accessList: import("../../index.js").AccessList;
126
+ authorizationList?: undefined | undefined;
127
+ blobVersionedHashes?: undefined | undefined;
128
+ chainId: number;
129
+ type: "eip1559";
130
+ gasPrice?: undefined | undefined;
131
+ maxFeePerBlobGas?: undefined | undefined;
132
+ maxFeePerGas: bigint;
133
+ maxPriorityFeePerGas: bigint;
134
+ signature?: undefined;
135
+ calls?: undefined;
136
+ nonceKey?: undefined;
137
+ validAfter?: undefined;
138
+ feeToken?: undefined;
139
+ feePayerSignature?: undefined;
140
+ keyAuthorization?: undefined;
141
+ validBefore?: undefined;
142
+ } | {
143
+ blockHash: `0x${string}` | null;
144
+ blockNumber: bigint | null;
145
+ from: import("abitype").Address;
146
+ gas: bigint;
147
+ hash: import("../../index.js").Hash;
148
+ input: import("../../index.js").Hex;
149
+ nonce: number;
150
+ r: import("../../index.js").Hex;
151
+ s: import("../../index.js").Hex;
152
+ to: import("abitype").Address | null;
153
+ transactionIndex: number | null;
154
+ typeHex: import("../../index.js").Hex | null;
155
+ v: bigint;
156
+ value: bigint;
157
+ yParity: number;
158
+ accessList: import("../../index.js").AccessList;
159
+ authorizationList?: undefined | undefined;
160
+ blobVersionedHashes: readonly import("../../index.js").Hex[];
161
+ chainId: number;
162
+ type: "eip4844";
163
+ gasPrice?: undefined | undefined;
164
+ maxFeePerBlobGas: bigint;
165
+ maxFeePerGas: bigint;
166
+ maxPriorityFeePerGas: bigint;
167
+ signature?: undefined;
168
+ calls?: undefined;
169
+ nonceKey?: undefined;
170
+ validAfter?: undefined;
171
+ feeToken?: undefined;
172
+ feePayerSignature?: undefined;
173
+ keyAuthorization?: undefined;
174
+ validBefore?: undefined;
175
+ } | {
176
+ blockHash: `0x${string}` | null;
177
+ blockNumber: bigint | null;
178
+ from: import("abitype").Address;
179
+ gas: bigint;
180
+ hash: import("../../index.js").Hash;
181
+ input: import("../../index.js").Hex;
182
+ nonce: number;
183
+ r: import("../../index.js").Hex;
184
+ s: import("../../index.js").Hex;
185
+ to: import("abitype").Address | null;
186
+ transactionIndex: number | null;
187
+ typeHex: import("../../index.js").Hex | null;
188
+ v: bigint;
189
+ value: bigint;
190
+ yParity: number;
191
+ accessList: import("../../index.js").AccessList;
192
+ authorizationList: import("../../index.js").SignedAuthorizationList;
193
+ blobVersionedHashes?: undefined | undefined;
194
+ chainId: number;
195
+ type: "eip7702";
196
+ gasPrice?: undefined | undefined;
197
+ maxFeePerBlobGas?: undefined | undefined;
198
+ maxFeePerGas: bigint;
199
+ maxPriorityFeePerGas: bigint;
200
+ signature?: undefined;
201
+ calls?: undefined;
202
+ nonceKey?: undefined;
203
+ validAfter?: undefined;
204
+ feeToken?: undefined;
205
+ feePayerSignature?: undefined;
206
+ keyAuthorization?: undefined;
207
+ validBefore?: undefined;
208
+ } | {
209
+ from: import("abitype").Address;
210
+ gas: bigint;
211
+ nonce: number;
212
+ blockHash: `0x${string}` | null;
213
+ blockNumber: bigint | null;
214
+ hash: import("../../index.js").Hash;
215
+ transactionIndex: number | null;
216
+ typeHex: import("../../index.js").Hex | null;
217
+ r?: `0x${string}` | undefined;
218
+ s?: `0x${string}` | undefined;
219
+ v?: bigint | undefined;
220
+ yParity?: number | undefined;
221
+ accessList: import("../../index.js").AccessList;
222
+ authorizationList?: readonly {
223
+ address: import("ox/Address").Address;
224
+ chainId: number;
225
+ nonce: bigint;
226
+ signature: import("ox/tempo/SignatureEnvelope").SignatureEnvelope<bigint, number>;
227
+ }[] | undefined;
228
+ calls: readonly import("ox/tempo/TxEnvelopeTempo").Call<bigint>[];
229
+ chainId: number;
230
+ feeToken?: `0x${string}` | undefined;
231
+ feePayerSignature?: import("../../index.js").Signature | undefined;
232
+ keyAuthorization?: import("ox/tempo/KeyAuthorization").Signed<bigint, number> | null | undefined;
233
+ nonceKey?: bigint | undefined;
234
+ signature: import("ox/tempo/SignatureEnvelope").SignatureEnvelope;
235
+ type: "tempo";
236
+ validBefore?: number | undefined;
237
+ validAfter?: number | undefined;
238
+ gasPrice?: undefined | undefined;
239
+ maxFeePerBlobGas?: undefined | undefined;
240
+ maxFeePerGas: bigint;
241
+ maxPriorityFeePerGas: bigint;
242
+ to?: undefined;
243
+ value?: undefined;
244
+ blobVersionedHashes?: undefined;
245
+ input?: undefined;
246
+ }) & {};
247
+ type: "transaction";
248
+ };
249
+ readonly transactionReceipt: {
250
+ exclude: [] | undefined;
251
+ format: (args: import("../../tempo/Transaction.js").TransactionReceiptRpc, action?: string | undefined) => {
252
+ blobGasPrice?: bigint | undefined;
253
+ blobGasUsed?: bigint | undefined;
254
+ blockHash: import("../../index.js").Hash;
255
+ blockNumber: bigint;
256
+ contractAddress: import("abitype").Address | null | undefined;
257
+ cumulativeGasUsed: bigint;
258
+ effectiveGasPrice: bigint;
259
+ from: import("abitype").Address;
260
+ gasUsed: bigint;
261
+ logs: import("../../index.js").Log<bigint, number, false>[];
262
+ logsBloom: import("../../index.js").Hex;
263
+ root?: `0x${string}` | undefined;
264
+ status: "success" | "reverted";
265
+ to: import("abitype").Address | null;
266
+ transactionHash: import("../../index.js").Hash;
267
+ transactionIndex: number;
268
+ type: import("../../tempo/Transaction.js").TransactionType;
269
+ feePayer?: `0x${string}` | undefined;
270
+ feeToken?: `0x${string}` | undefined;
271
+ } & {};
272
+ type: "transactionReceipt";
273
+ };
274
+ readonly transactionRequest: {
275
+ exclude: [] | undefined;
276
+ format: (args: import("../../tempo/Transaction.js").TransactionRequest, action?: string | undefined) => ({
277
+ data?: `0x${string}` | undefined;
278
+ from?: `0x${string}` | undefined;
279
+ gas?: `0x${string}` | undefined;
280
+ nonce?: `0x${string}` | undefined;
281
+ to?: `0x${string}` | null | undefined;
282
+ type?: "0x0" | undefined;
283
+ value?: `0x${string}` | undefined;
284
+ gasPrice?: `0x${string}` | undefined;
285
+ maxFeePerBlobGas?: undefined | undefined;
286
+ maxFeePerGas?: undefined | undefined;
287
+ maxPriorityFeePerGas?: undefined | undefined;
288
+ blobs?: undefined;
289
+ blobVersionedHashes?: undefined;
290
+ kzg?: undefined;
291
+ accessList?: undefined;
292
+ sidecars?: undefined;
293
+ authorizationList?: undefined;
294
+ calls?: undefined;
295
+ nonceKey?: undefined;
296
+ validAfter?: undefined;
297
+ feeToken?: undefined;
298
+ keyAuthorization?: undefined;
299
+ validBefore?: undefined;
300
+ feePayer?: undefined;
301
+ } | {
302
+ data?: `0x${string}` | undefined;
303
+ from?: `0x${string}` | undefined;
304
+ gas?: `0x${string}` | undefined;
305
+ nonce?: `0x${string}` | undefined;
306
+ to?: `0x${string}` | null | undefined;
307
+ type?: "0x1" | undefined;
308
+ value?: `0x${string}` | undefined;
309
+ gasPrice?: `0x${string}` | undefined;
310
+ maxFeePerBlobGas?: undefined | undefined;
311
+ maxFeePerGas?: undefined | undefined;
312
+ maxPriorityFeePerGas?: undefined | undefined;
313
+ accessList?: import("../../index.js").AccessList | undefined;
314
+ blobs?: undefined;
315
+ blobVersionedHashes?: undefined;
316
+ kzg?: undefined;
317
+ sidecars?: undefined;
318
+ authorizationList?: undefined;
319
+ calls?: undefined;
320
+ nonceKey?: undefined;
321
+ validAfter?: undefined;
322
+ feeToken?: undefined;
323
+ keyAuthorization?: undefined;
324
+ validBefore?: undefined;
325
+ feePayer?: undefined;
326
+ } | {
327
+ data?: `0x${string}` | undefined;
328
+ from?: `0x${string}` | undefined;
329
+ gas?: `0x${string}` | undefined;
330
+ nonce?: `0x${string}` | undefined;
331
+ to?: `0x${string}` | null | undefined;
332
+ type?: "0x2" | undefined;
333
+ value?: `0x${string}` | undefined;
334
+ gasPrice?: undefined | undefined;
335
+ maxFeePerBlobGas?: undefined | undefined;
336
+ maxFeePerGas?: `0x${string}` | undefined;
337
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
338
+ accessList?: import("../../index.js").AccessList | undefined;
339
+ blobs?: undefined;
340
+ blobVersionedHashes?: undefined;
341
+ kzg?: undefined;
342
+ sidecars?: undefined;
343
+ authorizationList?: undefined;
344
+ calls?: undefined;
345
+ nonceKey?: undefined;
346
+ validAfter?: undefined;
347
+ feeToken?: undefined;
348
+ keyAuthorization?: undefined;
349
+ validBefore?: undefined;
350
+ feePayer?: undefined;
351
+ } | {
352
+ type?: "0x3" | undefined;
353
+ data?: `0x${string}` | undefined;
354
+ from?: `0x${string}` | undefined;
355
+ gas?: `0x${string}` | undefined;
356
+ nonce?: `0x${string}` | undefined;
357
+ value?: `0x${string}` | undefined;
358
+ to: `0x${string}` | null;
359
+ gasPrice?: undefined | undefined;
360
+ maxFeePerBlobGas?: `0x${string}` | undefined;
361
+ maxFeePerGas?: `0x${string}` | undefined;
362
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
363
+ accessList?: import("../../index.js").AccessList | undefined;
364
+ sidecars?: readonly import("../../index.js").BlobSidecar<`0x${string}`>[] | undefined;
365
+ blobs?: readonly `0x${string}`[] | readonly import("../../index.js").ByteArray[] | undefined;
366
+ blobVersionedHashes: readonly import("../../index.js").Hex[];
367
+ kzg?: undefined;
368
+ authorizationList?: undefined;
369
+ calls?: undefined;
370
+ nonceKey?: undefined;
371
+ validAfter?: undefined;
372
+ feeToken?: undefined;
373
+ keyAuthorization?: undefined;
374
+ validBefore?: undefined;
375
+ feePayer?: undefined;
376
+ } | {
377
+ type?: "0x3" | undefined;
378
+ data?: `0x${string}` | undefined;
379
+ from?: `0x${string}` | undefined;
380
+ gas?: `0x${string}` | undefined;
381
+ nonce?: `0x${string}` | undefined;
382
+ value?: `0x${string}` | undefined;
383
+ to: `0x${string}` | null;
384
+ gasPrice?: undefined | undefined;
385
+ maxFeePerBlobGas?: `0x${string}` | undefined;
386
+ maxFeePerGas?: `0x${string}` | undefined;
387
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
388
+ accessList?: import("../../index.js").AccessList | undefined;
389
+ sidecars?: readonly import("../../index.js").BlobSidecar<`0x${string}`>[] | undefined;
390
+ blobs: readonly import("../../index.js").Hex[] | readonly import("../../index.js").ByteArray[];
391
+ blobVersionedHashes?: readonly `0x${string}`[] | undefined;
392
+ kzg?: import("../../index.js").Kzg | undefined;
393
+ authorizationList?: undefined;
394
+ calls?: undefined;
395
+ nonceKey?: undefined;
396
+ validAfter?: undefined;
397
+ feeToken?: undefined;
398
+ keyAuthorization?: undefined;
399
+ validBefore?: undefined;
400
+ feePayer?: undefined;
401
+ } | {
402
+ type?: "0x4" | undefined;
403
+ gasPrice?: undefined | undefined;
404
+ maxFeePerBlobGas?: undefined | undefined;
405
+ maxFeePerGas?: `0x${string}` | undefined;
406
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
407
+ to?: `0x${string}` | null | undefined;
408
+ data?: `0x${string}` | undefined;
409
+ from?: `0x${string}` | undefined;
410
+ gas?: `0x${string}` | undefined;
411
+ nonce?: `0x${string}` | undefined;
412
+ value?: `0x${string}` | undefined;
413
+ accessList?: import("../../index.js").AccessList | undefined;
414
+ authorizationList?: import("../../index.js").RpcAuthorizationList | undefined;
415
+ blobs?: undefined;
416
+ blobVersionedHashes?: undefined;
417
+ kzg?: undefined;
418
+ sidecars?: undefined;
419
+ calls?: undefined;
420
+ nonceKey?: undefined;
421
+ validAfter?: undefined;
422
+ feeToken?: undefined;
423
+ keyAuthorization?: undefined;
424
+ validBefore?: undefined;
425
+ feePayer?: undefined;
426
+ } | {
427
+ data?: `0x${string}` | undefined;
428
+ from?: `0x${string}` | undefined;
429
+ gas?: `0x${string}` | undefined;
430
+ nonce?: `0x${string}` | undefined;
431
+ to?: `0x${string}` | null | undefined;
432
+ type?: "0x76" | undefined;
433
+ value?: `0x${string}` | undefined;
434
+ gasPrice?: undefined | undefined;
435
+ maxFeePerBlobGas?: undefined | undefined;
436
+ maxFeePerGas?: `0x${string}` | undefined;
437
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
438
+ accessList?: import("../../index.js").AccessList | undefined;
439
+ keyAuthorization?: import("ox/tempo/KeyAuthorization").Signed<`0x${string}`, `0x${string}`> | undefined;
440
+ calls?: readonly import("ox/tempo/TxEnvelopeTempo").Call<`0x${string}`>[] | undefined;
441
+ feePayer?: true | import("../../index.js").Account | undefined;
442
+ feeToken?: bigint | `0x${string}` | undefined;
443
+ nonceKey?: `0x${string}` | "random" | undefined;
444
+ validBefore?: `0x${string}` | undefined;
445
+ validAfter?: `0x${string}` | undefined;
446
+ blobs?: undefined;
447
+ blobVersionedHashes?: undefined;
448
+ kzg?: undefined;
449
+ sidecars?: undefined;
450
+ authorizationList?: undefined;
451
+ }) & {};
452
+ type: "transactionRequest";
453
+ };
454
+ };
455
+ prepareTransactionRequest: [(r: import("../../index.js").PrepareTransactionRequestParameters, { phase }: {
456
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
457
+ }) => Promise<import("../../index.js").PrepareTransactionRequestParameters>, {
458
+ readonly runAt: readonly ["beforeFillTransaction", "afterFillParameters"];
459
+ }];
460
+ serializers: {
461
+ readonly transaction: import("../../index.js").SerializeTransactionFn;
462
+ };
463
+ verifyHash: (client: import("../../index.js").Client, parameters: import("../../index.js").VerifyHashActionParameters) => Promise<boolean>;
464
+ extend: <const extended_1 extends {
465
+ feeToken?: import("ox/tempo/TokenId").TokenIdOrAddress | undefined;
466
+ }>(extended: extended_1) => import("../index.js").Assign<import("../index.js").Assign<import("../index.js").Chain<undefined>, {
467
+ readonly id: 4217;
468
+ readonly blockExplorers: {
469
+ readonly default: {
470
+ readonly name: "Tempo Explorer";
471
+ readonly url: "https://explore.mainnet.tempo.xyz";
472
+ };
473
+ };
474
+ readonly name: "Tempo Mainnet";
475
+ readonly nativeCurrency: {
476
+ readonly name: "USD";
477
+ readonly symbol: "USD";
478
+ readonly decimals: 6;
479
+ };
480
+ readonly rpcUrls: {
481
+ readonly default: {
482
+ readonly http: readonly ["https://rpc.presto.tempo.xyz"];
483
+ readonly webSocket: readonly ["wss://rpc.presto.tempo.xyz"];
484
+ };
485
+ };
486
+ readonly blockTime: 1000;
487
+ readonly extendSchema: {
488
+ feeToken?: import("ox/tempo/TokenId").TokenIdOrAddress | undefined;
489
+ };
490
+ readonly formatters: {
491
+ readonly transaction: {
492
+ exclude: never[] | undefined;
493
+ format: (args: import("../../tempo/Transaction.js").TransactionRpc, action?: string | undefined) => ({
494
+ r: import("../../index.js").Hex;
495
+ s: import("../../index.js").Hex;
496
+ v: bigint;
497
+ to: import("abitype").Address | null;
498
+ from: import("abitype").Address;
499
+ gas: bigint;
500
+ nonce: number;
501
+ value: bigint;
502
+ blockHash: `0x${string}` | null;
503
+ blockNumber: bigint | null;
504
+ hash: import("../../index.js").Hash;
505
+ input: import("../../index.js").Hex;
506
+ transactionIndex: number | null;
507
+ typeHex: import("../../index.js").Hex | null;
508
+ accessList?: undefined | undefined;
509
+ authorizationList?: undefined | undefined;
510
+ blobVersionedHashes?: undefined | undefined;
511
+ chainId?: number | undefined;
512
+ yParity?: undefined | undefined;
513
+ type: "legacy";
514
+ gasPrice: bigint;
515
+ maxFeePerBlobGas?: undefined | undefined;
516
+ maxFeePerGas?: undefined | undefined;
517
+ maxPriorityFeePerGas?: undefined | undefined;
518
+ signature?: undefined;
519
+ calls?: undefined;
520
+ nonceKey?: undefined;
521
+ validAfter?: undefined;
522
+ feeToken?: undefined;
523
+ feePayerSignature?: undefined;
524
+ keyAuthorization?: undefined;
525
+ validBefore?: undefined;
526
+ } | {
527
+ blockHash: `0x${string}` | null;
528
+ blockNumber: bigint | null;
529
+ from: import("abitype").Address;
530
+ gas: bigint;
531
+ hash: import("../../index.js").Hash;
532
+ input: import("../../index.js").Hex;
533
+ nonce: number;
534
+ r: import("../../index.js").Hex;
535
+ s: import("../../index.js").Hex;
536
+ to: import("abitype").Address | null;
537
+ transactionIndex: number | null;
538
+ typeHex: import("../../index.js").Hex | null;
539
+ v: bigint;
540
+ value: bigint;
541
+ yParity: number;
542
+ accessList: import("../../index.js").AccessList;
543
+ authorizationList?: undefined | undefined;
544
+ blobVersionedHashes?: undefined | undefined;
545
+ chainId: number;
546
+ type: "eip2930";
547
+ gasPrice: bigint;
548
+ maxFeePerBlobGas?: undefined | undefined;
549
+ maxFeePerGas?: undefined | undefined;
550
+ maxPriorityFeePerGas?: undefined | undefined;
551
+ signature?: undefined;
552
+ calls?: undefined;
553
+ nonceKey?: undefined;
554
+ validAfter?: undefined;
555
+ feeToken?: undefined;
556
+ feePayerSignature?: undefined;
557
+ keyAuthorization?: undefined;
558
+ validBefore?: undefined;
559
+ } | {
560
+ blockHash: `0x${string}` | null;
561
+ blockNumber: bigint | null;
562
+ from: import("abitype").Address;
563
+ gas: bigint;
564
+ hash: import("../../index.js").Hash;
565
+ input: import("../../index.js").Hex;
566
+ nonce: number;
567
+ r: import("../../index.js").Hex;
568
+ s: import("../../index.js").Hex;
569
+ to: import("abitype").Address | null;
570
+ transactionIndex: number | null;
571
+ typeHex: import("../../index.js").Hex | null;
572
+ v: bigint;
573
+ value: bigint;
574
+ yParity: number;
575
+ accessList: import("../../index.js").AccessList;
576
+ authorizationList?: undefined | undefined;
577
+ blobVersionedHashes?: undefined | undefined;
578
+ chainId: number;
579
+ type: "eip1559";
580
+ gasPrice?: undefined | undefined;
581
+ maxFeePerBlobGas?: undefined | undefined;
582
+ maxFeePerGas: bigint;
583
+ maxPriorityFeePerGas: bigint;
584
+ signature?: undefined;
585
+ calls?: undefined;
586
+ nonceKey?: undefined;
587
+ validAfter?: undefined;
588
+ feeToken?: undefined;
589
+ feePayerSignature?: undefined;
590
+ keyAuthorization?: undefined;
591
+ validBefore?: undefined;
592
+ } | {
593
+ blockHash: `0x${string}` | null;
594
+ blockNumber: bigint | null;
595
+ from: import("abitype").Address;
596
+ gas: bigint;
597
+ hash: import("../../index.js").Hash;
598
+ input: import("../../index.js").Hex;
599
+ nonce: number;
600
+ r: import("../../index.js").Hex;
601
+ s: import("../../index.js").Hex;
602
+ to: import("abitype").Address | null;
603
+ transactionIndex: number | null;
604
+ typeHex: import("../../index.js").Hex | null;
605
+ v: bigint;
606
+ value: bigint;
607
+ yParity: number;
608
+ accessList: import("../../index.js").AccessList;
609
+ authorizationList?: undefined | undefined;
610
+ blobVersionedHashes: readonly import("../../index.js").Hex[];
611
+ chainId: number;
612
+ type: "eip4844";
613
+ gasPrice?: undefined | undefined;
614
+ maxFeePerBlobGas: bigint;
615
+ maxFeePerGas: bigint;
616
+ maxPriorityFeePerGas: bigint;
617
+ signature?: undefined;
618
+ calls?: undefined;
619
+ nonceKey?: undefined;
620
+ validAfter?: undefined;
621
+ feeToken?: undefined;
622
+ feePayerSignature?: undefined;
623
+ keyAuthorization?: undefined;
624
+ validBefore?: undefined;
625
+ } | {
626
+ blockHash: `0x${string}` | null;
627
+ blockNumber: bigint | null;
628
+ from: import("abitype").Address;
629
+ gas: bigint;
630
+ hash: import("../../index.js").Hash;
631
+ input: import("../../index.js").Hex;
632
+ nonce: number;
633
+ r: import("../../index.js").Hex;
634
+ s: import("../../index.js").Hex;
635
+ to: import("abitype").Address | null;
636
+ transactionIndex: number | null;
637
+ typeHex: import("../../index.js").Hex | null;
638
+ v: bigint;
639
+ value: bigint;
640
+ yParity: number;
641
+ accessList: import("../../index.js").AccessList;
642
+ authorizationList: import("../../index.js").SignedAuthorizationList;
643
+ blobVersionedHashes?: undefined | undefined;
644
+ chainId: number;
645
+ type: "eip7702";
646
+ gasPrice?: undefined | undefined;
647
+ maxFeePerBlobGas?: undefined | undefined;
648
+ maxFeePerGas: bigint;
649
+ maxPriorityFeePerGas: bigint;
650
+ signature?: undefined;
651
+ calls?: undefined;
652
+ nonceKey?: undefined;
653
+ validAfter?: undefined;
654
+ feeToken?: undefined;
655
+ feePayerSignature?: undefined;
656
+ keyAuthorization?: undefined;
657
+ validBefore?: undefined;
658
+ } | {
659
+ from: import("abitype").Address;
660
+ gas: bigint;
661
+ nonce: number;
662
+ blockHash: `0x${string}` | null;
663
+ blockNumber: bigint | null;
664
+ hash: import("../../index.js").Hash;
665
+ transactionIndex: number | null;
666
+ typeHex: import("../../index.js").Hex | null;
667
+ r?: `0x${string}` | undefined;
668
+ s?: `0x${string}` | undefined;
669
+ v?: bigint | undefined;
670
+ yParity?: number | undefined;
671
+ accessList: import("../../index.js").AccessList;
672
+ authorizationList?: readonly {
673
+ address: import("ox/Address").Address;
674
+ chainId: number;
675
+ nonce: bigint;
676
+ signature: import("ox/tempo/SignatureEnvelope").SignatureEnvelope<bigint, number>;
677
+ }[] | undefined;
678
+ calls: readonly import("ox/tempo/TxEnvelopeTempo").Call<bigint>[];
679
+ chainId: number;
680
+ feeToken?: `0x${string}` | undefined;
681
+ feePayerSignature?: import("../../index.js").Signature | undefined;
682
+ keyAuthorization?: import("ox/tempo/KeyAuthorization").Signed<bigint, number> | null | undefined;
683
+ nonceKey?: bigint | undefined;
684
+ signature: import("ox/tempo/SignatureEnvelope").SignatureEnvelope;
685
+ type: "tempo";
686
+ validBefore?: number | undefined;
687
+ validAfter?: number | undefined;
688
+ gasPrice?: undefined | undefined;
689
+ maxFeePerBlobGas?: undefined | undefined;
690
+ maxFeePerGas: bigint;
691
+ maxPriorityFeePerGas: bigint;
692
+ to?: undefined;
693
+ value?: undefined;
694
+ blobVersionedHashes?: undefined;
695
+ input?: undefined;
696
+ }) & {};
697
+ type: "transaction";
698
+ };
699
+ readonly transactionReceipt: {
700
+ exclude: [] | undefined;
701
+ format: (args: import("../../tempo/Transaction.js").TransactionReceiptRpc, action?: string | undefined) => {
702
+ blobGasPrice?: bigint | undefined;
703
+ blobGasUsed?: bigint | undefined;
704
+ blockHash: import("../../index.js").Hash;
705
+ blockNumber: bigint;
706
+ contractAddress: import("abitype").Address | null | undefined;
707
+ cumulativeGasUsed: bigint;
708
+ effectiveGasPrice: bigint;
709
+ from: import("abitype").Address;
710
+ gasUsed: bigint;
711
+ logs: import("../../index.js").Log<bigint, number, false>[];
712
+ logsBloom: import("../../index.js").Hex;
713
+ root?: `0x${string}` | undefined;
714
+ status: "success" | "reverted";
715
+ to: import("abitype").Address | null;
716
+ transactionHash: import("../../index.js").Hash;
717
+ transactionIndex: number;
718
+ type: import("../../tempo/Transaction.js").TransactionType;
719
+ feePayer?: `0x${string}` | undefined;
720
+ feeToken?: `0x${string}` | undefined;
721
+ } & {};
722
+ type: "transactionReceipt";
723
+ };
724
+ readonly transactionRequest: {
725
+ exclude: [] | undefined;
726
+ format: (args: import("../../tempo/Transaction.js").TransactionRequest, action?: string | undefined) => ({
727
+ data?: `0x${string}` | undefined;
728
+ from?: `0x${string}` | undefined;
729
+ gas?: `0x${string}` | undefined;
730
+ nonce?: `0x${string}` | undefined;
731
+ to?: `0x${string}` | null | undefined;
732
+ type?: "0x0" | undefined;
733
+ value?: `0x${string}` | undefined;
734
+ gasPrice?: `0x${string}` | undefined;
735
+ maxFeePerBlobGas?: undefined | undefined;
736
+ maxFeePerGas?: undefined | undefined;
737
+ maxPriorityFeePerGas?: undefined | undefined;
738
+ blobs?: undefined;
739
+ blobVersionedHashes?: undefined;
740
+ kzg?: undefined;
741
+ accessList?: undefined;
742
+ sidecars?: undefined;
743
+ authorizationList?: undefined;
744
+ calls?: undefined;
745
+ nonceKey?: undefined;
746
+ validAfter?: undefined;
747
+ feeToken?: undefined;
748
+ keyAuthorization?: undefined;
749
+ validBefore?: undefined;
750
+ feePayer?: undefined;
751
+ } | {
752
+ data?: `0x${string}` | undefined;
753
+ from?: `0x${string}` | undefined;
754
+ gas?: `0x${string}` | undefined;
755
+ nonce?: `0x${string}` | undefined;
756
+ to?: `0x${string}` | null | undefined;
757
+ type?: "0x1" | undefined;
758
+ value?: `0x${string}` | undefined;
759
+ gasPrice?: `0x${string}` | undefined;
760
+ maxFeePerBlobGas?: undefined | undefined;
761
+ maxFeePerGas?: undefined | undefined;
762
+ maxPriorityFeePerGas?: undefined | undefined;
763
+ accessList?: import("../../index.js").AccessList | undefined;
764
+ blobs?: undefined;
765
+ blobVersionedHashes?: undefined;
766
+ kzg?: undefined;
767
+ sidecars?: undefined;
768
+ authorizationList?: undefined;
769
+ calls?: undefined;
770
+ nonceKey?: undefined;
771
+ validAfter?: undefined;
772
+ feeToken?: undefined;
773
+ keyAuthorization?: undefined;
774
+ validBefore?: undefined;
775
+ feePayer?: undefined;
776
+ } | {
777
+ data?: `0x${string}` | undefined;
778
+ from?: `0x${string}` | undefined;
779
+ gas?: `0x${string}` | undefined;
780
+ nonce?: `0x${string}` | undefined;
781
+ to?: `0x${string}` | null | undefined;
782
+ type?: "0x2" | undefined;
783
+ value?: `0x${string}` | undefined;
784
+ gasPrice?: undefined | undefined;
785
+ maxFeePerBlobGas?: undefined | undefined;
786
+ maxFeePerGas?: `0x${string}` | undefined;
787
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
788
+ accessList?: import("../../index.js").AccessList | undefined;
789
+ blobs?: undefined;
790
+ blobVersionedHashes?: undefined;
791
+ kzg?: undefined;
792
+ sidecars?: undefined;
793
+ authorizationList?: undefined;
794
+ calls?: undefined;
795
+ nonceKey?: undefined;
796
+ validAfter?: undefined;
797
+ feeToken?: undefined;
798
+ keyAuthorization?: undefined;
799
+ validBefore?: undefined;
800
+ feePayer?: undefined;
801
+ } | {
802
+ type?: "0x3" | undefined;
803
+ data?: `0x${string}` | undefined;
804
+ from?: `0x${string}` | undefined;
805
+ gas?: `0x${string}` | undefined;
806
+ nonce?: `0x${string}` | undefined;
807
+ value?: `0x${string}` | undefined;
808
+ to: `0x${string}` | null;
809
+ gasPrice?: undefined | undefined;
810
+ maxFeePerBlobGas?: `0x${string}` | undefined;
811
+ maxFeePerGas?: `0x${string}` | undefined;
812
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
813
+ accessList?: import("../../index.js").AccessList | undefined;
814
+ sidecars?: readonly import("../../index.js").BlobSidecar<`0x${string}`>[] | undefined;
815
+ blobs?: readonly `0x${string}`[] | readonly import("../../index.js").ByteArray[] | undefined;
816
+ blobVersionedHashes: readonly import("../../index.js").Hex[];
817
+ kzg?: undefined;
818
+ authorizationList?: undefined;
819
+ calls?: undefined;
820
+ nonceKey?: undefined;
821
+ validAfter?: undefined;
822
+ feeToken?: undefined;
823
+ keyAuthorization?: undefined;
824
+ validBefore?: undefined;
825
+ feePayer?: undefined;
826
+ } | {
827
+ type?: "0x3" | undefined;
828
+ data?: `0x${string}` | undefined;
829
+ from?: `0x${string}` | undefined;
830
+ gas?: `0x${string}` | undefined;
831
+ nonce?: `0x${string}` | undefined;
832
+ value?: `0x${string}` | undefined;
833
+ to: `0x${string}` | null;
834
+ gasPrice?: undefined | undefined;
835
+ maxFeePerBlobGas?: `0x${string}` | undefined;
836
+ maxFeePerGas?: `0x${string}` | undefined;
837
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
838
+ accessList?: import("../../index.js").AccessList | undefined;
839
+ sidecars?: readonly import("../../index.js").BlobSidecar<`0x${string}`>[] | undefined;
840
+ blobs: readonly import("../../index.js").Hex[] | readonly import("../../index.js").ByteArray[];
841
+ blobVersionedHashes?: readonly `0x${string}`[] | undefined;
842
+ kzg?: import("../../index.js").Kzg | undefined;
843
+ authorizationList?: undefined;
844
+ calls?: undefined;
845
+ nonceKey?: undefined;
846
+ validAfter?: undefined;
847
+ feeToken?: undefined;
848
+ keyAuthorization?: undefined;
849
+ validBefore?: undefined;
850
+ feePayer?: undefined;
851
+ } | {
852
+ type?: "0x4" | undefined;
853
+ gasPrice?: undefined | undefined;
854
+ maxFeePerBlobGas?: undefined | undefined;
855
+ maxFeePerGas?: `0x${string}` | undefined;
856
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
857
+ to?: `0x${string}` | null | undefined;
858
+ data?: `0x${string}` | undefined;
859
+ from?: `0x${string}` | undefined;
860
+ gas?: `0x${string}` | undefined;
861
+ nonce?: `0x${string}` | undefined;
862
+ value?: `0x${string}` | undefined;
863
+ accessList?: import("../../index.js").AccessList | undefined;
864
+ authorizationList?: import("../../index.js").RpcAuthorizationList | undefined;
865
+ blobs?: undefined;
866
+ blobVersionedHashes?: undefined;
867
+ kzg?: undefined;
868
+ sidecars?: undefined;
869
+ calls?: undefined;
870
+ nonceKey?: undefined;
871
+ validAfter?: undefined;
872
+ feeToken?: undefined;
873
+ keyAuthorization?: undefined;
874
+ validBefore?: undefined;
875
+ feePayer?: undefined;
876
+ } | {
877
+ data?: `0x${string}` | undefined;
878
+ from?: `0x${string}` | undefined;
879
+ gas?: `0x${string}` | undefined;
880
+ nonce?: `0x${string}` | undefined;
881
+ to?: `0x${string}` | null | undefined;
882
+ type?: "0x76" | undefined;
883
+ value?: `0x${string}` | undefined;
884
+ gasPrice?: undefined | undefined;
885
+ maxFeePerBlobGas?: undefined | undefined;
886
+ maxFeePerGas?: `0x${string}` | undefined;
887
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
888
+ accessList?: import("../../index.js").AccessList | undefined;
889
+ keyAuthorization?: import("ox/tempo/KeyAuthorization").Signed<`0x${string}`, `0x${string}`> | undefined;
890
+ calls?: readonly import("ox/tempo/TxEnvelopeTempo").Call<`0x${string}`>[] | undefined;
891
+ feePayer?: true | import("../../index.js").Account | undefined;
892
+ feeToken?: bigint | `0x${string}` | undefined;
893
+ nonceKey?: `0x${string}` | "random" | undefined;
894
+ validBefore?: `0x${string}` | undefined;
895
+ validAfter?: `0x${string}` | undefined;
896
+ blobs?: undefined;
897
+ blobVersionedHashes?: undefined;
898
+ kzg?: undefined;
899
+ sidecars?: undefined;
900
+ authorizationList?: undefined;
901
+ }) & {};
902
+ type: "transactionRequest";
903
+ };
904
+ };
905
+ readonly prepareTransactionRequest: [(r: import("../../index.js").PrepareTransactionRequestParameters, { phase }: {
906
+ phase: "beforeFillTransaction" | "beforeFillParameters" | "afterFillParameters";
907
+ }) => Promise<import("../../index.js").PrepareTransactionRequestParameters>, {
908
+ readonly runAt: readonly ["beforeFillTransaction", "afterFillParameters"];
909
+ }];
910
+ readonly serializers: {
911
+ readonly transaction: import("../../index.js").SerializeTransactionFn;
912
+ };
913
+ readonly verifyHash: (client: import("../../index.js").Client, parameters: import("../../index.js").VerifyHashActionParameters) => Promise<boolean>;
914
+ }>, extended_1>;
915
+ };
916
+ //# sourceMappingURL=tempo.d.ts.map