viem 2.6.1 → 2.7.1

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