viem 0.0.0-main.20240130T224622 → 0.0.0-main.20240130T235251

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 (88) hide show
  1. package/_cjs/actions/public/getTransaction.js.map +1 -1
  2. package/_cjs/errors/version.js +1 -1
  3. package/_cjs/index.js.map +1 -1
  4. package/_cjs/utils/formatters/transaction.js +9 -0
  5. package/_cjs/utils/formatters/transaction.js.map +1 -1
  6. package/_cjs/utils/formatters/transactionReceipt.js +6 -1
  7. package/_cjs/utils/formatters/transactionReceipt.js.map +1 -1
  8. package/_cjs/utils/formatters/transactionRequest.js +1 -0
  9. package/_cjs/utils/formatters/transactionRequest.js.map +1 -1
  10. package/_esm/actions/public/getTransaction.js.map +1 -1
  11. package/_esm/errors/version.js +1 -1
  12. package/_esm/index.js.map +1 -1
  13. package/_esm/utils/formatters/transaction.js +9 -0
  14. package/_esm/utils/formatters/transaction.js.map +1 -1
  15. package/_esm/utils/formatters/transactionReceipt.js +6 -1
  16. package/_esm/utils/formatters/transactionReceipt.js.map +1 -1
  17. package/_esm/utils/formatters/transactionRequest.js +1 -0
  18. package/_esm/utils/formatters/transactionRequest.js.map +1 -1
  19. package/_types/actions/public/getTransaction.d.ts +2 -1
  20. package/_types/actions/public/getTransaction.d.ts.map +1 -1
  21. package/_types/chains/celo/chainConfig.d.ts +373 -65
  22. package/_types/chains/celo/chainConfig.d.ts.map +1 -1
  23. package/_types/chains/celo/formatters.d.ts +373 -65
  24. package/_types/chains/celo/formatters.d.ts.map +1 -1
  25. package/_types/chains/definitions/base.d.ts +277 -49
  26. package/_types/chains/definitions/base.d.ts.map +1 -1
  27. package/_types/chains/definitions/baseGoerli.d.ts +277 -49
  28. package/_types/chains/definitions/baseGoerli.d.ts.map +1 -1
  29. package/_types/chains/definitions/baseSepolia.d.ts +277 -49
  30. package/_types/chains/definitions/baseSepolia.d.ts.map +1 -1
  31. package/_types/chains/definitions/celo.d.ts +373 -65
  32. package/_types/chains/definitions/celo.d.ts.map +1 -1
  33. package/_types/chains/definitions/celoAlfajores.d.ts +373 -65
  34. package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
  35. package/_types/chains/definitions/optimism.d.ts +277 -49
  36. package/_types/chains/definitions/optimism.d.ts.map +1 -1
  37. package/_types/chains/definitions/optimismGoerli.d.ts +277 -49
  38. package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -1
  39. package/_types/chains/definitions/optimismSepolia.d.ts +277 -49
  40. package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -1
  41. package/_types/chains/definitions/pgn.d.ts +277 -49
  42. package/_types/chains/definitions/pgn.d.ts.map +1 -1
  43. package/_types/chains/definitions/pgnTestnet.d.ts +277 -49
  44. package/_types/chains/definitions/pgnTestnet.d.ts.map +1 -1
  45. package/_types/chains/definitions/zkSync.d.ts +120 -6
  46. package/_types/chains/definitions/zkSync.d.ts.map +1 -1
  47. package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +120 -6
  48. package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts.map +1 -1
  49. package/_types/chains/definitions/zkSyncTestnet.d.ts +120 -6
  50. package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -1
  51. package/_types/chains/definitions/zora.d.ts +277 -49
  52. package/_types/chains/definitions/zora.d.ts.map +1 -1
  53. package/_types/chains/definitions/zoraSepolia.d.ts +277 -49
  54. package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -1
  55. package/_types/chains/definitions/zoraTestnet.d.ts +277 -49
  56. package/_types/chains/definitions/zoraTestnet.d.ts.map +1 -1
  57. package/_types/chains/opStack/chainConfig.d.ts +277 -49
  58. package/_types/chains/opStack/chainConfig.d.ts.map +1 -1
  59. package/_types/chains/opStack/formatters.d.ts +277 -49
  60. package/_types/chains/opStack/formatters.d.ts.map +1 -1
  61. package/_types/chains/zksync/chainConfig.d.ts +120 -6
  62. package/_types/chains/zksync/chainConfig.d.ts.map +1 -1
  63. package/_types/chains/zksync/formatters.d.ts +120 -6
  64. package/_types/chains/zksync/formatters.d.ts.map +1 -1
  65. package/_types/errors/version.d.ts +1 -1
  66. package/_types/index.d.ts +2 -2
  67. package/_types/index.d.ts.map +1 -1
  68. package/_types/types/fee.d.ts +9 -2
  69. package/_types/types/fee.d.ts.map +1 -1
  70. package/_types/types/rpc.d.ts +2 -2
  71. package/_types/types/rpc.d.ts.map +1 -1
  72. package/_types/types/transaction.d.ts +20 -5
  73. package/_types/types/transaction.d.ts.map +1 -1
  74. package/_types/utils/formatters/transaction.d.ts +387 -2
  75. package/_types/utils/formatters/transaction.d.ts.map +1 -1
  76. package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -1
  77. package/_types/utils/formatters/transactionRequest.d.ts +2 -1
  78. package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
  79. package/actions/public/getTransaction.ts +2 -1
  80. package/errors/version.ts +1 -1
  81. package/index.ts +2 -0
  82. package/package.json +1 -1
  83. package/types/fee.ts +14 -1
  84. package/types/rpc.ts +3 -1
  85. package/types/transaction.ts +37 -6
  86. package/utils/formatters/transaction.ts +9 -0
  87. package/utils/formatters/transactionReceipt.ts +8 -1
  88. package/utils/formatters/transactionRequest.ts +1 -0
@@ -37,11 +37,17 @@ export declare const formatters: {
37
37
  readonly transaction: {
38
38
  exclude: [] | undefined;
39
39
  format: (args: ({
40
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
41
+ gas?: `0x${string}` | undefined;
42
+ value?: `0x${string}` | undefined;
43
+ gasPrice?: `0x${string}` | undefined;
44
+ maxFeePerBlobGas?: `0x${string}` | undefined;
45
+ maxFeePerGas?: `0x${string}` | undefined;
46
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
40
47
  yParity?: `0x${string}` | undefined;
41
48
  blockHash?: `0x${string}` | null | undefined;
42
49
  blockNumber?: `0x${string}` | null | undefined;
43
50
  from?: `0x${string}` | undefined;
44
- gas?: `0x${string}` | undefined;
45
51
  hash?: `0x${string}` | undefined;
46
52
  input?: `0x${string}` | undefined;
47
53
  nonce?: `0x${string}` | undefined;
@@ -50,23 +56,25 @@ export declare const formatters: {
50
56
  to?: `0x${string}` | null | undefined;
51
57
  transactionIndex?: `0x${string}` | null | undefined;
52
58
  v?: `0x${string}` | undefined;
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
59
  accessList?: undefined;
60
+ blobVersionedHashes?: undefined;
59
61
  chainId?: `0x${string}` | undefined;
60
62
  } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
61
63
  isSystemTx?: undefined;
62
64
  mint?: undefined;
63
65
  sourceHash?: undefined;
64
66
  }) | ({
67
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
68
+ gas?: `0x${string}` | undefined;
69
+ value?: `0x${string}` | undefined;
70
+ gasPrice?: `0x${string}` | undefined;
71
+ maxFeePerBlobGas?: `0x${string}` | undefined;
72
+ maxFeePerGas?: `0x${string}` | undefined;
73
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
65
74
  yParity?: `0x${string}` | undefined;
66
75
  blockHash?: `0x${string}` | null | undefined;
67
76
  blockNumber?: `0x${string}` | null | undefined;
68
77
  from?: `0x${string}` | undefined;
69
- gas?: `0x${string}` | undefined;
70
78
  hash?: `0x${string}` | undefined;
71
79
  input?: `0x${string}` | undefined;
72
80
  nonce?: `0x${string}` | undefined;
@@ -75,12 +83,8 @@ export declare const formatters: {
75
83
  to?: `0x${string}` | null | undefined;
76
84
  transactionIndex?: `0x${string}` | null | undefined;
77
85
  v?: `0x${string}` | undefined;
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
86
  accessList?: undefined;
87
+ blobVersionedHashes?: undefined;
84
88
  chainId?: `0x${string}` | undefined;
85
89
  } & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
86
90
  isSystemTx?: boolean | undefined;
@@ -88,11 +92,17 @@ export declare const formatters: {
88
92
  sourceHash: `0x${string}`;
89
93
  type: "0x7e";
90
94
  }) | ({
95
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
96
+ gas?: `0x${string}` | undefined;
97
+ value?: `0x${string}` | undefined;
98
+ gasPrice?: `0x${string}` | undefined;
99
+ maxFeePerBlobGas?: `0x${string}` | undefined;
100
+ maxFeePerGas?: `0x${string}` | undefined;
101
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
91
102
  yParity?: `0x${string}` | undefined;
92
103
  blockHash?: `0x${string}` | null | undefined;
93
104
  blockNumber?: `0x${string}` | null | undefined;
94
105
  from?: `0x${string}` | undefined;
95
- gas?: `0x${string}` | undefined;
96
106
  hash?: `0x${string}` | undefined;
97
107
  input?: `0x${string}` | undefined;
98
108
  nonce?: `0x${string}` | undefined;
@@ -101,23 +111,25 @@ export declare const formatters: {
101
111
  to?: `0x${string}` | null | undefined;
102
112
  transactionIndex?: `0x${string}` | null | undefined;
103
113
  v?: `0x${string}` | undefined;
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
114
  accessList?: import("../../index.js").AccessList | undefined;
115
+ blobVersionedHashes?: undefined;
110
116
  chainId?: `0x${string}` | undefined;
111
117
  } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
112
118
  isSystemTx?: undefined;
113
119
  mint?: undefined;
114
120
  sourceHash?: undefined;
115
121
  }) | ({
122
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
123
+ gas?: `0x${string}` | undefined;
124
+ value?: `0x${string}` | undefined;
125
+ gasPrice?: `0x${string}` | undefined;
126
+ maxFeePerBlobGas?: `0x${string}` | undefined;
127
+ maxFeePerGas?: `0x${string}` | undefined;
128
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
116
129
  yParity?: `0x${string}` | undefined;
117
130
  blockHash?: `0x${string}` | null | undefined;
118
131
  blockNumber?: `0x${string}` | null | undefined;
119
132
  from?: `0x${string}` | undefined;
120
- gas?: `0x${string}` | undefined;
121
133
  hash?: `0x${string}` | undefined;
122
134
  input?: `0x${string}` | undefined;
123
135
  nonce?: `0x${string}` | undefined;
@@ -126,23 +138,25 @@ export declare const formatters: {
126
138
  to?: `0x${string}` | null | undefined;
127
139
  transactionIndex?: `0x${string}` | null | undefined;
128
140
  v?: `0x${string}` | undefined;
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
141
  accessList?: import("../../index.js").AccessList | undefined;
142
+ blobVersionedHashes?: undefined;
135
143
  chainId?: `0x${string}` | undefined;
136
144
  } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
137
145
  isSystemTx?: undefined;
138
146
  mint?: undefined;
139
147
  sourceHash?: undefined;
140
148
  }) | ({
149
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
150
+ gas?: `0x${string}` | undefined;
151
+ value?: `0x${string}` | undefined;
152
+ gasPrice?: `0x${string}` | undefined;
153
+ maxFeePerBlobGas?: `0x${string}` | undefined;
154
+ maxFeePerGas?: `0x${string}` | undefined;
155
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
141
156
  yParity?: `0x${string}` | undefined;
142
157
  blockHash?: `0x${string}` | null | undefined;
143
158
  blockNumber?: `0x${string}` | null | undefined;
144
159
  from?: `0x${string}` | undefined;
145
- gas?: `0x${string}` | undefined;
146
160
  hash?: `0x${string}` | undefined;
147
161
  input?: `0x${string}` | undefined;
148
162
  nonce?: `0x${string}` | undefined;
@@ -151,23 +165,25 @@ export declare const formatters: {
151
165
  to?: `0x${string}` | null | undefined;
152
166
  transactionIndex?: `0x${string}` | null | undefined;
153
167
  v?: `0x${string}` | undefined;
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
168
  accessList?: import("../../index.js").AccessList | undefined;
169
+ blobVersionedHashes?: undefined;
160
170
  chainId?: `0x${string}` | undefined;
161
171
  } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
162
172
  isSystemTx?: undefined;
163
173
  mint?: undefined;
164
174
  sourceHash?: undefined;
165
175
  }) | ({
176
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
177
+ gas?: `0x${string}` | undefined;
178
+ value?: `0x${string}` | undefined;
179
+ gasPrice?: `0x${string}` | undefined;
180
+ maxFeePerBlobGas?: `0x${string}` | undefined;
181
+ maxFeePerGas?: `0x${string}` | undefined;
182
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
166
183
  yParity?: `0x${string}` | undefined;
167
184
  blockHash?: `0x${string}` | null | undefined;
168
185
  blockNumber?: `0x${string}` | null | undefined;
169
186
  from?: `0x${string}` | undefined;
170
- gas?: `0x${string}` | undefined;
171
187
  hash?: `0x${string}` | undefined;
172
188
  input?: `0x${string}` | undefined;
173
189
  nonce?: `0x${string}` | undefined;
@@ -176,12 +192,8 @@ export declare const formatters: {
176
192
  to?: `0x${string}` | null | undefined;
177
193
  transactionIndex?: `0x${string}` | null | undefined;
178
194
  v?: `0x${string}` | undefined;
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
195
  accessList?: import("../../index.js").AccessList | undefined;
196
+ blobVersionedHashes?: undefined;
185
197
  chainId?: `0x${string}` | undefined;
186
198
  } & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
187
199
  isSystemTx?: boolean | undefined;
@@ -189,11 +201,17 @@ export declare const formatters: {
189
201
  sourceHash: `0x${string}`;
190
202
  type: "0x7e";
191
203
  }) | ({
204
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
205
+ gas?: `0x${string}` | undefined;
206
+ value?: `0x${string}` | undefined;
207
+ gasPrice?: `0x${string}` | undefined;
208
+ maxFeePerBlobGas?: `0x${string}` | undefined;
209
+ maxFeePerGas?: `0x${string}` | undefined;
210
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
192
211
  yParity?: `0x${string}` | undefined;
193
212
  blockHash?: `0x${string}` | null | undefined;
194
213
  blockNumber?: `0x${string}` | null | undefined;
195
214
  from?: `0x${string}` | undefined;
196
- gas?: `0x${string}` | undefined;
197
215
  hash?: `0x${string}` | undefined;
198
216
  input?: `0x${string}` | undefined;
199
217
  nonce?: `0x${string}` | undefined;
@@ -202,23 +220,79 @@ export declare const formatters: {
202
220
  to?: `0x${string}` | null | undefined;
203
221
  transactionIndex?: `0x${string}` | null | undefined;
204
222
  v?: `0x${string}` | undefined;
223
+ accessList?: import("../../index.js").AccessList | undefined;
224
+ blobVersionedHashes?: undefined;
225
+ chainId?: `0x${string}` | undefined;
226
+ } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
227
+ isSystemTx?: undefined;
228
+ mint?: undefined;
229
+ sourceHash?: undefined;
230
+ }) | ({
231
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
232
+ gas?: `0x${string}` | undefined;
205
233
  value?: `0x${string}` | undefined;
206
- type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
207
234
  gasPrice?: `0x${string}` | undefined;
235
+ maxFeePerBlobGas?: `0x${string}` | undefined;
208
236
  maxFeePerGas?: `0x${string}` | undefined;
209
237
  maxPriorityFeePerGas?: `0x${string}` | undefined;
238
+ yParity?: `0x${string}` | undefined;
239
+ blockHash?: `0x${string}` | null | undefined;
240
+ blockNumber?: `0x${string}` | null | undefined;
241
+ from?: `0x${string}` | undefined;
242
+ hash?: `0x${string}` | undefined;
243
+ input?: `0x${string}` | undefined;
244
+ nonce?: `0x${string}` | undefined;
245
+ r?: `0x${string}` | undefined;
246
+ s?: `0x${string}` | undefined;
247
+ to?: `0x${string}` | null | undefined;
248
+ transactionIndex?: `0x${string}` | null | undefined;
249
+ v?: `0x${string}` | undefined;
210
250
  accessList?: import("../../index.js").AccessList | undefined;
251
+ blobVersionedHashes?: undefined;
211
252
  chainId?: `0x${string}` | undefined;
212
- } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
253
+ } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
213
254
  isSystemTx?: undefined;
214
255
  mint?: undefined;
215
256
  sourceHash?: undefined;
216
257
  }) | ({
258
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
259
+ gas?: `0x${string}` | undefined;
260
+ value?: `0x${string}` | undefined;
261
+ gasPrice?: `0x${string}` | undefined;
262
+ maxFeePerBlobGas?: `0x${string}` | undefined;
263
+ maxFeePerGas?: `0x${string}` | undefined;
264
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
217
265
  yParity?: `0x${string}` | undefined;
218
266
  blockHash?: `0x${string}` | null | undefined;
219
267
  blockNumber?: `0x${string}` | null | undefined;
220
268
  from?: `0x${string}` | undefined;
269
+ hash?: `0x${string}` | undefined;
270
+ input?: `0x${string}` | undefined;
271
+ nonce?: `0x${string}` | undefined;
272
+ r?: `0x${string}` | undefined;
273
+ s?: `0x${string}` | undefined;
274
+ to?: `0x${string}` | null | undefined;
275
+ transactionIndex?: `0x${string}` | null | undefined;
276
+ v?: `0x${string}` | undefined;
277
+ accessList?: import("../../index.js").AccessList | undefined;
278
+ blobVersionedHashes?: undefined;
279
+ chainId?: `0x${string}` | undefined;
280
+ } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
281
+ isSystemTx?: undefined;
282
+ mint?: undefined;
283
+ sourceHash?: undefined;
284
+ }) | ({
285
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
221
286
  gas?: `0x${string}` | undefined;
287
+ value?: `0x${string}` | undefined;
288
+ gasPrice?: `0x${string}` | undefined;
289
+ maxFeePerBlobGas?: `0x${string}` | undefined;
290
+ maxFeePerGas?: `0x${string}` | undefined;
291
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
292
+ yParity?: `0x${string}` | undefined;
293
+ blockHash?: `0x${string}` | null | undefined;
294
+ blockNumber?: `0x${string}` | null | undefined;
295
+ from?: `0x${string}` | undefined;
222
296
  hash?: `0x${string}` | undefined;
223
297
  input?: `0x${string}` | undefined;
224
298
  nonce?: `0x${string}` | undefined;
@@ -227,23 +301,53 @@ export declare const formatters: {
227
301
  to?: `0x${string}` | null | undefined;
228
302
  transactionIndex?: `0x${string}` | null | undefined;
229
303
  v?: `0x${string}` | undefined;
304
+ accessList?: import("../../index.js").AccessList | undefined;
305
+ blobVersionedHashes?: undefined;
306
+ chainId?: `0x${string}` | undefined;
307
+ } & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
308
+ isSystemTx?: boolean | undefined;
309
+ mint?: `0x${string}` | undefined;
310
+ sourceHash: `0x${string}`;
311
+ type: "0x7e";
312
+ }) | ({
313
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
314
+ gas?: `0x${string}` | undefined;
230
315
  value?: `0x${string}` | undefined;
231
- type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
232
316
  gasPrice?: `0x${string}` | undefined;
317
+ maxFeePerBlobGas?: `0x${string}` | undefined;
233
318
  maxFeePerGas?: `0x${string}` | undefined;
234
319
  maxPriorityFeePerGas?: `0x${string}` | undefined;
320
+ yParity?: `0x${string}` | undefined;
321
+ blockHash?: `0x${string}` | null | undefined;
322
+ blockNumber?: `0x${string}` | null | undefined;
323
+ from?: `0x${string}` | undefined;
324
+ hash?: `0x${string}` | undefined;
325
+ input?: `0x${string}` | undefined;
326
+ nonce?: `0x${string}` | undefined;
327
+ r?: `0x${string}` | undefined;
328
+ s?: `0x${string}` | undefined;
329
+ to?: `0x${string}` | null | undefined;
330
+ transactionIndex?: `0x${string}` | null | undefined;
331
+ v?: `0x${string}` | undefined;
235
332
  accessList?: import("../../index.js").AccessList | undefined;
333
+ blobVersionedHashes?: `0x${string}`[] | undefined;
236
334
  chainId?: `0x${string}` | undefined;
237
- } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
335
+ } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionLegacy<`0x${string}`, `0x${string}`, boolean, "0x0">, "yParity">, "typeHex"> & {
238
336
  isSystemTx?: undefined;
239
337
  mint?: undefined;
240
338
  sourceHash?: undefined;
241
339
  }) | ({
340
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
341
+ gas?: `0x${string}` | undefined;
342
+ value?: `0x${string}` | undefined;
343
+ gasPrice?: `0x${string}` | undefined;
344
+ maxFeePerBlobGas?: `0x${string}` | undefined;
345
+ maxFeePerGas?: `0x${string}` | undefined;
346
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
242
347
  yParity?: `0x${string}` | undefined;
243
348
  blockHash?: `0x${string}` | null | undefined;
244
349
  blockNumber?: `0x${string}` | null | undefined;
245
350
  from?: `0x${string}` | undefined;
246
- gas?: `0x${string}` | undefined;
247
351
  hash?: `0x${string}` | undefined;
248
352
  input?: `0x${string}` | undefined;
249
353
  nonce?: `0x${string}` | undefined;
@@ -252,23 +356,52 @@ export declare const formatters: {
252
356
  to?: `0x${string}` | null | undefined;
253
357
  transactionIndex?: `0x${string}` | null | undefined;
254
358
  v?: `0x${string}` | undefined;
359
+ accessList?: import("../../index.js").AccessList | undefined;
360
+ blobVersionedHashes?: `0x${string}`[] | undefined;
361
+ chainId?: `0x${string}` | undefined;
362
+ } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP2930<`0x${string}`, `0x${string}`, boolean, "0x1">, "yParity">, "typeHex"> & {
363
+ isSystemTx?: undefined;
364
+ mint?: undefined;
365
+ sourceHash?: undefined;
366
+ }) | ({
367
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
368
+ gas?: `0x${string}` | undefined;
255
369
  value?: `0x${string}` | undefined;
256
- type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
257
370
  gasPrice?: `0x${string}` | undefined;
371
+ maxFeePerBlobGas?: `0x${string}` | undefined;
258
372
  maxFeePerGas?: `0x${string}` | undefined;
259
373
  maxPriorityFeePerGas?: `0x${string}` | undefined;
374
+ yParity?: `0x${string}` | undefined;
375
+ blockHash?: `0x${string}` | null | undefined;
376
+ blockNumber?: `0x${string}` | null | undefined;
377
+ from?: `0x${string}` | undefined;
378
+ hash?: `0x${string}` | undefined;
379
+ input?: `0x${string}` | undefined;
380
+ nonce?: `0x${string}` | undefined;
381
+ r?: `0x${string}` | undefined;
382
+ s?: `0x${string}` | undefined;
383
+ to?: `0x${string}` | null | undefined;
384
+ transactionIndex?: `0x${string}` | null | undefined;
385
+ v?: `0x${string}` | undefined;
260
386
  accessList?: import("../../index.js").AccessList | undefined;
387
+ blobVersionedHashes?: `0x${string}`[] | undefined;
261
388
  chainId?: `0x${string}` | undefined;
262
389
  } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP1559<`0x${string}`, `0x${string}`, boolean, "0x2">, "yParity">, "typeHex"> & {
263
390
  isSystemTx?: undefined;
264
391
  mint?: undefined;
265
392
  sourceHash?: undefined;
266
393
  }) | ({
394
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
395
+ gas?: `0x${string}` | undefined;
396
+ value?: `0x${string}` | undefined;
397
+ gasPrice?: `0x${string}` | undefined;
398
+ maxFeePerBlobGas?: `0x${string}` | undefined;
399
+ maxFeePerGas?: `0x${string}` | undefined;
400
+ maxPriorityFeePerGas?: `0x${string}` | undefined;
267
401
  yParity?: `0x${string}` | undefined;
268
402
  blockHash?: `0x${string}` | null | undefined;
269
403
  blockNumber?: `0x${string}` | null | undefined;
270
404
  from?: `0x${string}` | undefined;
271
- gas?: `0x${string}` | undefined;
272
405
  hash?: `0x${string}` | undefined;
273
406
  input?: `0x${string}` | undefined;
274
407
  nonce?: `0x${string}` | undefined;
@@ -277,12 +410,35 @@ export declare const formatters: {
277
410
  to?: `0x${string}` | null | undefined;
278
411
  transactionIndex?: `0x${string}` | null | undefined;
279
412
  v?: `0x${string}` | undefined;
413
+ accessList?: import("../../index.js").AccessList | undefined;
414
+ blobVersionedHashes?: `0x${string}`[] | undefined;
415
+ chainId?: `0x${string}` | undefined;
416
+ } & import("../index.js").Omit<import("../index.js").PartialBy<import("../../index.js").TransactionEIP4844<`0x${string}`, `0x${string}`, boolean, "0x3">, "yParity">, "typeHex"> & {
417
+ isSystemTx?: undefined;
418
+ mint?: undefined;
419
+ sourceHash?: undefined;
420
+ }) | ({
421
+ type?: "0x0" | "0x1" | "0x2" | "0x3" | "0x7e" | undefined;
422
+ gas?: `0x${string}` | undefined;
280
423
  value?: `0x${string}` | undefined;
281
- type?: "0x0" | "0x1" | "0x2" | "0x7e" | undefined;
282
424
  gasPrice?: `0x${string}` | undefined;
425
+ maxFeePerBlobGas?: `0x${string}` | undefined;
283
426
  maxFeePerGas?: `0x${string}` | undefined;
284
427
  maxPriorityFeePerGas?: `0x${string}` | undefined;
428
+ yParity?: `0x${string}` | undefined;
429
+ blockHash?: `0x${string}` | null | undefined;
430
+ blockNumber?: `0x${string}` | null | undefined;
431
+ from?: `0x${string}` | undefined;
432
+ hash?: `0x${string}` | undefined;
433
+ input?: `0x${string}` | undefined;
434
+ nonce?: `0x${string}` | undefined;
435
+ r?: `0x${string}` | undefined;
436
+ s?: `0x${string}` | undefined;
437
+ to?: `0x${string}` | null | undefined;
438
+ transactionIndex?: `0x${string}` | null | undefined;
439
+ v?: `0x${string}` | undefined;
285
440
  accessList?: import("../../index.js").AccessList | undefined;
441
+ blobVersionedHashes?: `0x${string}`[] | undefined;
286
442
  chainId?: `0x${string}` | undefined;
287
443
  } & Omit<import("../../index.js").TransactionBase<`0x${string}`, `0x${string}`, boolean>, "typeHex"> & import("../../index.js").FeeValuesEIP1559<`0x${string}`> & {
288
444
  isSystemTx?: boolean | undefined;
@@ -290,10 +446,11 @@ export declare const formatters: {
290
446
  sourceHash: `0x${string}`;
291
447
  type: "0x7e";
292
448
  })) => ({
449
+ gas: bigint;
450
+ value: bigint;
293
451
  blockHash: `0x${string}` | null;
294
452
  blockNumber: bigint | null;
295
453
  from: `0x${string}`;
296
- gas: bigint;
297
454
  hash: `0x${string}`;
298
455
  input: `0x${string}`;
299
456
  nonce: number;
@@ -303,11 +460,12 @@ export declare const formatters: {
303
460
  transactionIndex: number | null;
304
461
  typeHex: `0x${string}` | null;
305
462
  v: bigint;
306
- value: bigint;
307
463
  gasPrice: bigint;
464
+ maxFeePerBlobGas?: undefined;
308
465
  maxFeePerGas?: undefined;
309
466
  maxPriorityFeePerGas?: undefined;
310
467
  accessList?: undefined;
468
+ blobVersionedHashes?: undefined;
311
469
  chainId?: number | undefined;
312
470
  yParity?: undefined;
313
471
  type: "legacy";
@@ -315,10 +473,11 @@ export declare const formatters: {
315
473
  mint?: undefined;
316
474
  sourceHash?: undefined;
317
475
  } | {
476
+ gas: bigint;
477
+ value: bigint;
318
478
  blockHash: `0x${string}` | null;
319
479
  blockNumber: bigint | null;
320
480
  from: `0x${string}`;
321
- gas: bigint;
322
481
  hash: `0x${string}`;
323
482
  input: `0x${string}`;
324
483
  nonce: number;
@@ -328,11 +487,12 @@ export declare const formatters: {
328
487
  transactionIndex: number | null;
329
488
  typeHex: `0x${string}` | null;
330
489
  v: bigint;
331
- value: bigint;
332
490
  gasPrice: undefined;
491
+ maxFeePerBlobGas?: undefined;
333
492
  maxFeePerGas: bigint;
334
493
  maxPriorityFeePerGas: bigint;
335
494
  accessList?: undefined;
495
+ blobVersionedHashes?: undefined;
336
496
  chainId?: number | undefined;
337
497
  yParity: number;
338
498
  type: "deposit";
@@ -356,9 +516,11 @@ export declare const formatters: {
356
516
  value: bigint;
357
517
  yParity: number;
358
518
  gasPrice: bigint;
519
+ maxFeePerBlobGas?: undefined;
359
520
  maxFeePerGas?: undefined;
360
521
  maxPriorityFeePerGas?: undefined;
361
522
  accessList: import("../../index.js").AccessList;
523
+ blobVersionedHashes?: undefined;
362
524
  chainId: number;
363
525
  type: "eip2930";
364
526
  isSystemTx?: undefined;
@@ -381,9 +543,11 @@ export declare const formatters: {
381
543
  value: bigint;
382
544
  yParity: number;
383
545
  gasPrice: undefined;
546
+ maxFeePerBlobGas?: undefined;
384
547
  maxFeePerGas: bigint;
385
548
  maxPriorityFeePerGas: bigint;
386
549
  accessList: import("../../index.js").AccessList;
550
+ blobVersionedHashes?: undefined;
387
551
  chainId: number;
388
552
  type: "eip1559";
389
553
  isSystemTx?: undefined;
@@ -406,9 +570,11 @@ export declare const formatters: {
406
570
  value: bigint;
407
571
  yParity: number;
408
572
  gasPrice: undefined;
573
+ maxFeePerBlobGas?: undefined;
409
574
  maxFeePerGas: bigint;
410
575
  maxPriorityFeePerGas: bigint;
411
576
  accessList: import("../../index.js").AccessList;
577
+ blobVersionedHashes?: undefined;
412
578
  chainId: number;
413
579
  type: "deposit";
414
580
  isSystemTx?: boolean | undefined;
@@ -431,9 +597,11 @@ export declare const formatters: {
431
597
  value: bigint;
432
598
  yParity: number;
433
599
  gasPrice: bigint;
600
+ maxFeePerBlobGas?: undefined;
434
601
  maxFeePerGas: undefined;
435
602
  maxPriorityFeePerGas: undefined;
436
603
  accessList: import("../../index.js").AccessList;
604
+ blobVersionedHashes?: undefined;
437
605
  chainId: number;
438
606
  type: "eip2930";
439
607
  isSystemTx?: undefined;
@@ -456,9 +624,11 @@ export declare const formatters: {
456
624
  value: bigint;
457
625
  yParity: number;
458
626
  gasPrice?: undefined;
627
+ maxFeePerBlobGas?: undefined;
459
628
  maxFeePerGas: bigint;
460
629
  maxPriorityFeePerGas: bigint;
461
630
  accessList: import("../../index.js").AccessList;
631
+ blobVersionedHashes?: undefined;
462
632
  chainId: number;
463
633
  type: "eip1559";
464
634
  isSystemTx?: undefined;
@@ -481,9 +651,65 @@ export declare const formatters: {
481
651
  value: bigint;
482
652
  yParity: number;
483
653
  gasPrice?: undefined;
654
+ maxFeePerBlobGas?: undefined;
655
+ maxFeePerGas: bigint;
656
+ maxPriorityFeePerGas: bigint;
657
+ accessList: import("../../index.js").AccessList;
658
+ blobVersionedHashes?: undefined;
659
+ chainId: number;
660
+ type: "deposit";
661
+ isSystemTx?: boolean | undefined;
662
+ mint?: bigint | undefined;
663
+ sourceHash: `0x${string}`;
664
+ } | {
665
+ blockHash: `0x${string}` | null;
666
+ blockNumber: bigint | null;
667
+ from: `0x${string}`;
668
+ gas: bigint;
669
+ hash: `0x${string}`;
670
+ input: `0x${string}`;
671
+ nonce: number;
672
+ r: `0x${string}`;
673
+ s: `0x${string}`;
674
+ to: `0x${string}` | null;
675
+ transactionIndex: number | null;
676
+ typeHex: `0x${string}` | null;
677
+ v: bigint;
678
+ value: bigint;
679
+ yParity: number;
680
+ gasPrice?: undefined;
681
+ maxFeePerBlobGas: bigint;
682
+ maxFeePerGas: bigint;
683
+ maxPriorityFeePerGas: bigint;
684
+ accessList: import("../../index.js").AccessList;
685
+ blobVersionedHashes: `0x${string}`[];
686
+ chainId: number;
687
+ type: "eip4844";
688
+ isSystemTx?: undefined;
689
+ mint?: undefined;
690
+ sourceHash?: undefined;
691
+ } | {
692
+ blockHash: `0x${string}` | null;
693
+ blockNumber: bigint | null;
694
+ from: `0x${string}`;
695
+ gas: bigint;
696
+ hash: `0x${string}`;
697
+ input: `0x${string}`;
698
+ nonce: number;
699
+ r: `0x${string}`;
700
+ s: `0x${string}`;
701
+ to: `0x${string}` | null;
702
+ transactionIndex: number | null;
703
+ typeHex: `0x${string}` | null;
704
+ v: bigint;
705
+ value: bigint;
706
+ yParity: number;
707
+ gasPrice?: undefined;
708
+ maxFeePerBlobGas: undefined;
484
709
  maxFeePerGas: bigint;
485
710
  maxPriorityFeePerGas: bigint;
486
711
  accessList: import("../../index.js").AccessList;
712
+ blobVersionedHashes: `0x${string}`[];
487
713
  chainId: number;
488
714
  type: "deposit";
489
715
  isSystemTx?: boolean | undefined;
@@ -495,6 +721,8 @@ export declare const formatters: {
495
721
  readonly transactionReceipt: {
496
722
  exclude: [] | undefined;
497
723
  format: (args: import("../index.js").Assign<Partial<import("../../types/rpc.js").RpcTransactionReceipt>, OpStackRpcTransactionReceiptOverrides>) => {
724
+ blobGasPrice?: bigint | undefined;
725
+ blobGasUsed?: bigint | undefined;
498
726
  blockHash: `0x${string}`;
499
727
  blockNumber: bigint;
500
728
  contractAddress: `0x${string}` | null;
@@ -1 +1 @@
1
- {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../chains/opStack/formatters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAS/C,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EACV,qBAAqB,EACrB,qCAAqC,EACrC,kBAAkB,EAEnB,MAAM,wBAAwB,CAAA;AAE/B,eAAO,MAAM,UAAU;;;;0BAID,IAAI,EAAE,GAAG,qBAAqB,EAAE;;;;;;;;;;;;;;;;;;;;;0BAGlC,IAAI,EAAE,GAAG,kBAAkB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Cb,CAAA"}
1
+ {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../../chains/opStack/formatters.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAS/C,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,kBAAkB,CAAA;AACzB,OAAO,KAAK,EACV,qBAAqB,EACrB,qCAAqC,EACrC,kBAAkB,EAEnB,MAAM,wBAAwB,CAAA;AAE/B,eAAO,MAAM,UAAU;;;;0BAID,IAAI,EAAE,GAAG,qBAAqB,EAAE;;;;;;;;;;;;;;;;;;;;;0BAGlC,IAAI,EAAE,GAAG,kBAAkB,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Cb,CAAA"}