viem 2.0.0-rc.1 → 2.0.0-rc.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.
- package/_cjs/errors/version.js +1 -1
- package/_esm/errors/version.js +1 -1
- package/_types/chains/celo/chainConfig.d.ts +65 -65
- package/_types/chains/celo/formatters.d.ts +65 -65
- package/_types/chains/definitions/base.d.ts +50 -50
- package/_types/chains/definitions/baseGoerli.d.ts +50 -50
- package/_types/chains/definitions/baseSepolia.d.ts +50 -50
- package/_types/chains/definitions/celo.d.ts +65 -65
- package/_types/chains/definitions/celoAlfajores.d.ts +65 -65
- package/_types/chains/definitions/celoCannoli.d.ts +65 -65
- package/_types/chains/definitions/optimism.d.ts +50 -50
- package/_types/chains/definitions/optimismGoerli.d.ts +50 -50
- package/_types/chains/definitions/optimismSepolia.d.ts +50 -50
- package/_types/chains/definitions/pgn.d.ts +50 -50
- package/_types/chains/definitions/pgnTestnet.d.ts +50 -50
- package/_types/chains/definitions/zkSync.d.ts +3 -3
- package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +3 -3
- package/_types/chains/definitions/zkSyncTestnet.d.ts +3 -3
- package/_types/chains/definitions/zora.d.ts +50 -50
- package/_types/chains/definitions/zoraSepolia.d.ts +50 -50
- package/_types/chains/definitions/zoraTestnet.d.ts +50 -50
- package/_types/chains/index.d.ts +1 -1
- package/_types/chains/index.d.ts.map +1 -1
- package/_types/chains/opStack/chainConfig.d.ts +50 -50
- package/_types/chains/opStack/formatters.d.ts +50 -50
- package/_types/chains/zksync/chainConfig.d.ts +3 -3
- package/_types/chains/zksync/formatters.d.ts +3 -3
- package/_types/errors/version.d.ts +1 -1
- package/_types/utils/formatters/transaction.d.ts +1 -1
- package/_types/utils/formatters/transactionRequest.d.ts +1 -1
- package/chains/index.ts +8 -1
- package/errors/version.ts +1 -1
- package/package.json +34 -12
@@ -55,12 +55,8 @@ export declare const chainConfig: {
|
|
55
55
|
readonly transaction: {
|
56
56
|
exclude: [] | undefined;
|
57
57
|
format: (args: ({
|
58
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
59
|
-
blockHash?: `0x${string}` | null | undefined;
|
60
|
-
gasPrice?: `0x${string}` | undefined;
|
61
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
62
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
63
58
|
yParity?: `0x${string}` | undefined;
|
59
|
+
blockHash?: `0x${string}` | null | undefined;
|
64
60
|
blockNumber?: `0x${string}` | null | undefined;
|
65
61
|
from?: `0x${string}` | undefined;
|
66
62
|
gas?: `0x${string}` | undefined;
|
@@ -73,6 +69,10 @@ export declare const chainConfig: {
|
|
73
69
|
transactionIndex?: `0x${string}` | null | undefined;
|
74
70
|
v?: `0x${string}` | undefined;
|
75
71
|
value?: `0x${string}` | undefined;
|
72
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
73
|
+
gasPrice?: `0x${string}` | undefined;
|
74
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
75
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
76
76
|
accessList?: undefined;
|
77
77
|
chainId?: `0x${string}` | undefined;
|
78
78
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
@@ -80,12 +80,8 @@ export declare const chainConfig: {
|
|
80
80
|
mint?: undefined;
|
81
81
|
sourceHash?: undefined;
|
82
82
|
}) | ({
|
83
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
84
|
-
blockHash?: `0x${string}` | null | undefined;
|
85
|
-
gasPrice?: `0x${string}` | undefined;
|
86
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
87
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
88
83
|
yParity?: `0x${string}` | undefined;
|
84
|
+
blockHash?: `0x${string}` | null | undefined;
|
89
85
|
blockNumber?: `0x${string}` | null | undefined;
|
90
86
|
from?: `0x${string}` | undefined;
|
91
87
|
gas?: `0x${string}` | undefined;
|
@@ -98,6 +94,10 @@ export declare const chainConfig: {
|
|
98
94
|
transactionIndex?: `0x${string}` | null | undefined;
|
99
95
|
v?: `0x${string}` | undefined;
|
100
96
|
value?: `0x${string}` | undefined;
|
97
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
98
|
+
gasPrice?: `0x${string}` | undefined;
|
99
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
100
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
101
101
|
accessList?: undefined;
|
102
102
|
chainId?: `0x${string}` | undefined;
|
103
103
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -106,12 +106,8 @@ export declare const chainConfig: {
|
|
106
106
|
sourceHash: `0x${string}`;
|
107
107
|
type: "0x7e";
|
108
108
|
}) | ({
|
109
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
110
|
-
blockHash?: `0x${string}` | null | undefined;
|
111
|
-
gasPrice?: `0x${string}` | undefined;
|
112
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
113
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
114
109
|
yParity?: `0x${string}` | undefined;
|
110
|
+
blockHash?: `0x${string}` | null | undefined;
|
115
111
|
blockNumber?: `0x${string}` | null | undefined;
|
116
112
|
from?: `0x${string}` | undefined;
|
117
113
|
gas?: `0x${string}` | undefined;
|
@@ -124,6 +120,10 @@ export declare const chainConfig: {
|
|
124
120
|
transactionIndex?: `0x${string}` | null | undefined;
|
125
121
|
v?: `0x${string}` | undefined;
|
126
122
|
value?: `0x${string}` | undefined;
|
123
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
124
|
+
gasPrice?: `0x${string}` | undefined;
|
125
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
126
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
127
127
|
accessList?: import("../../index.js").AccessList | undefined;
|
128
128
|
chainId?: `0x${string}` | undefined;
|
129
129
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
@@ -131,12 +131,8 @@ export declare const chainConfig: {
|
|
131
131
|
mint?: undefined;
|
132
132
|
sourceHash?: undefined;
|
133
133
|
}) | ({
|
134
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
135
|
-
blockHash?: `0x${string}` | null | undefined;
|
136
|
-
gasPrice?: `0x${string}` | undefined;
|
137
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
138
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
139
134
|
yParity?: `0x${string}` | undefined;
|
135
|
+
blockHash?: `0x${string}` | null | undefined;
|
140
136
|
blockNumber?: `0x${string}` | null | undefined;
|
141
137
|
from?: `0x${string}` | undefined;
|
142
138
|
gas?: `0x${string}` | undefined;
|
@@ -149,6 +145,10 @@ export declare const chainConfig: {
|
|
149
145
|
transactionIndex?: `0x${string}` | null | undefined;
|
150
146
|
v?: `0x${string}` | undefined;
|
151
147
|
value?: `0x${string}` | undefined;
|
148
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
149
|
+
gasPrice?: `0x${string}` | undefined;
|
150
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
151
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
152
152
|
accessList?: import("../../index.js").AccessList | undefined;
|
153
153
|
chainId?: `0x${string}` | undefined;
|
154
154
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
|
@@ -156,12 +156,8 @@ export declare const chainConfig: {
|
|
156
156
|
mint?: undefined;
|
157
157
|
sourceHash?: undefined;
|
158
158
|
}) | ({
|
159
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
160
|
-
blockHash?: `0x${string}` | null | undefined;
|
161
|
-
gasPrice?: `0x${string}` | undefined;
|
162
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
163
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
164
159
|
yParity?: `0x${string}` | undefined;
|
160
|
+
blockHash?: `0x${string}` | null | undefined;
|
165
161
|
blockNumber?: `0x${string}` | null | undefined;
|
166
162
|
from?: `0x${string}` | undefined;
|
167
163
|
gas?: `0x${string}` | undefined;
|
@@ -174,6 +170,10 @@ export declare const chainConfig: {
|
|
174
170
|
transactionIndex?: `0x${string}` | null | undefined;
|
175
171
|
v?: `0x${string}` | undefined;
|
176
172
|
value?: `0x${string}` | undefined;
|
173
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
174
|
+
gasPrice?: `0x${string}` | undefined;
|
175
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
176
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
177
177
|
accessList?: import("../../index.js").AccessList | undefined;
|
178
178
|
chainId?: `0x${string}` | undefined;
|
179
179
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
|
@@ -181,12 +181,8 @@ export declare const chainConfig: {
|
|
181
181
|
mint?: undefined;
|
182
182
|
sourceHash?: undefined;
|
183
183
|
}) | ({
|
184
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
185
|
-
blockHash?: `0x${string}` | null | undefined;
|
186
|
-
gasPrice?: `0x${string}` | undefined;
|
187
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
188
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
189
184
|
yParity?: `0x${string}` | undefined;
|
185
|
+
blockHash?: `0x${string}` | null | undefined;
|
190
186
|
blockNumber?: `0x${string}` | null | undefined;
|
191
187
|
from?: `0x${string}` | undefined;
|
192
188
|
gas?: `0x${string}` | undefined;
|
@@ -199,6 +195,10 @@ export declare const chainConfig: {
|
|
199
195
|
transactionIndex?: `0x${string}` | null | undefined;
|
200
196
|
v?: `0x${string}` | undefined;
|
201
197
|
value?: `0x${string}` | undefined;
|
198
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
199
|
+
gasPrice?: `0x${string}` | undefined;
|
200
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
201
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
202
202
|
accessList?: import("../../index.js").AccessList | undefined;
|
203
203
|
chainId?: `0x${string}` | undefined;
|
204
204
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -207,12 +207,8 @@ export declare const chainConfig: {
|
|
207
207
|
sourceHash: `0x${string}`;
|
208
208
|
type: "0x7e";
|
209
209
|
}) | ({
|
210
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
211
|
-
blockHash?: `0x${string}` | null | undefined;
|
212
|
-
gasPrice?: `0x${string}` | undefined;
|
213
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
214
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
215
210
|
yParity?: `0x${string}` | undefined;
|
211
|
+
blockHash?: `0x${string}` | null | undefined;
|
216
212
|
blockNumber?: `0x${string}` | null | undefined;
|
217
213
|
from?: `0x${string}` | undefined;
|
218
214
|
gas?: `0x${string}` | undefined;
|
@@ -225,6 +221,10 @@ export declare const chainConfig: {
|
|
225
221
|
transactionIndex?: `0x${string}` | null | undefined;
|
226
222
|
v?: `0x${string}` | undefined;
|
227
223
|
value?: `0x${string}` | undefined;
|
224
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
225
|
+
gasPrice?: `0x${string}` | undefined;
|
226
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
227
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
228
228
|
accessList?: import("../../index.js").AccessList | undefined;
|
229
229
|
chainId?: `0x${string}` | undefined;
|
230
230
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
|
@@ -232,12 +232,8 @@ export declare const chainConfig: {
|
|
232
232
|
mint?: undefined;
|
233
233
|
sourceHash?: undefined;
|
234
234
|
}) | ({
|
235
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
236
|
-
blockHash?: `0x${string}` | null | undefined;
|
237
|
-
gasPrice?: `0x${string}` | undefined;
|
238
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
239
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
240
235
|
yParity?: `0x${string}` | undefined;
|
236
|
+
blockHash?: `0x${string}` | null | undefined;
|
241
237
|
blockNumber?: `0x${string}` | null | undefined;
|
242
238
|
from?: `0x${string}` | undefined;
|
243
239
|
gas?: `0x${string}` | undefined;
|
@@ -250,6 +246,10 @@ export declare const chainConfig: {
|
|
250
246
|
transactionIndex?: `0x${string}` | null | undefined;
|
251
247
|
v?: `0x${string}` | undefined;
|
252
248
|
value?: `0x${string}` | undefined;
|
249
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
250
|
+
gasPrice?: `0x${string}` | undefined;
|
251
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
252
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
253
253
|
accessList?: import("../../index.js").AccessList | undefined;
|
254
254
|
chainId?: `0x${string}` | undefined;
|
255
255
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
|
@@ -257,12 +257,8 @@ export declare const chainConfig: {
|
|
257
257
|
mint?: undefined;
|
258
258
|
sourceHash?: undefined;
|
259
259
|
}) | ({
|
260
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
261
|
-
blockHash?: `0x${string}` | null | undefined;
|
262
|
-
gasPrice?: `0x${string}` | undefined;
|
263
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
264
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
265
260
|
yParity?: `0x${string}` | undefined;
|
261
|
+
blockHash?: `0x${string}` | null | undefined;
|
266
262
|
blockNumber?: `0x${string}` | null | undefined;
|
267
263
|
from?: `0x${string}` | undefined;
|
268
264
|
gas?: `0x${string}` | undefined;
|
@@ -275,6 +271,10 @@ export declare const chainConfig: {
|
|
275
271
|
transactionIndex?: `0x${string}` | null | undefined;
|
276
272
|
v?: `0x${string}` | undefined;
|
277
273
|
value?: `0x${string}` | undefined;
|
274
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
275
|
+
gasPrice?: `0x${string}` | undefined;
|
276
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
277
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
278
278
|
accessList?: import("../../index.js").AccessList | undefined;
|
279
279
|
chainId?: `0x${string}` | undefined;
|
280
280
|
} & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
|
@@ -282,12 +282,8 @@ export declare const chainConfig: {
|
|
282
282
|
mint?: undefined;
|
283
283
|
sourceHash?: undefined;
|
284
284
|
}) | ({
|
285
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
286
|
-
blockHash?: `0x${string}` | null | undefined;
|
287
|
-
gasPrice?: `0x${string}` | undefined;
|
288
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
289
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
290
285
|
yParity?: `0x${string}` | undefined;
|
286
|
+
blockHash?: `0x${string}` | null | undefined;
|
291
287
|
blockNumber?: `0x${string}` | null | undefined;
|
292
288
|
from?: `0x${string}` | undefined;
|
293
289
|
gas?: `0x${string}` | undefined;
|
@@ -300,6 +296,10 @@ export declare const chainConfig: {
|
|
300
296
|
transactionIndex?: `0x${string}` | null | undefined;
|
301
297
|
v?: `0x${string}` | undefined;
|
302
298
|
value?: `0x${string}` | undefined;
|
299
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
300
|
+
gasPrice?: `0x${string}` | undefined;
|
301
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
302
|
+
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
303
303
|
accessList?: import("../../index.js").AccessList | undefined;
|
304
304
|
chainId?: `0x${string}` | undefined;
|
305
305
|
} & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
|
@@ -37,12 +37,8 @@ export declare const formatters: {
|
|
37
37
|
readonly transaction: {
|
38
38
|
exclude: [] | undefined;
|
39
39
|
format: (args: ({
|
40
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
41
|
-
blockHash?: `0x${string}` | null | undefined;
|
42
|
-
gasPrice?: `0x${string}` | undefined;
|
43
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
44
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
45
40
|
yParity?: `0x${string}` | undefined;
|
41
|
+
blockHash?: `0x${string}` | null | undefined;
|
46
42
|
blockNumber?: `0x${string}` | null | undefined;
|
47
43
|
from?: `0x${string}` | undefined;
|
48
44
|
gas?: `0x${string}` | undefined;
|
@@ -55,6 +51,10 @@ export declare const formatters: {
|
|
55
51
|
transactionIndex?: `0x${string}` | null | undefined;
|
56
52
|
v?: `0x${string}` | undefined;
|
57
53
|
value?: `0x${string}` | undefined;
|
54
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
55
|
+
gasPrice?: `0x${string}` | undefined;
|
56
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
57
|
+
maxPriorityFeePerGas?: `0x${string}` | 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,12 +62,8 @@ export declare const formatters: {
|
|
62
62
|
mint?: undefined;
|
63
63
|
sourceHash?: undefined;
|
64
64
|
}) | ({
|
65
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
66
|
-
blockHash?: `0x${string}` | null | undefined;
|
67
|
-
gasPrice?: `0x${string}` | undefined;
|
68
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
69
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
70
65
|
yParity?: `0x${string}` | undefined;
|
66
|
+
blockHash?: `0x${string}` | null | undefined;
|
71
67
|
blockNumber?: `0x${string}` | null | undefined;
|
72
68
|
from?: `0x${string}` | undefined;
|
73
69
|
gas?: `0x${string}` | undefined;
|
@@ -80,6 +76,10 @@ export declare const formatters: {
|
|
80
76
|
transactionIndex?: `0x${string}` | null | undefined;
|
81
77
|
v?: `0x${string}` | undefined;
|
82
78
|
value?: `0x${string}` | undefined;
|
79
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
80
|
+
gasPrice?: `0x${string}` | undefined;
|
81
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
82
|
+
maxPriorityFeePerGas?: `0x${string}` | 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,12 +88,8 @@ export declare const formatters: {
|
|
88
88
|
sourceHash: `0x${string}`;
|
89
89
|
type: "0x7e";
|
90
90
|
}) | ({
|
91
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
92
|
-
blockHash?: `0x${string}` | null | undefined;
|
93
|
-
gasPrice?: `0x${string}` | undefined;
|
94
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
95
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
96
91
|
yParity?: `0x${string}` | undefined;
|
92
|
+
blockHash?: `0x${string}` | null | undefined;
|
97
93
|
blockNumber?: `0x${string}` | null | undefined;
|
98
94
|
from?: `0x${string}` | undefined;
|
99
95
|
gas?: `0x${string}` | undefined;
|
@@ -106,6 +102,10 @@ export declare const formatters: {
|
|
106
102
|
transactionIndex?: `0x${string}` | null | undefined;
|
107
103
|
v?: `0x${string}` | undefined;
|
108
104
|
value?: `0x${string}` | undefined;
|
105
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
106
|
+
gasPrice?: `0x${string}` | undefined;
|
107
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
108
|
+
maxPriorityFeePerGas?: `0x${string}` | 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,12 +113,8 @@ export declare const formatters: {
|
|
113
113
|
mint?: undefined;
|
114
114
|
sourceHash?: undefined;
|
115
115
|
}) | ({
|
116
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
117
|
-
blockHash?: `0x${string}` | null | undefined;
|
118
|
-
gasPrice?: `0x${string}` | undefined;
|
119
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
120
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
121
116
|
yParity?: `0x${string}` | undefined;
|
117
|
+
blockHash?: `0x${string}` | null | undefined;
|
122
118
|
blockNumber?: `0x${string}` | null | undefined;
|
123
119
|
from?: `0x${string}` | undefined;
|
124
120
|
gas?: `0x${string}` | undefined;
|
@@ -131,6 +127,10 @@ export declare const formatters: {
|
|
131
127
|
transactionIndex?: `0x${string}` | null | undefined;
|
132
128
|
v?: `0x${string}` | undefined;
|
133
129
|
value?: `0x${string}` | undefined;
|
130
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
131
|
+
gasPrice?: `0x${string}` | undefined;
|
132
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
133
|
+
maxPriorityFeePerGas?: `0x${string}` | 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,12 +138,8 @@ export declare const formatters: {
|
|
138
138
|
mint?: undefined;
|
139
139
|
sourceHash?: undefined;
|
140
140
|
}) | ({
|
141
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
142
|
-
blockHash?: `0x${string}` | null | undefined;
|
143
|
-
gasPrice?: `0x${string}` | undefined;
|
144
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
145
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
146
141
|
yParity?: `0x${string}` | undefined;
|
142
|
+
blockHash?: `0x${string}` | null | undefined;
|
147
143
|
blockNumber?: `0x${string}` | null | undefined;
|
148
144
|
from?: `0x${string}` | undefined;
|
149
145
|
gas?: `0x${string}` | undefined;
|
@@ -156,6 +152,10 @@ export declare const formatters: {
|
|
156
152
|
transactionIndex?: `0x${string}` | null | undefined;
|
157
153
|
v?: `0x${string}` | undefined;
|
158
154
|
value?: `0x${string}` | undefined;
|
155
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
156
|
+
gasPrice?: `0x${string}` | undefined;
|
157
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
158
|
+
maxPriorityFeePerGas?: `0x${string}` | 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,12 +163,8 @@ export declare const formatters: {
|
|
163
163
|
mint?: undefined;
|
164
164
|
sourceHash?: undefined;
|
165
165
|
}) | ({
|
166
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
167
|
-
blockHash?: `0x${string}` | null | undefined;
|
168
|
-
gasPrice?: `0x${string}` | undefined;
|
169
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
170
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
171
166
|
yParity?: `0x${string}` | undefined;
|
167
|
+
blockHash?: `0x${string}` | null | undefined;
|
172
168
|
blockNumber?: `0x${string}` | null | undefined;
|
173
169
|
from?: `0x${string}` | undefined;
|
174
170
|
gas?: `0x${string}` | undefined;
|
@@ -181,6 +177,10 @@ export declare const formatters: {
|
|
181
177
|
transactionIndex?: `0x${string}` | null | undefined;
|
182
178
|
v?: `0x${string}` | undefined;
|
183
179
|
value?: `0x${string}` | undefined;
|
180
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
181
|
+
gasPrice?: `0x${string}` | undefined;
|
182
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
183
|
+
maxPriorityFeePerGas?: `0x${string}` | 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,12 +189,8 @@ export declare const formatters: {
|
|
189
189
|
sourceHash: `0x${string}`;
|
190
190
|
type: "0x7e";
|
191
191
|
}) | ({
|
192
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
193
|
-
blockHash?: `0x${string}` | null | undefined;
|
194
|
-
gasPrice?: `0x${string}` | undefined;
|
195
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
196
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
197
192
|
yParity?: `0x${string}` | undefined;
|
193
|
+
blockHash?: `0x${string}` | null | undefined;
|
198
194
|
blockNumber?: `0x${string}` | null | undefined;
|
199
195
|
from?: `0x${string}` | undefined;
|
200
196
|
gas?: `0x${string}` | undefined;
|
@@ -207,6 +203,10 @@ export declare const formatters: {
|
|
207
203
|
transactionIndex?: `0x${string}` | null | undefined;
|
208
204
|
v?: `0x${string}` | undefined;
|
209
205
|
value?: `0x${string}` | undefined;
|
206
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
207
|
+
gasPrice?: `0x${string}` | undefined;
|
208
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
209
|
+
maxPriorityFeePerGas?: `0x${string}` | 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,12 +214,8 @@ export declare const formatters: {
|
|
214
214
|
mint?: undefined;
|
215
215
|
sourceHash?: undefined;
|
216
216
|
}) | ({
|
217
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
218
|
-
blockHash?: `0x${string}` | null | undefined;
|
219
|
-
gasPrice?: `0x${string}` | undefined;
|
220
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
221
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
222
217
|
yParity?: `0x${string}` | undefined;
|
218
|
+
blockHash?: `0x${string}` | null | undefined;
|
223
219
|
blockNumber?: `0x${string}` | null | undefined;
|
224
220
|
from?: `0x${string}` | undefined;
|
225
221
|
gas?: `0x${string}` | undefined;
|
@@ -232,6 +228,10 @@ export declare const formatters: {
|
|
232
228
|
transactionIndex?: `0x${string}` | null | undefined;
|
233
229
|
v?: `0x${string}` | undefined;
|
234
230
|
value?: `0x${string}` | undefined;
|
231
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
232
|
+
gasPrice?: `0x${string}` | undefined;
|
233
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
234
|
+
maxPriorityFeePerGas?: `0x${string}` | 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,12 +239,8 @@ export declare const formatters: {
|
|
239
239
|
mint?: undefined;
|
240
240
|
sourceHash?: undefined;
|
241
241
|
}) | ({
|
242
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
243
|
-
blockHash?: `0x${string}` | null | undefined;
|
244
|
-
gasPrice?: `0x${string}` | undefined;
|
245
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
246
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
247
242
|
yParity?: `0x${string}` | undefined;
|
243
|
+
blockHash?: `0x${string}` | null | undefined;
|
248
244
|
blockNumber?: `0x${string}` | null | undefined;
|
249
245
|
from?: `0x${string}` | undefined;
|
250
246
|
gas?: `0x${string}` | undefined;
|
@@ -257,6 +253,10 @@ export declare const formatters: {
|
|
257
253
|
transactionIndex?: `0x${string}` | null | undefined;
|
258
254
|
v?: `0x${string}` | undefined;
|
259
255
|
value?: `0x${string}` | undefined;
|
256
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
257
|
+
gasPrice?: `0x${string}` | undefined;
|
258
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
259
|
+
maxPriorityFeePerGas?: `0x${string}` | 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,12 +264,8 @@ export declare const formatters: {
|
|
264
264
|
mint?: undefined;
|
265
265
|
sourceHash?: undefined;
|
266
266
|
}) | ({
|
267
|
-
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
268
|
-
blockHash?: `0x${string}` | null | undefined;
|
269
|
-
gasPrice?: `0x${string}` | undefined;
|
270
|
-
maxFeePerGas?: `0x${string}` | undefined;
|
271
|
-
maxPriorityFeePerGas?: `0x${string}` | undefined;
|
272
267
|
yParity?: `0x${string}` | undefined;
|
268
|
+
blockHash?: `0x${string}` | null | undefined;
|
273
269
|
blockNumber?: `0x${string}` | null | undefined;
|
274
270
|
from?: `0x${string}` | undefined;
|
275
271
|
gas?: `0x${string}` | undefined;
|
@@ -282,6 +278,10 @@ export declare const formatters: {
|
|
282
278
|
transactionIndex?: `0x${string}` | null | undefined;
|
283
279
|
v?: `0x${string}` | undefined;
|
284
280
|
value?: `0x${string}` | undefined;
|
281
|
+
type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
|
282
|
+
gasPrice?: `0x${string}` | undefined;
|
283
|
+
maxFeePerGas?: `0x${string}` | undefined;
|
284
|
+
maxPriorityFeePerGas?: `0x${string}` | 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}`> & {
|
@@ -105,7 +105,7 @@ export declare const chainConfig: {
|
|
105
105
|
accessList?: undefined;
|
106
106
|
chainId?: number | undefined;
|
107
107
|
yParity: number;
|
108
|
-
type: "
|
108
|
+
type: "priority" | "eip712";
|
109
109
|
l1BatchNumber: bigint | null;
|
110
110
|
l1BatchTxIndex: bigint | null;
|
111
111
|
} | {
|
@@ -201,7 +201,7 @@ export declare const chainConfig: {
|
|
201
201
|
maxPriorityFeePerGas: bigint;
|
202
202
|
accessList: import("../../index.js").AccessList;
|
203
203
|
chainId: number;
|
204
|
-
type: "
|
204
|
+
type: "priority" | "eip712";
|
205
205
|
l1BatchNumber: bigint | null;
|
206
206
|
l1BatchTxIndex: bigint | null;
|
207
207
|
} | {
|
@@ -297,7 +297,7 @@ export declare const chainConfig: {
|
|
297
297
|
maxPriorityFeePerGas: bigint;
|
298
298
|
accessList: import("../../index.js").AccessList;
|
299
299
|
chainId: number;
|
300
|
-
type: "
|
300
|
+
type: "priority" | "eip712";
|
301
301
|
l1BatchNumber: bigint | null;
|
302
302
|
l1BatchTxIndex: bigint | null;
|
303
303
|
}) & {};
|
@@ -106,7 +106,7 @@ export declare const formatters: {
|
|
106
106
|
accessList?: undefined;
|
107
107
|
chainId?: number | undefined;
|
108
108
|
yParity: number;
|
109
|
-
type: "
|
109
|
+
type: "priority" | "eip712";
|
110
110
|
l1BatchNumber: bigint | null;
|
111
111
|
l1BatchTxIndex: bigint | null;
|
112
112
|
} | {
|
@@ -202,7 +202,7 @@ export declare const formatters: {
|
|
202
202
|
maxPriorityFeePerGas: bigint;
|
203
203
|
accessList: import("../../index.js").AccessList;
|
204
204
|
chainId: number;
|
205
|
-
type: "
|
205
|
+
type: "priority" | "eip712";
|
206
206
|
l1BatchNumber: bigint | null;
|
207
207
|
l1BatchTxIndex: bigint | null;
|
208
208
|
} | {
|
@@ -298,7 +298,7 @@ export declare const formatters: {
|
|
298
298
|
maxPriorityFeePerGas: bigint;
|
299
299
|
accessList: import("../../index.js").AccessList;
|
300
300
|
chainId: number;
|
301
|
-
type: "
|
301
|
+
type: "priority" | "eip712";
|
302
302
|
l1BatchNumber: bigint | null;
|
303
303
|
l1BatchTxIndex: bigint | null;
|
304
304
|
}) & {};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export declare const version = "2.0.0-rc.
|
1
|
+
export declare const version = "2.0.0-rc.2";
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
@@ -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 ("
|
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, }: {
|
22
22
|
exclude?: TExclude | undefined;
|
23
23
|
format: (_: TOverrideParameters) => TOverrideReturnType;
|
24
24
|
}) => {
|
@@ -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 ("
|
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, }: {
|
16
16
|
exclude?: TExclude | undefined;
|
17
17
|
format: (_: TOverrideParameters) => TOverrideReturnType;
|
18
18
|
}) => {
|
package/chains/index.ts
CHANGED
@@ -174,9 +174,16 @@ export { zora } from './definitions/zora.js'
|
|
174
174
|
export { zoraSepolia } from './definitions/zoraSepolia.js'
|
175
175
|
export { zoraTestnet } from './definitions/zoraTestnet.js'
|
176
176
|
|
177
|
+
//////////////////////////////////////////////////////////////////////////////////////
|
177
178
|
// required for type inference since in explicit return type
|
178
179
|
//////////////////////////////////////////////////////////////////////////////////////
|
179
|
-
export type {
|
180
|
+
export type {
|
181
|
+
Assign,
|
182
|
+
Omit,
|
183
|
+
PartialBy,
|
184
|
+
Prettify,
|
185
|
+
UnionLooseOmit,
|
186
|
+
} from '../types/utils.js'
|
180
187
|
export type {
|
181
188
|
OpStackBlock,
|
182
189
|
OpStackBlockOverrides,
|
package/errors/version.ts
CHANGED
@@ -1 +1 @@
|
|
1
|
-
export const version = '2.0.0-rc.
|
1
|
+
export const version = '2.0.0-rc.2'
|