viem 2.56.7 → 2.56.8

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 (186) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/_cjs/errors/version.js +1 -1
  3. package/_cjs/utils/formatters/formatter.js.map +1 -1
  4. package/_esm/errors/version.js +1 -1
  5. package/_esm/utils/formatters/formatter.js +1 -0
  6. package/_esm/utils/formatters/formatter.js.map +1 -1
  7. package/_types/celo/chainConfig.d.ts +6 -840
  8. package/_types/celo/chainConfig.d.ts.map +1 -1
  9. package/_types/celo/formatters.d.ts +4 -421
  10. package/_types/celo/formatters.d.ts.map +1 -1
  11. package/_types/chains/definitions/abstract.d.ts +4 -371
  12. package/_types/chains/definitions/abstract.d.ts.map +1 -1
  13. package/_types/chains/definitions/abstractTestnet.d.ts +4 -371
  14. package/_types/chains/definitions/abstractTestnet.d.ts.map +1 -1
  15. package/_types/chains/definitions/ancient8.d.ts +3 -226
  16. package/_types/chains/definitions/ancient8.d.ts.map +1 -1
  17. package/_types/chains/definitions/ancient8Sepolia.d.ts +3 -226
  18. package/_types/chains/definitions/ancient8Sepolia.d.ts.map +1 -1
  19. package/_types/chains/definitions/base.d.ts +6 -452
  20. package/_types/chains/definitions/base.d.ts.map +1 -1
  21. package/_types/chains/definitions/baseGoerli.d.ts +3 -226
  22. package/_types/chains/definitions/baseGoerli.d.ts.map +1 -1
  23. package/_types/chains/definitions/baseSepolia.d.ts +6 -452
  24. package/_types/chains/definitions/baseSepolia.d.ts.map +1 -1
  25. package/_types/chains/definitions/battlechain.d.ts +4 -371
  26. package/_types/chains/definitions/battlechain.d.ts.map +1 -1
  27. package/_types/chains/definitions/battlechainTestnet.d.ts +4 -371
  28. package/_types/chains/definitions/battlechainTestnet.d.ts.map +1 -1
  29. package/_types/chains/definitions/blast.d.ts +3 -226
  30. package/_types/chains/definitions/blast.d.ts.map +1 -1
  31. package/_types/chains/definitions/bob.d.ts +3 -226
  32. package/_types/chains/definitions/bob.d.ts.map +1 -1
  33. package/_types/chains/definitions/bobSepolia.d.ts +3 -226
  34. package/_types/chains/definitions/bobSepolia.d.ts.map +1 -1
  35. package/_types/chains/definitions/celo.d.ts +6 -840
  36. package/_types/chains/definitions/celo.d.ts.map +1 -1
  37. package/_types/chains/definitions/celoAlfajores.d.ts +6 -840
  38. package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -1
  39. package/_types/chains/definitions/celoSepolia.d.ts +6 -840
  40. package/_types/chains/definitions/celoSepolia.d.ts.map +1 -1
  41. package/_types/chains/definitions/codex.d.ts +3 -226
  42. package/_types/chains/definitions/codex.d.ts.map +1 -1
  43. package/_types/chains/definitions/codexTestnet.d.ts +3 -226
  44. package/_types/chains/definitions/codexTestnet.d.ts.map +1 -1
  45. package/_types/chains/definitions/dchain.d.ts +3 -226
  46. package/_types/chains/definitions/dchain.d.ts.map +1 -1
  47. package/_types/chains/definitions/dchainTestnet.d.ts +3 -226
  48. package/_types/chains/definitions/dchainTestnet.d.ts.map +1 -1
  49. package/_types/chains/definitions/elysiumTestnet.d.ts +3 -226
  50. package/_types/chains/definitions/elysiumTestnet.d.ts.map +1 -1
  51. package/_types/chains/definitions/fraxtal.d.ts +3 -226
  52. package/_types/chains/definitions/fraxtal.d.ts.map +1 -1
  53. package/_types/chains/definitions/fraxtalTestnet.d.ts +3 -226
  54. package/_types/chains/definitions/fraxtalTestnet.d.ts.map +1 -1
  55. package/_types/chains/definitions/funkiMainnet.d.ts +3 -226
  56. package/_types/chains/definitions/funkiMainnet.d.ts.map +1 -1
  57. package/_types/chains/definitions/funkiSepolia.d.ts +3 -226
  58. package/_types/chains/definitions/funkiSepolia.d.ts.map +1 -1
  59. package/_types/chains/definitions/garnet.d.ts +3 -226
  60. package/_types/chains/definitions/garnet.d.ts.map +1 -1
  61. package/_types/chains/definitions/giwaSepolia.d.ts +6 -452
  62. package/_types/chains/definitions/giwaSepolia.d.ts.map +1 -1
  63. package/_types/chains/definitions/ink.d.ts +3 -226
  64. package/_types/chains/definitions/ink.d.ts.map +1 -1
  65. package/_types/chains/definitions/inkSepolia.d.ts +3 -226
  66. package/_types/chains/definitions/inkSepolia.d.ts.map +1 -1
  67. package/_types/chains/definitions/lisk.d.ts +3 -226
  68. package/_types/chains/definitions/lisk.d.ts.map +1 -1
  69. package/_types/chains/definitions/liskSepolia.d.ts +3 -226
  70. package/_types/chains/definitions/liskSepolia.d.ts.map +1 -1
  71. package/_types/chains/definitions/megaeth.d.ts +3 -226
  72. package/_types/chains/definitions/megaeth.d.ts.map +1 -1
  73. package/_types/chains/definitions/metalL2.d.ts +3 -226
  74. package/_types/chains/definitions/metalL2.d.ts.map +1 -1
  75. package/_types/chains/definitions/mode.d.ts +3 -226
  76. package/_types/chains/definitions/mode.d.ts.map +1 -1
  77. package/_types/chains/definitions/modeTestnet.d.ts +3 -226
  78. package/_types/chains/definitions/modeTestnet.d.ts.map +1 -1
  79. package/_types/chains/definitions/optimism.d.ts +3 -226
  80. package/_types/chains/definitions/optimism.d.ts.map +1 -1
  81. package/_types/chains/definitions/optimismGoerli.d.ts +3 -226
  82. package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -1
  83. package/_types/chains/definitions/optimismSepolia.d.ts +3 -226
  84. package/_types/chains/definitions/optimismSepolia.d.ts.map +1 -1
  85. package/_types/chains/definitions/pgn.d.ts +3 -226
  86. package/_types/chains/definitions/pgn.d.ts.map +1 -1
  87. package/_types/chains/definitions/pgnTestnet.d.ts +3 -226
  88. package/_types/chains/definitions/pgnTestnet.d.ts.map +1 -1
  89. package/_types/chains/definitions/playfiAlbireo.d.ts +4 -371
  90. package/_types/chains/definitions/playfiAlbireo.d.ts.map +1 -1
  91. package/_types/chains/definitions/pyrope.d.ts +3 -226
  92. package/_types/chains/definitions/pyrope.d.ts.map +1 -1
  93. package/_types/chains/definitions/redstone.d.ts +3 -226
  94. package/_types/chains/definitions/redstone.d.ts.map +1 -1
  95. package/_types/chains/definitions/rss3.d.ts +3 -226
  96. package/_types/chains/definitions/rss3.d.ts.map +1 -1
  97. package/_types/chains/definitions/rss3Sepolia.d.ts +3 -226
  98. package/_types/chains/definitions/rss3Sepolia.d.ts.map +1 -1
  99. package/_types/chains/definitions/shape.d.ts +3 -226
  100. package/_types/chains/definitions/shape.d.ts.map +1 -1
  101. package/_types/chains/definitions/shapeSepolia.d.ts +3 -226
  102. package/_types/chains/definitions/shapeSepolia.d.ts.map +1 -1
  103. package/_types/chains/definitions/snax.d.ts +3 -226
  104. package/_types/chains/definitions/snax.d.ts.map +1 -1
  105. package/_types/chains/definitions/snaxTestnet.d.ts +3 -226
  106. package/_types/chains/definitions/snaxTestnet.d.ts.map +1 -1
  107. package/_types/chains/definitions/soneium.d.ts +3 -226
  108. package/_types/chains/definitions/soneium.d.ts.map +1 -1
  109. package/_types/chains/definitions/soneiumMinato.d.ts +3 -226
  110. package/_types/chains/definitions/soneiumMinato.d.ts.map +1 -1
  111. package/_types/chains/definitions/sophon.d.ts +4 -371
  112. package/_types/chains/definitions/sophon.d.ts.map +1 -1
  113. package/_types/chains/definitions/sophonTestnet.d.ts +4 -371
  114. package/_types/chains/definitions/sophonTestnet.d.ts.map +1 -1
  115. package/_types/chains/definitions/superseed.d.ts +3 -226
  116. package/_types/chains/definitions/superseed.d.ts.map +1 -1
  117. package/_types/chains/definitions/superseedSepolia.d.ts +3 -226
  118. package/_types/chains/definitions/superseedSepolia.d.ts.map +1 -1
  119. package/_types/chains/definitions/swellchain.d.ts +3 -226
  120. package/_types/chains/definitions/swellchain.d.ts.map +1 -1
  121. package/_types/chains/definitions/swellchainTestnet.d.ts +3 -226
  122. package/_types/chains/definitions/swellchainTestnet.d.ts.map +1 -1
  123. package/_types/chains/definitions/tempo.d.ts +6 -910
  124. package/_types/chains/definitions/tempo.d.ts.map +1 -1
  125. package/_types/chains/definitions/tempoDevnet.d.ts +6 -910
  126. package/_types/chains/definitions/tempoDevnet.d.ts.map +1 -1
  127. package/_types/chains/definitions/tempoLocalnet.d.ts +6 -910
  128. package/_types/chains/definitions/tempoLocalnet.d.ts.map +1 -1
  129. package/_types/chains/definitions/tempoModerato.d.ts +6 -910
  130. package/_types/chains/definitions/tempoModerato.d.ts.map +1 -1
  131. package/_types/chains/definitions/treasure.d.ts +4 -371
  132. package/_types/chains/definitions/treasure.d.ts.map +1 -1
  133. package/_types/chains/definitions/treasureTopaz.d.ts +4 -371
  134. package/_types/chains/definitions/treasureTopaz.d.ts.map +1 -1
  135. package/_types/chains/definitions/unichain.d.ts +3 -226
  136. package/_types/chains/definitions/unichain.d.ts.map +1 -1
  137. package/_types/chains/definitions/unichainSepolia.d.ts +3 -226
  138. package/_types/chains/definitions/unichainSepolia.d.ts.map +1 -1
  139. package/_types/chains/definitions/whitechainSepolia.d.ts +3 -226
  140. package/_types/chains/definitions/whitechainSepolia.d.ts.map +1 -1
  141. package/_types/chains/definitions/worldchain.d.ts +3 -226
  142. package/_types/chains/definitions/worldchain.d.ts.map +1 -1
  143. package/_types/chains/definitions/worldchainSepolia.d.ts +3 -226
  144. package/_types/chains/definitions/worldchainSepolia.d.ts.map +1 -1
  145. package/_types/chains/definitions/zircuit.d.ts +3 -226
  146. package/_types/chains/definitions/zircuit.d.ts.map +1 -1
  147. package/_types/chains/definitions/zircuitGarfieldTestnet.d.ts +3 -226
  148. package/_types/chains/definitions/zircuitGarfieldTestnet.d.ts.map +1 -1
  149. package/_types/chains/definitions/zksync.d.ts +4 -371
  150. package/_types/chains/definitions/zksync.d.ts.map +1 -1
  151. package/_types/chains/definitions/zksyncInMemoryNode.d.ts +4 -371
  152. package/_types/chains/definitions/zksyncInMemoryNode.d.ts.map +1 -1
  153. package/_types/chains/definitions/zksyncLocalCustomHyperchain.d.ts +4 -371
  154. package/_types/chains/definitions/zksyncLocalCustomHyperchain.d.ts.map +1 -1
  155. package/_types/chains/definitions/zksyncLocalHyperchain.d.ts +4 -371
  156. package/_types/chains/definitions/zksyncLocalHyperchain.d.ts.map +1 -1
  157. package/_types/chains/definitions/zksyncLocalNode.d.ts +4 -371
  158. package/_types/chains/definitions/zksyncLocalNode.d.ts.map +1 -1
  159. package/_types/chains/definitions/zksyncSepoliaTestnet.d.ts +4 -371
  160. package/_types/chains/definitions/zksyncSepoliaTestnet.d.ts.map +1 -1
  161. package/_types/chains/definitions/zora.d.ts +3 -226
  162. package/_types/chains/definitions/zora.d.ts.map +1 -1
  163. package/_types/chains/definitions/zoraSepolia.d.ts +3 -226
  164. package/_types/chains/definitions/zoraSepolia.d.ts.map +1 -1
  165. package/_types/chains/definitions/zoraTestnet.d.ts +3 -226
  166. package/_types/chains/definitions/zoraTestnet.d.ts.map +1 -1
  167. package/_types/errors/version.d.ts +1 -1
  168. package/_types/op-stack/chainConfig.d.ts +3 -226
  169. package/_types/op-stack/chainConfig.d.ts.map +1 -1
  170. package/_types/op-stack/formatters.d.ts +5 -228
  171. package/_types/op-stack/formatters.d.ts.map +1 -1
  172. package/_types/tempo/chainConfig.d.ts +4 -457
  173. package/_types/tempo/chainConfig.d.ts.map +1 -1
  174. package/_types/utils/formatters/block.d.ts +1 -1
  175. package/_types/utils/formatters/formatter.d.ts +1 -2
  176. package/_types/utils/formatters/formatter.d.ts.map +1 -1
  177. package/_types/utils/formatters/transaction.d.ts +1 -1
  178. package/_types/utils/formatters/transactionReceipt.d.ts +1 -1
  179. package/_types/utils/formatters/transactionRequest.d.ts +1 -1
  180. package/_types/zksync/chainConfig.d.ts +4 -371
  181. package/_types/zksync/chainConfig.d.ts.map +1 -1
  182. package/_types/zksync/formatters.d.ts +6 -374
  183. package/_types/zksync/formatters.d.ts.map +1 -1
  184. package/errors/version.ts +1 -1
  185. package/package.json +1 -1
  186. package/utils/formatters/formatter.ts +4 -4
@@ -1,392 +1,24 @@
1
- import type { ZksyncRpcBlock } from './types/block.js';
2
- import type { ZksyncL2ToL1Log, ZksyncLog } from './types/log.js';
3
- import type { ZksyncRpcTransaction, ZksyncRpcTransactionReceipt, ZksyncTransaction, ZksyncTransactionRequest } from './types/transaction.js';
1
+ import type { ZksyncBlock, ZksyncRpcBlock } from './types/block.js';
2
+ import type { ZksyncRpcTransaction, ZksyncRpcTransactionReceipt, ZksyncRpcTransactionRequest, ZksyncTransaction, ZksyncTransactionReceipt, ZksyncTransactionRequest } from './types/transaction.js';
4
3
  export declare const formatters: {
5
4
  readonly block: {
6
5
  exclude: [] | undefined;
7
- format: (args: ZksyncRpcBlock, action?: string | undefined) => {
8
- baseFeePerGas: bigint | null;
9
- blobGasUsed: bigint;
10
- difficulty: bigint;
11
- excessBlobGas: bigint;
12
- extraData: import("../index.js").Hex;
13
- gasLimit: bigint;
14
- gasUsed: bigint;
15
- hash: `0x${string}` | null;
16
- logsBloom: `0x${string}` | null;
17
- miner: import("abitype").Address;
18
- mixHash: import("../index.js").Hash;
19
- nonce: `0x${string}` | null;
20
- number: bigint | null;
21
- parentBeaconBlockRoot?: `0x${string}` | undefined;
22
- parentHash: import("../index.js").Hash;
23
- receiptsRoot: import("../index.js").Hex;
24
- sealFields: import("../index.js").Hex[];
25
- sha3Uncles: import("../index.js").Hash;
26
- size: bigint;
27
- stateRoot: import("../index.js").Hash;
28
- timestamp: bigint;
29
- totalDifficulty: bigint | null;
30
- transactions: `0x${string}`[] | ZksyncTransaction<boolean>[];
31
- transactionsRoot: import("../index.js").Hash;
32
- uncles: import("../index.js").Hash[];
33
- withdrawals?: import("../index.js").Withdrawal[] | undefined | undefined;
34
- withdrawalsRoot?: `0x${string}` | undefined;
35
- l1BatchNumber: bigint | null;
36
- l1BatchTimestamp: bigint | null;
37
- } & {};
6
+ format: (args: ZksyncRpcBlock, action?: string | undefined) => ZksyncBlock;
38
7
  type: "block";
39
8
  };
40
9
  readonly transaction: {
41
10
  exclude: [] | undefined;
42
- format: (args: ZksyncRpcTransaction, action?: string | undefined) => ({
43
- r: import("../index.js").Hex;
44
- s: import("../index.js").Hex;
45
- v: bigint;
46
- to: import("abitype").Address | null;
47
- from: import("abitype").Address;
48
- gas: bigint;
49
- nonce: number;
50
- value: bigint;
51
- blockHash: `0x${string}` | null;
52
- blockNumber: bigint | null;
53
- blockTimestamp?: bigint | undefined;
54
- hash: import("../index.js").Hash;
55
- input: import("../index.js").Hex;
56
- transactionIndex: number | null;
57
- typeHex: import("../index.js").Hex | null;
58
- accessList?: undefined | undefined;
59
- authorizationList?: undefined | undefined;
60
- blobVersionedHashes?: undefined | undefined;
61
- chainId?: number | undefined;
62
- yParity?: undefined | undefined;
63
- type: "legacy";
64
- gasPrice: bigint;
65
- maxFeePerBlobGas?: undefined | undefined;
66
- maxFeePerGas?: undefined | undefined;
67
- maxPriorityFeePerGas?: undefined | undefined;
68
- l1BatchNumber: bigint | null;
69
- l1BatchTxIndex: bigint | null;
70
- } | {
71
- blockHash: `0x${string}` | null;
72
- blockNumber: bigint | null;
73
- blockTimestamp?: bigint | undefined;
74
- from: import("abitype").Address;
75
- gas: bigint;
76
- hash: import("../index.js").Hash;
77
- input: import("../index.js").Hex;
78
- nonce: number;
79
- r: import("../index.js").Hex;
80
- s: import("../index.js").Hex;
81
- to: import("abitype").Address | null;
82
- transactionIndex: number | null;
83
- typeHex: import("../index.js").Hex | null;
84
- v: bigint;
85
- value: bigint;
86
- yParity: number;
87
- accessList: import("../index.js").AccessList;
88
- authorizationList?: undefined | undefined;
89
- blobVersionedHashes?: undefined | undefined;
90
- chainId: number;
91
- type: "eip2930";
92
- gasPrice: bigint;
93
- maxFeePerBlobGas?: undefined | undefined;
94
- maxFeePerGas?: undefined | undefined;
95
- maxPriorityFeePerGas?: undefined | undefined;
96
- l1BatchNumber: bigint | null;
97
- l1BatchTxIndex: bigint | null;
98
- } | {
99
- blockHash: `0x${string}` | null;
100
- blockNumber: bigint | null;
101
- blockTimestamp?: bigint | undefined;
102
- from: import("abitype").Address;
103
- gas: bigint;
104
- hash: import("../index.js").Hash;
105
- input: import("../index.js").Hex;
106
- nonce: number;
107
- r: import("../index.js").Hex;
108
- s: import("../index.js").Hex;
109
- to: import("abitype").Address | null;
110
- transactionIndex: number | null;
111
- typeHex: import("../index.js").Hex | null;
112
- v: bigint;
113
- value: bigint;
114
- yParity: number;
115
- accessList: import("../index.js").AccessList;
116
- authorizationList?: undefined | undefined;
117
- blobVersionedHashes?: undefined | undefined;
118
- chainId: number;
119
- type: "eip1559";
120
- gasPrice?: undefined | undefined;
121
- maxFeePerBlobGas?: undefined | undefined;
122
- maxFeePerGas: bigint;
123
- maxPriorityFeePerGas: bigint;
124
- l1BatchNumber: bigint | null;
125
- l1BatchTxIndex: bigint | null;
126
- } | {
127
- blockHash: `0x${string}` | null;
128
- blockNumber: bigint | null;
129
- blockTimestamp?: bigint | undefined;
130
- from: import("abitype").Address;
131
- gas: bigint;
132
- hash: import("../index.js").Hash;
133
- input: import("../index.js").Hex;
134
- nonce: number;
135
- r: import("../index.js").Hex;
136
- s: import("../index.js").Hex;
137
- to: import("abitype").Address | null;
138
- transactionIndex: number | null;
139
- typeHex: import("../index.js").Hex | null;
140
- v: bigint;
141
- value: bigint;
142
- yParity: number;
143
- accessList: import("../index.js").AccessList;
144
- authorizationList?: undefined | undefined;
145
- blobVersionedHashes: readonly import("../index.js").Hex[];
146
- chainId: number;
147
- type: "eip4844";
148
- gasPrice?: undefined | undefined;
149
- maxFeePerBlobGas: bigint;
150
- maxFeePerGas: bigint;
151
- maxPriorityFeePerGas: bigint;
152
- l1BatchNumber: bigint | null;
153
- l1BatchTxIndex: bigint | null;
154
- } | {
155
- blockHash: `0x${string}` | null;
156
- blockNumber: bigint | null;
157
- blockTimestamp?: bigint | undefined;
158
- from: import("abitype").Address;
159
- gas: bigint;
160
- hash: import("../index.js").Hash;
161
- input: import("../index.js").Hex;
162
- nonce: number;
163
- r: import("../index.js").Hex;
164
- s: import("../index.js").Hex;
165
- to: import("abitype").Address | null;
166
- transactionIndex: number | null;
167
- typeHex: import("../index.js").Hex | null;
168
- v: bigint;
169
- value: bigint;
170
- yParity: number;
171
- accessList: import("../index.js").AccessList;
172
- authorizationList: import("../index.js").SignedAuthorizationList;
173
- blobVersionedHashes?: undefined | undefined;
174
- chainId: number;
175
- type: "eip7702";
176
- gasPrice?: undefined | undefined;
177
- maxFeePerBlobGas?: undefined | undefined;
178
- maxFeePerGas: bigint;
179
- maxPriorityFeePerGas: bigint;
180
- l1BatchNumber: bigint | null;
181
- l1BatchTxIndex: bigint | null;
182
- } | {
183
- blockHash: `0x${string}` | null;
184
- blockNumber: bigint | null;
185
- blockTimestamp?: bigint | undefined;
186
- from: import("abitype").Address;
187
- gas: bigint;
188
- hash: import("../index.js").Hash;
189
- input: import("../index.js").Hex;
190
- nonce: number;
191
- r: import("../index.js").Hex;
192
- s: import("../index.js").Hex;
193
- to: import("abitype").Address | null;
194
- transactionIndex: number | null;
195
- typeHex: import("../index.js").Hex | null;
196
- v: bigint;
197
- value: bigint;
198
- yParity: number;
199
- l1BatchNumber: bigint | null;
200
- l1BatchTxIndex: bigint | null;
201
- gasPrice?: undefined | undefined;
202
- maxFeePerBlobGas?: undefined | undefined;
203
- maxFeePerGas: bigint;
204
- maxPriorityFeePerGas: bigint;
205
- type: "priority";
206
- } | {
207
- blockHash: `0x${string}` | null;
208
- blockNumber: bigint | null;
209
- blockTimestamp?: bigint | undefined;
210
- from: import("abitype").Address;
211
- gas: bigint;
212
- hash: import("../index.js").Hash;
213
- input: import("../index.js").Hex;
214
- nonce: number;
215
- r: import("../index.js").Hex;
216
- s: import("../index.js").Hex;
217
- to: import("abitype").Address | null;
218
- transactionIndex: number | null;
219
- typeHex: import("../index.js").Hex | null;
220
- v: bigint;
221
- value: bigint;
222
- yParity: number;
223
- l1BatchNumber: bigint | null;
224
- l1BatchTxIndex: bigint | null;
225
- gasPrice?: undefined | undefined;
226
- maxFeePerBlobGas?: undefined | undefined;
227
- maxFeePerGas: bigint;
228
- maxPriorityFeePerGas: bigint;
229
- type: "eip712" | "priority";
230
- }) & {};
11
+ format: (args: ZksyncRpcTransaction, action?: string | undefined) => ZksyncTransaction;
231
12
  type: "transaction";
232
13
  };
233
14
  readonly transactionReceipt: {
234
15
  exclude: [] | undefined;
235
- format: (args: ZksyncRpcTransactionReceipt, action?: string | undefined) => {
236
- type: import("./types/transaction.js").ZksyncTransactionType;
237
- contractAddress: import("abitype").Address | null | undefined;
238
- to: import("abitype").Address | null;
239
- from: import("abitype").Address;
240
- blockHash: import("../index.js").Hash;
241
- blockNumber: bigint;
242
- blockTimestamp?: bigint | undefined;
243
- transactionIndex: number;
244
- status: "success" | "reverted";
245
- transactionHash: import("../index.js").Hash;
246
- logsBloom: import("../index.js").Hex;
247
- blobGasUsed?: bigint | undefined;
248
- gasUsed: bigint;
249
- blobGasPrice?: bigint | undefined;
250
- cumulativeGasUsed: bigint;
251
- effectiveGasPrice: bigint;
252
- root?: `0x${string}` | undefined;
253
- l1BatchNumber: bigint | null;
254
- l1BatchTxIndex: bigint | null;
255
- logs: ZksyncLog[];
256
- l2ToL1Logs: ZksyncL2ToL1Log[];
257
- } & {};
16
+ format: (args: ZksyncRpcTransactionReceipt, action?: string | undefined) => ZksyncTransactionReceipt;
258
17
  type: "transactionReceipt";
259
18
  };
260
19
  readonly transactionRequest: {
261
20
  exclude: ("paymaster" | "gasPerPubdata" | "factoryDeps" | "paymasterInput" | "customSignature")[] | undefined;
262
- format: (args: ZksyncTransactionRequest, action?: string | undefined) => ({
263
- data?: `0x${string}` | undefined;
264
- from?: `0x${string}` | undefined;
265
- gas?: `0x${string}` | undefined;
266
- nonce?: `0x${string}` | undefined;
267
- to?: `0x${string}` | null | undefined;
268
- type?: "0x0" | undefined;
269
- value?: `0x${string}` | undefined;
270
- gasPrice?: `0x${string}` | undefined;
271
- maxFeePerBlobGas?: undefined | undefined;
272
- maxFeePerGas?: undefined | undefined;
273
- maxPriorityFeePerGas?: undefined | undefined;
274
- blobs?: undefined;
275
- blobVersionedHashes?: undefined;
276
- kzg?: undefined;
277
- accessList?: undefined;
278
- sidecars?: undefined;
279
- authorizationList?: undefined;
280
- eip712Meta?: undefined | undefined;
281
- } | {
282
- data?: `0x${string}` | undefined;
283
- from?: `0x${string}` | undefined;
284
- gas?: `0x${string}` | undefined;
285
- nonce?: `0x${string}` | undefined;
286
- to?: `0x${string}` | null | undefined;
287
- type?: "0x1" | undefined;
288
- value?: `0x${string}` | undefined;
289
- gasPrice?: `0x${string}` | undefined;
290
- maxFeePerBlobGas?: undefined | undefined;
291
- maxFeePerGas?: undefined | undefined;
292
- maxPriorityFeePerGas?: undefined | undefined;
293
- accessList?: import("../index.js").AccessList | undefined;
294
- blobs?: undefined;
295
- blobVersionedHashes?: undefined;
296
- kzg?: undefined;
297
- sidecars?: undefined;
298
- authorizationList?: undefined;
299
- eip712Meta?: undefined | undefined;
300
- } | {
301
- data?: `0x${string}` | undefined;
302
- from?: `0x${string}` | undefined;
303
- gas?: `0x${string}` | undefined;
304
- nonce?: `0x${string}` | undefined;
305
- to?: `0x${string}` | null | undefined;
306
- type?: "0x2" | undefined;
307
- value?: `0x${string}` | undefined;
308
- gasPrice?: undefined | undefined;
309
- maxFeePerBlobGas?: undefined | undefined;
310
- maxFeePerGas?: `0x${string}` | undefined;
311
- maxPriorityFeePerGas?: `0x${string}` | undefined;
312
- accessList?: import("../index.js").AccessList | undefined;
313
- blobs?: undefined;
314
- blobVersionedHashes?: undefined;
315
- kzg?: undefined;
316
- sidecars?: undefined;
317
- authorizationList?: undefined;
318
- eip712Meta?: undefined | undefined;
319
- } | {
320
- type?: "0x3" | undefined;
321
- data?: `0x${string}` | undefined;
322
- from?: `0x${string}` | undefined;
323
- gas?: `0x${string}` | undefined;
324
- nonce?: `0x${string}` | undefined;
325
- value?: `0x${string}` | undefined;
326
- to: `0x${string}` | null;
327
- gasPrice?: undefined | undefined;
328
- maxFeePerBlobGas?: `0x${string}` | undefined;
329
- maxFeePerGas?: `0x${string}` | undefined;
330
- maxPriorityFeePerGas?: `0x${string}` | undefined;
331
- accessList?: import("../index.js").AccessList | undefined;
332
- sidecars?: readonly import("../index.js").BlobSidecar<`0x${string}`>[] | undefined;
333
- blobs?: readonly `0x${string}`[] | readonly import("../index.js").ByteArray[] | undefined;
334
- blobVersionedHashes: readonly import("../index.js").Hex[];
335
- kzg?: undefined;
336
- authorizationList?: undefined;
337
- eip712Meta?: undefined | undefined;
338
- } | {
339
- type?: "0x3" | undefined;
340
- data?: `0x${string}` | undefined;
341
- from?: `0x${string}` | undefined;
342
- gas?: `0x${string}` | undefined;
343
- nonce?: `0x${string}` | undefined;
344
- value?: `0x${string}` | undefined;
345
- to: `0x${string}` | null;
346
- gasPrice?: undefined | undefined;
347
- maxFeePerBlobGas?: `0x${string}` | undefined;
348
- maxFeePerGas?: `0x${string}` | undefined;
349
- maxPriorityFeePerGas?: `0x${string}` | undefined;
350
- accessList?: import("../index.js").AccessList | undefined;
351
- sidecars?: readonly import("../index.js").BlobSidecar<`0x${string}`>[] | undefined;
352
- blobs: readonly import("../index.js").Hex[] | readonly import("../index.js").ByteArray[];
353
- blobVersionedHashes?: readonly `0x${string}`[] | undefined;
354
- kzg?: import("../index.js").Kzg | undefined;
355
- authorizationList?: undefined;
356
- eip712Meta?: undefined | undefined;
357
- } | {
358
- type?: "0x4" | undefined;
359
- gasPrice?: undefined | undefined;
360
- maxFeePerBlobGas?: undefined | undefined;
361
- maxFeePerGas?: `0x${string}` | undefined;
362
- maxPriorityFeePerGas?: `0x${string}` | undefined;
363
- to?: `0x${string}` | null | undefined;
364
- data?: `0x${string}` | undefined;
365
- from?: `0x${string}` | undefined;
366
- gas?: `0x${string}` | undefined;
367
- nonce?: `0x${string}` | undefined;
368
- value?: `0x${string}` | undefined;
369
- accessList?: import("../index.js").AccessList | undefined;
370
- authorizationList?: import("../index.js").RpcAuthorizationList | undefined;
371
- blobs?: undefined;
372
- blobVersionedHashes?: undefined;
373
- kzg?: undefined;
374
- sidecars?: undefined;
375
- eip712Meta?: undefined | undefined;
376
- } | {
377
- data?: `0x${string}` | undefined;
378
- from?: `0x${string}` | undefined;
379
- gas?: `0x${string}` | undefined;
380
- nonce?: `0x${string}` | undefined;
381
- to?: `0x${string}` | null | undefined;
382
- type: "0xff" | "0x71";
383
- value?: `0x${string}` | undefined;
384
- gasPrice?: undefined | undefined;
385
- maxFeePerBlobGas?: undefined | undefined;
386
- maxFeePerGas?: `0x${string}` | undefined;
387
- maxPriorityFeePerGas?: `0x${string}` | undefined;
388
- eip712Meta: import("./index.js").ZkSyncEip712Meta;
389
- }) & {
21
+ format: (args: ZksyncTransactionRequest, action?: string | undefined) => ZksyncRpcTransactionRequest & {
390
22
  paymaster: never;
391
23
  gasPerPubdata: never;
392
24
  factoryDeps: never;
@@ -1 +1 @@
1
- {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../zksync/formatters.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACnE,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAChE,OAAO,KAAK,EACV,oBAAoB,EACpB,2BAA2B,EAE3B,iBAAiB,EAEjB,wBAAwB,EACzB,MAAM,wBAAwB,CAAA;AAE/B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4Ha,CAAA"}
1
+ {"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../zksync/formatters.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAEnE,OAAO,KAAK,EACV,oBAAoB,EACpB,2BAA2B,EAC3B,2BAA2B,EAC3B,iBAAiB,EACjB,wBAAwB,EACxB,wBAAwB,EACzB,MAAM,wBAAwB,CAAA;AAE/B,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4Ha,CAAA"}
package/errors/version.ts CHANGED
@@ -1 +1 @@
1
- export const version = '2.56.7'
1
+ export const version = '2.56.8'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "viem",
3
3
  "description": "TypeScript Interface for Ethereum",
4
- "version": "2.56.7",
4
+ "version": "2.56.8",
5
5
  "main": "./_cjs/index.js",
6
6
  "module": "./_esm/index.js",
7
7
  "types": "./_types/index.d.ts",
@@ -1,5 +1,4 @@
1
1
  import type { ErrorType } from '../../errors/utils.js'
2
- import type { Prettify } from '../../types/utils.js'
3
2
 
4
3
  export type DefineFormatterErrorType = ErrorType
5
4
 
@@ -30,12 +29,13 @@ export function defineFormatter<type extends string, parameters, returnType>(
30
29
  delete (formatted as any)[key]
31
30
  }
32
31
  }
32
+ // Preserve named return types so exported chains can emit portable declarations.
33
33
  return {
34
34
  ...formatted,
35
35
  ...overrides(args, action),
36
- } as Prettify<returnTypeOverride> & {
37
- [_key in exclude[number]]: never
38
- }
36
+ } as exclude[number] extends never
37
+ ? returnTypeOverride
38
+ : returnTypeOverride & { [_key in exclude[number]]: never }
39
39
  },
40
40
  type,
41
41
  }