viem 2.13.7 → 2.13.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (558) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/_cjs/accounts/hdKeyToAccount.js.map +1 -1
  3. package/_cjs/actions/public/call.js.map +1 -1
  4. package/_cjs/actions/public/estimateGas.js.map +1 -1
  5. package/_cjs/actions/public/getBlockNumber.js.map +1 -1
  6. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  7. package/_cjs/actions/wallet/signTypedData.js.map +1 -1
  8. package/_cjs/celo/formatters.js +1 -2
  9. package/_cjs/celo/formatters.js.map +1 -1
  10. package/_cjs/celo/index.js.map +1 -1
  11. package/_cjs/celo/utils.js.map +1 -1
  12. package/_cjs/chains/definitions/ham.js +27 -0
  13. package/_cjs/chains/definitions/ham.js.map +1 -0
  14. package/_cjs/chains/definitions/kakarotSepolia.js +1 -1
  15. package/_cjs/chains/definitions/kakarotSepolia.js.map +1 -1
  16. package/_cjs/chains/definitions/optimism.js +5 -0
  17. package/_cjs/chains/definitions/optimism.js.map +1 -1
  18. package/_cjs/chains/definitions/redbellyTestnet.js +27 -0
  19. package/_cjs/chains/definitions/redbellyTestnet.js.map +1 -0
  20. package/_cjs/chains/definitions/sei.js +1 -0
  21. package/_cjs/chains/definitions/sei.js.map +1 -1
  22. package/_cjs/chains/definitions/xai.js +28 -0
  23. package/_cjs/chains/definitions/xai.js.map +1 -0
  24. package/_cjs/chains/definitions/xaiTestnet.js +22 -0
  25. package/_cjs/chains/definitions/xaiTestnet.js.map +1 -0
  26. package/_cjs/chains/index.js +12 -4
  27. package/_cjs/chains/index.js.map +1 -1
  28. package/_cjs/clients/createClient.js +2 -2
  29. package/_cjs/clients/createClient.js.map +1 -1
  30. package/_cjs/clients/decorators/public.js.map +1 -1
  31. package/_cjs/clients/decorators/wallet.js.map +1 -1
  32. package/_cjs/clients/transports/fallback.js.map +1 -1
  33. package/_cjs/clients/transports/http.js.map +1 -1
  34. package/_cjs/constants/abis.js.map +1 -1
  35. package/_cjs/constants/blob.js +4 -4
  36. package/_cjs/constants/blob.js.map +1 -1
  37. package/_cjs/constants/kzg.js +1 -3
  38. package/_cjs/constants/kzg.js.map +1 -1
  39. package/_cjs/errors/abi.js +1 -13
  40. package/_cjs/errors/abi.js.map +1 -1
  41. package/_cjs/errors/base.js +1 -1
  42. package/_cjs/errors/base.js.map +1 -1
  43. package/_cjs/errors/ccip.js.map +1 -1
  44. package/_cjs/errors/stateOverride.js.map +1 -1
  45. package/_cjs/errors/version.js +1 -1
  46. package/_cjs/experimental/eip5792/actions/getCapabilities.js +2 -2
  47. package/_cjs/experimental/eip5792/actions/getCapabilities.js.map +1 -1
  48. package/_cjs/experimental/eip5792/actions/sendCalls.js +2 -2
  49. package/_cjs/experimental/eip5792/actions/sendCalls.js.map +1 -1
  50. package/_cjs/index.js +6 -4
  51. package/_cjs/index.js.map +1 -1
  52. package/_cjs/node/trustedSetups.js +1 -2
  53. package/_cjs/node/trustedSetups.js.map +1 -1
  54. package/_cjs/op-stack/abis.js +1 -458
  55. package/_cjs/op-stack/abis.js.map +1 -1
  56. package/_cjs/op-stack/actions/buildProveWithdrawal.js.map +1 -1
  57. package/_cjs/op-stack/actions/estimateDepositTransactionGas.js +4 -3
  58. package/_cjs/op-stack/actions/estimateDepositTransactionGas.js.map +1 -1
  59. package/_cjs/op-stack/actions/estimateFinalizeWithdrawalGas.js +4 -3
  60. package/_cjs/op-stack/actions/estimateFinalizeWithdrawalGas.js.map +1 -1
  61. package/_cjs/op-stack/actions/estimateInitiateWithdrawalGas.js +4 -3
  62. package/_cjs/op-stack/actions/estimateInitiateWithdrawalGas.js.map +1 -1
  63. package/_cjs/op-stack/actions/estimateProveWithdrawalGas.js +4 -3
  64. package/_cjs/op-stack/actions/estimateProveWithdrawalGas.js.map +1 -1
  65. package/_cjs/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  66. package/_cjs/op-stack/index.js +15 -2
  67. package/_cjs/op-stack/index.js.map +1 -1
  68. package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
  69. package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
  70. package/_cjs/utils/abi/encodeDeployData.js.map +1 -1
  71. package/_cjs/utils/abi/getAbiItem.js.map +1 -1
  72. package/_cjs/utils/address/getAddress.js +5 -5
  73. package/_cjs/utils/address/getAddress.js.map +1 -1
  74. package/_cjs/utils/address/isAddress.js.map +1 -1
  75. package/_cjs/utils/blob/toBlobs.js.map +1 -1
  76. package/_cjs/utils/buildRequest.js.map +1 -1
  77. package/_cjs/utils/ccip.js.map +1 -1
  78. package/_cjs/utils/cursor.js.map +1 -1
  79. package/_cjs/utils/encoding/fromRlp.js +1 -9
  80. package/_cjs/utils/encoding/fromRlp.js.map +1 -1
  81. package/_cjs/utils/ens/avatar/utils.js.map +1 -1
  82. package/_cjs/utils/ens/errors.js.map +1 -1
  83. package/_cjs/utils/observe.js.map +1 -1
  84. package/_cjs/utils/promise/createBatchScheduler.js.map +1 -1
  85. package/_cjs/utils/promise/withCache.js.map +1 -1
  86. package/_cjs/utils/promise/withTimeout.js.map +1 -1
  87. package/_cjs/utils/rpc/id.js +1 -2
  88. package/_cjs/utils/rpc/id.js.map +1 -1
  89. package/_cjs/utils/rpc/ipc.js.map +1 -1
  90. package/_cjs/utils/stateOverride.js.map +1 -1
  91. package/_cjs/utils/transaction/parseTransaction.js.map +1 -1
  92. package/_cjs/utils/transaction/serializeTransaction.js +8 -5
  93. package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
  94. package/_cjs/zksync/actions/deployContract.js.map +1 -1
  95. package/_cjs/zksync/actions/estimateGasL1ToL2.js +2 -2
  96. package/_cjs/zksync/actions/estimateGasL1ToL2.js.map +1 -1
  97. package/_cjs/zksync/actions/getAllBalances.js +2 -2
  98. package/_cjs/zksync/actions/getAllBalances.js.map +1 -1
  99. package/_cjs/zksync/actions/getL1Allowance.js +2 -2
  100. package/_cjs/zksync/actions/getL1Allowance.js.map +1 -1
  101. package/_cjs/zksync/actions/getL1Balance.js +2 -2
  102. package/_cjs/zksync/actions/getL1Balance.js.map +1 -1
  103. package/_cjs/zksync/actions/getL1TokenBalance.js +2 -2
  104. package/_cjs/zksync/actions/getL1TokenBalance.js.map +1 -1
  105. package/_cjs/zksync/actions/sendEip712Transaction.js +7 -7
  106. package/_cjs/zksync/actions/sendEip712Transaction.js.map +1 -1
  107. package/_cjs/zksync/actions/sendTransaction.js +4 -4
  108. package/_cjs/zksync/actions/sendTransaction.js.map +1 -1
  109. package/_cjs/zksync/constants/contract.js +1 -2
  110. package/_cjs/zksync/constants/contract.js.map +1 -1
  111. package/_cjs/zksync/decorators/eip712.js.map +1 -1
  112. package/_cjs/zksync/index.js.map +1 -1
  113. package/_cjs/zksync/serializers.js.map +1 -1
  114. package/_cjs/zksync/utils/abi/encodeDeployData.js.map +1 -1
  115. package/_cjs/zksync/utils/assertEip712Request.js.map +1 -1
  116. package/_cjs/zksync/utils/hashBytecode.js.map +1 -1
  117. package/_esm/accounts/hdKeyToAccount.js.map +1 -1
  118. package/_esm/actions/public/call.js +1 -0
  119. package/_esm/actions/public/call.js.map +1 -1
  120. package/_esm/actions/public/estimateGas.js.map +1 -1
  121. package/_esm/actions/public/getBlockNumber.js +2 -1
  122. package/_esm/actions/public/getBlockNumber.js.map +1 -1
  123. package/_esm/actions/test/sendUnsignedTransaction.js +2 -2
  124. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  125. package/_esm/actions/wallet/signTypedData.js.map +1 -1
  126. package/_esm/celo/formatters.js +1 -2
  127. package/_esm/celo/formatters.js.map +1 -1
  128. package/_esm/celo/index.js +1 -1
  129. package/_esm/celo/index.js.map +1 -1
  130. package/_esm/celo/utils.js +1 -0
  131. package/_esm/celo/utils.js.map +1 -1
  132. package/_esm/chains/definitions/ham.js +24 -0
  133. package/_esm/chains/definitions/ham.js.map +1 -0
  134. package/_esm/chains/definitions/kakarotSepolia.js +1 -1
  135. package/_esm/chains/definitions/kakarotSepolia.js.map +1 -1
  136. package/_esm/chains/definitions/optimism.js +5 -0
  137. package/_esm/chains/definitions/optimism.js.map +1 -1
  138. package/_esm/chains/definitions/redbellyTestnet.js +24 -0
  139. package/_esm/chains/definitions/redbellyTestnet.js.map +1 -0
  140. package/_esm/chains/definitions/sei.js +1 -0
  141. package/_esm/chains/definitions/sei.js.map +1 -1
  142. package/_esm/chains/definitions/xai.js +25 -0
  143. package/_esm/chains/definitions/xai.js.map +1 -0
  144. package/_esm/chains/definitions/xaiTestnet.js +19 -0
  145. package/_esm/chains/definitions/xaiTestnet.js.map +1 -0
  146. package/_esm/chains/index.js +4 -0
  147. package/_esm/chains/index.js.map +1 -1
  148. package/_esm/clients/createClient.js +1 -1
  149. package/_esm/clients/createClient.js.map +1 -1
  150. package/_esm/clients/decorators/public.js.map +1 -1
  151. package/_esm/clients/decorators/wallet.js.map +1 -1
  152. package/_esm/clients/transports/fallback.js +1 -0
  153. package/_esm/clients/transports/fallback.js.map +1 -1
  154. package/_esm/clients/transports/http.js.map +1 -1
  155. package/_esm/constants/abis.js +1 -0
  156. package/_esm/constants/abis.js.map +1 -1
  157. package/_esm/constants/blob.js +1 -1
  158. package/_esm/constants/blob.js.map +1 -1
  159. package/_esm/constants/kzg.js +0 -4
  160. package/_esm/constants/kzg.js.map +1 -1
  161. package/_esm/errors/abi.js +0 -11
  162. package/_esm/errors/abi.js.map +1 -1
  163. package/_esm/errors/base.js +1 -1
  164. package/_esm/errors/base.js.map +1 -1
  165. package/_esm/errors/ccip.js.map +1 -1
  166. package/_esm/errors/stateOverride.js +1 -0
  167. package/_esm/errors/stateOverride.js.map +1 -1
  168. package/_esm/errors/version.js +1 -1
  169. package/_esm/experimental/eip5792/actions/getCapabilities.js +1 -1
  170. package/_esm/experimental/eip5792/actions/getCapabilities.js.map +1 -1
  171. package/_esm/experimental/eip5792/actions/sendCalls.js +1 -1
  172. package/_esm/experimental/eip5792/actions/sendCalls.js.map +1 -1
  173. package/_esm/index.js +4 -3
  174. package/_esm/index.js.map +1 -1
  175. package/_esm/node/trustedSetups.js +0 -1
  176. package/_esm/node/trustedSetups.js.map +1 -1
  177. package/_esm/node/trustedSetups_cjs.js +0 -1
  178. package/_esm/node/trustedSetups_cjs.js.map +1 -1
  179. package/_esm/op-stack/abis.js +0 -457
  180. package/_esm/op-stack/abis.js.map +1 -1
  181. package/_esm/op-stack/actions/buildProveWithdrawal.js +1 -0
  182. package/_esm/op-stack/actions/buildProveWithdrawal.js.map +1 -1
  183. package/_esm/op-stack/actions/estimateDepositTransactionGas.js +7 -3
  184. package/_esm/op-stack/actions/estimateDepositTransactionGas.js.map +1 -1
  185. package/_esm/op-stack/actions/estimateFinalizeWithdrawalGas.js +7 -3
  186. package/_esm/op-stack/actions/estimateFinalizeWithdrawalGas.js.map +1 -1
  187. package/_esm/op-stack/actions/estimateInitiateWithdrawalGas.js +7 -3
  188. package/_esm/op-stack/actions/estimateInitiateWithdrawalGas.js.map +1 -1
  189. package/_esm/op-stack/actions/estimateProveWithdrawalGas.js +7 -3
  190. package/_esm/op-stack/actions/estimateProveWithdrawalGas.js.map +1 -1
  191. package/_esm/op-stack/actions/getWithdrawalStatus.js +1 -1
  192. package/_esm/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  193. package/_esm/op-stack/index.js +0 -1
  194. package/_esm/op-stack/index.js.map +1 -1
  195. package/_esm/utils/abi/decodeAbiParameters.js +1 -1
  196. package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
  197. package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
  198. package/_esm/utils/abi/encodeDeployData.js.map +1 -1
  199. package/_esm/utils/abi/getAbiItem.js +3 -1
  200. package/_esm/utils/abi/getAbiItem.js.map +1 -1
  201. package/_esm/utils/address/getAddress.js +1 -1
  202. package/_esm/utils/address/getAddress.js.map +1 -1
  203. package/_esm/utils/address/isAddress.js +1 -0
  204. package/_esm/utils/address/isAddress.js.map +1 -1
  205. package/_esm/utils/blob/toBlobs.js.map +1 -1
  206. package/_esm/utils/buildRequest.js +1 -0
  207. package/_esm/utils/buildRequest.js.map +1 -1
  208. package/_esm/utils/ccip.js +1 -1
  209. package/_esm/utils/ccip.js.map +1 -1
  210. package/_esm/utils/cursor.js.map +1 -1
  211. package/_esm/utils/encoding/fromRlp.js +0 -6
  212. package/_esm/utils/encoding/fromRlp.js.map +1 -1
  213. package/_esm/utils/ens/avatar/utils.js +2 -0
  214. package/_esm/utils/ens/avatar/utils.js.map +1 -1
  215. package/_esm/utils/ens/errors.js.map +1 -1
  216. package/_esm/utils/observe.js +2 -0
  217. package/_esm/utils/observe.js.map +1 -1
  218. package/_esm/utils/promise/createBatchScheduler.js +1 -0
  219. package/_esm/utils/promise/createBatchScheduler.js.map +1 -1
  220. package/_esm/utils/promise/withCache.js +2 -0
  221. package/_esm/utils/promise/withCache.js.map +1 -1
  222. package/_esm/utils/promise/withTimeout.js +1 -1
  223. package/_esm/utils/promise/withTimeout.js.map +1 -1
  224. package/_esm/utils/rpc/id.js +1 -1
  225. package/_esm/utils/rpc/id.js.map +1 -1
  226. package/_esm/utils/rpc/ipc.js +1 -0
  227. package/_esm/utils/rpc/ipc.js.map +1 -1
  228. package/_esm/utils/stateOverride.js +3 -0
  229. package/_esm/utils/stateOverride.js.map +1 -1
  230. package/_esm/utils/transaction/parseTransaction.js.map +1 -1
  231. package/_esm/utils/transaction/serializeTransaction.js +8 -5
  232. package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
  233. package/_esm/utils/unit/parseUnits.js +1 -1
  234. package/_esm/utils/unit/parseUnits.js.map +1 -1
  235. package/_esm/zksync/actions/deployContract.js +1 -1
  236. package/_esm/zksync/actions/deployContract.js.map +1 -1
  237. package/_esm/zksync/actions/estimateGasL1ToL2.js +1 -1
  238. package/_esm/zksync/actions/estimateGasL1ToL2.js.map +1 -1
  239. package/_esm/zksync/actions/getAllBalances.js +1 -1
  240. package/_esm/zksync/actions/getAllBalances.js.map +1 -1
  241. package/_esm/zksync/actions/getL1Allowance.js +1 -1
  242. package/_esm/zksync/actions/getL1Allowance.js.map +1 -1
  243. package/_esm/zksync/actions/getL1Balance.js +1 -1
  244. package/_esm/zksync/actions/getL1Balance.js.map +1 -1
  245. package/_esm/zksync/actions/getL1TokenBalance.js +2 -2
  246. package/_esm/zksync/actions/getL1TokenBalance.js.map +1 -1
  247. package/_esm/zksync/actions/sendEip712Transaction.js +7 -7
  248. package/_esm/zksync/actions/sendEip712Transaction.js.map +1 -1
  249. package/_esm/zksync/actions/sendTransaction.js +6 -6
  250. package/_esm/zksync/actions/sendTransaction.js.map +1 -1
  251. package/_esm/zksync/constants/contract.js +0 -1
  252. package/_esm/zksync/constants/contract.js.map +1 -1
  253. package/_esm/zksync/decorators/eip712.js.map +1 -1
  254. package/_esm/zksync/index.js.map +1 -1
  255. package/_esm/zksync/serializers.js.map +1 -1
  256. package/_esm/zksync/utils/abi/encodeDeployData.js +1 -1
  257. package/_esm/zksync/utils/abi/encodeDeployData.js.map +1 -1
  258. package/_esm/zksync/utils/assertEip712Request.js +1 -1
  259. package/_esm/zksync/utils/assertEip712Request.js.map +1 -1
  260. package/_esm/zksync/utils/hashBytecode.js.map +1 -1
  261. package/_types/accounts/hdKeyToAccount.d.ts +1 -1
  262. package/_types/accounts/hdKeyToAccount.d.ts.map +1 -1
  263. package/_types/accounts/types.d.ts +1 -1
  264. package/_types/accounts/types.d.ts.map +1 -1
  265. package/_types/actions/public/call.d.ts +5 -2
  266. package/_types/actions/public/call.d.ts.map +1 -1
  267. package/_types/actions/public/estimateGas.d.ts +2 -1
  268. package/_types/actions/public/estimateGas.d.ts.map +1 -1
  269. package/_types/actions/public/getBlockNumber.d.ts +4 -0
  270. package/_types/actions/public/getBlockNumber.d.ts.map +1 -1
  271. package/_types/actions/test/sendUnsignedTransaction.d.ts +2 -2
  272. package/_types/actions/wallet/prepareTransactionRequest.d.ts +0 -7
  273. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  274. package/_types/actions/wallet/signTypedData.d.ts +2 -2
  275. package/_types/actions/wallet/signTypedData.d.ts.map +1 -1
  276. package/_types/celo/chainConfig.d.ts +60 -60
  277. package/_types/celo/formatters.d.ts +30 -30
  278. package/_types/celo/formatters.d.ts.map +1 -1
  279. package/_types/celo/index.d.ts +2 -2
  280. package/_types/celo/index.d.ts.map +1 -1
  281. package/_types/celo/utils.d.ts +1 -0
  282. package/_types/celo/utils.d.ts.map +1 -1
  283. package/_types/chains/definitions/ancient8.d.ts +26 -26
  284. package/_types/chains/definitions/ancient8Sepolia.d.ts +26 -26
  285. package/_types/chains/definitions/base.d.ts +26 -26
  286. package/_types/chains/definitions/baseGoerli.d.ts +26 -26
  287. package/_types/chains/definitions/baseSepolia.d.ts +26 -26
  288. package/_types/chains/definitions/celo.d.ts +60 -60
  289. package/_types/chains/definitions/celoAlfajores.d.ts +60 -60
  290. package/_types/chains/definitions/fraxtal.d.ts +26 -26
  291. package/_types/chains/definitions/fraxtalTestnet.d.ts +26 -26
  292. package/_types/chains/definitions/funkiSepolia.d.ts +26 -26
  293. package/_types/chains/definitions/ham.d.ts +37 -0
  294. package/_types/chains/definitions/ham.d.ts.map +1 -0
  295. package/_types/chains/definitions/kakarotSepolia.d.ts +1 -1
  296. package/_types/chains/definitions/liskSepolia.d.ts +26 -26
  297. package/_types/chains/definitions/metalL2.d.ts +26 -26
  298. package/_types/chains/definitions/optimism.d.ts +31 -26
  299. package/_types/chains/definitions/optimism.d.ts.map +1 -1
  300. package/_types/chains/definitions/optimismGoerli.d.ts +26 -26
  301. package/_types/chains/definitions/optimismSepolia.d.ts +26 -26
  302. package/_types/chains/definitions/pgn.d.ts +26 -26
  303. package/_types/chains/definitions/pgnTestnet.d.ts +26 -26
  304. package/_types/chains/definitions/redbellyTestnet.d.ts +36 -0
  305. package/_types/chains/definitions/redbellyTestnet.d.ts.map +1 -0
  306. package/_types/chains/definitions/rss3.d.ts +26 -26
  307. package/_types/chains/definitions/rss3Sepolia.d.ts +26 -26
  308. package/_types/chains/definitions/sei.d.ts +1 -0
  309. package/_types/chains/definitions/sei.d.ts.map +1 -1
  310. package/_types/chains/definitions/xai.d.ts +33 -0
  311. package/_types/chains/definitions/xai.d.ts.map +1 -0
  312. package/_types/chains/definitions/xaiTestnet.d.ts +35 -0
  313. package/_types/chains/definitions/xaiTestnet.d.ts.map +1 -0
  314. package/_types/chains/definitions/zora.d.ts +26 -26
  315. package/_types/chains/definitions/zoraSepolia.d.ts +26 -26
  316. package/_types/chains/definitions/zoraTestnet.d.ts +26 -26
  317. package/_types/chains/index.d.ts +4 -0
  318. package/_types/chains/index.d.ts.map +1 -1
  319. package/_types/clients/createClient.d.ts +1 -1
  320. package/_types/clients/createClient.d.ts.map +1 -1
  321. package/_types/clients/transports/fallback.d.ts +1 -0
  322. package/_types/clients/transports/fallback.d.ts.map +1 -1
  323. package/_types/clients/transports/http.d.ts +6 -7
  324. package/_types/clients/transports/http.d.ts.map +1 -1
  325. package/_types/constants/abis.d.ts +1 -0
  326. package/_types/constants/abis.d.ts.map +1 -1
  327. package/_types/constants/blob.d.ts +0 -2
  328. package/_types/constants/blob.d.ts.map +1 -1
  329. package/_types/constants/kzg.d.ts +0 -4
  330. package/_types/constants/kzg.d.ts.map +1 -1
  331. package/_types/errors/abi.d.ts +0 -10
  332. package/_types/errors/abi.d.ts.map +1 -1
  333. package/_types/errors/base.d.ts +1 -0
  334. package/_types/errors/base.d.ts.map +1 -1
  335. package/_types/errors/ccip.d.ts +1 -0
  336. package/_types/errors/ccip.d.ts.map +1 -1
  337. package/_types/errors/stateOverride.d.ts +1 -0
  338. package/_types/errors/stateOverride.d.ts.map +1 -1
  339. package/_types/errors/version.d.ts +1 -1
  340. package/_types/experimental/eip5792/actions/getCapabilities.d.ts.map +1 -1
  341. package/_types/experimental/eip5792/actions/sendCalls.d.ts.map +1 -1
  342. package/_types/experimental/erc7715/types/permission.d.ts +5 -0
  343. package/_types/experimental/erc7715/types/permission.d.ts.map +1 -1
  344. package/_types/experimental/erc7715/types/signer.d.ts +3 -0
  345. package/_types/experimental/erc7715/types/signer.d.ts.map +1 -1
  346. package/_types/index.d.ts +9 -9
  347. package/_types/index.d.ts.map +1 -1
  348. package/_types/node/trustedSetups.d.ts +0 -1
  349. package/_types/node/trustedSetups.d.ts.map +1 -1
  350. package/_types/node/trustedSetups_cjs.d.ts +0 -1
  351. package/_types/node/trustedSetups_cjs.d.ts.map +1 -1
  352. package/_types/op-stack/abis.d.ts +0 -626
  353. package/_types/op-stack/abis.d.ts.map +1 -1
  354. package/_types/op-stack/actions/buildProveWithdrawal.d.ts +1 -0
  355. package/_types/op-stack/actions/buildProveWithdrawal.d.ts.map +1 -1
  356. package/_types/op-stack/actions/estimateDepositTransactionGas.d.ts +2 -2
  357. package/_types/op-stack/actions/estimateDepositTransactionGas.d.ts.map +1 -1
  358. package/_types/op-stack/actions/estimateFinalizeWithdrawalGas.d.ts +1 -1
  359. package/_types/op-stack/actions/estimateFinalizeWithdrawalGas.d.ts.map +1 -1
  360. package/_types/op-stack/actions/estimateInitiateWithdrawalGas.d.ts +1 -1
  361. package/_types/op-stack/actions/estimateInitiateWithdrawalGas.d.ts.map +1 -1
  362. package/_types/op-stack/actions/estimateProveWithdrawalGas.d.ts +1 -1
  363. package/_types/op-stack/actions/estimateProveWithdrawalGas.d.ts.map +1 -1
  364. package/_types/op-stack/actions/getWithdrawalStatus.d.ts +2 -1
  365. package/_types/op-stack/actions/getWithdrawalStatus.d.ts.map +1 -1
  366. package/_types/op-stack/chainConfig.d.ts +26 -26
  367. package/_types/op-stack/formatters.d.ts +26 -26
  368. package/_types/op-stack/index.d.ts.map +1 -1
  369. package/_types/types/account.d.ts +1 -1
  370. package/_types/types/account.d.ts.map +1 -1
  371. package/_types/types/chain.d.ts +7 -7
  372. package/_types/types/chain.d.ts.map +1 -1
  373. package/_types/types/kzg.d.ts +1 -1
  374. package/_types/types/kzg.d.ts.map +1 -1
  375. package/_types/types/proof.d.ts +3 -2
  376. package/_types/types/proof.d.ts.map +1 -1
  377. package/_types/types/utils.d.ts +11 -3
  378. package/_types/types/utils.d.ts.map +1 -1
  379. package/_types/utils/abi/decodeAbiParameters.d.ts +2 -1
  380. package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
  381. package/_types/utils/abi/encodeAbiParameters.d.ts +12 -11
  382. package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
  383. package/_types/utils/abi/encodeDeployData.d.ts +4 -2
  384. package/_types/utils/abi/encodeDeployData.d.ts.map +1 -1
  385. package/_types/utils/abi/getAbiItem.d.ts +6 -2
  386. package/_types/utils/abi/getAbiItem.d.ts.map +1 -1
  387. package/_types/utils/address/getAddress.d.ts +0 -2
  388. package/_types/utils/address/getAddress.d.ts.map +1 -1
  389. package/_types/utils/address/isAddress.d.ts +1 -0
  390. package/_types/utils/address/isAddress.d.ts.map +1 -1
  391. package/_types/utils/blob/toBlobs.d.ts +2 -1
  392. package/_types/utils/blob/toBlobs.d.ts.map +1 -1
  393. package/_types/utils/buildRequest.d.ts +1 -0
  394. package/_types/utils/buildRequest.d.ts.map +1 -1
  395. package/_types/utils/ccip.d.ts +4 -2
  396. package/_types/utils/ccip.d.ts.map +1 -1
  397. package/_types/utils/cursor.d.ts +7 -6
  398. package/_types/utils/cursor.d.ts.map +1 -1
  399. package/_types/utils/encoding/fromRlp.d.ts +3 -7
  400. package/_types/utils/encoding/fromRlp.d.ts.map +1 -1
  401. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +2 -1
  402. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
  403. package/_types/utils/ens/avatar/utils.d.ts +4 -2
  404. package/_types/utils/ens/avatar/utils.d.ts.map +1 -1
  405. package/_types/utils/ens/errors.d.ts +1 -0
  406. package/_types/utils/ens/errors.d.ts.map +1 -1
  407. package/_types/utils/formatters/transaction.d.ts +1 -1
  408. package/_types/utils/formatters/transactionRequest.d.ts +1 -1
  409. package/_types/utils/hash/normalizeSignature.d.ts +3 -2
  410. package/_types/utils/hash/normalizeSignature.d.ts.map +1 -1
  411. package/_types/utils/observe.d.ts +2 -0
  412. package/_types/utils/observe.d.ts.map +1 -1
  413. package/_types/utils/promise/createBatchScheduler.d.ts +3 -2
  414. package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
  415. package/_types/utils/promise/withCache.d.ts +4 -1
  416. package/_types/utils/promise/withCache.d.ts.map +1 -1
  417. package/_types/utils/rpc/id.d.ts +0 -5
  418. package/_types/utils/rpc/id.d.ts.map +1 -1
  419. package/_types/utils/rpc/ipc.d.ts +1 -0
  420. package/_types/utils/rpc/ipc.d.ts.map +1 -1
  421. package/_types/utils/stateOverride.d.ts +9 -5
  422. package/_types/utils/stateOverride.d.ts.map +1 -1
  423. package/_types/utils/transaction/parseTransaction.d.ts +5 -5
  424. package/_types/utils/transaction/parseTransaction.d.ts.map +1 -1
  425. package/_types/utils/transaction/serializeTransaction.d.ts +1 -1
  426. package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
  427. package/_types/zksync/actions/deployContract.d.ts +2 -1
  428. package/_types/zksync/actions/deployContract.d.ts.map +1 -1
  429. package/_types/zksync/actions/estimateGasL1ToL2.d.ts.map +1 -1
  430. package/_types/zksync/actions/getAllBalances.d.ts.map +1 -1
  431. package/_types/zksync/actions/getL1Allowance.d.ts.map +1 -1
  432. package/_types/zksync/actions/getL1Balance.d.ts.map +1 -1
  433. package/_types/zksync/actions/getL1TokenBalance.d.ts +4 -4
  434. package/_types/zksync/actions/getL1TokenBalance.d.ts.map +1 -1
  435. package/_types/zksync/actions/sendEip712Transaction.d.ts +3 -3
  436. package/_types/zksync/actions/sendEip712Transaction.d.ts.map +1 -1
  437. package/_types/zksync/actions/sendTransaction.d.ts +5 -5
  438. package/_types/zksync/actions/sendTransaction.d.ts.map +1 -1
  439. package/_types/zksync/constants/contract.d.ts +0 -1
  440. package/_types/zksync/constants/contract.d.ts.map +1 -1
  441. package/_types/zksync/decorators/eip712.d.ts +2 -1
  442. package/_types/zksync/decorators/eip712.d.ts.map +1 -1
  443. package/_types/zksync/index.d.ts +1 -0
  444. package/_types/zksync/index.d.ts.map +1 -1
  445. package/_types/zksync/serializers.d.ts +1 -2
  446. package/_types/zksync/serializers.d.ts.map +1 -1
  447. package/_types/zksync/types/chain.d.ts +2 -2
  448. package/_types/zksync/types/chain.d.ts.map +1 -1
  449. package/_types/zksync/types/eip1193.d.ts +5 -5
  450. package/_types/zksync/types/eip1193.d.ts.map +1 -1
  451. package/_types/zksync/utils/abi/encodeDeployData.d.ts +5 -0
  452. package/_types/zksync/utils/abi/encodeDeployData.d.ts.map +1 -1
  453. package/_types/zksync/utils/assertEip712Request.d.ts +3 -1
  454. package/_types/zksync/utils/assertEip712Request.d.ts.map +1 -1
  455. package/_types/zksync/utils/hashBytecode.d.ts +5 -0
  456. package/_types/zksync/utils/hashBytecode.d.ts.map +1 -1
  457. package/accounts/hdKeyToAccount.ts +1 -2
  458. package/accounts/types.ts +1 -1
  459. package/actions/public/call.ts +5 -5
  460. package/actions/public/estimateGas.ts +3 -4
  461. package/actions/public/getBlockNumber.ts +9 -1
  462. package/actions/test/sendUnsignedTransaction.ts +2 -2
  463. package/actions/wallet/prepareTransactionRequest.ts +0 -20
  464. package/actions/wallet/signTypedData.ts +2 -0
  465. package/celo/formatters.ts +1 -3
  466. package/celo/index.ts +5 -2
  467. package/celo/utils.ts +1 -0
  468. package/chains/definitions/ham.ts +24 -0
  469. package/chains/definitions/kakarotSepolia.ts +1 -1
  470. package/chains/definitions/optimism.ts +5 -0
  471. package/chains/definitions/redbellyTestnet.ts +24 -0
  472. package/chains/definitions/sei.ts +1 -0
  473. package/chains/definitions/xai.ts +25 -0
  474. package/chains/definitions/xaiTestnet.ts +19 -0
  475. package/chains/index.ts +4 -0
  476. package/clients/createClient.ts +4 -2
  477. package/clients/decorators/public.ts +1 -1
  478. package/clients/decorators/wallet.ts +1 -1
  479. package/clients/transports/fallback.ts +1 -0
  480. package/clients/transports/http.ts +9 -8
  481. package/constants/abis.ts +1 -0
  482. package/constants/blob.ts +1 -1
  483. package/constants/kzg.ts +0 -6
  484. package/errors/abi.ts +0 -13
  485. package/errors/base.ts +2 -1
  486. package/errors/ccip.ts +1 -0
  487. package/errors/stateOverride.ts +1 -0
  488. package/errors/version.ts +1 -1
  489. package/experimental/eip5792/actions/getCapabilities.ts +1 -1
  490. package/experimental/eip5792/actions/sendCalls.ts +1 -1
  491. package/experimental/erc7715/types/permission.ts +5 -0
  492. package/experimental/erc7715/types/signer.ts +3 -0
  493. package/index.ts +21 -5
  494. package/node/trustedSetups.ts +0 -5
  495. package/node/trustedSetups_cjs.ts +0 -5
  496. package/op-stack/abis.ts +0 -458
  497. package/op-stack/actions/buildProveWithdrawal.ts +1 -0
  498. package/op-stack/actions/estimateDepositTransactionGas.ts +18 -7
  499. package/op-stack/actions/estimateFinalizeWithdrawalGas.ts +11 -4
  500. package/op-stack/actions/estimateInitiateWithdrawalGas.ts +11 -4
  501. package/op-stack/actions/estimateProveWithdrawalGas.ts +11 -4
  502. package/op-stack/actions/getWithdrawalStatus.ts +6 -1
  503. package/op-stack/index.ts +0 -1
  504. package/package.json +1 -1
  505. package/types/account.ts +1 -11
  506. package/types/chain.ts +7 -7
  507. package/types/kzg.ts +2 -1
  508. package/types/proof.ts +2 -2
  509. package/types/utils.ts +11 -3
  510. package/utils/abi/decodeAbiParameters.ts +6 -1
  511. package/utils/abi/encodeAbiParameters.ts +22 -19
  512. package/utils/abi/encodeDeployData.ts +6 -5
  513. package/utils/abi/getAbiItem.ts +8 -2
  514. package/utils/address/getAddress.ts +1 -1
  515. package/utils/address/isAddress.ts +1 -0
  516. package/utils/blob/toBlobs.ts +2 -1
  517. package/utils/buildRequest.ts +1 -0
  518. package/utils/ccip.ts +11 -3
  519. package/utils/cursor.ts +16 -6
  520. package/utils/encoding/fromRlp.ts +3 -21
  521. package/utils/ens/avatar/parseAvatarRecord.ts +1 -1
  522. package/utils/ens/avatar/utils.ts +4 -2
  523. package/utils/ens/errors.ts +1 -0
  524. package/utils/hash/normalizeSignature.ts +2 -2
  525. package/utils/observe.ts +2 -0
  526. package/utils/promise/createBatchScheduler.ts +3 -2
  527. package/utils/promise/withCache.ts +3 -1
  528. package/utils/promise/withTimeout.ts +2 -2
  529. package/utils/rpc/id.ts +1 -1
  530. package/utils/rpc/ipc.ts +1 -0
  531. package/utils/stateOverride.ts +8 -5
  532. package/utils/transaction/parseTransaction.ts +7 -2
  533. package/utils/transaction/serializeTransaction.ts +11 -5
  534. package/utils/unit/parseUnits.ts +1 -1
  535. package/zksync/actions/deployContract.ts +8 -2
  536. package/zksync/actions/estimateGasL1ToL2.ts +1 -1
  537. package/zksync/actions/getAllBalances.ts +1 -1
  538. package/zksync/actions/getL1Allowance.ts +1 -1
  539. package/zksync/actions/getL1Balance.ts +1 -1
  540. package/zksync/actions/getL1TokenBalance.ts +10 -7
  541. package/zksync/actions/sendEip712Transaction.ts +27 -16
  542. package/zksync/actions/sendTransaction.ts +34 -18
  543. package/zksync/constants/contract.ts +0 -1
  544. package/zksync/decorators/eip712.ts +7 -2
  545. package/zksync/index.ts +5 -0
  546. package/zksync/serializers.ts +1 -2
  547. package/zksync/types/chain.ts +9 -9
  548. package/zksync/types/eip1193.ts +32 -26
  549. package/zksync/utils/abi/encodeDeployData.ts +12 -2
  550. package/zksync/utils/assertEip712Request.ts +9 -2
  551. package/zksync/utils/hashBytecode.ts +14 -2
  552. package/_cjs/utils/accounts.js +0 -8
  553. package/_cjs/utils/accounts.js.map +0 -1
  554. package/_esm/utils/accounts.js +0 -7
  555. package/_esm/utils/accounts.js.map +0 -1
  556. package/_types/utils/accounts.d.ts +0 -3
  557. package/_types/utils/accounts.d.ts.map +0 -1
  558. package/utils/accounts.ts +0 -7
@@ -1 +1 @@
1
- {"version":3,"file":"parseTransaction.d.ts","sourceRoot":"","sources":["../../../utils/transaction/parseTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEL,KAAK,uBAAuB,E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A6B,GAC7B,wBAAwB,GACxB,SAAS,CAAA;AA0Db,KAAK,+BAA+B,GAChC,gCAAgC,GAChC,gBAAgB,GAChB,oBAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACvB,qCAAqC,GACrC,cAAc,GACd,SAAS,CAAA;AAuEb,KAAK,2BAA2B,GAAG,gBAAgB,GAAG,SAAS,CAAA;AAE/D,wBAAgB,kBAAkB,CAAC,qBAAqB,EAAE,MAAM,6DAE/D;AAED,KAAK,wBAAwB,GACzB,uBAAuB,GACvB,kBAAkB,GAClB,SAAS,CAAA;AAEb,wBAAgB,eAAe,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,UAAU,CAc5E;AAED,KAAK,6BAA6B,GAC9B,oBAAoB,GACpB,eAAe,GACf,SAAS,CAAA"}
@@ -21,6 +21,6 @@ type SerializeTransactionEIP4844ErrorType = AssertTransactionEIP4844ErrorType |
21
21
  type SerializeTransactionEIP1559ErrorType = AssertTransactionEIP1559ErrorType | ConcatHexErrorType | InvalidLegacyVErrorType | ToHexErrorType | ToRlpErrorType | SerializeAccessListErrorType | ErrorType;
22
22
  type SerializeTransactionEIP2930ErrorType = AssertTransactionEIP2930ErrorType | ConcatHexErrorType | InvalidLegacyVErrorType | ToHexErrorType | ToRlpErrorType | SerializeAccessListErrorType | ErrorType;
23
23
  type SerializeTransactionLegacyErrorType = AssertTransactionLegacyErrorType | InvalidLegacyVErrorType | ToHexErrorType | ToRlpErrorType | ErrorType;
24
- export declare function toYParitySignatureArray(transaction: TransactionSerializableGeneric, signature?: Signature | undefined): `0x${string}`[];
24
+ export declare function toYParitySignatureArray(transaction: TransactionSerializableGeneric, signature_?: Signature | undefined): `0x${string}`[];
25
25
  export {};
26
26
  //# sourceMappingURL=serializeTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serializeTransaction.d.ts","sourceRoot":"","sources":["../../../utils/transaction/serializeTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAA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AgB,SAAS,eAAe,GAAG,KAAK,IAC9C,OAAO,oBAAoB,CAC7B,KAAK,CAAC,uBAAuB,GAAG,WAAW,CAAC,EAC5C,gBAAgB,CACjB,CAAA;AAED,MAAM,MAAM,6BAA6B,GACrC,0BAA0B,GAC1B,oCAAoC,GACpC,oCAAoC,GACpC,oCAAoC,GACpC,mCAAmC,GACnC,SAAS,CAAA;AAEb,wBAAgB,oBAAoB,CAClC,KAAK,CAAC,WAAW,SAAS,uBAAuB,EAEjD,gBAAgB,SAAS,eAAe,GAAG,kBAAkB,CAAC,WAAW,CAAC,EAE1E,WAAW,EAAE,WAAW,EACxB,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,GAChC,+BAA+B,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAyBhE;AAED,KAAK,oCAAoC,GACrC,iCAAiC,GACjC,2BAA2B,GAC3B,qCAAqC,GACrC,sBAAsB,GACtB,uBAAuB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,4BAA4B,GAC5B,SAAS,CAAA;AAwFb,KAAK,oCAAoC,GACrC,iCAAiC,GACjC,kBAAkB,GAClB,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,4BAA4B,GAC5B,SAAS,CAAA;AAyCb,KAAK,oCAAoC,GACrC,iCAAiC,GACjC,kBAAkB,GAClB,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,4BAA4B,GAC5B,SAAS,CAAA;AA+Bb,KAAK,mCAAmC,GACpC,gCAAgC,GAChC,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,SAAS,CAAA;AAwDb,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,8BAA8B,EAC3C,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,mBAelC"}
1
+ {"version":3,"file":"serializeTransaction.d.ts","sourceRoot":"","sources":["../../../utils/transaction/serializeTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,6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AK,IAC9C,OAAO,oBAAoB,CAC7B,KAAK,CAAC,uBAAuB,GAAG,WAAW,CAAC,EAC5C,gBAAgB,CACjB,CAAA;AAED,MAAM,MAAM,6BAA6B,GACrC,0BAA0B,GAC1B,oCAAoC,GACpC,oCAAoC,GACpC,oCAAoC,GACpC,mCAAmC,GACnC,SAAS,CAAA;AAEb,wBAAgB,oBAAoB,CAClC,KAAK,CAAC,WAAW,SAAS,uBAAuB,EAEjD,gBAAgB,SAAS,eAAe,GAAG,kBAAkB,CAAC,WAAW,CAAC,EAE1E,WAAW,EAAE,WAAW,EACxB,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,GAChC,+BAA+B,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAyBhE;AAED,KAAK,oCAAoC,GACrC,iCAAiC,GACjC,2BAA2B,GAC3B,qCAAqC,GACrC,sBAAsB,GACtB,uBAAuB,GACvB,kBAAkB,GAClB,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,4BAA4B,GAC5B,SAAS,CAAA;AAwFb,KAAK,oCAAoC,GACrC,iCAAiC,GACjC,kBAAkB,GAClB,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,4BAA4B,GAC5B,SAAS,CAAA;AAyCb,KAAK,oCAAoC,GACrC,iCAAiC,GACjC,kBAAkB,GAClB,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,4BAA4B,GAC5B,SAAS,CAAA;AA+Bb,KAAK,mCAAmC,GACpC,gCAAgC,GAChC,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,SAAS,CAAA;AAwDb,wBAAgB,uBAAuB,CACrC,WAAW,EAAE,8BAA8B,EAC3C,UAAU,CAAC,EAAE,SAAS,GAAG,SAAS,mBAqBnC"}
@@ -8,6 +8,7 @@ import type { ContractConstructorArgs } from '../../types/contract.js';
8
8
  import type { Hash, Hex } from '../../types/misc.js';
9
9
  import type { ChainEIP712 } from '../types/chain.js';
10
10
  import type { ContractDeploymentType } from '../types/contract.js';
11
+ import { type EncodeDeployDataErrorType } from '../utils/abi/encodeDeployData.js';
11
12
  import { type SendEip712TransactionErrorType, type SendEip712TransactionReturnType } from './sendEip712Transaction.js';
12
13
  export type DeployContractParameters<abi extends Abi | readonly unknown[] = Abi, chain extends ChainEIP712 | undefined = ChainEIP712 | undefined, account extends Account | undefined = Account | undefined, chainOverride extends ChainEIP712 | undefined = ChainEIP712 | undefined, allArgs = ContractConstructorArgs<abi>> = DeployContractParameters_<abi, chain, account, chainOverride, allArgs> & {
13
14
  deploymentType?: ContractDeploymentType;
@@ -15,7 +16,7 @@ export type DeployContractParameters<abi extends Abi | readonly unknown[] = Abi,
15
16
  salt?: Hash;
16
17
  };
17
18
  export type DeployContractReturnType = SendEip712TransactionReturnType;
18
- export type DeployContractErrorType = SendEip712TransactionErrorType | ErrorType;
19
+ export type DeployContractErrorType = EncodeDeployDataErrorType | SendEip712TransactionErrorType | ErrorType;
19
20
  /**
20
21
  * Deploys a contract to the network, given bytecode and constructor arguments using EIP712 transaction.
21
22
  *
@@ -1 +1 @@
1
- {"version":3,"file":"deployContract.d.ts","sourceRoot":"","sources":["../../../zksync/actions/deployContract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AACtD,OAAO,KAAK,EAAE,wBAAwB,IAAI,yBAAyB,EAAE,MAAM,wCAAwC,CAAA;AACnH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAEpD,OAAO,KAAK,EA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MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,qBAAqB,CAAC,EAChE,UAAU,EAAE,2BAA2B,CAAC,KAAK,EAAE,OAAO,CAAC,GACtD,OAAO,CAAC,2BAA2B,CAAC,CAgBtC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getAllBalances.d.ts","sourceRoot":"","sources":["../../../zksync/actions/getAllBalances.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC1E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAGjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAEhE,MAAM,MAAM,wBAAwB,CAClC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,mBAAmB,CAAC,QAAQ,CAAC,CAAA;AAEjC,MAAM,MAAM,wBAAwB,GAAG;IAAE,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAAA;CAAE,CAAA;AAEjE,wBAAsB,cAAc,CAClC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,qBAAqB,CAAC,EAClE,UAAU,EAAE,wBAAwB,CAAC,QAAQ,CAAC,GAC7C,OAAO,CAAC,wBAAwB,CAAC,CAWnC"}
1
+ {"version":3,"file":"getAllBalances.d.ts","sourceRoot":"","sources":["../../../zksync/actions/getAllBalances.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,M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AO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAQjD,MAAM,MAAM,sBAAsB,CAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,mBAAmB,CAAC,QAAQ,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;CAAE,GAAG,CAChE;IACE,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAChC,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,GACD;IACE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,iDAAiD;IACjD,QAAQ,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAA;CAChC,CACJ,CAAA;AAEH,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAA;AAE3C,MAAM,MAAM,qBAAqB,GAAG,oBAAoB,GAAG,SAAS,CAAA;AAEpE,wBAAsB,YAAY,CAChC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EAEpC,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC3C,GAAG,CAAC,UAAe,CAAC,EAAE,QAAQ,SAAS,SAAS,GAC5C,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC,GAClC,CAAC,sBAAsB,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,GAC1C,OAAO,CAAC,sBAAsB,CAAC,CAoBjC"}
@@ -1,12 +1,12 @@
1
1
  import type { Address } from '../../accounts/index.js';
2
2
  import type { Client } from '../../clients/createClient.js';
3
3
  import type { Transport } from '../../clients/transports/createTransport.js';
4
- import type { AccountNotFoundError } from '../../errors/account.js';
5
- import type { BaseError } from '../../errors/base.js';
4
+ import type { AccountNotFoundErrorType } from '../../errors/account.js';
5
+ import type { BaseErrorType } from '../../errors/base.js';
6
6
  import type { Account, GetAccountParameter } from '../../types/account.js';
7
7
  import type { BlockTag } from '../../types/block.js';
8
8
  import type { Chain } from '../../types/chain.js';
9
- import { TokenIsEthError } from '../errors/token-is-eth.js';
9
+ import { type TokenIsEthErrorType } from '../errors/token-is-eth.js';
10
10
  export type GetL1TokenBalanceParameters<TAccount extends Account | undefined = Account | undefined> = GetAccountParameter<TAccount> & {
11
11
  token: Address;
12
12
  } & ({
@@ -19,6 +19,6 @@ export type GetL1TokenBalanceParameters<TAccount extends Account | undefined = A
19
19
  blockTag?: BlockTag | undefined;
20
20
  });
21
21
  export type GetL1TokenBalanceReturnType = bigint;
22
- export type GetL1TokenBalanceErrorType = AccountNotFoundError | BaseError | TokenIsEthError;
22
+ export type GetL1TokenBalanceErrorType = AccountNotFoundErrorType | TokenIsEthErrorType | BaseErrorType;
23
23
  export declare function getL1TokenBalance<TChain extends Chain | undefined, TAccount extends Account | undefined>(client: Client<Transport, TChain, TAccount>, parameters: GetL1TokenBalanceParameters<TAccount>): Promise<GetL1TokenBalanceReturnType>;
24
24
  //# sourceMappingURL=getL1TokenBalance.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getL1TokenBalance.d.ts","sourceRoot":"","sources":["../../../zksync/actions/getL1TokenBalance.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEtD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAE5E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AACnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,sBAAsB,CA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ts/types.js';
2
- import type { SendTransactionErrorType, SendTransactionParameters as SendTransactionParameters_, SendTransactionReturnType } from '../../actions/wallet/sendTransaction.js';
2
+ import type { SendTransactionErrorType, SendTransactionParameters, SendTransactionRequest, SendTransactionReturnType } from '../../actions/wallet/sendTransaction.js';
3
3
  import type { Client } from '../../clients/createClient.js';
4
4
  import type { Transport } from '../../clients/transports/createTransport.js';
5
5
  import type { ChainEIP712 } from '../types/chain.js';
6
- export type SendEip712TransactionParameters<TChain extends ChainEIP712 | undefined = ChainEIP712 | undefined, TAccount extends Account | undefined = Account | undefined, TChainOverride extends ChainEIP712 | undefined = ChainEIP712 | undefined> = SendTransactionParameters_<TChain, TAccount, TChainOverride>;
6
+ export type SendEip712TransactionParameters<chain extends ChainEIP712 | undefined = ChainEIP712 | undefined, account extends Account | undefined = Account | undefined, chainOverride extends ChainEIP712 | undefined = ChainEIP712 | undefined, request extends SendTransactionRequest<chain, chainOverride> = SendTransactionRequest<chain, chainOverride>> = SendTransactionParameters<chain, account, chainOverride, request>;
7
7
  export type SendEip712TransactionReturnType = SendTransactionReturnType;
8
8
  export type SendEip712TransactionErrorType = SendTransactionErrorType;
9
9
  /**
@@ -46,5 +46,5 @@ export type SendEip712TransactionErrorType = SendTransactionErrorType;
46
46
  * value: 1000000000000000000n,
47
47
  * })
48
48
  */
49
- export declare function sendEip712Transaction<TChain extends ChainEIP712 | undefined, TAccount extends Account | undefined, TChainOverride extends ChainEIP712 | undefined = undefined>(client: Client<Transport, TChain, TAccount>, args: SendEip712TransactionParameters<TChain, TAccount, TChainOverride>): Promise<SendEip712TransactionReturnType>;
49
+ export declare function sendEip712Transaction<chain extends ChainEIP712 | undefined, account extends Account | undefined, const request extends SendTransactionRequest<chain, chainOverride>, chainOverride extends ChainEIP712 | undefined = undefined>(client: Client<Transport, chain, account>, parameters: SendEip712TransactionParameters<chain, account, chainOverride, request>): Promise<SendEip712TransactionReturnType>;
50
50
  //# sourceMappingURL=sendEip712Transaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendEip712Transaction.d.ts","sourceRoot":"","sources":["../../../zksync/actions/sendEip712Transaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAKtD,OAAO,KAAK,EACV,wBAAwB,EACxB,yBAAyB,IAAI,0BAA0B,EACvD,yBAAyB,EAC1B,MAAM,yCAAyC,CAAA;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAU5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAIpD,MAAM,MAAM,+BAA+B,CACzC,MAAM,SAAS,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,EAChE,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAC1D,cAAc,SAAS,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,IACtE,0BAA0B,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAA;AAEhE,MAAM,MAAM,+BAA+B,GAAG,yBAAyB,CAAA;AAEvE,MAAM,MAAM,8BAA8B,GAAG,wBAAwB,CAAA;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAsB,qBAAqB,CACzC,MAAM,SAAS,WAAW,GAAG,SAAS,EACtC,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,cAAc,SAAS,WAAW,GAAG,SAAS,GAAG,SAAS,EAE1D,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC3C,IAAI,EAAE,+BAA+B,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,GACtE,OAAO,CAAC,+BAA+B,CAAC,CA8C1C"}
1
+ {"version":3,"file":"sendEip712Transaction.d.ts","sourceRoot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AAK,EACL,OAAO,EACP,aAAa,EACb,OAAO,CACR,GACA,OAAO,CAAC,+BAA+B,CAAC,CA8C1C"}
@@ -1,11 +1,11 @@
1
1
  import type { Account } from '../../accounts/types.js';
2
- import type { SendTransactionErrorType as SendTransactionErrorType_, SendTransactionParameters as SendTransactionParameters_, SendTransactionReturnType as SendTransactionReturnType_ } from '../../actions/wallet/sendTransaction.js';
2
+ import type { SendTransactionRequest, SendTransactionErrorType as core_SendTransactionErrorType, SendTransactionParameters as core_SendTransactionParameters, SendTransactionReturnType as core_SendTransactionReturnType } from '../../actions/wallet/sendTransaction.js';
3
3
  import type { Client } from '../../clients/createClient.js';
4
4
  import type { Transport } from '../../clients/transports/createTransport.js';
5
5
  import type { ChainEIP712 } from '../types/chain.js';
6
- export type SendTransactionParameters<TChain extends ChainEIP712 | undefined = ChainEIP712 | undefined, TAccount extends Account | undefined = Account | undefined, TChainOverride extends ChainEIP712 | undefined = ChainEIP712 | undefined> = SendTransactionParameters_<TChain, TAccount, TChainOverride>;
7
- export type SendTransactionReturnType = SendTransactionReturnType_;
8
- export type SendTransactionErrorType = SendTransactionErrorType_;
6
+ export type SendTransactionParameters<chain extends ChainEIP712 | undefined = ChainEIP712 | undefined, account extends Account | undefined = Account | undefined, chainOverride extends ChainEIP712 | undefined = ChainEIP712 | undefined, request extends SendTransactionRequest<chain, chainOverride> = SendTransactionRequest<chain, chainOverride>> = core_SendTransactionParameters<chain, account, chainOverride, request>;
7
+ export type SendTransactionReturnType = core_SendTransactionReturnType;
8
+ export type SendTransactionErrorType = core_SendTransactionErrorType;
9
9
  /**
10
10
  * Creates, signs, and sends a new transaction to the network.
11
11
  *
@@ -50,5 +50,5 @@ export type SendTransactionErrorType = SendTransactionErrorType_;
50
50
  * value: 1000000000000000000n,
51
51
  * })
52
52
  */
53
- export declare function sendTransaction<TChain extends ChainEIP712 | undefined, TAccount extends Account | undefined, TChainOverride extends ChainEIP712 | undefined = undefined>(client: Client<Transport, TChain, TAccount>, args: SendTransactionParameters<TChain, TAccount, TChainOverride>): Promise<SendTransactionReturnType>;
53
+ export declare function sendTransaction<chain extends ChainEIP712 | undefined, account extends Account | undefined, const request extends SendTransactionRequest<chain, chainOverride>, chainOverride extends ChainEIP712 | undefined = undefined>(client: Client<Transport, chain, account>, parameters: SendTransactionParameters<chain, account, chainOverride, request>): Promise<SendTransactionReturnType>;
54
54
  //# sourceMappingURL=sendTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendTransaction.d.ts","sourceRoot":"","sources":["../../../zksync/actions/sendTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAEtD,OAAO,KAAK,EACV,wBAAwB,IAAI,yBAAyB,EACrD,yBAAyB,IAAI,0BAA0B,EACvD,yBAAyB,IAAI,0BAA0B,EACxD,MAAM,yCAAyC,CAAA;AAChD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAIpD,MAAM,MAAM,yBAAyB,CACnC,MAAM,SAAS,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,EAChE,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,EAC1D,cAAc,SAAS,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,IACtE,0BAA0B,CAAC,MAAM,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAA;AAEhE,MAAM,MAAM,yBAAyB,GAAG,0BAA0B,CAAA;AAElE,MAAM,MAAM,wBAAwB,GAAG,yBAAyB,CAAA;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAsB,eAAe,CACnC,MAAM,SAAS,WAAW,GAAG,SAAS,EACtC,QAAQ,SA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;;;;;;;;;;;;;;;;GA2CG;AACH,wBAAsB,eAAe,CACnC,KAAK,SAAS,WAAW,GAAG,SAAS,EACrC,OAAO,SAAS,OAAO,GAAG,SAAS,EACnC,KAAK,CAAC,OAAO,SAAS,sBAAsB,CAAC,KAAK,EAAE,aAAa,CAAC,EAClE,aAAa,SAAS,WAAW,GAAG,SAAS,GAAG,SAAS,EAEzD,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,EACzC,UAAU,EAAE,yBAAyB,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,CAAC,GAC5E,OAAO,CAAC,yBAAyB,CAAC,CAUpC"}
@@ -1,3 +1,2 @@
1
- export declare const accountAbstractionVersionNone = 0;
2
1
  export declare const accountAbstractionVersion1 = 1;
3
2
  //# sourceMappingURL=contract.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../zksync/constants/contract.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,IAAI,CAAA;AAC9C,eAAO,MAAM,0BAA0B,IAAI,CAAA"}
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../zksync/constants/contract.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,IAAI,CAAA"}
@@ -1,4 +1,5 @@
1
1
  import type { Abi } from 'abitype';
2
+ import type { SendTransactionRequest } from '../../actions/wallet/sendTransaction.js';
2
3
  import type { Client } from '../../clients/createClient.js';
3
4
  import type { WalletActions } from '../../clients/decorators/wallet.js';
4
5
  import type { Transport } from '../../clients/transports/createTransport.js';
@@ -52,7 +53,7 @@ export type Eip712WalletActions<chain extends ChainEIP712 | undefined = ChainEIP
52
53
  * value: 1000000000000000000n,
53
54
  * })
54
55
  */
55
- sendTransaction: <chainOverride extends ChainEIP712 | undefined = undefined>(args: SendTransactionParameters<chain, account, chainOverride>) => Promise<SendTransactionReturnType>;
56
+ sendTransaction: <const request extends SendTransactionRequest<chain, chainOverride>, chainOverride extends ChainEIP712 | undefined = undefined>(args: SendTransactionParameters<chain, account, chainOverride, request>) => Promise<SendTransactionReturnType>;
56
57
  /**
57
58
  * Signs a transaction.
58
59
  *
@@ -1 +1 @@
1
- {"version":3,"file":"eip712.d.ts","sourceRoot":"","sources":["../../../zksync/decorators/eip712.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAElC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAC5E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAE9B,MAAM,8BAA8B,CAAA;AACrC,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAE/B,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAE/B,MAAM,+BAA+B,CAAA;AACtC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAEpD,MAAM,MAAM,mBAAmB,CAC7B,KAAK,SAAS,WAAW,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,EAC/D,OAAO,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACvD;IACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,eAAe,EAAE,CAAC,aAAa,SAAS,WAAW,GAAG,SAAS,GAAG,SAAS,EACzE,IAAI,EAAE,yBAAyB,CAAC,KAAK,EAAE,OAAO,EAAE,aAAa,CAAC,KAC3D,OAAO,CAAC,yBAAyB,CAAC,CAAA;IACvC;;;;;;;;;;;;;;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SAAS,EACnB,aAAa,CACd,KACE,OAAO,CAAC,wBAAwB,CAAC,CAAA;IACtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiDG;IACH,aAAa,EAAE,aAAa,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,eAAe,CAAC,CAAA;CAC9D,CAAA;AAED,wBAAgB,mBAAmB,sKAMvB,OAAO,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,KACxC,oBAAoB,KAAK,EAAE,OAAO,CAAC,CAYvC"}
@@ -29,6 +29,7 @@ export { serializeTransaction } from './serializers.js';
29
29
  export type { ZkSyncBlock, ZkSyncBlockOverrides, ZkSyncRpcBlock, ZkSyncRpcBlockOverrides, } from './types/block.js';
30
30
  export type { ChainEIP712 } from './types/chain.js';
31
31
  export type { EIP712Domain, EIP712DomainFn, ZkSyncEip712Meta, } from './types/eip712.js';
32
+ export type { CommonDataRawBlockTransaction, RawBlockTransactions, PublicZkSyncRpcSchema, } from './types/eip1193.js';
32
33
  export type { ZkSyncFeeValues } from './types/fee.js';
33
34
  export type { ZkSyncL2ToL1Log, ZkSyncLog, ZkSyncRpcL2ToL1Log, ZkSyncRpcLog, } from './types/log.js';
34
35
  export type { TransactionRequestEIP712, ZkSyncEIP712TransactionSignable, ZkSyncRawBlockTransactions, ZkSyncRpcTransaction, ZkSyncRpcTransactionEIP712, ZkSyncRpcTransactionPriority, ZkSyncRpcTransactionReceiptOverrides, ZkSyncRpcTransactionRequest, ZkSyncRpcTransactionRequestEIP712, ZkSyncTransaction, ZkSyncTransactionEIP712, ZkSyncTransactionReceipt, ZkSyncTransactionReceiptOverrides, ZkSyncTransactionRequest, ZkSyncTransactionRequestEIP712, ZkSyncTransactionSerializable, ZkSyncTransactionSerializableEIP712, ZkSyncTransactionSerialized, ZkSyncTransactionSerializedEIP712, ZkSyncTransactionType, ZkSyncTransactionDetails, } from './types/transaction.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","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YAAY,GACb,MAAM,gBAAgB,CAAA;AACvB,YAAY,EACV,wBAAwB,EACxB,+BAA+B,EAC/B,0BAA0B,EAC1B,oBAAoB,EACpB,0BAA0B,EAC1B,4BAA4B,EAC5B,oCAAoC,EACpC,2BAA2B,EAC3B,iCAAiC,EACjC,iBAAiB,EACjB,uBAAuB,EACvB,wBAAwB,EACxB,iCAAiC,EACjC,wBAAwB,EACxB,8BAA8B,EAC9B,6BAA6B,EAC7B,mCAAmC,EACnC,2BAA2B,EAC3B,iCAAiC,EACjC,qBAAqB,EACrB,wBAAwB,GACzB,MAAM,wBAAwB,CAAA;AAE/B,OAAO,EACL,KAAK,wCAAwC,EAC7C,KAAK,wCAAwC,EAC7C,8BAA8B,GAC/B,MAAM,qDAAqD,CAAA;AAC5D,OAAO,EACL,KAAK,kCAAkC,EACvC,KAAK,kCAAkC,EACvC,wBAAwB,GACzB,MAAM,+CAA+C,CAAA"}
@@ -1,8 +1,7 @@
1
1
  import type { Signature } from '../index.js';
2
- import type { ZkSyncTransactionSerializable, ZkSyncTransactionSerializedEIP712 } from './types/transaction.js';
2
+ import type { ZkSyncTransactionSerializable } from './types/transaction.js';
3
3
  export declare function serializeTransaction(transaction: ZkSyncTransactionSerializable, signature?: Signature | undefined): `0x02${string}` | `0x01${string}` | `0x03${string}` | import("../index.js").TransactionSerializedLegacy | `0x71${string}`;
4
4
  export declare const serializers: {
5
5
  readonly transaction: typeof serializeTransaction;
6
6
  };
7
- export type SerializeTransactionEIP712ReturnType = ZkSyncTransactionSerializedEIP712;
8
7
  //# sourceMappingURL=serializers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serializers.d.ts","sourceRoot":"","sources":["../../zksync/serializers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAQ5C,OAAO,KAAK,EACV,6BAA6B,EAE7B,iCAAiC,EAClC,MAAM,wBAAwB,CAAA;AAI/B,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,6BAA6B,EAC1C,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,6HAUlC;AAED,eAAO,MAAM,WAAW;;CAEa,CAAA;AAErC,MAAM,MAAM,oCAAoC,GAC9C,iCAAiC,CAAA"}
1
+ {"version":3,"file":"serializers.d.ts","sourceRoot":"","sources":["../../zksync/serializers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAQ5C,OAAO,KAAK,EACV,6BAA6B,EAG9B,MAAM,wBAAwB,CAAA;AAI/B,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,6BAA6B,EAC1C,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,6HAUlC;AAED,eAAO,MAAM,WAAW;;CAEa,CAAA"}
@@ -2,8 +2,8 @@ import type { ChainFormatters } from '../../types/chain.js';
2
2
  import type { Chain, ChainFormatter } from '../../types/chain.js';
3
3
  import type { EIP712DomainFn } from './eip712.js';
4
4
  import type { ZkSyncTransactionSerializable } from './transaction.js';
5
- export type ChainEIP712<formatters extends ChainFormatters | undefined = ChainFormatters | undefined, TransactionSignable = {}> = Chain<formatters, {
5
+ export type ChainEIP712<formatters extends ChainFormatters | undefined = ChainFormatters | undefined, TransactionSignable = {}, transactionSerializable extends ZkSyncTransactionSerializable = formatters extends ChainFormatters ? formatters['transactionRequest'] extends ChainFormatter ? ZkSyncTransactionSerializable & Parameters<formatters['transactionRequest']['format']>[0] : ZkSyncTransactionSerializable : ZkSyncTransactionSerializable> = Chain<formatters, {
6
6
  /** Return EIP712 Domain for EIP712 transaction */
7
- getEip712Domain?: EIP712DomainFn<formatters extends ChainFormatters ? formatters['transactionRequest'] extends ChainFormatter ? ZkSyncTransactionSerializable & Parameters<formatters['transactionRequest']['format']>[0] : ZkSyncTransactionSerializable : ZkSyncTransactionSerializable, TransactionSignable> | undefined;
7
+ getEip712Domain?: EIP712DomainFn<transactionSerializable, TransactionSignable> | undefined;
8
8
  }>;
9
9
  //# sourceMappingURL=chain.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../zksync/types/chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAErE,MAAM,MAAM,WAAW,CACrB,UAAU,SAAS,eAAe,GAAG,SAAS,GAAG,eAAe,GAAG,SAAS,EAC5E,mBAAmB,GAAG,EAAE,IACtB,KAAK,CACP,UAAU,EACV;IACE,kDAAkD;IAClD,eAAe,CAAC,EACZ,cAAc,CACZ,UAAU,SAAS,eAAe,GAC9B,UAAU,CAAC,oBAAoB,CAAC,SAAS,cAAc,GACrD,6BAA6B,GAC3B,UAAU,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,GAC3D,6BAA6B,GAC/B,6BAA6B,EACjC,mBAAmB,CACpB,GACD,SAAS,CAAA;CACd,CACF,CAAA"}
1
+ {"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../zksync/types/chain.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAA;AAErE,MAAM,MAAM,WAAW,CACrB,UAAU,SAAS,eAAe,GAAG,SAAS,GAAG,eAAe,GAAG,SAAS,EAC5E,mBAAmB,GAAG,EAAE,EAExB,uBAAuB,SACrB,6BAA6B,GAAG,UAAU,SAAS,eAAe,GAChE,UAAU,CAAC,oBAAoB,CAAC,SAAS,cAAc,GACrD,6BAA6B,GAC3B,UAAU,CAAC,UAAU,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,GAC3D,6BAA6B,GAC/B,6BAA6B,IAC/B,KAAK,CACP,UAAU,EACV;IACE,kDAAkD;IAClD,eAAe,CAAC,EACZ,cAAc,CAAC,uBAAuB,EAAE,mBAAmB,CAAC,GAC5D,SAAS,CAAA;CACd,CACF,CAAA"}
@@ -17,14 +17,14 @@ export type CommonDataRawBlockTransaction = {
17
17
  };
18
18
  export type RawBlockTransactions = {
19
19
  common_data: {
20
- L1?: {
20
+ L1?: ({
21
21
  serialId: number;
22
22
  deadlineBlock: number;
23
23
  layer2TipFee: Hex;
24
24
  fullFee: Hex;
25
25
  opProcessingType: string;
26
26
  priorityQueueType: string;
27
- } & CommonDataRawBlockTransaction;
27
+ } & CommonDataRawBlockTransaction) | undefined;
28
28
  L2?: {
29
29
  nonce: number;
30
30
  fee: ZkSyncFee<Hex>;
@@ -39,10 +39,10 @@ export type RawBlockTransactions = {
39
39
  paymaster: Address;
40
40
  paymasterInput: Uint8Array;
41
41
  };
42
- };
43
- ProtocolUpgrade?: {
42
+ } | undefined;
43
+ ProtocolUpgrade?: ({
44
44
  upgradeId: string;
45
- } & CommonDataRawBlockTransaction;
45
+ } & CommonDataRawBlockTransaction) | undefined;
46
46
  };
47
47
  execute: {
48
48
  calldata: Hash;
@@ -1 +1 @@
1
- {"version":3,"file":"eip1193.d.ts","sourceRoot":"","sources":["../../../zksync/types/eip1193.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACtC,OAAO,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MA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B,CAAA;QAC7B,UAAU,EAAE,CAAC,MAAM,CAAC,CAAA;QACpB,UAAU,EAAE,kBAAkB,CAAA;KAC/B;IACD;QACE,MAAM,EAAE,2BAA2B,CAAA;QACnC,UAAU,EAAE,CAAC,IAAI,CAAC,CAAA;QAClB,UAAU,EAAE,wBAAwB,CAAA;KACrC;IACD;QACE,MAAM,EAAE,0BAA0B,CAAA;QAClC,UAAU,EAAE,SAAS,CAAA;QACrB,UAAU,EAAE,OAAO,CAAA;KACpB;IACD;QACE,MAAM,EAAE,2BAA2B,CAAA;QACnC,UAAU,EAAE,SAAS,CAAA;QACrB,UAAU,EAAE,OAAO,CAAA;KACpB;CACF,CAAA"}
@@ -1,13 +1,18 @@
1
1
  import type { Abi } from 'abitype';
2
+ import type { ErrorType } from '../../../errors/utils.js';
2
3
  import type { ContractConstructorArgs } from '../../../types/contract.js';
3
4
  import type { Hash } from '../../../types/misc.js';
4
5
  import type { EncodeDeployDataParameters as EncodeDeployDataParameters_, EncodeDeployDataReturnType } from '../../../utils/abi/encodeDeployData.js';
6
+ import { type EncodeFunctionDataErrorType } from '../../../utils/abi/encodeFunctionData.js';
5
7
  import type { ContractDeploymentType } from '../../types/contract.js';
8
+ import { type HashBytecodeErrorType } from '../hashBytecode.js';
9
+ /** @internal */
6
10
  export type EncodeDeployDataParameters<abi extends Abi | readonly unknown[] = Abi, hasConstructor = abi extends Abi ? Abi extends abi ? true : [Extract<abi[number], {
7
11
  type: 'constructor';
8
12
  }>] extends [never] ? false : true : true, allArgs = ContractConstructorArgs<abi>> = EncodeDeployDataParameters_<abi, hasConstructor, allArgs> & {
9
13
  deploymentType?: ContractDeploymentType | undefined;
10
14
  salt?: Hash | undefined;
11
15
  };
16
+ export type EncodeDeployDataErrorType = EncodeFunctionDataErrorType | HashBytecodeErrorType | ErrorType;
12
17
  export declare function encodeDeployData<const abi extends Abi | readonly unknown[]>(parameters: EncodeDeployDataParameters<abi>): EncodeDeployDataReturnType;
13
18
  //# sourceMappingURL=encodeDeployData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"encodeDeployData.d.ts","sourceRoot":"","sources":["../../../../zksync/utils/abi/encodeDeployData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAOlC,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAA;AACzE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAA;AAGlD,OAAO,KAAK,EACV,0BAA0B,IAAI,2BAA2B,EACzD,0BAA0B,EAC3B,MAAM,wCAAwC,CAAA;AAK/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAKrE,MAAM,MAAM,0BAA0B,CACpC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC1C,cAAc,GAAG,GAAG,SAAS,GAAG,GAC5B,GAAG,SAAS,GAAG,GACb,IAAI,GACJ,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAC7D,KAAK,GACL,IAAI,GACR,IAAI,EACR,OAAO,GAAG,uBAAuB,CAAC,GAAG,CAAC,IACpC,2BAA2B,CAAC,GAAG,EAAE,cAAc,EAAE,OAAO,CAAC,GAAG;IAC9D,cAAc,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAA;IACnD,IAAI,CAAC,EAAE,IAAI,GAAG,SAAS,CAAA;CACxB,CAAA;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,GAAG,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EACzE,UAAU,EAAE,0BAA0B,CAAC,GAAG,CAAC,GAC1C,0BAA0B,CAsC5B"}
1
+ {"version":3,"file":"encodeDeployData.d.ts","sourceRoot":"","sources":["../../../../zksync/utils/abi/encodeDeployData.ts"],"names":[],"mappings":"A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,CAAC,GAAG,CAAC,GAC1C,0BAA0B,CAsC5B"}
@@ -3,7 +3,9 @@ import type { ExactPartial } from '../../types/utils.js';
3
3
  import { type AssertRequestErrorType } from '../../utils/transaction/assertRequest.js';
4
4
  import type { zkSync } from '../../zksync/chains.js';
5
5
  import type { SendTransactionParameters } from '../actions/sendTransaction.js';
6
+ import { type InvalidEip712TransactionErrorType } from '../errors/transaction.js';
6
7
  export type AssertEip712RequestParameters = ExactPartial<SendTransactionParameters<typeof zkSync>>;
7
- export type AssertEip712RequestErrorType = AssertRequestErrorType | ErrorType;
8
+ /** @internal */
9
+ export type AssertEip712RequestErrorType = InvalidEip712TransactionErrorType | AssertRequestErrorType | ErrorType;
8
10
  export declare function assertEip712Request(args: AssertEip712RequestParameters): void;
9
11
  //# sourceMappingURL=assertEip712Request.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"assertEip712Request.d.ts","sourceRoot":"","sources":["../../../zksync/utils/assertEip712Request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,0CAA0C,CAAA;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AAI9E,MAAM,MAAM,6BAA6B,GAAG,YAAY,CACtD,yBAAyB,CAAC,OAAO,MAAM,CAAC,CACzC,CAAA;AAED,MAAM,MAAM,4BAA4B,GAAG,sBAAsB,GAAG,SAAS,CAAA;AAE7E,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,6BAA6B,QAItE"}
1
+ {"version":3,"file":"assertEip712Request.d.ts","sourceRoot":"","sources":["../../../zksync/utils/assertEip712Request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AACxD,OAAO,EACL,KAAK,sBAAsB,EAE5B,MAAM,0CAA0C,CAAA;AACjD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AACpD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AAC9E,OAAO,EAEL,KAAK,iCAAiC,EACvC,MAAM,0BAA0B,CAAA;AAGjC,MAAM,MAAM,6BAA6B,GAAG,YAAY,CACtD,yBAAyB,CAAC,OAAO,MAAM,CAAC,CACzC,CAAA;AAED,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GACpC,iCAAiC,GACjC,sBAAsB,GACtB,SAAS,CAAA;AAEb,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,6BAA6B,QAItE"}
@@ -1,3 +1,8 @@
1
+ import type { ErrorType } from '../../errors/utils.js';
1
2
  import type { Hex } from '../../types/misc.js';
3
+ import { type ToBytesErrorType } from '../../utils/encoding/toBytes.js';
4
+ import { type Sha256ErrorType } from '../../utils/hash/sha256.js';
5
+ import { type BytecodeLengthExceedsMaxSizeErrorType, type BytecodeLengthInWordsMustBeOddErrorType, type BytecodeLengthMustBeDivisibleBy32ErrorType } from '../errors/bytecode.js';
6
+ export type HashBytecodeErrorType = BytecodeLengthExceedsMaxSizeErrorType | BytecodeLengthInWordsMustBeOddErrorType | BytecodeLengthMustBeDivisibleBy32ErrorType | Sha256ErrorType | ToBytesErrorType | ErrorType;
2
7
  export declare function hashBytecode(bytecode: Hex): Uint8Array;
3
8
  //# sourceMappingURL=hashBytecode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hashBytecode.d.ts","sourceRoot":"","sources":["../../../zksync/utils/hashBytecode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAW9C,wBAAgB,YAAY,CAAC,QAAQ,EAAE,GAAG,GAAG,UAAU,CAoCtD"}
1
+ {"version":3,"file":"hashBytecode.d.ts","sourceRoot":"","sources":["../../../zksync/utils/hashBytecode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAE9C,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,iCAAiC,CAAA;AAChF,OAAO,EAAE,KAAK,eAAe,EAAU,MAAM,4BAA4B,CAAA;AAEzE,OAAO,EAEL,KAAK,qCAAqC,EAE1C,KAAK,uCAAuC,EAE5C,KAAK,0CAA0C,EAChD,MAAM,uBAAuB,CAAA;AAE9B,MAAM,MAAM,qBAAqB,GAC7B,qCAAqC,GACrC,uCAAuC,GACvC,0CAA0C,GAC1C,eAAe,GACf,gBAAgB,GAChB,SAAS,CAAA;AAEb,wBAAgB,YAAY,CAAC,QAAQ,EAAE,GAAG,GAAG,UAAU,CAoCtD"}
@@ -1,8 +1,7 @@
1
- import type { HDKey } from '@scure/bip32'
2
-
3
1
  import { type ToHexErrorType, toHex } from '../utils/encoding/toHex.js'
4
2
 
5
3
  import type { ErrorType } from '../errors/utils.js'
4
+ import type { HDKey } from '../types/account.js'
6
5
  import {
7
6
  type PrivateKeyToAccountErrorType,
8
7
  privateKeyToAccount,
package/accounts/types.ts CHANGED
@@ -1,6 +1,6 @@
1
- import type { HDKey } from '@scure/bip32'
2
1
  import type { Address, TypedData } from 'abitype'
3
2
 
3
+ import type { HDKey } from '../types/account.js'
4
4
  import type { Hash, Hex, SignableMessage } from '../types/misc.js'
5
5
  import type {
6
6
  TransactionSerializable,
@@ -67,10 +67,6 @@ import type {
67
67
  AssertRequestParameters,
68
68
  } from '../../utils/transaction/assertRequest.js'
69
69
 
70
- export type FormattedCall<
71
- TChain extends Chain | undefined = Chain | undefined,
72
- > = FormattedTransactionRequest<TChain>
73
-
74
70
  export type CallParameters<
75
71
  TChain extends Chain | undefined = Chain | undefined,
76
72
  > = UnionOmit<FormattedCall<TChain>, 'from'> & {
@@ -92,6 +88,8 @@ export type CallParameters<
92
88
  blockTag?: BlockTag | undefined
93
89
  }
94
90
  )
91
+ type FormattedCall<TChain extends Chain | undefined = Chain | undefined> =
92
+ FormattedTransactionRequest<TChain>
95
93
 
96
94
  export type CallReturnType = { data: Hex | undefined }
97
95
 
@@ -256,7 +254,7 @@ type ScheduleMulticallParameters<TChain extends Chain | undefined> = Pick<
256
254
  to: Address
257
255
  }
258
256
 
259
- export type ScheduleMulticallErrorType =
257
+ type ScheduleMulticallErrorType =
260
258
  | GetChainContractAddressErrorType
261
259
  | NumberToHexErrorType
262
260
  | CreateBatchSchedulerErrorType
@@ -345,8 +343,10 @@ async function scheduleMulticall<TChain extends Chain | undefined>(
345
343
  return { data: returnData }
346
344
  }
347
345
 
346
+ /** @internal */
348
347
  export type GetRevertErrorDataErrorType = ErrorType
349
348
 
349
+ /** @internal */
350
350
  export function getRevertErrorData(err: unknown) {
351
351
  if (!(err instanceof BaseError)) return undefined
352
352
  const error = err.walk() as RawContractError
@@ -37,10 +37,6 @@ import {
37
37
  prepareTransactionRequest,
38
38
  } from '../wallet/prepareTransactionRequest.js'
39
39
 
40
- export type FormattedEstimateGas<
41
- TChain extends Chain | undefined = Chain | undefined,
42
- > = FormattedTransactionRequest<TChain>
43
-
44
40
  export type EstimateGasParameters<
45
41
  TChain extends Chain | undefined = Chain | undefined,
46
42
  > = UnionOmit<FormattedEstimateGas<TChain>, 'from'> & {
@@ -61,6 +57,9 @@ export type EstimateGasParameters<
61
57
  blockTag?: BlockTag | undefined
62
58
  }
63
59
  )
60
+ type FormattedEstimateGas<
61
+ TChain extends Chain | undefined = Chain | undefined,
62
+ > = FormattedTransactionRequest<TChain>
64
63
 
65
64
  export type EstimateGasReturnType = bigint
66
65
 
@@ -3,7 +3,11 @@ import type { Transport } from '../../clients/transports/createTransport.js'
3
3
  import type { ErrorType } from '../../errors/utils.js'
4
4
  import type { Chain } from '../../types/chain.js'
5
5
  import type { RequestErrorType } from '../../utils/buildRequest.js'
6
- import { getCache, withCache } from '../../utils/promise/withCache.js'
6
+ import {
7
+ type GetCacheErrorType,
8
+ getCache,
9
+ withCache,
10
+ } from '../../utils/promise/withCache.js'
7
11
 
8
12
  export type GetBlockNumberParameters = {
9
13
  /** Time (in ms) that cached block number will remain in memory. */
@@ -16,6 +20,10 @@ export type GetBlockNumberErrorType = RequestErrorType | ErrorType
16
20
 
17
21
  const cacheKey = (id: string) => `blockNumber.${id}`
18
22
 
23
+ /** @internal */
24
+ export type GetBlockNumberCacheErrorType = GetCacheErrorType | ErrorType
25
+
26
+ /** @internal */
19
27
  export function getBlockNumberCache(id: string) {
20
28
  return getCache(cacheKey(id))
21
29
  }
@@ -24,9 +24,9 @@ export type SendUnsignedTransactionReturnType = Hash
24
24
  export type SendUnsignedTransactionErrorType = RequestErrorType | ErrorType
25
25
 
26
26
  /**
27
- * Returns the details of all transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
27
+ * Executes a transaction regardless of the signature.
28
28
  *
29
- * - Docs: https://viem.sh/docs/actions/test/getTxpoolContent
29
+ * - Docs: https://viem.sh/docs/actions/test/sendUnsignedTransaction#sendunsignedtransaction
30
30
  *
31
31
  * @param client - Client to use
32
32
  * @param parameters – {@link SendUnsignedTransactionParameters}
@@ -115,26 +115,6 @@ export type PrepareTransactionRequestParameters<
115
115
  GetChainParameter<chain, chainOverride> &
116
116
  GetTransactionRequestKzgParameter<request> & { chainId?: number | undefined }
117
117
 
118
- export type PrepareTransactionRequestReturnType_<
119
- chain extends Chain | undefined = Chain | undefined,
120
- account extends Account | undefined = Account | undefined,
121
- chainOverride extends Chain | undefined = Chain | undefined,
122
- accountOverride extends Account | Address | undefined =
123
- | Account
124
- | Address
125
- | undefined,
126
- ///
127
- _derivedAccount extends Account | Address | undefined = DeriveAccount<
128
- account,
129
- accountOverride
130
- >,
131
- _derivedChain extends Chain | undefined = DeriveChain<chain, chainOverride>,
132
- > = UnionOmit<FormattedTransactionRequest<_derivedChain>, 'from'> &
133
- GetChainParameter<chain, chainOverride> &
134
- (_derivedAccount extends Account
135
- ? { account: _derivedAccount; from: Address }
136
- : { account?: undefined; from?: undefined })
137
-
138
118
  export type PrepareTransactionRequestReturnType<
139
119
  chain extends Chain | undefined = Chain | undefined,
140
120
  account extends Account | undefined = Account | undefined,
@@ -22,6 +22,7 @@ import type { IsHexErrorType } from '../../utils/data/isHex.js'
22
22
  import type { StringifyErrorType } from '../../utils/stringify.js'
23
23
  import {
24
24
  type GetTypesForEIP712DomainErrorType,
25
+ type SerializeTypedDataErrorType,
25
26
  type ValidateTypedDataErrorType,
26
27
  getTypesForEIP712Domain,
27
28
  serializeTypedData,
@@ -48,6 +49,7 @@ export type SignTypedDataErrorType =
48
49
  | SignTypedDataErrorType_account
49
50
  | IsHexErrorType
50
51
  | RequestErrorType
52
+ | SerializeTypedDataErrorType
51
53
  | ErrorType
52
54
 
53
55
  /**