viem 2.6.1 → 2.7.0

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