viem 2.16.0 → 2.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (859) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/_cjs/accounts/generateMnemonic.js +1 -2
  3. package/_cjs/accounts/generateMnemonic.js.map +1 -1
  4. package/_cjs/accounts/generatePrivateKey.js +1 -2
  5. package/_cjs/accounts/generatePrivateKey.js.map +1 -1
  6. package/_cjs/accounts/hdKeyToAccount.js +1 -2
  7. package/_cjs/accounts/hdKeyToAccount.js.map +1 -1
  8. package/_cjs/accounts/mnemonicToAccount.js +1 -2
  9. package/_cjs/accounts/mnemonicToAccount.js.map +1 -1
  10. package/_cjs/accounts/privateKeyToAccount.js +1 -2
  11. package/_cjs/accounts/privateKeyToAccount.js.map +1 -1
  12. package/_cjs/accounts/toAccount.js +1 -2
  13. package/_cjs/accounts/toAccount.js.map +1 -1
  14. package/_cjs/accounts/utils/parseAccount.js +1 -2
  15. package/_cjs/accounts/utils/parseAccount.js.map +1 -1
  16. package/_cjs/accounts/utils/privateKeyToAddress.js +1 -2
  17. package/_cjs/accounts/utils/privateKeyToAddress.js.map +1 -1
  18. package/_cjs/accounts/utils/publicKeyToAddress.js +1 -2
  19. package/_cjs/accounts/utils/publicKeyToAddress.js.map +1 -1
  20. package/_cjs/accounts/utils/sign.js +1 -2
  21. package/_cjs/accounts/utils/sign.js.map +1 -1
  22. package/_cjs/accounts/utils/signMessage.js +1 -2
  23. package/_cjs/accounts/utils/signMessage.js.map +1 -1
  24. package/_cjs/accounts/utils/signTransaction.js +1 -2
  25. package/_cjs/accounts/utils/signTransaction.js.map +1 -1
  26. package/_cjs/accounts/utils/signTypedData.js +1 -2
  27. package/_cjs/accounts/utils/signTypedData.js.map +1 -1
  28. package/_cjs/actions/ens/getEnsAddress.js +1 -2
  29. package/_cjs/actions/ens/getEnsAddress.js.map +1 -1
  30. package/_cjs/actions/ens/getEnsAvatar.js +1 -2
  31. package/_cjs/actions/ens/getEnsAvatar.js.map +1 -1
  32. package/_cjs/actions/ens/getEnsName.js +1 -2
  33. package/_cjs/actions/ens/getEnsName.js.map +1 -1
  34. package/_cjs/actions/ens/getEnsResolver.js +1 -2
  35. package/_cjs/actions/ens/getEnsResolver.js.map +1 -1
  36. package/_cjs/actions/ens/getEnsText.js +1 -2
  37. package/_cjs/actions/ens/getEnsText.js.map +1 -1
  38. package/_cjs/actions/getContract.js +3 -4
  39. package/_cjs/actions/getContract.js.map +1 -1
  40. package/_cjs/actions/public/call.js +2 -3
  41. package/_cjs/actions/public/call.js.map +1 -1
  42. package/_cjs/actions/public/createBlockFilter.js +1 -2
  43. package/_cjs/actions/public/createBlockFilter.js.map +1 -1
  44. package/_cjs/actions/public/createContractEventFilter.js +1 -2
  45. package/_cjs/actions/public/createContractEventFilter.js.map +1 -1
  46. package/_cjs/actions/public/createEventFilter.js +7 -9
  47. package/_cjs/actions/public/createEventFilter.js.map +1 -1
  48. package/_cjs/actions/public/createPendingTransactionFilter.js +1 -2
  49. package/_cjs/actions/public/createPendingTransactionFilter.js.map +1 -1
  50. package/_cjs/actions/public/estimateContractGas.js +1 -2
  51. package/_cjs/actions/public/estimateContractGas.js.map +1 -1
  52. package/_cjs/actions/public/estimateFeesPerGas.js +2 -3
  53. package/_cjs/actions/public/estimateFeesPerGas.js.map +1 -1
  54. package/_cjs/actions/public/estimateGas.js +1 -2
  55. package/_cjs/actions/public/estimateGas.js.map +1 -1
  56. package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js +2 -3
  57. package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
  58. package/_cjs/actions/public/getBalance.js +1 -2
  59. package/_cjs/actions/public/getBalance.js.map +1 -1
  60. package/_cjs/actions/public/getBlobBaseFee.js +1 -2
  61. package/_cjs/actions/public/getBlobBaseFee.js.map +1 -1
  62. package/_cjs/actions/public/getBlock.js +1 -2
  63. package/_cjs/actions/public/getBlock.js.map +1 -1
  64. package/_cjs/actions/public/getBlockNumber.js +2 -3
  65. package/_cjs/actions/public/getBlockNumber.js.map +1 -1
  66. package/_cjs/actions/public/getBlockTransactionCount.js +1 -2
  67. package/_cjs/actions/public/getBlockTransactionCount.js.map +1 -1
  68. package/_cjs/actions/public/getChainId.js +1 -2
  69. package/_cjs/actions/public/getChainId.js.map +1 -1
  70. package/_cjs/actions/public/getCode.js +1 -2
  71. package/_cjs/actions/public/getCode.js.map +1 -1
  72. package/_cjs/actions/public/getContractEvents.js +1 -2
  73. package/_cjs/actions/public/getContractEvents.js.map +1 -1
  74. package/_cjs/actions/public/getEip712Domain.js +1 -2
  75. package/_cjs/actions/public/getEip712Domain.js.map +1 -1
  76. package/_cjs/actions/public/getFeeHistory.js +1 -2
  77. package/_cjs/actions/public/getFeeHistory.js.map +1 -1
  78. package/_cjs/actions/public/getFilterChanges.js +1 -2
  79. package/_cjs/actions/public/getFilterChanges.js.map +1 -1
  80. package/_cjs/actions/public/getFilterLogs.js +1 -2
  81. package/_cjs/actions/public/getFilterLogs.js.map +1 -1
  82. package/_cjs/actions/public/getGasPrice.js +1 -2
  83. package/_cjs/actions/public/getGasPrice.js.map +1 -1
  84. package/_cjs/actions/public/getLogs.js +7 -9
  85. package/_cjs/actions/public/getLogs.js.map +1 -1
  86. package/_cjs/actions/public/getProof.js +1 -2
  87. package/_cjs/actions/public/getProof.js.map +1 -1
  88. package/_cjs/actions/public/getStorageAt.js +1 -2
  89. package/_cjs/actions/public/getStorageAt.js.map +1 -1
  90. package/_cjs/actions/public/getTransaction.js +1 -2
  91. package/_cjs/actions/public/getTransaction.js.map +1 -1
  92. package/_cjs/actions/public/getTransactionConfirmations.js +1 -2
  93. package/_cjs/actions/public/getTransactionConfirmations.js.map +1 -1
  94. package/_cjs/actions/public/getTransactionCount.js +1 -2
  95. package/_cjs/actions/public/getTransactionCount.js.map +1 -1
  96. package/_cjs/actions/public/getTransactionReceipt.js +1 -2
  97. package/_cjs/actions/public/getTransactionReceipt.js.map +1 -1
  98. package/_cjs/actions/public/multicall.js +1 -2
  99. package/_cjs/actions/public/multicall.js.map +1 -1
  100. package/_cjs/actions/public/readContract.js +1 -2
  101. package/_cjs/actions/public/readContract.js.map +1 -1
  102. package/_cjs/actions/public/simulateContract.js +1 -2
  103. package/_cjs/actions/public/simulateContract.js.map +1 -1
  104. package/_cjs/actions/public/uninstallFilter.js +1 -2
  105. package/_cjs/actions/public/uninstallFilter.js.map +1 -1
  106. package/_cjs/actions/public/verifyHash.js +1 -2
  107. package/_cjs/actions/public/verifyHash.js.map +1 -1
  108. package/_cjs/actions/public/verifyMessage.js +1 -2
  109. package/_cjs/actions/public/verifyMessage.js.map +1 -1
  110. package/_cjs/actions/public/verifyTypedData.js +1 -2
  111. package/_cjs/actions/public/verifyTypedData.js.map +1 -1
  112. package/_cjs/actions/public/waitForTransactionReceipt.js +1 -2
  113. package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
  114. package/_cjs/actions/public/watchBlockNumber.js +1 -2
  115. package/_cjs/actions/public/watchBlockNumber.js.map +1 -1
  116. package/_cjs/actions/public/watchBlocks.js +1 -2
  117. package/_cjs/actions/public/watchBlocks.js.map +1 -1
  118. package/_cjs/actions/public/watchContractEvent.js +1 -2
  119. package/_cjs/actions/public/watchContractEvent.js.map +1 -1
  120. package/_cjs/actions/public/watchEvent.js +7 -9
  121. package/_cjs/actions/public/watchEvent.js.map +1 -1
  122. package/_cjs/actions/public/watchPendingTransactions.js +1 -2
  123. package/_cjs/actions/public/watchPendingTransactions.js.map +1 -1
  124. package/_cjs/actions/siwe/verifySiweMessage.js +1 -2
  125. package/_cjs/actions/siwe/verifySiweMessage.js.map +1 -1
  126. package/_cjs/actions/test/dropTransaction.js +1 -2
  127. package/_cjs/actions/test/dropTransaction.js.map +1 -1
  128. package/_cjs/actions/test/dumpState.js +1 -2
  129. package/_cjs/actions/test/dumpState.js.map +1 -1
  130. package/_cjs/actions/test/getAutomine.js +1 -2
  131. package/_cjs/actions/test/getAutomine.js.map +1 -1
  132. package/_cjs/actions/test/getTxpoolContent.js +1 -2
  133. package/_cjs/actions/test/getTxpoolContent.js.map +1 -1
  134. package/_cjs/actions/test/getTxpoolStatus.js +1 -2
  135. package/_cjs/actions/test/getTxpoolStatus.js.map +1 -1
  136. package/_cjs/actions/test/impersonateAccount.js +1 -2
  137. package/_cjs/actions/test/impersonateAccount.js.map +1 -1
  138. package/_cjs/actions/test/increaseTime.js +1 -2
  139. package/_cjs/actions/test/increaseTime.js.map +1 -1
  140. package/_cjs/actions/test/inspectTxpool.js +1 -2
  141. package/_cjs/actions/test/inspectTxpool.js.map +1 -1
  142. package/_cjs/actions/test/loadState.js +1 -2
  143. package/_cjs/actions/test/loadState.js.map +1 -1
  144. package/_cjs/actions/test/mine.js +1 -2
  145. package/_cjs/actions/test/mine.js.map +1 -1
  146. package/_cjs/actions/test/removeBlockTimestampInterval.js +1 -2
  147. package/_cjs/actions/test/removeBlockTimestampInterval.js.map +1 -1
  148. package/_cjs/actions/test/reset.js +1 -2
  149. package/_cjs/actions/test/reset.js.map +1 -1
  150. package/_cjs/actions/test/revert.js +1 -2
  151. package/_cjs/actions/test/revert.js.map +1 -1
  152. package/_cjs/actions/test/sendUnsignedTransaction.js +1 -2
  153. package/_cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
  154. package/_cjs/actions/test/setAutomine.js +1 -2
  155. package/_cjs/actions/test/setAutomine.js.map +1 -1
  156. package/_cjs/actions/test/setBalance.js +1 -2
  157. package/_cjs/actions/test/setBalance.js.map +1 -1
  158. package/_cjs/actions/test/setBlockGasLimit.js +1 -2
  159. package/_cjs/actions/test/setBlockGasLimit.js.map +1 -1
  160. package/_cjs/actions/test/setBlockTimestampInterval.js +1 -2
  161. package/_cjs/actions/test/setBlockTimestampInterval.js.map +1 -1
  162. package/_cjs/actions/test/setCode.js +1 -2
  163. package/_cjs/actions/test/setCode.js.map +1 -1
  164. package/_cjs/actions/test/setCoinbase.js +1 -2
  165. package/_cjs/actions/test/setCoinbase.js.map +1 -1
  166. package/_cjs/actions/test/setIntervalMining.js +1 -2
  167. package/_cjs/actions/test/setIntervalMining.js.map +1 -1
  168. package/_cjs/actions/test/setLoggingEnabled.js +1 -2
  169. package/_cjs/actions/test/setLoggingEnabled.js.map +1 -1
  170. package/_cjs/actions/test/setMinGasPrice.js +1 -2
  171. package/_cjs/actions/test/setMinGasPrice.js.map +1 -1
  172. package/_cjs/actions/test/setNextBlockBaseFeePerGas.js +1 -2
  173. package/_cjs/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
  174. package/_cjs/actions/test/setNextBlockTimestamp.js +1 -2
  175. package/_cjs/actions/test/setNextBlockTimestamp.js.map +1 -1
  176. package/_cjs/actions/test/setNonce.js +1 -2
  177. package/_cjs/actions/test/setNonce.js.map +1 -1
  178. package/_cjs/actions/test/setRpcUrl.js +1 -2
  179. package/_cjs/actions/test/setRpcUrl.js.map +1 -1
  180. package/_cjs/actions/test/setStorageAt.js +1 -2
  181. package/_cjs/actions/test/setStorageAt.js.map +1 -1
  182. package/_cjs/actions/test/snapshot.js +1 -2
  183. package/_cjs/actions/test/snapshot.js.map +1 -1
  184. package/_cjs/actions/test/stopImpersonatingAccount.js +1 -2
  185. package/_cjs/actions/test/stopImpersonatingAccount.js.map +1 -1
  186. package/_cjs/actions/wallet/addChain.js +1 -2
  187. package/_cjs/actions/wallet/addChain.js.map +1 -1
  188. package/_cjs/actions/wallet/deployContract.js +1 -2
  189. package/_cjs/actions/wallet/deployContract.js.map +1 -1
  190. package/_cjs/actions/wallet/getAddresses.js +1 -2
  191. package/_cjs/actions/wallet/getAddresses.js.map +1 -1
  192. package/_cjs/actions/wallet/getPermissions.js +1 -2
  193. package/_cjs/actions/wallet/getPermissions.js.map +1 -1
  194. package/_cjs/actions/wallet/prepareTransactionRequest.js +2 -2
  195. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  196. package/_cjs/actions/wallet/requestAddresses.js +1 -2
  197. package/_cjs/actions/wallet/requestAddresses.js.map +1 -1
  198. package/_cjs/actions/wallet/requestPermissions.js +1 -2
  199. package/_cjs/actions/wallet/requestPermissions.js.map +1 -1
  200. package/_cjs/actions/wallet/sendRawTransaction.js +1 -2
  201. package/_cjs/actions/wallet/sendRawTransaction.js.map +1 -1
  202. package/_cjs/actions/wallet/sendTransaction.js +2 -2
  203. package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
  204. package/_cjs/actions/wallet/signMessage.js +1 -2
  205. package/_cjs/actions/wallet/signMessage.js.map +1 -1
  206. package/_cjs/actions/wallet/signTransaction.js +1 -2
  207. package/_cjs/actions/wallet/signTransaction.js.map +1 -1
  208. package/_cjs/actions/wallet/signTypedData.js +1 -2
  209. package/_cjs/actions/wallet/signTypedData.js.map +1 -1
  210. package/_cjs/actions/wallet/switchChain.js +1 -2
  211. package/_cjs/actions/wallet/switchChain.js.map +1 -1
  212. package/_cjs/actions/wallet/watchAsset.js +1 -2
  213. package/_cjs/actions/wallet/watchAsset.js.map +1 -1
  214. package/_cjs/actions/wallet/writeContract.js +1 -2
  215. package/_cjs/actions/wallet/writeContract.js.map +1 -1
  216. package/_cjs/celo/parsers.js +1 -2
  217. package/_cjs/celo/parsers.js.map +1 -1
  218. package/_cjs/celo/serializers.js +4 -4
  219. package/_cjs/celo/serializers.js.map +1 -1
  220. package/_cjs/celo/utils.js +4 -5
  221. package/_cjs/celo/utils.js.map +1 -1
  222. package/_cjs/chains/index.js +2 -2
  223. package/_cjs/clients/createClient.js +2 -3
  224. package/_cjs/clients/createClient.js.map +1 -1
  225. package/_cjs/clients/createPublicClient.js +1 -2
  226. package/_cjs/clients/createPublicClient.js.map +1 -1
  227. package/_cjs/clients/createTestClient.js +1 -2
  228. package/_cjs/clients/createTestClient.js.map +1 -1
  229. package/_cjs/clients/createWalletClient.js +1 -2
  230. package/_cjs/clients/createWalletClient.js.map +1 -1
  231. package/_cjs/clients/decorators/public.js +1 -2
  232. package/_cjs/clients/decorators/public.js.map +1 -1
  233. package/_cjs/clients/decorators/test.js +1 -2
  234. package/_cjs/clients/decorators/test.js.map +1 -1
  235. package/_cjs/clients/decorators/wallet.js +1 -2
  236. package/_cjs/clients/decorators/wallet.js.map +1 -1
  237. package/_cjs/clients/transports/createTransport.js +1 -2
  238. package/_cjs/clients/transports/createTransport.js.map +1 -1
  239. package/_cjs/clients/transports/custom.js +1 -2
  240. package/_cjs/clients/transports/custom.js.map +1 -1
  241. package/_cjs/clients/transports/fallback.js +2 -3
  242. package/_cjs/clients/transports/fallback.js.map +1 -1
  243. package/_cjs/clients/transports/http.js +1 -2
  244. package/_cjs/clients/transports/http.js.map +1 -1
  245. package/_cjs/clients/transports/ipc.js +1 -2
  246. package/_cjs/clients/transports/ipc.js.map +1 -1
  247. package/_cjs/clients/transports/webSocket.js +1 -2
  248. package/_cjs/clients/transports/webSocket.js.map +1 -1
  249. package/_cjs/errors/stateOverride.js +3 -3
  250. package/_cjs/errors/stateOverride.js.map +1 -1
  251. package/_cjs/errors/transaction.js +2 -2
  252. package/_cjs/errors/transaction.js.map +1 -1
  253. package/_cjs/errors/version.js +1 -1
  254. package/_cjs/experimental/eip5792/actions/getCallsStatus.js +1 -2
  255. package/_cjs/experimental/eip5792/actions/getCallsStatus.js.map +1 -1
  256. package/_cjs/experimental/eip5792/actions/getCapabilities.js +1 -2
  257. package/_cjs/experimental/eip5792/actions/getCapabilities.js.map +1 -1
  258. package/_cjs/experimental/eip5792/actions/sendCalls.js +1 -2
  259. package/_cjs/experimental/eip5792/actions/sendCalls.js.map +1 -1
  260. package/_cjs/experimental/eip5792/actions/showCallsStatus.js +1 -2
  261. package/_cjs/experimental/eip5792/actions/showCallsStatus.js.map +1 -1
  262. package/_cjs/experimental/eip5792/actions/writeContracts.js +1 -2
  263. package/_cjs/experimental/eip5792/actions/writeContracts.js.map +1 -1
  264. package/_cjs/experimental/eip5792/decorators/eip5792.js +1 -2
  265. package/_cjs/experimental/eip5792/decorators/eip5792.js.map +1 -1
  266. package/_cjs/experimental/erc7715/actions/issuePermissions.js +1 -2
  267. package/_cjs/experimental/erc7715/actions/issuePermissions.js.map +1 -1
  268. package/_cjs/experimental/erc7715/decorators/erc7715.js +1 -2
  269. package/_cjs/experimental/erc7715/decorators/erc7715.js.map +1 -1
  270. package/_cjs/experimental/index.js +1 -5
  271. package/_cjs/experimental/index.js.map +1 -1
  272. package/_cjs/experimental/solady/actions/signMessage.js +1 -2
  273. package/_cjs/experimental/solady/actions/signMessage.js.map +1 -1
  274. package/_cjs/experimental/solady/actions/signTypedData.js +7 -28
  275. package/_cjs/experimental/solady/actions/signTypedData.js.map +1 -1
  276. package/_cjs/experimental/solady/decorators/solady.js +1 -2
  277. package/_cjs/experimental/solady/decorators/solady.js.map +1 -1
  278. package/_cjs/experimental/solady/index.js +16 -0
  279. package/_cjs/experimental/solady/index.js.map +1 -0
  280. package/_cjs/experimental/solady/utils/hashMessage.js +19 -0
  281. package/_cjs/experimental/solady/utils/hashMessage.js.map +1 -0
  282. package/_cjs/experimental/solady/utils/hashTypedData.js +31 -0
  283. package/_cjs/experimental/solady/utils/hashTypedData.js.map +1 -0
  284. package/_cjs/experimental/solady/utils/wrapTypedDataSignature.js +44 -0
  285. package/_cjs/experimental/solady/utils/wrapTypedDataSignature.js.map +1 -0
  286. package/_cjs/index.js.map +1 -1
  287. package/_cjs/op-stack/actions/buildDepositTransaction.js +1 -2
  288. package/_cjs/op-stack/actions/buildDepositTransaction.js.map +1 -1
  289. package/_cjs/op-stack/actions/buildInitiateWithdrawal.js +1 -2
  290. package/_cjs/op-stack/actions/buildInitiateWithdrawal.js.map +1 -1
  291. package/_cjs/op-stack/actions/buildProveWithdrawal.js +2 -3
  292. package/_cjs/op-stack/actions/buildProveWithdrawal.js.map +1 -1
  293. package/_cjs/op-stack/actions/depositTransaction.js +1 -2
  294. package/_cjs/op-stack/actions/depositTransaction.js.map +1 -1
  295. package/_cjs/op-stack/actions/estimateContractL1Fee.js +1 -2
  296. package/_cjs/op-stack/actions/estimateContractL1Fee.js.map +1 -1
  297. package/_cjs/op-stack/actions/estimateContractL1Gas.js +1 -2
  298. package/_cjs/op-stack/actions/estimateContractL1Gas.js.map +1 -1
  299. package/_cjs/op-stack/actions/estimateContractTotalFee.js +1 -2
  300. package/_cjs/op-stack/actions/estimateContractTotalFee.js.map +1 -1
  301. package/_cjs/op-stack/actions/estimateContractTotalGas.js +1 -2
  302. package/_cjs/op-stack/actions/estimateContractTotalGas.js.map +1 -1
  303. package/_cjs/op-stack/actions/estimateDepositTransactionGas.js +1 -2
  304. package/_cjs/op-stack/actions/estimateDepositTransactionGas.js.map +1 -1
  305. package/_cjs/op-stack/actions/estimateFinalizeWithdrawalGas.js +1 -2
  306. package/_cjs/op-stack/actions/estimateFinalizeWithdrawalGas.js.map +1 -1
  307. package/_cjs/op-stack/actions/estimateInitiateWithdrawalGas.js +1 -2
  308. package/_cjs/op-stack/actions/estimateInitiateWithdrawalGas.js.map +1 -1
  309. package/_cjs/op-stack/actions/estimateL1Fee.js +1 -2
  310. package/_cjs/op-stack/actions/estimateL1Fee.js.map +1 -1
  311. package/_cjs/op-stack/actions/estimateL1Gas.js +1 -2
  312. package/_cjs/op-stack/actions/estimateL1Gas.js.map +1 -1
  313. package/_cjs/op-stack/actions/estimateProveWithdrawalGas.js +1 -2
  314. package/_cjs/op-stack/actions/estimateProveWithdrawalGas.js.map +1 -1
  315. package/_cjs/op-stack/actions/estimateTotalFee.js +1 -2
  316. package/_cjs/op-stack/actions/estimateTotalFee.js.map +1 -1
  317. package/_cjs/op-stack/actions/estimateTotalGas.js +1 -2
  318. package/_cjs/op-stack/actions/estimateTotalGas.js.map +1 -1
  319. package/_cjs/op-stack/actions/finalizeWithdrawal.js +1 -2
  320. package/_cjs/op-stack/actions/finalizeWithdrawal.js.map +1 -1
  321. package/_cjs/op-stack/actions/getGame.js +1 -2
  322. package/_cjs/op-stack/actions/getGame.js.map +1 -1
  323. package/_cjs/op-stack/actions/getGames.js +1 -2
  324. package/_cjs/op-stack/actions/getGames.js.map +1 -1
  325. package/_cjs/op-stack/actions/getL1BaseFee.js +1 -2
  326. package/_cjs/op-stack/actions/getL1BaseFee.js.map +1 -1
  327. package/_cjs/op-stack/actions/getL2Output.js +1 -2
  328. package/_cjs/op-stack/actions/getL2Output.js.map +1 -1
  329. package/_cjs/op-stack/actions/getPortalVersion.js +1 -2
  330. package/_cjs/op-stack/actions/getPortalVersion.js.map +1 -1
  331. package/_cjs/op-stack/actions/getTimeToFinalize.js +1 -2
  332. package/_cjs/op-stack/actions/getTimeToFinalize.js.map +1 -1
  333. package/_cjs/op-stack/actions/getTimeToNextGame.js +1 -2
  334. package/_cjs/op-stack/actions/getTimeToNextGame.js.map +1 -1
  335. package/_cjs/op-stack/actions/getTimeToNextL2Output.js +1 -2
  336. package/_cjs/op-stack/actions/getTimeToNextL2Output.js.map +1 -1
  337. package/_cjs/op-stack/actions/getTimeToProve.js +1 -2
  338. package/_cjs/op-stack/actions/getTimeToProve.js.map +1 -1
  339. package/_cjs/op-stack/actions/getWithdrawalStatus.js +1 -2
  340. package/_cjs/op-stack/actions/getWithdrawalStatus.js.map +1 -1
  341. package/_cjs/op-stack/actions/initiateWithdrawal.js +1 -2
  342. package/_cjs/op-stack/actions/initiateWithdrawal.js.map +1 -1
  343. package/_cjs/op-stack/actions/proveWithdrawal.js +1 -2
  344. package/_cjs/op-stack/actions/proveWithdrawal.js.map +1 -1
  345. package/_cjs/op-stack/actions/waitForNextGame.js +1 -2
  346. package/_cjs/op-stack/actions/waitForNextGame.js.map +1 -1
  347. package/_cjs/op-stack/actions/waitForNextL2Output.js +1 -2
  348. package/_cjs/op-stack/actions/waitForNextL2Output.js.map +1 -1
  349. package/_cjs/op-stack/actions/waitToFinalize.js +1 -2
  350. package/_cjs/op-stack/actions/waitToFinalize.js.map +1 -1
  351. package/_cjs/op-stack/actions/waitToProve.js +1 -2
  352. package/_cjs/op-stack/actions/waitToProve.js.map +1 -1
  353. package/_cjs/op-stack/decorators/publicL1.js +1 -2
  354. package/_cjs/op-stack/decorators/publicL1.js.map +1 -1
  355. package/_cjs/op-stack/decorators/publicL2.js +1 -2
  356. package/_cjs/op-stack/decorators/publicL2.js.map +1 -1
  357. package/_cjs/op-stack/decorators/walletL1.js +1 -2
  358. package/_cjs/op-stack/decorators/walletL1.js.map +1 -1
  359. package/_cjs/op-stack/decorators/walletL2.js +1 -2
  360. package/_cjs/op-stack/decorators/walletL2.js.map +1 -1
  361. package/_cjs/op-stack/parsers.js +1 -2
  362. package/_cjs/op-stack/parsers.js.map +1 -1
  363. package/_cjs/op-stack/serializers.js +3 -3
  364. package/_cjs/op-stack/serializers.js.map +1 -1
  365. package/_cjs/op-stack/utils/extractTransactionDepositedLogs.js +1 -2
  366. package/_cjs/op-stack/utils/extractTransactionDepositedLogs.js.map +1 -1
  367. package/_cjs/op-stack/utils/extractWithdrawalMessageLogs.js +1 -2
  368. package/_cjs/op-stack/utils/extractWithdrawalMessageLogs.js.map +1 -1
  369. package/_cjs/op-stack/utils/getL2TransactionHash.js +1 -2
  370. package/_cjs/op-stack/utils/getL2TransactionHash.js.map +1 -1
  371. package/_cjs/op-stack/utils/getL2TransactionHashes.js +1 -2
  372. package/_cjs/op-stack/utils/getL2TransactionHashes.js.map +1 -1
  373. package/_cjs/op-stack/utils/getSourceHash.js +1 -2
  374. package/_cjs/op-stack/utils/getSourceHash.js.map +1 -1
  375. package/_cjs/op-stack/utils/getWithdrawalHashStorageSlot.js +1 -2
  376. package/_cjs/op-stack/utils/getWithdrawalHashStorageSlot.js.map +1 -1
  377. package/_cjs/op-stack/utils/getWithdrawals.js +1 -2
  378. package/_cjs/op-stack/utils/getWithdrawals.js.map +1 -1
  379. package/_cjs/op-stack/utils/opaqueDataToDepositData.js +1 -2
  380. package/_cjs/op-stack/utils/opaqueDataToDepositData.js.map +1 -1
  381. package/_cjs/utils/abi/decodeAbiParameters.js +1 -2
  382. package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
  383. package/_cjs/utils/abi/decodeDeployData.js +1 -2
  384. package/_cjs/utils/abi/decodeDeployData.js.map +1 -1
  385. package/_cjs/utils/abi/decodeErrorResult.js +1 -2
  386. package/_cjs/utils/abi/decodeErrorResult.js.map +1 -1
  387. package/_cjs/utils/abi/decodeEventLog.js +1 -2
  388. package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
  389. package/_cjs/utils/abi/decodeFunctionData.js +1 -2
  390. package/_cjs/utils/abi/decodeFunctionData.js.map +1 -1
  391. package/_cjs/utils/abi/decodeFunctionResult.js +1 -2
  392. package/_cjs/utils/abi/decodeFunctionResult.js.map +1 -1
  393. package/_cjs/utils/abi/encodeAbiParameters.js +2 -3
  394. package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
  395. package/_cjs/utils/abi/encodeDeployData.js +1 -2
  396. package/_cjs/utils/abi/encodeDeployData.js.map +1 -1
  397. package/_cjs/utils/abi/encodeErrorResult.js +1 -2
  398. package/_cjs/utils/abi/encodeErrorResult.js.map +1 -1
  399. package/_cjs/utils/abi/encodeEventTopics.js +6 -7
  400. package/_cjs/utils/abi/encodeEventTopics.js.map +1 -1
  401. package/_cjs/utils/abi/encodeFunctionData.js +1 -2
  402. package/_cjs/utils/abi/encodeFunctionData.js.map +1 -1
  403. package/_cjs/utils/abi/encodeFunctionResult.js +1 -2
  404. package/_cjs/utils/abi/encodeFunctionResult.js.map +1 -1
  405. package/_cjs/utils/abi/encodePacked.js +1 -2
  406. package/_cjs/utils/abi/encodePacked.js.map +1 -1
  407. package/_cjs/utils/abi/formatAbiItem.js +2 -3
  408. package/_cjs/utils/abi/formatAbiItem.js.map +1 -1
  409. package/_cjs/utils/abi/formatAbiItemWithArgs.js +1 -2
  410. package/_cjs/utils/abi/formatAbiItemWithArgs.js.map +1 -1
  411. package/_cjs/utils/abi/getAbiItem.js +3 -4
  412. package/_cjs/utils/abi/getAbiItem.js.map +1 -1
  413. package/_cjs/utils/abi/parseEventLogs.js +1 -2
  414. package/_cjs/utils/abi/parseEventLogs.js.map +1 -1
  415. package/_cjs/utils/abi/prepareEncodeFunctionData.js +1 -2
  416. package/_cjs/utils/abi/prepareEncodeFunctionData.js.map +1 -1
  417. package/_cjs/utils/address/getAddress.js +2 -3
  418. package/_cjs/utils/address/getAddress.js.map +1 -1
  419. package/_cjs/utils/address/getContractAddress.js +3 -4
  420. package/_cjs/utils/address/getContractAddress.js.map +1 -1
  421. package/_cjs/utils/address/isAddress.js +2 -2
  422. package/_cjs/utils/address/isAddress.js.map +1 -1
  423. package/_cjs/utils/address/isAddressEqual.js +1 -2
  424. package/_cjs/utils/address/isAddressEqual.js.map +1 -1
  425. package/_cjs/utils/blob/blobsToCommitments.js +1 -2
  426. package/_cjs/utils/blob/blobsToCommitments.js.map +1 -1
  427. package/_cjs/utils/blob/blobsToProofs.js +1 -2
  428. package/_cjs/utils/blob/blobsToProofs.js.map +1 -1
  429. package/_cjs/utils/blob/commitmentToVersionedHash.js +1 -2
  430. package/_cjs/utils/blob/commitmentToVersionedHash.js.map +1 -1
  431. package/_cjs/utils/blob/commitmentsToVersionedHashes.js +1 -2
  432. package/_cjs/utils/blob/commitmentsToVersionedHashes.js.map +1 -1
  433. package/_cjs/utils/blob/fromBlobs.js +1 -2
  434. package/_cjs/utils/blob/fromBlobs.js.map +1 -1
  435. package/_cjs/utils/blob/sidecarsToVersionedHashes.js +1 -2
  436. package/_cjs/utils/blob/sidecarsToVersionedHashes.js.map +1 -1
  437. package/_cjs/utils/blob/toBlobSidecars.js +1 -2
  438. package/_cjs/utils/blob/toBlobSidecars.js.map +1 -1
  439. package/_cjs/utils/blob/toBlobs.js +1 -2
  440. package/_cjs/utils/blob/toBlobs.js.map +1 -1
  441. package/_cjs/utils/buildRequest.js +2 -3
  442. package/_cjs/utils/buildRequest.js.map +1 -1
  443. package/_cjs/utils/ccip.js +3 -3
  444. package/_cjs/utils/ccip.js.map +1 -1
  445. package/_cjs/utils/chain/assertCurrentChain.js +1 -2
  446. package/_cjs/utils/chain/assertCurrentChain.js.map +1 -1
  447. package/_cjs/utils/chain/defineChain.js +1 -2
  448. package/_cjs/utils/chain/defineChain.js.map +1 -1
  449. package/_cjs/utils/chain/extractChain.js +1 -2
  450. package/_cjs/utils/chain/extractChain.js.map +1 -1
  451. package/_cjs/utils/chain/getChainContractAddress.js +1 -2
  452. package/_cjs/utils/chain/getChainContractAddress.js.map +1 -1
  453. package/_cjs/utils/cursor.js +1 -2
  454. package/_cjs/utils/cursor.js.map +1 -1
  455. package/_cjs/utils/data/concat.js +3 -4
  456. package/_cjs/utils/data/concat.js.map +1 -1
  457. package/_cjs/utils/data/isBytes.js +1 -2
  458. package/_cjs/utils/data/isBytes.js.map +1 -1
  459. package/_cjs/utils/data/isBytesEqual.js +1 -2
  460. package/_cjs/utils/data/isBytesEqual.js.map +1 -1
  461. package/_cjs/utils/data/isHex.js +1 -2
  462. package/_cjs/utils/data/isHex.js.map +1 -1
  463. package/_cjs/utils/data/pad.js +3 -4
  464. package/_cjs/utils/data/pad.js.map +1 -1
  465. package/_cjs/utils/data/size.js +1 -2
  466. package/_cjs/utils/data/size.js.map +1 -1
  467. package/_cjs/utils/data/slice.js +3 -4
  468. package/_cjs/utils/data/slice.js.map +1 -1
  469. package/_cjs/utils/data/trim.js +1 -2
  470. package/_cjs/utils/data/trim.js.map +1 -1
  471. package/_cjs/utils/encoding/fromBytes.js +5 -6
  472. package/_cjs/utils/encoding/fromBytes.js.map +1 -1
  473. package/_cjs/utils/encoding/fromHex.js +6 -7
  474. package/_cjs/utils/encoding/fromHex.js.map +1 -1
  475. package/_cjs/utils/encoding/fromRlp.js +1 -2
  476. package/_cjs/utils/encoding/fromRlp.js.map +1 -1
  477. package/_cjs/utils/encoding/toBytes.js +5 -6
  478. package/_cjs/utils/encoding/toBytes.js.map +1 -1
  479. package/_cjs/utils/encoding/toHex.js +5 -6
  480. package/_cjs/utils/encoding/toHex.js.map +1 -1
  481. package/_cjs/utils/encoding/toRlp.js +3 -4
  482. package/_cjs/utils/encoding/toRlp.js.map +1 -1
  483. package/_cjs/utils/ens/avatar/parseAvatarRecord.js +1 -2
  484. package/_cjs/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
  485. package/_cjs/utils/ens/avatar/utils.js +8 -9
  486. package/_cjs/utils/ens/avatar/utils.js.map +1 -1
  487. package/_cjs/utils/ens/encodeLabelhash.js +1 -2
  488. package/_cjs/utils/ens/encodeLabelhash.js.map +1 -1
  489. package/_cjs/utils/ens/encodedLabelToLabelhash.js +1 -2
  490. package/_cjs/utils/ens/encodedLabelToLabelhash.js.map +1 -1
  491. package/_cjs/utils/ens/errors.js +1 -2
  492. package/_cjs/utils/ens/errors.js.map +1 -1
  493. package/_cjs/utils/ens/labelhash.js +1 -2
  494. package/_cjs/utils/ens/labelhash.js.map +1 -1
  495. package/_cjs/utils/ens/namehash.js +1 -2
  496. package/_cjs/utils/ens/namehash.js.map +1 -1
  497. package/_cjs/utils/ens/normalize.js +1 -2
  498. package/_cjs/utils/ens/normalize.js.map +1 -1
  499. package/_cjs/utils/ens/packetToBytes.js +1 -2
  500. package/_cjs/utils/ens/packetToBytes.js.map +1 -1
  501. package/_cjs/utils/errors/getCallError.js +1 -2
  502. package/_cjs/utils/errors/getCallError.js.map +1 -1
  503. package/_cjs/utils/errors/getContractError.js +1 -2
  504. package/_cjs/utils/errors/getContractError.js.map +1 -1
  505. package/_cjs/utils/errors/getEstimateGasError.js +1 -2
  506. package/_cjs/utils/errors/getEstimateGasError.js.map +1 -1
  507. package/_cjs/utils/errors/getNodeError.js +2 -3
  508. package/_cjs/utils/errors/getNodeError.js.map +1 -1
  509. package/_cjs/utils/errors/getTransactionError.js +1 -2
  510. package/_cjs/utils/errors/getTransactionError.js.map +1 -1
  511. package/_cjs/utils/filters/createFilterRequestScope.js +1 -2
  512. package/_cjs/utils/filters/createFilterRequestScope.js.map +1 -1
  513. package/_cjs/utils/formatters/block.js +2 -2
  514. package/_cjs/utils/formatters/block.js.map +1 -1
  515. package/_cjs/utils/formatters/extract.js +1 -2
  516. package/_cjs/utils/formatters/extract.js.map +1 -1
  517. package/_cjs/utils/formatters/feeHistory.js +1 -2
  518. package/_cjs/utils/formatters/feeHistory.js.map +1 -1
  519. package/_cjs/utils/formatters/formatter.js +1 -2
  520. package/_cjs/utils/formatters/formatter.js.map +1 -1
  521. package/_cjs/utils/formatters/log.js +1 -2
  522. package/_cjs/utils/formatters/log.js.map +1 -1
  523. package/_cjs/utils/formatters/proof.js +1 -2
  524. package/_cjs/utils/formatters/proof.js.map +1 -1
  525. package/_cjs/utils/formatters/transaction.js +2 -2
  526. package/_cjs/utils/formatters/transaction.js.map +1 -1
  527. package/_cjs/utils/formatters/transactionReceipt.js +2 -2
  528. package/_cjs/utils/formatters/transactionReceipt.js.map +1 -1
  529. package/_cjs/utils/formatters/transactionRequest.js +2 -2
  530. package/_cjs/utils/formatters/transactionRequest.js.map +1 -1
  531. package/_cjs/utils/getAction.js +9 -6
  532. package/_cjs/utils/getAction.js.map +1 -1
  533. package/_cjs/utils/hash/hashSignature.js +1 -2
  534. package/_cjs/utils/hash/hashSignature.js.map +1 -1
  535. package/_cjs/utils/hash/isHash.js +1 -2
  536. package/_cjs/utils/hash/isHash.js.map +1 -1
  537. package/_cjs/utils/hash/keccak256.js +1 -2
  538. package/_cjs/utils/hash/keccak256.js.map +1 -1
  539. package/_cjs/utils/hash/normalizeSignature.js +1 -2
  540. package/_cjs/utils/hash/normalizeSignature.js.map +1 -1
  541. package/_cjs/utils/hash/ripemd160.js +1 -2
  542. package/_cjs/utils/hash/ripemd160.js.map +1 -1
  543. package/_cjs/utils/hash/sha256.js +1 -2
  544. package/_cjs/utils/hash/sha256.js.map +1 -1
  545. package/_cjs/utils/hash/toSignatureHash.js +1 -2
  546. package/_cjs/utils/hash/toSignatureHash.js.map +1 -1
  547. package/_cjs/utils/index.js.map +1 -1
  548. package/_cjs/utils/kzg/defineKzg.js +1 -2
  549. package/_cjs/utils/kzg/defineKzg.js.map +1 -1
  550. package/_cjs/utils/kzg/setupKzg.js +1 -2
  551. package/_cjs/utils/kzg/setupKzg.js.map +1 -1
  552. package/_cjs/utils/nonceManager.js +3 -3
  553. package/_cjs/utils/nonceManager.js.map +1 -1
  554. package/_cjs/utils/observe.js +2 -2
  555. package/_cjs/utils/observe.js.map +1 -1
  556. package/_cjs/utils/poll.js +1 -2
  557. package/_cjs/utils/poll.js.map +1 -1
  558. package/_cjs/utils/promise/createBatchScheduler.js +1 -2
  559. package/_cjs/utils/promise/createBatchScheduler.js.map +1 -1
  560. package/_cjs/utils/promise/withCache.js +3 -3
  561. package/_cjs/utils/promise/withCache.js.map +1 -1
  562. package/_cjs/utils/promise/withDedupe.js +2 -2
  563. package/_cjs/utils/promise/withDedupe.js.map +1 -1
  564. package/_cjs/utils/promise/withRetry.js +1 -2
  565. package/_cjs/utils/promise/withRetry.js.map +1 -1
  566. package/_cjs/utils/promise/withTimeout.js +1 -2
  567. package/_cjs/utils/promise/withTimeout.js.map +1 -1
  568. package/_cjs/utils/rpc/compat.js +2 -2
  569. package/_cjs/utils/rpc/compat.js.map +1 -1
  570. package/_cjs/utils/rpc/http.js +1 -2
  571. package/_cjs/utils/rpc/http.js.map +1 -1
  572. package/_cjs/utils/rpc/ipc.js +2 -3
  573. package/_cjs/utils/rpc/ipc.js.map +1 -1
  574. package/_cjs/utils/rpc/socket.js +2 -2
  575. package/_cjs/utils/rpc/socket.js.map +1 -1
  576. package/_cjs/utils/rpc/webSocket.js +1 -2
  577. package/_cjs/utils/rpc/webSocket.js.map +1 -1
  578. package/_cjs/utils/signature/compactSignatureToSignature.js +1 -2
  579. package/_cjs/utils/signature/compactSignatureToSignature.js.map +1 -1
  580. package/_cjs/utils/signature/hashMessage.js +1 -2
  581. package/_cjs/utils/signature/hashMessage.js.map +1 -1
  582. package/_cjs/utils/signature/hashTypedData.js +4 -5
  583. package/_cjs/utils/signature/hashTypedData.js.map +1 -1
  584. package/_cjs/utils/signature/isErc6492Signature.js +1 -2
  585. package/_cjs/utils/signature/isErc6492Signature.js.map +1 -1
  586. package/_cjs/utils/signature/parseCompactSignature.js +1 -2
  587. package/_cjs/utils/signature/parseCompactSignature.js.map +1 -1
  588. package/_cjs/utils/signature/parseErc6492Signature.js +1 -2
  589. package/_cjs/utils/signature/parseErc6492Signature.js.map +1 -1
  590. package/_cjs/utils/signature/parseSignature.js +1 -2
  591. package/_cjs/utils/signature/parseSignature.js.map +1 -1
  592. package/_cjs/utils/signature/recoverAddress.js +1 -2
  593. package/_cjs/utils/signature/recoverAddress.js.map +1 -1
  594. package/_cjs/utils/signature/recoverMessageAddress.js +1 -2
  595. package/_cjs/utils/signature/recoverMessageAddress.js.map +1 -1
  596. package/_cjs/utils/signature/recoverPublicKey.js +1 -2
  597. package/_cjs/utils/signature/recoverPublicKey.js.map +1 -1
  598. package/_cjs/utils/signature/recoverTransactionAddress.js +1 -2
  599. package/_cjs/utils/signature/recoverTransactionAddress.js.map +1 -1
  600. package/_cjs/utils/signature/recoverTypedDataAddress.js +1 -2
  601. package/_cjs/utils/signature/recoverTypedDataAddress.js.map +1 -1
  602. package/_cjs/utils/signature/serializeCompactSignature.js +1 -2
  603. package/_cjs/utils/signature/serializeCompactSignature.js.map +1 -1
  604. package/_cjs/utils/signature/serializeErc6492Signature.js +1 -2
  605. package/_cjs/utils/signature/serializeErc6492Signature.js.map +1 -1
  606. package/_cjs/utils/signature/serializeSignature.js +1 -2
  607. package/_cjs/utils/signature/serializeSignature.js.map +1 -1
  608. package/_cjs/utils/signature/signatureToCompactSignature.js +1 -2
  609. package/_cjs/utils/signature/signatureToCompactSignature.js.map +1 -1
  610. package/_cjs/utils/signature/toPrefixedMessage.js +1 -2
  611. package/_cjs/utils/signature/toPrefixedMessage.js.map +1 -1
  612. package/_cjs/utils/signature/verifyMessage.js +1 -2
  613. package/_cjs/utils/signature/verifyMessage.js.map +1 -1
  614. package/_cjs/utils/signature/verifyTypedData.js +1 -2
  615. package/_cjs/utils/signature/verifyTypedData.js.map +1 -1
  616. package/_cjs/utils/siwe/createSiweMessage.js +1 -2
  617. package/_cjs/utils/siwe/createSiweMessage.js.map +1 -1
  618. package/_cjs/utils/siwe/generateSiweNonce.js +1 -2
  619. package/_cjs/utils/siwe/generateSiweNonce.js.map +1 -1
  620. package/_cjs/utils/siwe/parseSiweMessage.js +1 -2
  621. package/_cjs/utils/siwe/parseSiweMessage.js.map +1 -1
  622. package/_cjs/utils/siwe/utils.js +1 -2
  623. package/_cjs/utils/siwe/utils.js.map +1 -1
  624. package/_cjs/utils/siwe/validateSiweMessage.js +1 -2
  625. package/_cjs/utils/siwe/validateSiweMessage.js.map +1 -1
  626. package/_cjs/utils/stateOverride.js +3 -4
  627. package/_cjs/utils/stateOverride.js.map +1 -1
  628. package/_cjs/utils/transaction/assertRequest.js +1 -2
  629. package/_cjs/utils/transaction/assertRequest.js.map +1 -1
  630. package/_cjs/utils/transaction/assertTransaction.js +4 -5
  631. package/_cjs/utils/transaction/assertTransaction.js.map +1 -1
  632. package/_cjs/utils/transaction/getSerializedTransactionType.js +1 -2
  633. package/_cjs/utils/transaction/getSerializedTransactionType.js.map +1 -1
  634. package/_cjs/utils/transaction/getTransactionType.js +1 -2
  635. package/_cjs/utils/transaction/getTransactionType.js.map +1 -1
  636. package/_cjs/utils/transaction/parseTransaction.js +3 -4
  637. package/_cjs/utils/transaction/parseTransaction.js.map +1 -1
  638. package/_cjs/utils/transaction/serializeAccessList.js +1 -2
  639. package/_cjs/utils/transaction/serializeAccessList.js.map +1 -1
  640. package/_cjs/utils/transaction/serializeTransaction.js +2 -3
  641. package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
  642. package/_cjs/utils/typedData.js +4 -5
  643. package/_cjs/utils/typedData.js.map +1 -1
  644. package/_cjs/utils/uid.js +1 -2
  645. package/_cjs/utils/uid.js.map +1 -1
  646. package/_cjs/utils/unit/formatEther.js +1 -2
  647. package/_cjs/utils/unit/formatEther.js.map +1 -1
  648. package/_cjs/utils/unit/formatGwei.js +1 -2
  649. package/_cjs/utils/unit/formatGwei.js.map +1 -1
  650. package/_cjs/utils/unit/formatUnits.js +1 -2
  651. package/_cjs/utils/unit/formatUnits.js.map +1 -1
  652. package/_cjs/utils/unit/parseEther.js +1 -2
  653. package/_cjs/utils/unit/parseEther.js.map +1 -1
  654. package/_cjs/utils/unit/parseGwei.js +1 -2
  655. package/_cjs/utils/unit/parseGwei.js.map +1 -1
  656. package/_cjs/utils/unit/parseUnits.js +1 -2
  657. package/_cjs/utils/unit/parseUnits.js.map +1 -1
  658. package/_cjs/utils/wait.js +1 -2
  659. package/_cjs/utils/wait.js.map +1 -1
  660. package/_cjs/zksync/actions/deployContract.js +1 -2
  661. package/_cjs/zksync/actions/deployContract.js.map +1 -1
  662. package/_cjs/zksync/actions/estimateFee.js +1 -2
  663. package/_cjs/zksync/actions/estimateFee.js.map +1 -1
  664. package/_cjs/zksync/actions/estimateGasL1ToL2.js +1 -2
  665. package/_cjs/zksync/actions/estimateGasL1ToL2.js.map +1 -1
  666. package/_cjs/zksync/actions/getAllBalances.js +1 -2
  667. package/_cjs/zksync/actions/getAllBalances.js.map +1 -1
  668. package/_cjs/zksync/actions/getBaseTokenL1Address.js +1 -2
  669. package/_cjs/zksync/actions/getBaseTokenL1Address.js.map +1 -1
  670. package/_cjs/zksync/actions/getBlockDetails.js +1 -2
  671. package/_cjs/zksync/actions/getBlockDetails.js.map +1 -1
  672. package/_cjs/zksync/actions/getBridgehubContractAddress.js +1 -2
  673. package/_cjs/zksync/actions/getBridgehubContractAddress.js.map +1 -1
  674. package/_cjs/zksync/actions/getDefaultBridgeAddresses.js +1 -2
  675. package/_cjs/zksync/actions/getDefaultBridgeAddresses.js.map +1 -1
  676. package/_cjs/zksync/actions/getL1Allowance.js +1 -2
  677. package/_cjs/zksync/actions/getL1Allowance.js.map +1 -1
  678. package/_cjs/zksync/actions/getL1Balance.js +1 -2
  679. package/_cjs/zksync/actions/getL1Balance.js.map +1 -1
  680. package/_cjs/zksync/actions/getL1BatchBlockRange.js +1 -2
  681. package/_cjs/zksync/actions/getL1BatchBlockRange.js.map +1 -1
  682. package/_cjs/zksync/actions/getL1BatchDetails.js +1 -2
  683. package/_cjs/zksync/actions/getL1BatchDetails.js.map +1 -1
  684. package/_cjs/zksync/actions/getL1BatchNumber.js +1 -2
  685. package/_cjs/zksync/actions/getL1BatchNumber.js.map +1 -1
  686. package/_cjs/zksync/actions/getL1ChainId.js +1 -2
  687. package/_cjs/zksync/actions/getL1ChainId.js.map +1 -1
  688. package/_cjs/zksync/actions/getL1TokenBalance.js +1 -2
  689. package/_cjs/zksync/actions/getL1TokenBalance.js.map +1 -1
  690. package/_cjs/zksync/actions/getLogProof.js +1 -2
  691. package/_cjs/zksync/actions/getLogProof.js.map +1 -1
  692. package/_cjs/zksync/actions/getMainContractAddress.js +1 -2
  693. package/_cjs/zksync/actions/getMainContractAddress.js.map +1 -1
  694. package/_cjs/zksync/actions/getRawBlockTransactions.js +1 -2
  695. package/_cjs/zksync/actions/getRawBlockTransactions.js.map +1 -1
  696. package/_cjs/zksync/actions/getTestnetPaymasterAddress.js +1 -2
  697. package/_cjs/zksync/actions/getTestnetPaymasterAddress.js.map +1 -1
  698. package/_cjs/zksync/actions/getTransactionDetails.js +1 -2
  699. package/_cjs/zksync/actions/getTransactionDetails.js.map +1 -1
  700. package/_cjs/zksync/actions/sendEip712Transaction.js +1 -2
  701. package/_cjs/zksync/actions/sendEip712Transaction.js.map +1 -1
  702. package/_cjs/zksync/actions/sendTransaction.js +1 -2
  703. package/_cjs/zksync/actions/sendTransaction.js.map +1 -1
  704. package/_cjs/zksync/actions/signEip712Transaction.js +1 -2
  705. package/_cjs/zksync/actions/signEip712Transaction.js.map +1 -1
  706. package/_cjs/zksync/actions/signTransaction.js +1 -2
  707. package/_cjs/zksync/actions/signTransaction.js.map +1 -1
  708. package/_cjs/zksync/decorators/eip712.js +1 -2
  709. package/_cjs/zksync/decorators/eip712.js.map +1 -1
  710. package/_cjs/zksync/decorators/publicL1.js +1 -2
  711. package/_cjs/zksync/decorators/publicL1.js.map +1 -1
  712. package/_cjs/zksync/decorators/publicL2.js +1 -2
  713. package/_cjs/zksync/decorators/publicL2.js.map +1 -1
  714. package/_cjs/zksync/serializers.js +2 -2
  715. package/_cjs/zksync/serializers.js.map +1 -1
  716. package/_cjs/zksync/utils/abi/encodeDeployData.js +1 -2
  717. package/_cjs/zksync/utils/abi/encodeDeployData.js.map +1 -1
  718. package/_cjs/zksync/utils/assertEip712Request.js +1 -2
  719. package/_cjs/zksync/utils/assertEip712Request.js.map +1 -1
  720. package/_cjs/zksync/utils/assertEip712Transaction.js +1 -2
  721. package/_cjs/zksync/utils/assertEip712Transaction.js.map +1 -1
  722. package/_cjs/zksync/utils/camelCaseKeys.js +1 -2
  723. package/_cjs/zksync/utils/camelCaseKeys.js.map +1 -1
  724. package/_cjs/zksync/utils/hashBytecode.js +1 -2
  725. package/_cjs/zksync/utils/hashBytecode.js.map +1 -1
  726. package/_cjs/zksync/utils/isEip712Transaction.js +1 -2
  727. package/_cjs/zksync/utils/isEip712Transaction.js.map +1 -1
  728. package/_cjs/zksync/utils/isEth.js +1 -2
  729. package/_cjs/zksync/utils/isEth.js.map +1 -1
  730. package/_cjs/zksync/utils/paymaster/getApprovalBasedPaymasterInput.js +1 -2
  731. package/_cjs/zksync/utils/paymaster/getApprovalBasedPaymasterInput.js.map +1 -1
  732. package/_cjs/zksync/utils/paymaster/getGeneralPaymasterInput.js +1 -2
  733. package/_cjs/zksync/utils/paymaster/getGeneralPaymasterInput.js.map +1 -1
  734. package/_esm/actions/public/createEventFilter.js +7 -7
  735. package/_esm/actions/public/createEventFilter.js.map +1 -1
  736. package/_esm/actions/public/getLogs.js +7 -7
  737. package/_esm/actions/public/getLogs.js.map +1 -1
  738. package/_esm/actions/public/watchEvent.js +7 -7
  739. package/_esm/actions/public/watchEvent.js.map +1 -1
  740. package/_esm/actions/wallet/sendTransaction.js +1 -0
  741. package/_esm/actions/wallet/sendTransaction.js.map +1 -1
  742. package/_esm/errors/version.js +1 -1
  743. package/_esm/experimental/index.js +0 -2
  744. package/_esm/experimental/index.js.map +1 -1
  745. package/_esm/experimental/solady/actions/signTypedData.js +6 -28
  746. package/_esm/experimental/solady/actions/signTypedData.js.map +1 -1
  747. package/_esm/experimental/solady/index.js +8 -0
  748. package/_esm/experimental/solady/index.js.map +1 -0
  749. package/_esm/experimental/solady/utils/hashMessage.js +32 -0
  750. package/_esm/experimental/solady/utils/hashMessage.js.map +1 -0
  751. package/_esm/experimental/solady/utils/hashTypedData.js +72 -0
  752. package/_esm/experimental/solady/utils/hashTypedData.js.map +1 -0
  753. package/_esm/experimental/solady/utils/wrapTypedDataSignature.js +82 -0
  754. package/_esm/experimental/solady/utils/wrapTypedDataSignature.js.map +1 -0
  755. package/_esm/index.js.map +1 -1
  756. package/_esm/utils/abi/encodeEventTopics.js +5 -5
  757. package/_esm/utils/abi/encodeEventTopics.js.map +1 -1
  758. package/_esm/utils/getAction.js +11 -7
  759. package/_esm/utils/getAction.js.map +1 -1
  760. package/_esm/utils/index.js.map +1 -1
  761. package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
  762. package/_types/celo/chainConfig.d.ts +1086 -1086
  763. package/_types/celo/formatters.d.ts +543 -543
  764. package/_types/celo/formatters.d.ts.map +1 -1
  765. package/_types/chains/definitions/ancient8.d.ts +260 -260
  766. package/_types/chains/definitions/ancient8Sepolia.d.ts +260 -260
  767. package/_types/chains/definitions/base.d.ts +260 -260
  768. package/_types/chains/definitions/baseGoerli.d.ts +260 -260
  769. package/_types/chains/definitions/baseSepolia.d.ts +260 -260
  770. package/_types/chains/definitions/celo.d.ts +1086 -1086
  771. package/_types/chains/definitions/celoAlfajores.d.ts +1086 -1086
  772. package/_types/chains/definitions/fraxtal.d.ts +260 -260
  773. package/_types/chains/definitions/fraxtalTestnet.d.ts +260 -260
  774. package/_types/chains/definitions/funkiSepolia.d.ts +260 -260
  775. package/_types/chains/definitions/lisk.d.ts +315 -315
  776. package/_types/chains/definitions/liskSepolia.d.ts +260 -260
  777. package/_types/chains/definitions/metalL2.d.ts +260 -260
  778. package/_types/chains/definitions/optimism.d.ts +260 -260
  779. package/_types/chains/definitions/optimismGoerli.d.ts +260 -260
  780. package/_types/chains/definitions/optimismSepolia.d.ts +260 -260
  781. package/_types/chains/definitions/pgn.d.ts +260 -260
  782. package/_types/chains/definitions/pgnTestnet.d.ts +260 -260
  783. package/_types/chains/definitions/playfiAlbireo.d.ts +315 -315
  784. package/_types/chains/definitions/rss3.d.ts +260 -260
  785. package/_types/chains/definitions/rss3Sepolia.d.ts +260 -260
  786. package/_types/chains/definitions/zkSync.d.ts +315 -315
  787. package/_types/chains/definitions/zkSyncInMemoryNode.d.ts +315 -315
  788. package/_types/chains/definitions/zkSyncLocalNode.d.ts +315 -315
  789. package/_types/chains/definitions/zkSyncSepoliaTestnet.d.ts +315 -315
  790. package/_types/chains/definitions/zkSyncTestnet.d.ts +315 -315
  791. package/_types/chains/definitions/zora.d.ts +260 -260
  792. package/_types/chains/definitions/zoraSepolia.d.ts +260 -260
  793. package/_types/chains/definitions/zoraTestnet.d.ts +260 -260
  794. package/_types/errors/version.d.ts +1 -1
  795. package/_types/experimental/eip5792/decorators/eip5792.d.ts.map +1 -1
  796. package/_types/experimental/erc7715/decorators/erc7715.d.ts.map +1 -1
  797. package/_types/experimental/index.d.ts +0 -2
  798. package/_types/experimental/index.d.ts.map +1 -1
  799. package/_types/experimental/solady/actions/signTypedData.d.ts.map +1 -1
  800. package/_types/experimental/solady/decorators/solady.d.ts.map +1 -1
  801. package/_types/experimental/solady/index.d.ts +7 -0
  802. package/_types/experimental/solady/index.d.ts.map +1 -0
  803. package/_types/experimental/solady/utils/hashMessage.d.ts +30 -0
  804. package/_types/experimental/solady/utils/hashMessage.d.ts.map +1 -0
  805. package/_types/experimental/solady/utils/hashTypedData.d.ts +59 -0
  806. package/_types/experimental/solady/utils/hashTypedData.d.ts.map +1 -0
  807. package/_types/experimental/solady/utils/wrapTypedDataSignature.d.ts +50 -0
  808. package/_types/experimental/solady/utils/wrapTypedDataSignature.d.ts.map +1 -0
  809. package/_types/index.d.ts +1 -1
  810. package/_types/index.d.ts.map +1 -1
  811. package/_types/op-stack/chainConfig.d.ts +260 -260
  812. package/_types/op-stack/decorators/publicL1.d.ts.map +1 -1
  813. package/_types/op-stack/decorators/publicL2.d.ts.map +1 -1
  814. package/_types/op-stack/decorators/walletL1.d.ts.map +1 -1
  815. package/_types/op-stack/decorators/walletL2.d.ts.map +1 -1
  816. package/_types/op-stack/formatters.d.ts +260 -260
  817. package/_types/op-stack/formatters.d.ts.map +1 -1
  818. package/_types/utils/abi/decodeFunctionData.d.ts +1 -1
  819. package/_types/utils/abi/decodeFunctionData.d.ts.map +1 -1
  820. package/_types/utils/abi/encodeEventTopics.d.ts +3 -1
  821. package/_types/utils/abi/encodeEventTopics.d.ts.map +1 -1
  822. package/_types/utils/formatters/block.d.ts.map +1 -1
  823. package/_types/utils/formatters/formatter.d.ts +2 -2
  824. package/_types/utils/formatters/formatter.d.ts.map +1 -1
  825. package/_types/utils/formatters/log.d.ts.map +1 -1
  826. package/_types/utils/formatters/proof.d.ts.map +1 -1
  827. package/_types/utils/formatters/transaction.d.ts +127 -126
  828. package/_types/utils/formatters/transaction.d.ts.map +1 -1
  829. package/_types/utils/formatters/transactionRequest.d.ts +67 -66
  830. package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
  831. package/_types/utils/getAction.d.ts +9 -1
  832. package/_types/utils/getAction.d.ts.map +1 -1
  833. package/_types/utils/index.d.ts +1 -1
  834. package/_types/utils/index.d.ts.map +1 -1
  835. package/_types/utils/rpc/compat.d.ts.map +1 -1
  836. package/_types/utils/rpc/ipc.d.ts +0 -2
  837. package/_types/utils/rpc/ipc.d.ts.map +1 -1
  838. package/_types/zksync/chainConfig.d.ts +315 -315
  839. package/_types/zksync/decorators/eip712.d.ts.map +1 -1
  840. package/_types/zksync/decorators/publicL1.d.ts.map +1 -1
  841. package/_types/zksync/decorators/publicL2.d.ts.map +1 -1
  842. package/_types/zksync/formatters.d.ts +315 -315
  843. package/_types/zksync/formatters.d.ts.map +1 -1
  844. package/actions/public/createEventFilter.ts +9 -9
  845. package/actions/public/getLogs.ts +9 -9
  846. package/actions/public/watchEvent.ts +9 -9
  847. package/actions/wallet/sendTransaction.ts +1 -0
  848. package/errors/version.ts +1 -1
  849. package/experimental/index.ts +0 -12
  850. package/experimental/solady/actions/signTypedData.ts +6 -35
  851. package/experimental/solady/index.ts +36 -0
  852. package/experimental/solady/utils/hashMessage.ts +60 -0
  853. package/experimental/solady/utils/hashTypedData.ts +112 -0
  854. package/experimental/solady/utils/wrapTypedDataSignature.ts +108 -0
  855. package/index.ts +1 -0
  856. package/package.json +9 -1
  857. package/utils/abi/encodeEventTopics.ts +13 -11
  858. package/utils/getAction.ts +31 -15
  859. package/utils/index.ts +1 -0
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.encodeDeployData = void 0;
3
+ exports.encodeDeployData = encodeDeployData;
4
4
  const bytes_js_1 = require("../../../constants/bytes.js");
5
5
  const abi_js_1 = require("../../../errors/abi.js");
6
6
  const encodeAbiParameters_js_1 = require("../../../utils/abi/encodeAbiParameters.js");
@@ -35,7 +35,6 @@ function encodeDeployData(parameters) {
35
35
  args: argsContractDeployer,
36
36
  });
37
37
  }
38
- exports.encodeDeployData = encodeDeployData;
39
38
  function getDeploymentDetails(deploymentType, salt, bytecodeHash, data) {
40
39
  const contractDeploymentArgs = [salt, bytecodeHash, data];
41
40
  const deploymentOptions = {
@@ -1 +1 @@
1
- {"version":3,"file":"encodeDeployData.js","sourceRoot":"","sources":["../../../../zksync/utils/abi/encodeDeployData.ts"],"names":[],"mappings":";;;AAEA,0DAAsD;AACtD,mDAG+B;AAK/B,sFAA+E;AAK/E,oFAGiD;AACjD,+DAAwD;AACxD,qDAA6D;AAC7D,6DAAwE;AAExE,wDAA6E;AAE7E,MAAM,QAAQ,GAAG,iCAAiC,CAAA;AAuBlD,SAAgB,gBAAgB,CAC9B,UAA2C;IAE3C,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE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AA;AACJ,CAAC;AAED,SAAS,oBAAoB,CAC3B,cAAsC,EACtC,IAAU,EACV,YAAiB,EACjB,IAAS;IAKT,MAAM,sBAAsB,GAAG,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,CAAA;IAEzD,MAAM,iBAAiB,GAAG;QACxB,MAAM,EAAE;YACN,YAAY,EAAE,QAAQ;YACtB,oBAAoB,EAAE,sBAAsB;SAC7C;QACD,OAAO,EAAE;YACP,YAAY,EAAE,SAAS;YACvB,oBAAoB,EAAE,sBAAsB;SAC7C;QACD,aAAa,EAAE;YACb,YAAY,EAAE,eAAe;YAC7B,oBAAoB,EAAE;gBACpB,GAAG,sBAAsB;gBACzB,wCAA0B;aAC3B;SACF;QACD,cAAc,EAAE;YACd,YAAY,EAAE,gBAAgB;YAC9B,oBAAoB,EAAE;gBACpB,GAAG,sBAAsB;gBACzB,wCAA0B;aAC3B;SACF;KACF,CAAA;IAED,MAAM,aAAa,GAAG,cAAc,IAAI,QAAQ,CAAA;IAChD,OAAO,iBAAiB,CAAC,aAAa,CAAC,CAAA;AACzC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.assertEip712Request = void 0;
3
+ exports.assertEip712Request = assertEip712Request;
4
4
  const assertRequest_js_1 = require("../../utils/transaction/assertRequest.js");
5
5
  const transaction_js_1 = require("../errors/transaction.js");
6
6
  const isEip712Transaction_js_1 = require("./isEip712Transaction.js");
@@ -9,5 +9,4 @@ function assertEip712Request(args) {
9
9
  throw new transaction_js_1.InvalidEip712TransactionError();
10
10
  (0, assertRequest_js_1.assertRequest)(args);
11
11
  }
12
- exports.assertEip712Request = assertEip712Request;
13
12
  //# sourceMappingURL=assertEip712Request.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"assertEip712Request.js","sourceRoot":"","sources":["../../../zksync/utils/assertEip712Request.ts"],"names":[],"mappings":";;;AAEA,+EAGiD;AAGjD,6DAGiC;AACjC,qEAA8D;AAY9D,SAAgB,mBAAmB,CAAC,IAAmC;IACrE,IAAI,CAAC,IAAA,4CAAmB,EAAC,IAAW,CAAC;QACnC,MAAM,IAAI,8CAA6B,EAAE,CAAA;IAC3C,IAAA,gCAAa,EAAC,IAAW,CAAC,CAAA;AAC5B,CAAC;AAJD,kDAIC"}
1
+ {"version":3,"file":"assertEip712Request.js","sourceRoot":"","sources":["../../../zksync/utils/assertEip712Request.ts"],"names":[],"mappings":";;AAwBA,kDAIC;AA1BD,+EAGiD;AAGjD,6DAGiC;AACjC,qEAA8D;AAY9D,SAAgB,mBAAmB,CAAC,IAAmC;IACrE,IAAI,CAAC,IAAA,4CAAmB,EAAC,IAAW,CAAC;QACnC,MAAM,IAAI,8CAA6B,EAAE,CAAA;IAC3C,IAAA,gCAAa,EAAC,IAAW,CAAC,CAAA;AAC5B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.assertEip712Transaction = void 0;
3
+ exports.assertEip712Transaction = assertEip712Transaction;
4
4
  const address_js_1 = require("../../errors/address.js");
5
5
  const base_js_1 = require("../../errors/base.js");
6
6
  const chain_js_1 = require("../../errors/chain.js");
@@ -26,5 +26,4 @@ function assertEip712Transaction(transaction) {
26
26
  throw new base_js_1.BaseError('`paymaster` must be provided when `paymasterInput` is defined');
27
27
  }
28
28
  }
29
- exports.assertEip712Transaction = assertEip712Transaction;
30
29
  //# sourceMappingURL=assertEip712Transaction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"assertEip712Transaction.js","sourceRoot":"","sources":["../../../zksync/utils/assertEip712Transaction.ts"],"names":[],"mappings":";;;AAAA,wDAA6D;AAC7D,kDAAgD;AAChD,oDAA2D;AAE3D,mEAA4D;AAC5D,6DAAwE;AAKxE,qEAA8D;AAE9D,SAAgB,uBAAuB,CACrC,WAAwD;IAExD,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE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AAI,CAAC,IAAA,4CAAmB,EAAC,WAAW,CAAC;QACnC,MAAM,IAAI,8CAA6B,EAAE,CAAA;IAC3C,IAAI,CAAC,OAAO,IAAI,OAAO,IAAI,CAAC;QAAE,MAAM,IAAI,8BAAmB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;IACxE,IAAI,EAAE,IAAI,CAAC,IAAA,wBAAS,EAAC,EAAE,CAAC;QAAE,MAAM,IAAI,gCAAmB,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAAA;IACxE,IAAI,IAAI,IAAI,CAAC,IAAA,wBAAS,EAAC,IAAI,CAAC;QAAE,MAAM,IAAI,gCAAmB,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAA;IAC9E,IAAI,SAAS,IAAI,CAAC,IAAA,wBAAS,EAAC,SAAS,CAAC;QACpC,MAAM,IAAI,gCAAmB,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC,CAAA;IACvD,IAAI,SAAS,IAAI,CAAC,cAAc,EAAE,CAAC;QACjC,MAAM,IAAI,mBAAS,CACjB,+DAA+D,CAChE,CAAA;IACH,CAAC;IACD,IAAI,CAAC,SAAS,IAAI,cAAc,EAAE,CAAC;QACjC,MAAM,IAAI,mBAAS,CACjB,+DAA+D,CAChE,CAAA;IACH,CAAC;AACH,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.camelCaseKeys = void 0;
3
+ exports.camelCaseKeys = camelCaseKeys;
4
4
  function camelCaseKeys(response) {
5
5
  if (!response)
6
6
  return response;
@@ -13,5 +13,4 @@ function camelCaseKeys(response) {
13
13
  camelCaseKeys(value),
14
14
  ]));
15
15
  }
16
- exports.camelCaseKeys = camelCaseKeys;
17
16
  //# sourceMappingURL=camelCaseKeys.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"camelCaseKeys.js","sourceRoot":"","sources":["../../../zksync/utils/camelCaseKeys.ts"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AC7D,aAAa,CAAC,KAAK,CAAC;KACrB,CAAC,CACH,CAAA;AACH,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.hashBytecode = void 0;
3
+ exports.hashBytecode = hashBytecode;
4
4
  const pad_js_1 = require("../../utils/data/pad.js");
5
5
  const toBytes_js_1 = require("../../utils/encoding/toBytes.js");
6
6
  const sha256_js_1 = require("../../utils/hash/sha256.js");
@@ -32,5 +32,4 @@ function hashBytecode(bytecode) {
32
32
  hash.set(bytecodeLengthPadded, 2);
33
33
  return hash;
34
34
  }
35
- exports.hashBytecode = hashBytecode;
36
35
  //# sourceMappingURL=hashBytecode.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"hashBytecode.js","sourceRoot":"","sources":["../../../zksync/utils/hashBytecode.ts"],"names":[],"mappings":";;;AAEA,oDAA6C;AAC7C,gEAAgF;AAChF,0DAAyE;AACzE,sDAAwD;AACxD,uDAO8B;AAU9B,SAAgB,YAAY,CAAC,QAAa;IACxC,MAAM,aAAa,GAAG,IAAA,oBAAO,EAAC,QAAQ,CAAC,CAAA;IACvC,IAAI,aAAa,CAAC,MAAM,GAAG,EAAE,KAAK,CAAC;QACjC,MAAM,IAAI,oDAAsC,CAAC;YAC/C,WAAW,EAAE,aAAa,CAAC,MAAM;SAClC,CAAC,CAAA;IAEJ,IAAI,aAAa,CAAC,MAAM,GAAG,2BAAe;QACxC,MAAM,IAAI,+CAAiC,CAAC;YAC1C,WAAW,EAAE,aAAa,CAAC,MAAM;YACjC,eAAe,EAAf,2BAAe;SAChB,CAAC,CAAA;IAEJ,MAAM,OAAO,GAAG,IAAA,kBAAM,EAAC,aAAa,CAAC,CAAA;IACrC,MAAM,IAAI,GAAG,IAAA,oBAAO,EAAC,OAAO,CAAC,CAAA;IAI7B,MAAM,qBAAqB,GAAG,aAAa,CAAC,MAAM,GAAG,EAAE,CAAA;IACvD,IAAI,qBAAqB,GAAG,CAAC,KA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;IAI7B,MAAM,qBAAqB,GAAG,aAAa,CAAC,MAAM,GAAG,EAAE,CAAA;IACvD,IAAI,qBAAqB,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,iDAAmC,CAAC;YAC5C,kBAAkB,EAAE,qBAAqB;SAC1C,CAAC,CAAA;IACJ,CAAC;IAED,MAAM,cAAc,GAAG,IAAA,oBAAO,EAAC,qBAAqB,CAAC,CAAA;IAIrD,MAAM,oBAAoB,GAAG,IAAA,YAAG,EAAC,cAAc,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,CAAC,CAAA;IAE7D,MAAM,eAAe,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;IAC9C,IAAI,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC,CAAA;IAC5B,IAAI,CAAC,GAAG,CAAC,oBAAoB,EAAE,CAAC,CAAC,CAAA;IAEjC,OAAO,IAAI,CAAA;AACb,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isEIP712Transaction = void 0;
3
+ exports.isEIP712Transaction = isEIP712Transaction;
4
4
  function isEIP712Transaction(transaction) {
5
5
  if (transaction.type === 'eip712')
6
6
  return true;
@@ -13,5 +13,4 @@ function isEIP712Transaction(transaction) {
13
13
  return true;
14
14
  return false;
15
15
  }
16
- exports.isEIP712Transaction = isEIP712Transaction;
17
16
  //# sourceMappingURL=isEip712Transaction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isEip712Transaction.js","sourceRoot":"","sources":["../../../zksync/utils/isEip712Transaction.ts"],"names":[],"mappings":";;;AAGA,SAAgB,mBAAmB,CACjC,WAAwD;IAExD,IAAI,WAAW,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAA;IAC9C,IACE,CAAC,iBAAiB,IAAI,WAAW,IAAI,WAAW,CAAC,eAAe,CAAC;QACjE,CAAC,WAAW,IAAI,WAAW,IAAI,WAAW,CAAC,SAAS,CAAC;QACrD,CAAC,gBAAgB,IAAI,WAAW,IAAI,WAAW,CAAC,cAAc,CAAC;QAC/D,CAAC,eAAe,IAAI,WAAW;YAC7B,OAAO,WAAW,CAAC,aAAa,KAAK,QAAQ,CAAC;QAChD,CAAC,aAAa,IAAI,WAAW,IAAI,WAAW,CAAC,WAAW,CAAC;QAEzD,OAAO,IAAI,CAAA;IACb,OAAO,KAAK,CAAA;AACd,CAAC;AAdD,kDAcC"}
1
+ {"version":3,"file":"isEip712Transaction.js","sourceRoot":"","sources":["../../../zksync/utils/isEip712Transaction.ts"],"names":[],"mappings":";;AAGA,kDAcC;AAdD,SAAgB,mBAAmB,CACjC,WAAwD;IAExD,IAAI,WAAW,CAAC,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAA;IAC9C,IACE,CAAC,iBAAiB,IAAI,WAAW,IAAI,WAAW,CAAC,eAAe,CAAC;QACjE,CAAC,WAAW,IAAI,WAAW,IAAI,WAAW,CAAC,SAAS,CAAC;QACrD,CAAC,gBAAgB,IAAI,WAAW,IAAI,WAAW,CAAC,cAAc,CAAC;QAC/D,CAAC,eAAe,IAAI,WAAW;YAC7B,OAAO,WAAW,CAAC,aAAa,KAAK,QAAQ,CAAC;QAChD,CAAC,aAAa,IAAI,WAAW,IAAI,WAAW,CAAC,WAAW,CAAC;QAEzD,OAAO,IAAI,CAAA;IACb,OAAO,KAAK,CAAA;AACd,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isEth = void 0;
3
+ exports.isEth = isEth;
4
4
  const address_js_1 = require("../constants/address.js");
5
5
  function isEth(token) {
6
6
  return (token.localeCompare(address_js_1.legacyEthAddress, undefined, {
@@ -13,5 +13,4 @@ function isEth(token) {
13
13
  sensitivity: 'accent',
14
14
  }) === 0);
15
15
  }
16
- exports.isEth = isEth;
17
16
  //# sourceMappingURL=isEth.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"isEth.js","sourceRoot":"","sources":["../../../zksync/utils/isEth.ts"],"names":[],"mappings":";;;AACA,wDAIgC;AAEhC,SAAgB,KAAK,CAAC,KAAc;IAClC,OAAO,CACL,KAAK,CAAC,aAAa,CAAC,6BAAgB,EAAE,SAAS,EAAE;QAC/C,WAAW,EAAE,QAAQ;KACtB,CAAC,KAAK,CAAC;QACR,KAAK,CAAC,aAAa,CAAC,+BAAkB,EAAE,SAAS,EAAE;YACjD,WAAW,EAAE,QAAQ;SACtB,CAAC,KAAK,CAAC;QACR,KAAK,CAAC,aAAa,CAAC,kCAAqB,EAAE,SAAS,EAAE;YACpD,WAAW,EAAE,QAAQ;SACtB,CAAC,KAAK,CAAC,CACT,CAAA;AACH,CAAC;AAZD,sBAYC"}
1
+ {"version":3,"file":"isEth.js","sourceRoot":"","sources":["../../../zksync/utils/isEth.ts"],"names":[],"mappings":";;AAOA,sBAYC;AAlBD,wDAIgC;AAEhC,SAAgB,KAAK,CAAC,KAAc;IAClC,OAAO,CACL,KAAK,CAAC,aAAa,CAAC,6BAAgB,EAAE,SAAS,EAAE;QAC/C,WAAW,EAAE,QAAQ;KACtB,CAAC,KAAK,CAAC;QACR,KAAK,CAAC,aAAa,CAAC,+BAAkB,EAAE,SAAS,EAAE;YACjD,WAAW,EAAE,QAAQ;SACtB,CAAC,KAAK,CAAC;QACR,KAAK,CAAC,aAAa,CAAC,kCAAqB,EAAE,SAAS,EAAE;YACpD,WAAW,EAAE,QAAQ;SACtB,CAAC,KAAK,CAAC,CACT,CAAA;AACH,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getApprovalBasedPaymasterInput = void 0;
3
+ exports.getApprovalBasedPaymasterInput = getApprovalBasedPaymasterInput;
4
4
  const encodeFunctionData_js_1 = require("../../../utils/abi/encodeFunctionData.js");
5
5
  const toHex_js_1 = require("../../../utils/encoding/toHex.js");
6
6
  const abis_js_1 = require("../../constants/abis.js");
@@ -13,5 +13,4 @@ function getApprovalBasedPaymasterInput(parameters) {
13
13
  args: [token, minAllowance, innerInputHex],
14
14
  });
15
15
  }
16
- exports.getApprovalBasedPaymasterInput = getApprovalBasedPaymasterInput;
17
16
  //# sourceMappingURL=getApprovalBasedPaymasterInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getApprovalBasedPaymasterInput.js","sourceRoot":"","sources":["../../../../zksync/utils/paymaster/getApprovalBasedPaymasterInput.ts"],"names":[],"mappings":";;;AAEA,oFAGiD;AACjD,+DAA6D;AAC7D,qDAAsD;AAWtD,SAAgB,8BAA8B,CAC5C,UAAoD;IAEpD,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,UAAU,CAAA;IAEtD,MAAM,aAAa,GACjB,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAA,qBAAU,EAAC,UAAU,CAAC,CAAA;IAEtE,OAAO,IAAA,0CAAkB,EAAC;QACxB,GAAG,EAAE,sBAAY;QACjB,YAAY,EAAE,eAAe;QAC7B,IAAI,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,aAAa,CAAC;KAC3C,CAAC,CAAA;AACJ,CAAC;AAbD,wEAaC"}
1
+ {"version":3,"file":"getApprovalBasedPaymasterInput.js","sourceRoot":"","sources":["../../../../zksync/utils/paymaster/getApprovalBasedPaymasterInput.ts"],"names":[],"mappings":";;AAkBA,wEAaC;AA7BD,oFAGiD;AACjD,+DAA6D;AAC7D,qDAAsD;AAWtD,SAAgB,8BAA8B,CAC5C,UAAoD;IAEpD,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,UAAU,CAAA;IAEtD,MAAM,aAAa,GACjB,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAA,qBAAU,EAAC,UAAU,CAAC,CAAA;IAEtE,OAAO,IAAA,0CAAkB,EAAC;QACxB,GAAG,EAAE,sBAAY;QACjB,YAAY,EAAE,eAAe;QAC7B,IAAI,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,aAAa,CAAC;KAC3C,CAAC,CAAA;AACJ,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getGeneralPaymasterInput = void 0;
3
+ exports.getGeneralPaymasterInput = getGeneralPaymasterInput;
4
4
  const encodeFunctionData_js_1 = require("../../../utils/abi/encodeFunctionData.js");
5
5
  const toHex_js_1 = require("../../../utils/encoding/toHex.js");
6
6
  const abis_js_1 = require("../../constants/abis.js");
@@ -13,5 +13,4 @@ function getGeneralPaymasterInput(parameters) {
13
13
  args: [innerInputHex],
14
14
  });
15
15
  }
16
- exports.getGeneralPaymasterInput = getGeneralPaymasterInput;
17
16
  //# sourceMappingURL=getGeneralPaymasterInput.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getGeneralPaymasterInput.js","sourceRoot":"","sources":["../../../../zksync/utils/paymaster/getGeneralPaymasterInput.ts"],"names":[],"mappings":";;;AACA,oFAGiD;AACjD,+DAA6D;AAC7D,qDAAsD;AAQtD,SAAgB,wBAAwB,CACtC,UAA8C;IAE9C,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAA;IAEjC,MAAM,aAAa,GACjB,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAA,qBAAU,EAAC,UAAU,CAAC,CAAA;IAEtE,OAAO,IAAA,0CAAkB,EAAC;QACxB,GAAG,EAAE,sBAAY;QACjB,YAAY,EAAE,SAAS;QACvB,IAAI,EAAE,CAAC,aAAa,CAAC;KACtB,CAAC,CAAA;AACJ,CAAC;AAbD,4DAaC"}
1
+ {"version":3,"file":"getGeneralPaymasterInput.js","sourceRoot":"","sources":["../../../../zksync/utils/paymaster/getGeneralPaymasterInput.ts"],"names":[],"mappings":";;AAcA,4DAaC;AA1BD,oFAGiD;AACjD,+DAA6D;AAC7D,qDAAsD;AAQtD,SAAgB,wBAAwB,CACtC,UAA8C;IAE9C,MAAM,EAAE,UAAU,EAAE,GAAG,UAAU,CAAA;IAEjC,MAAM,aAAa,GACjB,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,IAAA,qBAAU,EAAC,UAAU,CAAC,CAAA;IAEtE,OAAO,IAAA,0CAAkB,EAAC;QACxB,GAAG,EAAE,sBAAY;QACjB,YAAY,EAAE,SAAS;QACvB,IAAI,EAAE,CAAC,aAAa,CAAC;KACtB,CAAC,CAAA;AACJ,CAAC"}
@@ -31,13 +31,13 @@ export async function createEventFilter(client, { address, args, event, events:
31
31
  });
32
32
  let topics = [];
33
33
  if (events) {
34
- topics = [
35
- events.flatMap((event) => encodeEventTopics({
36
- abi: [event],
37
- eventName: event.name,
38
- args,
39
- })),
40
- ];
34
+ const encoded = events.flatMap((event) => encodeEventTopics({
35
+ abi: [event],
36
+ eventName: event.name,
37
+ args,
38
+ }));
39
+ // TODO: Clean up type casting
40
+ topics = [encoded];
41
41
  if (event)
42
42
  topics = topics[0];
43
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"createEventFilter.js","sourceRoot":"","sources":["../../../actions/public/createEventFilter.ts"],"names":[],"mappings":"AAcA,OAAO,EAGL,iBAAiB,GAClB,MAAM,sCAAsC,CAAA;AAE7C,OAAO,EAEL,WAAW,GACZ,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAA;AA4F1F;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAerC,MAAiC,EACjC,EACE,OAAO,EACP,IAAI,EACJ,KAAK,EACL,MAAM,EAAE,OAAO,EACf,SAAS,EACT,MAAM,EACN,OAAO,MASL,EAAS;IAYb,MAAM,MA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OAAO,CAAC,MAAM,CAAC;QACvB,OAAO;QACP,IAAI,EAAE,OAAO;KASd,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"createEventFilter.js","sourceRoot":"","sources":["../../../actions/public/createEventFilter.ts"],"names":[],"mappings":"AAcA,OAAO,EAGL,iBAAiB,GAClB,MAAM,sCAAsC,CAAA;AAE7C,OAAO,EAEL,WAAW,GACZ,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,iDAAiD,CAAA;AA4F1F;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,KAAK,UAAU,iBAAiB,CAerC,MAAiC,EACjC,EACE,OAAO,EACP,IAAI,EACJ,KAAK,EACL,MAAM,EAAE,OAAO,EACf,SAAS,EACT,MAAM,EACN,OAAO,MASL,EAAS;IAYb,MAAM,MAAM,GAAG,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAA;IAEvD,MAAM,UAAU,GAAG,wBAAwB,CAAC,MAAM,EAAE;QAClD,MAAM,EAAE,eAAe;KACxB,CAAC,CAAA;IAEF,IAAI,MAAM,GAAe,EAAE,CAAA;IAC3B,IAAI,MAAM,EAAE,CAAC;QACX,MAAM,OAAO,GAAI,MAAqB,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CACvD,iBAAiB,CAAC;YAChB,GAAG,EAAE,CAAC,KAAK,CAAC;YACZ,SAAS,EAAG,KAAkB,CAAC,IAAI;YACnC,IAAI;SAC0B,CAAC,CAClC,CAAA;QACD,8BAA8B;QAC9B,MAAM,GAAG,CAAC,OAAmB,CAAC,CAAA;QAC9B,IAAI,KAAK;YAAE,MAAM,GAAG,MAAM,CAAC,CAAC,CAAe,CAAA;IAC7C,CAAC;IAED,MAAM,EAAE,GAAQ,MAAM,MAAM,CAAC,OAAO,CAAC;QACnC,MAAM,EAAE,eAAe;QACvB,MAAM,EAAE;YACN;gBACE,OAAO;gBACP,SAAS,EACP,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,SAAS;gBACpE,OAAO,EAAE,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO;gBACrE,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;aACrC;SACF;KACF,CAAC,CAAA;IAEF,OAAO;QACL,GAAG,EAAE,MAAM;QACX,IAAI;QACJ,SAAS,EAAE,KAAK,CAAC,CAAC,CAAE,KAAkB,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;QACvD,SAAS;QACT,EAAE;QACF,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC;QACvB,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC;QACvB,OAAO;QACP,IAAI,EAAE,OAAO;KASd,CAAA;AACH,CAAC"}
@@ -29,13 +29,13 @@ export async function getLogs(client, { address, blockHash, fromBlock, toBlock,
29
29
  const events = events_ ?? (event ? [event] : undefined);
30
30
  let topics = [];
31
31
  if (events) {
32
- topics = [
33
- events.flatMap((event) => encodeEventTopics({
34
- abi: [event],
35
- eventName: event.name,
36
- args,
37
- })),
38
- ];
32
+ const encoded = events.flatMap((event) => encodeEventTopics({
33
+ abi: [event],
34
+ eventName: event.name,
35
+ args,
36
+ }));
37
+ // TODO: Clean up type casting
38
+ topics = [encoded];
39
39
  if (event)
40
40
  topics = topics[0];
41
41
  }
@@ -1 +1 @@
1
- {"version":3,"file":"getLogs.js","sourceRoot":"","sources":["../../../actions/public/getLogs.ts"],"names":[],"mappings":"AAeA,OAAO,EAGL,iBAAiB,GAClB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAElE,OAAO,EAEL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,13 +162,13 @@ export function watchEvent(client, { address, args, batch = true, event, events,
162
162
  const events_ = events ?? (event ? [event] : undefined);
163
163
  let topics = [];
164
164
  if (events_) {
165
- topics = [
166
- events_.flatMap((event) => encodeEventTopics({
167
- abi: [event],
168
- eventName: event.name,
169
- args,
170
- })),
171
- ];
165
+ const encoded = events_.flatMap((event) => encodeEventTopics({
166
+ abi: [event],
167
+ eventName: event.name,
168
+ args,
169
+ }));
170
+ // TODO: Clean up type casting
171
+ topics = [encoded];
172
172
  if (event)
173
173
  topics = topics[0];
174
174
  }
@@ -1 +1 @@
1
- {"version":3,"file":"watchEvent.js","sourceRoot":"","sources":["../../../actions/public/watchEvent.ts"],"names":[],"mappings":"AAaA,OAAO,EAEL,iBAAiB,GAClB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAAyB,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACvE,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAA;AAC1C,OAAO,EAA2B,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAE7E,OAAO,EACL,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAG1D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAEL,iBAAiB,GAClB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAA0B,OAAO,EAAE,MAAM,cAAc,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AA8EtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;A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AC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAChC,CAAA;4BACH,CAAC;4BAED,8FAA8F;4BAC9F,MAAM,SAAS,GAAG,SAAS,CAAC,GAAG,EAAE;gCAC/B,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE;gCACzB,SAAS;6BACV,CAAC,CAAA;4BACF,MAAM,CAAC,CAAC,SAAS,CAAQ,CAAC,CAAA;wBAC5B,CAAC;oBACH,CAAC;oBACD,OAAO,CAAC,KAAY;wBAClB,OAAO,EAAE,CAAC,KAAK,CAAC,CAAA;oBAClB,CAAC;iBACF,CAAC,CAAA;gBACF,WAAW,GAAG,YAAY,CAAA;gBAC1B,IAAI,CAAC,MAAM;oBAAE,WAAW,EAAE,CAAA;YAC5B,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,EAAE,CAAC,GAAY,CAAC,CAAA;YACzB,CAAC;QACH,CAAC,CAAC,EAAE,CAAA;QACJ,OAAO,GAAG,EAAE,CAAC,WAAW,EAAE,CAAA;IAC5B,CAAC,CAAA;IAED,OAAO,aAAa,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,CAAA;AACvD,CAAC"}
@@ -106,6 +106,7 @@ export async function sendTransaction(client, parameters) {
106
106
  ...extract(rest, { format: chainFormat }),
107
107
  accessList,
108
108
  blobs,
109
+ chainId,
109
110
  data,
110
111
  from: account.address,
111
112
  gas,
@@ -1 +1 @@
1
- {"version":3,"file":"sendTransaction.js","sourceRoot":"","sources":["../../../actions/wallet/sendTransaction.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,GACb,MAAM,sCAAsC,CAAA;AAI7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAA;AAW9D,OAAO,EAEL,kBAAkB,GACnB,MAAM,yCAAyC,CAAA;AAChD,OAAO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aACX,CAAC,CAAS,CAAA;YACX,OAAO,MAAM,SAAS,CACpB,MAAM,EACN,kBAAkB,EAClB,oBAAoB,CACrB,CAAC;gBACA,qBAAqB;aACtB,CAAC,CAAA;QACJ,CAAC;QAED,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,CAAA;QACxE,MAAM,MAAM,GAAG,WAAW,IAAI,wBAAwB,CAAA;QAEtD,MAAM,OAAO,GAAG,MAAM,CAAC;YACrB,gFAAgF;YAChF,GAAG,OAAO,CAAC,IAAI,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC;YACzC,UAAU;YACV,KAAK;YACL,OAAO;YACP,IAAI;YACJ,IAAI,EAAE,OAAO,CAAC,OAAO;YACrB,GAAG;YACH,QAAQ;YACR,gBAAgB;YAChB,YAAY;YACZ,oBAAoB;YACpB,KAAK;YACL,EAAE;YACF,KAAK;SACgB,CAAC,CAAA;QACxB,OAAO,MAAM,MAAM,CAAC,OAAO,CACzB;YACE,MAAM,EAAE,qBAAqB;YAC7B,MAAM,EAAE,CAAC,OAAO,CAAC;SAClB,EACD,EAAE,UAAU,EAAE,CAAC,EAAE,CAClB,CAAA;IACH,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,mBAAmB,CAAC,GAAgB,EAAE;YAC1C,GAAG,UAAU;YACb,OAAO;YACP,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,SAAS;SACrC,CAAC,CAAA;IACJ,CAAC;AACH,CAAC"}
@@ -1,2 +1,2 @@
1
- export const version = '2.16.0';
1
+ export const version = '2.16.1';
2
2
  //# sourceMappingURL=version.js.map
@@ -16,7 +16,5 @@ export {
16
16
  serializeErc6492Signature, } from '../utils/signature/serializeErc6492Signature.js';
17
17
  export { issuePermissions, } from './erc7715/actions/issuePermissions.js';
18
18
  export { walletActionsErc7715, } from './erc7715/decorators/erc7715.js';
19
- export { signMessage, } from './solady/actions/signMessage.js';
20
- export { signTypedData, } from './solady/actions/signTypedData.js';
21
19
  export { soladyActions, } from './solady/decorators/solady.js';
22
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../experimental/index.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAIL,eAAe,GAChB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAIL,SAAS,GACV,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAIL,cAAc,GACf,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAIL,eAAe,GAChB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAKL,cAAc,GACf,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAEL,oBAAoB,GACrB,MAAM,iCAAiC,CAAA;AAExC,OAAO;AAOL,+GAA+G;AAC/G,qBAAqB,GACtB,MAAM,6CAA6C,CAAA;AACpD,OAAO;AAOL,4GAA4G;AAC5G,kBAAkB,GACnB,MAAM,0CAA0C,CAAA;AACjD,OAAO;AAOL,mHAAmH;AACnH,yBAAyB,GAC1B,MAAM,iDAAiD,CAAA;AAExD,OAAO,EAGL,gBAAgB,GACjB,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAEL,oBAAoB,GACrB,MAAM,iCAAiC,CAAA;AAExC,OAAO,EAIL,WAAW,GACZ,MAAM,iCAAiC,CAAA;AACxC,OAAO,EAIL,aAAa,GACd,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAGL,aAAa,GACd,MAAM,+BAA+B,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../experimental/index.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,OAAO,EAIL,eAAe,GAChB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAIL,SAAS,GACV,MAAM,gCAAgC,CAAA;AACvC,OAAO,EAIL,cAAc,GACf,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAIL,eAAe,GAChB,MAAM,sCAAsC,CAAA;AAC7C,OAAO,EAKL,cAAc,GACf,MAAM,qCAAqC,CAAA;AAC5C,OAAO,EAEL,oBAAoB,GACrB,MAAM,iCAAiC,CAAA;AAExC,OAAO;AAOL,+GAA+G;AAC/G,qBAAqB,GACtB,MAAM,6CAA6C,CAAA;AACpD,OAAO;AAOL,4GAA4G;AAC5G,kBAAkB,GACnB,MAAM,0CAA0C,CAAA;AACjD,OAAO;AAOL,mHAAmH;AACnH,yBAAyB,GAC1B,MAAM,iDAAiD,CAAA;AAExD,OAAO,EAGL,gBAAgB,GACjB,MAAM,uCAAuC,CAAA;AAC9C,OAAO,EAEL,oBAAoB,GACrB,MAAM,iCAAiC,CAAA;AAExC,OAAO,EAGL,aAAa,GACd,MAAM,+BAA+B,CAAA"}
@@ -2,12 +2,8 @@ import { parseAccount } from '../../../accounts/utils/parseAccount.js';
2
2
  import { getEip712Domain, } from '../../../actions/public/getEip712Domain.js';
3
3
  import { signTypedData as signTypedData_ } from '../../../actions/wallet/signTypedData.js';
4
4
  import { AccountNotFoundError } from '../../../errors/account.js';
5
- import { encodePacked } from '../../../utils/abi/encodePacked.js';
6
- import { size } from '../../../utils/data/size.js';
7
- import { stringToHex } from '../../../utils/encoding/toHex.js';
8
5
  import { getAction } from '../../../utils/getAction.js';
9
- import { encodeType, hashStruct, } from '../../../utils/signature/hashTypedData.js';
10
- import { getTypesForEIP712Domain } from '../../../utils/typedData.js';
6
+ import { wrapTypedDataSignature } from '../utils/wrapTypedDataSignature.js';
11
7
  /**
12
8
  * Signs an [EIP-712](https://eips.ethereum.org/EIPS/eip-712) typed data message via Solady's [ERC1271 `TypedDataSign` format](https://github.com/Vectorized/solady/blob/678c9163550810b08f0ffb09624c9f7532392303/src/accounts/ERC1271.sol#L130-L151).
13
9
  *
@@ -153,30 +149,12 @@ export async function signTypedData(client, parameters) {
153
149
  ...verifierDomain,
154
150
  },
155
151
  });
156
- // Compute dependencies for wrapped signature.
157
- const hashedDomain = hashStruct({
158
- data: domain ?? {},
159
- types: {
160
- EIP712Domain: getTypesForEIP712Domain({ domain }),
161
- },
162
- primaryType: 'EIP712Domain',
163
- });
164
- const hashedContents = hashStruct({
165
- data: message,
166
- types: types,
167
- primaryType,
168
- });
169
- const encodedType = encodeType({
152
+ return wrapTypedDataSignature({
153
+ domain,
154
+ message,
170
155
  primaryType,
171
- types: types,
172
- });
173
- // Construct wrapped signature.
174
- return encodePacked(['bytes', 'bytes32', 'bytes32', 'bytes', 'uint16'], [
175
156
  signature,
176
- hashedDomain,
177
- hashedContents,
178
- stringToHex(encodedType),
179
- size(stringToHex(encodedType)),
180
- ]);
157
+ types,
158
+ });
181
159
  }
182
160
  //# sourceMappingURL=signTypedData.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"signTypedData.js","sourceRoot":"","sources":["../../../../experimental/solady/actions/signTypedData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAA;AACtE,OAAO,EAEL,eAAe,GAChB,MAAM,4CAA4C,CAAA;AACnD,OAAO,EAAE,aAAa,IAAI,cAAc,EAAE,MAAM,0CAA0C,CAAA;AAG1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAA;AAOjE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAA;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAA;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACvD,OAAO,EACL,UAAU,EACV,UAAU,GACX,MAAM,2CAA2C,CAAA;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAwCrE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkGG;AACH,MAAM,CAAC,KAAK,UAAU,aAA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IAAI,EAAE,QAAQ,EAAE;gBACnC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;gBACpC,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC9C,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;gBACjC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE;aAC1C;SACF;QACD,WAAW,EAAE,eAAe;QAC5B,OAAO,EAAE;YACP,QAAQ,EAAE,OAAc;YACxB,MAAM;YACN,UAAU;YACV,GAAI,cAAsB;SAC3B;KACF,CAAC,CAAA;IAEF,8CAA8C;IAC9C,MAAM,YAAY,GAAG,UAAU,CAAC;QAC9B,IAAI,EAAE,MAAM,IAAI,EAAE;QAClB,KAAK,EAAE;YACL,YAAY,EAAE,uBAAuB,CAAC,EAAE,MAAM,EAAE,CAAC;SAClD;QACD,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAA;IACF,MAAM,cAAc,GAAG,UAAU,CAAC;QAChC,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,KAAY;QACnB,WAAW;KACZ,CAAC,CAAA;IACF,MAAM,WAAW,GAAG,UAAU,CAAC;QAC7B,WAAW;QACX,KAAK,EAAE,KAAY;KACpB,CAAC,CAAA;IAEF,+BAA+B;IAC/B,OAAO,YAAY,CACjB,CAAC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC,EAClD;QACE,SAAS;QACT,YAAY;QACZ,cAAc;QACd,WAAW,CAAC,WAAW,CAAC;QACxB,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;KAC/B,CACF,CAAA;AACH,CAAC"}
1
+ {"version":3,"file":"signTypedData.js","sourceRoot":"","sources":["../../../../experimental/solady/actions/signTypedData.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAA;AACtE,OAAO,E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IACJ,CAAC,CAAC,EAAE,CAAA;IAEJ,gCAAgC;IAChC,MAAM,SAAS,GAAG,MAAM,SAAS,CAC/B,MAAM,EACN,cAAc,EACd,eAAe,CAChB,CAAC;QACA,OAAO;QACP,MAAM;QACN,KAAK,EAAE;YACL,GAAG,KAAK;YACR,aAAa,EAAE;gBACb,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE;gBACvC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAClC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAChC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACnC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;gBACpC,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC9C,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;gBACjC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE;aAC1C;SACF;QACD,WAAW,EAAE,eAAe;QAC5B,OAAO,EAAE;YACP,QAAQ,EAAE,OAAc;YACxB,MAAM;YACN,UAAU;YACV,GAAI,cAAsB;SAC3B;KACF,CAAC,CAAA;IAEF,OAAO,sBAAsB,CAAC;QAC5B,MAAM;QACN,OAAO;QACP,WAAW;QACX,SAAS;QACT,KAAK;KACN,CAAC,CAAA;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ // biome-ignore lint/performance/noBarrelFile: entrypoint
2
+ export { signMessage, } from './actions/signMessage.js';
3
+ export { signTypedData, } from './actions/signTypedData.js';
4
+ export { soladyActions, } from './decorators/solady.js';
5
+ export { hashMessage, } from './utils/hashMessage.js';
6
+ export { hashTypedData, } from './utils/hashTypedData.js';
7
+ export { wrapTypedDataSignature, } from './utils/wrapTypedDataSignature.js';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../experimental/solady/index.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,OAAO,EAIL,WAAW,GACZ,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAIL,aAAa,GACd,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAGL,aAAa,GACd,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAIL,WAAW,GACZ,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAIL,aAAa,GACd,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAIL,sBAAsB,GACvB,MAAM,mCAAmC,CAAA"}
@@ -0,0 +1,32 @@
1
+ import { hashTypedData } from '../../../utils/index.js';
2
+ import { toPrefixedMessage, } from '../../../utils/signature/toPrefixedMessage.js';
3
+ /**
4
+ * Generates a signable hash for a Solady ERC-1271 personal sign message.
5
+ *
6
+ * @example
7
+ * ```ts
8
+ * const hash = hashMessage({
9
+ * message: 'hello world',
10
+ * verifierDomain: {
11
+ * name: 'Smart Account',
12
+ * version: '1',
13
+ * verifyingContract: '0x1234567890abcdef1234567890abcdef12345678',
14
+ * chainId: 1,
15
+ * },
16
+ * })
17
+ * ```
18
+ */
19
+ export function hashMessage(parameters) {
20
+ const { message, verifierDomain: { salt, ...domain }, } = parameters;
21
+ return hashTypedData({
22
+ domain,
23
+ types: {
24
+ PersonalSign: [{ name: 'prefixed', type: 'bytes' }],
25
+ },
26
+ primaryType: 'PersonalSign',
27
+ message: {
28
+ prefixed: toPrefixedMessage(message),
29
+ },
30
+ });
31
+ }
32
+ //# sourceMappingURL=hashMessage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hashMessage.js","sourceRoot":"","sources":["../../../../experimental/solady/utils/hashMessage.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAEvD,OAAO,EAEL,iBAAiB,GAClB,MAAM,+CAA+C,CAAA;AAiBtD;;;;;;;;;;;;;;;GAeG;AACH,MAAM,UAAU,WAAW,CACzB,UAAiC;IAEjC,MAAM,EACJ,OAAO,EACP,cAAc,EAAE,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,GACpC,GAAG,UAAU,CAAA;IACd,OAAO,aAAa,CAAC;QACnB,MAAM;QACN,KAAK,EAAE;YACL,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;SACpD;QACD,WAAW,EAAE,cAAc;QAC3B,OAAO,EAAE;YACP,QAAQ,EAAE,iBAAiB,CAAC,OAAO,CAAC;SACrC;KACF,CAAC,CAAA;AACJ,CAAC"}
@@ -0,0 +1,72 @@
1
+ import { hashTypedData as hashTypedData_, } from '../../../utils/signature/hashTypedData.js';
2
+ /**
3
+ * Generates a signable hash for Solady ERC-1271 typed data.
4
+ *
5
+ * @example
6
+ * ```ts
7
+ * const hash = hashTypedData({
8
+ * domain: {
9
+ * name: 'Ether Mail',
10
+ * version: '1',
11
+ * chainId: 1,
12
+ * verifyingContract: '0xCcCCccccCCCCcCCCCCCcCcCccCcCCCcCcccccccC',
13
+ * },
14
+ * types: {
15
+ * Person: [
16
+ * { name: 'name', type: 'string' },
17
+ * { name: 'wallet', type: 'address' },
18
+ * ],
19
+ * Mail: [
20
+ * { name: 'from', type: 'Person' },
21
+ * { name: 'to', type: 'Person' },
22
+ * { name: 'contents', type: 'string' },
23
+ * ],
24
+ * },
25
+ * primaryType: 'Mail',
26
+ * message: {
27
+ * from: {
28
+ * name: 'Cow',
29
+ * wallet: '0xCD2a3d9F938E13CD947Ec05AbC7FE734Df8DD826',
30
+ * },
31
+ * to: {
32
+ * name: 'Bob',
33
+ * wallet: '0xbBbBBBBbbBBBbbbBbbBbbbbBBbBbbbbBbBbbBBbB',
34
+ * },
35
+ * contents: 'Hello, Bob!',
36
+ * },
37
+ * verifierDomain: {
38
+ * name: 'Smart Account',
39
+ * version: '1',
40
+ * verifyingContract: '0x1234567890abcdef1234567890abcdef12345678',
41
+ * chainId: 1,
42
+ * },
43
+ * })
44
+ * ```
45
+ */
46
+ export function hashTypedData(parameters) {
47
+ const { domain, extensions, fields, message, primaryType, types, verifierDomain, } = parameters;
48
+ return hashTypedData_({
49
+ domain: domain,
50
+ types: {
51
+ ...types,
52
+ TypedDataSign: [
53
+ { name: 'contents', type: primaryType },
54
+ { name: 'fields', type: 'bytes1' },
55
+ { name: 'name', type: 'string' },
56
+ { name: 'version', type: 'string' },
57
+ { name: 'chainId', type: 'uint256' },
58
+ { name: 'verifyingContract', type: 'address' },
59
+ { name: 'salt', type: 'bytes32' },
60
+ { name: 'extensions', type: 'uint256[]' },
61
+ ],
62
+ },
63
+ primaryType: 'TypedDataSign',
64
+ message: {
65
+ contents: message,
66
+ fields,
67
+ extensions,
68
+ ...verifierDomain,
69
+ },
70
+ });
71
+ }
72
+ //# sourceMappingURL=hashTypedData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hashTypedData.js","sourceRoot":"","sources":["../../../../experimental/solady/utils/hashTypedData.ts"],"names":[],"mappings":"AAKA,OAAO,EAEL,aAAa,IAAI,cAAc,GAChC,MAAM,2CAA2C,CAAA;AAoBlD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAM,UAAU,aAAa,CAI3B,UAA2D;IAE3D,MAAM,EACJ,MAAM,EACN,UAAU,EACV,MAAM,EACN,OAAO,EACP,WAAW,EACX,KAAK,EACL,cAAc,GACf,GAAG,UAAU,CAAA;IAEd,OAAO,cAAc,CAAC;QACpB,MAAM,EAAE,MAAa;QACrB,KAAK,EAAE;YACL,GAAG,KAAK;YACR,aAAa,EAAE;gBACb,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,WAAW,EAAE;gBACvC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAClC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAChC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACnC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;gBACpC,EAAE,IAAI,EAAE,mBAAmB,EAAE,IAAI,EAAE,SAAS,EAAE;gBAC9C,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;gBACjC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE;aAC1C;SACF;QACD,WAAW,EAAE,eAAe;QAC5B,OAAO,EAAE;YACP,QAAQ,EAAE,OAAc;YACxB,MAAM;YACN,UAAU;YACV,GAAI,cAAsB;SAC3B;KACF,CAAC,CAAA;AACJ,CAAC"}