viem 2.35.1 → 2.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (626) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/_cjs/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js.map +1 -1
  3. package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js +1 -1
  4. package/_cjs/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
  5. package/_cjs/account-abstraction/clients/createBundlerClient.js.map +1 -1
  6. package/_cjs/account-abstraction/index.js +9 -9
  7. package/_cjs/account-abstraction/index.js.map +1 -1
  8. package/_cjs/accounts/hdKeyToAccount.js.map +1 -1
  9. package/_cjs/accounts/index.js +24 -24
  10. package/_cjs/accounts/index.js.map +1 -1
  11. package/_cjs/accounts/privateKeyToAccount.js.map +1 -1
  12. package/_cjs/accounts/toAccount.js.map +1 -1
  13. package/_cjs/accounts/utils/signTypedData.js.map +1 -1
  14. package/_cjs/actions/getContract.js.map +1 -1
  15. package/_cjs/actions/index.js +76 -76
  16. package/_cjs/actions/index.js.map +1 -1
  17. package/_cjs/actions/public/call.js +24 -14
  18. package/_cjs/actions/public/call.js.map +1 -1
  19. package/_cjs/actions/public/createAccessList.js.map +1 -1
  20. package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
  21. package/_cjs/actions/public/multicall.js +20 -16
  22. package/_cjs/actions/public/multicall.js.map +1 -1
  23. package/_cjs/actions/public/simulateBlocks.js +1 -1
  24. package/_cjs/actions/public/simulateBlocks.js.map +1 -1
  25. package/_cjs/actions/public/simulateContract.js.map +1 -1
  26. package/_cjs/actions/public/verifyMessage.js.map +1 -1
  27. package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
  28. package/_cjs/actions/public/watchContractEvent.js.map +1 -1
  29. package/_cjs/actions/public/watchEvent.js +4 -4
  30. package/_cjs/actions/public/watchEvent.js.map +1 -1
  31. package/_cjs/actions/siwe/verifySiweMessage.js.map +1 -1
  32. package/_cjs/actions/wallet/deployContract.js.map +1 -1
  33. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  34. package/_cjs/actions/wallet/signTransaction.js.map +1 -1
  35. package/_cjs/actions/wallet/waitForCallsStatus.js +1 -1
  36. package/_cjs/actions/wallet/waitForCallsStatus.js.map +1 -1
  37. package/_cjs/celo/parsers.js +1 -1
  38. package/_cjs/celo/parsers.js.map +1 -1
  39. package/_cjs/chains/index.js +45 -45
  40. package/_cjs/chains/index.js.map +1 -1
  41. package/_cjs/clients/createClient.js.map +1 -1
  42. package/_cjs/clients/decorators/test.js.map +1 -1
  43. package/_cjs/constants/contracts.js +2 -1
  44. package/_cjs/constants/contracts.js.map +1 -1
  45. package/_cjs/ens/index.js +7 -7
  46. package/_cjs/ens/index.js.map +1 -1
  47. package/_cjs/errors/contract.js +1 -1
  48. package/_cjs/errors/contract.js.map +1 -1
  49. package/_cjs/errors/version.js +1 -1
  50. package/_cjs/experimental/erc7739/actions/signMessage.js +1 -1
  51. package/_cjs/experimental/erc7739/actions/signMessage.js.map +1 -1
  52. package/_cjs/experimental/erc7739/utils/hashMessage.js +1 -1
  53. package/_cjs/experimental/erc7739/utils/hashMessage.js.map +1 -1
  54. package/_cjs/experimental/erc7821/index.js +3 -3
  55. package/_cjs/experimental/erc7821/index.js.map +1 -1
  56. package/_cjs/experimental/index.js +13 -13
  57. package/_cjs/experimental/index.js.map +1 -1
  58. package/_cjs/index.js +262 -262
  59. package/_cjs/index.js.map +1 -1
  60. package/_cjs/linea/index.js.map +1 -1
  61. package/_cjs/node/index.js +3 -3
  62. package/_cjs/node/index.js.map +1 -1
  63. package/_cjs/nonce/index.js.map +1 -1
  64. package/_cjs/op-stack/index.js +14 -14
  65. package/_cjs/op-stack/index.js.map +1 -1
  66. package/_cjs/siwe/index.js +3 -3
  67. package/_cjs/siwe/index.js.map +1 -1
  68. package/_cjs/utils/abi/decodeAbiParameters.js +2 -2
  69. package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
  70. package/_cjs/utils/abi/decodeDeployData.js.map +1 -1
  71. package/_cjs/utils/abi/decodeEventLog.js +1 -1
  72. package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
  73. package/_cjs/utils/abi/decodeFunctionResult.js.map +1 -1
  74. package/_cjs/utils/abi/encodeAbiParameters.js +2 -2
  75. package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
  76. package/_cjs/utils/abi/encodeErrorResult.js.map +1 -1
  77. package/_cjs/utils/abi/encodeEventTopics.js.map +1 -1
  78. package/_cjs/utils/abi/encodeFunctionData.js.map +1 -1
  79. package/_cjs/utils/abi/encodeFunctionResult.js.map +1 -1
  80. package/_cjs/utils/abi/encodePacked.js +3 -3
  81. package/_cjs/utils/abi/encodePacked.js.map +1 -1
  82. package/_cjs/utils/abi/getAbiItem.js +1 -1
  83. package/_cjs/utils/abi/getAbiItem.js.map +1 -1
  84. package/_cjs/utils/abi/prepareEncodeFunctionData.js.map +1 -1
  85. package/_cjs/utils/address/getContractAddress.js.map +1 -1
  86. package/_cjs/utils/buildRequest.js +1 -1
  87. package/_cjs/utils/buildRequest.js.map +1 -1
  88. package/_cjs/utils/ccip.js.map +1 -1
  89. package/_cjs/utils/ens/avatar/utils.js +3 -3
  90. package/_cjs/utils/ens/avatar/utils.js.map +1 -1
  91. package/_cjs/utils/filters/createFilterRequestScope.js.map +1 -1
  92. package/_cjs/utils/hash/hashSignature.js.map +1 -1
  93. package/_cjs/utils/index.js +134 -134
  94. package/_cjs/utils/index.js.map +1 -1
  95. package/_cjs/utils/poll.js +1 -1
  96. package/_cjs/utils/poll.js.map +1 -1
  97. package/_cjs/utils/promise/withCache.js +1 -1
  98. package/_cjs/utils/promise/withCache.js.map +1 -1
  99. package/_cjs/utils/promise/withTimeout.js.map +1 -1
  100. package/_cjs/utils/rpc/socket.js.map +1 -1
  101. package/_cjs/utils/signature/recoverAddress.js.map +1 -1
  102. package/_cjs/utils/signature/recoverMessageAddress.js.map +1 -1
  103. package/_cjs/utils/signature/recoverTypedDataAddress.js.map +1 -1
  104. package/_cjs/utils/signature/verifyHash.js.map +1 -1
  105. package/_cjs/utils/signature/verifyMessage.js.map +1 -1
  106. package/_cjs/utils/signature/verifyTypedData.js.map +1 -1
  107. package/_cjs/utils/siwe/createSiweMessage.js +1 -1
  108. package/_cjs/utils/siwe/createSiweMessage.js.map +1 -1
  109. package/_cjs/utils/siwe/utils.js +3 -3
  110. package/_cjs/utils/siwe/utils.js.map +1 -1
  111. package/_cjs/utils/typedData.js +3 -3
  112. package/_cjs/utils/typedData.js.map +1 -1
  113. package/_cjs/zksync/actions/claimFailedDeposit.js.map +1 -1
  114. package/_cjs/zksync/actions/sendTransaction.js.map +1 -1
  115. package/_cjs/zksync/actions/signTransaction.js.map +1 -1
  116. package/_cjs/zksync/decorators/publicL2.js.map +1 -1
  117. package/_cjs/zksync/index.js +28 -28
  118. package/_cjs/zksync/index.js.map +1 -1
  119. package/_cjs/zksync/utils/abi/encodeDeployData.js.map +1 -1
  120. package/_esm/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.js.map +1 -1
  121. package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js +1 -1
  122. package/_esm/account-abstraction/actions/bundler/prepareUserOperation.js.map +1 -1
  123. package/_esm/account-abstraction/clients/createBundlerClient.js.map +1 -1
  124. package/_esm/account-abstraction/index.js +4 -4
  125. package/_esm/account-abstraction/index.js.map +1 -1
  126. package/_esm/accounts/hdKeyToAccount.js.map +1 -1
  127. package/_esm/accounts/index.js +8 -8
  128. package/_esm/accounts/index.js.map +1 -1
  129. package/_esm/accounts/privateKeyToAccount.js.map +1 -1
  130. package/_esm/accounts/toAccount.js.map +1 -1
  131. package/_esm/accounts/utils/signTypedData.js.map +1 -1
  132. package/_esm/accounts/wordlists.js +1 -1
  133. package/_esm/accounts/wordlists.js.map +1 -1
  134. package/_esm/actions/getContract.js.map +1 -1
  135. package/_esm/actions/index.js +36 -36
  136. package/_esm/actions/index.js.map +1 -1
  137. package/_esm/actions/public/call.js +25 -15
  138. package/_esm/actions/public/call.js.map +1 -1
  139. package/_esm/actions/public/createAccessList.js.map +1 -1
  140. package/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
  141. package/_esm/actions/public/multicall.js +20 -16
  142. package/_esm/actions/public/multicall.js.map +1 -1
  143. package/_esm/actions/public/simulateBlocks.js +1 -1
  144. package/_esm/actions/public/simulateBlocks.js.map +1 -1
  145. package/_esm/actions/public/simulateContract.js.map +1 -1
  146. package/_esm/actions/public/verifyHash.js.map +1 -1
  147. package/_esm/actions/public/verifyMessage.js.map +1 -1
  148. package/_esm/actions/public/waitForTransactionReceipt.js +0 -1
  149. package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
  150. package/_esm/actions/public/watchContractEvent.js.map +1 -1
  151. package/_esm/actions/public/watchEvent.js +4 -4
  152. package/_esm/actions/public/watchEvent.js.map +1 -1
  153. package/_esm/actions/siwe/verifySiweMessage.js.map +1 -1
  154. package/_esm/actions/wallet/deployContract.js.map +1 -1
  155. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  156. package/_esm/actions/wallet/sendTransaction.js.map +1 -1
  157. package/_esm/actions/wallet/signMessage.js.map +1 -1
  158. package/_esm/actions/wallet/signTransaction.js.map +1 -1
  159. package/_esm/actions/wallet/signTypedData.js.map +1 -1
  160. package/_esm/actions/wallet/waitForCallsStatus.js +1 -1
  161. package/_esm/actions/wallet/waitForCallsStatus.js.map +1 -1
  162. package/_esm/celo/parsers.js +1 -1
  163. package/_esm/celo/parsers.js.map +1 -1
  164. package/_esm/chains/index.js +17 -17
  165. package/_esm/chains/index.js.map +1 -1
  166. package/_esm/clients/createClient.js.map +1 -1
  167. package/_esm/clients/decorators/test.js.map +1 -1
  168. package/_esm/clients/transports/custom.js.map +1 -1
  169. package/_esm/clients/transports/fallback.js.map +1 -1
  170. package/_esm/clients/transports/http.js.map +1 -1
  171. package/_esm/clients/transports/ipc.js.map +1 -1
  172. package/_esm/clients/transports/webSocket.js.map +1 -1
  173. package/_esm/constants/contracts.js +1 -0
  174. package/_esm/constants/contracts.js.map +1 -1
  175. package/_esm/ens/index.js +3 -3
  176. package/_esm/ens/index.js.map +1 -1
  177. package/_esm/errors/contract.js +1 -1
  178. package/_esm/errors/contract.js.map +1 -1
  179. package/_esm/errors/version.js +1 -1
  180. package/_esm/experimental/erc7739/actions/signMessage.js +1 -1
  181. package/_esm/experimental/erc7739/actions/signMessage.js.map +1 -1
  182. package/_esm/experimental/erc7739/utils/hashMessage.js +1 -1
  183. package/_esm/experimental/erc7739/utils/hashMessage.js.map +1 -1
  184. package/_esm/experimental/erc7821/index.js +1 -1
  185. package/_esm/experimental/erc7821/index.js.map +1 -1
  186. package/_esm/experimental/index.js +16 -16
  187. package/_esm/experimental/index.js.map +1 -1
  188. package/_esm/index.js +100 -100
  189. package/_esm/index.js.map +1 -1
  190. package/_esm/linea/index.js.map +1 -1
  191. package/_esm/node/index.js +1 -1
  192. package/_esm/node/index.js.map +1 -1
  193. package/_esm/node/trustedSetups.js +1 -0
  194. package/_esm/node/trustedSetups.js.map +1 -1
  195. package/_esm/nonce/index.js.map +1 -1
  196. package/_esm/op-stack/actions/estimateDepositTransactionGas.js +1 -1
  197. package/_esm/op-stack/actions/estimateDepositTransactionGas.js.map +1 -1
  198. package/_esm/op-stack/actions/estimateFinalizeWithdrawalGas.js +1 -1
  199. package/_esm/op-stack/actions/estimateFinalizeWithdrawalGas.js.map +1 -1
  200. package/_esm/op-stack/actions/estimateInitiateWithdrawalGas.js +1 -1
  201. package/_esm/op-stack/actions/estimateInitiateWithdrawalGas.js.map +1 -1
  202. package/_esm/op-stack/actions/estimateProveWithdrawalGas.js +1 -1
  203. package/_esm/op-stack/actions/estimateProveWithdrawalGas.js.map +1 -1
  204. package/_esm/op-stack/index.js +7 -7
  205. package/_esm/op-stack/index.js.map +1 -1
  206. package/_esm/siwe/index.js +1 -1
  207. package/_esm/siwe/index.js.map +1 -1
  208. package/_esm/utils/abi/decodeAbiParameters.js +2 -2
  209. package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
  210. package/_esm/utils/abi/decodeDeployData.js.map +1 -1
  211. package/_esm/utils/abi/decodeEventLog.js +1 -1
  212. package/_esm/utils/abi/decodeEventLog.js.map +1 -1
  213. package/_esm/utils/abi/decodeFunctionResult.js.map +1 -1
  214. package/_esm/utils/abi/encodeAbiParameters.js +2 -2
  215. package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
  216. package/_esm/utils/abi/encodeErrorResult.js.map +1 -1
  217. package/_esm/utils/abi/encodeEventTopics.js.map +1 -1
  218. package/_esm/utils/abi/encodeFunctionData.js.map +1 -1
  219. package/_esm/utils/abi/encodeFunctionResult.js.map +1 -1
  220. package/_esm/utils/abi/encodePacked.js +3 -3
  221. package/_esm/utils/abi/encodePacked.js.map +1 -1
  222. package/_esm/utils/abi/getAbiItem.js +1 -1
  223. package/_esm/utils/abi/getAbiItem.js.map +1 -1
  224. package/_esm/utils/abi/prepareEncodeFunctionData.js.map +1 -1
  225. package/_esm/utils/address/getContractAddress.js.map +1 -1
  226. package/_esm/utils/buildRequest.js +2 -2
  227. package/_esm/utils/buildRequest.js.map +1 -1
  228. package/_esm/utils/ccip.js.map +1 -1
  229. package/_esm/utils/encoding/fromBytes.js.map +1 -1
  230. package/_esm/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
  231. package/_esm/utils/ens/avatar/utils.js +3 -4
  232. package/_esm/utils/ens/avatar/utils.js.map +1 -1
  233. package/_esm/utils/ens/namehash.js.map +1 -1
  234. package/_esm/utils/filters/createFilterRequestScope.js.map +1 -1
  235. package/_esm/utils/hash/hashSignature.js.map +1 -1
  236. package/_esm/utils/index.js +55 -55
  237. package/_esm/utils/index.js.map +1 -1
  238. package/_esm/utils/poll.js +1 -1
  239. package/_esm/utils/poll.js.map +1 -1
  240. package/_esm/utils/promise/withCache.js +1 -1
  241. package/_esm/utils/promise/withCache.js.map +1 -1
  242. package/_esm/utils/promise/withTimeout.js.map +1 -1
  243. package/_esm/utils/rpc/compat.js.map +1 -1
  244. package/_esm/utils/rpc/ipc.js.map +1 -1
  245. package/_esm/utils/rpc/socket.js +1 -0
  246. package/_esm/utils/rpc/socket.js.map +1 -1
  247. package/_esm/utils/rpc/webSocket.js.map +1 -1
  248. package/_esm/utils/signature/hashTypedData.js.map +1 -1
  249. package/_esm/utils/signature/recoverAddress.js.map +1 -1
  250. package/_esm/utils/signature/recoverMessageAddress.js.map +1 -1
  251. package/_esm/utils/signature/recoverTypedDataAddress.js.map +1 -1
  252. package/_esm/utils/signature/toPrefixedMessage.js.map +1 -1
  253. package/_esm/utils/signature/verifyHash.js.map +1 -1
  254. package/_esm/utils/signature/verifyMessage.js.map +1 -1
  255. package/_esm/utils/signature/verifyTypedData.js.map +1 -1
  256. package/_esm/utils/siwe/createSiweMessage.js +1 -1
  257. package/_esm/utils/siwe/createSiweMessage.js.map +1 -1
  258. package/_esm/utils/siwe/utils.js +3 -3
  259. package/_esm/utils/siwe/utils.js.map +1 -1
  260. package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
  261. package/_esm/utils/typedData.js +3 -3
  262. package/_esm/utils/typedData.js.map +1 -1
  263. package/_esm/zksync/actions/claimFailedDeposit.js.map +1 -1
  264. package/_esm/zksync/actions/deposit.js.map +1 -1
  265. package/_esm/zksync/actions/requestExecute.js.map +1 -1
  266. package/_esm/zksync/actions/sendTransaction.js.map +1 -1
  267. package/_esm/zksync/actions/signTransaction.js.map +1 -1
  268. package/_esm/zksync/decorators/publicL2.js.map +1 -1
  269. package/_esm/zksync/index.js +13 -13
  270. package/_esm/zksync/index.js.map +1 -1
  271. package/_esm/zksync/utils/abi/encodeDeployData.js.map +1 -1
  272. package/_types/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.d.ts.map +1 -1
  273. package/_types/account-abstraction/accounts/types.d.ts.map +1 -1
  274. package/_types/account-abstraction/clients/createBundlerClient.d.ts +1 -2
  275. package/_types/account-abstraction/clients/createBundlerClient.d.ts.map +1 -1
  276. package/_types/account-abstraction/index.d.ts +11 -11
  277. package/_types/account-abstraction/index.d.ts.map +1 -1
  278. package/_types/accounts/hdKeyToAccount.d.ts +1 -1
  279. package/_types/accounts/hdKeyToAccount.d.ts.map +1 -1
  280. package/_types/accounts/index.d.ts +15 -15
  281. package/_types/accounts/index.d.ts.map +1 -1
  282. package/_types/accounts/privateKeyToAccount.d.ts +1 -1
  283. package/_types/accounts/privateKeyToAccount.d.ts.map +1 -1
  284. package/_types/accounts/toAccount.d.ts +1 -1
  285. package/_types/accounts/toAccount.d.ts.map +1 -1
  286. package/_types/accounts/utils/signTypedData.d.ts +1 -1
  287. package/_types/accounts/utils/signTypedData.d.ts.map +1 -1
  288. package/_types/actions/getContract.d.ts +1 -1
  289. package/_types/actions/getContract.d.ts.map +1 -1
  290. package/_types/actions/index.d.ts +44 -44
  291. package/_types/actions/index.d.ts.map +1 -1
  292. package/_types/actions/public/call.d.ts.map +1 -1
  293. package/_types/actions/public/createAccessList.d.ts.map +1 -1
  294. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts +1 -2
  295. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
  296. package/_types/actions/public/multicall.d.ts +8 -1
  297. package/_types/actions/public/multicall.d.ts.map +1 -1
  298. package/_types/actions/public/simulateContract.d.ts +1 -1
  299. package/_types/actions/public/simulateContract.d.ts.map +1 -1
  300. package/_types/actions/public/verifyHash.d.ts.map +1 -1
  301. package/_types/actions/public/verifyMessage.d.ts.map +1 -1
  302. package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
  303. package/_types/actions/public/watchContractEvent.d.ts +2 -2
  304. package/_types/actions/public/watchContractEvent.d.ts.map +1 -1
  305. package/_types/actions/public/watchEvent.d.ts +2 -2
  306. package/_types/actions/public/watchEvent.d.ts.map +1 -1
  307. package/_types/actions/siwe/verifySiweMessage.d.ts.map +1 -1
  308. package/_types/actions/wallet/deployContract.d.ts +2 -3
  309. package/_types/actions/wallet/deployContract.d.ts.map +1 -1
  310. package/_types/actions/wallet/prepareTransactionRequest.d.ts +1 -2
  311. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  312. package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
  313. package/_types/actions/wallet/signMessage.d.ts.map +1 -1
  314. package/_types/actions/wallet/signTransaction.d.ts.map +1 -1
  315. package/_types/actions/wallet/signTypedData.d.ts.map +1 -1
  316. package/_types/celo/chainConfig.d.ts +20 -20
  317. package/_types/celo/formatters.d.ts +10 -10
  318. package/_types/celo/parsers.d.ts.map +1 -1
  319. package/_types/celo/types.d.ts +3 -3
  320. package/_types/celo/types.d.ts.map +1 -1
  321. package/_types/chains/definitions/abstract.d.ts +13 -13
  322. package/_types/chains/definitions/abstractTestnet.d.ts +13 -13
  323. package/_types/chains/definitions/ancient8.d.ts +3 -3
  324. package/_types/chains/definitions/ancient8Sepolia.d.ts +3 -3
  325. package/_types/chains/definitions/base.d.ts +6 -6
  326. package/_types/chains/definitions/baseGoerli.d.ts +3 -3
  327. package/_types/chains/definitions/baseSepolia.d.ts +6 -6
  328. package/_types/chains/definitions/blast.d.ts +3 -3
  329. package/_types/chains/definitions/bob.d.ts +3 -3
  330. package/_types/chains/definitions/bobSepolia.d.ts +3 -3
  331. package/_types/chains/definitions/celo.d.ts +20 -20
  332. package/_types/chains/definitions/celoAlfajores.d.ts +20 -20
  333. package/_types/chains/definitions/celoSepolia.d.ts +20 -20
  334. package/_types/chains/definitions/dchain.d.ts +3 -3
  335. package/_types/chains/definitions/dchainTestnet.d.ts +3 -3
  336. package/_types/chains/definitions/elysiumTestnet.d.ts +3 -3
  337. package/_types/chains/definitions/fraxtal.d.ts +3 -3
  338. package/_types/chains/definitions/fraxtalTestnet.d.ts +3 -3
  339. package/_types/chains/definitions/funkiMainnet.d.ts +3 -3
  340. package/_types/chains/definitions/funkiSepolia.d.ts +3 -3
  341. package/_types/chains/definitions/garnet.d.ts +3 -3
  342. package/_types/chains/definitions/ink.d.ts +3 -3
  343. package/_types/chains/definitions/inkSepolia.d.ts +3 -3
  344. package/_types/chains/definitions/lisk.d.ts +3 -3
  345. package/_types/chains/definitions/liskSepolia.d.ts +3 -3
  346. package/_types/chains/definitions/metalL2.d.ts +3 -3
  347. package/_types/chains/definitions/mode.d.ts +3 -3
  348. package/_types/chains/definitions/modeTestnet.d.ts +3 -3
  349. package/_types/chains/definitions/optimism.d.ts +3 -3
  350. package/_types/chains/definitions/optimismGoerli.d.ts +3 -3
  351. package/_types/chains/definitions/optimismSepolia.d.ts +3 -3
  352. package/_types/chains/definitions/pgn.d.ts +3 -3
  353. package/_types/chains/definitions/pgnTestnet.d.ts +3 -3
  354. package/_types/chains/definitions/playfiAlbireo.d.ts +13 -13
  355. package/_types/chains/definitions/pyrope.d.ts +3 -3
  356. package/_types/chains/definitions/redstone.d.ts +3 -3
  357. package/_types/chains/definitions/rss3.d.ts +3 -3
  358. package/_types/chains/definitions/rss3Sepolia.d.ts +3 -3
  359. package/_types/chains/definitions/shape.d.ts +3 -3
  360. package/_types/chains/definitions/shapeSepolia.d.ts +3 -3
  361. package/_types/chains/definitions/snax.d.ts +3 -3
  362. package/_types/chains/definitions/snaxTestnet.d.ts +3 -3
  363. package/_types/chains/definitions/soneium.d.ts +3 -3
  364. package/_types/chains/definitions/soneiumMinato.d.ts +3 -3
  365. package/_types/chains/definitions/sophon.d.ts +13 -13
  366. package/_types/chains/definitions/sophonTestnet.d.ts +13 -13
  367. package/_types/chains/definitions/superseed.d.ts +3 -3
  368. package/_types/chains/definitions/superseedSepolia.d.ts +3 -3
  369. package/_types/chains/definitions/swellchain.d.ts +3 -3
  370. package/_types/chains/definitions/swellchainTestnet.d.ts +3 -3
  371. package/_types/chains/definitions/treasure.d.ts +13 -13
  372. package/_types/chains/definitions/treasureTopaz.d.ts +13 -13
  373. package/_types/chains/definitions/unichain.d.ts +3 -3
  374. package/_types/chains/definitions/unichainSepolia.d.ts +3 -3
  375. package/_types/chains/definitions/worldchain.d.ts +3 -3
  376. package/_types/chains/definitions/worldchainSepolia.d.ts +3 -3
  377. package/_types/chains/definitions/zircuit.d.ts +3 -3
  378. package/_types/chains/definitions/zircuitGarfieldTestnet.d.ts +3 -3
  379. package/_types/chains/definitions/zircuitTestnet.d.ts +3 -3
  380. package/_types/chains/definitions/zksync.d.ts +13 -13
  381. package/_types/chains/definitions/zksyncInMemoryNode.d.ts +13 -13
  382. package/_types/chains/definitions/zksyncLocalCustomHyperchain.d.ts +13 -13
  383. package/_types/chains/definitions/zksyncLocalHyperchain.d.ts +13 -13
  384. package/_types/chains/definitions/zksyncLocalNode.d.ts +13 -13
  385. package/_types/chains/definitions/zksyncSepoliaTestnet.d.ts +13 -13
  386. package/_types/chains/definitions/zora.d.ts +3 -3
  387. package/_types/chains/definitions/zoraSepolia.d.ts +3 -3
  388. package/_types/chains/definitions/zoraTestnet.d.ts +3 -3
  389. package/_types/chains/index.d.ts +49 -49
  390. package/_types/chains/index.d.ts.map +1 -1
  391. package/_types/clients/createClient.d.ts +2 -0
  392. package/_types/clients/createClient.d.ts.map +1 -1
  393. package/_types/clients/decorators/test.d.ts.map +1 -1
  394. package/_types/clients/transports/custom.d.ts.map +1 -1
  395. package/_types/clients/transports/fallback.d.ts.map +1 -1
  396. package/_types/clients/transports/http.d.ts.map +1 -1
  397. package/_types/clients/transports/ipc.d.ts.map +1 -1
  398. package/_types/clients/transports/webSocket.d.ts.map +1 -1
  399. package/_types/constants/contracts.d.ts +1 -0
  400. package/_types/constants/contracts.d.ts.map +1 -1
  401. package/_types/ens/index.d.ts +4 -4
  402. package/_types/ens/index.d.ts.map +1 -1
  403. package/_types/errors/version.d.ts +1 -1
  404. package/_types/experimental/erc7821/index.d.ts +1 -1
  405. package/_types/experimental/erc7821/index.d.ts.map +1 -1
  406. package/_types/experimental/index.d.ts +62 -62
  407. package/_types/experimental/index.d.ts.map +1 -1
  408. package/_types/index.d.ts +196 -196
  409. package/_types/index.d.ts.map +1 -1
  410. package/_types/linea/index.d.ts +1 -1
  411. package/_types/linea/index.d.ts.map +1 -1
  412. package/_types/node/index.d.ts +1 -1
  413. package/_types/node/index.d.ts.map +1 -1
  414. package/_types/node/trustedSetups.d.ts.map +1 -1
  415. package/_types/nonce/index.d.ts +1 -1
  416. package/_types/nonce/index.d.ts.map +1 -1
  417. package/_types/op-stack/chainConfig.d.ts +3 -3
  418. package/_types/op-stack/formatters.d.ts +3 -3
  419. package/_types/op-stack/index.d.ts +43 -43
  420. package/_types/op-stack/index.d.ts.map +1 -1
  421. package/_types/op-stack/types/transaction.d.ts +2 -2
  422. package/_types/op-stack/types/transaction.d.ts.map +1 -1
  423. package/_types/siwe/index.d.ts +4 -4
  424. package/_types/siwe/index.d.ts.map +1 -1
  425. package/_types/types/account.d.ts +1 -1
  426. package/_types/types/account.d.ts.map +1 -1
  427. package/_types/types/contract.d.ts +1 -1
  428. package/_types/types/contract.d.ts.map +1 -1
  429. package/_types/types/eip1193.d.ts +1 -2
  430. package/_types/types/eip1193.d.ts.map +1 -1
  431. package/_types/utils/abi/decodeAbiParameters.d.ts +1 -1
  432. package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
  433. package/_types/utils/abi/decodeDeployData.d.ts +1 -1
  434. package/_types/utils/abi/decodeDeployData.d.ts.map +1 -1
  435. package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
  436. package/_types/utils/abi/decodeFunctionResult.d.ts +1 -1
  437. package/_types/utils/abi/decodeFunctionResult.d.ts.map +1 -1
  438. package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
  439. package/_types/utils/abi/encodeErrorResult.d.ts +2 -2
  440. package/_types/utils/abi/encodeErrorResult.d.ts.map +1 -1
  441. package/_types/utils/abi/encodeFunctionData.d.ts +3 -3
  442. package/_types/utils/abi/encodeFunctionData.d.ts.map +1 -1
  443. package/_types/utils/abi/encodeFunctionResult.d.ts +1 -1
  444. package/_types/utils/abi/encodeFunctionResult.d.ts.map +1 -1
  445. package/_types/utils/abi/encodePacked.d.ts.map +1 -1
  446. package/_types/utils/abi/prepareEncodeFunctionData.d.ts +3 -3
  447. package/_types/utils/abi/prepareEncodeFunctionData.d.ts.map +1 -1
  448. package/_types/utils/address/getContractAddress.d.ts +1 -1
  449. package/_types/utils/address/getContractAddress.d.ts.map +1 -1
  450. package/_types/utils/buildRequest.d.ts +1 -1
  451. package/_types/utils/buildRequest.d.ts.map +1 -1
  452. package/_types/utils/ccip.d.ts +2 -2
  453. package/_types/utils/ccip.d.ts.map +1 -1
  454. package/_types/utils/encoding/fromBytes.d.ts.map +1 -1
  455. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
  456. package/_types/utils/ens/avatar/utils.d.ts.map +1 -1
  457. package/_types/utils/ens/namehash.d.ts.map +1 -1
  458. package/_types/utils/filters/createFilterRequestScope.d.ts +1 -2
  459. package/_types/utils/filters/createFilterRequestScope.d.ts.map +1 -1
  460. package/_types/utils/formatters/block.d.ts +1 -2
  461. package/_types/utils/formatters/block.d.ts.map +1 -1
  462. package/_types/utils/formatters/transaction.d.ts +2 -3
  463. package/_types/utils/formatters/transaction.d.ts.map +1 -1
  464. package/_types/utils/formatters/transactionRequest.d.ts +1 -1
  465. package/_types/utils/hash/hashSignature.d.ts +1 -1
  466. package/_types/utils/hash/hashSignature.d.ts.map +1 -1
  467. package/_types/utils/index.d.ts +64 -64
  468. package/_types/utils/index.d.ts.map +1 -1
  469. package/_types/utils/promise/withTimeout.d.ts.map +1 -1
  470. package/_types/utils/rpc/compat.d.ts.map +1 -1
  471. package/_types/utils/rpc/ipc.d.ts.map +1 -1
  472. package/_types/utils/rpc/socket.d.ts.map +1 -1
  473. package/_types/utils/rpc/webSocket.d.ts.map +1 -1
  474. package/_types/utils/signature/hashTypedData.d.ts.map +1 -1
  475. package/_types/utils/signature/recoverAddress.d.ts +1 -1
  476. package/_types/utils/signature/recoverAddress.d.ts.map +1 -1
  477. package/_types/utils/signature/recoverMessageAddress.d.ts +1 -1
  478. package/_types/utils/signature/recoverMessageAddress.d.ts.map +1 -1
  479. package/_types/utils/signature/recoverTypedDataAddress.d.ts +1 -1
  480. package/_types/utils/signature/recoverTypedDataAddress.d.ts.map +1 -1
  481. package/_types/utils/signature/toPrefixedMessage.d.ts.map +1 -1
  482. package/_types/utils/signature/verifyHash.d.ts +1 -1
  483. package/_types/utils/signature/verifyHash.d.ts.map +1 -1
  484. package/_types/utils/signature/verifyMessage.d.ts +1 -1
  485. package/_types/utils/signature/verifyMessage.d.ts.map +1 -1
  486. package/_types/utils/signature/verifyTypedData.d.ts +1 -1
  487. package/_types/utils/signature/verifyTypedData.d.ts.map +1 -1
  488. package/_types/utils/siwe/utils.d.ts.map +1 -1
  489. package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
  490. package/_types/utils/typedData.d.ts.map +1 -1
  491. package/_types/zksync/actions/claimFailedDeposit.d.ts.map +1 -1
  492. package/_types/zksync/actions/deposit.d.ts.map +1 -1
  493. package/_types/zksync/actions/requestExecute.d.ts.map +1 -1
  494. package/_types/zksync/actions/sendTransaction.d.ts +1 -1
  495. package/_types/zksync/actions/sendTransaction.d.ts.map +1 -1
  496. package/_types/zksync/actions/signTransaction.d.ts.map +1 -1
  497. package/_types/zksync/chainConfig.d.ts +13 -13
  498. package/_types/zksync/decorators/publicL2.d.ts.map +1 -1
  499. package/_types/zksync/formatters.d.ts +13 -13
  500. package/_types/zksync/index.d.ts +36 -36
  501. package/_types/zksync/index.d.ts.map +1 -1
  502. package/_types/zksync/types/chain.d.ts +1 -2
  503. package/_types/zksync/types/chain.d.ts.map +1 -1
  504. package/_types/zksync/types/transaction.d.ts +1 -1
  505. package/_types/zksync/types/transaction.d.ts.map +1 -1
  506. package/_types/zksync/utils/abi/encodeDeployData.d.ts.map +1 -1
  507. package/account-abstraction/accounts/implementations/toCoinbaseSmartAccount.ts +9 -2
  508. package/account-abstraction/accounts/types.ts +3 -1
  509. package/account-abstraction/actions/bundler/prepareUserOperation.ts +1 -1
  510. package/account-abstraction/clients/createBundlerClient.ts +1 -2
  511. package/account-abstraction/index.ts +28 -29
  512. package/accounts/hdKeyToAccount.ts +1 -2
  513. package/accounts/index.ts +42 -46
  514. package/accounts/privateKeyToAccount.ts +1 -3
  515. package/accounts/toAccount.ts +1 -2
  516. package/accounts/utils/signTypedData.ts +1 -3
  517. package/accounts/wordlists.ts +1 -1
  518. package/actions/getContract.ts +1 -2
  519. package/actions/index.ts +212 -212
  520. package/actions/public/call.ts +28 -20
  521. package/actions/public/createAccessList.ts +1 -1
  522. package/actions/public/estimateMaxPriorityFeePerGas.ts +5 -2
  523. package/actions/public/multicall.ts +30 -23
  524. package/actions/public/simulateBlocks.ts +1 -1
  525. package/actions/public/simulateContract.ts +2 -3
  526. package/actions/public/verifyHash.ts +1 -1
  527. package/actions/public/verifyMessage.ts +1 -1
  528. package/actions/public/waitForTransactionReceipt.ts +0 -1
  529. package/actions/public/watchContractEvent.ts +3 -4
  530. package/actions/public/watchEvent.ts +10 -11
  531. package/actions/siwe/verifySiweMessage.ts +1 -1
  532. package/actions/wallet/deployContract.ts +2 -4
  533. package/actions/wallet/prepareTransactionRequest.ts +5 -2
  534. package/actions/wallet/sendTransaction.ts +1 -1
  535. package/actions/wallet/signMessage.ts +1 -1
  536. package/actions/wallet/signTransaction.ts +1 -1
  537. package/actions/wallet/signTypedData.ts +2 -2
  538. package/actions/wallet/waitForCallsStatus.ts +1 -1
  539. package/celo/parsers.ts +1 -2
  540. package/celo/types.ts +10 -12
  541. package/chains/index.ts +48 -49
  542. package/clients/createClient.ts +2 -0
  543. package/clients/decorators/test.ts +3 -1
  544. package/clients/transports/custom.ts +1 -1
  545. package/clients/transports/fallback.ts +4 -4
  546. package/clients/transports/http.ts +2 -2
  547. package/clients/transports/ipc.ts +2 -2
  548. package/clients/transports/webSocket.ts +1 -1
  549. package/constants/contracts.ts +3 -0
  550. package/ens/index.ts +9 -9
  551. package/errors/contract.ts +1 -1
  552. package/errors/version.ts +1 -1
  553. package/experimental/erc7739/actions/signMessage.ts +1 -1
  554. package/experimental/erc7739/utils/hashMessage.ts +1 -1
  555. package/experimental/erc7821/index.ts +1 -3
  556. package/experimental/index.ts +68 -71
  557. package/index.ts +991 -992
  558. package/linea/index.ts +1 -1
  559. package/node/index.ts +2 -4
  560. package/node/trustedSetups.ts +1 -0
  561. package/nonce/index.ts +2 -2
  562. package/op-stack/actions/estimateDepositTransactionGas.ts +1 -1
  563. package/op-stack/actions/estimateFinalizeWithdrawalGas.ts +1 -1
  564. package/op-stack/actions/estimateInitiateWithdrawalGas.ts +1 -1
  565. package/op-stack/actions/estimateProveWithdrawalGas.ts +1 -1
  566. package/op-stack/index.ts +73 -81
  567. package/op-stack/types/transaction.ts +2 -2
  568. package/package.json +2 -2
  569. package/siwe/index.ts +10 -14
  570. package/types/account.ts +1 -1
  571. package/types/contract.ts +1 -1
  572. package/types/eip1193.ts +1 -1
  573. package/types/register.ts +1 -1
  574. package/utils/abi/decodeAbiParameters.ts +3 -5
  575. package/utils/abi/decodeDeployData.ts +1 -2
  576. package/utils/abi/decodeEventLog.ts +1 -2
  577. package/utils/abi/decodeFunctionResult.ts +1 -2
  578. package/utils/abi/encodeAbiParameters.ts +5 -5
  579. package/utils/abi/encodeErrorResult.ts +2 -3
  580. package/utils/abi/encodeEventTopics.ts +4 -1
  581. package/utils/abi/encodeFunctionData.ts +3 -4
  582. package/utils/abi/encodeFunctionResult.ts +1 -2
  583. package/utils/abi/encodePacked.ts +5 -5
  584. package/utils/abi/getAbiItem.ts +1 -1
  585. package/utils/abi/prepareEncodeFunctionData.ts +3 -4
  586. package/utils/address/getContractAddress.ts +1 -3
  587. package/utils/buildRequest.ts +3 -3
  588. package/utils/ccip.ts +2 -3
  589. package/utils/encoding/fromBytes.ts +1 -1
  590. package/utils/ens/avatar/parseAvatarRecord.ts +3 -3
  591. package/utils/ens/avatar/utils.ts +3 -4
  592. package/utils/ens/namehash.ts +1 -1
  593. package/utils/filters/createFilterRequestScope.ts +1 -2
  594. package/utils/formatters/block.ts +1 -1
  595. package/utils/formatters/transaction.ts +1 -1
  596. package/utils/hash/hashSignature.ts +1 -2
  597. package/utils/index.ts +256 -260
  598. package/utils/poll.ts +1 -1
  599. package/utils/promise/withCache.ts +1 -1
  600. package/utils/promise/withTimeout.ts +3 -1
  601. package/utils/rpc/compat.ts +1 -1
  602. package/utils/rpc/ipc.ts +2 -2
  603. package/utils/rpc/socket.ts +1 -0
  604. package/utils/rpc/webSocket.ts +1 -1
  605. package/utils/signature/hashTypedData.ts +1 -1
  606. package/utils/signature/recoverAddress.ts +1 -2
  607. package/utils/signature/recoverMessageAddress.ts +1 -3
  608. package/utils/signature/recoverTypedDataAddress.ts +1 -3
  609. package/utils/signature/toPrefixedMessage.ts +1 -1
  610. package/utils/signature/verifyHash.ts +1 -3
  611. package/utils/signature/verifyMessage.ts +1 -3
  612. package/utils/signature/verifyTypedData.ts +1 -3
  613. package/utils/siwe/createSiweMessage.ts +1 -1
  614. package/utils/siwe/utils.ts +3 -4
  615. package/utils/transaction/serializeTransaction.ts +1 -1
  616. package/utils/typedData.ts +6 -4
  617. package/zksync/actions/claimFailedDeposit.ts +2 -3
  618. package/zksync/actions/deposit.ts +1 -1
  619. package/zksync/actions/requestExecute.ts +1 -1
  620. package/zksync/actions/sendTransaction.ts +2 -2
  621. package/zksync/actions/signTransaction.ts +1 -1
  622. package/zksync/decorators/publicL2.ts +1 -1
  623. package/zksync/index.ts +72 -84
  624. package/zksync/types/chain.ts +5 -2
  625. package/zksync/types/transaction.ts +2 -2
  626. package/zksync/utils/abi/encodeDeployData.ts +1 -2
@@ -9,7 +9,7 @@ import type {
9
9
  import type { ErrorType } from '../../errors/utils.js'
10
10
  import type { RpcResponse } from '../../types/rpc.js'
11
11
  import type { WithTimeoutErrorType } from '../promise/withTimeout.js'
12
- import { type HttpRequestParameters, getHttpRpcClient } from './http.js'
12
+ import { getHttpRpcClient, type HttpRequestParameters } from './http.js'
13
13
  import type { SocketRpcClient } from './socket.js'
14
14
  import { getWebSocketRpcClient } from './webSocket.js'
15
15
 
package/utils/rpc/ipc.ts CHANGED
@@ -1,10 +1,10 @@
1
- import { type Socket as NetSocket, connect } from 'node:net'
1
+ import { connect, type Socket as NetSocket } from 'node:net'
2
2
  import { WebSocketRequestError } from '../../index.js'
3
3
  import {
4
4
  type GetSocketRpcClientParameters,
5
+ getSocketRpcClient,
5
6
  type Socket,
6
7
  type SocketRpcClient,
7
- getSocketRpcClient,
8
8
  } from './socket.js'
9
9
 
10
10
  export type GetIpcRpcClientOptions = Pick<
@@ -144,6 +144,7 @@ export async function getSocketRpcClient<socket extends {}>(
144
144
  socket?.close()
145
145
 
146
146
  setTimeout(async () => {
147
+ // biome-ignore lint/suspicious/noConsole: _
147
148
  await setup().catch(console.error)
148
149
  reconnectInProgress = false
149
150
  }, delay)
@@ -7,9 +7,9 @@ import {
7
7
  import type { RpcRequest } from '../../types/rpc.js'
8
8
  import {
9
9
  type GetSocketRpcClientParameters,
10
+ getSocketRpcClient,
10
11
  type Socket,
11
12
  type SocketRpcClient,
12
- getSocketRpcClient,
13
13
  } from './socket.js'
14
14
 
15
15
  export type GetWebSocketRpcClientOptions = Pick<
@@ -14,8 +14,8 @@ import { type ToHexErrorType, toHex } from '../encoding/toHex.js'
14
14
  import { type Keccak256ErrorType, keccak256 } from '../hash/keccak256.js'
15
15
  import {
16
16
  type GetTypesForEIP712DomainErrorType,
17
- type ValidateTypedDataErrorType,
18
17
  getTypesForEIP712Domain,
18
+ type ValidateTypedDataErrorType,
19
19
  validateTypedData,
20
20
  } from '../typedData.js'
21
21
 
@@ -1,9 +1,8 @@
1
1
  import type { Address } from 'abitype'
2
2
 
3
3
  import { publicKeyToAddress } from '../../accounts/utils/publicKeyToAddress.js'
4
- import type { ByteArray, Hex, Signature } from '../../types/misc.js'
5
-
6
4
  import type { ErrorType } from '../../errors/utils.js'
5
+ import type { ByteArray, Hex, Signature } from '../../types/misc.js'
7
6
  import { recoverPublicKey } from './recoverPublicKey.js'
8
7
 
9
8
  export type RecoverAddressParameters = {
@@ -1,13 +1,11 @@
1
1
  import type { Address } from 'abitype'
2
-
2
+ import type { ErrorType } from '../../errors/utils.js'
3
3
  import type {
4
4
  ByteArray,
5
5
  Hex,
6
6
  SignableMessage,
7
7
  Signature,
8
8
  } from '../../types/misc.js'
9
-
10
- import type { ErrorType } from '../../errors/utils.js'
11
9
  import { type HashMessageErrorType, hashMessage } from './hashMessage.js'
12
10
  import {
13
11
  type RecoverAddressErrorType,
@@ -1,9 +1,7 @@
1
1
  import type { Address, TypedData } from 'abitype'
2
-
2
+ import type { ErrorType } from '../../errors/utils.js'
3
3
  import type { ByteArray, Hex, Signature } from '../../types/misc.js'
4
4
  import type { TypedDataDefinition } from '../../types/typedData.js'
5
-
6
- import type { ErrorType } from '../../errors/utils.js'
7
5
  import { type HashTypedDataErrorType, hashTypedData } from './hashTypedData.js'
8
6
  import {
9
7
  type RecoverAddressErrorType,
@@ -5,8 +5,8 @@ import { type ConcatErrorType, concat } from '../data/concat.js'
5
5
  import { size } from '../data/size.js'
6
6
  import {
7
7
  type BytesToHexErrorType,
8
- type StringToHexErrorType,
9
8
  bytesToHex,
9
+ type StringToHexErrorType,
10
10
  stringToHex,
11
11
  } from '../encoding/toHex.js'
12
12
 
@@ -1,13 +1,11 @@
1
1
  import type { Address } from 'abitype'
2
-
2
+ import type { ErrorType } from '../../errors/utils.js'
3
3
  import type { ByteArray, Hash, Hex, Signature } from '../../types/misc.js'
4
4
  import { type GetAddressErrorType, getAddress } from '../address/getAddress.js'
5
5
  import {
6
6
  type IsAddressEqualErrorType,
7
7
  isAddressEqual,
8
8
  } from '../address/isAddressEqual.js'
9
-
10
- import type { ErrorType } from '../../errors/utils.js'
11
9
  import {
12
10
  type RecoverAddressErrorType,
13
11
  recoverAddress,
@@ -1,5 +1,5 @@
1
1
  import type { Address } from 'abitype'
2
-
2
+ import type { ErrorType } from '../../errors/utils.js'
3
3
  import type {
4
4
  ByteArray,
5
5
  Hex,
@@ -11,8 +11,6 @@ import {
11
11
  type IsAddressEqualErrorType,
12
12
  isAddressEqual,
13
13
  } from '../address/isAddressEqual.js'
14
-
15
- import type { ErrorType } from '../../errors/utils.js'
16
14
  import {
17
15
  type RecoverMessageAddressErrorType,
18
16
  recoverMessageAddress,
@@ -1,5 +1,5 @@
1
1
  import type { Address, TypedData } from 'abitype'
2
-
2
+ import type { ErrorType } from '../../errors/utils.js'
3
3
  import type { ByteArray, Hex, Signature } from '../../types/misc.js'
4
4
  import type { TypedDataDefinition } from '../../types/typedData.js'
5
5
  import { type GetAddressErrorType, getAddress } from '../address/getAddress.js'
@@ -7,8 +7,6 @@ import {
7
7
  type IsAddressEqualErrorType,
8
8
  isAddressEqual,
9
9
  } from '../address/isAddressEqual.js'
10
-
11
- import type { ErrorType } from '../../errors/utils.js'
12
10
  import {
13
11
  type RecoverTypedDataAddressParameters,
14
12
  recoverTypedDataAddress,
@@ -170,7 +170,7 @@ export function createSiweMessage(
170
170
  }
171
171
 
172
172
  const domainRegex =
173
- /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}(:[0-9]{1,5})?$/
173
+ /^([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}(:[0-9]{1,5})?$/
174
174
  const ipRegex =
175
175
  /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(:[0-9]{1,5})?$/
176
176
  const localhostRegex = /^localhost(:[0-9]{1,5})?$/
@@ -2,8 +2,7 @@ export function isUri(value: string) {
2
2
  // based on https://github.com/ogt/valid-url
3
3
 
4
4
  // check for illegal characters
5
- if (/[^a-z0-9\:\/\?\#\[\]\@\!\$\&\'\(\)\*\+\,\;\=\.\-\_\~\%]/i.test(value))
6
- return false
5
+ if (/[^a-z0-9:/?#[\]@!$&'()*+,;=.\-_~%]/i.test(value)) return false
7
6
 
8
7
  // check for hex escapes that aren't complete
9
8
  if (/%[^0-9a-f]/i.test(value)) return false
@@ -29,7 +28,7 @@ export function isUri(value: string) {
29
28
  }
30
29
 
31
30
  // scheme must begin with a letter, then consist of letters, digits, +, ., or -
32
- if (!/^[a-z][a-z0-9\+\-\.]*$/.test(scheme.toLowerCase())) return false
31
+ if (!/^[a-z][a-z0-9+\-.]*$/.test(scheme.toLowerCase())) return false
33
32
 
34
33
  let out = ''
35
34
  // re-assemble the URL per section 5.3 in RFC 3986
@@ -46,6 +45,6 @@ export function isUri(value: string) {
46
45
 
47
46
  function splitUri(value: string) {
48
47
  return value.match(
49
- /(?:([^:\/?#]+):)?(?:\/\/([^\/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/,
48
+ /(?:([^:/?#]+):)?(?:\/\/([^/?#]*))?([^?#]*)(?:\?([^#]*))?(?:#(.*))?/,
50
49
  )!
51
50
  }
@@ -49,8 +49,8 @@ import {
49
49
  import { type ConcatHexErrorType, concatHex } from '../data/concat.js'
50
50
  import { trim } from '../data/trim.js'
51
51
  import {
52
- type NumberToHexErrorType,
53
52
  bytesToHex,
53
+ type NumberToHexErrorType,
54
54
  numberToHex,
55
55
  } from '../encoding/toHex.js'
56
56
  import { type ToRlpErrorType, toRlp } from '../encoding/toRlp.js'
@@ -96,7 +96,7 @@ export function validateTypedData<
96
96
  // and will throw.
97
97
  numberToHex(value, {
98
98
  signed: base === 'int',
99
- size: Number.parseInt(size_) / 8,
99
+ size: Number.parseInt(size_, 10) / 8,
100
100
  })
101
101
  }
102
102
 
@@ -106,9 +106,9 @@ export function validateTypedData<
106
106
  const bytesMatch = type.match(bytesRegex)
107
107
  if (bytesMatch) {
108
108
  const [_type, size_] = bytesMatch
109
- if (size_ && size(value as Hex) !== Number.parseInt(size_))
109
+ if (size_ && size(value as Hex) !== Number.parseInt(size_, 10))
110
110
  throw new BytesSizeMismatchError({
111
- expectedSize: Number.parseInt(size_),
111
+ expectedSize: Number.parseInt(size_, 10),
112
112
  givenSize: size(value as Hex),
113
113
  })
114
114
  }
@@ -138,7 +138,9 @@ export type GetTypesForEIP712DomainErrorType = ErrorType
138
138
 
139
139
  export function getTypesForEIP712Domain({
140
140
  domain,
141
- }: { domain?: TypedDataDomain | undefined }): TypedDataParameter[] {
141
+ }: {
142
+ domain?: TypedDataDomain | undefined
143
+ }): TypedDataParameter[] {
142
144
  return [
143
145
  typeof domain?.name === 'string' && { name: 'name', type: 'string' },
144
146
  domain?.version && { name: 'version', type: 'string' },
@@ -21,15 +21,14 @@ import type {
21
21
  DeriveChain,
22
22
  GetChainParameter,
23
23
  } from '../../types/chain.js'
24
- import type { Hash } from '../../types/misc.js'
25
- import type { Hex } from '../../types/misc.js'
24
+ import type { Hash, Hex } from '../../types/misc.js'
26
25
  import type { UnionEvaluate, UnionOmit } from '../../types/utils.js'
27
26
  import {
28
- type FormattedTransactionRequest,
29
27
  decodeAbiParameters,
30
28
  decodeFunctionData,
31
29
  encodeAbiParameters,
32
30
  encodeFunctionData,
31
+ type FormattedTransactionRequest,
33
32
  isAddressEqual,
34
33
  parseAccount,
35
34
  } from '../../utils/index.js'
@@ -33,10 +33,10 @@ import type {
33
33
  import type { Hex } from '../../types/misc.js'
34
34
  import type { UnionEvaluate, UnionOmit } from '../../types/utils.js'
35
35
  import {
36
- type FormattedTransactionRequest,
37
36
  concatHex,
38
37
  encodeAbiParameters,
39
38
  encodeFunctionData,
39
+ type FormattedTransactionRequest,
40
40
  isAddressEqual,
41
41
  keccak256,
42
42
  parseAccount,
@@ -23,8 +23,8 @@ import type {
23
23
  import type { Hex } from '../../types/misc.js'
24
24
  import type { UnionEvaluate, UnionOmit } from '../../types/utils.js'
25
25
  import {
26
- type FormattedTransactionRequest,
27
26
  encodeFunctionData,
27
+ type FormattedTransactionRequest,
28
28
  isAddressEqual,
29
29
  parseAccount,
30
30
  } from '../../utils/index.js'
@@ -1,11 +1,11 @@
1
1
  import type { Account } from '../../accounts/types.js'
2
- import { sendTransaction as core_sendTransaction } from '../../actions/wallet/sendTransaction.js'
3
2
  import type {
4
- SendTransactionRequest,
5
3
  SendTransactionErrorType as core_SendTransactionErrorType,
6
4
  SendTransactionParameters as core_SendTransactionParameters,
7
5
  SendTransactionReturnType as core_SendTransactionReturnType,
6
+ SendTransactionRequest,
8
7
  } from '../../actions/wallet/sendTransaction.js'
8
+ import { sendTransaction as core_sendTransaction } from '../../actions/wallet/sendTransaction.js'
9
9
  import type { Client } from '../../clients/createClient.js'
10
10
  import type { Transport } from '../../clients/transports/createTransport.js'
11
11
  import type { ChainEIP712 } from '../types/chain.js'
@@ -1,9 +1,9 @@
1
1
  import type { Account } from '../../accounts/types.js'
2
- import { signTransaction as signTransaction_ } from '../../actions/wallet/signTransaction.js'
3
2
  import type {
4
3
  SignTransactionErrorType as SignTransactionErrorType_,
5
4
  SignTransactionReturnType as SignTransactionReturnType_,
6
5
  } from '../../actions/wallet/signTransaction.js'
6
+ import { signTransaction as signTransaction_ } from '../../actions/wallet/signTransaction.js'
7
7
  import type { Client } from '../../clients/createClient.js'
8
8
  import type { Transport } from '../../clients/transports/createTransport.js'
9
9
  import type { GetAccountParameter } from '../../types/account.js'
@@ -2,11 +2,11 @@ import type { Address } from 'abitype'
2
2
  import type { Client } from '../../clients/createClient.js'
3
3
  import type { Transport } from '../../clients/transports/createTransport.js'
4
4
  import type { Account } from '../../types/account.js'
5
- import { estimateFee } from '../actions/estimateFee.js'
6
5
  import type {
7
6
  EstimateFeeParameters,
8
7
  EstimateFeeReturnType,
9
8
  } from '../actions/estimateFee.js'
9
+ import { estimateFee } from '../actions/estimateFee.js'
10
10
  import {
11
11
  type EstimateGasL1ToL2Parameters,
12
12
  type EstimateGasL1ToL2ReturnType,
package/zksync/index.ts CHANGED
@@ -1,9 +1,4 @@
1
1
  // biome-ignore lint/performance/noBarrelFile: entrypoint module
2
- export {
3
- type ToSmartAccountErrorType,
4
- type ToSmartAccountParameters,
5
- toSmartAccount,
6
- } from './accounts/toSmartAccount.js'
7
2
  export {
8
3
  type ToMultisigSmartAccountParameters,
9
4
  toMultisigSmartAccount,
@@ -12,32 +7,27 @@ export {
12
7
  type ToSinglesigSmartAccountParameters,
13
8
  toSinglesigSmartAccount,
14
9
  } from './accounts/toSinglesigSmartAccount.js'
15
-
16
- export {
17
- type DeployContractErrorType,
18
- type DeployContractParameters,
19
- type DeployContractReturnType,
20
- deployContract,
21
- } from './actions/deployContract.js'
22
- export {
23
- type EncodeDeployDataParameters,
24
- type EncodeDeployDataErrorType,
25
- encodeDeployData,
26
- } from './utils/abi/encodeDeployData.js'
27
10
  export {
28
- type HashBytecodeErrorType,
29
- hashBytecode,
30
- } from './utils/hashBytecode.js'
11
+ type ToSmartAccountErrorType,
12
+ type ToSmartAccountParameters,
13
+ toSmartAccount,
14
+ } from './accounts/toSmartAccount.js'
31
15
  export {
32
16
  type ClaimFailedDepositErrorType,
33
17
  type ClaimFailedDepositParameters,
34
18
  type ClaimFailedDepositReturnType,
35
19
  claimFailedDeposit,
36
20
  } from './actions/claimFailedDeposit.js'
21
+ export {
22
+ type DeployContractErrorType,
23
+ type DeployContractParameters,
24
+ type DeployContractReturnType,
25
+ deployContract,
26
+ } from './actions/deployContract.js'
37
27
  export {
38
28
  type DepositErrorType,
39
- type DepositReturnType,
40
29
  type DepositParameters,
30
+ type DepositReturnType,
41
31
  deposit,
42
32
  } from './actions/deposit.js'
43
33
  export {
@@ -45,6 +35,12 @@ export {
45
35
  type EstimateFeeReturnType,
46
36
  estimateFee,
47
37
  } from './actions/estimateFee.js'
38
+ export {
39
+ type FinalizeWithdrawalErrorType,
40
+ type FinalizeWithdrawalParameters,
41
+ type FinalizeWithdrawalReturnType,
42
+ finalizeWithdrawal,
43
+ } from './actions/finalizeWithdrawal.js'
48
44
  export {
49
45
  type GetAllBalancesParameters,
50
46
  type GetAllBalancesReturnType,
@@ -55,11 +51,11 @@ export {
55
51
  type GetBlockDetailsReturnType,
56
52
  getBlockDetails,
57
53
  } from './actions/getBlockDetails.js'
54
+ export { getBridgehubContractAddress } from './actions/getBridgehubContractAddress.js'
58
55
  export {
59
56
  type GetDefaultBridgeAddressesReturnType,
60
57
  getDefaultBridgeAddresses,
61
58
  } from './actions/getDefaultBridgeAddresses.js'
62
- export { getBridgehubContractAddress } from './actions/getBridgehubContractAddress.js'
63
59
  export {
64
60
  type GetGasPerPubdataReturnType,
65
61
  getGasPerPubdata,
@@ -88,6 +84,11 @@ export {
88
84
  } from './actions/getL1BatchDetails.js'
89
85
  export { getL1BatchNumber } from './actions/getL1BatchNumber.js'
90
86
  export { getL1ChainId } from './actions/getL1ChainId.js'
87
+ export {
88
+ type GetL1TokenAddressParameters,
89
+ type GetL1TokenAddressReturnType,
90
+ getL1TokenAddress,
91
+ } from './actions/getL1TokenAddress.js'
91
92
  export {
92
93
  type GetL1TokenBalanceErrorType,
93
94
  type GetL1TokenBalanceParameters,
@@ -95,8 +96,13 @@ export {
95
96
  getL1TokenBalance,
96
97
  } from './actions/getL1TokenBalance.js'
97
98
  export {
98
- type GetLogProofReturnType,
99
+ type GetL2TokenAddressParameters,
100
+ type GetL2TokenAddressReturnType,
101
+ getL2TokenAddress,
102
+ } from './actions/getL2TokenAddress.js'
103
+ export {
99
104
  type GetLogProofParameters,
105
+ type GetLogProofReturnType,
100
106
  getLogProof,
101
107
  } from './actions/getLogProof.js'
102
108
  export { getMainContractAddress } from './actions/getMainContractAddress.js'
@@ -113,28 +119,28 @@ export {
113
119
  } from './actions/getTransactionDetails.js'
114
120
  export {
115
121
  type IsWithdrawalFinalizedErrorType,
116
- type IsWithdrawalFinalizedReturnType,
117
122
  type IsWithdrawalFinalizedParameters,
123
+ type IsWithdrawalFinalizedReturnType,
118
124
  isWithdrawalFinalized,
119
125
  } from './actions/isWithdrawalFinalized.js'
120
126
  export {
121
127
  type RequestExecuteErrorType,
122
- type RequestExecuteReturnType,
123
128
  type RequestExecuteParameters,
129
+ type RequestExecuteReturnType,
124
130
  requestExecute,
125
131
  } from './actions/requestExecute.js'
126
- export {
127
- type SendTransactionErrorType,
128
- type SendTransactionParameters,
129
- type SendTransactionReturnType,
130
- sendTransaction,
131
- } from './actions/sendTransaction.js'
132
132
  export {
133
133
  type SendEip712TransactionErrorType,
134
134
  type SendEip712TransactionParameters,
135
135
  type SendEip712TransactionReturnType,
136
136
  sendEip712Transaction,
137
137
  } from './actions/sendEip712Transaction.js'
138
+ export {
139
+ type SendTransactionErrorType,
140
+ type SendTransactionParameters,
141
+ type SendTransactionReturnType,
142
+ sendTransaction,
143
+ } from './actions/sendTransaction.js'
138
144
  export {
139
145
  type SignEip712TransactionErrorType,
140
146
  type SignEip712TransactionParameters,
@@ -147,44 +153,23 @@ export {
147
153
  type SignTransactionReturnType,
148
154
  signTransaction,
149
155
  } from './actions/signTransaction.js'
150
- export {
151
- type GetL2TokenAddressReturnType,
152
- type GetL2TokenAddressParameters,
153
- getL2TokenAddress,
154
- } from './actions/getL2TokenAddress.js'
155
- export {
156
- type GetL1TokenAddressReturnType,
157
- type GetL1TokenAddressParameters,
158
- getL1TokenAddress,
159
- } from './actions/getL1TokenAddress.js'
160
156
  export {
161
157
  type WithdrawErrorType,
162
158
  type WithdrawParameters,
163
159
  type WithdrawReturnType,
164
160
  withdraw,
165
161
  } from './actions/withdraw.js'
166
- export {
167
- type FinalizeWithdrawalErrorType,
168
- type FinalizeWithdrawalParameters,
169
- type FinalizeWithdrawalReturnType,
170
- finalizeWithdrawal,
171
- } from './actions/finalizeWithdrawal.js'
172
-
173
- export {
174
- legacyEthAddress,
175
- l2BaseTokenAddress,
176
- } from './constants/address.js'
177
-
162
+ export { chainConfig } from './chainConfig.js'
178
163
  export {
179
164
  /** @deprecated Use `zksync` instead */
180
165
  zksync as zkSync,
181
166
  zksync,
182
167
  /** @deprecated Use `zksync` instead */
183
168
  zksyncInMemoryNode as zkSyncInMemoryNode,
169
+ zksyncInMemoryNode,
184
170
  zksyncLocalCustomHyperchain,
185
171
  zksyncLocalHyperchain,
186
172
  zksyncLocalHyperchainL1,
187
- zksyncInMemoryNode,
188
173
  /** @deprecated Use `zksync` instead */
189
174
  zksyncLocalNode as zkSyncLocalNode,
190
175
  zksyncLocalNode,
@@ -193,46 +178,42 @@ export {
193
178
  zksyncSepoliaTestnet,
194
179
  } from './chains.js'
195
180
 
196
- export { chainConfig } from './chainConfig.js'
197
-
198
181
  export {
199
- eip712WalletActions,
182
+ l2BaseTokenAddress,
183
+ legacyEthAddress,
184
+ } from './constants/address.js'
185
+ export {
200
186
  type Eip712WalletActions,
187
+ eip712WalletActions,
201
188
  } from './decorators/eip712.js'
202
-
203
189
  export {
204
- publicActionsL1,
205
190
  type PublicActionsL1,
191
+ publicActionsL1,
206
192
  } from './decorators/publicL1.js'
207
-
208
193
  export {
209
- publicActionsL2,
210
194
  type PublicActionsL2,
195
+ publicActionsL2,
211
196
  } from './decorators/publicL2.js'
212
-
213
197
  export {
214
- walletActionsL1,
215
198
  type WalletActionsL1,
199
+ walletActionsL1,
216
200
  } from './decorators/walletL1.js'
217
-
218
201
  export {
219
- walletActionsL2,
220
202
  type WalletActionsL2,
203
+ walletActionsL2,
221
204
  } from './decorators/walletL2.js'
222
-
223
205
  export { serializeTransaction } from './serializers.js'
224
-
225
206
  export type { ZksyncSmartAccount } from './types/account.js'
226
207
  export type {
208
+ ZksyncBatchDetails,
227
209
  /** @deprecated Use `ZksyncBlock` instead */
228
210
  ZksyncBlock as ZkSyncBlock,
229
211
  ZksyncBlock,
212
+ ZksyncBlockDetails,
213
+ ZksyncNumberParameter,
230
214
  /** @deprecated Use `ZksyncRpcBlock` instead */
231
215
  ZksyncRpcBlock as ZkSyncRpcBlock,
232
216
  ZksyncRpcBlock,
233
- ZksyncBatchDetails,
234
- ZksyncBlockDetails,
235
- ZksyncNumberParameter,
236
217
  } from './types/block.js'
237
218
  export type { ChainEIP712 } from './types/chain.js'
238
219
  export type {
@@ -244,10 +225,10 @@ export type {
244
225
  } from './types/eip712.js'
245
226
  export type {
246
227
  CommonDataRawBlockTransaction,
247
- RawBlockTransactions,
248
228
  PublicZksyncRpcSchema,
249
229
  /** @deprecated Use `PublicZksyncRpcSchema` instead */
250
230
  PublicZksyncRpcSchema as PublicZkSyncRpcSchema,
231
+ RawBlockTransactions,
251
232
  } from './types/eip1193.js'
252
233
  export type {
253
234
  /** @deprecated Use `ZksyncFeeValues` instead */
@@ -268,15 +249,17 @@ export type {
268
249
  ZksyncRpcLog as ZkSyncRpcLog,
269
250
  ZksyncRpcLog,
270
251
  } from './types/log.js'
271
-
272
252
  export type {
273
- TransactionRequestEIP712,
274
253
  /** @deprecated Use `ZksyncTransactionRequest_internal` instead */
275
254
  TransactionRequest as ZkSyncTransactionRequest_internal,
276
255
  TransactionRequest as ZksyncTransactionRequest_internal,
256
+ TransactionRequestEIP712,
277
257
  /** @deprecated Use `ZksyncEIP712TransactionSignable` instead */
278
258
  ZksyncEIP712TransactionSignable as ZkSyncEIP712TransactionSignable,
279
259
  ZksyncEIP712TransactionSignable,
260
+ /** @deprecated Use `ZksyncRawBlockTransactions` instead */
261
+ ZksyncRawBlockTransactions as ZkSyncRawBlockTransactions,
262
+ ZksyncRawBlockTransactions,
280
263
  /** @deprecated Use `ZksyncRpcTransaction` instead */
281
264
  ZksyncRpcTransaction as ZkSyncRpcTransaction,
282
265
  ZksyncRpcTransaction,
@@ -286,6 +269,9 @@ export type {
286
269
  /** @deprecated Use `ZksyncRpcTransactionPriority` instead */
287
270
  ZksyncRpcTransactionPriority as ZkSyncRpcTransactionPriority,
288
271
  ZksyncRpcTransactionPriority,
272
+ /** @deprecated Use `ZksyncRpcTransactionReceipt` instead */
273
+ ZksyncRpcTransactionReceipt as ZkSyncRpcTransactionReceipt,
274
+ ZksyncRpcTransactionReceipt,
289
275
  /** @deprecated Use `ZksyncRpcTransactionReceiptOverrides` instead */
290
276
  ZksyncRpcTransactionReceiptOverrides as ZkSyncRpcTransactionReceiptOverrides,
291
277
  ZksyncRpcTransactionReceiptOverrides,
@@ -298,6 +284,9 @@ export type {
298
284
  /** @deprecated Use `ZksyncTransaction` instead */
299
285
  ZksyncTransaction as ZkSyncTransaction,
300
286
  ZksyncTransaction,
287
+ /** @deprecated Use `ZksyncTransactionDetails` instead */
288
+ ZksyncTransactionDetails as ZkSyncTransactionDetails,
289
+ ZksyncTransactionDetails,
301
290
  /** @deprecated Use `ZksyncTransactionEIP712` instead */
302
291
  ZksyncTransactionEIP712 as ZkSyncTransactionEIP712,
303
292
  ZksyncTransactionEIP712,
@@ -328,22 +317,22 @@ export type {
328
317
  /** @deprecated Use `ZksyncTransactionType` instead */
329
318
  ZksyncTransactionType as ZkSyncTransactionType,
330
319
  ZksyncTransactionType,
331
- /** @deprecated Use `ZksyncRawBlockTransactions` instead */
332
- ZksyncRawBlockTransactions as ZkSyncRawBlockTransactions,
333
- ZksyncRawBlockTransactions,
334
- /** @deprecated Use `ZksyncRpcTransactionReceipt` instead */
335
- ZksyncRpcTransactionReceipt as ZkSyncRpcTransactionReceipt,
336
- ZksyncRpcTransactionReceipt,
337
- /** @deprecated Use `ZksyncTransactionDetails` instead */
338
- ZksyncTransactionDetails as ZkSyncTransactionDetails,
339
- ZksyncTransactionDetails,
340
320
  } from './types/transaction.js'
341
-
321
+ export {
322
+ type EncodeDeployDataErrorType,
323
+ type EncodeDeployDataParameters,
324
+ encodeDeployData,
325
+ } from './utils/abi/encodeDeployData.js'
342
326
  export {
343
327
  type GetL2HashFromPriorityOpErrorType,
344
328
  getL2HashFromPriorityOp,
345
329
  } from './utils/bridge/getL2HashFromPriorityOp.js'
346
330
  export { undoL1ToL2Alias } from './utils/bridge/undoL1ToL2Alias.js'
331
+ export {
332
+ type HashBytecodeErrorType,
333
+ hashBytecode,
334
+ } from './utils/hashBytecode.js'
335
+ export { parseEip712Transaction } from './utils/parseEip712Transaction.js'
347
336
  export {
348
337
  type GetApprovalBasedPaymasterInputParameters,
349
338
  type GetApprovalBasedPaymasterInputReturnType,
@@ -354,4 +343,3 @@ export {
354
343
  type GetGeneralPaymasterInputReturnType,
355
344
  getGeneralPaymasterInput,
356
345
  } from './utils/paymaster/getGeneralPaymasterInput.js'
357
- export { parseEip712Transaction } from './utils/parseEip712Transaction.js'
@@ -1,5 +1,8 @@
1
- import type { ChainFormatters } from '../../types/chain.js'
2
- import type { Chain, ChainFormatter } from '../../types/chain.js'
1
+ import type {
2
+ Chain,
3
+ ChainFormatter,
4
+ ChainFormatters,
5
+ } from '../../types/chain.js'
3
6
  import type { EIP712DomainFn } from './eip712.js'
4
7
  import type { ZksyncTransactionSerializable } from './transaction.js'
5
8