viem 0.3.3 → 0.3.5

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 (672) hide show
  1. package/README.md +6 -0
  2. package/dist/cjs/actions/public/call.js +97 -10
  3. package/dist/cjs/actions/public/call.js.map +1 -1
  4. package/dist/cjs/actions/public/simulateContract.js +1 -0
  5. package/dist/cjs/actions/public/simulateContract.js.map +1 -1
  6. package/dist/cjs/chains.js +1 -24
  7. package/dist/cjs/chains.js.map +1 -1
  8. package/dist/cjs/clients/createPublicClient.js +12 -9
  9. package/dist/cjs/clients/createPublicClient.js.map +1 -1
  10. package/dist/cjs/clients/transports/fallback.js +1 -1
  11. package/dist/cjs/clients/transports/fallback.js.map +1 -1
  12. package/dist/cjs/constants/contract.js +5 -0
  13. package/dist/cjs/constants/contract.js.map +1 -0
  14. package/dist/cjs/constants/index.js +3 -1
  15. package/dist/cjs/constants/index.js.map +1 -1
  16. package/dist/cjs/errors/chain.js +13 -1
  17. package/dist/cjs/errors/chain.js.map +1 -1
  18. package/dist/cjs/errors/contract.js +1 -1
  19. package/dist/cjs/errors/contract.js.map +1 -1
  20. package/dist/cjs/errors/encoding.js +13 -1
  21. package/dist/cjs/errors/encoding.js.map +1 -1
  22. package/dist/cjs/errors/index.js +5 -2
  23. package/dist/cjs/errors/index.js.map +1 -1
  24. package/dist/cjs/errors/version.js +1 -1
  25. package/dist/cjs/index.js +5 -4
  26. package/dist/cjs/index.js.map +1 -1
  27. package/dist/cjs/utils/encoding/fromBytes.js +29 -12
  28. package/dist/cjs/utils/encoding/fromBytes.js.map +1 -1
  29. package/dist/cjs/utils/encoding/fromHex.js +32 -10
  30. package/dist/cjs/utils/encoding/fromHex.js.map +1 -1
  31. package/dist/cjs/utils/encoding/toBytes.js +31 -15
  32. package/dist/cjs/utils/encoding/toBytes.js.map +1 -1
  33. package/dist/cjs/utils/encoding/toHex.js +31 -20
  34. package/dist/cjs/utils/encoding/toHex.js.map +1 -1
  35. package/dist/cjs/utils/errors/getContractError.js +7 -5
  36. package/dist/cjs/utils/errors/getContractError.js.map +1 -1
  37. package/dist/cjs/utils/promise/createBatchScheduler.js +47 -0
  38. package/dist/cjs/utils/promise/createBatchScheduler.js.map +1 -0
  39. package/dist/cjs/utils/promise/index.js +3 -1
  40. package/dist/cjs/utils/promise/index.js.map +1 -1
  41. package/dist/esm/actions/public/call.js +91 -4
  42. package/dist/esm/actions/public/call.js.map +1 -1
  43. package/dist/esm/actions/public/simulateContract.js +1 -0
  44. package/dist/esm/actions/public/simulateContract.js.map +1 -1
  45. package/dist/esm/clients/createPublicClient.js +12 -9
  46. package/dist/esm/clients/createPublicClient.js.map +1 -1
  47. package/dist/esm/clients/transports/fallback.js +1 -1
  48. package/dist/esm/clients/transports/fallback.js.map +1 -1
  49. package/dist/esm/constants/contract.js +2 -0
  50. package/dist/esm/constants/contract.js.map +1 -0
  51. package/dist/esm/constants/index.js +1 -0
  52. package/dist/esm/constants/index.js.map +1 -1
  53. package/dist/esm/errors/chain.js +11 -0
  54. package/dist/esm/errors/chain.js.map +1 -1
  55. package/dist/esm/errors/contract.js +1 -1
  56. package/dist/esm/errors/contract.js.map +1 -1
  57. package/dist/esm/errors/encoding.js +11 -0
  58. package/dist/esm/errors/encoding.js.map +1 -1
  59. package/dist/esm/errors/index.js +2 -2
  60. package/dist/esm/errors/index.js.map +1 -1
  61. package/dist/esm/errors/version.js +1 -1
  62. package/dist/esm/index.js +1 -1
  63. package/dist/esm/index.js.map +1 -1
  64. package/dist/esm/utils/encoding/fromBytes.js +30 -13
  65. package/dist/esm/utils/encoding/fromBytes.js.map +1 -1
  66. package/dist/esm/utils/encoding/fromHex.js +31 -10
  67. package/dist/esm/utils/encoding/fromHex.js.map +1 -1
  68. package/dist/esm/utils/encoding/toBytes.js +31 -15
  69. package/dist/esm/utils/encoding/toBytes.js.map +1 -1
  70. package/dist/esm/utils/encoding/toHex.js +28 -17
  71. package/dist/esm/utils/encoding/toHex.js.map +1 -1
  72. package/dist/esm/utils/errors/getContractError.js +7 -5
  73. package/dist/esm/utils/errors/getContractError.js.map +1 -1
  74. package/dist/esm/utils/promise/createBatchScheduler.js +43 -0
  75. package/dist/esm/utils/promise/createBatchScheduler.js.map +1 -0
  76. package/dist/esm/utils/promise/index.js +1 -0
  77. package/dist/esm/utils/promise/index.js.map +1 -1
  78. package/package.json +1 -1
  79. package/src/actions/public/call.ts +141 -7
  80. package/src/actions/public/simulateContract.ts +2 -1
  81. package/src/clients/createPublicClient.ts +27 -9
  82. package/src/clients/transports/fallback.ts +1 -1
  83. package/src/constants/contract.ts +1 -0
  84. package/src/constants/index.ts +2 -0
  85. package/src/errors/chain.ts +8 -0
  86. package/src/errors/contract.ts +1 -1
  87. package/src/errors/encoding.ts +9 -0
  88. package/src/errors/index.ts +2 -0
  89. package/src/errors/version.ts +1 -1
  90. package/src/index.ts +1 -0
  91. package/src/types/eip1193.ts +1 -1
  92. package/src/utils/encoding/fromBytes.ts +147 -18
  93. package/src/utils/encoding/fromHex.ts +162 -19
  94. package/src/utils/encoding/toBytes.ts +148 -18
  95. package/src/utils/encoding/toHex.ts +151 -26
  96. package/src/utils/errors/getContractError.ts +9 -5
  97. package/src/utils/promise/createBatchScheduler.ts +82 -0
  98. package/src/utils/promise/index.ts +1 -0
  99. package/dist/types/abi.d.ts +0 -3
  100. package/dist/types/abi.d.ts.map +0 -1
  101. package/dist/types/accounts/generateMnemonic.d.ts +0 -9
  102. package/dist/types/accounts/generateMnemonic.d.ts.map +0 -1
  103. package/dist/types/accounts/generatePrivateKey.d.ts +0 -8
  104. package/dist/types/accounts/generatePrivateKey.d.ts.map +0 -1
  105. package/dist/types/accounts/hdKeyToAccount.d.ts +0 -9
  106. package/dist/types/accounts/hdKeyToAccount.d.ts.map +0 -1
  107. package/dist/types/accounts/index.d.ts +0 -21
  108. package/dist/types/accounts/index.d.ts.map +0 -1
  109. package/dist/types/accounts/mnemonicToAccount.d.ts +0 -8
  110. package/dist/types/accounts/mnemonicToAccount.d.ts.map +0 -1
  111. package/dist/types/accounts/privateKeyToAccount.d.ts +0 -9
  112. package/dist/types/accounts/privateKeyToAccount.d.ts.map +0 -1
  113. package/dist/types/accounts/toAccount.d.ts +0 -11
  114. package/dist/types/accounts/toAccount.d.ts.map +0 -1
  115. package/dist/types/accounts/types.d.ts +0 -45
  116. package/dist/types/accounts/types.d.ts.map +0 -1
  117. package/dist/types/accounts/utils/index.d.ts +0 -10
  118. package/dist/types/accounts/utils/index.d.ts.map +0 -1
  119. package/dist/types/accounts/utils/parseAccount.d.ts +0 -4
  120. package/dist/types/accounts/utils/parseAccount.d.ts.map +0 -1
  121. package/dist/types/accounts/utils/publicKeyToAddress.d.ts +0 -10
  122. package/dist/types/accounts/utils/publicKeyToAddress.d.ts.map +0 -1
  123. package/dist/types/accounts/utils/sign.d.ts +0 -16
  124. package/dist/types/accounts/utils/sign.d.ts.map +0 -1
  125. package/dist/types/accounts/utils/signMessage.d.ts +0 -16
  126. package/dist/types/accounts/utils/signMessage.d.ts.map +0 -1
  127. package/dist/types/accounts/utils/signTransaction.d.ts +0 -9
  128. package/dist/types/accounts/utils/signTransaction.d.ts.map +0 -1
  129. package/dist/types/accounts/utils/signTypedData.d.ts +0 -19
  130. package/dist/types/accounts/utils/signTypedData.d.ts.map +0 -1
  131. package/dist/types/accounts/utils/signatureToHex.d.ts +0 -3
  132. package/dist/types/accounts/utils/signatureToHex.d.ts.map +0 -1
  133. package/dist/types/accounts/wordlists/czech.d.ts +0 -2
  134. package/dist/types/accounts/wordlists/czech.d.ts.map +0 -1
  135. package/dist/types/accounts/wordlists/english.d.ts +0 -2
  136. package/dist/types/accounts/wordlists/english.d.ts.map +0 -1
  137. package/dist/types/accounts/wordlists/french.d.ts +0 -2
  138. package/dist/types/accounts/wordlists/french.d.ts.map +0 -1
  139. package/dist/types/accounts/wordlists/italian.d.ts +0 -2
  140. package/dist/types/accounts/wordlists/italian.d.ts.map +0 -1
  141. package/dist/types/accounts/wordlists/japanese.d.ts +0 -2
  142. package/dist/types/accounts/wordlists/japanese.d.ts.map +0 -1
  143. package/dist/types/accounts/wordlists/korean.d.ts +0 -2
  144. package/dist/types/accounts/wordlists/korean.d.ts.map +0 -1
  145. package/dist/types/accounts/wordlists/simplifiedChinese.d.ts +0 -2
  146. package/dist/types/accounts/wordlists/simplifiedChinese.d.ts.map +0 -1
  147. package/dist/types/accounts/wordlists/spanish.d.ts +0 -2
  148. package/dist/types/accounts/wordlists/spanish.d.ts.map +0 -1
  149. package/dist/types/accounts/wordlists/traditionalChinese.d.ts +0 -2
  150. package/dist/types/accounts/wordlists/traditionalChinese.d.ts.map +0 -1
  151. package/dist/types/actions/ens/getEnsAddress.d.ts +0 -40
  152. package/dist/types/actions/ens/getEnsAddress.d.ts.map +0 -1
  153. package/dist/types/actions/ens/getEnsAvatar.d.ts +0 -38
  154. package/dist/types/actions/ens/getEnsAvatar.d.ts.map +0 -1
  155. package/dist/types/actions/ens/getEnsName.d.ts +0 -38
  156. package/dist/types/actions/ens/getEnsName.d.ts.map +0 -1
  157. package/dist/types/actions/ens/getEnsResolver.d.ts +0 -40
  158. package/dist/types/actions/ens/getEnsResolver.d.ts.map +0 -1
  159. package/dist/types/actions/ens/getEnsText.d.ts +0 -43
  160. package/dist/types/actions/ens/getEnsText.d.ts.map +0 -1
  161. package/dist/types/actions/ens/index.d.ts +0 -6
  162. package/dist/types/actions/ens/index.d.ts.map +0 -1
  163. package/dist/types/actions/getContract.d.ts +0 -261
  164. package/dist/types/actions/getContract.d.ts.map +0 -1
  165. package/dist/types/actions/index.d.ts +0 -11
  166. package/dist/types/actions/index.d.ts.map +0 -1
  167. package/dist/types/actions/public/call.d.ts +0 -48
  168. package/dist/types/actions/public/call.d.ts.map +0 -1
  169. package/dist/types/actions/public/createBlockFilter.d.ts +0 -26
  170. package/dist/types/actions/public/createBlockFilter.d.ts.map +0 -1
  171. package/dist/types/actions/public/createContractEventFilter.d.ts +0 -41
  172. package/dist/types/actions/public/createContractEventFilter.d.ts.map +0 -1
  173. package/dist/types/actions/public/createEventFilter.d.ts +0 -46
  174. package/dist/types/actions/public/createEventFilter.d.ts.map +0 -1
  175. package/dist/types/actions/public/createPendingTransactionFilter.d.ts +0 -26
  176. package/dist/types/actions/public/createPendingTransactionFilter.d.ts.map +0 -1
  177. package/dist/types/actions/public/estimateContractGas.d.ts +0 -35
  178. package/dist/types/actions/public/estimateContractGas.d.ts.map +0 -1
  179. package/dist/types/actions/public/estimateGas.d.ts +0 -45
  180. package/dist/types/actions/public/estimateGas.d.ts.map +0 -1
  181. package/dist/types/actions/public/getBalance.d.ts +0 -52
  182. package/dist/types/actions/public/getBalance.d.ts.map +0 -1
  183. package/dist/types/actions/public/getBlock.d.ts +0 -52
  184. package/dist/types/actions/public/getBlock.d.ts.map +0 -1
  185. package/dist/types/actions/public/getBlockNumber.d.ts +0 -54
  186. package/dist/types/actions/public/getBlockNumber.d.ts.map +0 -1
  187. package/dist/types/actions/public/getBlockTransactionCount.d.ts +0 -44
  188. package/dist/types/actions/public/getBlockTransactionCount.d.ts.map +0 -1
  189. package/dist/types/actions/public/getBytecode.d.ts +0 -37
  190. package/dist/types/actions/public/getBytecode.d.ts.map +0 -1
  191. package/dist/types/actions/public/getChainId.d.ts +0 -26
  192. package/dist/types/actions/public/getChainId.d.ts.map +0 -1
  193. package/dist/types/actions/public/getFeeHistory.d.ts +0 -50
  194. package/dist/types/actions/public/getFeeHistory.d.ts.map +0 -1
  195. package/dist/types/actions/public/getFilterChanges.d.ts +0 -91
  196. package/dist/types/actions/public/getFilterChanges.d.ts.map +0 -1
  197. package/dist/types/actions/public/getFilterLogs.d.ts +0 -36
  198. package/dist/types/actions/public/getFilterLogs.d.ts.map +0 -1
  199. package/dist/types/actions/public/getGasPrice.d.ts +0 -25
  200. package/dist/types/actions/public/getGasPrice.d.ts.map +0 -1
  201. package/dist/types/actions/public/getLogs.d.ts +0 -49
  202. package/dist/types/actions/public/getLogs.d.ts.map +0 -1
  203. package/dist/types/actions/public/getStorageAt.d.ts +0 -39
  204. package/dist/types/actions/public/getStorageAt.d.ts.map +0 -1
  205. package/dist/types/actions/public/getTransaction.d.ts +0 -62
  206. package/dist/types/actions/public/getTransaction.d.ts.map +0 -1
  207. package/dist/types/actions/public/getTransactionConfirmations.d.ts +0 -39
  208. package/dist/types/actions/public/getTransactionConfirmations.d.ts.map +0 -1
  209. package/dist/types/actions/public/getTransactionCount.d.ts +0 -40
  210. package/dist/types/actions/public/getTransactionCount.d.ts.map +0 -1
  211. package/dist/types/actions/public/getTransactionReceipt.d.ts +0 -34
  212. package/dist/types/actions/public/getTransactionReceipt.d.ts.map +0 -1
  213. package/dist/types/actions/public/index.d.ts +0 -67
  214. package/dist/types/actions/public/index.d.ts.map +0 -1
  215. package/dist/types/actions/public/multicall.d.ts +0 -52
  216. package/dist/types/actions/public/multicall.d.ts.map +0 -1
  217. package/dist/types/actions/public/readContract.d.ts +0 -39
  218. package/dist/types/actions/public/readContract.d.ts.map +0 -1
  219. package/dist/types/actions/public/simulateContract.d.ts +0 -47
  220. package/dist/types/actions/public/simulateContract.d.ts.map +0 -1
  221. package/dist/types/actions/public/uninstallFilter.d.ts +0 -32
  222. package/dist/types/actions/public/uninstallFilter.d.ts.map +0 -1
  223. package/dist/types/actions/public/waitForTransactionReceipt.d.ts +0 -69
  224. package/dist/types/actions/public/waitForTransactionReceipt.d.ts.map +0 -1
  225. package/dist/types/actions/public/watchBlockNumber.d.ts +0 -57
  226. package/dist/types/actions/public/watchBlockNumber.d.ts.map +0 -1
  227. package/dist/types/actions/public/watchBlocks.d.ts +0 -64
  228. package/dist/types/actions/public/watchBlocks.d.ts.map +0 -1
  229. package/dist/types/actions/public/watchContractEvent.d.ts +0 -55
  230. package/dist/types/actions/public/watchContractEvent.d.ts.map +0 -1
  231. package/dist/types/actions/public/watchEvent.d.ts +0 -61
  232. package/dist/types/actions/public/watchEvent.d.ts.map +0 -1
  233. package/dist/types/actions/public/watchPendingTransactions.d.ts +0 -71
  234. package/dist/types/actions/public/watchPendingTransactions.d.ts.map +0 -1
  235. package/dist/types/actions/test/dropTransaction.d.ts +0 -30
  236. package/dist/types/actions/test/dropTransaction.d.ts.map +0 -1
  237. package/dist/types/actions/test/getAutomine.d.ts +0 -25
  238. package/dist/types/actions/test/getAutomine.d.ts.map +0 -1
  239. package/dist/types/actions/test/getTxpoolContent.d.ts +0 -31
  240. package/dist/types/actions/test/getTxpoolContent.d.ts.map +0 -1
  241. package/dist/types/actions/test/getTxpoolStatus.d.ts +0 -28
  242. package/dist/types/actions/test/getTxpoolStatus.d.ts.map +0 -1
  243. package/dist/types/actions/test/impersonateAccount.d.ts +0 -30
  244. package/dist/types/actions/test/impersonateAccount.d.ts.map +0 -1
  245. package/dist/types/actions/test/increaseTime.d.ts +0 -30
  246. package/dist/types/actions/test/increaseTime.d.ts.map +0 -1
  247. package/dist/types/actions/test/index.d.ts +0 -52
  248. package/dist/types/actions/test/index.d.ts.map +0 -1
  249. package/dist/types/actions/test/inspectTxpool.d.ts +0 -28
  250. package/dist/types/actions/test/inspectTxpool.d.ts.map +0 -1
  251. package/dist/types/actions/test/mine.d.ts +0 -30
  252. package/dist/types/actions/test/mine.d.ts.map +0 -1
  253. package/dist/types/actions/test/removeBlockTimestampInterval.d.ts +0 -23
  254. package/dist/types/actions/test/removeBlockTimestampInterval.d.ts.map +0 -1
  255. package/dist/types/actions/test/reset.d.ts +0 -30
  256. package/dist/types/actions/test/reset.d.ts.map +0 -1
  257. package/dist/types/actions/test/revert.d.ts +0 -28
  258. package/dist/types/actions/test/revert.d.ts.map +0 -1
  259. package/dist/types/actions/test/sendUnsignedTransaction.d.ts +0 -31
  260. package/dist/types/actions/test/sendUnsignedTransaction.d.ts.map +0 -1
  261. package/dist/types/actions/test/setAutomine.d.ts +0 -23
  262. package/dist/types/actions/test/setAutomine.d.ts.map +0 -1
  263. package/dist/types/actions/test/setBalance.d.ts +0 -33
  264. package/dist/types/actions/test/setBalance.d.ts.map +0 -1
  265. package/dist/types/actions/test/setBlockGasLimit.d.ts +0 -28
  266. package/dist/types/actions/test/setBlockGasLimit.d.ts.map +0 -1
  267. package/dist/types/actions/test/setBlockTimestampInterval.d.ts +0 -28
  268. package/dist/types/actions/test/setBlockTimestampInterval.d.ts.map +0 -1
  269. package/dist/types/actions/test/setCode.d.ts +0 -33
  270. package/dist/types/actions/test/setCode.d.ts.map +0 -1
  271. package/dist/types/actions/test/setCoinbase.d.ts +0 -30
  272. package/dist/types/actions/test/setCoinbase.d.ts.map +0 -1
  273. package/dist/types/actions/test/setIntervalMining.d.ts +0 -28
  274. package/dist/types/actions/test/setIntervalMining.d.ts.map +0 -1
  275. package/dist/types/actions/test/setLoggingEnabled.d.ts +0 -23
  276. package/dist/types/actions/test/setLoggingEnabled.d.ts.map +0 -1
  277. package/dist/types/actions/test/setMinGasPrice.d.ts +0 -32
  278. package/dist/types/actions/test/setMinGasPrice.d.ts.map +0 -1
  279. package/dist/types/actions/test/setNextBlockBaseFeePerGas.d.ts +0 -30
  280. package/dist/types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +0 -1
  281. package/dist/types/actions/test/setNextBlockTimestamp.d.ts +0 -28
  282. package/dist/types/actions/test/setNextBlockTimestamp.d.ts.map +0 -1
  283. package/dist/types/actions/test/setNonce.d.ts +0 -33
  284. package/dist/types/actions/test/setNonce.d.ts.map +0 -1
  285. package/dist/types/actions/test/setRpcUrl.d.ts +0 -24
  286. package/dist/types/actions/test/setRpcUrl.d.ts.map +0 -1
  287. package/dist/types/actions/test/setStorageAt.d.ts +0 -36
  288. package/dist/types/actions/test/setStorageAt.d.ts.map +0 -1
  289. package/dist/types/actions/test/snapshot.d.ts +0 -23
  290. package/dist/types/actions/test/snapshot.d.ts.map +0 -1
  291. package/dist/types/actions/test/stopImpersonatingAccount.d.ts +0 -30
  292. package/dist/types/actions/test/stopImpersonatingAccount.d.ts.map +0 -1
  293. package/dist/types/actions/wallet/addChain.d.ts +0 -27
  294. package/dist/types/actions/wallet/addChain.d.ts.map +0 -1
  295. package/dist/types/actions/wallet/deployContract.d.ts +0 -38
  296. package/dist/types/actions/wallet/deployContract.d.ts.map +0 -1
  297. package/dist/types/actions/wallet/getAddresses.d.ts +0 -26
  298. package/dist/types/actions/wallet/getAddresses.d.ts.map +0 -1
  299. package/dist/types/actions/wallet/getPermissions.d.ts +0 -26
  300. package/dist/types/actions/wallet/getPermissions.d.ts.map +0 -1
  301. package/dist/types/actions/wallet/index.d.ts +0 -27
  302. package/dist/types/actions/wallet/index.d.ts.map +0 -1
  303. package/dist/types/actions/wallet/requestAddresses.d.ts +0 -30
  304. package/dist/types/actions/wallet/requestAddresses.d.ts.map +0 -1
  305. package/dist/types/actions/wallet/requestPermissions.d.ts +0 -34
  306. package/dist/types/actions/wallet/requestPermissions.d.ts.map +0 -1
  307. package/dist/types/actions/wallet/sendTransaction.d.ts +0 -53
  308. package/dist/types/actions/wallet/sendTransaction.d.ts.map +0 -1
  309. package/dist/types/actions/wallet/signMessage.d.ts +0 -54
  310. package/dist/types/actions/wallet/signMessage.d.ts.map +0 -1
  311. package/dist/types/actions/wallet/signTypedData.d.ts +0 -109
  312. package/dist/types/actions/wallet/signTypedData.d.ts.map +0 -1
  313. package/dist/types/actions/wallet/switchChain.d.ts +0 -28
  314. package/dist/types/actions/wallet/switchChain.d.ts.map +0 -1
  315. package/dist/types/actions/wallet/watchAsset.d.ts +0 -35
  316. package/dist/types/actions/wallet/watchAsset.d.ts.map +0 -1
  317. package/dist/types/actions/wallet/writeContract.d.ts +0 -58
  318. package/dist/types/actions/wallet/writeContract.d.ts.map +0 -1
  319. package/dist/types/adapters/ethers.d.ts +0 -27
  320. package/dist/types/adapters/ethers.d.ts.map +0 -1
  321. package/dist/types/chains.d.ts +0 -2487
  322. package/dist/types/chains.d.ts.map +0 -1
  323. package/dist/types/clients/createClient.d.ts +0 -43
  324. package/dist/types/clients/createClient.d.ts.map +0 -1
  325. package/dist/types/clients/createPublicClient.d.ts +0 -28
  326. package/dist/types/clients/createPublicClient.d.ts.map +0 -1
  327. package/dist/types/clients/createTestClient.d.ts +0 -38
  328. package/dist/types/clients/createTestClient.d.ts.map +0 -1
  329. package/dist/types/clients/createWalletClient.d.ts +0 -51
  330. package/dist/types/clients/createWalletClient.d.ts.map +0 -1
  331. package/dist/types/clients/decorators/index.d.ts +0 -7
  332. package/dist/types/clients/decorators/index.d.ts.map +0 -1
  333. package/dist/types/clients/decorators/public.d.ts +0 -1043
  334. package/dist/types/clients/decorators/public.d.ts.map +0 -1
  335. package/dist/types/clients/decorators/test.d.ts +0 -572
  336. package/dist/types/clients/decorators/test.d.ts.map +0 -1
  337. package/dist/types/clients/decorators/wallet.d.ts +0 -436
  338. package/dist/types/clients/decorators/wallet.d.ts.map +0 -1
  339. package/dist/types/clients/index.d.ts +0 -11
  340. package/dist/types/clients/index.d.ts.map +0 -1
  341. package/dist/types/clients/transports/createTransport.d.ts +0 -37
  342. package/dist/types/clients/transports/createTransport.d.ts.map +0 -1
  343. package/dist/types/clients/transports/custom.d.ts +0 -21
  344. package/dist/types/clients/transports/custom.d.ts.map +0 -1
  345. package/dist/types/clients/transports/fallback.d.ts +0 -75
  346. package/dist/types/clients/transports/fallback.d.ts.map +0 -1
  347. package/dist/types/clients/transports/http.d.ts +0 -29
  348. package/dist/types/clients/transports/http.d.ts.map +0 -1
  349. package/dist/types/clients/transports/index.d.ts +0 -11
  350. package/dist/types/clients/transports/index.d.ts.map +0 -1
  351. package/dist/types/clients/transports/webSocket.d.ts +0 -46
  352. package/dist/types/clients/transports/webSocket.d.ts.map +0 -1
  353. package/dist/types/constants/abis.d.ts +0 -79
  354. package/dist/types/constants/abis.d.ts.map +0 -1
  355. package/dist/types/constants/index.d.ts +0 -4
  356. package/dist/types/constants/index.d.ts.map +0 -1
  357. package/dist/types/constants/solidity.d.ts +0 -15
  358. package/dist/types/constants/solidity.d.ts.map +0 -1
  359. package/dist/types/constants/unit.d.ts +0 -13
  360. package/dist/types/constants/unit.d.ts.map +0 -1
  361. package/dist/types/contract.d.ts +0 -7
  362. package/dist/types/contract.d.ts.map +0 -1
  363. package/dist/types/ens.d.ts +0 -5
  364. package/dist/types/ens.d.ts.map +0 -1
  365. package/dist/types/errors/abi.d.ts +0 -165
  366. package/dist/types/errors/abi.d.ts.map +0 -1
  367. package/dist/types/errors/account.d.ts +0 -8
  368. package/dist/types/errors/account.d.ts.map +0 -1
  369. package/dist/types/errors/address.d.ts +0 -8
  370. package/dist/types/errors/address.d.ts.map +0 -1
  371. package/dist/types/errors/base.d.ts +0 -22
  372. package/dist/types/errors/base.d.ts.map +0 -1
  373. package/dist/types/errors/block.d.ts +0 -10
  374. package/dist/types/errors/block.d.ts.map +0 -1
  375. package/dist/types/errors/chain.d.ts +0 -31
  376. package/dist/types/errors/chain.d.ts.map +0 -1
  377. package/dist/types/errors/contract.d.ts +0 -58
  378. package/dist/types/errors/contract.d.ts.map +0 -1
  379. package/dist/types/errors/data.d.ts +0 -10
  380. package/dist/types/errors/data.d.ts.map +0 -1
  381. package/dist/types/errors/encoding.d.ts +0 -46
  382. package/dist/types/errors/encoding.d.ts.map +0 -1
  383. package/dist/types/errors/ens.d.ts +0 -26
  384. package/dist/types/errors/ens.d.ts.map +0 -1
  385. package/dist/types/errors/estimateGas.d.ts +0 -13
  386. package/dist/types/errors/estimateGas.d.ts.map +0 -1
  387. package/dist/types/errors/index.d.ts +0 -18
  388. package/dist/types/errors/index.d.ts.map +0 -1
  389. package/dist/types/errors/log.d.ts +0 -6
  390. package/dist/types/errors/log.d.ts.map +0 -1
  391. package/dist/types/errors/node.d.ts +0 -105
  392. package/dist/types/errors/node.d.ts.map +0 -1
  393. package/dist/types/errors/request.d.ts +0 -53
  394. package/dist/types/errors/request.d.ts.map +0 -1
  395. package/dist/types/errors/rpc.d.ts +0 -199
  396. package/dist/types/errors/rpc.d.ts.map +0 -1
  397. package/dist/types/errors/transaction.d.ts +0 -75
  398. package/dist/types/errors/transaction.d.ts.map +0 -1
  399. package/dist/types/errors/transport.d.ts +0 -5
  400. package/dist/types/errors/transport.d.ts.map +0 -1
  401. package/dist/types/errors/utils.d.ts +0 -5
  402. package/dist/types/errors/utils.d.ts.map +0 -1
  403. package/dist/types/errors/version.d.ts +0 -2
  404. package/dist/types/errors/version.d.ts.map +0 -1
  405. package/dist/types/ethers.d.ts +0 -2
  406. package/dist/types/ethers.d.ts.map +0 -1
  407. package/dist/types/index.d.ts +0 -12
  408. package/dist/types/index.d.ts.map +0 -1
  409. package/dist/types/public.d.ts +0 -3
  410. package/dist/types/public.d.ts.map +0 -1
  411. package/dist/types/test.d.ts +0 -3
  412. package/dist/types/test.d.ts.map +0 -1
  413. package/dist/types/types/account.d.ts +0 -11
  414. package/dist/types/types/account.d.ts.map +0 -1
  415. package/dist/types/types/block.d.ts +0 -62
  416. package/dist/types/types/block.d.ts.map +0 -1
  417. package/dist/types/types/chain.d.ts +0 -17
  418. package/dist/types/types/chain.d.ts.map +0 -1
  419. package/dist/types/types/contract.d.ts +0 -159
  420. package/dist/types/types/contract.d.ts.map +0 -1
  421. package/dist/types/types/eip1193.d.ts +0 -1002
  422. package/dist/types/types/eip1193.d.ts.map +0 -1
  423. package/dist/types/types/ens.d.ts +0 -5
  424. package/dist/types/types/ens.d.ts.map +0 -1
  425. package/dist/types/types/fee.d.ts +0 -28
  426. package/dist/types/types/fee.d.ts.map +0 -1
  427. package/dist/types/types/filter.d.ts +0 -27
  428. package/dist/types/types/filter.d.ts.map +0 -1
  429. package/dist/types/types/formatter.d.ts +0 -13
  430. package/dist/types/types/formatter.d.ts.map +0 -1
  431. package/dist/types/types/index.d.ts +0 -19
  432. package/dist/types/types/index.d.ts.map +0 -1
  433. package/dist/types/types/log.d.ts +0 -42
  434. package/dist/types/types/log.d.ts.map +0 -1
  435. package/dist/types/types/misc.d.ts +0 -10
  436. package/dist/types/types/misc.d.ts.map +0 -1
  437. package/dist/types/types/multicall.d.ts +0 -48
  438. package/dist/types/types/multicall.d.ts.map +0 -1
  439. package/dist/types/types/rpc.d.ts +0 -19
  440. package/dist/types/types/rpc.d.ts.map +0 -1
  441. package/dist/types/types/transaction.d.ts +0 -132
  442. package/dist/types/types/transaction.d.ts.map +0 -1
  443. package/dist/types/types/transport.d.ts +0 -3
  444. package/dist/types/types/transport.d.ts.map +0 -1
  445. package/dist/types/types/typedData.d.ts +0 -47
  446. package/dist/types/types/typedData.d.ts.map +0 -1
  447. package/dist/types/types/utils.d.ts +0 -156
  448. package/dist/types/types/utils.d.ts.map +0 -1
  449. package/dist/types/types/window.d.ts +0 -7
  450. package/dist/types/types/window.d.ts.map +0 -1
  451. package/dist/types/utils/abi/decodeAbiParameters.d.ts +0 -5
  452. package/dist/types/utils/abi/decodeAbiParameters.d.ts.map +0 -1
  453. package/dist/types/utils/abi/decodeDeployData.d.ts +0 -13
  454. package/dist/types/utils/abi/decodeDeployData.d.ts.map +0 -1
  455. package/dist/types/utils/abi/decodeErrorResult.d.ts +0 -13
  456. package/dist/types/utils/abi/decodeErrorResult.d.ts.map +0 -1
  457. package/dist/types/utils/abi/decodeEventLog.d.ts +0 -13
  458. package/dist/types/utils/abi/decodeEventLog.d.ts.map +0 -1
  459. package/dist/types/utils/abi/decodeFunctionData.d.ts +0 -14
  460. package/dist/types/utils/abi/decodeFunctionData.d.ts.map +0 -1
  461. package/dist/types/utils/abi/decodeFunctionResult.d.ts +0 -10
  462. package/dist/types/utils/abi/decodeFunctionResult.d.ts.map +0 -1
  463. package/dist/types/utils/abi/encodeAbiParameters.d.ts +0 -9
  464. package/dist/types/utils/abi/encodeAbiParameters.d.ts.map +0 -1
  465. package/dist/types/utils/abi/encodeDeployData.d.ts +0 -8
  466. package/dist/types/utils/abi/encodeDeployData.d.ts.map +0 -1
  467. package/dist/types/utils/abi/encodeErrorResult.d.ts +0 -8
  468. package/dist/types/utils/abi/encodeErrorResult.d.ts.map +0 -1
  469. package/dist/types/utils/abi/encodeEventTopics.d.ts +0 -9
  470. package/dist/types/utils/abi/encodeEventTopics.d.ts.map +0 -1
  471. package/dist/types/utils/abi/encodeFunctionData.d.ts +0 -8
  472. package/dist/types/utils/abi/encodeFunctionData.d.ts.map +0 -1
  473. package/dist/types/utils/abi/encodeFunctionResult.d.ts +0 -9
  474. package/dist/types/utils/abi/encodeFunctionResult.d.ts.map +0 -1
  475. package/dist/types/utils/abi/encodePacked.d.ts +0 -11
  476. package/dist/types/utils/abi/encodePacked.d.ts.map +0 -1
  477. package/dist/types/utils/abi/formatAbiItem.d.ts +0 -9
  478. package/dist/types/utils/abi/formatAbiItem.d.ts.map +0 -1
  479. package/dist/types/utils/abi/formatAbiItemWithArgs.d.ts +0 -8
  480. package/dist/types/utils/abi/formatAbiItemWithArgs.d.ts.map +0 -1
  481. package/dist/types/utils/abi/getAbiItem.d.ts +0 -12
  482. package/dist/types/utils/abi/getAbiItem.d.ts.map +0 -1
  483. package/dist/types/utils/abi/index.d.ts +0 -30
  484. package/dist/types/utils/abi/index.d.ts.map +0 -1
  485. package/dist/types/utils/accounts.d.ts +0 -3
  486. package/dist/types/utils/accounts.d.ts.map +0 -1
  487. package/dist/types/utils/address/getAddress.d.ts +0 -4
  488. package/dist/types/utils/address/getAddress.d.ts.map +0 -1
  489. package/dist/types/utils/address/getContractAddress.d.ts +0 -19
  490. package/dist/types/utils/address/getContractAddress.d.ts.map +0 -1
  491. package/dist/types/utils/address/index.d.ts +0 -6
  492. package/dist/types/utils/address/index.d.ts.map +0 -1
  493. package/dist/types/utils/address/isAddress.d.ts +0 -3
  494. package/dist/types/utils/address/isAddress.d.ts.map +0 -1
  495. package/dist/types/utils/address/isAddressEqual.d.ts +0 -3
  496. package/dist/types/utils/address/isAddressEqual.d.ts.map +0 -1
  497. package/dist/types/utils/buildRequest.d.ts +0 -6
  498. package/dist/types/utils/buildRequest.d.ts.map +0 -1
  499. package/dist/types/utils/chain.d.ts +0 -8
  500. package/dist/types/utils/chain.d.ts.map +0 -1
  501. package/dist/types/utils/contract/extractFunctionParts.d.ts +0 -13
  502. package/dist/types/utils/contract/extractFunctionParts.d.ts.map +0 -1
  503. package/dist/types/utils/contract/index.d.ts +0 -2
  504. package/dist/types/utils/contract/index.d.ts.map +0 -1
  505. package/dist/types/utils/data/concat.d.ts +0 -6
  506. package/dist/types/utils/data/concat.d.ts.map +0 -1
  507. package/dist/types/utils/data/index.d.ts +0 -8
  508. package/dist/types/utils/data/index.d.ts.map +0 -1
  509. package/dist/types/utils/data/isBytes.d.ts +0 -3
  510. package/dist/types/utils/data/isBytes.d.ts.map +0 -1
  511. package/dist/types/utils/data/isHex.d.ts +0 -3
  512. package/dist/types/utils/data/isHex.d.ts.map +0 -1
  513. package/dist/types/utils/data/pad.d.ts +0 -11
  514. package/dist/types/utils/data/pad.d.ts.map +0 -1
  515. package/dist/types/utils/data/size.d.ts +0 -9
  516. package/dist/types/utils/data/size.d.ts.map +0 -1
  517. package/dist/types/utils/data/slice.d.ts +0 -27
  518. package/dist/types/utils/data/slice.d.ts.map +0 -1
  519. package/dist/types/utils/data/trim.d.ts +0 -8
  520. package/dist/types/utils/data/trim.d.ts.map +0 -1
  521. package/dist/types/utils/encoding/fromBytes.d.ts +0 -25
  522. package/dist/types/utils/encoding/fromBytes.d.ts.map +0 -1
  523. package/dist/types/utils/encoding/fromHex.d.ts +0 -28
  524. package/dist/types/utils/encoding/fromHex.d.ts.map +0 -1
  525. package/dist/types/utils/encoding/fromRlp.d.ts +0 -6
  526. package/dist/types/utils/encoding/fromRlp.d.ts.map +0 -1
  527. package/dist/types/utils/encoding/index.d.ts +0 -8
  528. package/dist/types/utils/encoding/index.d.ts.map +0 -1
  529. package/dist/types/utils/encoding/toBytes.d.ts +0 -21
  530. package/dist/types/utils/encoding/toBytes.d.ts.map +0 -1
  531. package/dist/types/utils/encoding/toHex.d.ts +0 -29
  532. package/dist/types/utils/encoding/toHex.d.ts.map +0 -1
  533. package/dist/types/utils/encoding/toRlp.d.ts +0 -8
  534. package/dist/types/utils/encoding/toRlp.d.ts.map +0 -1
  535. package/dist/types/utils/ens/avatar/index.d.ts +0 -2
  536. package/dist/types/utils/ens/avatar/index.d.ts.map +0 -1
  537. package/dist/types/utils/ens/avatar/parseAvatarRecord.d.ts +0 -7
  538. package/dist/types/utils/ens/avatar/parseAvatarRecord.d.ts.map +0 -1
  539. package/dist/types/utils/ens/avatar/utils.d.ts +0 -34
  540. package/dist/types/utils/ens/avatar/utils.d.ts.map +0 -1
  541. package/dist/types/utils/ens/index.d.ts +0 -5
  542. package/dist/types/utils/ens/index.d.ts.map +0 -1
  543. package/dist/types/utils/ens/labelhash.d.ts +0 -11
  544. package/dist/types/utils/ens/labelhash.d.ts.map +0 -1
  545. package/dist/types/utils/ens/namehash.d.ts +0 -13
  546. package/dist/types/utils/ens/namehash.d.ts.map +0 -1
  547. package/dist/types/utils/ens/normalize.d.ts +0 -12
  548. package/dist/types/utils/ens/normalize.d.ts.map +0 -1
  549. package/dist/types/utils/ens/packetToBytes.d.ts +0 -3
  550. package/dist/types/utils/ens/packetToBytes.d.ts.map +0 -1
  551. package/dist/types/utils/errors/getCallError.d.ts +0 -9
  552. package/dist/types/utils/errors/getCallError.d.ts.map +0 -1
  553. package/dist/types/utils/errors/getContractError.d.ts +0 -13
  554. package/dist/types/utils/errors/getContractError.d.ts.map +0 -1
  555. package/dist/types/utils/errors/getEstimateGasError.d.ts +0 -10
  556. package/dist/types/utils/errors/getEstimateGasError.d.ts.map +0 -1
  557. package/dist/types/utils/errors/getNodeError.d.ts +0 -6
  558. package/dist/types/utils/errors/getNodeError.d.ts.map +0 -1
  559. package/dist/types/utils/errors/getTransactionError.d.ts +0 -10
  560. package/dist/types/utils/errors/getTransactionError.d.ts.map +0 -1
  561. package/dist/types/utils/errors/index.d.ts +0 -6
  562. package/dist/types/utils/errors/index.d.ts.map +0 -1
  563. package/dist/types/utils/filters/createFilterRequestScope.d.ts +0 -16
  564. package/dist/types/utils/filters/createFilterRequestScope.d.ts.map +0 -1
  565. package/dist/types/utils/formatters/block.d.ts +0 -14
  566. package/dist/types/utils/formatters/block.d.ts.map +0 -1
  567. package/dist/types/utils/formatters/extract.d.ts +0 -8
  568. package/dist/types/utils/formatters/extract.d.ts.map +0 -1
  569. package/dist/types/utils/formatters/feeHistory.d.ts +0 -3
  570. package/dist/types/utils/formatters/feeHistory.d.ts.map +0 -1
  571. package/dist/types/utils/formatters/format.d.ts +0 -36
  572. package/dist/types/utils/formatters/format.d.ts.map +0 -1
  573. package/dist/types/utils/formatters/index.d.ts +0 -13
  574. package/dist/types/utils/formatters/index.d.ts.map +0 -1
  575. package/dist/types/utils/formatters/log.d.ts +0 -16
  576. package/dist/types/utils/formatters/log.d.ts.map +0 -1
  577. package/dist/types/utils/formatters/transaction.d.ts +0 -19
  578. package/dist/types/utils/formatters/transaction.d.ts.map +0 -1
  579. package/dist/types/utils/formatters/transactionReceipt.d.ts +0 -14
  580. package/dist/types/utils/formatters/transactionReceipt.d.ts.map +0 -1
  581. package/dist/types/utils/formatters/transactionRequest.d.ts +0 -14
  582. package/dist/types/utils/formatters/transactionRequest.d.ts.map +0 -1
  583. package/dist/types/utils/hash/getEventSelector.d.ts +0 -3
  584. package/dist/types/utils/hash/getEventSelector.d.ts.map +0 -1
  585. package/dist/types/utils/hash/getFunctionSelector.d.ts +0 -2
  586. package/dist/types/utils/hash/getFunctionSelector.d.ts.map +0 -1
  587. package/dist/types/utils/hash/hashFunction.d.ts +0 -2
  588. package/dist/types/utils/hash/hashFunction.d.ts.map +0 -1
  589. package/dist/types/utils/hash/index.d.ts +0 -5
  590. package/dist/types/utils/hash/index.d.ts.map +0 -1
  591. package/dist/types/utils/hash/isHash.d.ts +0 -3
  592. package/dist/types/utils/hash/isHash.d.ts.map +0 -1
  593. package/dist/types/utils/hash/keccak256.d.ts +0 -6
  594. package/dist/types/utils/hash/keccak256.d.ts.map +0 -1
  595. package/dist/types/utils/index.d.ts +0 -26
  596. package/dist/types/utils/index.d.ts.map +0 -1
  597. package/dist/types/utils/observe.d.ts +0 -17
  598. package/dist/types/utils/observe.d.ts.map +0 -1
  599. package/dist/types/utils/poll.d.ts +0 -13
  600. package/dist/types/utils/poll.d.ts.map +0 -1
  601. package/dist/types/utils/promise/index.d.ts +0 -4
  602. package/dist/types/utils/promise/index.d.ts.map +0 -1
  603. package/dist/types/utils/promise/withCache.d.ts +0 -36
  604. package/dist/types/utils/promise/withCache.d.ts.map +0 -1
  605. package/dist/types/utils/promise/withRetry.d.ts +0 -12
  606. package/dist/types/utils/promise/withRetry.d.ts.map +0 -1
  607. package/dist/types/utils/promise/withTimeout.d.ts +0 -8
  608. package/dist/types/utils/promise/withTimeout.d.ts.map +0 -1
  609. package/dist/types/utils/regex.d.ts +0 -4
  610. package/dist/types/utils/regex.d.ts.map +0 -1
  611. package/dist/types/utils/rpc.d.ts +0 -64
  612. package/dist/types/utils/rpc.d.ts.map +0 -1
  613. package/dist/types/utils/signature/hashMessage.d.ts +0 -6
  614. package/dist/types/utils/signature/hashMessage.d.ts.map +0 -1
  615. package/dist/types/utils/signature/hashTypedData.d.ts +0 -10
  616. package/dist/types/utils/signature/hashTypedData.d.ts.map +0 -1
  617. package/dist/types/utils/signature/index.d.ts +0 -16
  618. package/dist/types/utils/signature/index.d.ts.map +0 -1
  619. package/dist/types/utils/signature/recoverAddress.d.ts +0 -8
  620. package/dist/types/utils/signature/recoverAddress.d.ts.map +0 -1
  621. package/dist/types/utils/signature/recoverMessageAddress.d.ts +0 -8
  622. package/dist/types/utils/signature/recoverMessageAddress.d.ts.map +0 -1
  623. package/dist/types/utils/signature/recoverPublicKey.d.ts +0 -8
  624. package/dist/types/utils/signature/recoverPublicKey.d.ts.map +0 -1
  625. package/dist/types/utils/signature/recoverTypedDataAddress.d.ts +0 -12
  626. package/dist/types/utils/signature/recoverTypedDataAddress.d.ts.map +0 -1
  627. package/dist/types/utils/signature/verifyMessage.d.ts +0 -10
  628. package/dist/types/utils/signature/verifyMessage.d.ts.map +0 -1
  629. package/dist/types/utils/signature/verifyTypedData.d.ts +0 -13
  630. package/dist/types/utils/signature/verifyTypedData.d.ts.map +0 -1
  631. package/dist/types/utils/stringify.d.ts +0 -2
  632. package/dist/types/utils/stringify.d.ts.map +0 -1
  633. package/dist/types/utils/transaction/assertRequest.d.ts +0 -4
  634. package/dist/types/utils/transaction/assertRequest.d.ts.map +0 -1
  635. package/dist/types/utils/transaction/assertTransaction.d.ts +0 -5
  636. package/dist/types/utils/transaction/assertTransaction.d.ts.map +0 -1
  637. package/dist/types/utils/transaction/getSerializedTransactionType.d.ts +0 -4
  638. package/dist/types/utils/transaction/getSerializedTransactionType.d.ts.map +0 -1
  639. package/dist/types/utils/transaction/getTransactionType.d.ts +0 -4
  640. package/dist/types/utils/transaction/getTransactionType.d.ts.map +0 -1
  641. package/dist/types/utils/transaction/index.d.ts +0 -10
  642. package/dist/types/utils/transaction/index.d.ts.map +0 -1
  643. package/dist/types/utils/transaction/parseTransaction.d.ts +0 -5
  644. package/dist/types/utils/transaction/parseTransaction.d.ts.map +0 -1
  645. package/dist/types/utils/transaction/prepareRequest.d.ts +0 -21
  646. package/dist/types/utils/transaction/prepareRequest.d.ts.map +0 -1
  647. package/dist/types/utils/transaction/serializeTransaction.d.ts +0 -5
  648. package/dist/types/utils/transaction/serializeTransaction.d.ts.map +0 -1
  649. package/dist/types/utils/typedData.d.ts +0 -6
  650. package/dist/types/utils/typedData.d.ts.map +0 -1
  651. package/dist/types/utils/uid.d.ts +0 -2
  652. package/dist/types/utils/uid.d.ts.map +0 -1
  653. package/dist/types/utils/unit/formatEther.d.ts +0 -2
  654. package/dist/types/utils/unit/formatEther.d.ts.map +0 -1
  655. package/dist/types/utils/unit/formatGwei.d.ts +0 -2
  656. package/dist/types/utils/unit/formatGwei.d.ts.map +0 -1
  657. package/dist/types/utils/unit/formatUnits.d.ts +0 -2
  658. package/dist/types/utils/unit/formatUnits.d.ts.map +0 -1
  659. package/dist/types/utils/unit/index.d.ts +0 -7
  660. package/dist/types/utils/unit/index.d.ts.map +0 -1
  661. package/dist/types/utils/unit/parseEther.d.ts +0 -2
  662. package/dist/types/utils/unit/parseEther.d.ts.map +0 -1
  663. package/dist/types/utils/unit/parseGwei.d.ts +0 -2
  664. package/dist/types/utils/unit/parseGwei.d.ts.map +0 -1
  665. package/dist/types/utils/unit/parseUnits.d.ts +0 -2
  666. package/dist/types/utils/unit/parseUnits.d.ts.map +0 -1
  667. package/dist/types/utils/wait.d.ts +0 -2
  668. package/dist/types/utils/wait.d.ts.map +0 -1
  669. package/dist/types/wallet.d.ts +0 -3
  670. package/dist/types/wallet.d.ts.map +0 -1
  671. package/dist/types/window.d.ts +0 -2
  672. package/dist/types/window.d.ts.map +0 -1
@@ -1,156 +0,0 @@
1
- /**
2
- * Filters out all members of {@link T} that are not {@link P}
3
- *
4
- * @param T - Items to filter
5
- * @param P - Type to filter out
6
- * @returns Filtered items
7
- *
8
- * @example
9
- * type Result = Filter<['a', 'b', 'c'], 'b'>
10
- * // ^? type Result = ['a', 'c']
11
- */
12
- export type Filter<T extends readonly unknown[], P, Acc extends readonly unknown[] = []> = T extends readonly [infer F, ...infer Rest extends readonly unknown[]] ? [F] extends [P] ? Filter<Rest, P, [...Acc, F]> : Filter<Rest, P, Acc> : readonly [...Acc];
13
- /**
14
- * @description Checks if {@link T} can be narrowed further than {@link U}
15
- * @param T - Type to check
16
- * @param U - Type to against
17
- * @example
18
- * type Result = IsNarrowable<'foo', string>
19
- * // ^? true
20
- */
21
- export type IsNarrowable<T, U> = IsNever<(T extends U ? true : false) & (U extends T ? false : true)> extends true ? false : true;
22
- /**
23
- * @description Checks if {@link T} is `never`
24
- * @param T - Type to check
25
- * @example
26
- * type Result = IsNever<never>
27
- * // ^? type Result = true
28
- */
29
- export type IsNever<T> = [T] extends [never] ? true : false;
30
- /**
31
- * @description Evaluates boolean "or" condition for {@link T} properties.
32
- * @param T - Type to check
33
- *
34
- * * @example
35
- * type Result = Or<[false, true, false]>
36
- * // ^? type Result = true
37
- *
38
- * @example
39
- * type Result = Or<[false, false, false]>
40
- * // ^? type Result = false
41
- */
42
- export type Or<T extends readonly unknown[]> = T extends readonly [
43
- infer Head,
44
- ...infer Tail
45
- ] ? Head extends true ? true : Or<Tail> : false;
46
- /**
47
- * @description Checks if {@link T} is `undefined`
48
- * @param T - Type to check
49
- * @example
50
- * type Result = IsUndefined<undefined>
51
- * // ^? type Result = true
52
- */
53
- export type IsUndefined<T> = [undefined] extends [T] ? true : false;
54
- /**
55
- * Excludes empty attributes from T if TMaybeExclude is true.
56
- *
57
- * @example
58
- * type Result = MaybeExcludeEmpty<{ a: string, b: number, c: [] }, true>
59
- * // ^? type Result = { a: string, b: number }
60
- * @example
61
- * type Result = MaybeExcludeEmpty<{ a: string, b: number, c: [] }, false>
62
- * // ^? type Result = { a: string, b: number, c: [] }
63
- * @example
64
- * type Result = MaybeExcludeEmpty<{ a: string, b: number, c: undefined }, true>
65
- * // ^? type Result = { a: string, b: number }
66
- */
67
- export type MaybeExcludeEmpty<T, TMaybeExclude extends boolean> = TMaybeExclude extends true ? Exclude<T, [] | null | undefined> : T;
68
- export type MaybePromise<T> = T | Promise<T>;
69
- /**
70
- * @description Makes attributes on the type T required if TRequired is true.
71
- *
72
- * @example
73
- * MaybeRequired<{ a: string, b?: number }, true>
74
- * => { a: string, b: number }
75
- *
76
- * MaybeRequired<{ a: string, b?: number }, false>
77
- * => { a: string, b?: number }
78
- */
79
- export type MaybeRequired<T, TRequired extends boolean> = TRequired extends true ? Required<T> : T;
80
- /**
81
- * @description Merges the intersection properties of T and U.
82
- *
83
- * @example
84
- * MergeIntersectionProperties<{ a: string, b: number }, { a: number, c: boolean }>
85
- * => { a: number, b: number }
86
- */
87
- export type MergeIntersectionProperties<T, U> = {
88
- [K in keyof T as K extends keyof U ? U[K] extends void ? never : K : K]: K extends keyof U ? U[K] : T[K];
89
- };
90
- /**
91
- * @description Makes nullable properties from T optional.
92
- *
93
- * @example
94
- * OptionalNullable<{ a: string | undefined, c: number }>
95
- * => { a?: string | undefined, c: number }
96
- */
97
- export type OptionalNullable<T> = {
98
- [K in keyof T as T[K] extends NonNullable<unknown> ? K : never]: T[K];
99
- } & {
100
- [K in keyof T as T[K] extends NonNullable<unknown> ? never : K]?: T[K];
101
- };
102
- /**
103
- * @description Constructs a type by excluding `undefined` from `T`.
104
- *
105
- * @example
106
- * NoUndefined<string | undefined>
107
- * => string
108
- */
109
- export type NoUndefined<T> = T extends undefined ? never : T;
110
- /**
111
- * @description Creates a type that is a partial of T, but with the required keys K.
112
- *
113
- * @example
114
- * PartialBy<{ a: string, b: number }, 'a'>
115
- * => { a?: string, b: number }
116
- */
117
- export type PartialBy<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
118
- /**
119
- * @description Combines members of an intersection into a readable type.
120
- *
121
- * @link https://twitter.com/mattpocockuk/status/1622730173446557697?s=20&t=NdpAcmEFXY01xkqU3KO0Mg
122
- * @example
123
- * Prettify<{ a: string } | { b: string } | { c: number, d: bigint }>
124
- * => { a: string, b: string, c: number, d: bigint }
125
- */
126
- export type Prettify<T> = {
127
- [K in keyof T]: T[K];
128
- } & {};
129
- type TrimLeft<T, Chars extends string = ' '> = T extends `${Chars}${infer R}` ? TrimLeft<R> : T;
130
- type TrimRight<T, Chars extends string = ' '> = T extends `${infer R}${Chars}` ? TrimRight<R> : T;
131
- /**
132
- * @description Creates a type with required keys K from T.
133
- *
134
- * @example
135
- * type Result = RequiredBy<{ a?: string, b?: number, c: number }, 'a' | 'c'>
136
- * // ^? { a: string, b?: number, c: number }
137
- */
138
- export type RequiredBy<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
139
- /**
140
- * @description Trims empty space from type T.
141
- *
142
- * @example
143
- * Trim<' lol '>
144
- * => 'lol'
145
- */
146
- export type Trim<T, Chars extends string = ' '> = TrimLeft<TrimRight<T, Chars>, Chars>;
147
- /**
148
- * @description Creates a type that extracts the values of T.
149
- *
150
- * @example
151
- * ValueOf<{ a: string, b: number }>
152
- * => string | number
153
- */
154
- export type ValueOf<T> = T[keyof T];
155
- export {};
156
- //# sourceMappingURL=utils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/types/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,MAAM,MAAM,MAAM,CAChB,CAAC,SAAS,SAAS,OAAO,EAAE,EAC5B,CAAC,EACD,GAAG,SAAS,SAAS,OAAO,EAAE,GAAG,EAAE,IACjC,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM,IAAI,SAAS,SAAS,OAAO,EAAE,CAAC,GACtE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,GACb,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,CAAC,CAAC,GAC5B,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,GACtB,SAAS,CAAC,GAAG,GAAG,CAAC,CAAA;AAErB;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,IAAI,OAAO,CACtC,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,GAAG,KAAK,GAAG,IAAI,CAAC,CAC5D,SAAS,IAAI,GACV,KAAK,GACL,IAAI,CAAA;AAER;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,IAAI,GAAG,KAAK,CAAA;AAE3D;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,EAAE,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,IAAK,CAAC,SAAS,SAAS;IACjE,MAAM,IAAI;IACV,GAAG,MAAM,IAAI;CACd,GACG,IAAI,SAAS,IAAI,GACf,IAAI,GACJ,EAAE,CAAC,IAAI,CAAC,GACV,KAAK,CAAA;AAET;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,KAAK,CAAA;AAEnE;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,iBAAiB,CAC3B,CAAC,EACD,aAAa,SAAS,OAAO,IAC3B,aAAa,SAAS,IAAI,GAAG,OAAO,CAAC,CAAC,EAAE,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC,GAAG,CAAC,CAAA;AAEtE,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;AAE5C;;;;;;;;;GASG;AACH,MAAM,MAAM,aAAa,CAAC,CAAC,EAAE,SAAS,SAAS,OAAO,IAAI,SAAS,SAAS,IAAI,GAC5E,QAAQ,CAAC,CAAC,CAAC,GACX,CAAC,CAAA;AAEL;;;;;;GAMG;AACH,MAAM,MAAM,2BAA2B,CAAC,CAAC,EAAE,CAAC,IAAI;KAC7C,CAAC,IACA,MAAM,CAAC,IAAI,CAAC,SAAS,MAAM,CAAC,GACxB,CAAC,CAAC,CAAC,CAAC,SAAS,IAAI,GACf,KAAK,GACL,CAAC,GACH,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAC1C,CAAA;AAED;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;KAC/B,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,WAAW,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC;CACtE,GAAG;KACD,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,WAAW,CAAC,OAAO,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;CACvE,CAAA;AAED;;;;;;GAMG;AACH,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAA;AAE5D;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAE9E;;;;;;;GAOG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI;KACvB,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACrB,GAAG,EAAE,CAAA;AAEN,KAAK,QAAQ,CAAC,CAAC,EAAE,KAAK,SAAS,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,GAAG,KAAK,GAAG,MAAM,CAAC,EAAE,GACzE,QAAQ,CAAC,CAAC,CAAC,GACX,CAAC,CAAA;AACL,KAAK,SAAS,CAAC,CAAC,EAAE,KAAK,SAAS,MAAM,GAAG,GAAG,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,GAAG,KAAK,EAAE,GAC1E,SAAS,CAAC,CAAC,CAAC,GACZ,CAAC,CAAA;AAEL;;;;;;GAMG;AACH,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAA;AAEhF;;;;;;GAMG;AACH,MAAM,MAAM,IAAI,CAAC,CAAC,EAAE,KAAK,SAAS,MAAM,GAAG,GAAG,IAAI,QAAQ,CACxD,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,EACnB,KAAK,CACN,CAAA;AAED;;;;;;GAMG;AACH,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA"}
@@ -1,7 +0,0 @@
1
- import type { EIP1193Provider } from './eip1193.js';
2
- declare global {
3
- interface Window {
4
- ethereum?: EIP1193Provider;
5
- }
6
- }
7
- //# sourceMappingURL=window.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../../src/types/window.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAEnD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,QAAQ,CAAC,EAAE,eAAe,CAAA;KAC3B;CACF"}
@@ -1,5 +0,0 @@
1
- import type { AbiParameter, AbiParametersToPrimitiveTypes, Narrow } from 'abitype';
2
- import type { Hex } from '../../types/index.js';
3
- export type DecodeAbiParametersReturnType<TParams extends readonly AbiParameter[] | readonly unknown[] = readonly AbiParameter[]> = AbiParametersToPrimitiveTypes<TParams extends readonly AbiParameter[] ? TParams : AbiParameter[]>;
4
- export declare function decodeAbiParameters<TParams extends readonly AbiParameter[] | readonly unknown[]>(params: Narrow<TParams>, data: Hex): DecodeAbiParametersReturnType<TParams>;
5
- //# sourceMappingURL=decodeAbiParameters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decodeAbiParameters.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/decodeAbiParameters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,6BAA6B,EAE7B,MAAM,EACP,MAAM,SAAS,CAAA;AAQhB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAW/C,MAAM,MAAM,6BAA6B,CACvC,OAAO,SACH,SAAS,YAAY,EAAE,GACvB,SAAS,OAAO,EAAE,GAAG,SAAS,YAAY,EAAE,IAC9C,6BAA6B,CAC/B,OAAO,SAAS,SAAS,YAAY,EAAE,GAAG,OAAO,GAAG,YAAY,EAAE,CACnE,CAAA;AAED,wBAAgB,mBAAmB,CACjC,OAAO,SAAS,SAAS,YAAY,EAAE,GAAG,SAAS,OAAO,EAAE,EAC5D,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAS5E"}
@@ -1,13 +0,0 @@
1
- import type { Abi } from 'abitype';
2
- import type { Hex } from '../../types/index.js';
3
- export type DecodeDeployDataParameters<TAbi extends Abi | readonly unknown[] = Abi> = {
4
- abi: TAbi;
5
- bytecode: Hex;
6
- data: Hex;
7
- };
8
- export type DecodeDeployDataReturnType = {
9
- args?: readonly unknown[] | undefined;
10
- bytecode: Hex;
11
- };
12
- export declare function decodeDeployData<TAbi extends Abi | readonly unknown[]>({ abi, bytecode, data, }: DecodeDeployDataParameters<TAbi>): DecodeDeployDataReturnType;
13
- //# sourceMappingURL=decodeDeployData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decodeDeployData.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/decodeDeployData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAMlC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAK/C,MAAM,MAAM,0BAA0B,CACpC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,IACzC;IACF,GAAG,EAAE,IAAI,CAAA;IACT,QAAQ,EAAE,GAAG,CAAA;IACb,IAAI,EAAE,GAAG,CAAA;CACV,CAAA;AACD,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,CAAC,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,CAAA;IACrC,QAAQ,EAAE,GAAG,CAAA;CACd,CAAA;AAED,wBAAgB,gBAAgB,CAAC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EAAE,EACtE,GAAG,EACH,QAAQ,EACR,IAAI,GACL,EAAE,0BAA0B,CAAC,IAAI,CAAC,GAAG,0BAA0B,CAiB/D"}
@@ -1,13 +0,0 @@
1
- import type { Abi } from 'abitype';
2
- import type { AbiItem, Hex } from '../../types/index.js';
3
- export type DecodeErrorResultParameters = {
4
- abi?: Abi;
5
- data: Hex;
6
- };
7
- export type DecodeErrorResultReturnType = {
8
- abiItem: AbiItem;
9
- errorName: string;
10
- args?: readonly unknown[];
11
- };
12
- export declare function decodeErrorResult({ abi, data, }: DecodeErrorResultParameters): DecodeErrorResultReturnType;
13
- //# sourceMappingURL=decodeErrorResult.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decodeErrorResult.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/decodeErrorResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,SAAS,CAAA;AAMlC,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMxD,MAAM,MAAM,2BAA2B,GAAG;IAAE,GAAG,CAAC,EAAE,GAAG,CAAC;IAAC,IAAI,EAAE,GAAG,CAAA;CAAE,CAAA;AAElE,MAAM,MAAM,2BAA2B,GAAG;IACxC,OAAO,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,SAAS,OAAO,EAAE,CAAA;CAC1B,CAAA;AAED,wBAAgB,iBAAiB,CAAC,EAChC,GAAG,EACH,IAAI,GACL,EAAE,2BAA2B,GAAG,2BAA2B,CAoB3D"}
@@ -1,13 +0,0 @@
1
- import type { Abi, Narrow } from 'abitype';
2
- import type { GetEventArgsFromTopics, InferEventName, Hex } from '../../types/index.js';
3
- export type DecodeEventLogParameters<TAbi extends Abi | readonly unknown[] = Abi, TEventName extends string = string, TTopics extends Hex[] = Hex[], TData extends Hex | undefined = undefined> = {
4
- abi: Narrow<TAbi>;
5
- data?: TData;
6
- eventName?: InferEventName<TAbi, TEventName>;
7
- topics: [signature: Hex, ...args: TTopics] | [];
8
- };
9
- export type DecodeEventLogReturnType<TAbi extends Abi | readonly unknown[] = Abi, TEventName extends string = string, TTopics extends Hex[] = Hex[], TData extends Hex | undefined = undefined> = {
10
- eventName: TEventName;
11
- } & GetEventArgsFromTopics<TAbi, TEventName, TTopics, TData>;
12
- export declare function decodeEventLog<TAbi extends Abi | readonly unknown[], TEventName extends string, TTopics extends Hex[], TData extends Hex | undefined = undefined>({ abi, data, topics, }: DecodeEventLogParameters<TAbi, TEventName, TTopics, TData>): DecodeEventLogReturnType<TAbi, TEventName, TTopics, TData>;
13
- //# sourceMappingURL=decodeEventLog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decodeEventLog.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/decodeEventLog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAgB,MAAM,EAAE,MAAM,SAAS,CAAA;AAOxD,OAAO,KAAK,EAEV,sBAAsB,EACtB,cAAc,EACd,GAAG,EACJ,MAAM,sBAAsB,CAAA;AAM7B,MAAM,MAAM,wBAAwB,CAClC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC3C,UAAU,SAAS,MAAM,GAAG,MAAM,EAClC,OAAO,SAAS,GAAG,EAAE,GAAG,GAAG,EAAE,EAC7B,KAAK,SAAS,GAAG,GAAG,SAAS,GAAG,SAAS,IACvC;IACF,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;IACjB,IAAI,CAAC,EAAE,KAAK,CAAA;IACZ,SAAS,CAAC,EAAE,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;IAC5C,MAAM,EAAE,CAAC,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,CAAA;CAChD,CAAA;AAED,MAAM,MAAM,wBAAwB,CAClC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC3C,UAAU,SAAS,MAAM,GAAG,MAAM,EAClC,OAAO,SAAS,GAAG,EAAE,GAAG,GAAG,EAAE,EAC7B,KAAK,SAAS,GAAG,GAAG,SAAS,GAAG,SAAS,IACvC;IACF,SAAS,EAAE,UAAU,CAAA;CACtB,GAAG,sBAAsB,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,CAAC,CAAA;AAI5D,wBAAgB,cAAc,CAC5B,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EACrC,UAAU,SAAS,MAAM,EACzB,OAAO,SAAS,GAAG,EAAE,EACrB,KAAK,SAAS,GAAG,GAAG,SAAS,GAAG,SAAS,EACzC,EACA,GAAG,EACH,IAAI,EACJ,MAAM,GACP,EAAE,wBAAwB,CACzB,IAAI,EACJ,UAAU,EACV,OAAO,EACP,KAAK,CACN,GAAG,wBAAwB,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,KAAK,CAAC,CAgE7D"}
@@ -1,14 +0,0 @@
1
- import type { Abi, ExtractAbiFunctionNames } from 'abitype';
2
- import type { GetFunctionArgs, Hex } from '../../types/index.js';
3
- export type DecodeFunctionDataParameters<TAbi extends Abi | readonly unknown[] = Abi> = {
4
- abi: TAbi;
5
- data: Hex;
6
- };
7
- export type DecodeFunctionDataReturnType<TAbi extends Abi | readonly unknown[] = Abi, _FunctionNames extends string = TAbi extends Abi ? Abi extends TAbi ? string : ExtractAbiFunctionNames<TAbi> : string> = {
8
- [TName in _FunctionNames]: {
9
- args: GetFunctionArgs<TAbi, TName>['args'];
10
- functionName: TName;
11
- };
12
- }[_FunctionNames];
13
- export declare function decodeFunctionData<TAbi extends Abi | readonly unknown[]>({ abi, data, }: DecodeFunctionDataParameters<TAbi>): DecodeFunctionDataReturnType<TAbi, TAbi extends Abi ? Abi extends TAbi ? string : ExtractAbiFunctionNames<TAbi> : string>;
14
- //# sourceMappingURL=decodeFunctionData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decodeFunctionData.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/decodeFunctionData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAA;AAG3D,OAAO,KAAK,EAAE,eAAe,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMhE,MAAM,MAAM,4BAA4B,CACtC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,IACzC;IACF,GAAG,EAAE,IAAI,CAAA;IACT,IAAI,EAAE,GAAG,CAAA;CACV,CAAA;AAED,MAAM,MAAM,4BAA4B,CACtC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC3C,cAAc,SAAS,MAAM,GAAG,IAAI,SAAS,GAAG,GAC5C,GAAG,SAAS,IAAI,GACd,MAAM,GACN,uBAAuB,CAAC,IAAI,CAAC,GAC/B,MAAM,IACR;KACD,KAAK,IAAI,cAAc,GAAG;QACzB,IAAI,EAAE,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC,MAAM,CAAC,CAAA;QAC1C,YAAY,EAAE,KAAK,CAAA;KACpB;CACF,CAAC,cAAc,CAAC,CAAA;AAEjB,wBAAgB,kBAAkB,CAAC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EAAE,EACxE,GAAG,EACH,IAAI,GACL,EAAE,4BAA4B,CAAC,IAAI,CAAC,6HAmBpC"}
@@ -1,10 +0,0 @@
1
- import type { Abi, Narrow } from 'abitype';
2
- import type { GetFunctionArgs, InferFunctionName, ContractFunctionResult, Hex } from '../../types/index.js';
3
- export type DecodeFunctionResultParameters<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string> = {
4
- abi: Narrow<TAbi>;
5
- functionName: InferFunctionName<TAbi, TFunctionName>;
6
- data: Hex;
7
- } & Partial<GetFunctionArgs<TAbi, TFunctionName>>;
8
- export type DecodeFunctionResultReturnType<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string> = ContractFunctionResult<TAbi, TFunctionName>;
9
- export declare function decodeFunctionResult<TAbi extends Abi | readonly unknown[], TFunctionName extends string>({ abi, args, functionName, data, }: DecodeFunctionResultParameters<TAbi, TFunctionName>): DecodeFunctionResultReturnType<TAbi, TFunctionName>;
10
- //# sourceMappingURL=decodeFunctionResult.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decodeFunctionResult.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/decodeFunctionResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAK1C,OAAO,KAAK,EACV,eAAe,EACf,iBAAiB,EACjB,sBAAsB,EACtB,GAAG,EACJ,MAAM,sBAAsB,CAAA;AAO7B,MAAM,MAAM,8BAA8B,CACxC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC3C,aAAa,SAAS,MAAM,GAAG,MAAM,IACnC;IACF,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;IACjB,YAAY,EAAE,iBAAiB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;IACpD,IAAI,EAAE,GAAG,CAAA;CACV,GAAG,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC,CAAA;AAEjD,MAAM,MAAM,8BAA8B,CACxC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC3C,aAAa,SAAS,MAAM,GAAG,MAAM,IACnC,sBAAsB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;AAE/C,wBAAgB,oBAAoB,CAClC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EACrC,aAAa,SAAS,MAAM,EAC5B,EACA,GAAG,EACH,IAAI,EACJ,YAAY,EACZ,IAAI,GACL,EAAE,8BAA8B,CAC/B,IAAI,EACJ,aAAa,CACd,GAAG,8BAA8B,CAAC,IAAI,EAAE,aAAa,CAAC,CAetD"}
@@ -1,9 +0,0 @@
1
- import type { AbiParameter, AbiParametersToPrimitiveTypes, Narrow } from 'abitype';
2
- import type { Hex } from '../../types/index.js';
3
- export type EncodeAbiParametersReturnType = Hex;
4
- /**
5
- * @description Encodes a list of primitive values into an ABI-encoded hex value.
6
- */
7
- export declare function encodeAbiParameters<TParams extends readonly AbiParameter[] | readonly unknown[]>(params: Narrow<TParams>, values: TParams extends readonly AbiParameter[] ? AbiParametersToPrimitiveTypes<TParams> : never): EncodeAbiParametersReturnType;
8
- export declare function getArrayComponents(type: string): [length: number | null, innerType: string] | undefined;
9
- //# sourceMappingURL=encodeAbiParameters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"encodeAbiParameters.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/encodeAbiParameters.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,6BAA6B,EAE7B,MAAM,EACP,MAAM,SAAS,CAAA;AAUhB,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAK/C,MAAM,MAAM,6BAA6B,GAAG,GAAG,CAAA;AAE/C;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,OAAO,SAAS,SAAS,YAAY,EAAE,GAAG,SAAS,OAAO,EAAE,EAE5D,MAAM,EAAE,MAAM,CAAC,OAAO,CAAC,EACvB,MAAM,EAAE,OAAO,SAAS,SAAS,YAAY,EAAE,GAC3C,6BAA6B,CAAC,OAAO,CAAC,GACtC,KAAK,GACR,6BAA6B,CAc/B;AA6OD,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,GACX,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,GAAG,SAAS,CAMxD"}
@@ -1,8 +0,0 @@
1
- import type { Abi, Narrow } from 'abitype';
2
- import type { GetConstructorArgs, Hex } from '../../types/index.js';
3
- export type EncodeDeployDataParameters<TAbi extends Abi | readonly unknown[] = Abi> = {
4
- abi: Narrow<TAbi>;
5
- bytecode: Hex;
6
- } & GetConstructorArgs<TAbi>;
7
- export declare function encodeDeployData<TAbi extends Abi | readonly unknown[]>({ abi, args, bytecode, }: EncodeDeployDataParameters<TAbi>): `0x${string}`;
8
- //# sourceMappingURL=encodeDeployData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"encodeDeployData.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/encodeDeployData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAM1C,OAAO,KAAK,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMnE,MAAM,MAAM,0BAA0B,CACpC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,IACzC;IACF,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;IACjB,QAAQ,EAAE,GAAG,CAAA;CACd,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAA;AAE5B,wBAAgB,gBAAgB,CAAC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EAAE,EACtE,GAAG,EACH,IAAI,EACJ,QAAQ,GACT,EAAE,0BAA0B,CAAC,IAAI,CAAC,iBAiBlC"}
@@ -1,8 +0,0 @@
1
- import type { Abi, Narrow } from 'abitype';
2
- import type { GetErrorArgs, InferErrorName } from '../../types/index.js';
3
- export type EncodeErrorResultParameters<TAbi extends Abi | readonly unknown[] = Abi, TErrorName extends string = string> = {
4
- abi: Narrow<TAbi>;
5
- errorName: InferErrorName<TAbi, TErrorName>;
6
- } & GetErrorArgs<TAbi, TErrorName>;
7
- export declare function encodeErrorResult<TAbi extends Abi | readonly unknown[], TErrorName extends string>({ abi, errorName, args }: EncodeErrorResultParameters<TAbi, TErrorName>): `0x${string}`;
8
- //# sourceMappingURL=encodeErrorResult.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"encodeErrorResult.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/encodeErrorResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAK1C,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAO,MAAM,sBAAsB,CAAA;AAU7E,MAAM,MAAM,2BAA2B,CACrC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC3C,UAAU,SAAS,MAAM,GAAG,MAAM,IAChC;IACF,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;IACjB,SAAS,EAAE,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;CAC5C,GAAG,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;AAElC,wBAAgB,iBAAiB,CAC/B,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EACrC,UAAU,SAAS,MAAM,EACzB,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,2BAA2B,CAAC,IAAI,EAAE,UAAU,CAAC,iBAiBxE"}
@@ -1,9 +0,0 @@
1
- import type { Abi, Narrow } from 'abitype';
2
- import type { GetEventArgs, InferEventName } from '../../types/index.js';
3
- export type EncodeEventTopicsParameters<TAbi extends Abi | readonly unknown[] = Abi, TEventName extends string = string> = {
4
- abi: Narrow<TAbi>;
5
- args?: GetEventArgs<TAbi, TEventName>;
6
- eventName: InferEventName<TAbi, TEventName>;
7
- };
8
- export declare function encodeEventTopics<TAbi extends Abi | readonly unknown[], TEventName extends string>({ abi, eventName, args }: EncodeEventTopicsParameters<TAbi, TEventName>): `0x${string}`[];
9
- //# sourceMappingURL=encodeEventTopics.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"encodeEventTopics.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/encodeEventTopics.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,GAAG,EAGH,MAAM,EACP,MAAM,SAAS,CAAA;AAMhB,OAAO,KAAK,EAEV,YAAY,EACZ,cAAc,EAEf,MAAM,sBAAsB,CAAA;AAQ7B,MAAM,MAAM,2BAA2B,CACrC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC3C,UAAU,SAAS,MAAM,GAAG,MAAM,IAChC;IACF,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;IACjB,IAAI,CAAC,EAAE,YAAY,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;IACrC,SAAS,EAAE,cAAc,CAAC,IAAI,EAAE,UAAU,CAAC,CAAA;CAC5C,CAAA;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EACrC,UAAU,SAAS,MAAM,EACzB,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,2BAA2B,CAAC,IAAI,EAAE,UAAU,CAAC,mBAgCxE"}
@@ -1,8 +0,0 @@
1
- import type { Abi, Narrow } from 'abitype';
2
- import type { GetFunctionArgs, InferFunctionName } from '../../types/index.js';
3
- export type EncodeFunctionDataParameters<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string> = {
4
- abi: Narrow<TAbi>;
5
- functionName: InferFunctionName<TAbi, TFunctionName>;
6
- } & GetFunctionArgs<TAbi, TFunctionName>;
7
- export declare function encodeFunctionData<TAbi extends Abi | readonly unknown[], TFunctionName extends string>({ abi, args, functionName, }: EncodeFunctionDataParameters<TAbi, TFunctionName>): `0x${string}`;
8
- //# sourceMappingURL=encodeFunctionData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"encodeFunctionData.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/encodeFunctionData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAG1C,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAQ9E,MAAM,MAAM,4BAA4B,CACtC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC3C,aAAa,SAAS,MAAM,GAAG,MAAM,IACnC;IACF,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;IACjB,YAAY,EAAE,iBAAiB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;CACrD,GAAG,eAAe,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;AAExC,wBAAgB,kBAAkB,CAChC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EACrC,aAAa,SAAS,MAAM,EAC5B,EACA,GAAG,EACH,IAAI,EACJ,YAAY,GACb,EAAE,4BAA4B,CAAC,IAAI,EAAE,aAAa,CAAC,iBAoBnD"}
@@ -1,9 +0,0 @@
1
- import type { Abi, Narrow } from 'abitype';
2
- import type { InferFunctionName, ContractFunctionResult } from '../../types/index.js';
3
- export type EncodeFunctionResultParameters<TAbi extends Abi | readonly unknown[] = Abi, TFunctionName extends string = string> = {
4
- abi: Narrow<TAbi>;
5
- functionName: InferFunctionName<TAbi, TFunctionName>;
6
- result?: ContractFunctionResult<TAbi, TFunctionName>;
7
- };
8
- export declare function encodeFunctionResult<TAbi extends Abi | readonly unknown[], TFunctionName extends string>({ abi, functionName, result, }: EncodeFunctionResultParameters<TAbi, TFunctionName>): `0x${string}`;
9
- //# sourceMappingURL=encodeFunctionResult.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"encodeFunctionResult.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/encodeFunctionResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,SAAS,CAAA;AAM1C,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,sBAAsB,CAAA;AAK7B,MAAM,MAAM,8BAA8B,CACxC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC3C,aAAa,SAAS,MAAM,GAAG,MAAM,IACnC;IACF,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;IACjB,YAAY,EAAE,iBAAiB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;IACpD,MAAM,CAAC,EAAE,sBAAsB,CAAC,IAAI,EAAE,aAAa,CAAC,CAAA;CACrD,CAAA;AAED,wBAAgB,oBAAoB,CAClC,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EACrC,aAAa,SAAS,MAAM,EAC5B,EACA,GAAG,EACH,YAAY,EACZ,MAAM,GACP,EAAE,8BAA8B,CAAC,IAAI,EAAE,aAAa,CAAC,iBAarD"}
@@ -1,11 +0,0 @@
1
- import type { AbiParameterToPrimitiveType, AbiType, Narrow, SolidityAddress, SolidityArrayWithoutTuple, SolidityBool, SolidityBytes, SolidityInt, SolidityString } from 'abitype';
2
- import type { Hex } from '../../types/index.js';
3
- type PackedAbiType = SolidityAddress | SolidityBool | SolidityBytes | SolidityInt | SolidityString | SolidityArrayWithoutTuple;
4
- type EncodePackedValues<TPackedAbiTypes extends PackedAbiType[] | unknown[]> = {
5
- [K in keyof TPackedAbiTypes]: TPackedAbiTypes[K] extends AbiType ? AbiParameterToPrimitiveType<{
6
- type: TPackedAbiTypes[K];
7
- }> : unknown;
8
- };
9
- export declare function encodePacked<TPackedAbiTypes extends PackedAbiType[] | unknown[]>(types: Narrow<TPackedAbiTypes>, values: EncodePackedValues<TPackedAbiTypes>): Hex;
10
- export {};
11
- //# sourceMappingURL=encodePacked.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"encodePacked.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/encodePacked.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,2BAA2B,EAC3B,OAAO,EACP,MAAM,EACN,eAAe,EACf,yBAAyB,EACzB,YAAY,EACZ,aAAa,EACb,WAAW,EACX,cAAc,EACf,MAAM,SAAS,CAAA;AAOhB,OAAO,KAAK,EAAW,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMxD,KAAK,aAAa,GACd,eAAe,GACf,YAAY,GACZ,aAAa,GACb,WAAW,GACX,cAAc,GACd,yBAAyB,CAAA;AAE7B,KAAK,kBAAkB,CAAC,eAAe,SAAS,aAAa,EAAE,GAAG,OAAO,EAAE,IAAI;KAC5E,CAAC,IAAI,MAAM,eAAe,GAAG,eAAe,CAAC,CAAC,CAAC,SAAS,OAAO,GAC5D,2BAA2B,CAAC;QAAE,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAA;KAAE,CAAC,GACzD,OAAO;CACZ,CAAA;AAED,wBAAgB,YAAY,CAC1B,eAAe,SAAS,aAAa,EAAE,GAAG,OAAO,EAAE,EAEnD,KAAK,EAAE,MAAM,CAAC,eAAe,CAAC,EAC9B,MAAM,EAAE,kBAAkB,CAAC,eAAe,CAAC,GAC1C,GAAG,CAcL"}
@@ -1,9 +0,0 @@
1
- import type { AbiParameter } from 'abitype';
2
- import type { AbiItem } from '../../types/index.js';
3
- export declare function formatAbiItem(abiItem: AbiItem, { includeName }?: {
4
- includeName?: boolean;
5
- }): string;
6
- export declare function formatAbiParams(params: readonly AbiParameter[] | undefined, { includeName }?: {
7
- includeName?: boolean;
8
- }): string;
9
- //# sourceMappingURL=formatAbiItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatAbiItem.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/formatAbiItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAG3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAEnD,wBAAgB,aAAa,CAC3B,OAAO,EAAE,OAAO,EAChB,EAAE,WAAmB,EAAE,GAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAO,UAUxD;AAED,wBAAgB,eAAe,CAC7B,MAAM,EAAE,SAAS,YAAY,EAAE,GAAG,SAAS,EAC3C,EAAE,WAAmB,EAAE,GAAE;IAAE,WAAW,CAAC,EAAE,OAAO,CAAA;CAAO,GACtD,MAAM,CAKR"}
@@ -1,8 +0,0 @@
1
- import type { AbiItem } from '../../types/index.js';
2
- export declare function formatAbiItemWithArgs({ abiItem, args, includeFunctionName, includeName, }: {
3
- abiItem: AbiItem;
4
- args: readonly unknown[];
5
- includeFunctionName?: boolean;
6
- includeName?: boolean;
7
- }): string | undefined;
8
- //# sourceMappingURL=formatAbiItemWithArgs.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatAbiItemWithArgs.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/formatAbiItemWithArgs.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAGnD,wBAAgB,qBAAqB,CAAC,EACpC,OAAO,EACP,IAAI,EACJ,mBAA0B,EAC1B,WAAmB,GACpB,EAAE;IACD,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,SAAS,OAAO,EAAE,CAAA;IACxB,mBAAmB,CAAC,EAAE,OAAO,CAAA;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB,sBAYA"}
@@ -1,12 +0,0 @@
1
- import type { Abi, AbiParameter, Narrow } from 'abitype';
2
- import type { GetFunctionArgs, InferItemName } from '../../types/index.js';
3
- export type GetAbiItemParameters<TAbi extends Abi | readonly unknown[] = Abi, TItemName extends string = string> = {
4
- abi: Narrow<TAbi>;
5
- name: InferItemName<TAbi, TItemName>;
6
- } & Partial<GetFunctionArgs<TAbi, TItemName>>;
7
- export type GetAbiItemReturnType<TAbi extends Abi | readonly unknown[] = Abi, TItemName extends string = string> = Extract<TAbi[number], {
8
- name: TItemName;
9
- }>;
10
- export declare function getAbiItem<TAbi extends Abi | readonly unknown[], TItemName extends string>({ abi, args, name, }: GetAbiItemParameters<TAbi, TItemName>): GetAbiItemReturnType<TAbi, TItemName>;
11
- export declare function isArgOfType(arg: unknown, abiParameter: AbiParameter): boolean;
12
- //# sourceMappingURL=getAbiItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAbiItem.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/getAbiItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,YAAY,EAAW,MAAM,EAAE,MAAM,SAAS,CAAA;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAG1E,MAAM,MAAM,oBAAoB,CAC9B,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC3C,SAAS,SAAS,MAAM,GAAG,MAAM,IAC/B;IACF,GAAG,EAAE,MAAM,CAAC,IAAI,CAAC,CAAA;IACjB,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,SAAS,CAAC,CAAA;CACrC,GAAG,OAAO,CAAC,eAAe,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAA;AAE7C,MAAM,MAAM,oBAAoB,CAC9B,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,GAAG,GAAG,EAC3C,SAAS,SAAS,MAAM,GAAG,MAAM,IAC/B,OAAO,CACT,IAAI,CAAC,MAAM,CAAC,EACZ;IACE,IAAI,EAAE,SAAS,CAAA;CAChB,CACF,CAAA;AAED,wBAAgB,UAAU,CACxB,IAAI,SAAS,GAAG,GAAG,SAAS,OAAO,EAAE,EACrC,SAAS,SAAS,MAAM,EACxB,EACA,GAAG,EACH,IAAS,EACT,IAAI,GACL,EAAE,oBAAoB,CAAC,IAAI,EAAE,SAAS,CAAC,GAAG,oBAAoB,CAC7D,IAAI,EACJ,SAAS,CACV,CAsBA;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,GAAG,OAAO,CAuD7E"}
@@ -1,30 +0,0 @@
1
- export type { ParseAbi, ParseAbiItem, ParseAbiParameter, ParseAbiParameters, } from 'abitype';
2
- export { parseAbi, parseAbiItem, parseAbiParameter, parseAbiParameters, } from 'abitype';
3
- export type { DecodeAbiParametersReturnType } from './decodeAbiParameters.js';
4
- export { decodeAbiParameters } from './decodeAbiParameters.js';
5
- export type { DecodeErrorResultParameters, DecodeErrorResultReturnType, } from './decodeErrorResult.js';
6
- export { decodeErrorResult } from './decodeErrorResult.js';
7
- export type { DecodeEventLogParameters, DecodeEventLogReturnType, } from './decodeEventLog.js';
8
- export { decodeEventLog } from './decodeEventLog.js';
9
- export type { DecodeFunctionDataParameters } from './decodeFunctionData.js';
10
- export { decodeFunctionData } from './decodeFunctionData.js';
11
- export type { DecodeFunctionResultParameters, DecodeFunctionResultReturnType, } from './decodeFunctionResult.js';
12
- export { decodeFunctionResult } from './decodeFunctionResult.js';
13
- export type { EncodeAbiParametersReturnType } from './encodeAbiParameters.js';
14
- export { encodeAbiParameters } from './encodeAbiParameters.js';
15
- export type { EncodeDeployDataParameters } from './encodeDeployData.js';
16
- export { encodeDeployData } from './encodeDeployData.js';
17
- export type { EncodeErrorResultParameters } from './encodeErrorResult.js';
18
- export { encodeErrorResult } from './encodeErrorResult.js';
19
- export type { EncodeEventTopicsParameters } from './encodeEventTopics.js';
20
- export { encodeEventTopics } from './encodeEventTopics.js';
21
- export type { EncodeFunctionDataParameters } from './encodeFunctionData.js';
22
- export { encodeFunctionData } from './encodeFunctionData.js';
23
- export type { EncodeFunctionResultParameters } from './encodeFunctionResult.js';
24
- export { encodeFunctionResult } from './encodeFunctionResult.js';
25
- export { encodePacked } from './encodePacked.js';
26
- export { formatAbiItemWithArgs } from './formatAbiItemWithArgs.js';
27
- export { formatAbiItem, formatAbiParams } from './formatAbiItem.js';
28
- export type { GetAbiItemParameters } from './getAbiItem.js';
29
- export { getAbiItem } from './getAbiItem.js';
30
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/abi/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,SAAS,CAAA;AAChB,OAAO,EACL,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,SAAS,CAAA;AAEhB,YAAY,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAE9D,YAAY,EACV,2BAA2B,EAC3B,2BAA2B,GAC5B,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE1D,YAAY,EACV,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEpD,YAAY,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAE5D,YAAY,EACV,8BAA8B,EAC9B,8BAA8B,GAC/B,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAEhE,YAAY,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAE9D,YAAY,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAA;AACvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAExD,YAAY,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE1D,YAAY,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAE1D,YAAY,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAAA;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAE5D,YAAY,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAA;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAEhE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AAElE,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAEnE,YAAY,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA"}
@@ -1,3 +0,0 @@
1
- export { parseAccount } from '../accounts/utils/parseAccount.js';
2
- export { publicKeyToAddress } from '../accounts/utils/publicKeyToAddress.js';
3
- //# sourceMappingURL=accounts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../../src/utils/accounts.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAA;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { Address } from '../../types/index.js';
2
- export declare function checksumAddress(address_: Address): Address;
3
- export declare function getAddress(address: string): Address;
4
- //# sourceMappingURL=getAddress.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getAddress.d.ts","sourceRoot":"","sources":["../../../../src/utils/address/getAddress.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAKnD,wBAAgB,eAAe,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAe1D;AAED,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAGnD"}
@@ -1,19 +0,0 @@
1
- import type { Address, ByteArray, Hex } from '../../types/index.js';
2
- export type GetCreateAddressOptions = {
3
- from: Address;
4
- nonce: bigint;
5
- };
6
- export type GetCreate2AddressOptions = {
7
- bytecode: ByteArray | Hex;
8
- from: Address;
9
- salt: ByteArray | Hex;
10
- };
11
- export type GetContractAddressOptions = ({
12
- opcode?: 'CREATE';
13
- } & GetCreateAddressOptions) | ({
14
- opcode: 'CREATE2';
15
- } & GetCreate2AddressOptions);
16
- export declare function getContractAddress(opts: GetContractAddressOptions): `0x${string}`;
17
- export declare function getCreateAddress(opts: GetCreateAddressOptions): `0x${string}`;
18
- export declare function getCreate2Address(opts: GetCreate2AddressOptions): `0x${string}`;
19
- //# sourceMappingURL=getContractAddress.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getContractAddress.d.ts","sourceRoot":"","sources":["../../../../src/utils/address/getContractAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,sBAAsB,CAAA;AAMnE,MAAM,MAAM,uBAAuB,GAAG;IACpC,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,QAAQ,EAAE,SAAS,GAAG,GAAG,CAAA;IACzB,IAAI,EAAE,OAAO,CAAA;IACb,IAAI,EAAE,SAAS,GAAG,GAAG,CAAA;CACtB,CAAA;AAED,MAAM,MAAM,yBAAyB,GACjC,CAAC;IACC,MAAM,CAAC,EAAE,QAAQ,CAAA;CAClB,GAAG,uBAAuB,CAAC,GAC5B,CAAC;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE,GAAG,wBAAwB,CAAC,CAAA;AAEtD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,yBAAyB,iBAGjE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,uBAAuB,iBAS7D;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,wBAAwB,iBAe/D"}
@@ -1,6 +0,0 @@
1
- export { checksumAddress, getAddress } from './getAddress.js';
2
- export type { GetContractAddressOptions, GetCreate2AddressOptions, GetCreateAddressOptions, } from './getContractAddress.js';
3
- export { getContractAddress, getCreate2Address, getCreateAddress, } from './getContractAddress.js';
4
- export { isAddress } from './isAddress.js';
5
- export { isAddressEqual } from './isAddressEqual.js';
6
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/address/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAE7D,YAAY,EACV,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,yBAAyB,CAAA;AAEhC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { Address } from '../../types/index.js';
2
- export declare function isAddress(address: string): address is Address;
3
- //# sourceMappingURL=isAddress.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isAddress.d.ts","sourceRoot":"","sources":["../../../../src/utils/address/isAddress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAInD,wBAAgB,SAAS,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,IAAI,OAAO,CAE7D"}
@@ -1,3 +0,0 @@
1
- import type { Address } from '../../types/index.js';
2
- export declare function isAddressEqual(a: Address, b: Address): boolean;
3
- //# sourceMappingURL=isAddressEqual.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"isAddressEqual.d.ts","sourceRoot":"","sources":["../../../../src/utils/address/isAddressEqual.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAInD,wBAAgB,cAAc,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,WAIpD"}
@@ -1,6 +0,0 @@
1
- export declare const isDeterministicError: (error: Error) => boolean;
2
- export declare function buildRequest<TRequest extends (args: any) => Promise<any>>(request: TRequest, { retryDelay, retryCount, }?: {
3
- retryDelay?: number;
4
- retryCount?: number;
5
- }): TRequest;
6
- //# sourceMappingURL=buildRequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"buildRequest.d.ts","sourceRoot":"","sources":["../../../src/utils/buildRequest.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,oBAAoB,UAAW,KAAK,YAoBhD,CAAA;AAED,wBAAgB,YAAY,CAAC,QAAQ,SAAS,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,GAAG,CAAC,EACvE,OAAO,EAAE,QAAQ,EACjB,EACE,UAAgB,EAChB,UAAc,GACf,GAAE;IAED,UAAU,CAAC,EAAE,MAAM,CAAA;IAEnB,UAAU,CAAC,EAAE,MAAM,CAAA;CACf,YA+CP"}
@@ -1,8 +0,0 @@
1
- import type { Chain, Formatters } from '../types/index.js';
2
- export declare function defineChain<TFormatters extends Formatters = Formatters, TChain extends Chain<TFormatters> = Chain<TFormatters>>(chain: TChain): TChain;
3
- export declare function getChainContractAddress({ blockNumber, chain, contract: name, }: {
4
- blockNumber?: bigint;
5
- chain: Chain;
6
- contract: string;
7
- }): `0x${string}`;
8
- //# sourceMappingURL=chain.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chain.d.ts","sourceRoot":"","sources":["../../../src/utils/chain.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAiB,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEzE,wBAAgB,WAAW,CACzB,WAAW,SAAS,UAAU,GAAG,UAAU,EAC3C,MAAM,SAAS,KAAK,CAAC,WAAW,CAAC,GAAG,KAAK,CAAC,WAAW,CAAC,EACtD,KAAK,EAAE,MAAM,UAEd;AAED,wBAAgB,uBAAuB,CAAC,EACtC,WAAW,EACX,KAAK,EACL,QAAQ,EAAE,IAAI,GACf,EAAE;IACD,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,KAAK,EAAE,KAAK,CAAA;IACZ,QAAQ,EAAE,MAAM,CAAA;CACjB,iBAuBA"}
@@ -1,13 +0,0 @@
1
- export declare function extractFunctionParts(def: string): {
2
- type: string | undefined;
3
- name: string | undefined;
4
- params: string | undefined;
5
- };
6
- export declare function extractFunctionName(def: string): string | undefined;
7
- export declare function extractFunctionParams(def: string): {
8
- indexed?: boolean | undefined;
9
- type: string;
10
- name: string;
11
- }[] | undefined;
12
- export declare function extractFunctionType(def: string): string | undefined;
13
- //# sourceMappingURL=extractFunctionParts.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"extractFunctionParts.d.ts","sourceRoot":"","sources":["../../../../src/utils/contract/extractFunctionParts.ts"],"names":[],"mappings":"AAEA,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM;;;;EAM/C;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,sBAE9C;AAED,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM;;;;gBAQhD;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,sBAE9C"}
@@ -1,2 +0,0 @@
1
- export { extractFunctionName, extractFunctionParams, extractFunctionParts, extractFunctionType, } from './extractFunctionParts.js';
2
- //# sourceMappingURL=index.d.ts.map