viem 2.0.0-beta.8 → 2.0.0-beta.9

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 (46) hide show
  1. package/_cjs/errors/version.js +1 -1
  2. package/_esm/errors/version.js +1 -1
  3. package/_types/actions/public/getBlock.d.ts +1 -1
  4. package/_types/actions/public/getBlock.d.ts.map +1 -1
  5. package/_types/actions/public/getTransaction.d.ts +1 -1
  6. package/_types/actions/public/getTransaction.d.ts.map +1 -1
  7. package/_types/actions/public/getTransactionReceipt.d.ts +1 -1
  8. package/_types/actions/public/getTransactionReceipt.d.ts.map +1 -1
  9. package/_types/chains/celo/chainConfig.d.ts +45 -45
  10. package/_types/chains/celo/formatters.d.ts +45 -45
  11. package/_types/chains/definitions/base.d.ts +34 -34
  12. package/_types/chains/definitions/baseGoerli.d.ts +34 -34
  13. package/_types/chains/definitions/baseSepolia.d.ts +34 -34
  14. package/_types/chains/definitions/celo.d.ts +45 -45
  15. package/_types/chains/definitions/celoAlfajores.d.ts +45 -45
  16. package/_types/chains/definitions/celoCannoli.d.ts +45 -45
  17. package/_types/chains/definitions/optimism.d.ts +34 -34
  18. package/_types/chains/definitions/optimismGoerli.d.ts +34 -34
  19. package/_types/chains/definitions/optimismSepolia.d.ts +34 -34
  20. package/_types/chains/definitions/pgn.d.ts +34 -34
  21. package/_types/chains/definitions/pgnTestnet.d.ts +34 -34
  22. package/_types/chains/definitions/zkSync.d.ts +6 -6
  23. package/_types/chains/definitions/zkSyncTestnet.d.ts +6 -6
  24. package/_types/chains/definitions/zora.d.ts +34 -34
  25. package/_types/chains/definitions/zoraSepolia.d.ts +34 -34
  26. package/_types/chains/definitions/zoraTestnet.d.ts +34 -34
  27. package/_types/chains/opStack/chainConfig.d.ts +34 -34
  28. package/_types/chains/opStack/formatters.d.ts +34 -34
  29. package/_types/chains/zksync/chainConfig.d.ts +6 -6
  30. package/_types/chains/zksync/formatters.d.ts +6 -6
  31. package/_types/errors/version.d.ts +1 -1
  32. package/_types/utils/formatters/block.d.ts +1 -1
  33. package/_types/utils/formatters/block.d.ts.map +1 -1
  34. package/_types/utils/formatters/transaction.d.ts +2 -2
  35. package/_types/utils/formatters/transaction.d.ts.map +1 -1
  36. package/_types/utils/formatters/transactionReceipt.d.ts +1 -1
  37. package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -1
  38. package/_types/utils/formatters/transactionRequest.d.ts +1 -1
  39. package/actions/public/getBlock.ts +1 -1
  40. package/actions/public/getTransaction.ts +1 -1
  41. package/actions/public/getTransactionReceipt.ts +1 -1
  42. package/errors/version.ts +1 -1
  43. package/package.json +1 -1
  44. package/utils/formatters/block.ts +1 -1
  45. package/utils/formatters/transaction.ts +1 -1
  46. package/utils/formatters/transactionReceipt.ts +1 -1
@@ -37,24 +37,24 @@ export declare const formatters: {
37
37
  readonly transaction: {
38
38
  exclude: [] | undefined;
39
39
  format: (args: ({
40
+ hash?: `0x${string}` | undefined;
41
+ nonce?: `0x${string}` | undefined;
40
42
  yParity?: `0x${string}` | undefined;
41
43
  blockHash?: `0x${string}` | null | undefined;
42
44
  blockNumber?: `0x${string}` | null | undefined;
43
45
  from?: `0x${string}` | undefined;
44
46
  gas?: `0x${string}` | undefined;
45
- hash?: `0x${string}` | undefined;
46
47
  input?: `0x${string}` | undefined;
47
- nonce?: `0x${string}` | undefined;
48
48
  r?: `0x${string}` | undefined;
49
49
  s?: `0x${string}` | undefined;
50
50
  to?: `0x${string}` | null | undefined;
51
51
  transactionIndex?: `0x${string}` | null | undefined;
52
52
  v?: `0x${string}` | undefined;
53
53
  value?: `0x${string}` | undefined;
54
- type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
55
54
  gasPrice?: `0x${string}` | undefined;
56
55
  maxFeePerGas?: `0x${string}` | undefined;
57
56
  maxPriorityFeePerGas?: `0x${string}` | undefined;
57
+ type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
58
58
  accessList?: undefined;
59
59
  chainId?: `0x${string}` | undefined;
60
60
  } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
@@ -62,24 +62,24 @@ export declare const formatters: {
62
62
  mint?: undefined;
63
63
  sourceHash?: undefined;
64
64
  }) | ({
65
+ hash?: `0x${string}` | undefined;
66
+ nonce?: `0x${string}` | undefined;
65
67
  yParity?: `0x${string}` | undefined;
66
68
  blockHash?: `0x${string}` | null | undefined;
67
69
  blockNumber?: `0x${string}` | null | undefined;
68
70
  from?: `0x${string}` | undefined;
69
71
  gas?: `0x${string}` | undefined;
70
- hash?: `0x${string}` | undefined;
71
72
  input?: `0x${string}` | undefined;
72
- nonce?: `0x${string}` | undefined;
73
73
  r?: `0x${string}` | undefined;
74
74
  s?: `0x${string}` | undefined;
75
75
  to?: `0x${string}` | null | undefined;
76
76
  transactionIndex?: `0x${string}` | null | undefined;
77
77
  v?: `0x${string}` | undefined;
78
78
  value?: `0x${string}` | undefined;
79
- type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
80
79
  gasPrice?: `0x${string}` | undefined;
81
80
  maxFeePerGas?: `0x${string}` | undefined;
82
81
  maxPriorityFeePerGas?: `0x${string}` | undefined;
82
+ type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
83
83
  accessList?: undefined;
84
84
  chainId?: `0x${string}` | undefined;
85
85
  } & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
@@ -88,24 +88,24 @@ export declare const formatters: {
88
88
  sourceHash: `0x${string}`;
89
89
  type: "0x7e";
90
90
  }) | ({
91
+ hash?: `0x${string}` | undefined;
92
+ nonce?: `0x${string}` | undefined;
91
93
  yParity?: `0x${string}` | undefined;
92
94
  blockHash?: `0x${string}` | null | undefined;
93
95
  blockNumber?: `0x${string}` | null | undefined;
94
96
  from?: `0x${string}` | undefined;
95
97
  gas?: `0x${string}` | undefined;
96
- hash?: `0x${string}` | undefined;
97
98
  input?: `0x${string}` | undefined;
98
- nonce?: `0x${string}` | undefined;
99
99
  r?: `0x${string}` | undefined;
100
100
  s?: `0x${string}` | undefined;
101
101
  to?: `0x${string}` | null | undefined;
102
102
  transactionIndex?: `0x${string}` | null | undefined;
103
103
  v?: `0x${string}` | undefined;
104
104
  value?: `0x${string}` | undefined;
105
- type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
106
105
  gasPrice?: `0x${string}` | undefined;
107
106
  maxFeePerGas?: `0x${string}` | undefined;
108
107
  maxPriorityFeePerGas?: `0x${string}` | undefined;
108
+ type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
109
109
  accessList?: import("../../index.js").AccessList | undefined;
110
110
  chainId?: `0x${string}` | undefined;
111
111
  } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
@@ -113,24 +113,24 @@ export declare const formatters: {
113
113
  mint?: undefined;
114
114
  sourceHash?: undefined;
115
115
  }) | ({
116
+ hash?: `0x${string}` | undefined;
117
+ nonce?: `0x${string}` | undefined;
116
118
  yParity?: `0x${string}` | undefined;
117
119
  blockHash?: `0x${string}` | null | undefined;
118
120
  blockNumber?: `0x${string}` | null | undefined;
119
121
  from?: `0x${string}` | undefined;
120
122
  gas?: `0x${string}` | undefined;
121
- hash?: `0x${string}` | undefined;
122
123
  input?: `0x${string}` | undefined;
123
- nonce?: `0x${string}` | undefined;
124
124
  r?: `0x${string}` | undefined;
125
125
  s?: `0x${string}` | undefined;
126
126
  to?: `0x${string}` | null | undefined;
127
127
  transactionIndex?: `0x${string}` | null | undefined;
128
128
  v?: `0x${string}` | undefined;
129
129
  value?: `0x${string}` | undefined;
130
- type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
131
130
  gasPrice?: `0x${string}` | undefined;
132
131
  maxFeePerGas?: `0x${string}` | undefined;
133
132
  maxPriorityFeePerGas?: `0x${string}` | undefined;
133
+ type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
134
134
  accessList?: import("../../index.js").AccessList | undefined;
135
135
  chainId?: `0x${string}` | undefined;
136
136
  } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
@@ -138,24 +138,24 @@ export declare const formatters: {
138
138
  mint?: undefined;
139
139
  sourceHash?: undefined;
140
140
  }) | ({
141
+ hash?: `0x${string}` | undefined;
142
+ nonce?: `0x${string}` | undefined;
141
143
  yParity?: `0x${string}` | undefined;
142
144
  blockHash?: `0x${string}` | null | undefined;
143
145
  blockNumber?: `0x${string}` | null | undefined;
144
146
  from?: `0x${string}` | undefined;
145
147
  gas?: `0x${string}` | undefined;
146
- hash?: `0x${string}` | undefined;
147
148
  input?: `0x${string}` | undefined;
148
- nonce?: `0x${string}` | undefined;
149
149
  r?: `0x${string}` | undefined;
150
150
  s?: `0x${string}` | undefined;
151
151
  to?: `0x${string}` | null | undefined;
152
152
  transactionIndex?: `0x${string}` | null | undefined;
153
153
  v?: `0x${string}` | undefined;
154
154
  value?: `0x${string}` | undefined;
155
- type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
156
155
  gasPrice?: `0x${string}` | undefined;
157
156
  maxFeePerGas?: `0x${string}` | undefined;
158
157
  maxPriorityFeePerGas?: `0x${string}` | undefined;
158
+ type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
159
159
  accessList?: import("../../index.js").AccessList | undefined;
160
160
  chainId?: `0x${string}` | undefined;
161
161
  } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
@@ -163,24 +163,24 @@ export declare const formatters: {
163
163
  mint?: undefined;
164
164
  sourceHash?: undefined;
165
165
  }) | ({
166
+ hash?: `0x${string}` | undefined;
167
+ nonce?: `0x${string}` | undefined;
166
168
  yParity?: `0x${string}` | undefined;
167
169
  blockHash?: `0x${string}` | null | undefined;
168
170
  blockNumber?: `0x${string}` | null | undefined;
169
171
  from?: `0x${string}` | undefined;
170
172
  gas?: `0x${string}` | undefined;
171
- hash?: `0x${string}` | undefined;
172
173
  input?: `0x${string}` | undefined;
173
- nonce?: `0x${string}` | undefined;
174
174
  r?: `0x${string}` | undefined;
175
175
  s?: `0x${string}` | undefined;
176
176
  to?: `0x${string}` | null | undefined;
177
177
  transactionIndex?: `0x${string}` | null | undefined;
178
178
  v?: `0x${string}` | undefined;
179
179
  value?: `0x${string}` | undefined;
180
- type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
181
180
  gasPrice?: `0x${string}` | undefined;
182
181
  maxFeePerGas?: `0x${string}` | undefined;
183
182
  maxPriorityFeePerGas?: `0x${string}` | undefined;
183
+ type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
184
184
  accessList?: import("../../index.js").AccessList | undefined;
185
185
  chainId?: `0x${string}` | undefined;
186
186
  } & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
@@ -189,24 +189,24 @@ export declare const formatters: {
189
189
  sourceHash: `0x${string}`;
190
190
  type: "0x7e";
191
191
  }) | ({
192
+ hash?: `0x${string}` | undefined;
193
+ nonce?: `0x${string}` | undefined;
192
194
  yParity?: `0x${string}` | undefined;
193
195
  blockHash?: `0x${string}` | null | undefined;
194
196
  blockNumber?: `0x${string}` | null | undefined;
195
197
  from?: `0x${string}` | undefined;
196
198
  gas?: `0x${string}` | undefined;
197
- hash?: `0x${string}` | undefined;
198
199
  input?: `0x${string}` | undefined;
199
- nonce?: `0x${string}` | undefined;
200
200
  r?: `0x${string}` | undefined;
201
201
  s?: `0x${string}` | undefined;
202
202
  to?: `0x${string}` | null | undefined;
203
203
  transactionIndex?: `0x${string}` | null | undefined;
204
204
  v?: `0x${string}` | undefined;
205
205
  value?: `0x${string}` | undefined;
206
- type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
207
206
  gasPrice?: `0x${string}` | undefined;
208
207
  maxFeePerGas?: `0x${string}` | undefined;
209
208
  maxPriorityFeePerGas?: `0x${string}` | undefined;
209
+ type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
210
210
  accessList?: import("../../index.js").AccessList | undefined;
211
211
  chainId?: `0x${string}` | undefined;
212
212
  } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
@@ -214,24 +214,24 @@ export declare const formatters: {
214
214
  mint?: undefined;
215
215
  sourceHash?: undefined;
216
216
  }) | ({
217
+ hash?: `0x${string}` | undefined;
218
+ nonce?: `0x${string}` | undefined;
217
219
  yParity?: `0x${string}` | undefined;
218
220
  blockHash?: `0x${string}` | null | undefined;
219
221
  blockNumber?: `0x${string}` | null | undefined;
220
222
  from?: `0x${string}` | undefined;
221
223
  gas?: `0x${string}` | undefined;
222
- hash?: `0x${string}` | undefined;
223
224
  input?: `0x${string}` | undefined;
224
- nonce?: `0x${string}` | undefined;
225
225
  r?: `0x${string}` | undefined;
226
226
  s?: `0x${string}` | undefined;
227
227
  to?: `0x${string}` | null | undefined;
228
228
  transactionIndex?: `0x${string}` | null | undefined;
229
229
  v?: `0x${string}` | undefined;
230
230
  value?: `0x${string}` | undefined;
231
- type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
232
231
  gasPrice?: `0x${string}` | undefined;
233
232
  maxFeePerGas?: `0x${string}` | undefined;
234
233
  maxPriorityFeePerGas?: `0x${string}` | undefined;
234
+ type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
235
235
  accessList?: import("../../index.js").AccessList | undefined;
236
236
  chainId?: `0x${string}` | undefined;
237
237
  } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
@@ -239,24 +239,24 @@ export declare const formatters: {
239
239
  mint?: undefined;
240
240
  sourceHash?: undefined;
241
241
  }) | ({
242
+ hash?: `0x${string}` | undefined;
243
+ nonce?: `0x${string}` | undefined;
242
244
  yParity?: `0x${string}` | undefined;
243
245
  blockHash?: `0x${string}` | null | undefined;
244
246
  blockNumber?: `0x${string}` | null | undefined;
245
247
  from?: `0x${string}` | undefined;
246
248
  gas?: `0x${string}` | undefined;
247
- hash?: `0x${string}` | undefined;
248
249
  input?: `0x${string}` | undefined;
249
- nonce?: `0x${string}` | undefined;
250
250
  r?: `0x${string}` | undefined;
251
251
  s?: `0x${string}` | undefined;
252
252
  to?: `0x${string}` | null | undefined;
253
253
  transactionIndex?: `0x${string}` | null | undefined;
254
254
  v?: `0x${string}` | undefined;
255
255
  value?: `0x${string}` | undefined;
256
- type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
257
256
  gasPrice?: `0x${string}` | undefined;
258
257
  maxFeePerGas?: `0x${string}` | undefined;
259
258
  maxPriorityFeePerGas?: `0x${string}` | undefined;
259
+ type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
260
260
  accessList?: import("../../index.js").AccessList | undefined;
261
261
  chainId?: `0x${string}` | undefined;
262
262
  } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
@@ -264,24 +264,24 @@ export declare const formatters: {
264
264
  mint?: undefined;
265
265
  sourceHash?: undefined;
266
266
  }) | ({
267
+ hash?: `0x${string}` | undefined;
268
+ nonce?: `0x${string}` | undefined;
267
269
  yParity?: `0x${string}` | undefined;
268
270
  blockHash?: `0x${string}` | null | undefined;
269
271
  blockNumber?: `0x${string}` | null | undefined;
270
272
  from?: `0x${string}` | undefined;
271
273
  gas?: `0x${string}` | undefined;
272
- hash?: `0x${string}` | undefined;
273
274
  input?: `0x${string}` | undefined;
274
- nonce?: `0x${string}` | undefined;
275
275
  r?: `0x${string}` | undefined;
276
276
  s?: `0x${string}` | undefined;
277
277
  to?: `0x${string}` | null | undefined;
278
278
  transactionIndex?: `0x${string}` | null | undefined;
279
279
  v?: `0x${string}` | undefined;
280
280
  value?: `0x${string}` | undefined;
281
- type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
282
281
  gasPrice?: `0x${string}` | undefined;
283
282
  maxFeePerGas?: `0x${string}` | undefined;
284
283
  maxPriorityFeePerGas?: `0x${string}` | undefined;
284
+ type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
285
285
  accessList?: import("../../index.js").AccessList | undefined;
286
286
  chainId?: `0x${string}` | undefined;
287
287
  } & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
@@ -290,13 +290,13 @@ export declare const formatters: {
290
290
  sourceHash: `0x${string}`;
291
291
  type: "0x7e";
292
292
  })) => ({
293
+ hash: `0x${string}`;
294
+ nonce: number;
293
295
  blockHash: `0x${string}` | null;
294
296
  blockNumber: bigint | null;
295
297
  from: `0x${string}`;
296
298
  gas: bigint;
297
- hash: `0x${string}`;
298
299
  input: `0x${string}`;
299
- nonce: number;
300
300
  r: `0x${string}`;
301
301
  s: `0x${string}`;
302
302
  to: `0x${string}` | null;
@@ -315,13 +315,13 @@ export declare const formatters: {
315
315
  mint?: undefined;
316
316
  sourceHash?: undefined;
317
317
  } | {
318
+ hash: `0x${string}`;
319
+ nonce: number;
318
320
  blockHash: `0x${string}` | null;
319
321
  blockNumber: bigint | null;
320
322
  from: `0x${string}`;
321
323
  gas: bigint;
322
- hash: `0x${string}`;
323
324
  input: `0x${string}`;
324
- nonce: number;
325
325
  r: `0x${string}`;
326
326
  s: `0x${string}`;
327
327
  to: `0x${string}` | null;
@@ -37,13 +37,13 @@ export declare const chainConfig: {
37
37
  readonly transaction: {
38
38
  exclude: [] | undefined;
39
39
  format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransaction>, import("./types.js").ZkSyncRpcTransaction>) => ({
40
+ hash: `0x${string}`;
41
+ nonce: number;
40
42
  blockHash: `0x${string}` | null;
41
43
  blockNumber: bigint | null;
42
44
  from: `0x${string}`;
43
45
  gas: bigint;
44
- hash: `0x${string}`;
45
46
  input: `0x${string}`;
46
- nonce: number;
47
47
  r: `0x${string}`;
48
48
  s: `0x${string}`;
49
49
  to: `0x${string}` | null;
@@ -61,13 +61,13 @@ export declare const chainConfig: {
61
61
  l1BatchNumber: bigint | null;
62
62
  l1BatchTxIndex: bigint | null;
63
63
  } | {
64
+ hash: `0x${string}`;
65
+ nonce: number;
64
66
  blockHash: `0x${string}` | null;
65
67
  blockNumber: bigint | null;
66
68
  from: `0x${string}`;
67
69
  gas: bigint;
68
- hash: `0x${string}`;
69
70
  input: `0x${string}`;
70
- nonce: number;
71
71
  r: `0x${string}`;
72
72
  s: `0x${string}`;
73
73
  to: `0x${string}` | null;
@@ -85,13 +85,13 @@ export declare const chainConfig: {
85
85
  l1BatchNumber: bigint | null;
86
86
  l1BatchTxIndex: bigint | null;
87
87
  } | {
88
+ hash: `0x${string}`;
89
+ nonce: number;
88
90
  blockHash: `0x${string}` | null;
89
91
  blockNumber: bigint | null;
90
92
  from: `0x${string}`;
91
93
  gas: bigint;
92
- hash: `0x${string}`;
93
94
  input: `0x${string}`;
94
- nonce: number;
95
95
  r: `0x${string}`;
96
96
  s: `0x${string}`;
97
97
  to: `0x${string}` | null;
@@ -38,13 +38,13 @@ export declare const formatters: {
38
38
  readonly transaction: {
39
39
  exclude: [] | undefined;
40
40
  format: (args: import("../index.js").Assign<Partial<import("../../index.js").RpcTransaction>, ZkSyncRpcTransaction>) => ({
41
+ hash: `0x${string}`;
42
+ nonce: number;
41
43
  blockHash: `0x${string}` | null;
42
44
  blockNumber: bigint | null;
43
45
  from: `0x${string}`;
44
46
  gas: bigint;
45
- hash: `0x${string}`;
46
47
  input: `0x${string}`;
47
- nonce: number;
48
48
  r: `0x${string}`;
49
49
  s: `0x${string}`;
50
50
  to: `0x${string}` | null;
@@ -62,13 +62,13 @@ export declare const formatters: {
62
62
  l1BatchNumber: bigint | null;
63
63
  l1BatchTxIndex: bigint | null;
64
64
  } | {
65
+ hash: `0x${string}`;
66
+ nonce: number;
65
67
  blockHash: `0x${string}` | null;
66
68
  blockNumber: bigint | null;
67
69
  from: `0x${string}`;
68
70
  gas: bigint;
69
- hash: `0x${string}`;
70
71
  input: `0x${string}`;
71
- nonce: number;
72
72
  r: `0x${string}`;
73
73
  s: `0x${string}`;
74
74
  to: `0x${string}` | null;
@@ -86,13 +86,13 @@ export declare const formatters: {
86
86
  l1BatchNumber: bigint | null;
87
87
  l1BatchTxIndex: bigint | null;
88
88
  } | {
89
+ hash: `0x${string}`;
90
+ nonce: number;
89
91
  blockHash: `0x${string}` | null;
90
92
  blockNumber: bigint | null;
91
93
  from: `0x${string}`;
92
94
  gas: bigint;
93
- hash: `0x${string}`;
94
95
  input: `0x${string}`;
95
- nonce: number;
96
96
  r: `0x${string}`;
97
97
  s: `0x${string}`;
98
98
  to: `0x${string}` | null;
@@ -1,2 +1,2 @@
1
- export declare const version = "2.0.0-beta.8";
1
+ export declare const version = "2.0.0-beta.9";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -8,7 +8,7 @@ import type { Prettify } from '../../types/utils.js';
8
8
  import { type DefineFormatterErrorType } from './formatter.js';
9
9
  import { type FormattedTransaction } from './transaction.js';
10
10
  type BlockPendingDependencies = 'hash' | 'logsBloom' | 'nonce' | 'number';
11
- export type FormattedBlock<TChain extends Chain | undefined = Chain | undefined, TIncludeTransactions extends boolean = boolean, TBlockTag extends BlockTag = BlockTag, _FormatterReturnType = ExtractChainFormatterReturnType<TChain, 'block', Block<bigint, TIncludeTransactions>>, _ExcludedPendingDependencies extends string = BlockPendingDependencies & ExtractChainFormatterExclude<TChain, 'block'>, _Formatted = Omit<_FormatterReturnType, BlockPendingDependencies> & {
11
+ export type FormattedBlock<TChain extends Chain | undefined = undefined, TIncludeTransactions extends boolean = boolean, TBlockTag extends BlockTag = BlockTag, _FormatterReturnType = ExtractChainFormatterReturnType<TChain, 'block', Block<bigint, TIncludeTransactions>>, _ExcludedPendingDependencies extends string = BlockPendingDependencies & ExtractChainFormatterExclude<TChain, 'block'>, _Formatted = Omit<_FormatterReturnType, BlockPendingDependencies> & {
12
12
  [_key in _ExcludedPendingDependencies]: never;
13
13
  } & Pick<Block<bigint, TIncludeTransactions, TBlockTag>, BlockPendingDependencies>, _Transactions = TIncludeTransactions extends true ? Prettify<FormattedTransaction<TChain, TBlockTag>>[] : Hash[]> = Omit<_Formatted, 'transactions'> & {
14
14
  transactions: _Transactions;
@@ -1 +1 @@
1
- {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../utils/formatters/block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EACV,4BAA4B,EAC5B,+BAA+B,EAChC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EAAE,KAAK,wBAAwB,EAAmB,MAAM,gBAAgB,CAAA;AAC/E,OAAO,EAAE,KAAK,oBAAoB,EAAqB,MAAM,kBAAkB,CAAA;AAE/E,KAAK,wBAAwB,GAAG,MAAM,GAAG,WAAW,GAAG,OAAO,GAAG,QAAQ,CAAA;AAEzE,MAAM,MAAM,cAAc,CACxB,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AAE5C,wBAAgB,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,SAsBnD;AAED,MAAM,MAAM,oBAAoB,GAAG,wBAAwB,GAAG,SAAS,CAAA;AAEvE,eAAO,MAAM,WAAW;;;;;;;CAAsD,CAAA"}
@@ -7,7 +7,7 @@ import type { Transaction } from '../../types/transaction.js';
7
7
  import type { UnionLooseOmit } from '../../types/utils.js';
8
8
  import { type DefineFormatterErrorType } from './formatter.js';
9
9
  type TransactionPendingDependencies = 'blockHash' | 'blockNumber' | 'transactionIndex';
10
- export type FormattedTransaction<TChain extends Chain | undefined = Chain | undefined, TBlockTag extends BlockTag = BlockTag, _FormatterReturnType = ExtractChainFormatterReturnType<TChain, 'transaction', Transaction>, _ExcludedPendingDependencies extends string = TransactionPendingDependencies & ExtractChainFormatterExclude<TChain, 'transaction'>> = UnionLooseOmit<_FormatterReturnType, TransactionPendingDependencies> & {
10
+ export type FormattedTransaction<TChain extends Chain | undefined = undefined, TBlockTag extends BlockTag = BlockTag, _FormatterReturnType = ExtractChainFormatterReturnType<TChain, 'transaction', Transaction>, _ExcludedPendingDependencies extends string = TransactionPendingDependencies & ExtractChainFormatterExclude<TChain, 'transaction'>> = UnionLooseOmit<_FormatterReturnType, TransactionPendingDependencies> & {
11
11
  [_K in _ExcludedPendingDependencies]: never;
12
12
  } & Pick<Transaction<bigint, number, TBlockTag extends 'pending' ? true : false>, TransactionPendingDependencies>;
13
13
  export declare const transactionType: {
@@ -18,7 +18,7 @@ export declare const transactionType: {
18
18
  export type FormatTransactionErrorType = ErrorType;
19
19
  export declare function formatTransaction(transaction: Partial<RpcTransaction>): Transaction;
20
20
  export type DefineTransactionErrorType = DefineFormatterErrorType | ErrorType;
21
- export declare const defineTransaction: <TOverrideParameters, TOverrideReturnType, TExclude extends ("yParity" | "blockHash" | "blockNumber" | "from" | "gas" | "hash" | "input" | "nonce" | "r" | "s" | "to" | "transactionIndex" | "v" | "value" | "type" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "accessList" | "chainId" | keyof TOverrideParameters)[] = []>({ exclude, format: overrides, }: {
21
+ export declare const defineTransaction: <TOverrideParameters, TOverrideReturnType, TExclude extends ("hash" | "nonce" | "yParity" | "blockHash" | "blockNumber" | "from" | "gas" | "input" | "r" | "s" | "to" | "transactionIndex" | "v" | "value" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "type" | "accessList" | "chainId" | keyof TOverrideParameters)[] = []>({ exclude, format: overrides, }: {
22
22
  exclude?: TExclude | undefined;
23
23
  format: (_: TOverrideParameters) => TOverrideReturnType;
24
24
  }) => {
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../utils/formatters/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EACV,4BAA4B,EAC5B,+BAA+B,EAChC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,EAAE,KAAK,wBAAwB,EAAmB,MAAM,gBAAgB,CAAA;AAE/E,KAAK,8BAA8B,GAC/B,WAAW,GACX,aAAa,GACb,kBAAkB,CAAA;AAEtB,MAAM,MAAM,oBAAoB,CAC9B,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,SAAS,SAAS,QAAQ,GAAG,QAAQ,EACrC,oBAAoB,GAAG,+BAA+B,CACpD,MAAM,EACN,aAAa,EACb,WAAW,CACZ,EACD,4BAA4B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AAS,KAAK,GAAG,SAAS,GAAG,SAAS,EAC5C,SAAS,SAAS,QAAQ,GAAG,QAAQ,EACrC,oBAAoB,GAAG,+BAA+B,CACpD,MAAM,EACN,aAAa,EACb,WAAW,CACZ,EACD,4BAA4B,SAAS,MAAM,GAAG,8BAA8B,GAC1E,4BAA4B,CAAC,MAAM,EAAE,aAAa,CAAC,IACnD,cAAc,CAAC,oBAAoB,EAAE,8BAA8B,CAAC,GAAG;KACxE,EAAE,IAAI,4BAA4B,GAAG,KAAK;CAC5C,GAAG,IAAI,CACJ,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,SAAS,SAAS,GAAG,IAAI,GAAG,KAAK,CAAC,EACvE,8BAA8B,CAC/B,CAAA;AAEH,eAAO,MAAM,eAAe;;;;CAIlB,CAAA;AAEV,MAAM,MAAM,0BAA0B,GAAG,SAAS,CAAA;AAElD,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,OAAO,CAAC,cAAc,CAAC,eAsDrE;AAED,MAAM,MAAM,0BAA0B,GAAG,wBAAwB,GAAG,SAAS,CAAA;AAE7E,eAAO,MAAM,iBAAiB;;;;;;;CAG7B,CAAA"}
@@ -3,7 +3,7 @@ import type { Chain, ExtractChainFormatterReturnType } from '../../types/chain.j
3
3
  import type { RpcTransactionReceipt } from '../../types/rpc.js';
4
4
  import type { TransactionReceipt } from '../../types/transaction.js';
5
5
  import { type DefineFormatterErrorType } from './formatter.js';
6
- export type FormattedTransactionReceipt<TChain extends Chain | undefined = Chain | undefined> = ExtractChainFormatterReturnType<TChain, 'transactionReceipt', TransactionReceipt>;
6
+ export type FormattedTransactionReceipt<TChain extends Chain | undefined = undefined> = ExtractChainFormatterReturnType<TChain, 'transactionReceipt', TransactionReceipt>;
7
7
  export type FormatTransactionReceiptErrorType = ErrorType;
8
8
  export declare function formatTransactionReceipt(transactionReceipt: Partial<RpcTransactionReceipt>): TransactionReceipt;
9
9
  export type DefineTransactionReceiptErrorType = DefineFormatterErrorType | ErrorType;
@@ -1 +1 @@
1
- {"version":3,"file":"transactionReceipt.d.ts","sourceRoot":"","sources":["../../../utils/formatters/transactionReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EACV,KAAK,EACL,+BAA+B,EAChC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAGpE,OAAO,EAAE,KAAK,wBAAwB,EAAmB,MAAM,gBAAgB,CAAA;AAI/E,MAAM,MAAM,2BAA2B,CACrC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,IAClD,+BAA+B,CACjC,MAAM,EACN,oBAAoB,EACpB,kBAAkB,CACnB,CAAA;AAOD,MAAM,MAAM,iCAAiC,GAAG,SAAS,CAAA;AAEzD,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,OAAO,CAAC,qBAAqB,CAAC,sBAmCnD;AAED,MAAM,MAAM,iCAAiC,GACzC,wBAAwB,GACxB,SAAS,CAAA;AAEb,eAAO,MAAM,wBAAwB;;;;;;;CAGpC,CAAA"}
1
+ {"version":3,"file":"transactionReceipt.d.ts","sourceRoot":"","sources":["../../../utils/formatters/transactionReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EACV,KAAK,EACL,+BAA+B,EAChC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAGpE,OAAO,EAAE,KAAK,wBAAwB,EAAmB,MAAM,gBAAgB,CAAA;AAI/E,MAAM,MAAM,2BAA2B,CACrC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,SAAS,IAC1C,+BAA+B,CACjC,MAAM,EACN,oBAAoB,EACpB,kBAAkB,CACnB,CAAA;AAOD,MAAM,MAAM,iCAAiC,GAAG,SAAS,CAAA;AAEzD,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,OAAO,CAAC,qBAAqB,CAAC,sBAmCnD;AAED,MAAM,MAAM,iCAAiC,GACzC,wBAAwB,GACxB,SAAS,CAAA;AAEb,eAAO,MAAM,wBAAwB;;;;;;;CAGpC,CAAA"}
@@ -12,7 +12,7 @@ export declare const rpcTransactionType: {
12
12
  export type FormatTransactionRequestErrorType = ErrorType;
13
13
  export declare function formatTransactionRequest(transactionRequest: Partial<TransactionRequest>): RpcTransactionRequest;
14
14
  export type DefineTransactionRequestErrorType = DefineFormatterErrorType | ErrorType;
15
- export declare const defineTransactionRequest: <TOverrideParameters, TOverrideReturnType, TExclude extends ("from" | "gas" | "nonce" | "to" | "value" | "type" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "accessList" | "data" | keyof TOverrideParameters)[] = []>({ exclude, format: overrides, }: {
15
+ export declare const defineTransactionRequest: <TOverrideParameters, TOverrideReturnType, TExclude extends ("nonce" | "from" | "gas" | "to" | "value" | "data" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "type" | "accessList" | keyof TOverrideParameters)[] = []>({ exclude, format: overrides, }: {
16
16
  exclude?: TExclude | undefined;
17
17
  format: (_: TOverrideParameters) => TOverrideReturnType;
18
18
  }) => {
@@ -51,7 +51,7 @@ export type GetBlockParameters<
51
51
  )
52
52
 
53
53
  export type GetBlockReturnType<
54
- TChain extends Chain | undefined = Chain | undefined,
54
+ TChain extends Chain | undefined = undefined,
55
55
  TIncludeTransactions extends boolean = false,
56
56
  TBlockTag extends BlockTag = 'latest',
57
57
  > = FormattedBlock<TChain, TIncludeTransactions, TBlockTag>
@@ -54,7 +54,7 @@ export type GetTransactionParameters<TBlockTag extends BlockTag = 'latest'> =
54
54
  }
55
55
 
56
56
  export type GetTransactionReturnType<
57
- TChain extends Chain | undefined = Chain,
57
+ TChain extends Chain | undefined = undefined,
58
58
  TBlockTag extends BlockTag = 'latest',
59
59
  > = FormattedTransaction<TChain, TBlockTag>
60
60
 
@@ -19,7 +19,7 @@ export type GetTransactionReceiptParameters = {
19
19
  }
20
20
 
21
21
  export type GetTransactionReceiptReturnType<
22
- TChain extends Chain | undefined = Chain | undefined,
22
+ TChain extends Chain | undefined = undefined,
23
23
  > = FormattedTransactionReceipt<TChain>
24
24
 
25
25
  export type GetTransactionReceiptErrorType =
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.0.0-beta.8'
1
+ export const version = '2.0.0-beta.9'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "2.0.0-beta.8",
4
+ "version": "2.0.0-beta.9",
5
5
  "type": "module",
6
6
  "main": "./_cjs/index.js",
7
7
  "module": "./_esm/index.js",
@@ -15,7 +15,7 @@ import { type FormattedTransaction, formatTransaction } from './transaction.js'
15
15
  type BlockPendingDependencies = 'hash' | 'logsBloom' | 'nonce' | 'number'
16
16
 
17
17
  export type FormattedBlock<
18
- TChain extends Chain | undefined = Chain | undefined,
18
+ TChain extends Chain | undefined = undefined,
19
19
  TIncludeTransactions extends boolean = boolean,
20
20
  TBlockTag extends BlockTag = BlockTag,
21
21
  _FormatterReturnType = ExtractChainFormatterReturnType<
@@ -17,7 +17,7 @@ type TransactionPendingDependencies =
17
17
  | 'transactionIndex'
18
18
 
19
19
  export type FormattedTransaction<
20
- TChain extends Chain | undefined = Chain | undefined,
20
+ TChain extends Chain | undefined = undefined,
21
21
  TBlockTag extends BlockTag = BlockTag,
22
22
  _FormatterReturnType = ExtractChainFormatterReturnType<
23
23
  TChain,
@@ -12,7 +12,7 @@ import { formatLog } from './log.js'
12
12
  import { transactionType } from './transaction.js'
13
13
 
14
14
  export type FormattedTransactionReceipt<
15
- TChain extends Chain | undefined = Chain | undefined,
15
+ TChain extends Chain | undefined = undefined,
16
16
  > = ExtractChainFormatterReturnType<
17
17
  TChain,
18
18
  'transactionReceipt',