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.
- package/_cjs/errors/version.js +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/actions/public/getBlock.d.ts +1 -1
- package/_types/actions/public/getBlock.d.ts.map +1 -1
- package/_types/actions/public/getTransaction.d.ts +1 -1
- package/_types/actions/public/getTransaction.d.ts.map +1 -1
- package/_types/actions/public/getTransactionReceipt.d.ts +1 -1
- package/_types/actions/public/getTransactionReceipt.d.ts.map +1 -1
- package/_types/chains/celo/chainConfig.d.ts +45 -45
- package/_types/chains/celo/formatters.d.ts +45 -45
- package/_types/chains/definitions/base.d.ts +34 -34
- package/_types/chains/definitions/baseGoerli.d.ts +34 -34
- package/_types/chains/definitions/baseSepolia.d.ts +34 -34
- package/_types/chains/definitions/celo.d.ts +45 -45
- package/_types/chains/definitions/celoAlfajores.d.ts +45 -45
- package/_types/chains/definitions/celoCannoli.d.ts +45 -45
- package/_types/chains/definitions/optimism.d.ts +34 -34
- package/_types/chains/definitions/optimismGoerli.d.ts +34 -34
- package/_types/chains/definitions/optimismSepolia.d.ts +34 -34
- package/_types/chains/definitions/pgn.d.ts +34 -34
- package/_types/chains/definitions/pgnTestnet.d.ts +34 -34
- package/_types/chains/definitions/zkSync.d.ts +6 -6
- package/_types/chains/definitions/zkSyncTestnet.d.ts +6 -6
- package/_types/chains/definitions/zora.d.ts +34 -34
- package/_types/chains/definitions/zoraSepolia.d.ts +34 -34
- package/_types/chains/definitions/zoraTestnet.d.ts +34 -34
- package/_types/chains/opStack/chainConfig.d.ts +34 -34
- package/_types/chains/opStack/formatters.d.ts +34 -34
- package/_types/chains/zksync/chainConfig.d.ts +6 -6
- package/_types/chains/zksync/formatters.d.ts +6 -6
- package/_types/errors/version.d.ts +1 -1
- package/_types/utils/formatters/block.d.ts +1 -1
- package/_types/utils/formatters/block.d.ts.map +1 -1
- package/_types/utils/formatters/transaction.d.ts +2 -2
- package/_types/utils/formatters/transaction.d.ts.map +1 -1
- package/_types/utils/formatters/transactionReceipt.d.ts +1 -1
- package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +1 -1
- package/actions/public/getBlock.ts +1 -1
- package/actions/public/getTransaction.ts +1 -1
- package/actions/public/getTransactionReceipt.ts +1 -1
- package/errors/version.ts +1 -1
- package/package.json +1 -1
- package/utils/formatters/block.ts +1 -1
- package/utils/formatters/transaction.ts +1 -1
- package/utils/formatters/transactionReceipt.ts +1 -1
@@ -88,24 +88,24 @@ export declare const baseSepolia: {
|
|
88
88
|
readonly transaction: {
|
89
89
|
exclude: [] | undefined;
|
90
90
|
format: (args: ({
|
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?: 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 baseSepolia: {
|
|
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?: undefined;
|
135
135
|
chainId?: `0x${string}` | undefined;
|
136
136
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -139,24 +139,24 @@ export declare const baseSepolia: {
|
|
139
139
|
sourceHash: `0x${string}`;
|
140
140
|
type: "0x7e";
|
141
141
|
}) | ({
|
142
|
+
hash?: `0x${string}` | undefined;
|
143
|
+
nonce?: `0x${string}` | undefined;
|
142
144
|
yParity?: `0x${string}` | undefined;
|
143
145
|
blockHash?: `0x${string}` | null | undefined;
|
144
146
|
blockNumber?: `0x${string}` | null | undefined;
|
145
147
|
from?: `0x${string}` | undefined;
|
146
148
|
gas?: `0x${string}` | undefined;
|
147
|
-
hash?: `0x${string}` | undefined;
|
148
149
|
input?: `0x${string}` | undefined;
|
149
|
-
nonce?: `0x${string}` | undefined;
|
150
150
|
r?: `0x${string}` | undefined;
|
151
151
|
s?: `0x${string}` | undefined;
|
152
152
|
to?: `0x${string}` | null | undefined;
|
153
153
|
transactionIndex?: `0x${string}` | null | undefined;
|
154
154
|
v?: `0x${string}` | undefined;
|
155
155
|
value?: `0x${string}` | undefined;
|
156
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
157
156
|
gasPrice?: `0x${string}` | undefined;
|
158
157
|
maxFeePerGas?: `0x${string}` | undefined;
|
159
158
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
159
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
160
160
|
accessList?: import("../../index.js").AccessList | undefined;
|
161
161
|
chainId?: `0x${string}` | undefined;
|
162
162
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
@@ -164,24 +164,24 @@ export declare const baseSepolia: {
|
|
164
164
|
mint?: undefined;
|
165
165
|
sourceHash?: undefined;
|
166
166
|
}) | ({
|
167
|
+
hash?: `0x${string}` | undefined;
|
168
|
+
nonce?: `0x${string}` | undefined;
|
167
169
|
yParity?: `0x${string}` | undefined;
|
168
170
|
blockHash?: `0x${string}` | null | undefined;
|
169
171
|
blockNumber?: `0x${string}` | null | undefined;
|
170
172
|
from?: `0x${string}` | undefined;
|
171
173
|
gas?: `0x${string}` | undefined;
|
172
|
-
hash?: `0x${string}` | undefined;
|
173
174
|
input?: `0x${string}` | undefined;
|
174
|
-
nonce?: `0x${string}` | undefined;
|
175
175
|
r?: `0x${string}` | undefined;
|
176
176
|
s?: `0x${string}` | undefined;
|
177
177
|
to?: `0x${string}` | null | undefined;
|
178
178
|
transactionIndex?: `0x${string}` | null | undefined;
|
179
179
|
v?: `0x${string}` | undefined;
|
180
180
|
value?: `0x${string}` | undefined;
|
181
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
182
181
|
gasPrice?: `0x${string}` | undefined;
|
183
182
|
maxFeePerGas?: `0x${string}` | undefined;
|
184
183
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
184
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
185
185
|
accessList?: import("../../index.js").AccessList | undefined;
|
186
186
|
chainId?: `0x${string}` | undefined;
|
187
187
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
|
@@ -189,24 +189,24 @@ export declare const baseSepolia: {
|
|
189
189
|
mint?: undefined;
|
190
190
|
sourceHash?: undefined;
|
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").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
|
@@ -214,24 +214,24 @@ export declare const baseSepolia: {
|
|
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
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -240,24 +240,24 @@ export declare const baseSepolia: {
|
|
240
240
|
sourceHash: `0x${string}`;
|
241
241
|
type: "0x7e";
|
242
242
|
}) | ({
|
243
|
+
hash?: `0x${string}` | undefined;
|
244
|
+
nonce?: `0x${string}` | undefined;
|
243
245
|
yParity?: `0x${string}` | undefined;
|
244
246
|
blockHash?: `0x${string}` | null | undefined;
|
245
247
|
blockNumber?: `0x${string}` | null | undefined;
|
246
248
|
from?: `0x${string}` | undefined;
|
247
249
|
gas?: `0x${string}` | undefined;
|
248
|
-
hash?: `0x${string}` | undefined;
|
249
250
|
input?: `0x${string}` | undefined;
|
250
|
-
nonce?: `0x${string}` | undefined;
|
251
251
|
r?: `0x${string}` | undefined;
|
252
252
|
s?: `0x${string}` | undefined;
|
253
253
|
to?: `0x${string}` | null | undefined;
|
254
254
|
transactionIndex?: `0x${string}` | null | undefined;
|
255
255
|
v?: `0x${string}` | undefined;
|
256
256
|
value?: `0x${string}` | undefined;
|
257
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
258
257
|
gasPrice?: `0x${string}` | undefined;
|
259
258
|
maxFeePerGas?: `0x${string}` | undefined;
|
260
259
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
260
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
261
261
|
accessList?: import("../../index.js").AccessList | undefined;
|
262
262
|
chainId?: `0x${string}` | undefined;
|
263
263
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
@@ -265,24 +265,24 @@ export declare const baseSepolia: {
|
|
265
265
|
mint?: undefined;
|
266
266
|
sourceHash?: undefined;
|
267
267
|
}) | ({
|
268
|
+
hash?: `0x${string}` | undefined;
|
269
|
+
nonce?: `0x${string}` | undefined;
|
268
270
|
yParity?: `0x${string}` | undefined;
|
269
271
|
blockHash?: `0x${string}` | null | undefined;
|
270
272
|
blockNumber?: `0x${string}` | null | undefined;
|
271
273
|
from?: `0x${string}` | undefined;
|
272
274
|
gas?: `0x${string}` | undefined;
|
273
|
-
hash?: `0x${string}` | undefined;
|
274
275
|
input?: `0x${string}` | undefined;
|
275
|
-
nonce?: `0x${string}` | undefined;
|
276
276
|
r?: `0x${string}` | undefined;
|
277
277
|
s?: `0x${string}` | undefined;
|
278
278
|
to?: `0x${string}` | null | undefined;
|
279
279
|
transactionIndex?: `0x${string}` | null | undefined;
|
280
280
|
v?: `0x${string}` | undefined;
|
281
281
|
value?: `0x${string}` | undefined;
|
282
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
283
282
|
gasPrice?: `0x${string}` | undefined;
|
284
283
|
maxFeePerGas?: `0x${string}` | undefined;
|
285
284
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
285
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
286
286
|
accessList?: import("../../index.js").AccessList | undefined;
|
287
287
|
chainId?: `0x${string}` | undefined;
|
288
288
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
|
@@ -290,24 +290,24 @@ export declare const baseSepolia: {
|
|
290
290
|
mint?: undefined;
|
291
291
|
sourceHash?: undefined;
|
292
292
|
}) | ({
|
293
|
+
hash?: `0x${string}` | undefined;
|
294
|
+
nonce?: `0x${string}` | undefined;
|
293
295
|
yParity?: `0x${string}` | undefined;
|
294
296
|
blockHash?: `0x${string}` | null | undefined;
|
295
297
|
blockNumber?: `0x${string}` | null | undefined;
|
296
298
|
from?: `0x${string}` | undefined;
|
297
299
|
gas?: `0x${string}` | undefined;
|
298
|
-
hash?: `0x${string}` | undefined;
|
299
300
|
input?: `0x${string}` | undefined;
|
300
|
-
nonce?: `0x${string}` | undefined;
|
301
301
|
r?: `0x${string}` | undefined;
|
302
302
|
s?: `0x${string}` | undefined;
|
303
303
|
to?: `0x${string}` | null | undefined;
|
304
304
|
transactionIndex?: `0x${string}` | null | undefined;
|
305
305
|
v?: `0x${string}` | undefined;
|
306
306
|
value?: `0x${string}` | undefined;
|
307
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
308
307
|
gasPrice?: `0x${string}` | undefined;
|
309
308
|
maxFeePerGas?: `0x${string}` | undefined;
|
310
309
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
310
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
311
311
|
accessList?: import("../../index.js").AccessList | undefined;
|
312
312
|
chainId?: `0x${string}` | undefined;
|
313
313
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
|
@@ -315,24 +315,24 @@ export declare const baseSepolia: {
|
|
315
315
|
mint?: undefined;
|
316
316
|
sourceHash?: undefined;
|
317
317
|
}) | ({
|
318
|
+
hash?: `0x${string}` | undefined;
|
319
|
+
nonce?: `0x${string}` | undefined;
|
318
320
|
yParity?: `0x${string}` | undefined;
|
319
321
|
blockHash?: `0x${string}` | null | undefined;
|
320
322
|
blockNumber?: `0x${string}` | null | undefined;
|
321
323
|
from?: `0x${string}` | undefined;
|
322
324
|
gas?: `0x${string}` | undefined;
|
323
|
-
hash?: `0x${string}` | undefined;
|
324
325
|
input?: `0x${string}` | undefined;
|
325
|
-
nonce?: `0x${string}` | undefined;
|
326
326
|
r?: `0x${string}` | undefined;
|
327
327
|
s?: `0x${string}` | undefined;
|
328
328
|
to?: `0x${string}` | null | undefined;
|
329
329
|
transactionIndex?: `0x${string}` | null | undefined;
|
330
330
|
v?: `0x${string}` | undefined;
|
331
331
|
value?: `0x${string}` | undefined;
|
332
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
333
332
|
gasPrice?: `0x${string}` | undefined;
|
334
333
|
maxFeePerGas?: `0x${string}` | undefined;
|
335
334
|
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
335
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
336
336
|
accessList?: import("../../index.js").AccessList | undefined;
|
337
337
|
chainId?: `0x${string}` | undefined;
|
338
338
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -341,13 +341,13 @@ export declare const baseSepolia: {
|
|
341
341
|
sourceHash: `0x${string}`;
|
342
342
|
type: "0x7e";
|
343
343
|
})) => ({
|
344
|
+
hash: `0x${string}`;
|
345
|
+
nonce: number;
|
344
346
|
blockHash: `0x${string}` | null;
|
345
347
|
blockNumber: bigint | null;
|
346
348
|
from: `0x${string}`;
|
347
349
|
gas: bigint;
|
348
|
-
hash: `0x${string}`;
|
349
350
|
input: `0x${string}`;
|
350
|
-
nonce: number;
|
351
351
|
r: `0x${string}`;
|
352
352
|
s: `0x${string}`;
|
353
353
|
to: `0x${string}` | null;
|
@@ -366,13 +366,13 @@ export declare const baseSepolia: {
|
|
366
366
|
mint?: undefined;
|
367
367
|
sourceHash?: undefined;
|
368
368
|
} | {
|
369
|
+
hash: `0x${string}`;
|
370
|
+
nonce: number;
|
369
371
|
blockHash: `0x${string}` | null;
|
370
372
|
blockNumber: bigint | null;
|
371
373
|
from: `0x${string}`;
|
372
374
|
gas: bigint;
|
373
|
-
hash: `0x${string}`;
|
374
375
|
input: `0x${string}`;
|
375
|
-
nonce: number;
|
376
376
|
r: `0x${string}`;
|
377
377
|
s: `0x${string}`;
|
378
378
|
to: `0x${string}` | null;
|