viem 1.13.2 → 1.15.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 (1393) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/_cjs/abi/index.js.map +1 -1
  3. package/_cjs/accounts/generateMnemonic.js.map +1 -1
  4. package/_cjs/accounts/generatePrivateKey.js.map +1 -1
  5. package/_cjs/accounts/hdKeyToAccount.js.map +1 -1
  6. package/_cjs/accounts/index.js.map +1 -1
  7. package/_cjs/accounts/mnemonicToAccount.js.map +1 -1
  8. package/_cjs/accounts/privateKeyToAccount.js.map +1 -1
  9. package/_cjs/accounts/toAccount.js.map +1 -1
  10. package/_cjs/accounts/utils/parseAccount.js.map +1 -1
  11. package/_cjs/accounts/utils/privateKeyToAddress.js.map +1 -1
  12. package/_cjs/accounts/utils/publicKeyToAddress.js.map +1 -1
  13. package/_cjs/accounts/utils/sign.js.map +1 -1
  14. package/_cjs/accounts/utils/signMessage.js.map +1 -1
  15. package/_cjs/accounts/utils/signTransaction.js.map +1 -1
  16. package/_cjs/accounts/utils/signTypedData.js.map +1 -1
  17. package/_cjs/actions/ens/getEnsAddress.js.map +1 -1
  18. package/_cjs/actions/ens/getEnsAvatar.js.map +1 -1
  19. package/_cjs/actions/ens/getEnsName.js.map +1 -1
  20. package/_cjs/actions/ens/getEnsResolver.js.map +1 -1
  21. package/_cjs/actions/ens/getEnsText.js.map +1 -1
  22. package/_cjs/actions/getContract.js.map +1 -1
  23. package/_cjs/actions/index.js.map +1 -1
  24. package/_cjs/actions/public/call.js.map +1 -1
  25. package/_cjs/actions/public/createBlockFilter.js.map +1 -1
  26. package/_cjs/actions/public/createContractEventFilter.js.map +1 -1
  27. package/_cjs/actions/public/createEventFilter.js.map +1 -1
  28. package/_cjs/actions/public/createPendingTransactionFilter.js.map +1 -1
  29. package/_cjs/actions/public/estimateContractGas.js.map +1 -1
  30. package/_cjs/actions/public/estimateFeesPerGas.js.map +1 -1
  31. package/_cjs/actions/public/estimateGas.js.map +1 -1
  32. package/_cjs/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
  33. package/_cjs/actions/public/getBalance.js.map +1 -1
  34. package/_cjs/actions/public/getBlock.js.map +1 -1
  35. package/_cjs/actions/public/getBlockNumber.js.map +1 -1
  36. package/_cjs/actions/public/getBlockTransactionCount.js.map +1 -1
  37. package/_cjs/actions/public/getBytecode.js.map +1 -1
  38. package/_cjs/actions/public/getChainId.js.map +1 -1
  39. package/_cjs/actions/public/getContractEvents.js.map +1 -1
  40. package/_cjs/actions/public/getFeeHistory.js.map +1 -1
  41. package/_cjs/actions/public/getFilterChanges.js.map +1 -1
  42. package/_cjs/actions/public/getFilterLogs.js.map +1 -1
  43. package/_cjs/actions/public/getGasPrice.js.map +1 -1
  44. package/_cjs/actions/public/getLogs.js.map +1 -1
  45. package/_cjs/actions/public/getStorageAt.js.map +1 -1
  46. package/_cjs/actions/public/getTransaction.js.map +1 -1
  47. package/_cjs/actions/public/getTransactionConfirmations.js.map +1 -1
  48. package/_cjs/actions/public/getTransactionCount.js.map +1 -1
  49. package/_cjs/actions/public/getTransactionReceipt.js.map +1 -1
  50. package/_cjs/actions/public/multicall.js.map +1 -1
  51. package/_cjs/actions/public/readContract.js.map +1 -1
  52. package/_cjs/actions/public/simulateContract.js.map +1 -1
  53. package/_cjs/actions/public/uninstallFilter.js.map +1 -1
  54. package/_cjs/actions/public/verifyHash.js.map +1 -1
  55. package/_cjs/actions/public/verifyMessage.js.map +1 -1
  56. package/_cjs/actions/public/verifyTypedData.js.map +1 -1
  57. package/_cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
  58. package/_cjs/actions/public/watchBlockNumber.js.map +1 -1
  59. package/_cjs/actions/public/watchBlocks.js.map +1 -1
  60. package/_cjs/actions/public/watchContractEvent.js.map +1 -1
  61. package/_cjs/actions/public/watchEvent.js.map +1 -1
  62. package/_cjs/actions/public/watchPendingTransactions.js.map +1 -1
  63. package/_cjs/actions/test/dropTransaction.js.map +1 -1
  64. package/_cjs/actions/test/getAutomine.js.map +1 -1
  65. package/_cjs/actions/test/getTxpoolContent.js.map +1 -1
  66. package/_cjs/actions/test/getTxpoolStatus.js.map +1 -1
  67. package/_cjs/actions/test/impersonateAccount.js.map +1 -1
  68. package/_cjs/actions/test/increaseTime.js.map +1 -1
  69. package/_cjs/actions/test/inspectTxpool.js.map +1 -1
  70. package/_cjs/actions/test/mine.js.map +1 -1
  71. package/_cjs/actions/test/removeBlockTimestampInterval.js.map +1 -1
  72. package/_cjs/actions/test/reset.js.map +1 -1
  73. package/_cjs/actions/test/revert.js.map +1 -1
  74. package/_cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
  75. package/_cjs/actions/test/setAutomine.js.map +1 -1
  76. package/_cjs/actions/test/setBalance.js.map +1 -1
  77. package/_cjs/actions/test/setBlockGasLimit.js.map +1 -1
  78. package/_cjs/actions/test/setBlockTimestampInterval.js.map +1 -1
  79. package/_cjs/actions/test/setCode.js.map +1 -1
  80. package/_cjs/actions/test/setCoinbase.js.map +1 -1
  81. package/_cjs/actions/test/setIntervalMining.js.map +1 -1
  82. package/_cjs/actions/test/setLoggingEnabled.js.map +1 -1
  83. package/_cjs/actions/test/setMinGasPrice.js.map +1 -1
  84. package/_cjs/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
  85. package/_cjs/actions/test/setNextBlockTimestamp.js.map +1 -1
  86. package/_cjs/actions/test/setNonce.js.map +1 -1
  87. package/_cjs/actions/test/setRpcUrl.js.map +1 -1
  88. package/_cjs/actions/test/setStorageAt.js.map +1 -1
  89. package/_cjs/actions/test/snapshot.js.map +1 -1
  90. package/_cjs/actions/test/stopImpersonatingAccount.js.map +1 -1
  91. package/_cjs/actions/wallet/addChain.js.map +1 -1
  92. package/_cjs/actions/wallet/deployContract.js.map +1 -1
  93. package/_cjs/actions/wallet/getAddresses.js.map +1 -1
  94. package/_cjs/actions/wallet/getPermissions.js.map +1 -1
  95. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  96. package/_cjs/actions/wallet/requestAddresses.js.map +1 -1
  97. package/_cjs/actions/wallet/requestPermissions.js.map +1 -1
  98. package/_cjs/actions/wallet/sendRawTransaction.js.map +1 -1
  99. package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
  100. package/_cjs/actions/wallet/signMessage.js.map +1 -1
  101. package/_cjs/actions/wallet/signTransaction.js.map +1 -1
  102. package/_cjs/actions/wallet/signTypedData.js.map +1 -1
  103. package/_cjs/actions/wallet/switchChain.js.map +1 -1
  104. package/_cjs/actions/wallet/watchAsset.js.map +1 -1
  105. package/_cjs/actions/wallet/writeContract.js.map +1 -1
  106. package/_cjs/chains/definitions/arbitrumSepolia.js +36 -0
  107. package/_cjs/chains/definitions/arbitrumSepolia.js.map +1 -0
  108. package/_cjs/chains/definitions/fuse.js +7 -1
  109. package/_cjs/chains/definitions/fuse.js.map +1 -1
  110. package/_cjs/chains/index.js +5 -3
  111. package/_cjs/chains/index.js.map +1 -1
  112. package/_cjs/clients/createClient.js.map +1 -1
  113. package/_cjs/clients/createPublicClient.js.map +1 -1
  114. package/_cjs/clients/createTestClient.js.map +1 -1
  115. package/_cjs/clients/createWalletClient.js.map +1 -1
  116. package/_cjs/clients/transports/createTransport.js.map +1 -1
  117. package/_cjs/clients/transports/custom.js.map +1 -1
  118. package/_cjs/clients/transports/fallback.js.map +1 -1
  119. package/_cjs/clients/transports/http.js.map +1 -1
  120. package/_cjs/clients/transports/webSocket.js.map +1 -1
  121. package/_cjs/contract/index.js.map +1 -1
  122. package/_cjs/ens/index.js.map +1 -1
  123. package/_cjs/errors/abi.js.map +1 -1
  124. package/_cjs/errors/account.js.map +1 -1
  125. package/_cjs/errors/address.js.map +1 -1
  126. package/_cjs/errors/base.js.map +1 -1
  127. package/_cjs/errors/block.js.map +1 -1
  128. package/_cjs/errors/ccip.js.map +1 -1
  129. package/_cjs/errors/chain.js.map +1 -1
  130. package/_cjs/errors/contract.js.map +1 -1
  131. package/_cjs/errors/cursor.js.map +1 -1
  132. package/_cjs/errors/data.js.map +1 -1
  133. package/_cjs/errors/encoding.js.map +1 -1
  134. package/_cjs/errors/ens.js.map +1 -1
  135. package/_cjs/errors/estimateGas.js.map +1 -1
  136. package/_cjs/errors/fee.js.map +1 -1
  137. package/_cjs/errors/log.js.map +1 -1
  138. package/_cjs/errors/node.js +11 -11
  139. package/_cjs/errors/node.js.map +1 -1
  140. package/_cjs/errors/request.js.map +1 -1
  141. package/_cjs/errors/rpc.js +18 -18
  142. package/_cjs/errors/rpc.js.map +1 -1
  143. package/_cjs/errors/transaction.js.map +1 -1
  144. package/_cjs/errors/transport.js.map +1 -1
  145. package/_cjs/errors/utils.js.map +1 -1
  146. package/_cjs/errors/version.js +1 -1
  147. package/_cjs/index.js +41 -7
  148. package/_cjs/index.js.map +1 -1
  149. package/_cjs/public/index.js.map +1 -1
  150. package/_cjs/test/index.js.map +1 -1
  151. package/_cjs/types/eip1193.js.map +1 -1
  152. package/_cjs/utils/abi/decodeAbiParameters.js.map +1 -1
  153. package/_cjs/utils/abi/decodeDeployData.js.map +1 -1
  154. package/_cjs/utils/abi/decodeErrorResult.js.map +1 -1
  155. package/_cjs/utils/abi/decodeEventLog.js.map +1 -1
  156. package/_cjs/utils/abi/decodeFunctionData.js.map +1 -1
  157. package/_cjs/utils/abi/decodeFunctionResult.js.map +1 -1
  158. package/_cjs/utils/abi/encodeAbiParameters.js.map +1 -1
  159. package/_cjs/utils/abi/encodeDeployData.js.map +1 -1
  160. package/_cjs/utils/abi/encodeErrorResult.js.map +1 -1
  161. package/_cjs/utils/abi/encodeEventTopics.js.map +1 -1
  162. package/_cjs/utils/abi/encodeFunctionData.js.map +1 -1
  163. package/_cjs/utils/abi/encodeFunctionResult.js.map +1 -1
  164. package/_cjs/utils/abi/encodePacked.js.map +1 -1
  165. package/_cjs/utils/abi/formatAbiItem.js.map +1 -1
  166. package/_cjs/utils/abi/formatAbiItemWithArgs.js.map +1 -1
  167. package/_cjs/utils/abi/getAbiItem.js.map +1 -1
  168. package/_cjs/utils/address/getAddress.js.map +1 -1
  169. package/_cjs/utils/address/getContractAddress.js.map +1 -1
  170. package/_cjs/utils/address/isAddress.js.map +1 -1
  171. package/_cjs/utils/address/isAddressEqual.js.map +1 -1
  172. package/_cjs/utils/buildRequest.js.map +1 -1
  173. package/_cjs/utils/ccip.js.map +1 -1
  174. package/_cjs/utils/chain.js.map +1 -1
  175. package/_cjs/utils/contract/extractFunctionParts.js.map +1 -1
  176. package/_cjs/utils/cursor.js.map +1 -1
  177. package/_cjs/utils/data/concat.js.map +1 -1
  178. package/_cjs/utils/data/isBytes.js.map +1 -1
  179. package/_cjs/utils/data/isBytesEqual.js.map +1 -1
  180. package/_cjs/utils/data/isHex.js.map +1 -1
  181. package/_cjs/utils/data/pad.js.map +1 -1
  182. package/_cjs/utils/data/size.js.map +1 -1
  183. package/_cjs/utils/data/slice.js.map +1 -1
  184. package/_cjs/utils/data/trim.js.map +1 -1
  185. package/_cjs/utils/encoding/fromBytes.js +4 -4
  186. package/_cjs/utils/encoding/fromBytes.js.map +1 -1
  187. package/_cjs/utils/encoding/fromHex.js.map +1 -1
  188. package/_cjs/utils/encoding/fromRlp.js.map +1 -1
  189. package/_cjs/utils/encoding/toBytes.js.map +1 -1
  190. package/_cjs/utils/encoding/toHex.js.map +1 -1
  191. package/_cjs/utils/encoding/toRlp.js.map +1 -1
  192. package/_cjs/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
  193. package/_cjs/utils/ens/avatar/utils.js.map +1 -1
  194. package/_cjs/utils/ens/encodeLabelhash.js.map +1 -1
  195. package/_cjs/utils/ens/encodedLabelToLabelhash.js.map +1 -1
  196. package/_cjs/utils/ens/errors.js.map +1 -1
  197. package/_cjs/utils/ens/labelhash.js.map +1 -1
  198. package/_cjs/utils/ens/namehash.js.map +1 -1
  199. package/_cjs/utils/ens/normalize.js.map +1 -1
  200. package/_cjs/utils/ens/packetToBytes.js.map +1 -1
  201. package/_cjs/utils/errors/getCallError.js +6 -3
  202. package/_cjs/utils/errors/getCallError.js.map +1 -1
  203. package/_cjs/utils/errors/getContractError.js +14 -13
  204. package/_cjs/utils/errors/getContractError.js.map +1 -1
  205. package/_cjs/utils/errors/getEstimateGasError.js +6 -3
  206. package/_cjs/utils/errors/getEstimateGasError.js.map +1 -1
  207. package/_cjs/utils/errors/getNodeError.js.map +1 -1
  208. package/_cjs/utils/errors/getTransactionError.js +6 -3
  209. package/_cjs/utils/errors/getTransactionError.js.map +1 -1
  210. package/_cjs/utils/formatters/block.js.map +1 -1
  211. package/_cjs/utils/formatters/extract.js.map +1 -1
  212. package/_cjs/utils/formatters/feeHistory.js.map +1 -1
  213. package/_cjs/utils/formatters/formatter.js.map +1 -1
  214. package/_cjs/utils/formatters/log.js.map +1 -1
  215. package/_cjs/utils/formatters/transaction.js.map +1 -1
  216. package/_cjs/utils/formatters/transactionReceipt.js.map +1 -1
  217. package/_cjs/utils/formatters/transactionRequest.js.map +1 -1
  218. package/_cjs/utils/hash/getEventSelector.js.map +1 -1
  219. package/_cjs/utils/hash/getEventSignature.js.map +1 -1
  220. package/_cjs/utils/hash/getFunctionSelector.js.map +1 -1
  221. package/_cjs/utils/hash/getFunctionSignature.js.map +1 -1
  222. package/_cjs/utils/hash/hashFunction.js.map +1 -1
  223. package/_cjs/utils/hash/isHash.js.map +1 -1
  224. package/_cjs/utils/hash/keccak256.js.map +1 -1
  225. package/_cjs/utils/index.js +6 -4
  226. package/_cjs/utils/index.js.map +1 -1
  227. package/_cjs/utils/observe.js.map +1 -1
  228. package/_cjs/utils/poll.js.map +1 -1
  229. package/_cjs/utils/promise/createBatchScheduler.js.map +1 -1
  230. package/_cjs/utils/promise/withCache.js.map +1 -1
  231. package/_cjs/utils/promise/withRetry.js.map +1 -1
  232. package/_cjs/utils/promise/withTimeout.js.map +1 -1
  233. package/_cjs/utils/rpc.js.map +1 -1
  234. package/_cjs/utils/signature/compactSignatureToHex.js +10 -0
  235. package/_cjs/utils/signature/compactSignatureToHex.js.map +1 -0
  236. package/_cjs/utils/signature/compactSignatureToSignature.js +15 -0
  237. package/_cjs/utils/signature/compactSignatureToSignature.js.map +1 -0
  238. package/_cjs/utils/signature/hashMessage.js.map +1 -1
  239. package/_cjs/utils/signature/hashTypedData.js.map +1 -1
  240. package/_cjs/utils/signature/hexToCompactSignature.js +14 -0
  241. package/_cjs/utils/signature/hexToCompactSignature.js.map +1 -0
  242. package/_cjs/utils/signature/hexToSignature.js.map +1 -1
  243. package/_cjs/utils/signature/recoverAddress.js.map +1 -1
  244. package/_cjs/utils/signature/recoverMessageAddress.js.map +1 -1
  245. package/_cjs/utils/signature/recoverPublicKey.js.map +1 -1
  246. package/_cjs/utils/signature/recoverTypedDataAddress.js.map +1 -1
  247. package/_cjs/utils/signature/signatureToCompactSignature.js +17 -0
  248. package/_cjs/utils/signature/signatureToCompactSignature.js.map +1 -0
  249. package/_cjs/utils/signature/signatureToHex.js.map +1 -1
  250. package/_cjs/utils/signature/verifyMessage.js.map +1 -1
  251. package/_cjs/utils/signature/verifyTypedData.js.map +1 -1
  252. package/_cjs/utils/stringify.js.map +1 -1
  253. package/_cjs/utils/transaction/assertRequest.js.map +1 -1
  254. package/_cjs/utils/transaction/assertTransaction.js.map +1 -1
  255. package/_cjs/utils/transaction/getSerializedTransactionType.js.map +1 -1
  256. package/_cjs/utils/transaction/getTransactionType.js.map +1 -1
  257. package/_cjs/utils/transaction/parseTransaction.js.map +1 -1
  258. package/_cjs/utils/transaction/serializeAccessList.js.map +1 -1
  259. package/_cjs/utils/transaction/serializeTransaction.js.map +1 -1
  260. package/_cjs/utils/typedData.js.map +1 -1
  261. package/_cjs/utils/unit/formatEther.js.map +1 -1
  262. package/_cjs/utils/unit/formatGwei.js.map +1 -1
  263. package/_cjs/utils/unit/formatUnits.js.map +1 -1
  264. package/_cjs/utils/unit/parseEther.js.map +1 -1
  265. package/_cjs/utils/unit/parseGwei.js.map +1 -1
  266. package/_cjs/utils/unit/parseUnits.js.map +1 -1
  267. package/_esm/abi/index.js +1 -1
  268. package/_esm/abi/index.js.map +1 -1
  269. package/_esm/accounts/generateMnemonic.js.map +1 -1
  270. package/_esm/accounts/generatePrivateKey.js.map +1 -1
  271. package/_esm/accounts/hdKeyToAccount.js +1 -1
  272. package/_esm/accounts/hdKeyToAccount.js.map +1 -1
  273. package/_esm/accounts/index.js +10 -10
  274. package/_esm/accounts/index.js.map +1 -1
  275. package/_esm/accounts/mnemonicToAccount.js +1 -1
  276. package/_esm/accounts/mnemonicToAccount.js.map +1 -1
  277. package/_esm/accounts/privateKeyToAccount.js +3 -3
  278. package/_esm/accounts/privateKeyToAccount.js.map +1 -1
  279. package/_esm/accounts/toAccount.js +2 -2
  280. package/_esm/accounts/toAccount.js.map +1 -1
  281. package/_esm/accounts/utils/parseAccount.js.map +1 -1
  282. package/_esm/accounts/utils/privateKeyToAddress.js +2 -2
  283. package/_esm/accounts/utils/privateKeyToAddress.js.map +1 -1
  284. package/_esm/accounts/utils/publicKeyToAddress.js +2 -2
  285. package/_esm/accounts/utils/publicKeyToAddress.js.map +1 -1
  286. package/_esm/accounts/utils/sign.js.map +1 -1
  287. package/_esm/accounts/utils/signMessage.js +2 -2
  288. package/_esm/accounts/utils/signMessage.js.map +1 -1
  289. package/_esm/accounts/utils/signTransaction.js +1 -1
  290. package/_esm/accounts/utils/signTransaction.js.map +1 -1
  291. package/_esm/accounts/utils/signTypedData.js +1 -1
  292. package/_esm/accounts/utils/signTypedData.js.map +1 -1
  293. package/_esm/actions/ens/getEnsAddress.js +4 -4
  294. package/_esm/actions/ens/getEnsAddress.js.map +1 -1
  295. package/_esm/actions/ens/getEnsAvatar.js +2 -2
  296. package/_esm/actions/ens/getEnsAvatar.js.map +1 -1
  297. package/_esm/actions/ens/getEnsName.js +2 -2
  298. package/_esm/actions/ens/getEnsName.js.map +1 -1
  299. package/_esm/actions/ens/getEnsResolver.js +2 -2
  300. package/_esm/actions/ens/getEnsResolver.js.map +1 -1
  301. package/_esm/actions/ens/getEnsText.js +4 -4
  302. package/_esm/actions/ens/getEnsText.js.map +1 -1
  303. package/_esm/actions/getContract.js.map +1 -1
  304. package/_esm/actions/index.js +8 -8
  305. package/_esm/actions/index.js.map +1 -1
  306. package/_esm/actions/public/call.js +8 -8
  307. package/_esm/actions/public/call.js.map +1 -1
  308. package/_esm/actions/public/createBlockFilter.js.map +1 -1
  309. package/_esm/actions/public/createContractEventFilter.js +1 -1
  310. package/_esm/actions/public/createContractEventFilter.js.map +1 -1
  311. package/_esm/actions/public/createEventFilter.js +1 -1
  312. package/_esm/actions/public/createEventFilter.js.map +1 -1
  313. package/_esm/actions/public/createPendingTransactionFilter.js.map +1 -1
  314. package/_esm/actions/public/estimateContractGas.js +3 -3
  315. package/_esm/actions/public/estimateContractGas.js.map +1 -1
  316. package/_esm/actions/public/estimateFeesPerGas.js +1 -1
  317. package/_esm/actions/public/estimateFeesPerGas.js.map +1 -1
  318. package/_esm/actions/public/estimateGas.js +3 -3
  319. package/_esm/actions/public/estimateGas.js.map +1 -1
  320. package/_esm/actions/public/estimateMaxPriorityFeePerGas.js +2 -2
  321. package/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -1
  322. package/_esm/actions/public/getBalance.js +1 -1
  323. package/_esm/actions/public/getBalance.js.map +1 -1
  324. package/_esm/actions/public/getBlock.js +2 -2
  325. package/_esm/actions/public/getBlock.js.map +1 -1
  326. package/_esm/actions/public/getBlockNumber.js.map +1 -1
  327. package/_esm/actions/public/getBlockTransactionCount.js +2 -2
  328. package/_esm/actions/public/getBlockTransactionCount.js.map +1 -1
  329. package/_esm/actions/public/getBytecode.js +1 -1
  330. package/_esm/actions/public/getBytecode.js.map +1 -1
  331. package/_esm/actions/public/getChainId.js +1 -1
  332. package/_esm/actions/public/getChainId.js.map +1 -1
  333. package/_esm/actions/public/getContractEvents.js +1 -1
  334. package/_esm/actions/public/getContractEvents.js.map +1 -1
  335. package/_esm/actions/public/getFeeHistory.js +2 -2
  336. package/_esm/actions/public/getFeeHistory.js.map +1 -1
  337. package/_esm/actions/public/getFilterChanges.js +2 -2
  338. package/_esm/actions/public/getFilterChanges.js.map +1 -1
  339. package/_esm/actions/public/getFilterLogs.js +2 -2
  340. package/_esm/actions/public/getFilterLogs.js.map +1 -1
  341. package/_esm/actions/public/getGasPrice.js.map +1 -1
  342. package/_esm/actions/public/getLogs.js +3 -3
  343. package/_esm/actions/public/getLogs.js.map +1 -1
  344. package/_esm/actions/public/getStorageAt.js +1 -1
  345. package/_esm/actions/public/getStorageAt.js.map +1 -1
  346. package/_esm/actions/public/getTransaction.js +1 -1
  347. package/_esm/actions/public/getTransaction.js.map +1 -1
  348. package/_esm/actions/public/getTransactionConfirmations.js +2 -2
  349. package/_esm/actions/public/getTransactionConfirmations.js.map +1 -1
  350. package/_esm/actions/public/getTransactionCount.js +2 -2
  351. package/_esm/actions/public/getTransactionCount.js.map +1 -1
  352. package/_esm/actions/public/getTransactionReceipt.js +1 -1
  353. package/_esm/actions/public/getTransactionReceipt.js.map +1 -1
  354. package/_esm/actions/public/multicall.js +3 -3
  355. package/_esm/actions/public/multicall.js.map +1 -1
  356. package/_esm/actions/public/readContract.js +1 -1
  357. package/_esm/actions/public/readContract.js.map +1 -1
  358. package/_esm/actions/public/simulateContract.js +2 -2
  359. package/_esm/actions/public/simulateContract.js.map +1 -1
  360. package/_esm/actions/public/uninstallFilter.js.map +1 -1
  361. package/_esm/actions/public/verifyHash.js +1 -1
  362. package/_esm/actions/public/verifyHash.js.map +1 -1
  363. package/_esm/actions/public/verifyMessage.js +1 -1
  364. package/_esm/actions/public/verifyMessage.js.map +1 -1
  365. package/_esm/actions/public/verifyTypedData.js +2 -2
  366. package/_esm/actions/public/verifyTypedData.js.map +1 -1
  367. package/_esm/actions/public/waitForTransactionReceipt.js +1 -1
  368. package/_esm/actions/public/waitForTransactionReceipt.js.map +1 -1
  369. package/_esm/actions/public/watchBlockNumber.js.map +1 -1
  370. package/_esm/actions/public/watchBlocks.js.map +1 -1
  371. package/_esm/actions/public/watchContractEvent.js.map +1 -1
  372. package/_esm/actions/public/watchEvent.js.map +1 -1
  373. package/_esm/actions/public/watchPendingTransactions.js.map +1 -1
  374. package/_esm/actions/test/dropTransaction.js.map +1 -1
  375. package/_esm/actions/test/getAutomine.js.map +1 -1
  376. package/_esm/actions/test/getTxpoolContent.js.map +1 -1
  377. package/_esm/actions/test/getTxpoolStatus.js.map +1 -1
  378. package/_esm/actions/test/impersonateAccount.js.map +1 -1
  379. package/_esm/actions/test/increaseTime.js.map +1 -1
  380. package/_esm/actions/test/inspectTxpool.js.map +1 -1
  381. package/_esm/actions/test/mine.js.map +1 -1
  382. package/_esm/actions/test/removeBlockTimestampInterval.js.map +1 -1
  383. package/_esm/actions/test/reset.js.map +1 -1
  384. package/_esm/actions/test/revert.js.map +1 -1
  385. package/_esm/actions/test/sendUnsignedTransaction.js.map +1 -1
  386. package/_esm/actions/test/setAutomine.js.map +1 -1
  387. package/_esm/actions/test/setBalance.js.map +1 -1
  388. package/_esm/actions/test/setBlockGasLimit.js.map +1 -1
  389. package/_esm/actions/test/setBlockTimestampInterval.js.map +1 -1
  390. package/_esm/actions/test/setCode.js.map +1 -1
  391. package/_esm/actions/test/setCoinbase.js.map +1 -1
  392. package/_esm/actions/test/setIntervalMining.js.map +1 -1
  393. package/_esm/actions/test/setLoggingEnabled.js.map +1 -1
  394. package/_esm/actions/test/setMinGasPrice.js.map +1 -1
  395. package/_esm/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
  396. package/_esm/actions/test/setNextBlockTimestamp.js.map +1 -1
  397. package/_esm/actions/test/setNonce.js.map +1 -1
  398. package/_esm/actions/test/setRpcUrl.js.map +1 -1
  399. package/_esm/actions/test/setStorageAt.js.map +1 -1
  400. package/_esm/actions/test/snapshot.js.map +1 -1
  401. package/_esm/actions/test/stopImpersonatingAccount.js.map +1 -1
  402. package/_esm/actions/wallet/addChain.js +1 -1
  403. package/_esm/actions/wallet/addChain.js.map +1 -1
  404. package/_esm/actions/wallet/deployContract.js.map +1 -1
  405. package/_esm/actions/wallet/getAddresses.js +1 -1
  406. package/_esm/actions/wallet/getAddresses.js.map +1 -1
  407. package/_esm/actions/wallet/getPermissions.js.map +1 -1
  408. package/_esm/actions/wallet/prepareTransactionRequest.js +5 -5
  409. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  410. package/_esm/actions/wallet/requestAddresses.js.map +1 -1
  411. package/_esm/actions/wallet/requestPermissions.js.map +1 -1
  412. package/_esm/actions/wallet/sendRawTransaction.js.map +1 -1
  413. package/_esm/actions/wallet/sendTransaction.js +5 -5
  414. package/_esm/actions/wallet/sendTransaction.js.map +1 -1
  415. package/_esm/actions/wallet/signMessage.js +2 -2
  416. package/_esm/actions/wallet/signMessage.js.map +1 -1
  417. package/_esm/actions/wallet/signTransaction.js +3 -3
  418. package/_esm/actions/wallet/signTransaction.js.map +1 -1
  419. package/_esm/actions/wallet/signTypedData.js +2 -2
  420. package/_esm/actions/wallet/signTypedData.js.map +1 -1
  421. package/_esm/actions/wallet/switchChain.js +1 -1
  422. package/_esm/actions/wallet/switchChain.js.map +1 -1
  423. package/_esm/actions/wallet/watchAsset.js.map +1 -1
  424. package/_esm/actions/wallet/writeContract.js.map +1 -1
  425. package/_esm/chains/definitions/arbitrumSepolia.js +33 -0
  426. package/_esm/chains/definitions/arbitrumSepolia.js.map +1 -0
  427. package/_esm/chains/definitions/fuse.js +7 -1
  428. package/_esm/chains/definitions/fuse.js.map +1 -1
  429. package/_esm/chains/index.js +1 -0
  430. package/_esm/chains/index.js.map +1 -1
  431. package/_esm/clients/createClient.js.map +1 -1
  432. package/_esm/clients/createPublicClient.js +1 -1
  433. package/_esm/clients/createPublicClient.js.map +1 -1
  434. package/_esm/clients/createTestClient.js +1 -1
  435. package/_esm/clients/createTestClient.js.map +1 -1
  436. package/_esm/clients/createWalletClient.js +1 -1
  437. package/_esm/clients/createWalletClient.js.map +1 -1
  438. package/_esm/clients/transports/createTransport.js.map +1 -1
  439. package/_esm/clients/transports/custom.js.map +1 -1
  440. package/_esm/clients/transports/fallback.js.map +1 -1
  441. package/_esm/clients/transports/http.js +1 -1
  442. package/_esm/clients/transports/http.js.map +1 -1
  443. package/_esm/clients/transports/webSocket.js +1 -1
  444. package/_esm/clients/transports/webSocket.js.map +1 -1
  445. package/_esm/contract/index.js +2 -2
  446. package/_esm/contract/index.js.map +1 -1
  447. package/_esm/ens/index.js.map +1 -1
  448. package/_esm/errors/abi.js.map +1 -1
  449. package/_esm/errors/account.js.map +1 -1
  450. package/_esm/errors/address.js.map +1 -1
  451. package/_esm/errors/base.js.map +1 -1
  452. package/_esm/errors/block.js.map +1 -1
  453. package/_esm/errors/ccip.js.map +1 -1
  454. package/_esm/errors/chain.js.map +1 -1
  455. package/_esm/errors/contract.js.map +1 -1
  456. package/_esm/errors/cursor.js.map +1 -1
  457. package/_esm/errors/data.js.map +1 -1
  458. package/_esm/errors/encoding.js.map +1 -1
  459. package/_esm/errors/ens.js.map +1 -1
  460. package/_esm/errors/estimateGas.js.map +1 -1
  461. package/_esm/errors/fee.js.map +1 -1
  462. package/_esm/errors/log.js.map +1 -1
  463. package/_esm/errors/node.js +11 -31
  464. package/_esm/errors/node.js.map +1 -1
  465. package/_esm/errors/request.js.map +1 -1
  466. package/_esm/errors/rpc.js +18 -139
  467. package/_esm/errors/rpc.js.map +1 -1
  468. package/_esm/errors/transaction.js.map +1 -1
  469. package/_esm/errors/transport.js.map +1 -1
  470. package/_esm/errors/utils.js.map +1 -1
  471. package/_esm/errors/version.js +1 -1
  472. package/_esm/index.js +49 -43
  473. package/_esm/index.js.map +1 -1
  474. package/_esm/public/index.js +1 -1
  475. package/_esm/public/index.js.map +1 -1
  476. package/_esm/test/index.js +9 -9
  477. package/_esm/test/index.js.map +1 -1
  478. package/_esm/types/eip1193.js +0 -2
  479. package/_esm/types/eip1193.js.map +1 -1
  480. package/_esm/utils/abi/decodeAbiParameters.js +2 -3
  481. package/_esm/utils/abi/decodeAbiParameters.js.map +1 -1
  482. package/_esm/utils/abi/decodeDeployData.js +1 -1
  483. package/_esm/utils/abi/decodeDeployData.js.map +1 -1
  484. package/_esm/utils/abi/decodeErrorResult.js +2 -2
  485. package/_esm/utils/abi/decodeErrorResult.js.map +1 -1
  486. package/_esm/utils/abi/decodeEventLog.js +2 -2
  487. package/_esm/utils/abi/decodeEventLog.js.map +1 -1
  488. package/_esm/utils/abi/decodeFunctionData.js +2 -2
  489. package/_esm/utils/abi/decodeFunctionData.js.map +1 -1
  490. package/_esm/utils/abi/decodeFunctionResult.js +2 -2
  491. package/_esm/utils/abi/decodeFunctionResult.js.map +1 -1
  492. package/_esm/utils/abi/encodeAbiParameters.js +2 -4
  493. package/_esm/utils/abi/encodeAbiParameters.js.map +1 -1
  494. package/_esm/utils/abi/encodeDeployData.js +1 -1
  495. package/_esm/utils/abi/encodeDeployData.js.map +1 -1
  496. package/_esm/utils/abi/encodeErrorResult.js +3 -3
  497. package/_esm/utils/abi/encodeErrorResult.js.map +1 -1
  498. package/_esm/utils/abi/encodeEventTopics.js +4 -4
  499. package/_esm/utils/abi/encodeEventTopics.js.map +1 -1
  500. package/_esm/utils/abi/encodeFunctionData.js +4 -4
  501. package/_esm/utils/abi/encodeFunctionData.js.map +1 -1
  502. package/_esm/utils/abi/encodeFunctionResult.js +2 -2
  503. package/_esm/utils/abi/encodeFunctionResult.js.map +1 -1
  504. package/_esm/utils/abi/encodePacked.js +2 -2
  505. package/_esm/utils/abi/encodePacked.js.map +1 -1
  506. package/_esm/utils/abi/formatAbiItem.js +1 -1
  507. package/_esm/utils/abi/formatAbiItem.js.map +1 -1
  508. package/_esm/utils/abi/formatAbiItemWithArgs.js.map +1 -1
  509. package/_esm/utils/abi/getAbiItem.js +1 -1
  510. package/_esm/utils/abi/getAbiItem.js.map +1 -1
  511. package/_esm/utils/address/getAddress.js +1 -1
  512. package/_esm/utils/address/getAddress.js.map +1 -1
  513. package/_esm/utils/address/getContractAddress.js.map +1 -1
  514. package/_esm/utils/address/isAddress.js.map +1 -1
  515. package/_esm/utils/address/isAddressEqual.js +1 -1
  516. package/_esm/utils/address/isAddressEqual.js.map +1 -1
  517. package/_esm/utils/buildRequest.js +1 -1
  518. package/_esm/utils/buildRequest.js.map +1 -1
  519. package/_esm/utils/ccip.js.map +1 -1
  520. package/_esm/utils/chain.js.map +1 -1
  521. package/_esm/utils/contract/extractFunctionParts.js.map +1 -1
  522. package/_esm/utils/cursor.js.map +1 -1
  523. package/_esm/utils/data/concat.js.map +1 -1
  524. package/_esm/utils/data/isBytes.js.map +1 -1
  525. package/_esm/utils/data/isBytesEqual.js.map +1 -1
  526. package/_esm/utils/data/isHex.js.map +1 -1
  527. package/_esm/utils/data/pad.js +1 -1
  528. package/_esm/utils/data/pad.js.map +1 -1
  529. package/_esm/utils/data/size.js.map +1 -1
  530. package/_esm/utils/data/slice.js +1 -1
  531. package/_esm/utils/data/slice.js.map +1 -1
  532. package/_esm/utils/data/trim.js.map +1 -1
  533. package/_esm/utils/encoding/fromBytes.js +5 -5
  534. package/_esm/utils/encoding/fromBytes.js.map +1 -1
  535. package/_esm/utils/encoding/fromHex.js.map +1 -1
  536. package/_esm/utils/encoding/fromRlp.js +2 -2
  537. package/_esm/utils/encoding/fromRlp.js.map +1 -1
  538. package/_esm/utils/encoding/toBytes.js +1 -1
  539. package/_esm/utils/encoding/toBytes.js.map +1 -1
  540. package/_esm/utils/encoding/toHex.js +1 -1
  541. package/_esm/utils/encoding/toHex.js.map +1 -1
  542. package/_esm/utils/encoding/toRlp.js +1 -1
  543. package/_esm/utils/encoding/toRlp.js.map +1 -1
  544. package/_esm/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
  545. package/_esm/utils/ens/avatar/utils.js +1 -1
  546. package/_esm/utils/ens/avatar/utils.js.map +1 -1
  547. package/_esm/utils/ens/encodeLabelhash.js.map +1 -1
  548. package/_esm/utils/ens/encodedLabelToLabelhash.js.map +1 -1
  549. package/_esm/utils/ens/errors.js.map +1 -1
  550. package/_esm/utils/ens/labelhash.js +2 -2
  551. package/_esm/utils/ens/labelhash.js.map +1 -1
  552. package/_esm/utils/ens/namehash.js +2 -2
  553. package/_esm/utils/ens/namehash.js.map +1 -1
  554. package/_esm/utils/ens/normalize.js.map +1 -1
  555. package/_esm/utils/ens/packetToBytes.js +2 -2
  556. package/_esm/utils/ens/packetToBytes.js.map +1 -1
  557. package/_esm/utils/errors/getCallError.js +8 -5
  558. package/_esm/utils/errors/getCallError.js.map +1 -1
  559. package/_esm/utils/errors/getContractError.js +14 -13
  560. package/_esm/utils/errors/getContractError.js.map +1 -1
  561. package/_esm/utils/errors/getEstimateGasError.js +8 -5
  562. package/_esm/utils/errors/getEstimateGasError.js.map +1 -1
  563. package/_esm/utils/errors/getNodeError.js.map +1 -1
  564. package/_esm/utils/errors/getTransactionError.js +8 -5
  565. package/_esm/utils/errors/getTransactionError.js.map +1 -1
  566. package/_esm/utils/formatters/block.js.map +1 -1
  567. package/_esm/utils/formatters/extract.js.map +1 -1
  568. package/_esm/utils/formatters/feeHistory.js.map +1 -1
  569. package/_esm/utils/formatters/formatter.js.map +1 -1
  570. package/_esm/utils/formatters/log.js.map +1 -1
  571. package/_esm/utils/formatters/transaction.js.map +1 -1
  572. package/_esm/utils/formatters/transactionReceipt.js.map +1 -1
  573. package/_esm/utils/formatters/transactionRequest.js.map +1 -1
  574. package/_esm/utils/hash/getEventSelector.js.map +1 -1
  575. package/_esm/utils/hash/getEventSignature.js +1 -1
  576. package/_esm/utils/hash/getEventSignature.js.map +1 -1
  577. package/_esm/utils/hash/getFunctionSelector.js +1 -1
  578. package/_esm/utils/hash/getFunctionSelector.js.map +1 -1
  579. package/_esm/utils/hash/getFunctionSignature.js +1 -1
  580. package/_esm/utils/hash/getFunctionSignature.js.map +1 -1
  581. package/_esm/utils/hash/hashFunction.js +2 -2
  582. package/_esm/utils/hash/hashFunction.js.map +1 -1
  583. package/_esm/utils/hash/isHash.js.map +1 -1
  584. package/_esm/utils/hash/keccak256.js.map +1 -1
  585. package/_esm/utils/index.js +29 -27
  586. package/_esm/utils/index.js.map +1 -1
  587. package/_esm/utils/observe.js.map +1 -1
  588. package/_esm/utils/poll.js.map +1 -1
  589. package/_esm/utils/promise/createBatchScheduler.js.map +1 -1
  590. package/_esm/utils/promise/withCache.js.map +1 -1
  591. package/_esm/utils/promise/withRetry.js.map +1 -1
  592. package/_esm/utils/promise/withTimeout.js.map +1 -1
  593. package/_esm/utils/rpc.js +2 -2
  594. package/_esm/utils/rpc.js.map +1 -1
  595. package/_esm/utils/signature/compactSignatureToHex.js +19 -0
  596. package/_esm/utils/signature/compactSignatureToHex.js.map +1 -0
  597. package/_esm/utils/signature/compactSignatureToSignature.js +28 -0
  598. package/_esm/utils/signature/compactSignatureToSignature.js.map +1 -0
  599. package/_esm/utils/signature/hashMessage.js +1 -1
  600. package/_esm/utils/signature/hashMessage.js.map +1 -1
  601. package/_esm/utils/signature/hashTypedData.js +2 -2
  602. package/_esm/utils/signature/hashTypedData.js.map +1 -1
  603. package/_esm/utils/signature/hexToCompactSignature.js +20 -0
  604. package/_esm/utils/signature/hexToCompactSignature.js.map +1 -0
  605. package/_esm/utils/signature/hexToSignature.js +1 -1
  606. package/_esm/utils/signature/hexToSignature.js.map +1 -1
  607. package/_esm/utils/signature/recoverAddress.js.map +1 -1
  608. package/_esm/utils/signature/recoverMessageAddress.js +1 -1
  609. package/_esm/utils/signature/recoverMessageAddress.js.map +1 -1
  610. package/_esm/utils/signature/recoverPublicKey.js.map +1 -1
  611. package/_esm/utils/signature/recoverTypedDataAddress.js +1 -1
  612. package/_esm/utils/signature/recoverTypedDataAddress.js.map +1 -1
  613. package/_esm/utils/signature/signatureToCompactSignature.js +30 -0
  614. package/_esm/utils/signature/signatureToCompactSignature.js.map +1 -0
  615. package/_esm/utils/signature/signatureToHex.js +1 -1
  616. package/_esm/utils/signature/signatureToHex.js.map +1 -1
  617. package/_esm/utils/signature/verifyMessage.js +2 -2
  618. package/_esm/utils/signature/verifyMessage.js.map +1 -1
  619. package/_esm/utils/signature/verifyTypedData.js +1 -1
  620. package/_esm/utils/signature/verifyTypedData.js.map +1 -1
  621. package/_esm/utils/stringify.js.map +1 -1
  622. package/_esm/utils/transaction/assertRequest.js +4 -4
  623. package/_esm/utils/transaction/assertRequest.js.map +1 -1
  624. package/_esm/utils/transaction/assertTransaction.js +3 -3
  625. package/_esm/utils/transaction/assertTransaction.js.map +1 -1
  626. package/_esm/utils/transaction/getSerializedTransactionType.js +1 -1
  627. package/_esm/utils/transaction/getSerializedTransactionType.js.map +1 -1
  628. package/_esm/utils/transaction/getTransactionType.js +1 -1
  629. package/_esm/utils/transaction/getTransactionType.js.map +1 -1
  630. package/_esm/utils/transaction/parseTransaction.js +2 -2
  631. package/_esm/utils/transaction/parseTransaction.js.map +1 -1
  632. package/_esm/utils/transaction/serializeAccessList.js +2 -2
  633. package/_esm/utils/transaction/serializeAccessList.js.map +1 -1
  634. package/_esm/utils/transaction/serializeTransaction.js +2 -2
  635. package/_esm/utils/transaction/serializeTransaction.js.map +1 -1
  636. package/_esm/utils/typedData.js +1 -1
  637. package/_esm/utils/typedData.js.map +1 -1
  638. package/_esm/utils/unit/formatEther.js.map +1 -1
  639. package/_esm/utils/unit/formatGwei.js.map +1 -1
  640. package/_esm/utils/unit/formatUnits.js.map +1 -1
  641. package/_esm/utils/unit/parseEther.js.map +1 -1
  642. package/_esm/utils/unit/parseGwei.js.map +1 -1
  643. package/_esm/utils/unit/parseUnits.js.map +1 -1
  644. package/_types/abi/index.d.ts +4 -4
  645. package/_types/abi/index.d.ts.map +1 -1
  646. package/_types/accounts/generateMnemonic.d.ts +2 -0
  647. package/_types/accounts/generateMnemonic.d.ts.map +1 -1
  648. package/_types/accounts/generatePrivateKey.d.ts +3 -0
  649. package/_types/accounts/generatePrivateKey.d.ts.map +1 -1
  650. package/_types/accounts/hdKeyToAccount.d.ts +4 -0
  651. package/_types/accounts/hdKeyToAccount.d.ts.map +1 -1
  652. package/_types/accounts/index.d.ts +14 -14
  653. package/_types/accounts/index.d.ts.map +1 -1
  654. package/_types/accounts/mnemonicToAccount.d.ts +3 -0
  655. package/_types/accounts/mnemonicToAccount.d.ts.map +1 -1
  656. package/_types/accounts/privateKeyToAccount.d.ts +8 -0
  657. package/_types/accounts/privateKeyToAccount.d.ts.map +1 -1
  658. package/_types/accounts/toAccount.d.ts +4 -0
  659. package/_types/accounts/toAccount.d.ts.map +1 -1
  660. package/_types/accounts/utils/parseAccount.d.ts +2 -0
  661. package/_types/accounts/utils/parseAccount.d.ts.map +1 -1
  662. package/_types/accounts/utils/privateKeyToAddress.d.ts +4 -0
  663. package/_types/accounts/utils/privateKeyToAddress.d.ts.map +1 -1
  664. package/_types/accounts/utils/publicKeyToAddress.d.ts +4 -0
  665. package/_types/accounts/utils/publicKeyToAddress.d.ts.map +1 -1
  666. package/_types/accounts/utils/sign.d.ts +3 -0
  667. package/_types/accounts/utils/sign.d.ts.map +1 -1
  668. package/_types/accounts/utils/signMessage.d.ts +5 -0
  669. package/_types/accounts/utils/signMessage.d.ts.map +1 -1
  670. package/_types/accounts/utils/signTransaction.d.ts +4 -0
  671. package/_types/accounts/utils/signTransaction.d.ts.map +1 -1
  672. package/_types/accounts/utils/signTypedData.d.ts +5 -0
  673. package/_types/accounts/utils/signTypedData.d.ts.map +1 -1
  674. package/_types/actions/ens/getEnsAddress.d.ts +9 -0
  675. package/_types/actions/ens/getEnsAddress.d.ts.map +1 -1
  676. package/_types/actions/ens/getEnsAvatar.d.ts +4 -1
  677. package/_types/actions/ens/getEnsAvatar.d.ts.map +1 -1
  678. package/_types/actions/ens/getEnsName.d.ts +6 -1
  679. package/_types/actions/ens/getEnsName.d.ts.map +1 -1
  680. package/_types/actions/ens/getEnsResolver.d.ts +5 -0
  681. package/_types/actions/ens/getEnsResolver.d.ts.map +1 -1
  682. package/_types/actions/ens/getEnsText.d.ts +8 -1
  683. package/_types/actions/ens/getEnsText.d.ts.map +1 -1
  684. package/_types/actions/getContract.d.ts +2 -0
  685. package/_types/actions/getContract.d.ts.map +1 -1
  686. package/_types/actions/index.d.ts +78 -78
  687. package/_types/actions/index.d.ts.map +1 -1
  688. package/_types/actions/public/call.d.ts +15 -1
  689. package/_types/actions/public/call.d.ts.map +1 -1
  690. package/_types/actions/public/createBlockFilter.d.ts +3 -0
  691. package/_types/actions/public/createBlockFilter.d.ts.map +1 -1
  692. package/_types/actions/public/createContractEventFilter.d.ts +5 -0
  693. package/_types/actions/public/createContractEventFilter.d.ts.map +1 -1
  694. package/_types/actions/public/createEventFilter.d.ts +5 -0
  695. package/_types/actions/public/createEventFilter.d.ts.map +1 -1
  696. package/_types/actions/public/createPendingTransactionFilter.d.ts +3 -0
  697. package/_types/actions/public/createPendingTransactionFilter.d.ts.map +1 -1
  698. package/_types/actions/public/estimateContractGas.d.ts +5 -1
  699. package/_types/actions/public/estimateContractGas.d.ts.map +1 -1
  700. package/_types/actions/public/estimateFeesPerGas.d.ts +5 -0
  701. package/_types/actions/public/estimateFeesPerGas.d.ts.map +1 -1
  702. package/_types/actions/public/estimateGas.d.ts +6 -0
  703. package/_types/actions/public/estimateGas.d.ts.map +1 -1
  704. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts +7 -0
  705. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -1
  706. package/_types/actions/public/getBalance.d.ts +4 -0
  707. package/_types/actions/public/getBalance.d.ts.map +1 -1
  708. package/_types/actions/public/getBlock.d.ts +5 -0
  709. package/_types/actions/public/getBlock.d.ts.map +1 -1
  710. package/_types/actions/public/getBlockNumber.d.ts +3 -0
  711. package/_types/actions/public/getBlockNumber.d.ts.map +1 -1
  712. package/_types/actions/public/getBlockTransactionCount.d.ts +5 -0
  713. package/_types/actions/public/getBlockTransactionCount.d.ts.map +1 -1
  714. package/_types/actions/public/getBytecode.d.ts +4 -0
  715. package/_types/actions/public/getBytecode.d.ts.map +1 -1
  716. package/_types/actions/public/getChainId.d.ts +4 -0
  717. package/_types/actions/public/getChainId.d.ts.map +1 -1
  718. package/_types/actions/public/getContractEvents.d.ts +4 -0
  719. package/_types/actions/public/getContractEvents.d.ts.map +1 -1
  720. package/_types/actions/public/getFeeHistory.d.ts +4 -0
  721. package/_types/actions/public/getFeeHistory.d.ts.map +1 -1
  722. package/_types/actions/public/getFilterChanges.d.ts +5 -0
  723. package/_types/actions/public/getFilterChanges.d.ts.map +1 -1
  724. package/_types/actions/public/getFilterLogs.d.ts +5 -0
  725. package/_types/actions/public/getFilterLogs.d.ts.map +1 -1
  726. package/_types/actions/public/getGasPrice.d.ts +3 -0
  727. package/_types/actions/public/getGasPrice.d.ts.map +1 -1
  728. package/_types/actions/public/getLogs.d.ts +7 -0
  729. package/_types/actions/public/getLogs.d.ts.map +1 -1
  730. package/_types/actions/public/getStorageAt.d.ts +4 -0
  731. package/_types/actions/public/getStorageAt.d.ts.map +1 -1
  732. package/_types/actions/public/getTransaction.d.ts +4 -0
  733. package/_types/actions/public/getTransaction.d.ts.map +1 -1
  734. package/_types/actions/public/getTransactionConfirmations.d.ts +4 -0
  735. package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -1
  736. package/_types/actions/public/getTransactionCount.d.ts +5 -0
  737. package/_types/actions/public/getTransactionCount.d.ts.map +1 -1
  738. package/_types/actions/public/getTransactionReceipt.d.ts +4 -0
  739. package/_types/actions/public/getTransactionReceipt.d.ts.map +1 -1
  740. package/_types/actions/public/multicall.d.ts +7 -0
  741. package/_types/actions/public/multicall.d.ts.map +1 -1
  742. package/_types/actions/public/readContract.d.ts +5 -1
  743. package/_types/actions/public/readContract.d.ts.map +1 -1
  744. package/_types/actions/public/simulateContract.d.ts +7 -1
  745. package/_types/actions/public/simulateContract.d.ts.map +1 -1
  746. package/_types/actions/public/uninstallFilter.d.ts +3 -0
  747. package/_types/actions/public/uninstallFilter.d.ts.map +1 -1
  748. package/_types/actions/public/verifyHash.d.ts +7 -1
  749. package/_types/actions/public/verifyHash.d.ts.map +1 -1
  750. package/_types/actions/public/verifyMessage.d.ts +4 -1
  751. package/_types/actions/public/verifyMessage.d.ts.map +1 -1
  752. package/_types/actions/public/verifyTypedData.d.ts +4 -1
  753. package/_types/actions/public/verifyTypedData.d.ts.map +1 -1
  754. package/_types/actions/public/waitForTransactionReceipt.d.ts +7 -1
  755. package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
  756. package/_types/actions/public/watchBlockNumber.d.ts +3 -0
  757. package/_types/actions/public/watchBlockNumber.d.ts.map +1 -1
  758. package/_types/actions/public/watchBlocks.d.ts +4 -0
  759. package/_types/actions/public/watchBlocks.d.ts.map +1 -1
  760. package/_types/actions/public/watchContractEvent.d.ts +4 -0
  761. package/_types/actions/public/watchContractEvent.d.ts.map +1 -1
  762. package/_types/actions/public/watchEvent.d.ts +4 -0
  763. package/_types/actions/public/watchEvent.d.ts.map +1 -1
  764. package/_types/actions/public/watchPendingTransactions.d.ts +4 -0
  765. package/_types/actions/public/watchPendingTransactions.d.ts.map +1 -1
  766. package/_types/actions/test/dropTransaction.d.ts +3 -0
  767. package/_types/actions/test/dropTransaction.d.ts.map +1 -1
  768. package/_types/actions/test/getAutomine.d.ts +3 -0
  769. package/_types/actions/test/getAutomine.d.ts.map +1 -1
  770. package/_types/actions/test/getTxpoolContent.d.ts +3 -0
  771. package/_types/actions/test/getTxpoolContent.d.ts.map +1 -1
  772. package/_types/actions/test/getTxpoolStatus.d.ts +3 -0
  773. package/_types/actions/test/getTxpoolStatus.d.ts.map +1 -1
  774. package/_types/actions/test/impersonateAccount.d.ts +3 -0
  775. package/_types/actions/test/impersonateAccount.d.ts.map +1 -1
  776. package/_types/actions/test/increaseTime.d.ts +3 -0
  777. package/_types/actions/test/increaseTime.d.ts.map +1 -1
  778. package/_types/actions/test/inspectTxpool.d.ts +3 -0
  779. package/_types/actions/test/inspectTxpool.d.ts.map +1 -1
  780. package/_types/actions/test/mine.d.ts +3 -0
  781. package/_types/actions/test/mine.d.ts.map +1 -1
  782. package/_types/actions/test/removeBlockTimestampInterval.d.ts +3 -0
  783. package/_types/actions/test/removeBlockTimestampInterval.d.ts.map +1 -1
  784. package/_types/actions/test/reset.d.ts +3 -0
  785. package/_types/actions/test/reset.d.ts.map +1 -1
  786. package/_types/actions/test/revert.d.ts +3 -0
  787. package/_types/actions/test/revert.d.ts.map +1 -1
  788. package/_types/actions/test/sendUnsignedTransaction.d.ts +3 -0
  789. package/_types/actions/test/sendUnsignedTransaction.d.ts.map +1 -1
  790. package/_types/actions/test/setAutomine.d.ts +3 -0
  791. package/_types/actions/test/setAutomine.d.ts.map +1 -1
  792. package/_types/actions/test/setBalance.d.ts +3 -0
  793. package/_types/actions/test/setBalance.d.ts.map +1 -1
  794. package/_types/actions/test/setBlockGasLimit.d.ts +3 -0
  795. package/_types/actions/test/setBlockGasLimit.d.ts.map +1 -1
  796. package/_types/actions/test/setBlockTimestampInterval.d.ts +3 -0
  797. package/_types/actions/test/setBlockTimestampInterval.d.ts.map +1 -1
  798. package/_types/actions/test/setCode.d.ts +3 -0
  799. package/_types/actions/test/setCode.d.ts.map +1 -1
  800. package/_types/actions/test/setCoinbase.d.ts +3 -0
  801. package/_types/actions/test/setCoinbase.d.ts.map +1 -1
  802. package/_types/actions/test/setIntervalMining.d.ts +3 -0
  803. package/_types/actions/test/setIntervalMining.d.ts.map +1 -1
  804. package/_types/actions/test/setLoggingEnabled.d.ts +3 -0
  805. package/_types/actions/test/setLoggingEnabled.d.ts.map +1 -1
  806. package/_types/actions/test/setMinGasPrice.d.ts +3 -0
  807. package/_types/actions/test/setMinGasPrice.d.ts.map +1 -1
  808. package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts +3 -0
  809. package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +1 -1
  810. package/_types/actions/test/setNextBlockTimestamp.d.ts +3 -0
  811. package/_types/actions/test/setNextBlockTimestamp.d.ts.map +1 -1
  812. package/_types/actions/test/setNonce.d.ts +3 -0
  813. package/_types/actions/test/setNonce.d.ts.map +1 -1
  814. package/_types/actions/test/setRpcUrl.d.ts +3 -0
  815. package/_types/actions/test/setRpcUrl.d.ts.map +1 -1
  816. package/_types/actions/test/setStorageAt.d.ts +3 -0
  817. package/_types/actions/test/setStorageAt.d.ts.map +1 -1
  818. package/_types/actions/test/snapshot.d.ts +3 -0
  819. package/_types/actions/test/snapshot.d.ts.map +1 -1
  820. package/_types/actions/test/stopImpersonatingAccount.d.ts +3 -0
  821. package/_types/actions/test/stopImpersonatingAccount.d.ts.map +1 -1
  822. package/_types/actions/wallet/addChain.d.ts +4 -0
  823. package/_types/actions/wallet/addChain.d.ts.map +1 -1
  824. package/_types/actions/wallet/deployContract.d.ts +3 -1
  825. package/_types/actions/wallet/deployContract.d.ts.map +1 -1
  826. package/_types/actions/wallet/getAddresses.d.ts +4 -0
  827. package/_types/actions/wallet/getAddresses.d.ts.map +1 -1
  828. package/_types/actions/wallet/getPermissions.d.ts +3 -0
  829. package/_types/actions/wallet/getPermissions.d.ts.map +1 -1
  830. package/_types/actions/wallet/prepareTransactionRequest.d.ts +8 -0
  831. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  832. package/_types/actions/wallet/requestAddresses.d.ts +3 -0
  833. package/_types/actions/wallet/requestAddresses.d.ts.map +1 -1
  834. package/_types/actions/wallet/requestPermissions.d.ts +3 -0
  835. package/_types/actions/wallet/requestPermissions.d.ts.map +1 -1
  836. package/_types/actions/wallet/sendRawTransaction.d.ts +3 -0
  837. package/_types/actions/wallet/sendRawTransaction.d.ts.map +1 -1
  838. package/_types/actions/wallet/sendTransaction.d.ts +11 -0
  839. package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
  840. package/_types/actions/wallet/signMessage.d.ts +6 -0
  841. package/_types/actions/wallet/signMessage.d.ts.map +1 -1
  842. package/_types/actions/wallet/signTransaction.d.ts +9 -0
  843. package/_types/actions/wallet/signTransaction.d.ts.map +1 -1
  844. package/_types/actions/wallet/signTypedData.d.ts +9 -0
  845. package/_types/actions/wallet/signTypedData.d.ts.map +1 -1
  846. package/_types/actions/wallet/switchChain.d.ts +4 -0
  847. package/_types/actions/wallet/switchChain.d.ts.map +1 -1
  848. package/_types/actions/wallet/watchAsset.d.ts +3 -0
  849. package/_types/actions/wallet/watchAsset.d.ts.map +1 -1
  850. package/_types/actions/wallet/writeContract.d.ts +4 -1
  851. package/_types/actions/wallet/writeContract.d.ts.map +1 -1
  852. package/_types/chains/definitions/arbitrumSepolia.d.ts +32 -0
  853. package/_types/chains/definitions/arbitrumSepolia.d.ts.map +1 -0
  854. package/_types/chains/definitions/fuse.d.ts +7 -1
  855. package/_types/chains/definitions/fuse.d.ts.map +1 -1
  856. package/_types/chains/index.d.ts +1 -0
  857. package/_types/chains/index.d.ts.map +1 -1
  858. package/_types/clients/createClient.d.ts +3 -0
  859. package/_types/clients/createClient.d.ts.map +1 -1
  860. package/_types/clients/createPublicClient.d.ts +3 -1
  861. package/_types/clients/createPublicClient.d.ts.map +1 -1
  862. package/_types/clients/createTestClient.d.ts +3 -1
  863. package/_types/clients/createTestClient.d.ts.map +1 -1
  864. package/_types/clients/createWalletClient.d.ts +3 -1
  865. package/_types/clients/createWalletClient.d.ts.map +1 -1
  866. package/_types/clients/transports/createTransport.d.ts +2 -0
  867. package/_types/clients/transports/createTransport.d.ts.map +1 -1
  868. package/_types/clients/transports/custom.d.ts +3 -1
  869. package/_types/clients/transports/custom.d.ts.map +1 -1
  870. package/_types/clients/transports/fallback.d.ts +3 -1
  871. package/_types/clients/transports/fallback.d.ts.map +1 -1
  872. package/_types/clients/transports/http.d.ts +4 -1
  873. package/_types/clients/transports/http.d.ts.map +1 -1
  874. package/_types/clients/transports/webSocket.d.ts +4 -1
  875. package/_types/clients/transports/webSocket.d.ts.map +1 -1
  876. package/_types/contract/index.d.ts +25 -25
  877. package/_types/contract/index.d.ts.map +1 -1
  878. package/_types/ens/index.d.ts +8 -8
  879. package/_types/ens/index.d.ts.map +1 -1
  880. package/_types/errors/abi.d.ts +75 -0
  881. package/_types/errors/abi.d.ts.map +1 -1
  882. package/_types/errors/account.d.ts +3 -0
  883. package/_types/errors/account.d.ts.map +1 -1
  884. package/_types/errors/address.d.ts +3 -0
  885. package/_types/errors/address.d.ts.map +1 -1
  886. package/_types/errors/base.d.ts +3 -0
  887. package/_types/errors/base.d.ts.map +1 -1
  888. package/_types/errors/block.d.ts +3 -0
  889. package/_types/errors/block.d.ts.map +1 -1
  890. package/_types/errors/ccip.d.ts +9 -0
  891. package/_types/errors/ccip.d.ts.map +1 -1
  892. package/_types/errors/chain.d.ts +15 -0
  893. package/_types/errors/chain.d.ts.map +1 -1
  894. package/_types/errors/contract.d.ts +15 -0
  895. package/_types/errors/contract.d.ts.map +1 -1
  896. package/_types/errors/cursor.d.ts +6 -0
  897. package/_types/errors/cursor.d.ts.map +1 -1
  898. package/_types/errors/data.d.ts +6 -0
  899. package/_types/errors/data.d.ts.map +1 -1
  900. package/_types/errors/encoding.d.ts +26 -2
  901. package/_types/errors/encoding.d.ts.map +1 -1
  902. package/_types/errors/ens.d.ts +12 -0
  903. package/_types/errors/ens.d.ts.map +1 -1
  904. package/_types/errors/estimateGas.d.ts +3 -0
  905. package/_types/errors/estimateGas.d.ts.map +1 -1
  906. package/_types/errors/fee.d.ts +9 -0
  907. package/_types/errors/fee.d.ts.map +1 -1
  908. package/_types/errors/log.d.ts +3 -0
  909. package/_types/errors/log.d.ts.map +1 -1
  910. package/_types/errors/node.d.ts +37 -0
  911. package/_types/errors/node.d.ts.map +1 -1
  912. package/_types/errors/request.d.ts +12 -0
  913. package/_types/errors/request.d.ts.map +1 -1
  914. package/_types/errors/rpc.d.ts +81 -0
  915. package/_types/errors/rpc.d.ts.map +1 -1
  916. package/_types/errors/transaction.d.ts +30 -0
  917. package/_types/errors/transaction.d.ts.map +1 -1
  918. package/_types/errors/transport.d.ts +3 -0
  919. package/_types/errors/transport.d.ts.map +1 -1
  920. package/_types/errors/utils.d.ts +3 -0
  921. package/_types/errors/utils.d.ts.map +1 -1
  922. package/_types/errors/version.d.ts +1 -1
  923. package/_types/index.d.ts +181 -175
  924. package/_types/index.d.ts.map +1 -1
  925. package/_types/public/index.d.ts +27 -27
  926. package/_types/public/index.d.ts.map +1 -1
  927. package/_types/test/index.d.ts +28 -28
  928. package/_types/test/index.d.ts.map +1 -1
  929. package/_types/types/eip1193.d.ts +3 -0
  930. package/_types/types/eip1193.d.ts.map +1 -1
  931. package/_types/types/misc.d.ts +4 -0
  932. package/_types/types/misc.d.ts.map +1 -1
  933. package/_types/utils/abi/decodeAbiParameters.d.ts +20 -0
  934. package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -1
  935. package/_types/utils/abi/decodeDeployData.d.ts +4 -0
  936. package/_types/utils/abi/decodeDeployData.d.ts.map +1 -1
  937. package/_types/utils/abi/decodeErrorResult.d.ts +6 -0
  938. package/_types/utils/abi/decodeErrorResult.d.ts.map +1 -1
  939. package/_types/utils/abi/decodeEventLog.d.ts +6 -0
  940. package/_types/utils/abi/decodeEventLog.d.ts.map +1 -1
  941. package/_types/utils/abi/decodeFunctionData.d.ts +7 -0
  942. package/_types/utils/abi/decodeFunctionData.d.ts.map +1 -1
  943. package/_types/utils/abi/decodeFunctionResult.d.ts +5 -0
  944. package/_types/utils/abi/decodeFunctionResult.d.ts.map +1 -1
  945. package/_types/utils/abi/encodeAbiParameters.d.ts +21 -0
  946. package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -1
  947. package/_types/utils/abi/encodeDeployData.d.ts +5 -0
  948. package/_types/utils/abi/encodeDeployData.d.ts.map +1 -1
  949. package/_types/utils/abi/encodeErrorResult.d.ts +7 -0
  950. package/_types/utils/abi/encodeErrorResult.d.ts.map +1 -1
  951. package/_types/utils/abi/encodeEventTopics.d.ts +10 -0
  952. package/_types/utils/abi/encodeEventTopics.d.ts.map +1 -1
  953. package/_types/utils/abi/encodeFunctionData.d.ts +8 -0
  954. package/_types/utils/abi/encodeFunctionData.d.ts.map +1 -1
  955. package/_types/utils/abi/encodeFunctionResult.d.ts +5 -0
  956. package/_types/utils/abi/encodeFunctionResult.d.ts.map +1 -1
  957. package/_types/utils/abi/encodePacked.d.ts +9 -0
  958. package/_types/utils/abi/encodePacked.d.ts.map +1 -1
  959. package/_types/utils/abi/formatAbiItem.d.ts +5 -0
  960. package/_types/utils/abi/formatAbiItem.d.ts.map +1 -1
  961. package/_types/utils/abi/formatAbiItemWithArgs.d.ts +2 -0
  962. package/_types/utils/abi/formatAbiItemWithArgs.d.ts.map +1 -1
  963. package/_types/utils/abi/getAbiItem.d.ts +6 -0
  964. package/_types/utils/abi/getAbiItem.d.ts.map +1 -1
  965. package/_types/utils/address/getAddress.d.ts +6 -0
  966. package/_types/utils/address/getAddress.d.ts.map +1 -1
  967. package/_types/utils/address/getContractAddress.d.ts +11 -0
  968. package/_types/utils/address/getContractAddress.d.ts.map +1 -1
  969. package/_types/utils/address/isAddress.d.ts +2 -0
  970. package/_types/utils/address/isAddress.d.ts.map +1 -1
  971. package/_types/utils/address/isAddressEqual.d.ts +4 -0
  972. package/_types/utils/address/isAddressEqual.d.ts.map +1 -1
  973. package/_types/utils/buildRequest.d.ts +8 -0
  974. package/_types/utils/buildRequest.d.ts.map +1 -1
  975. package/_types/utils/ccip.d.ts +3 -0
  976. package/_types/utils/ccip.d.ts.map +1 -1
  977. package/_types/utils/chain.d.ts +4 -0
  978. package/_types/utils/chain.d.ts.map +1 -1
  979. package/_types/utils/contract/extractFunctionParts.d.ts +5 -0
  980. package/_types/utils/contract/extractFunctionParts.d.ts.map +1 -1
  981. package/_types/utils/cursor.d.ts +7 -0
  982. package/_types/utils/cursor.d.ts.map +1 -1
  983. package/_types/utils/data/concat.d.ts +4 -0
  984. package/_types/utils/data/concat.d.ts.map +1 -1
  985. package/_types/utils/data/isBytes.d.ts +2 -0
  986. package/_types/utils/data/isBytes.d.ts.map +1 -1
  987. package/_types/utils/data/isBytesEqual.d.ts +4 -0
  988. package/_types/utils/data/isBytesEqual.d.ts.map +1 -1
  989. package/_types/utils/data/isHex.d.ts +2 -0
  990. package/_types/utils/data/isHex.d.ts.map +1 -1
  991. package/_types/utils/data/pad.d.ts +5 -0
  992. package/_types/utils/data/pad.d.ts.map +1 -1
  993. package/_types/utils/data/size.d.ts +3 -0
  994. package/_types/utils/data/size.d.ts.map +1 -1
  995. package/_types/utils/data/slice.d.ts +9 -0
  996. package/_types/utils/data/slice.d.ts.map +1 -1
  997. package/_types/utils/data/trim.d.ts +2 -0
  998. package/_types/utils/data/trim.d.ts.map +1 -1
  999. package/_types/utils/encoding/fromBytes.d.ts +13 -5
  1000. package/_types/utils/encoding/fromBytes.d.ts.map +1 -1
  1001. package/_types/utils/encoding/fromHex.d.ts +11 -0
  1002. package/_types/utils/encoding/fromHex.d.ts.map +1 -1
  1003. package/_types/utils/encoding/fromRlp.d.ts +12 -0
  1004. package/_types/utils/encoding/fromRlp.d.ts.map +1 -1
  1005. package/_types/utils/encoding/toBytes.d.ts +12 -3
  1006. package/_types/utils/encoding/toBytes.d.ts.map +1 -1
  1007. package/_types/utils/encoding/toHex.d.ts +9 -0
  1008. package/_types/utils/encoding/toHex.d.ts.map +1 -1
  1009. package/_types/utils/encoding/toRlp.d.ts +7 -0
  1010. package/_types/utils/encoding/toRlp.d.ts.map +1 -1
  1011. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +4 -0
  1012. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
  1013. package/_types/utils/ens/avatar/utils.d.ts +11 -0
  1014. package/_types/utils/ens/avatar/utils.d.ts.map +1 -1
  1015. package/_types/utils/ens/encodeLabelhash.d.ts +2 -0
  1016. package/_types/utils/ens/encodeLabelhash.d.ts.map +1 -1
  1017. package/_types/utils/ens/encodedLabelToLabelhash.d.ts +3 -0
  1018. package/_types/utils/ens/encodedLabelToLabelhash.d.ts.map +1 -1
  1019. package/_types/utils/ens/errors.d.ts +2 -0
  1020. package/_types/utils/ens/errors.d.ts.map +1 -1
  1021. package/_types/utils/ens/labelhash.d.ts +6 -0
  1022. package/_types/utils/ens/labelhash.d.ts.map +1 -1
  1023. package/_types/utils/ens/namehash.d.ts +7 -0
  1024. package/_types/utils/ens/namehash.d.ts.map +1 -1
  1025. package/_types/utils/ens/normalize.d.ts +2 -0
  1026. package/_types/utils/ens/normalize.d.ts.map +1 -1
  1027. package/_types/utils/ens/packetToBytes.d.ts +5 -0
  1028. package/_types/utils/ens/packetToBytes.d.ts.map +1 -1
  1029. package/_types/utils/errors/getCallError.d.ts +8 -4
  1030. package/_types/utils/errors/getCallError.d.ts.map +1 -1
  1031. package/_types/utils/errors/getContractError.d.ts +7 -4
  1032. package/_types/utils/errors/getContractError.d.ts.map +1 -1
  1033. package/_types/utils/errors/getEstimateGasError.d.ts +8 -4
  1034. package/_types/utils/errors/getEstimateGasError.d.ts.map +1 -1
  1035. package/_types/utils/errors/getNodeError.d.ts +3 -2
  1036. package/_types/utils/errors/getNodeError.d.ts.map +1 -1
  1037. package/_types/utils/errors/getTransactionError.d.ts +7 -3
  1038. package/_types/utils/errors/getTransactionError.d.ts.map +1 -1
  1039. package/_types/utils/formatters/block.d.ts +4 -0
  1040. package/_types/utils/formatters/block.d.ts.map +1 -1
  1041. package/_types/utils/formatters/extract.d.ts +2 -0
  1042. package/_types/utils/formatters/extract.d.ts.map +1 -1
  1043. package/_types/utils/formatters/feeHistory.d.ts +2 -0
  1044. package/_types/utils/formatters/feeHistory.d.ts.map +1 -1
  1045. package/_types/utils/formatters/formatter.d.ts +2 -0
  1046. package/_types/utils/formatters/formatter.d.ts.map +1 -1
  1047. package/_types/utils/formatters/log.d.ts +2 -0
  1048. package/_types/utils/formatters/log.d.ts.map +1 -1
  1049. package/_types/utils/formatters/transaction.d.ts +4 -0
  1050. package/_types/utils/formatters/transaction.d.ts.map +1 -1
  1051. package/_types/utils/formatters/transactionReceipt.d.ts +4 -0
  1052. package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -1
  1053. package/_types/utils/formatters/transactionRequest.d.ts +4 -0
  1054. package/_types/utils/formatters/transactionRequest.d.ts.map +1 -1
  1055. package/_types/utils/hash/getEventSelector.d.ts +4 -0
  1056. package/_types/utils/hash/getEventSelector.d.ts.map +1 -1
  1057. package/_types/utils/hash/getEventSignature.d.ts +3 -0
  1058. package/_types/utils/hash/getEventSignature.d.ts.map +1 -1
  1059. package/_types/utils/hash/getFunctionSelector.d.ts +6 -0
  1060. package/_types/utils/hash/getFunctionSelector.d.ts.map +1 -1
  1061. package/_types/utils/hash/getFunctionSignature.d.ts +4 -0
  1062. package/_types/utils/hash/getFunctionSignature.d.ts.map +1 -1
  1063. package/_types/utils/hash/hashFunction.d.ts +7 -0
  1064. package/_types/utils/hash/hashFunction.d.ts.map +1 -1
  1065. package/_types/utils/hash/isHash.d.ts +4 -0
  1066. package/_types/utils/hash/isHash.d.ts.map +1 -1
  1067. package/_types/utils/hash/keccak256.d.ts +5 -0
  1068. package/_types/utils/hash/keccak256.d.ts.map +1 -1
  1069. package/_types/utils/index.d.ts +80 -78
  1070. package/_types/utils/index.d.ts.map +1 -1
  1071. package/_types/utils/observe.d.ts +2 -0
  1072. package/_types/utils/observe.d.ts.map +1 -1
  1073. package/_types/utils/poll.d.ts +2 -0
  1074. package/_types/utils/poll.d.ts.map +1 -1
  1075. package/_types/utils/promise/createBatchScheduler.d.ts +2 -0
  1076. package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -1
  1077. package/_types/utils/promise/withCache.d.ts +2 -0
  1078. package/_types/utils/promise/withCache.d.ts.map +1 -1
  1079. package/_types/utils/promise/withRetry.d.ts +2 -0
  1080. package/_types/utils/promise/withRetry.d.ts.map +1 -1
  1081. package/_types/utils/promise/withTimeout.d.ts +2 -0
  1082. package/_types/utils/promise/withTimeout.d.ts.map +1 -1
  1083. package/_types/utils/rpc.d.ts +8 -0
  1084. package/_types/utils/rpc.d.ts.map +1 -1
  1085. package/_types/utils/signature/compactSignatureToHex.d.ts +19 -0
  1086. package/_types/utils/signature/compactSignatureToHex.d.ts.map +1 -0
  1087. package/_types/utils/signature/compactSignatureToSignature.d.ts +24 -0
  1088. package/_types/utils/signature/compactSignatureToSignature.d.ts.map +1 -0
  1089. package/_types/utils/signature/hashMessage.d.ts +5 -0
  1090. package/_types/utils/signature/hashMessage.d.ts.map +1 -1
  1091. package/_types/utils/signature/hashTypedData.d.ts +13 -0
  1092. package/_types/utils/signature/hashTypedData.d.ts.map +1 -1
  1093. package/_types/utils/signature/hexToCompactSignature.d.ts +16 -0
  1094. package/_types/utils/signature/hexToCompactSignature.d.ts.map +1 -0
  1095. package/_types/utils/signature/hexToSignature.d.ts +3 -0
  1096. package/_types/utils/signature/hexToSignature.d.ts.map +1 -1
  1097. package/_types/utils/signature/recoverAddress.d.ts +2 -0
  1098. package/_types/utils/signature/recoverAddress.d.ts.map +1 -1
  1099. package/_types/utils/signature/recoverMessageAddress.d.ts +4 -0
  1100. package/_types/utils/signature/recoverMessageAddress.d.ts.map +1 -1
  1101. package/_types/utils/signature/recoverPublicKey.d.ts +4 -0
  1102. package/_types/utils/signature/recoverPublicKey.d.ts.map +1 -1
  1103. package/_types/utils/signature/recoverTypedDataAddress.d.ts +4 -0
  1104. package/_types/utils/signature/recoverTypedDataAddress.d.ts.map +1 -1
  1105. package/_types/utils/signature/signatureToCompactSignature.d.ts +23 -0
  1106. package/_types/utils/signature/signatureToCompactSignature.d.ts.map +1 -0
  1107. package/_types/utils/signature/signatureToHex.d.ts +4 -0
  1108. package/_types/utils/signature/signatureToHex.d.ts.map +1 -1
  1109. package/_types/utils/signature/verifyMessage.d.ts +5 -0
  1110. package/_types/utils/signature/verifyMessage.d.ts.map +1 -1
  1111. package/_types/utils/signature/verifyTypedData.d.ts +5 -0
  1112. package/_types/utils/signature/verifyTypedData.d.ts.map +1 -1
  1113. package/_types/utils/stringify.d.ts +2 -0
  1114. package/_types/utils/stringify.d.ts.map +1 -1
  1115. package/_types/utils/transaction/assertRequest.d.ts +6 -0
  1116. package/_types/utils/transaction/assertRequest.d.ts.map +1 -1
  1117. package/_types/utils/transaction/assertTransaction.d.ts +9 -0
  1118. package/_types/utils/transaction/assertTransaction.d.ts.map +1 -1
  1119. package/_types/utils/transaction/getSerializedTransactionType.d.ts +5 -0
  1120. package/_types/utils/transaction/getSerializedTransactionType.d.ts.map +1 -1
  1121. package/_types/utils/transaction/getTransactionType.d.ts +3 -0
  1122. package/_types/utils/transaction/getTransactionType.d.ts.map +1 -1
  1123. package/_types/utils/transaction/parseTransaction.d.ts +18 -1
  1124. package/_types/utils/transaction/parseTransaction.d.ts.map +1 -1
  1125. package/_types/utils/transaction/serializeAccessList.d.ts +5 -0
  1126. package/_types/utils/transaction/serializeAccessList.d.ts.map +1 -1
  1127. package/_types/utils/transaction/serializeTransaction.d.ts +13 -1
  1128. package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -1
  1129. package/_types/utils/typedData.d.ts +8 -0
  1130. package/_types/utils/typedData.d.ts.map +1 -1
  1131. package/_types/utils/unit/formatEther.d.ts +2 -0
  1132. package/_types/utils/unit/formatEther.d.ts.map +1 -1
  1133. package/_types/utils/unit/formatGwei.d.ts +2 -0
  1134. package/_types/utils/unit/formatGwei.d.ts.map +1 -1
  1135. package/_types/utils/unit/formatUnits.d.ts +2 -0
  1136. package/_types/utils/unit/formatUnits.d.ts.map +1 -1
  1137. package/_types/utils/unit/parseEther.d.ts +3 -0
  1138. package/_types/utils/unit/parseEther.d.ts.map +1 -1
  1139. package/_types/utils/unit/parseGwei.d.ts +3 -0
  1140. package/_types/utils/unit/parseGwei.d.ts.map +1 -1
  1141. package/_types/utils/unit/parseUnits.d.ts +2 -0
  1142. package/_types/utils/unit/parseUnits.d.ts.map +1 -1
  1143. package/abi/index.ts +7 -1
  1144. package/accounts/generateMnemonic.ts +3 -0
  1145. package/accounts/generatePrivateKey.ts +4 -1
  1146. package/accounts/hdKeyToAccount.ts +11 -2
  1147. package/accounts/index.ts +46 -11
  1148. package/accounts/mnemonicToAccount.ts +7 -1
  1149. package/accounts/privateKeyToAccount.ts +25 -6
  1150. package/accounts/toAccount.ts +14 -2
  1151. package/accounts/utils/parseAccount.ts +3 -0
  1152. package/accounts/utils/privateKeyToAddress.ts +14 -2
  1153. package/accounts/utils/publicKeyToAddress.ts +14 -2
  1154. package/accounts/utils/sign.ts +5 -1
  1155. package/accounts/utils/signMessage.ts +17 -3
  1156. package/accounts/utils/signTransaction.ts +12 -2
  1157. package/accounts/utils/signTypedData.ts +13 -2
  1158. package/actions/ens/getEnsAddress.ts +30 -7
  1159. package/actions/ens/getEnsAvatar.ts +15 -2
  1160. package/actions/ens/getEnsName.ts +18 -3
  1161. package/actions/ens/getEnsResolver.ts +16 -3
  1162. package/actions/ens/getEnsText.ts +28 -6
  1163. package/actions/getContract.ts +3 -0
  1164. package/actions/index.ts +110 -10
  1165. package/actions/public/call.ts +60 -10
  1166. package/actions/public/createBlockFilter.ts +4 -0
  1167. package/actions/public/createContractEventFilter.ts +13 -1
  1168. package/actions/public/createEventFilter.ts +13 -1
  1169. package/actions/public/createPendingTransactionFilter.ts +6 -0
  1170. package/actions/public/estimateContractGas.ts +18 -3
  1171. package/actions/public/estimateFeesPerGas.ts +15 -2
  1172. package/actions/public/estimateGas.ts +21 -3
  1173. package/actions/public/estimateMaxPriorityFeePerGas.ts +22 -4
  1174. package/actions/public/getBalance.ts +11 -1
  1175. package/actions/public/getBlock.ts +16 -2
  1176. package/actions/public/getBlockNumber.ts +4 -0
  1177. package/actions/public/getBlockTransactionCount.ts +16 -2
  1178. package/actions/public/getBytecode.ts +11 -1
  1179. package/actions/public/getChainId.ts +11 -1
  1180. package/actions/public/getContractEvents.ts +12 -2
  1181. package/actions/public/getFeeHistory.ts +14 -2
  1182. package/actions/public/getFilterChanges.ts +16 -2
  1183. package/actions/public/getFilterLogs.ts +16 -2
  1184. package/actions/public/getGasPrice.ts +4 -0
  1185. package/actions/public/getLogs.ts +23 -3
  1186. package/actions/public/getStorageAt.ts +11 -1
  1187. package/actions/public/getTransaction.ts +11 -1
  1188. package/actions/public/getTransactionConfirmations.ts +14 -2
  1189. package/actions/public/getTransactionCount.ts +16 -2
  1190. package/actions/public/getTransactionReceipt.ts +11 -1
  1191. package/actions/public/multicall.ts +23 -4
  1192. package/actions/public/readContract.ts +11 -2
  1193. package/actions/public/simulateContract.ts +18 -3
  1194. package/actions/public/uninstallFilter.ts +4 -0
  1195. package/actions/public/verifyHash.ts +17 -2
  1196. package/actions/public/verifyMessage.ts +12 -1
  1197. package/actions/public/verifyTypedData.ts +15 -2
  1198. package/actions/public/waitForTransactionReceipt.ts +17 -3
  1199. package/actions/public/watchBlockNumber.ts +4 -1
  1200. package/actions/public/watchBlocks.ts +8 -2
  1201. package/actions/public/watchContractEvent.ts +8 -2
  1202. package/actions/public/watchEvent.ts +8 -2
  1203. package/actions/public/watchPendingTransactions.ts +8 -2
  1204. package/actions/test/dropTransaction.ts +4 -0
  1205. package/actions/test/getAutomine.ts +4 -0
  1206. package/actions/test/getTxpoolContent.ts +4 -0
  1207. package/actions/test/getTxpoolStatus.ts +4 -0
  1208. package/actions/test/impersonateAccount.ts +4 -0
  1209. package/actions/test/increaseTime.ts +4 -0
  1210. package/actions/test/inspectTxpool.ts +4 -0
  1211. package/actions/test/mine.ts +4 -0
  1212. package/actions/test/removeBlockTimestampInterval.ts +4 -0
  1213. package/actions/test/reset.ts +4 -0
  1214. package/actions/test/revert.ts +4 -0
  1215. package/actions/test/sendUnsignedTransaction.ts +4 -0
  1216. package/actions/test/setAutomine.ts +4 -0
  1217. package/actions/test/setBalance.ts +4 -0
  1218. package/actions/test/setBlockGasLimit.ts +4 -0
  1219. package/actions/test/setBlockTimestampInterval.ts +4 -0
  1220. package/actions/test/setCode.ts +4 -0
  1221. package/actions/test/setCoinbase.ts +4 -0
  1222. package/actions/test/setIntervalMining.ts +4 -0
  1223. package/actions/test/setLoggingEnabled.ts +4 -0
  1224. package/actions/test/setMinGasPrice.ts +4 -0
  1225. package/actions/test/setNextBlockBaseFeePerGas.ts +4 -0
  1226. package/actions/test/setNextBlockTimestamp.ts +4 -0
  1227. package/actions/test/setNonce.ts +4 -0
  1228. package/actions/test/setRpcUrl.ts +4 -0
  1229. package/actions/test/setStorageAt.ts +4 -0
  1230. package/actions/test/snapshot.ts +4 -0
  1231. package/actions/test/stopImpersonatingAccount.ts +4 -0
  1232. package/actions/wallet/addChain.ts +11 -1
  1233. package/actions/wallet/deployContract.ts +4 -0
  1234. package/actions/wallet/getAddresses.ts +11 -1
  1235. package/actions/wallet/getPermissions.ts +4 -0
  1236. package/actions/wallet/prepareTransactionRequest.ts +34 -6
  1237. package/actions/wallet/requestAddresses.ts +4 -0
  1238. package/actions/wallet/requestPermissions.ts +4 -0
  1239. package/actions/wallet/sendRawTransaction.ts +4 -0
  1240. package/actions/wallet/sendTransaction.ts +38 -6
  1241. package/actions/wallet/signMessage.ts +19 -2
  1242. package/actions/wallet/signTransaction.ts +27 -4
  1243. package/actions/wallet/signTypedData.ts +26 -4
  1244. package/actions/wallet/switchChain.ts +11 -1
  1245. package/actions/wallet/watchAsset.ts +3 -0
  1246. package/actions/wallet/writeContract.ts +8 -0
  1247. package/chains/definitions/arbitrumSepolia.ts +33 -0
  1248. package/chains/definitions/fuse.ts +7 -1
  1249. package/chains/index.ts +1 -0
  1250. package/clients/createClient.ts +4 -0
  1251. package/clients/createPublicClient.ts +9 -1
  1252. package/clients/createTestClient.ts +9 -1
  1253. package/clients/createWalletClient.ts +9 -1
  1254. package/clients/transports/createTransport.ts +3 -0
  1255. package/clients/transports/custom.ts +4 -0
  1256. package/clients/transports/fallback.ts +4 -0
  1257. package/clients/transports/http.ts +11 -1
  1258. package/clients/transports/webSocket.ts +11 -1
  1259. package/contract/index.ts +31 -2
  1260. package/ens/index.ts +8 -3
  1261. package/errors/abi.ts +87 -0
  1262. package/errors/account.ts +3 -0
  1263. package/errors/address.ts +3 -0
  1264. package/errors/base.ts +1 -0
  1265. package/errors/block.ts +3 -0
  1266. package/errors/ccip.ts +11 -0
  1267. package/errors/chain.ts +17 -0
  1268. package/errors/contract.ts +18 -0
  1269. package/errors/cursor.ts +6 -0
  1270. package/errors/data.ts +6 -0
  1271. package/errors/encoding.ts +26 -2
  1272. package/errors/ens.ts +14 -0
  1273. package/errors/estimateGas.ts +3 -0
  1274. package/errors/fee.ts +9 -0
  1275. package/errors/log.ts +3 -0
  1276. package/errors/node.ts +38 -1
  1277. package/errors/request.ts +12 -0
  1278. package/errors/rpc.ts +81 -0
  1279. package/errors/transaction.ts +35 -0
  1280. package/errors/transport.ts +3 -0
  1281. package/errors/utils.ts +2 -0
  1282. package/errors/version.ts +1 -1
  1283. package/index.ts +566 -80
  1284. package/package.json +15 -48
  1285. package/public/index.ts +34 -1
  1286. package/test/index.ts +60 -10
  1287. package/types/eip1193.ts +3 -0
  1288. package/types/misc.ts +6 -0
  1289. package/utils/abi/decodeAbiParameters.ts +70 -5
  1290. package/utils/abi/decodeDeployData.ts +14 -1
  1291. package/utils/abi/decodeErrorResult.ts +20 -3
  1292. package/utils/abi/decodeEventLog.ts +26 -3
  1293. package/utils/abi/decodeFunctionData.ts +19 -4
  1294. package/utils/abi/decodeFunctionResult.ts +19 -2
  1295. package/utils/abi/encodeAbiParameters.ts +87 -7
  1296. package/utils/abi/encodeDeployData.ts +13 -2
  1297. package/utils/abi/encodeErrorResult.ts +24 -5
  1298. package/utils/abi/encodeEventTopics.ts +34 -7
  1299. package/utils/abi/encodeFunctionData.ts +29 -6
  1300. package/utils/abi/encodeFunctionResult.ts +17 -2
  1301. package/utils/abi/encodePacked.ts +35 -5
  1302. package/utils/abi/formatAbiItem.ts +14 -1
  1303. package/utils/abi/formatAbiItemWithArgs.ts +3 -0
  1304. package/utils/abi/getAbiItem.ts +15 -3
  1305. package/utils/address/getAddress.ts +16 -3
  1306. package/utils/address/getContractAddress.ts +27 -8
  1307. package/utils/address/isAddress.ts +3 -0
  1308. package/utils/address/isAddressEqual.ts +8 -2
  1309. package/utils/buildRequest.ts +62 -2
  1310. package/utils/ccip.ts +5 -0
  1311. package/utils/chain.ts +12 -0
  1312. package/utils/contract/extractFunctionParts.ts +10 -0
  1313. package/utils/cursor.ts +15 -0
  1314. package/utils/data/concat.ts +10 -0
  1315. package/utils/data/isBytes.ts +3 -0
  1316. package/utils/data/isBytesEqual.ts +8 -2
  1317. package/utils/data/isHex.ts +3 -0
  1318. package/utils/data/pad.ts +11 -1
  1319. package/utils/data/size.ts +4 -1
  1320. package/utils/data/slice.ts +33 -3
  1321. package/utils/data/trim.ts +3 -0
  1322. package/utils/encoding/fromBytes.ts +44 -8
  1323. package/utils/encoding/fromHex.ts +35 -3
  1324. package/utils/encoding/fromRlp.ts +34 -5
  1325. package/utils/encoding/toBytes.ts +36 -6
  1326. package/utils/encoding/toHex.ts +25 -3
  1327. package/utils/encoding/toRlp.ts +18 -3
  1328. package/utils/ens/avatar/parseAvatarRecord.ts +21 -0
  1329. package/utils/ens/avatar/utils.ts +41 -1
  1330. package/utils/ens/encodeLabelhash.ts +3 -0
  1331. package/utils/ens/encodedLabelToLabelhash.ts +4 -1
  1332. package/utils/ens/errors.ts +3 -0
  1333. package/utils/ens/labelhash.ts +18 -4
  1334. package/utils/ens/namehash.ts +23 -5
  1335. package/utils/ens/normalize.ts +3 -0
  1336. package/utils/ens/packetToBytes.ts +16 -3
  1337. package/utils/errors/getCallError.ts +29 -8
  1338. package/utils/errors/getContractError.ts +35 -19
  1339. package/utils/errors/getEstimateGasError.ts +27 -8
  1340. package/utils/errors/getNodeError.ts +43 -14
  1341. package/utils/errors/getTransactionError.ts +27 -8
  1342. package/utils/formatters/block.ts +6 -1
  1343. package/utils/formatters/extract.ts +3 -0
  1344. package/utils/formatters/feeHistory.ts +3 -0
  1345. package/utils/formatters/formatter.ts +3 -0
  1346. package/utils/formatters/log.ts +3 -0
  1347. package/utils/formatters/transaction.ts +6 -1
  1348. package/utils/formatters/transactionReceipt.ts +8 -1
  1349. package/utils/formatters/transactionRequest.ts +8 -1
  1350. package/utils/hash/getEventSelector.ts +8 -2
  1351. package/utils/hash/getEventSignature.ts +9 -1
  1352. package/utils/hash/getFunctionSelector.ts +15 -4
  1353. package/utils/hash/getFunctionSignature.ts +13 -1
  1354. package/utils/hash/hashFunction.ts +23 -4
  1355. package/utils/hash/isHash.ts +5 -2
  1356. package/utils/hash/keccak256.ts +10 -3
  1357. package/utils/index.ts +241 -45
  1358. package/utils/observe.ts +3 -0
  1359. package/utils/poll.ts +3 -0
  1360. package/utils/promise/createBatchScheduler.ts +5 -0
  1361. package/utils/promise/withCache.ts +4 -0
  1362. package/utils/promise/withRetry.ts +3 -0
  1363. package/utils/promise/withTimeout.ts +4 -0
  1364. package/utils/rpc.ts +27 -3
  1365. package/utils/signature/compactSignatureToHex.ts +29 -0
  1366. package/utils/signature/compactSignatureToSignature.ts +37 -0
  1367. package/utils/signature/hashMessage.ts +16 -3
  1368. package/utils/signature/hashTypedData.ts +46 -4
  1369. package/utils/signature/hexToCompactSignature.ts +28 -0
  1370. package/utils/signature/hexToSignature.ts +7 -1
  1371. package/utils/signature/recoverAddress.ts +4 -0
  1372. package/utils/signature/recoverMessageAddress.ts +12 -2
  1373. package/utils/signature/recoverPublicKey.ts +9 -2
  1374. package/utils/signature/recoverTypedDataAddress.ts +12 -2
  1375. package/utils/signature/signatureToCompactSignature.ts +44 -0
  1376. package/utils/signature/signatureToHex.ts +11 -2
  1377. package/utils/signature/verifyMessage.ts +16 -3
  1378. package/utils/signature/verifyTypedData.ts +12 -2
  1379. package/utils/stringify.ts +4 -0
  1380. package/utils/transaction/assertRequest.ts +27 -4
  1381. package/utils/transaction/assertTransaction.ts +42 -5
  1382. package/utils/transaction/getSerializedTransactionType.ts +13 -3
  1383. package/utils/transaction/getTransactionType.ts +9 -1
  1384. package/utils/transaction/parseTransaction.ts +71 -6
  1385. package/utils/transaction/serializeAccessList.ts +16 -3
  1386. package/utils/transaction/serializeTransaction.ts +48 -5
  1387. package/utils/typedData.ts +22 -4
  1388. package/utils/unit/formatEther.ts +3 -1
  1389. package/utils/unit/formatGwei.ts +3 -1
  1390. package/utils/unit/formatUnits.ts +4 -0
  1391. package/utils/unit/parseEther.ts +4 -1
  1392. package/utils/unit/parseGwei.ts +4 -1
  1393. package/utils/unit/parseUnits.ts +4 -0
@@ -1,9 +1,26 @@
1
+ import { type InvalidAddressErrorType } from '../../errors/address.js';
2
+ import { type InvalidLegacyVErrorType, type InvalidSerializedTransactionErrorType } from '../../errors/transaction.js';
3
+ import type { ErrorType } from '../../errors/utils.js';
1
4
  import type { Hex } from '../../types/misc.js';
2
5
  import type { AccessList, TransactionSerializableEIP1559, TransactionSerializableEIP2930, TransactionSerializableLegacy, TransactionSerialized, TransactionType } from '../../types/transaction.js';
6
+ import { type IsAddressErrorType } from '../address/isAddress.js';
7
+ import { type IsHexErrorType } from '../data/isHex.js';
8
+ import { type PadHexErrorType } from '../data/pad.js';
9
+ import { type HexToBigIntErrorType, type HexToNumberErrorType } from '../encoding/fromHex.js';
10
+ import { type FromRlpErrorType } from '../encoding/fromRlp.js';
3
11
  import type { RecursiveArray } from '../encoding/toRlp.js';
4
- import { type GetSerializedTransactionType } from './getSerializedTransactionType.js';
12
+ import { type AssertTransactionEIP1559ErrorType, type AssertTransactionEIP2930ErrorType, type AssertTransactionLegacyErrorType } from './assertTransaction.js';
13
+ import { type GetSerializedTransactionType, type GetSerializedTransactionTypeErrorType } from './getSerializedTransactionType.js';
5
14
  export type ParseTransactionReturnType<TSerialized extends TransactionSerialized = TransactionSerialized, TType extends TransactionType = GetSerializedTransactionType<TSerialized>> = (TType extends 'eip1559' ? TransactionSerializableEIP1559 : never) | (TType extends 'eip2930' ? TransactionSerializableEIP2930 : never) | (TType extends 'legacy' ? TransactionSerializableLegacy : never);
15
+ export type ParseTransactionErrorType = GetSerializedTransactionTypeErrorType | ParseTransactionEIP1559ErrorType | ParseTransactionEIP2930ErrorType | ParseTransactionLegacyErrorType;
6
16
  export declare function parseTransaction<TSerialized extends TransactionSerialized>(serializedTransaction: TSerialized): ParseTransactionReturnType<TSerialized>;
17
+ type ParseTransactionEIP1559ErrorType = AssertTransactionEIP1559ErrorType | ToTransactionArrayErrorType | HexToBigIntErrorType | HexToNumberErrorType | InvalidLegacyVErrorType | InvalidSerializedTransactionErrorType | IsHexErrorType | ParseEIP155SignatureErrorType | ErrorType;
18
+ type ParseTransactionEIP2930ErrorType = AssertTransactionEIP2930ErrorType | ToTransactionArrayErrorType | HexToBigIntErrorType | HexToNumberErrorType | InvalidLegacyVErrorType | InvalidSerializedTransactionErrorType | IsHexErrorType | ParseEIP155SignatureErrorType | ErrorType;
19
+ type ParseTransactionLegacyErrorType = AssertTransactionLegacyErrorType | FromRlpErrorType | HexToBigIntErrorType | HexToNumberErrorType | InvalidLegacyVErrorType | InvalidSerializedTransactionErrorType | IsHexErrorType | ErrorType;
20
+ export type ToTransactionArrayErrorType = FromRlpErrorType | ErrorType;
7
21
  export declare function toTransactionArray(serializedTransaction: string): import("../encoding/fromRlp.js").FromRlpReturnType<"hex">;
22
+ export type ParseAccessListErrorType = InvalidAddressErrorType | IsAddressErrorType | ErrorType;
8
23
  export declare function parseAccessList(accessList_: RecursiveArray<Hex>): AccessList;
24
+ type ParseEIP155SignatureErrorType = HexToBigIntErrorType | PadHexErrorType | ErrorType;
25
+ export {};
9
26
  //# sourceMappingURL=parseTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseTransaction.d.ts","sourceRoot":"","sources":["../../../utils/transaction/parseTransaction.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,GAAG,EAAa,MAAM,qBAAqB,CAAA;AACzD,OAAO,KAAK,EACV,UAAU,EAGV,8BAA8B,EAC9B,8BAA8B,EAC9B,6BAA6B,EAC7B,qBAAqB,EAGrB,eAAe,EAChB,MAAM,4BAA4B,CAAA;AAOnC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAQ1D,OAAO,EACL,KAAK,4BAA4B,EAElC,MAAM,mCAAmC,CAAA;AAE1C,MAAM,MAAM,0BAA0B,CACpC,WAAW,SAAS,qBAAqB,GAAG,qBAAqB,EACjE,KAAK,SAAS,eAAe,GAAG,4BAA4B,CAAC,WAAW,CAAC,IAEvE,CAAC,KAAK,SAAS,SAAS,GAAG,8BAA8B,GAAG,KAAK,CAAC,GAClE,CAAC,KAAK,SAAS,SAAS,GAAG,8BAA8B,GAAG,KAAK,CAAC,GAClE,CAAC,KAAK,SAAS,QAAQ,GAAG,6BAA6B,GAAG,KAAK,CAAC,CAAA;AAEpE,wBAAgB,gBAAgB,CAAC,WAAW,SAAS,qBAAqB,EACxE,qBAAqB,EAAE,WAAW,GACjC,0BAA0B,CAAC,WAAW,CAAC,CAgBzC;AAoMD,wBAAgB,kBAAkB,CAAC,qBAAqB,EAAE,MAAM,6DAE/D;AAED,wBAAgB,eAAe,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,UAAU,CAa5E"}
1
+ {"version":3,"file":"parseTransaction.d.ts","sourceRoot":"","sources":["../../../utils/transaction/parseTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEL,KAAK,uBAAuB,EAE5B,KAAK,qCAAqC,EAC3C,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,GAAG,EAAa,MAAM,qBAAqB,CAAA;AACzD,OAAO,KAAK,EACV,UAAU,EAGV,8BAA8B,EAC9B,8BAA8B,EAC9B,6BAA6B,EAC7B,qBAAqB,EAGrB,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,KAAK,kBAAkB,EAAa,MAAM,yBAAyB,CAAA;AAC5E,OAAO,EAAE,KAAK,cAAc,EAAS,MAAM,kBAAkB,CAAA;AAC7D,OAAO,EAAE,KAAK,eAAe,EAAU,MAAM,gBAAgB,CAAA;AAE7D,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAG1B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,wBAAwB,CAAA;AACvE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAG1D,OAAO,EACL,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,EAItC,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,KAAK,4BAA4B,EACjC,KAAK,qCAAqC,EAE3C,MAAM,mCAAmC,CAAA;AAE1C,MAAM,MAAM,0BAA0B,CACpC,WAAW,SAAS,qBAAqB,GAAG,qBAAqB,EACjE,KAAK,SAAS,eAAe,GAAG,4BAA4B,CAAC,WAAW,CAAC,IAEvE,CAAC,KAAK,SAAS,SAAS,GAAG,8BAA8B,GAAG,KAAK,CAAC,GAClE,CAAC,KAAK,SAAS,SAAS,GAAG,8BAA8B,GAAG,KAAK,CAAC,GAClE,CAAC,KAAK,SAAS,QAAQ,GAAG,6BAA6B,GAAG,KAAK,CAAC,CAAA;AAEpE,MAAM,MAAM,yBAAyB,GACjC,qCAAqC,GACrC,gCAAgC,GAChC,gCAAgC,GAChC,+BAA+B,CAAA;AAEnC,wBAAgB,gBAAgB,CAAC,WAAW,SAAS,qBAAqB,EACxE,qBAAqB,EAAE,WAAW,GACjC,0BAA0B,CAAC,WAAW,CAAC,CAgBzC;AAED,KAAK,gCAAgC,GACjC,iCAAiC,GACjC,2BAA2B,GAC3B,oBAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACvB,qCAAqC,GACrC,cAAc,GACd,6BAA6B,GAC7B,SAAS,CAAA;AAwEb,KAAK,gCAAgC,GACjC,iCAAiC,GACjC,2BAA2B,GAC3B,oBAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACvB,qCAAqC,GACrC,cAAc,GACd,6BAA6B,GAC7B,SAAS,CAAA;AA0Db,KAAK,+BAA+B,GAChC,gCAAgC,GAChC,gBAAgB,GAChB,oBAAoB,GACpB,oBAAoB,GACpB,uBAAuB,GACvB,qCAAqC,GACrC,cAAc,GACd,SAAS,CAAA;AAsEb,MAAM,MAAM,2BAA2B,GAAG,gBAAgB,GAAG,SAAS,CAAA;AAEtE,wBAAgB,kBAAkB,CAAC,qBAAqB,EAAE,MAAM,6DAE/D;AAED,MAAM,MAAM,wBAAwB,GAChC,uBAAuB,GACvB,kBAAkB,GAClB,SAAS,CAAA;AAEb,wBAAgB,eAAe,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,CAAC,GAAG,UAAU,CAa5E;AAED,KAAK,6BAA6B,GAC9B,oBAAoB,GACpB,eAAe,GACf,SAAS,CAAA"}
@@ -1,5 +1,10 @@
1
+ import { type InvalidAddressErrorType } from '../../errors/address.js';
2
+ import { type InvalidStorageKeySizeErrorType } from '../../errors/transaction.js';
3
+ import type { ErrorType } from '../../errors/utils.js';
1
4
  import type { Hex } from '../../types/misc.js';
2
5
  import type { AccessList } from '../../types/transaction.js';
6
+ import { type IsAddressErrorType } from '../address/isAddress.js';
3
7
  import { type RecursiveArray } from '../encoding/toRlp.js';
8
+ export type SerializeAccessListErrorType = InvalidStorageKeySizeErrorType | InvalidAddressErrorType | IsAddressErrorType | ErrorType;
4
9
  export declare function serializeAccessList(accessList?: AccessList): RecursiveArray<Hex>;
5
10
  //# sourceMappingURL=serializeAccessList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serializeAccessList.d.ts","sourceRoot":"","sources":["../../../utils/transaction/serializeAccessList.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAE5D,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAW1D,wBAAgB,mBAAmB,CACjC,UAAU,CAAC,EAAE,UAAU,GACtB,cAAc,CAAC,GAAG,CAAC,CAoBrB"}
1
+ {"version":3,"file":"serializeAccessList.d.ts","sourceRoot":"","sources":["../../../utils/transaction/serializeAccessList.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,yBAAyB,CAAA;AAChC,OAAO,EAEL,KAAK,8BAA8B,EACpC,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,EAAE,KAAK,kBAAkB,EAAa,MAAM,yBAAyB,CAAA;AAC5E,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,MAAM,MAAM,4BAA4B,GACpC,8BAA8B,GAC9B,uBAAuB,GACvB,kBAAkB,GAClB,SAAS,CAAA;AAWb,wBAAgB,mBAAmB,CACjC,UAAU,CAAC,EAAE,UAAU,GACtB,cAAc,CAAC,GAAG,CAAC,CAoBrB"}
@@ -1,7 +1,19 @@
1
+ import { type InvalidLegacyVErrorType } from '../../errors/transaction.js';
2
+ import type { ErrorType } from '../../errors/utils.js';
1
3
  import type { Signature } from '../../types/misc.js';
2
4
  import type { TransactionSerializable, TransactionSerialized, TransactionType } from '../../types/transaction.js';
3
- import { type GetTransactionType } from './getTransactionType.js';
5
+ import { type ConcatHexErrorType } from '../data/concat.js';
6
+ import { type ToHexErrorType } from '../encoding/toHex.js';
7
+ import { type ToRlpErrorType } from '../encoding/toRlp.js';
8
+ import { type AssertTransactionEIP1559ErrorType, type AssertTransactionEIP2930ErrorType, type AssertTransactionLegacyErrorType } from './assertTransaction.js';
9
+ import { type GetTransactionType, type GetTransationTypeErrorType } from './getTransactionType.js';
10
+ import { type SerializeAccessListErrorType } from './serializeAccessList.js';
4
11
  export type SerializedTransactionReturnType<TTransactionSerializable extends TransactionSerializable = TransactionSerializable, TTransactionType extends TransactionType = GetTransactionType<TTransactionSerializable>> = TransactionSerialized<TTransactionType>;
5
12
  export type SerializeTransactionFn<TTransactionSerializable extends TransactionSerializable = TransactionSerializable> = typeof serializeTransaction<TTransactionSerializable>;
13
+ export type SerializeTransactionErrorType = GetTransationTypeErrorType | SerializeTransactionEIP1559ErrorType | SerializeTransactionEIP2930ErrorType | SerializeTransactionLegacyErrorType | ErrorType;
6
14
  export declare function serializeTransaction<TTransactionSerializable extends TransactionSerializable>(transaction: TTransactionSerializable, signature?: Signature): SerializedTransactionReturnType<TTransactionSerializable>;
15
+ type SerializeTransactionEIP1559ErrorType = AssertTransactionEIP1559ErrorType | ConcatHexErrorType | InvalidLegacyVErrorType | ToHexErrorType | ToRlpErrorType | SerializeAccessListErrorType | ErrorType;
16
+ type SerializeTransactionEIP2930ErrorType = AssertTransactionEIP2930ErrorType | ConcatHexErrorType | InvalidLegacyVErrorType | ToHexErrorType | ToRlpErrorType | SerializeAccessListErrorType | ErrorType;
17
+ type SerializeTransactionLegacyErrorType = AssertTransactionLegacyErrorType | InvalidLegacyVErrorType | ToHexErrorType | ToRlpErrorType | ErrorType;
18
+ export {};
7
19
  //# sourceMappingURL=serializeTransaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"serializeTransaction.d.ts","sourceRoot":"","sources":["../../../utils/transaction/serializeTransaction.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EACV,uBAAuB,EAIvB,qBAAqB,EAIrB,eAAe,EAChB,MAAM,4BAA4B,CAAA;AAWnC,OAAO,EACL,KAAK,kBAAkB,EAExB,MAAM,yBAAyB,CAAA;AAGhC,MAAM,MAAM,+BAA+B,CACzC,wBAAwB,SAAS,uBAAuB,GAAG,uBAAuB,EAClF,gBAAgB,SAAS,eAAe,GAAG,kBAAkB,CAAC,wBAAwB,CAAC,IACrF,qBAAqB,CAAC,gBAAgB,CAAC,CAAA;AAE3C,MAAM,MAAM,sBAAsB,CAChC,wBAAwB,SAAS,uBAAuB,GAAG,uBAAuB,IAChF,OAAO,oBAAoB,CAAC,wBAAwB,CAAC,CAAA;AAEzD,wBAAgB,oBAAoB,CAClC,wBAAwB,SAAS,uBAAuB,EAExD,WAAW,EAAE,wBAAwB,EACrC,SAAS,CAAC,EAAE,SAAS,GACpB,+BAA+B,CAAC,wBAAwB,CAAC,CAmB3D"}
1
+ {"version":3,"file":"serializeTransaction.d.ts","sourceRoot":"","sources":["../../../utils/transaction/serializeTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,uBAAuB,EAC7B,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,KAAK,EACV,uBAAuB,EAIvB,qBAAqB,EAIrB,eAAe,EAChB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,KAAK,kBAAkB,EAAa,MAAM,mBAAmB,CAAA;AAEtE,OAAO,EAAE,KAAK,cAAc,EAAS,MAAM,sBAAsB,CAAA;AACjE,OAAO,EAAE,KAAK,cAAc,EAAS,MAAM,sBAAsB,CAAA;AAEjE,OAAO,EACL,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,gCAAgC,EAItC,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,0BAA0B,EAEhC,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,KAAK,4BAA4B,EAElC,MAAM,0BAA0B,CAAA;AAEjC,MAAM,MAAM,+BAA+B,CACzC,wBAAwB,SAAS,uBAAuB,GAAG,uBAAuB,EAClF,gBAAgB,SAAS,eAAe,GAAG,kBAAkB,CAAC,wBAAwB,CAAC,IACrF,qBAAqB,CAAC,gBAAgB,CAAC,CAAA;AAE3C,MAAM,MAAM,sBAAsB,CAChC,wBAAwB,SAAS,uBAAuB,GAAG,uBAAuB,IAChF,OAAO,oBAAoB,CAAC,wBAAwB,CAAC,CAAA;AAEzD,MAAM,MAAM,6BAA6B,GACrC,0BAA0B,GAC1B,oCAAoC,GACpC,oCAAoC,GACpC,mCAAmC,GACnC,SAAS,CAAA;AAEb,wBAAgB,oBAAoB,CAClC,wBAAwB,SAAS,uBAAuB,EAExD,WAAW,EAAE,wBAAwB,EACrC,SAAS,CAAC,EAAE,SAAS,GACpB,+BAA+B,CAAC,wBAAwB,CAAC,CAmB3D;AAED,KAAK,oCAAoC,GACrC,iCAAiC,GACjC,kBAAkB,GAClB,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,4BAA4B,GAC5B,SAAS,CAAA;AA+Cb,KAAK,oCAAoC,GACrC,iCAAiC,GACjC,kBAAkB,GAClB,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,4BAA4B,GAC5B,SAAS,CAAA;AAqCb,KAAK,mCAAmC,GACpC,gCAAgC,GAChC,uBAAuB,GACvB,cAAc,GACd,cAAc,GACd,SAAS,CAAA"}
@@ -1,12 +1,20 @@
1
1
  import type { TypedData, TypedDataDomain, TypedDataParameter } from 'abitype';
2
2
  import type { Hex } from '../types/misc.js';
3
3
  import type { TypedDataDefinition } from '../types/typedData.js';
4
+ import type { ErrorType } from '../errors/utils.js';
5
+ import { type IsAddressErrorType } from './address/isAddress.js';
6
+ import { type SizeErrorType } from './data/size.js';
7
+ import { type NumberToHexErrorType } from './encoding/toHex.js';
8
+ import { type HashDomainErrorType } from './signature/hashTypedData.js';
9
+ export type ValidateTypedDataErrorType = HashDomainErrorType | IsAddressErrorType | NumberToHexErrorType | SizeErrorType | ErrorType;
4
10
  export declare function validateTypedData<const TTypedData extends TypedData | {
5
11
  [key: string]: unknown;
6
12
  }, TPrimaryType extends string = string>({ domain, message, primaryType, types: types_, }: TypedDataDefinition<TTypedData, TPrimaryType>): void;
13
+ export type GetTypesForEIP712DomainErrorType = ErrorType;
7
14
  export declare function getTypesForEIP712Domain({ domain, }: {
8
15
  domain?: TypedDataDomain;
9
16
  }): TypedDataParameter[];
17
+ export type DomainSeparatorErrorType = GetTypesForEIP712DomainErrorType | HashDomainErrorType | ErrorType;
10
18
  export declare function domainSeparator({ domain }: {
11
19
  domain: TypedDataDomain;
12
20
  }): Hex;
@@ -1 +1 @@
1
- {"version":3,"file":"typedData.d.ts","sourceRoot":"","sources":["../../utils/typedData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,kBAAkB,EAEnB,MAAM,SAAS,CAAA;AAIhB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAQhE,wBAAgB,iBAAiB,CAC/B,KAAK,CAAC,UAAU,SAAS,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EAC/D,YAAY,SAAS,MAAM,GAAG,MAAM,EACpC,EACA,MAAM,EACN,OAAO,EACP,WAAW,EACX,KAAK,EAAE,MAAM,GACd,EAAE,mBAAmB,CAAC,UAAU,EAAE,YAAY,CAAC,QAoD/C;AAED,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,GACP,EAAE;IAAE,MAAM,CAAC,EAAE,eAAe,CAAA;CAAE,GAAG,kBAAkB,EAAE,CAcrD;AAED,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,GAAG,GAAG,CAO5E"}
1
+ {"version":3,"file":"typedData.d.ts","sourceRoot":"","sources":["../../utils/typedData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,kBAAkB,EAEnB,MAAM,SAAS,CAAA;AAIhB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,EAAE,KAAK,kBAAkB,EAAa,MAAM,wBAAwB,CAAA;AAC3E,OAAO,EAAE,KAAK,aAAa,EAAQ,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,KAAK,oBAAoB,EAAe,MAAM,qBAAqB,CAAA;AAE5E,OAAO,EACL,KAAK,mBAAmB,EAEzB,MAAM,8BAA8B,CAAA;AAErC,MAAM,MAAM,0BAA0B,GAClC,mBAAmB,GACnB,kBAAkB,GAClB,oBAAoB,GACpB,aAAa,GACb,SAAS,CAAA;AAEb,wBAAgB,iBAAiB,CAC/B,KAAK,CAAC,UAAU,SAAS,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EAC/D,YAAY,SAAS,MAAM,GAAG,MAAM,EACpC,EACA,MAAM,EACN,OAAO,EACP,WAAW,EACX,KAAK,EAAE,MAAM,GACd,EAAE,mBAAmB,CAAC,UAAU,EAAE,YAAY,CAAC,QAoD/C;AAED,MAAM,MAAM,gCAAgC,GAAG,SAAS,CAAA;AAExD,wBAAgB,uBAAuB,CAAC,EACtC,MAAM,GACP,EAAE;IAAE,MAAM,CAAC,EAAE,eAAe,CAAA;CAAE,GAAG,kBAAkB,EAAE,CAcrD;AAED,MAAM,MAAM,wBAAwB,GAChC,gCAAgC,GAChC,mBAAmB,GACnB,SAAS,CAAA;AAEb,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,GAAG,GAAG,CAO5E"}
@@ -1,2 +1,4 @@
1
+ import { type FormatUnitsErrorType } from './formatUnits.js';
2
+ export type FormatEtherErrorType = FormatUnitsErrorType;
1
3
  export declare function formatEther(wei: bigint, unit?: 'wei' | 'gwei'): string;
2
4
  //# sourceMappingURL=formatEther.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatEther.d.ts","sourceRoot":"","sources":["../../../utils/unit/formatEther.ts"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,KAAK,GAAG,MAAc,UAEpE"}
1
+ {"version":3,"file":"formatEther.d.ts","sourceRoot":"","sources":["../../../utils/unit/formatEther.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,oBAAoB,EAAe,MAAM,kBAAkB,CAAA;AAEzE,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,CAAA;AAEvD,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,KAAK,GAAG,MAAc,UAEpE"}
@@ -1,2 +1,4 @@
1
+ import { type FormatUnitsErrorType } from './formatUnits.js';
2
+ export type FormatGweiErrorType = FormatUnitsErrorType;
1
3
  export declare function formatGwei(wei: bigint, unit?: 'wei'): string;
2
4
  //# sourceMappingURL=formatGwei.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatGwei.d.ts","sourceRoot":"","sources":["../../../utils/unit/formatGwei.ts"],"names":[],"mappings":"AAIA,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,KAAa,UAE1D"}
1
+ {"version":3,"file":"formatGwei.d.ts","sourceRoot":"","sources":["../../../utils/unit/formatGwei.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,oBAAoB,EAAe,MAAM,kBAAkB,CAAA;AAEzE,MAAM,MAAM,mBAAmB,GAAG,oBAAoB,CAAA;AAEtD,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE,KAAa,UAE1D"}
@@ -1,2 +1,4 @@
1
+ import type { ErrorType } from '../../errors/utils.js';
2
+ export type FormatUnitsErrorType = ErrorType;
1
3
  export declare function formatUnits(value: bigint, decimals: number): string;
2
4
  //# sourceMappingURL=formatUnits.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"formatUnits.d.ts","sourceRoot":"","sources":["../../../utils/unit/formatUnits.ts"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAgB1D"}
1
+ {"version":3,"file":"formatUnits.d.ts","sourceRoot":"","sources":["../../../utils/unit/formatUnits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEtD,MAAM,MAAM,oBAAoB,GAAG,SAAS,CAAA;AAE5C,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAgB1D"}
@@ -1,2 +1,5 @@
1
+ import type { ErrorType } from '../../errors/utils.js';
2
+ import { type ParseUnitsErrorType } from './parseUnits.js';
3
+ export type ParseEtherErrorType = ParseUnitsErrorType | ErrorType;
1
4
  export declare function parseEther(ether: string, unit?: 'wei' | 'gwei'): bigint;
2
5
  //# sourceMappingURL=parseEther.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseEther.d.ts","sourceRoot":"","sources":["../../../utils/unit/parseEther.ts"],"names":[],"mappings":"AAIA,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,KAAK,GAAG,MAAc,UAErE"}
1
+ {"version":3,"file":"parseEther.d.ts","sourceRoot":"","sources":["../../../utils/unit/parseEther.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,KAAK,mBAAmB,EAAc,MAAM,iBAAiB,CAAA;AAEtE,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,GAAG,SAAS,CAAA;AAEjE,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,KAAK,GAAG,MAAc,UAErE"}
@@ -1,2 +1,5 @@
1
+ import type { ErrorType } from '../../errors/utils.js';
2
+ import { type ParseUnitsErrorType } from './parseUnits.js';
3
+ export type ParseGweiErrorType = ParseUnitsErrorType | ErrorType;
1
4
  export declare function parseGwei(ether: string, unit?: 'wei'): bigint;
2
5
  //# sourceMappingURL=parseGwei.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseGwei.d.ts","sourceRoot":"","sources":["../../../utils/unit/parseGwei.ts"],"names":[],"mappings":"AAIA,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,KAAa,UAE3D"}
1
+ {"version":3,"file":"parseGwei.d.ts","sourceRoot":"","sources":["../../../utils/unit/parseGwei.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEtD,OAAO,EAAE,KAAK,mBAAmB,EAAc,MAAM,iBAAiB,CAAA;AAEtE,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG,SAAS,CAAA;AAEhE,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,GAAE,KAAa,UAE3D"}
@@ -1,2 +1,4 @@
1
+ import type { ErrorType } from '../../errors/utils.js';
2
+ export type ParseUnitsErrorType = ErrorType;
1
3
  export declare function parseUnits(value: string, decimals: number): bigint;
2
4
  //# sourceMappingURL=parseUnits.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseUnits.d.ts","sourceRoot":"","sources":["../../../utils/unit/parseUnits.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAqCzD"}
1
+ {"version":3,"file":"parseUnits.d.ts","sourceRoot":"","sources":["../../../utils/unit/parseUnits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEtD,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAA;AAE3C,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,UAqCzD"}
package/abi/index.ts CHANGED
@@ -12,14 +12,20 @@ export {
12
12
  } from 'abitype'
13
13
  export {
14
14
  type DecodeAbiParametersReturnType,
15
+ type DecodeAbiParametersErrorType,
15
16
  decodeAbiParameters,
16
17
  } from '../utils/abi/decodeAbiParameters.js'
17
18
  export {
18
19
  type EncodeAbiParametersReturnType,
20
+ type EncodeAbiParametersErrorType,
19
21
  encodeAbiParameters,
20
22
  } from '../utils/abi/encodeAbiParameters.js'
21
23
  export {
22
24
  type GetAbiItemParameters,
25
+ type GetAbiItemErrorType,
23
26
  getAbiItem,
24
27
  } from '../utils/abi/getAbiItem.js'
25
- export { encodePacked } from '../utils/abi/encodePacked.js'
28
+ export {
29
+ type EncodePackedErrorType,
30
+ encodePacked,
31
+ } from '../utils/abi/encodePacked.js'
@@ -1,4 +1,7 @@
1
1
  import { generateMnemonic as generateMnemonic_ } from '@scure/bip39'
2
+ import type { ErrorType } from '../errors/utils.js'
3
+
4
+ export type GenerateMnemonicErrorType = ErrorType
2
5
 
3
6
  /**
4
7
  * @description Generates a random mnemonic phrase with a given wordlist.
@@ -1,7 +1,10 @@
1
1
  import { secp256k1 } from '@noble/curves/secp256k1'
2
2
 
3
+ import type { ErrorType } from '../errors/utils.js'
3
4
  import type { Hex } from '../types/misc.js'
4
- import { toHex } from '../utils/encoding/toHex.js'
5
+ import { type ToHexErrorType, toHex } from '../utils/encoding/toHex.js'
6
+
7
+ export type GeneratePrivateKeyErrorType = ToHexErrorType | ErrorType
5
8
 
6
9
  /**
7
10
  * @description Generates a random private key.
@@ -1,10 +1,19 @@
1
1
  import type { HDKey } from '@scure/bip32'
2
2
 
3
- import { toHex } from '../utils/encoding/toHex.js'
3
+ import { type ToHexErrorType, toHex } from '../utils/encoding/toHex.js'
4
4
 
5
- import { privateKeyToAccount } from './privateKeyToAccount.js'
5
+ import type { ErrorType } from '../errors/utils.js'
6
+ import {
7
+ type PrivateKeyToAccountErrorType,
8
+ privateKeyToAccount,
9
+ } from './privateKeyToAccount.js'
6
10
  import type { HDAccount, HDOptions } from './types.js'
7
11
 
12
+ export type HDKeyToAccountErrorType =
13
+ | PrivateKeyToAccountErrorType
14
+ | ToHexErrorType
15
+ | ErrorType
16
+
8
17
  /**
9
18
  * @description Creates an Account from a HD Key.
10
19
  *
package/accounts/index.ts CHANGED
@@ -10,12 +10,27 @@ export { wordlist as simplifiedChinese } from '@scure/bip39/wordlists/simplified
10
10
  export { wordlist as spanish } from '@scure/bip39/wordlists/spanish'
11
11
  export { wordlist as traditionalChinese } from '@scure/bip39/wordlists/traditional-chinese'
12
12
 
13
- export { generateMnemonic } from './generateMnemonic.js'
14
- export { generatePrivateKey } from './generatePrivateKey.js'
15
- export { hdKeyToAccount } from './hdKeyToAccount.js'
16
- export { mnemonicToAccount } from './mnemonicToAccount.js'
17
- export { privateKeyToAccount } from './privateKeyToAccount.js'
18
- export { toAccount } from './toAccount.js'
13
+ export {
14
+ type GenerateMnemonicErrorType,
15
+ generateMnemonic,
16
+ } from './generateMnemonic.js'
17
+ export {
18
+ type GeneratePrivateKeyErrorType,
19
+ generatePrivateKey,
20
+ } from './generatePrivateKey.js'
21
+ export {
22
+ type HDKeyToAccountErrorType,
23
+ hdKeyToAccount,
24
+ } from './hdKeyToAccount.js'
25
+ export {
26
+ type MnemonicToAccountErrorType,
27
+ mnemonicToAccount,
28
+ } from './mnemonicToAccount.js'
29
+ export {
30
+ type PrivateKeyToAccountErrorType,
31
+ privateKeyToAccount,
32
+ } from './privateKeyToAccount.js'
33
+ export { type ToAccountErrorType, toAccount } from './toAccount.js'
19
34
  export type {
20
35
  Account,
21
36
  AccountSource,
@@ -26,23 +41,43 @@ export type {
26
41
  HDAccount,
27
42
  PrivateKeyAccount,
28
43
  } from './types.js'
29
- export { type SignParameters, type SignReturnType, sign } from './utils/sign.js'
30
- export { signatureToHex } from '../utils/signature/signatureToHex.js'
31
44
  export {
45
+ type SignErrorType,
46
+ type SignParameters,
47
+ type SignReturnType,
48
+ sign,
49
+ } from './utils/sign.js'
50
+ export {
51
+ type SignatureToHexErrorType,
52
+ signatureToHex,
53
+ } from '../utils/signature/signatureToHex.js'
54
+ export {
55
+ type SignMessageErrorType,
32
56
  type SignMessageParameters,
33
57
  type SignMessageReturnType,
34
58
  signMessage,
35
59
  } from './utils/signMessage.js'
36
60
  export {
61
+ type SignTransactionErrorType,
37
62
  type SignTransactionParameters,
38
63
  type SignTransactionReturnType,
39
64
  signTransaction,
40
65
  } from './utils/signTransaction.js'
41
66
  export {
67
+ type SignTypedDataErrorType,
42
68
  type SignTypedDataParameters,
43
69
  type SignTypedDataReturnType,
44
70
  signTypedData,
45
71
  } from './utils/signTypedData.js'
46
- export { parseAccount } from './utils/parseAccount.js'
47
- export { publicKeyToAddress } from './utils/publicKeyToAddress.js'
48
- export { privateKeyToAddress } from './utils/privateKeyToAddress.js'
72
+ export {
73
+ type ParseAccountErrorType,
74
+ parseAccount,
75
+ } from './utils/parseAccount.js'
76
+ export {
77
+ type PublicKeyToAddressErrorType,
78
+ publicKeyToAddress,
79
+ } from './utils/publicKeyToAddress.js'
80
+ export {
81
+ type PrivateKeyToAddressErrorType,
82
+ privateKeyToAddress,
83
+ } from './utils/privateKeyToAddress.js'
@@ -1,9 +1,15 @@
1
1
  import { HDKey } from '@scure/bip32'
2
2
  import { mnemonicToSeedSync } from '@scure/bip39'
3
3
 
4
- import { hdKeyToAccount } from './hdKeyToAccount.js'
4
+ import type { ErrorType } from '../errors/utils.js'
5
+ import {
6
+ type HDKeyToAccountErrorType,
7
+ hdKeyToAccount,
8
+ } from './hdKeyToAccount.js'
5
9
  import type { HDAccount, HDOptions } from './types.js'
6
10
 
11
+ export type MnemonicToAccountErrorType = HDKeyToAccountErrorType | ErrorType
12
+
7
13
  /**
8
14
  * @description Creates an Account from a mnemonic phrase.
9
15
  *
@@ -1,14 +1,33 @@
1
1
  import { secp256k1 } from '@noble/curves/secp256k1'
2
2
 
3
3
  import type { Hex } from '../types/misc.js'
4
- import { toHex } from '../utils/encoding/toHex.js'
4
+ import { type ToHexErrorType, toHex } from '../utils/encoding/toHex.js'
5
5
 
6
- import { toAccount } from './toAccount.js'
6
+ import type { ErrorType } from '../errors/utils.js'
7
+ import { type ToAccountErrorType, toAccount } from './toAccount.js'
7
8
  import type { PrivateKeyAccount } from './types.js'
8
- import { publicKeyToAddress } from './utils/publicKeyToAddress.js'
9
- import { signMessage } from './utils/signMessage.js'
10
- import { signTransaction } from './utils/signTransaction.js'
11
- import { signTypedData } from './utils/signTypedData.js'
9
+ import {
10
+ type PublicKeyToAddressErrorType,
11
+ publicKeyToAddress,
12
+ } from './utils/publicKeyToAddress.js'
13
+ import { type SignMessageErrorType, signMessage } from './utils/signMessage.js'
14
+ import {
15
+ type SignTransactionErrorType,
16
+ signTransaction,
17
+ } from './utils/signTransaction.js'
18
+ import {
19
+ type SignTypedDataErrorType,
20
+ signTypedData,
21
+ } from './utils/signTypedData.js'
22
+
23
+ export type PrivateKeyToAccountErrorType =
24
+ | ToAccountErrorType
25
+ | ToHexErrorType
26
+ | PublicKeyToAddressErrorType
27
+ | SignMessageErrorType
28
+ | SignTransactionErrorType
29
+ | SignTypedDataErrorType
30
+ | ErrorType
12
31
 
13
32
  /**
14
33
  * @description Creates an Account from a private key.
@@ -1,8 +1,15 @@
1
1
  import type { Address } from 'abitype'
2
2
 
3
- import { InvalidAddressError } from '../errors/address.js'
4
- import { isAddress } from '../utils/address/isAddress.js'
3
+ import {
4
+ InvalidAddressError,
5
+ type InvalidAddressErrorType,
6
+ } from '../errors/address.js'
7
+ import {
8
+ type IsAddressErrorType,
9
+ isAddress,
10
+ } from '../utils/address/isAddress.js'
5
11
 
12
+ import type { ErrorType } from '../errors/utils.js'
6
13
  import type {
7
14
  AccountSource,
8
15
  CustomSource,
@@ -14,6 +21,11 @@ type GetAccountReturnType<TAccountSource extends AccountSource> =
14
21
  | (TAccountSource extends Address ? JsonRpcAccount : never)
15
22
  | (TAccountSource extends CustomSource ? LocalAccount : never)
16
23
 
24
+ export type ToAccountErrorType =
25
+ | InvalidAddressErrorType
26
+ | IsAddressErrorType
27
+ | ErrorType
28
+
17
29
  /**
18
30
  * @description Creates an Account from a custom signing implementation.
19
31
  *
@@ -1,7 +1,10 @@
1
1
  import type { Address } from 'abitype'
2
2
 
3
+ import type { ErrorType } from '../../errors/utils.js'
3
4
  import type { Account } from '../types.js'
4
5
 
6
+ export type ParseAccountErrorType = ErrorType
7
+
5
8
  export function parseAccount(account: Address | Account): Account {
6
9
  if (typeof account === 'string') return { address: account, type: 'json-rpc' }
7
10
  return account
@@ -1,9 +1,21 @@
1
1
  import { secp256k1 } from '@noble/curves/secp256k1'
2
2
  import type { Address } from 'abitype'
3
3
 
4
+ import type { ErrorType } from '../../errors/utils.js'
4
5
  import type { Hex } from '../../types/misc.js'
5
- import { bytesToHex } from '../../utils/encoding/toHex.js'
6
- import { publicKeyToAddress } from './publicKeyToAddress.js'
6
+ import {
7
+ type BytesToHexErrorType,
8
+ bytesToHex,
9
+ } from '../../utils/encoding/toHex.js'
10
+ import {
11
+ type PublicKeyToAddressErrorType,
12
+ publicKeyToAddress,
13
+ } from './publicKeyToAddress.js'
14
+
15
+ export type PrivateKeyToAddressErrorType =
16
+ | BytesToHexErrorType
17
+ | PublicKeyToAddressErrorType
18
+ | ErrorType
7
19
 
8
20
  /**
9
21
  * @description Converts an ECDSA private key to an address.
@@ -1,8 +1,20 @@
1
1
  import type { Address } from 'abitype'
2
2
 
3
+ import type { ErrorType } from '../../errors/utils.js'
3
4
  import type { Hex } from '../../types/misc.js'
4
- import { checksumAddress } from '../../utils/address/getAddress.js'
5
- import { keccak256 } from '../../utils/hash/keccak256.js'
5
+ import {
6
+ type ChecksumAddressErrorType,
7
+ checksumAddress,
8
+ } from '../../utils/address/getAddress.js'
9
+ import {
10
+ type Keccak256ErrorType,
11
+ keccak256,
12
+ } from '../../utils/hash/keccak256.js'
13
+
14
+ export type PublicKeyToAddressErrorType =
15
+ | ChecksumAddressErrorType
16
+ | Keccak256ErrorType
17
+ | ErrorType
6
18
 
7
19
  /**
8
20
  * @description Converts an ECDSA public key to an address.
@@ -1,14 +1,18 @@
1
1
  import { secp256k1 } from '@noble/curves/secp256k1'
2
2
 
3
+ import type { ErrorType } from '../../errors/utils.js'
3
4
  import type { Hex, Signature } from '../../types/misc.js'
4
- import { toHex } from '../../utils/encoding/toHex.js'
5
+ import { type ToHexErrorType, toHex } from '../../utils/encoding/toHex.js'
5
6
 
6
7
  export type SignParameters = {
7
8
  hash: Hex
8
9
  privateKey: Hex
9
10
  }
11
+
10
12
  export type SignReturnType = Signature
11
13
 
14
+ export type SignErrorType = ToHexErrorType | ErrorType
15
+
12
16
  /**
13
17
  * @description Signs a hash with a given private key.
14
18
  *
@@ -1,8 +1,15 @@
1
+ import type { ErrorType } from '../../errors/utils.js'
1
2
  import type { Hex, SignableMessage } from '../../types/misc.js'
2
- import { hashMessage } from '../../utils/signature/hashMessage.js'
3
- import { signatureToHex } from '../../utils/signature/signatureToHex.js'
3
+ import {
4
+ type HashMessageErrorType,
5
+ hashMessage,
6
+ } from '../../utils/signature/hashMessage.js'
7
+ import {
8
+ type SignatureToHexErrorType,
9
+ signatureToHex,
10
+ } from '../../utils/signature/signatureToHex.js'
4
11
 
5
- import { sign } from './sign.js'
12
+ import { type SignErrorType, sign } from './sign.js'
6
13
 
7
14
  export type SignMessageParameters = {
8
15
  /** The message to sign. */
@@ -10,8 +17,15 @@ export type SignMessageParameters = {
10
17
  /** The private key to sign with. */
11
18
  privateKey: Hex
12
19
  }
20
+
13
21
  export type SignMessageReturnType = Hex
14
22
 
23
+ export type SignMessageErrorType =
24
+ | SignErrorType
25
+ | HashMessageErrorType
26
+ | SignatureToHexErrorType
27
+ | ErrorType
28
+
15
29
  /**
16
30
  * @description Calculates an Ethereum-specific signature in [EIP-191 format](https://eips.ethereum.org/EIPS/eip-191):
17
31
  * `keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))`.
@@ -1,16 +1,20 @@
1
+ import type { ErrorType } from '../../errors/utils.js'
1
2
  import type { Hex } from '../../types/misc.js'
2
3
  import type {
3
4
  TransactionSerializable,
4
5
  TransactionSerialized,
5
6
  } from '../../types/transaction.js'
6
- import { keccak256 } from '../../utils/hash/keccak256.js'
7
+ import {
8
+ type Keccak256ErrorType,
9
+ keccak256,
10
+ } from '../../utils/hash/keccak256.js'
7
11
  import type { GetTransactionType } from '../../utils/transaction/getTransactionType.js'
8
12
  import {
9
13
  type SerializeTransactionFn,
10
14
  serializeTransaction,
11
15
  } from '../../utils/transaction/serializeTransaction.js'
12
16
 
13
- import { sign } from './sign.js'
17
+ import { type SignErrorType, sign } from './sign.js'
14
18
 
15
19
  export type SignTransactionParameters<
16
20
  TTransactionSerializable extends TransactionSerializable = TransactionSerializable,
@@ -21,10 +25,16 @@ export type SignTransactionParameters<
21
25
  TransactionSerializable & TTransactionSerializable
22
26
  >
23
27
  }
28
+
24
29
  export type SignTransactionReturnType<
25
30
  TTransactionSerializable extends TransactionSerializable = TransactionSerializable,
26
31
  > = TransactionSerialized<GetTransactionType<TTransactionSerializable>>
27
32
 
33
+ export type SignTransactionErrorType =
34
+ | Keccak256ErrorType
35
+ | SignErrorType
36
+ | ErrorType
37
+
28
38
  export async function signTransaction<
29
39
  TTransactionSerializable extends TransactionSerializable,
30
40
  >({
@@ -3,12 +3,17 @@ import type { TypedData } from 'abitype'
3
3
  import type { Hex } from '../../types/misc.js'
4
4
  import type { TypedDataDefinition } from '../../types/typedData.js'
5
5
  import {
6
+ type HashTypedDataErrorType,
6
7
  type HashTypedDataParameters,
7
8
  hashTypedData,
8
9
  } from '../../utils/signature/hashTypedData.js'
9
- import { signatureToHex } from '../../utils/signature/signatureToHex.js'
10
+ import {
11
+ type SignatureToHexErrorType,
12
+ signatureToHex,
13
+ } from '../../utils/signature/signatureToHex.js'
10
14
 
11
- import { sign } from './sign.js'
15
+ import type { ErrorType } from '../../errors/utils.js'
16
+ import { type SignErrorType, sign } from './sign.js'
12
17
 
13
18
  export type SignTypedDataParameters<
14
19
  TTypedData extends TypedData | { [key: string]: unknown } = TypedData,
@@ -20,6 +25,12 @@ export type SignTypedDataParameters<
20
25
 
21
26
  export type SignTypedDataReturnType = Hex
22
27
 
28
+ export type SignTypedDataErrorType =
29
+ | HashTypedDataErrorType
30
+ | SignErrorType
31
+ | SignatureToHexErrorType
32
+ | ErrorType
33
+
23
34
  /**
24
35
  * @description Signs typed data and calculates an Ethereum-specific signature in [EIP-191 format](https://eips.ethereum.org/EIPS/eip-191):
25
36
  * `keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))`.