viem 1.1.8 → 1.2.1

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 (503) hide show
  1. package/actions/package.json +5 -0
  2. package/dist/cjs/actions/ens/getEnsAddress.js.map +1 -1
  3. package/dist/cjs/actions/ens/getEnsAvatar.js.map +1 -1
  4. package/dist/cjs/actions/ens/getEnsName.js.map +1 -1
  5. package/dist/cjs/actions/ens/getEnsResolver.js.map +1 -1
  6. package/dist/cjs/actions/ens/getEnsText.js.map +1 -1
  7. package/dist/cjs/actions/index.js +155 -0
  8. package/dist/cjs/actions/index.js.map +1 -0
  9. package/dist/cjs/actions/public/call.js.map +1 -1
  10. package/dist/cjs/actions/public/createBlockFilter.js.map +1 -1
  11. package/dist/cjs/actions/public/createContractEventFilter.js.map +1 -1
  12. package/dist/cjs/actions/public/createEventFilter.js.map +1 -1
  13. package/dist/cjs/actions/public/createPendingTransactionFilter.js.map +1 -1
  14. package/dist/cjs/actions/public/estimateContractGas.js.map +1 -1
  15. package/dist/cjs/actions/public/estimateGas.js.map +1 -1
  16. package/dist/cjs/actions/public/getBalance.js.map +1 -1
  17. package/dist/cjs/actions/public/getBlock.js.map +1 -1
  18. package/dist/cjs/actions/public/getBlockNumber.js.map +1 -1
  19. package/dist/cjs/actions/public/getBlockTransactionCount.js.map +1 -1
  20. package/dist/cjs/actions/public/getBytecode.js.map +1 -1
  21. package/dist/cjs/actions/public/getChainId.js.map +1 -1
  22. package/dist/cjs/actions/public/getFeeHistory.js.map +1 -1
  23. package/dist/cjs/actions/public/getFilterChanges.js.map +1 -1
  24. package/dist/cjs/actions/public/getFilterLogs.js.map +1 -1
  25. package/dist/cjs/actions/public/getGasPrice.js.map +1 -1
  26. package/dist/cjs/actions/public/getLogs.js.map +1 -1
  27. package/dist/cjs/actions/public/getStorageAt.js.map +1 -1
  28. package/dist/cjs/actions/public/getTransaction.js.map +1 -1
  29. package/dist/cjs/actions/public/getTransactionConfirmations.js.map +1 -1
  30. package/dist/cjs/actions/public/getTransactionCount.js.map +1 -1
  31. package/dist/cjs/actions/public/getTransactionReceipt.js.map +1 -1
  32. package/dist/cjs/actions/public/multicall.js +1 -0
  33. package/dist/cjs/actions/public/multicall.js.map +1 -1
  34. package/dist/cjs/actions/public/readContract.js.map +1 -1
  35. package/dist/cjs/actions/public/simulateContract.js.map +1 -1
  36. package/dist/cjs/actions/public/uninstallFilter.js.map +1 -1
  37. package/dist/cjs/actions/public/verifyHash.js.map +1 -1
  38. package/dist/cjs/actions/public/verifyMessage.js.map +1 -1
  39. package/dist/cjs/actions/public/verifyTypedData.js +2 -2
  40. package/dist/cjs/actions/public/verifyTypedData.js.map +1 -1
  41. package/dist/cjs/actions/public/waitForTransactionReceipt.js.map +1 -1
  42. package/dist/cjs/actions/public/watchBlockNumber.js.map +1 -1
  43. package/dist/cjs/actions/public/watchBlocks.js.map +1 -1
  44. package/dist/cjs/actions/public/watchContractEvent.js.map +1 -1
  45. package/dist/cjs/actions/public/watchEvent.js.map +1 -1
  46. package/dist/cjs/actions/public/watchPendingTransactions.js.map +1 -1
  47. package/dist/cjs/actions/test/dropTransaction.js.map +1 -1
  48. package/dist/cjs/actions/test/getAutomine.js.map +1 -1
  49. package/dist/cjs/actions/test/getTxpoolContent.js.map +1 -1
  50. package/dist/cjs/actions/test/getTxpoolStatus.js.map +1 -1
  51. package/dist/cjs/actions/test/impersonateAccount.js.map +1 -1
  52. package/dist/cjs/actions/test/increaseTime.js.map +1 -1
  53. package/dist/cjs/actions/test/inspectTxpool.js.map +1 -1
  54. package/dist/cjs/actions/test/mine.js.map +1 -1
  55. package/dist/cjs/actions/test/removeBlockTimestampInterval.js.map +1 -1
  56. package/dist/cjs/actions/test/reset.js.map +1 -1
  57. package/dist/cjs/actions/test/revert.js.map +1 -1
  58. package/dist/cjs/actions/test/sendUnsignedTransaction.js.map +1 -1
  59. package/dist/cjs/actions/test/setAutomine.js.map +1 -1
  60. package/dist/cjs/actions/test/setBalance.js.map +1 -1
  61. package/dist/cjs/actions/test/setBlockGasLimit.js.map +1 -1
  62. package/dist/cjs/actions/test/setBlockTimestampInterval.js.map +1 -1
  63. package/dist/cjs/actions/test/setCode.js.map +1 -1
  64. package/dist/cjs/actions/test/setCoinbase.js.map +1 -1
  65. package/dist/cjs/actions/test/setIntervalMining.js.map +1 -1
  66. package/dist/cjs/actions/test/setLoggingEnabled.js.map +1 -1
  67. package/dist/cjs/actions/test/setMinGasPrice.js.map +1 -1
  68. package/dist/cjs/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
  69. package/dist/cjs/actions/test/setNextBlockTimestamp.js.map +1 -1
  70. package/dist/cjs/actions/test/setNonce.js.map +1 -1
  71. package/dist/cjs/actions/test/setRpcUrl.js.map +1 -1
  72. package/dist/cjs/actions/test/setStorageAt.js.map +1 -1
  73. package/dist/cjs/actions/test/snapshot.js.map +1 -1
  74. package/dist/cjs/actions/test/stopImpersonatingAccount.js.map +1 -1
  75. package/dist/cjs/actions/wallet/addChain.js.map +1 -1
  76. package/dist/cjs/actions/wallet/deployContract.js.map +1 -1
  77. package/dist/cjs/actions/wallet/getAddresses.js.map +1 -1
  78. package/dist/cjs/actions/wallet/getPermissions.js.map +1 -1
  79. package/dist/cjs/actions/wallet/requestAddresses.js.map +1 -1
  80. package/dist/cjs/actions/wallet/requestPermissions.js.map +1 -1
  81. package/dist/cjs/actions/wallet/sendTransaction.js.map +1 -1
  82. package/dist/cjs/actions/wallet/signMessage.js.map +1 -1
  83. package/dist/cjs/actions/wallet/signTypedData.js.map +1 -1
  84. package/dist/cjs/actions/wallet/switchChain.js.map +1 -1
  85. package/dist/cjs/actions/wallet/watchAsset.js.map +1 -1
  86. package/dist/cjs/actions/wallet/writeContract.js.map +1 -1
  87. package/dist/cjs/clients/createClient.js +18 -3
  88. package/dist/cjs/clients/createClient.js.map +1 -1
  89. package/dist/cjs/clients/createPublicClient.js +8 -14
  90. package/dist/cjs/clients/createPublicClient.js.map +1 -1
  91. package/dist/cjs/clients/createTestClient.js +12 -16
  92. package/dist/cjs/clients/createTestClient.js.map +1 -1
  93. package/dist/cjs/clients/createWalletClient.js +9 -16
  94. package/dist/cjs/clients/createWalletClient.js.map +1 -1
  95. package/dist/cjs/clients/decorators/public.js.map +1 -1
  96. package/dist/cjs/clients/decorators/test.js +35 -30
  97. package/dist/cjs/clients/decorators/test.js.map +1 -1
  98. package/dist/cjs/clients/decorators/wallet.js.map +1 -1
  99. package/dist/cjs/errors/version.js +1 -1
  100. package/dist/cjs/index.js +11 -5
  101. package/dist/cjs/index.js.map +1 -1
  102. package/dist/cjs/utils/ccip.js.map +1 -1
  103. package/dist/cjs/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
  104. package/dist/cjs/utils/ens/avatar/utils.js.map +1 -1
  105. package/dist/cjs/utils/filters/createFilterRequestScope.js.map +1 -1
  106. package/dist/cjs/utils/transaction/prepareRequest.js.map +1 -1
  107. package/dist/esm/actions/ens/getEnsAddress.js.map +1 -1
  108. package/dist/esm/actions/ens/getEnsAvatar.js.map +1 -1
  109. package/dist/esm/actions/ens/getEnsName.js.map +1 -1
  110. package/dist/esm/actions/ens/getEnsResolver.js.map +1 -1
  111. package/dist/esm/actions/ens/getEnsText.js.map +1 -1
  112. package/dist/esm/actions/index.js +76 -0
  113. package/dist/esm/actions/index.js.map +1 -0
  114. package/dist/esm/actions/public/call.js.map +1 -1
  115. package/dist/esm/actions/public/createBlockFilter.js.map +1 -1
  116. package/dist/esm/actions/public/createContractEventFilter.js.map +1 -1
  117. package/dist/esm/actions/public/createEventFilter.js.map +1 -1
  118. package/dist/esm/actions/public/createPendingTransactionFilter.js.map +1 -1
  119. package/dist/esm/actions/public/estimateContractGas.js.map +1 -1
  120. package/dist/esm/actions/public/estimateGas.js.map +1 -1
  121. package/dist/esm/actions/public/getBalance.js.map +1 -1
  122. package/dist/esm/actions/public/getBlock.js.map +1 -1
  123. package/dist/esm/actions/public/getBlockNumber.js.map +1 -1
  124. package/dist/esm/actions/public/getBlockTransactionCount.js.map +1 -1
  125. package/dist/esm/actions/public/getBytecode.js.map +1 -1
  126. package/dist/esm/actions/public/getChainId.js.map +1 -1
  127. package/dist/esm/actions/public/getFeeHistory.js.map +1 -1
  128. package/dist/esm/actions/public/getFilterChanges.js.map +1 -1
  129. package/dist/esm/actions/public/getFilterLogs.js.map +1 -1
  130. package/dist/esm/actions/public/getGasPrice.js.map +1 -1
  131. package/dist/esm/actions/public/getLogs.js.map +1 -1
  132. package/dist/esm/actions/public/getStorageAt.js.map +1 -1
  133. package/dist/esm/actions/public/getTransaction.js.map +1 -1
  134. package/dist/esm/actions/public/getTransactionConfirmations.js.map +1 -1
  135. package/dist/esm/actions/public/getTransactionCount.js.map +1 -1
  136. package/dist/esm/actions/public/getTransactionReceipt.js.map +1 -1
  137. package/dist/esm/actions/public/multicall.js +1 -0
  138. package/dist/esm/actions/public/multicall.js.map +1 -1
  139. package/dist/esm/actions/public/readContract.js.map +1 -1
  140. package/dist/esm/actions/public/simulateContract.js.map +1 -1
  141. package/dist/esm/actions/public/uninstallFilter.js.map +1 -1
  142. package/dist/esm/actions/public/verifyHash.js.map +1 -1
  143. package/dist/esm/actions/public/verifyMessage.js.map +1 -1
  144. package/dist/esm/actions/public/verifyTypedData.js +1 -1
  145. package/dist/esm/actions/public/verifyTypedData.js.map +1 -1
  146. package/dist/esm/actions/public/waitForTransactionReceipt.js.map +1 -1
  147. package/dist/esm/actions/public/watchBlockNumber.js.map +1 -1
  148. package/dist/esm/actions/public/watchBlocks.js.map +1 -1
  149. package/dist/esm/actions/public/watchContractEvent.js.map +1 -1
  150. package/dist/esm/actions/public/watchEvent.js.map +1 -1
  151. package/dist/esm/actions/public/watchPendingTransactions.js.map +1 -1
  152. package/dist/esm/actions/test/dropTransaction.js.map +1 -1
  153. package/dist/esm/actions/test/getAutomine.js.map +1 -1
  154. package/dist/esm/actions/test/getTxpoolContent.js.map +1 -1
  155. package/dist/esm/actions/test/getTxpoolStatus.js.map +1 -1
  156. package/dist/esm/actions/test/impersonateAccount.js.map +1 -1
  157. package/dist/esm/actions/test/increaseTime.js.map +1 -1
  158. package/dist/esm/actions/test/inspectTxpool.js.map +1 -1
  159. package/dist/esm/actions/test/mine.js.map +1 -1
  160. package/dist/esm/actions/test/removeBlockTimestampInterval.js.map +1 -1
  161. package/dist/esm/actions/test/reset.js.map +1 -1
  162. package/dist/esm/actions/test/revert.js.map +1 -1
  163. package/dist/esm/actions/test/sendUnsignedTransaction.js.map +1 -1
  164. package/dist/esm/actions/test/setAutomine.js.map +1 -1
  165. package/dist/esm/actions/test/setBalance.js.map +1 -1
  166. package/dist/esm/actions/test/setBlockGasLimit.js.map +1 -1
  167. package/dist/esm/actions/test/setBlockTimestampInterval.js.map +1 -1
  168. package/dist/esm/actions/test/setCode.js.map +1 -1
  169. package/dist/esm/actions/test/setCoinbase.js.map +1 -1
  170. package/dist/esm/actions/test/setIntervalMining.js.map +1 -1
  171. package/dist/esm/actions/test/setLoggingEnabled.js.map +1 -1
  172. package/dist/esm/actions/test/setMinGasPrice.js.map +1 -1
  173. package/dist/esm/actions/test/setNextBlockBaseFeePerGas.js.map +1 -1
  174. package/dist/esm/actions/test/setNextBlockTimestamp.js.map +1 -1
  175. package/dist/esm/actions/test/setNonce.js.map +1 -1
  176. package/dist/esm/actions/test/setRpcUrl.js.map +1 -1
  177. package/dist/esm/actions/test/setStorageAt.js.map +1 -1
  178. package/dist/esm/actions/test/snapshot.js.map +1 -1
  179. package/dist/esm/actions/test/stopImpersonatingAccount.js.map +1 -1
  180. package/dist/esm/actions/wallet/addChain.js.map +1 -1
  181. package/dist/esm/actions/wallet/deployContract.js.map +1 -1
  182. package/dist/esm/actions/wallet/getAddresses.js.map +1 -1
  183. package/dist/esm/actions/wallet/getPermissions.js.map +1 -1
  184. package/dist/esm/actions/wallet/requestAddresses.js.map +1 -1
  185. package/dist/esm/actions/wallet/requestPermissions.js.map +1 -1
  186. package/dist/esm/actions/wallet/sendTransaction.js.map +1 -1
  187. package/dist/esm/actions/wallet/signMessage.js.map +1 -1
  188. package/dist/esm/actions/wallet/signTypedData.js.map +1 -1
  189. package/dist/esm/actions/wallet/switchChain.js.map +1 -1
  190. package/dist/esm/actions/wallet/watchAsset.js.map +1 -1
  191. package/dist/esm/actions/wallet/writeContract.js.map +1 -1
  192. package/dist/esm/clients/createClient.js +18 -3
  193. package/dist/esm/clients/createClient.js.map +1 -1
  194. package/dist/esm/clients/createPublicClient.js +8 -14
  195. package/dist/esm/clients/createPublicClient.js.map +1 -1
  196. package/dist/esm/clients/createTestClient.js +12 -16
  197. package/dist/esm/clients/createTestClient.js.map +1 -1
  198. package/dist/esm/clients/createWalletClient.js +9 -16
  199. package/dist/esm/clients/createWalletClient.js.map +1 -1
  200. package/dist/esm/clients/decorators/public.js.map +1 -1
  201. package/dist/esm/clients/decorators/test.js +35 -30
  202. package/dist/esm/clients/decorators/test.js.map +1 -1
  203. package/dist/esm/clients/decorators/wallet.js.map +1 -1
  204. package/dist/esm/errors/version.js +1 -1
  205. package/dist/esm/index.js +5 -0
  206. package/dist/esm/index.js.map +1 -1
  207. package/dist/esm/utils/ccip.js.map +1 -1
  208. package/dist/esm/utils/ens/avatar/parseAvatarRecord.js.map +1 -1
  209. package/dist/esm/utils/ens/avatar/utils.js.map +1 -1
  210. package/dist/esm/utils/filters/createFilterRequestScope.js.map +1 -1
  211. package/dist/esm/utils/transaction/prepareRequest.js.map +1 -1
  212. package/dist/types/actions/ens/getEnsAddress.d.ts +2 -2
  213. package/dist/types/actions/ens/getEnsAddress.d.ts.map +1 -1
  214. package/dist/types/actions/ens/getEnsAvatar.d.ts +2 -2
  215. package/dist/types/actions/ens/getEnsAvatar.d.ts.map +1 -1
  216. package/dist/types/actions/ens/getEnsName.d.ts +2 -2
  217. package/dist/types/actions/ens/getEnsName.d.ts.map +1 -1
  218. package/dist/types/actions/ens/getEnsResolver.d.ts +2 -2
  219. package/dist/types/actions/ens/getEnsResolver.d.ts.map +1 -1
  220. package/dist/types/actions/ens/getEnsText.d.ts +2 -2
  221. package/dist/types/actions/ens/getEnsText.d.ts.map +1 -1
  222. package/dist/types/actions/index.d.ts +76 -0
  223. package/dist/types/actions/index.d.ts.map +1 -0
  224. package/dist/types/actions/public/call.d.ts +2 -2
  225. package/dist/types/actions/public/call.d.ts.map +1 -1
  226. package/dist/types/actions/public/createBlockFilter.d.ts +2 -2
  227. package/dist/types/actions/public/createBlockFilter.d.ts.map +1 -1
  228. package/dist/types/actions/public/createContractEventFilter.d.ts +2 -2
  229. package/dist/types/actions/public/createContractEventFilter.d.ts.map +1 -1
  230. package/dist/types/actions/public/createEventFilter.d.ts +2 -2
  231. package/dist/types/actions/public/createEventFilter.d.ts.map +1 -1
  232. package/dist/types/actions/public/createPendingTransactionFilter.d.ts +2 -2
  233. package/dist/types/actions/public/createPendingTransactionFilter.d.ts.map +1 -1
  234. package/dist/types/actions/public/estimateContractGas.d.ts +2 -3
  235. package/dist/types/actions/public/estimateContractGas.d.ts.map +1 -1
  236. package/dist/types/actions/public/estimateGas.d.ts +2 -3
  237. package/dist/types/actions/public/estimateGas.d.ts.map +1 -1
  238. package/dist/types/actions/public/getBalance.d.ts +2 -2
  239. package/dist/types/actions/public/getBalance.d.ts.map +1 -1
  240. package/dist/types/actions/public/getBlock.d.ts +2 -3
  241. package/dist/types/actions/public/getBlock.d.ts.map +1 -1
  242. package/dist/types/actions/public/getBlockNumber.d.ts +4 -4
  243. package/dist/types/actions/public/getBlockNumber.d.ts.map +1 -1
  244. package/dist/types/actions/public/getBlockTransactionCount.d.ts +2 -2
  245. package/dist/types/actions/public/getBlockTransactionCount.d.ts.map +1 -1
  246. package/dist/types/actions/public/getBytecode.d.ts +2 -2
  247. package/dist/types/actions/public/getBytecode.d.ts.map +1 -1
  248. package/dist/types/actions/public/getChainId.d.ts +2 -3
  249. package/dist/types/actions/public/getChainId.d.ts.map +1 -1
  250. package/dist/types/actions/public/getFeeHistory.d.ts +2 -2
  251. package/dist/types/actions/public/getFeeHistory.d.ts.map +1 -1
  252. package/dist/types/actions/public/getFilterChanges.d.ts +2 -2
  253. package/dist/types/actions/public/getFilterChanges.d.ts.map +1 -1
  254. package/dist/types/actions/public/getFilterLogs.d.ts +2 -2
  255. package/dist/types/actions/public/getFilterLogs.d.ts.map +1 -1
  256. package/dist/types/actions/public/getGasPrice.d.ts +2 -3
  257. package/dist/types/actions/public/getGasPrice.d.ts.map +1 -1
  258. package/dist/types/actions/public/getLogs.d.ts +2 -2
  259. package/dist/types/actions/public/getLogs.d.ts.map +1 -1
  260. package/dist/types/actions/public/getStorageAt.d.ts +2 -2
  261. package/dist/types/actions/public/getStorageAt.d.ts.map +1 -1
  262. package/dist/types/actions/public/getTransaction.d.ts +2 -2
  263. package/dist/types/actions/public/getTransaction.d.ts.map +1 -1
  264. package/dist/types/actions/public/getTransactionConfirmations.d.ts +2 -2
  265. package/dist/types/actions/public/getTransactionConfirmations.d.ts.map +1 -1
  266. package/dist/types/actions/public/getTransactionCount.d.ts +2 -3
  267. package/dist/types/actions/public/getTransactionCount.d.ts.map +1 -1
  268. package/dist/types/actions/public/getTransactionReceipt.d.ts +2 -2
  269. package/dist/types/actions/public/getTransactionReceipt.d.ts.map +1 -1
  270. package/dist/types/actions/public/multicall.d.ts +2 -2
  271. package/dist/types/actions/public/multicall.d.ts.map +1 -1
  272. package/dist/types/actions/public/readContract.d.ts +2 -2
  273. package/dist/types/actions/public/readContract.d.ts.map +1 -1
  274. package/dist/types/actions/public/simulateContract.d.ts +2 -2
  275. package/dist/types/actions/public/simulateContract.d.ts.map +1 -1
  276. package/dist/types/actions/public/uninstallFilter.d.ts +2 -2
  277. package/dist/types/actions/public/uninstallFilter.d.ts.map +1 -1
  278. package/dist/types/actions/public/verifyHash.d.ts +2 -2
  279. package/dist/types/actions/public/verifyHash.d.ts.map +1 -1
  280. package/dist/types/actions/public/verifyMessage.d.ts +2 -2
  281. package/dist/types/actions/public/verifyMessage.d.ts.map +1 -1
  282. package/dist/types/actions/public/verifyTypedData.d.ts +2 -2
  283. package/dist/types/actions/public/verifyTypedData.d.ts.map +1 -1
  284. package/dist/types/actions/public/waitForTransactionReceipt.d.ts +2 -2
  285. package/dist/types/actions/public/waitForTransactionReceipt.d.ts.map +1 -1
  286. package/dist/types/actions/public/watchBlockNumber.d.ts +2 -2
  287. package/dist/types/actions/public/watchBlockNumber.d.ts.map +1 -1
  288. package/dist/types/actions/public/watchBlocks.d.ts +2 -2
  289. package/dist/types/actions/public/watchBlocks.d.ts.map +1 -1
  290. package/dist/types/actions/public/watchContractEvent.d.ts +2 -2
  291. package/dist/types/actions/public/watchContractEvent.d.ts.map +1 -1
  292. package/dist/types/actions/public/watchEvent.d.ts +2 -2
  293. package/dist/types/actions/public/watchEvent.d.ts.map +1 -1
  294. package/dist/types/actions/public/watchPendingTransactions.d.ts +2 -2
  295. package/dist/types/actions/public/watchPendingTransactions.d.ts.map +1 -1
  296. package/dist/types/actions/test/dropTransaction.d.ts +2 -1
  297. package/dist/types/actions/test/dropTransaction.d.ts.map +1 -1
  298. package/dist/types/actions/test/getAutomine.d.ts +2 -1
  299. package/dist/types/actions/test/getAutomine.d.ts.map +1 -1
  300. package/dist/types/actions/test/getTxpoolContent.d.ts +2 -1
  301. package/dist/types/actions/test/getTxpoolContent.d.ts.map +1 -1
  302. package/dist/types/actions/test/getTxpoolStatus.d.ts +2 -1
  303. package/dist/types/actions/test/getTxpoolStatus.d.ts.map +1 -1
  304. package/dist/types/actions/test/impersonateAccount.d.ts +2 -1
  305. package/dist/types/actions/test/impersonateAccount.d.ts.map +1 -1
  306. package/dist/types/actions/test/increaseTime.d.ts +2 -1
  307. package/dist/types/actions/test/increaseTime.d.ts.map +1 -1
  308. package/dist/types/actions/test/inspectTxpool.d.ts +2 -1
  309. package/dist/types/actions/test/inspectTxpool.d.ts.map +1 -1
  310. package/dist/types/actions/test/mine.d.ts +2 -1
  311. package/dist/types/actions/test/mine.d.ts.map +1 -1
  312. package/dist/types/actions/test/removeBlockTimestampInterval.d.ts +2 -1
  313. package/dist/types/actions/test/removeBlockTimestampInterval.d.ts.map +1 -1
  314. package/dist/types/actions/test/reset.d.ts +2 -1
  315. package/dist/types/actions/test/reset.d.ts.map +1 -1
  316. package/dist/types/actions/test/revert.d.ts +2 -1
  317. package/dist/types/actions/test/revert.d.ts.map +1 -1
  318. package/dist/types/actions/test/sendUnsignedTransaction.d.ts +2 -1
  319. package/dist/types/actions/test/sendUnsignedTransaction.d.ts.map +1 -1
  320. package/dist/types/actions/test/setAutomine.d.ts +2 -1
  321. package/dist/types/actions/test/setAutomine.d.ts.map +1 -1
  322. package/dist/types/actions/test/setBalance.d.ts +2 -1
  323. package/dist/types/actions/test/setBalance.d.ts.map +1 -1
  324. package/dist/types/actions/test/setBlockGasLimit.d.ts +2 -1
  325. package/dist/types/actions/test/setBlockGasLimit.d.ts.map +1 -1
  326. package/dist/types/actions/test/setBlockTimestampInterval.d.ts +2 -1
  327. package/dist/types/actions/test/setBlockTimestampInterval.d.ts.map +1 -1
  328. package/dist/types/actions/test/setCode.d.ts +2 -1
  329. package/dist/types/actions/test/setCode.d.ts.map +1 -1
  330. package/dist/types/actions/test/setCoinbase.d.ts +2 -1
  331. package/dist/types/actions/test/setCoinbase.d.ts.map +1 -1
  332. package/dist/types/actions/test/setIntervalMining.d.ts +2 -1
  333. package/dist/types/actions/test/setIntervalMining.d.ts.map +1 -1
  334. package/dist/types/actions/test/setLoggingEnabled.d.ts +2 -1
  335. package/dist/types/actions/test/setLoggingEnabled.d.ts.map +1 -1
  336. package/dist/types/actions/test/setMinGasPrice.d.ts +2 -1
  337. package/dist/types/actions/test/setMinGasPrice.d.ts.map +1 -1
  338. package/dist/types/actions/test/setNextBlockBaseFeePerGas.d.ts +2 -1
  339. package/dist/types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +1 -1
  340. package/dist/types/actions/test/setNextBlockTimestamp.d.ts +2 -1
  341. package/dist/types/actions/test/setNextBlockTimestamp.d.ts.map +1 -1
  342. package/dist/types/actions/test/setNonce.d.ts +2 -1
  343. package/dist/types/actions/test/setNonce.d.ts.map +1 -1
  344. package/dist/types/actions/test/setRpcUrl.d.ts +2 -1
  345. package/dist/types/actions/test/setRpcUrl.d.ts.map +1 -1
  346. package/dist/types/actions/test/setStorageAt.d.ts +2 -1
  347. package/dist/types/actions/test/setStorageAt.d.ts.map +1 -1
  348. package/dist/types/actions/test/snapshot.d.ts +2 -1
  349. package/dist/types/actions/test/snapshot.d.ts.map +1 -1
  350. package/dist/types/actions/test/stopImpersonatingAccount.d.ts +2 -1
  351. package/dist/types/actions/test/stopImpersonatingAccount.d.ts.map +1 -1
  352. package/dist/types/actions/wallet/addChain.d.ts +2 -2
  353. package/dist/types/actions/wallet/addChain.d.ts.map +1 -1
  354. package/dist/types/actions/wallet/deployContract.d.ts +2 -2
  355. package/dist/types/actions/wallet/deployContract.d.ts.map +1 -1
  356. package/dist/types/actions/wallet/getAddresses.d.ts +2 -2
  357. package/dist/types/actions/wallet/getAddresses.d.ts.map +1 -1
  358. package/dist/types/actions/wallet/getPermissions.d.ts +2 -2
  359. package/dist/types/actions/wallet/getPermissions.d.ts.map +1 -1
  360. package/dist/types/actions/wallet/requestAddresses.d.ts +2 -2
  361. package/dist/types/actions/wallet/requestAddresses.d.ts.map +1 -1
  362. package/dist/types/actions/wallet/requestPermissions.d.ts +2 -2
  363. package/dist/types/actions/wallet/requestPermissions.d.ts.map +1 -1
  364. package/dist/types/actions/wallet/sendTransaction.d.ts +2 -2
  365. package/dist/types/actions/wallet/sendTransaction.d.ts.map +1 -1
  366. package/dist/types/actions/wallet/signMessage.d.ts +2 -2
  367. package/dist/types/actions/wallet/signMessage.d.ts.map +1 -1
  368. package/dist/types/actions/wallet/signTypedData.d.ts +2 -2
  369. package/dist/types/actions/wallet/signTypedData.d.ts.map +1 -1
  370. package/dist/types/actions/wallet/switchChain.d.ts +2 -2
  371. package/dist/types/actions/wallet/switchChain.d.ts.map +1 -1
  372. package/dist/types/actions/wallet/watchAsset.d.ts +2 -2
  373. package/dist/types/actions/wallet/watchAsset.d.ts.map +1 -1
  374. package/dist/types/actions/wallet/writeContract.d.ts +2 -2
  375. package/dist/types/actions/wallet/writeContract.d.ts.map +1 -1
  376. package/dist/types/clients/createClient.d.ts +35 -3
  377. package/dist/types/clients/createClient.d.ts.map +1 -1
  378. package/dist/types/clients/createPublicClient.d.ts +3 -15
  379. package/dist/types/clients/createPublicClient.d.ts.map +1 -1
  380. package/dist/types/clients/createTestClient.d.ts +6 -3
  381. package/dist/types/clients/createTestClient.d.ts.map +1 -1
  382. package/dist/types/clients/createWalletClient.d.ts +5 -10
  383. package/dist/types/clients/createWalletClient.d.ts.map +1 -1
  384. package/dist/types/clients/decorators/public.d.ts +524 -5
  385. package/dist/types/clients/decorators/public.d.ts.map +1 -1
  386. package/dist/types/clients/decorators/test.d.ts +6 -2
  387. package/dist/types/clients/decorators/test.d.ts.map +1 -1
  388. package/dist/types/clients/decorators/wallet.d.ts +520 -2
  389. package/dist/types/clients/decorators/wallet.d.ts.map +1 -1
  390. package/dist/types/errors/version.d.ts +1 -1
  391. package/dist/types/index.d.ts +6 -2
  392. package/dist/types/index.d.ts.map +1 -1
  393. package/dist/types/types/account.d.ts +2 -2
  394. package/dist/types/types/account.d.ts.map +1 -1
  395. package/dist/types/utils/ccip.d.ts +2 -2
  396. package/dist/types/utils/ccip.d.ts.map +1 -1
  397. package/dist/types/utils/ens/avatar/parseAvatarRecord.d.ts +2 -2
  398. package/dist/types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -1
  399. package/dist/types/utils/ens/avatar/utils.d.ts +2 -2
  400. package/dist/types/utils/ens/avatar/utils.d.ts.map +1 -1
  401. package/dist/types/utils/filters/createFilterRequestScope.d.ts +4 -3
  402. package/dist/types/utils/filters/createFilterRequestScope.d.ts.map +1 -1
  403. package/dist/types/utils/formatters/transaction.d.ts +1 -1
  404. package/dist/types/utils/transaction/prepareRequest.d.ts +2 -3
  405. package/dist/types/utils/transaction/prepareRequest.d.ts.map +1 -1
  406. package/package.json +11 -2
  407. package/src/actions/ens/getEnsAddress.ts +2 -2
  408. package/src/actions/ens/getEnsAvatar.ts +2 -2
  409. package/src/actions/ens/getEnsName.ts +2 -2
  410. package/src/actions/ens/getEnsResolver.ts +2 -2
  411. package/src/actions/ens/getEnsText.ts +2 -2
  412. package/src/actions/index.ts +324 -0
  413. package/src/actions/public/call.ts +4 -4
  414. package/src/actions/public/createBlockFilter.ts +2 -2
  415. package/src/actions/public/createContractEventFilter.ts +2 -2
  416. package/src/actions/public/createEventFilter.ts +2 -2
  417. package/src/actions/public/createPendingTransactionFilter.ts +2 -2
  418. package/src/actions/public/estimateContractGas.ts +2 -6
  419. package/src/actions/public/estimateGas.ts +4 -7
  420. package/src/actions/public/getBalance.ts +2 -2
  421. package/src/actions/public/getBlock.ts +4 -7
  422. package/src/actions/public/getBlockNumber.ts +2 -2
  423. package/src/actions/public/getBlockTransactionCount.ts +2 -2
  424. package/src/actions/public/getBytecode.ts +2 -2
  425. package/src/actions/public/getChainId.ts +3 -8
  426. package/src/actions/public/getFeeHistory.ts +2 -2
  427. package/src/actions/public/getFilterChanges.ts +2 -2
  428. package/src/actions/public/getFilterLogs.ts +2 -2
  429. package/src/actions/public/getGasPrice.ts +3 -8
  430. package/src/actions/public/getLogs.ts +2 -2
  431. package/src/actions/public/getStorageAt.ts +2 -2
  432. package/src/actions/public/getTransaction.ts +2 -2
  433. package/src/actions/public/getTransactionConfirmations.ts +2 -2
  434. package/src/actions/public/getTransactionCount.ts +3 -6
  435. package/src/actions/public/getTransactionReceipt.ts +2 -2
  436. package/src/actions/public/multicall.ts +3 -2
  437. package/src/actions/public/readContract.ts +2 -2
  438. package/src/actions/public/simulateContract.ts +2 -2
  439. package/src/actions/public/uninstallFilter.ts +2 -2
  440. package/src/actions/public/verifyHash.ts +2 -2
  441. package/src/actions/public/verifyMessage.ts +2 -2
  442. package/src/actions/public/verifyTypedData.ts +3 -3
  443. package/src/actions/public/waitForTransactionReceipt.ts +2 -2
  444. package/src/actions/public/watchBlockNumber.ts +2 -2
  445. package/src/actions/public/watchBlocks.ts +2 -2
  446. package/src/actions/public/watchContractEvent.ts +2 -2
  447. package/src/actions/public/watchEvent.ts +2 -2
  448. package/src/actions/public/watchPendingTransactions.ts +2 -2
  449. package/src/actions/test/dropTransaction.ts +6 -2
  450. package/src/actions/test/getAutomine.ts +6 -2
  451. package/src/actions/test/getTxpoolContent.ts +6 -2
  452. package/src/actions/test/getTxpoolStatus.ts +6 -2
  453. package/src/actions/test/impersonateAccount.ts +6 -2
  454. package/src/actions/test/increaseTime.ts +6 -2
  455. package/src/actions/test/inspectTxpool.ts +6 -2
  456. package/src/actions/test/mine.ts +6 -2
  457. package/src/actions/test/removeBlockTimestampInterval.ts +3 -1
  458. package/src/actions/test/reset.ts +6 -2
  459. package/src/actions/test/revert.ts +6 -2
  460. package/src/actions/test/sendUnsignedTransaction.ts +3 -1
  461. package/src/actions/test/setAutomine.ts +6 -2
  462. package/src/actions/test/setBalance.ts +6 -2
  463. package/src/actions/test/setBlockGasLimit.ts +6 -2
  464. package/src/actions/test/setBlockTimestampInterval.ts +3 -1
  465. package/src/actions/test/setCode.ts +6 -2
  466. package/src/actions/test/setCoinbase.ts +6 -2
  467. package/src/actions/test/setIntervalMining.ts +6 -2
  468. package/src/actions/test/setLoggingEnabled.ts +6 -2
  469. package/src/actions/test/setMinGasPrice.ts +6 -2
  470. package/src/actions/test/setNextBlockBaseFeePerGas.ts +3 -1
  471. package/src/actions/test/setNextBlockTimestamp.ts +6 -2
  472. package/src/actions/test/setNonce.ts +6 -2
  473. package/src/actions/test/setRpcUrl.ts +6 -2
  474. package/src/actions/test/setStorageAt.ts +6 -2
  475. package/src/actions/test/snapshot.ts +5 -3
  476. package/src/actions/test/stopImpersonatingAccount.ts +3 -1
  477. package/src/actions/wallet/addChain.ts +2 -5
  478. package/src/actions/wallet/deployContract.ts +2 -2
  479. package/src/actions/wallet/getAddresses.ts +2 -2
  480. package/src/actions/wallet/getPermissions.ts +2 -2
  481. package/src/actions/wallet/requestAddresses.ts +2 -2
  482. package/src/actions/wallet/requestPermissions.ts +2 -2
  483. package/src/actions/wallet/sendTransaction.ts +2 -2
  484. package/src/actions/wallet/signMessage.ts +2 -2
  485. package/src/actions/wallet/signTypedData.ts +2 -2
  486. package/src/actions/wallet/switchChain.ts +2 -5
  487. package/src/actions/wallet/watchAsset.ts +2 -2
  488. package/src/actions/wallet/writeContract.ts +2 -2
  489. package/src/clients/createClient.ts +83 -6
  490. package/src/clients/createPublicClient.ts +18 -38
  491. package/src/clients/createTestClient.ts +34 -23
  492. package/src/clients/createWalletClient.ts +22 -41
  493. package/src/clients/decorators/public.ts +10 -12
  494. package/src/clients/decorators/test.ts +56 -36
  495. package/src/clients/decorators/wallet.ts +3 -9
  496. package/src/errors/version.ts +1 -1
  497. package/src/index.ts +20 -4
  498. package/src/types/account.ts +9 -5
  499. package/src/utils/ccip.ts +3 -3
  500. package/src/utils/ens/avatar/parseAvatarRecord.ts +3 -3
  501. package/src/utils/ens/avatar/utils.ts +2 -2
  502. package/src/utils/filters/createFilterRequestScope.ts +4 -3
  503. package/src/utils/transaction/prepareRequest.ts +2 -5
@@ -1,12 +1,12 @@
1
1
  import type { Address } from 'abitype';
2
2
  import type { Account, JsonRpcAccount } from '../accounts/types.js';
3
- import type { IsUndefined } from './utils.js';
3
+ import type { IsUndefined, Prettify } from './utils.js';
4
4
  export type GetAccountParameter<TAccount extends Account | undefined = Account | undefined> = IsUndefined<TAccount> extends true ? {
5
5
  account: Account | Address;
6
6
  } : {
7
7
  account?: Account | Address;
8
8
  };
9
- export type ParseAccount<TAccount extends Account | Address | undefined> = (TAccount extends Account ? TAccount : never) | (TAccount extends Address ? JsonRpcAccount : never) | (TAccount extends undefined ? undefined : never);
9
+ export type ParseAccount<TAccountOrAddress extends Account | Address | undefined = Account | Address | undefined> = TAccountOrAddress extends Address ? Prettify<JsonRpcAccount<TAccountOrAddress>> : TAccountOrAddress;
10
10
  export type { Account, AccountSource, CustomSource, HDAccount, HDOptions, JsonRpcAccount, LocalAccount, PrivateKeyAccount, } from '../accounts/types.js';
11
11
  export type { HDKey } from '@scure/bip32';
12
12
  //# sourceMappingURL=account.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/types/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAE7C,MAAM,MAAM,mBAAmB,CAC7B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAClC;IAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAA;CAAE,GAC9B;IAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;CAAE,CAAA;AAEnC,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,OAAO,GAAG,OAAO,GAAG,SAAS,IACnE,CAAC,QAAQ,SAAS,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC,GAC7C,CAAC,QAAQ,SAAS,OAAO,GAAG,cAAc,GAAG,KAAK,CAAC,GACnD,CAAC,QAAQ,SAAS,SAAS,GAAG,SAAS,GAAG,KAAK,CAAC,CAAA;AAEpD,YAAY,EACV,OAAO,EACP,aAAa,EACb,YAAY,EACZ,SAAS,EACT,SAAS,EACT,cAAc,EACd,YAAY,EACZ,iBAAiB,GAClB,MAAM,sBAAsB,CAAA;AAC7B,YAAY,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/types/account.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAEnE,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAEvD,MAAM,MAAM,mBAAmB,CAC7B,QAAQ,SAAS,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,IACxD,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAClC;IAAE,OAAO,EAAE,OAAO,GAAG,OAAO,CAAA;CAAE,GAC9B;IAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;CAAE,CAAA;AAEnC,MAAM,MAAM,YAAY,CACtB,iBAAiB,SAAS,OAAO,GAAG,OAAO,GAAG,SAAS,GACnD,OAAO,GACP,OAAO,GACP,SAAS,IACX,iBAAiB,SAAS,OAAO,GACjC,QAAQ,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC,GAC3C,iBAAiB,CAAA;AAErB,YAAY,EACV,OAAO,EACP,aAAa,EACb,YAAY,EACZ,SAAS,EACT,SAAS,EACT,cAAc,EACd,YAAY,EACZ,iBAAiB,GAClB,MAAM,sBAAsB,CAAA;AAC7B,YAAY,EAAE,KAAK,EAAE,MAAM,cAAc,CAAA"}
@@ -1,9 +1,9 @@
1
1
  import type { Address } from 'abitype';
2
2
  import { type CallParameters } from '../actions/public/call.js';
3
- import type { PublicClient } from '../clients/createPublicClient.js';
4
3
  import type { Transport } from '../clients/transports/createTransport.js';
5
4
  import type { Chain } from '../types/chain.js';
6
5
  import type { Hex } from '../types/misc.js';
6
+ import type { Client } from '../clients/createClient.js';
7
7
  export declare const offchainLookupSignature = "0x556f1830";
8
8
  export declare const offchainLookupAbiItem: {
9
9
  readonly name: "OffchainLookup";
@@ -25,7 +25,7 @@ export declare const offchainLookupAbiItem: {
25
25
  readonly type: "bytes";
26
26
  }];
27
27
  };
28
- export declare function offchainLookup<TChain extends Chain | undefined>(client: PublicClient<Transport, TChain>, { blockNumber, blockTag, data, to, }: Pick<CallParameters, 'blockNumber' | 'blockTag'> & {
28
+ export declare function offchainLookup<TChain extends Chain | undefined>(client: Client<Transport, TChain>, { blockNumber, blockTag, data, to, }: Pick<CallParameters, 'blockNumber' | 'blockTag'> & {
29
29
  data: Hex;
30
30
  to: Address;
31
31
  }): Promise<Hex>;
@@ -1 +1 @@
1
- {"version":3,"file":"ccip.d.ts","sourceRoot":"","sources":["../../../src/utils/ccip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAO,OAAO,EAAE,MAAM,SAAS,CAAA;AAE3C,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,2BAA2B,CAAA;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAA;AAQzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAE9C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAS3C,eAAO,MAAM,uBAAuB,eAAe,CAAA;AACnD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;CAyBF,CAAA;AAEhC,wBAAsB,cAAc,CAAC,MAAM,SAAS,KAAK,GAAG,SAAS,EACnE,MAAM,EAAE,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,EACvC,EACE,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,EAAE,GACH,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,GAAG,UAAU,CAAC,GAAG;IACpD,IAAI,EAAE,GAAG,CAAA;IACT,EAAE,EAAE,OAAO,CAAA;CACZ,GACA,OAAO,CAAC,GAAG,CAAC,CAwCd;AAED,wBAAsB,SAAS,CAAC,EAC9B,IAAI,EACJ,MAAM,EACN,IAAI,GACL,EAAE;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,0BAyDzD"}
1
+ {"version":3,"file":"ccip.d.ts","sourceRoot":"","sources":["../../../src/utils/ccip.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAO,OAAO,EAAE,MAAM,SAAS,CAAA;AAE3C,OAAO,EAAE,KAAK,cAAc,EAAQ,MAAM,2BAA2B,CAAA;AACrE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,0CAA0C,CAAA;AAQzE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAA;AAE9C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAE3C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AAQxD,eAAO,MAAM,uBAAuB,eAAe,CAAA;AACnD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;CAyBF,CAAA;AAEhC,wBAAsB,cAAc,CAAC,MAAM,SAAS,KAAK,GAAG,SAAS,EACnE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,EACjC,EACE,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,EAAE,GACH,EAAE,IAAI,CAAC,cAAc,EAAE,aAAa,GAAG,UAAU,CAAC,GAAG;IACpD,IAAI,EAAE,GAAG,CAAA;IACT,EAAE,EAAE,OAAO,CAAA;CACZ,GACA,OAAO,CAAC,GAAG,CAAC,CAwCd;AAED,wBAAsB,SAAS,CAAC,EAC9B,IAAI,EACJ,MAAM,EACN,IAAI,GACL,EAAE;IAAE,IAAI,EAAE,GAAG,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,0BAyDzD"}
@@ -1,8 +1,8 @@
1
- import type { PublicClient } from '../../../clients/createPublicClient.js';
1
+ import type { Client } from '../../../clients/createClient.js';
2
2
  import type { Transport } from '../../../clients/transports/createTransport.js';
3
3
  import type { Chain } from '../../../types/chain.js';
4
4
  import type { AssetGatewayUrls } from '../../../types/ens.js';
5
- export declare function parseAvatarRecord<TChain extends Chain | undefined>(client: PublicClient<Transport, TChain>, { gatewayUrls, record, }: {
5
+ export declare function parseAvatarRecord<TChain extends Chain | undefined>(client: Client<Transport, TChain>, { gatewayUrls, record, }: {
6
6
  gatewayUrls?: AssetGatewayUrls;
7
7
  record: string;
8
8
  }): Promise<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"parseAvatarRecord.d.ts","sourceRoot":"","sources":["../../../../../src/utils/ens/avatar/parseAvatarRecord.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAC/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAW7D,wBAAsB,iBAAiB,CAAC,MAAM,SAAS,KAAK,GAAG,SAAS,EACtE,MAAM,EAAE,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,EACvC,EACE,WAAW,EACX,MAAM,GACP,EAAE;IACD,WAAW,CAAC,EAAE,gBAAgB,CAAA;IAC9B,MAAM,EAAE,MAAM,CAAA;CACf,GACA,OAAO,CAAC,MAAM,CAAC,CAIjB"}
1
+ {"version":3,"file":"parseAvatarRecord.d.ts","sourceRoot":"","sources":["../../../../../src/utils/ens/avatar/parseAvatarRecord.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAC/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAW7D,wBAAsB,iBAAiB,CAAC,MAAM,SAAS,KAAK,GAAG,SAAS,EACtE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,EACjC,EACE,WAAW,EACX,MAAM,GACP,EAAE;IACD,WAAW,CAAC,EAAE,gBAAgB,CAAA;IAC9B,MAAM,EAAE,MAAM,CAAA;CACf,GACA,OAAO,CAAC,MAAM,CAAC,CAIjB"}
@@ -1,5 +1,5 @@
1
1
  import type { Address } from 'abitype';
2
- import type { PublicClient } from '../../../clients/createPublicClient.js';
2
+ import type { Client } from '../../../clients/createClient.js';
3
3
  import type { Transport } from '../../../clients/transports/createTransport.js';
4
4
  import type { Chain } from '../../../types/chain.js';
5
5
  import type { AssetGatewayUrls } from '../../../types/ens.js';
@@ -30,7 +30,7 @@ type ParsedNft = {
30
30
  tokenID: string;
31
31
  };
32
32
  export declare function parseNftUri(uri: string): ParsedNft;
33
- export declare function getNftTokenUri<TChain extends Chain | undefined>(client: PublicClient<Transport, TChain>, { nft }: {
33
+ export declare function getNftTokenUri<TChain extends Chain | undefined>(client: Client<Transport, TChain>, { nft }: {
34
34
  nft: ParsedNft;
35
35
  }): Promise<string>;
36
36
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/utils/ens/avatar/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAGtC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gDAAgD,CAAA;AAO/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAE7D,KAAK,OAAO,GAAG;IACb,GAAG,EAAE,MAAM,CAAA;IACX,SAAS,EAAE,OAAO,CAAA;IAClB,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AASD,wBAAsB,UAAU,CAAC,GAA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AA;CAChB,CAAA;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CA+BlD;AAED,wBAAsB,cAAc,CAAC,MAAM,SAAS,KAAK,GAAG,SAAS,EACnE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,EACjC,EAAE,GAAG,EAAE,EAAE;IAAE,GAAG,EAAE,SAAS,CAAA;CAAE,mBAmC5B"}
@@ -1,7 +1,8 @@
1
- import type { PublicClient } from '../../clients/createPublicClient.js';
1
+ import type { Client } from '../../clients/createClient.js';
2
2
  import type { Transport } from '../../clients/transports/createTransport.js';
3
3
  import type { Chain } from '../../types/chain.js';
4
- import type { EIP1193RequestFn, PublicRpcSchema } from '../../types/eip1193.js';
4
+ import type { PublicRpcSchema } from '../../types/eip1193.js';
5
+ import type { EIP1193RequestFn } from '../../types/eip1193.js';
5
6
  import type { Hex } from '../../types/misc.js';
6
7
  import type { Filter } from '../../types/utils.js';
7
8
  type CreateFilterRequestScopeParameters = {
@@ -16,6 +17,6 @@ type CreateFilterRequestScopeReturnType = (id: Hex) => EIP1193RequestFn<FilterRp
16
17
  * listen for responses and scope the child transport `request` function
17
18
  * to the successful filter ID.
18
19
  */
19
- export declare function createFilterRequestScope<TChain extends Chain | undefined>(client: PublicClient<Transport, TChain>, { method }: CreateFilterRequestScopeParameters): CreateFilterRequestScopeReturnType;
20
+ export declare function createFilterRequestScope<TChain extends Chain | undefined>(client: Client<Transport, TChain>, { method }: CreateFilterRequestScopeParameters): CreateFilterRequestScopeReturnType;
20
21
  export {};
21
22
  //# sourceMappingURL=createFilterRequestScope.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"createFilterRequestScope.d.ts","sourceRoot":"","sources":["../../../../src/utils/filters/createFilterRequestScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAE5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC/E,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAElD,KAAK,kCAAkC,GAAG;IACxC,MAAM,EACF,eAAe,GACf,iCAAiC,GACjC,oBAAoB,CAAA;CACzB,CAAA;AAED,KAAK,eAAe,GAAG,MAAM,CAC3B,eAAe,EACf;IAAE,MAAM,EAAE,mBAAmB,GAAG,sBAAsB,CAAA;CAAE,CACzD,CAAA;AAED,KAAK,kCAAkC,GAAG,CACxC,EAAE,EAAE,GAAG,KACJ,gBAAgB,CAAC,eAAe,CAAC,CAAA;AAEtC;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,SAAS,KAAK,GAAG,SAAS,EACvE,MAAM,EAAE,YAAY,CAAC,SAAS,EAAE,MAAM,CAAC,EACvC,EAAE,MAAM,EAAE,EAAE,kCAAkC,GAC7C,kCAAkC,CAkBpC"}
1
+ {"version":3,"file":"createFilterRequestScope.d.ts","sourceRoot":"","sources":["../../../../src/utils/filters/createFilterRequestScope.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAC3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAE5E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAC9C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAElD,KAAK,kCAAkC,GAAG;IACxC,MAAM,EACF,eAAe,GACf,iCAAiC,GACjC,oBAAoB,CAAA;CACzB,CAAA;AAED,KAAK,eAAe,GAAG,MAAM,CAC3B,eAAe,EACf;IAAE,MAAM,EAAE,mBAAmB,GAAG,sBAAsB,CAAA;CAAE,CACzD,CAAA;AAED,KAAK,kCAAkC,GAAG,CACxC,EAAE,EAAE,GAAG,KACJ,gBAAgB,CAAC,eAAe,CAAC,CAAA;AAEtC;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,MAAM,SAAS,KAAK,GAAG,SAAS,EACvE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,EACjC,EAAE,MAAM,EAAE,EAAE,kCAAkC,GAC7C,kCAAkC,CAkBpC"}
@@ -9,7 +9,7 @@ export declare const transactionType: {
9
9
  readonly '0x2': "eip1559";
10
10
  };
11
11
  export declare function formatTransaction(transaction: Partial<RpcTransaction>): Transaction;
12
- export declare const defineTransaction: <TOverrideParameters, TOverrideReturnType, TExclude extends ("type" | "from" | "gas" | "nonce" | "to" | "value" | "r" | "s" | "v" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "accessList" | "chainId" | "hash" | "blockNumber" | "blockHash" | "transactionIndex" | "input" | "typeHex")[] = []>({ exclude, format: overrides, }: {
12
+ export declare const defineTransaction: <TOverrideParameters, TOverrideReturnType, TExclude extends ("type" | "from" | "gas" | "nonce" | "to" | "value" | "r" | "s" | "v" | "gasPrice" | "maxFeePerGas" | "maxPriorityFeePerGas" | "accessList" | "chainId" | "blockNumber" | "blockHash" | "hash" | "input" | "transactionIndex" | "typeHex")[] = []>({ exclude, format: overrides, }: {
13
13
  exclude?: TExclude | undefined;
14
14
  format: (_: TOverrideParameters) => TOverrideReturnType;
15
15
  }) => {
@@ -1,8 +1,7 @@
1
1
  import type { Address } from 'abitype';
2
2
  import type { Account } from '../../accounts/types.js';
3
3
  import type { SendTransactionParameters } from '../../actions/wallet/sendTransaction.js';
4
- import type { PublicClient } from '../../clients/createPublicClient.js';
5
- import type { WalletClient } from '../../clients/createWalletClient.js';
4
+ import type { Client } from '../../clients/createClient.js';
6
5
  import type { Transport } from '../../clients/transports/createTransport.js';
7
6
  import type { GetAccountParameter } from '../../types/account.js';
8
7
  import type { Chain } from '../../types/chain.js';
@@ -22,5 +21,5 @@ export type PrepareRequestReturnType<TAccount extends Account | undefined = unde
22
21
  nonce: SendTransactionParameters['nonce'];
23
22
  };
24
23
  export declare const defaultTip = 1500000000n;
25
- export declare function prepareRequest<TChain extends Chain | undefined, TAccount extends Account | undefined, TParameters extends PrepareRequestParameters<TAccount>>(client: WalletClient<Transport, TChain, TAccount> | PublicClient<Transport, TChain>, args: TParameters): Promise<PrepareRequestReturnType<TAccount, TParameters>>;
24
+ export declare function prepareRequest<TChain extends Chain | undefined, TAccount extends Account | undefined, TParameters extends PrepareRequestParameters<TAccount>>(client: Client<Transport, TChain, TAccount>, args: TParameters): Promise<PrepareRequestReturnType<TAccount, TParameters>>;
26
25
  //# sourceMappingURL=prepareRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prepareRequest.d.ts","sourceRoot":"","sources":["../../../../src/utils/transaction/prepareRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AAEtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAStD,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAA;AACxF,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAA;AACvE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAA;AAG5E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AACjE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AA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Q,CAAC,EAAE,yBAAyB,CAAC,UAAU,CAAC,CAAA;IAChD,YAAY,CAAC,EAAE,yBAAyB,CAAC,cAAc,CAAC,CAAA;IACxD,oBAAoB,CAAC,EAAE,yBAAyB,CAAC,sBAAsB,CAAC,CAAA;IACxE,KAAK,EAAE,yBAAyB,CAAC,OAAO,CAAC,CAAA;CAC1C,CAAA;AAED,eAAO,MAAM,UAAU,cAAiB,CAAA;AAExC,wBAAsB,cAAc,CAClC,MAAM,SAAS,KAAK,GAAG,SAAS,EAChC,QAAQ,SAAS,OAAO,GAAG,SAAS,EACpC,WAAW,SAAS,wBAAwB,CAAC,QAAQ,CAAC,EAEtD,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC3C,IAAI,EAAE,WAAW,GAChB,OAAO,CAAC,wBAAwB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAiE1D"}
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "peerDependencies": {
16
16
  "typescript": ">=5.0.4"
17
17
  },
18
- "version": "1.1.8",
18
+ "version": "1.2.1",
19
19
  "files": [
20
20
  "dist",
21
21
  "!dist/**/*.tsbuildinfo",
@@ -26,6 +26,7 @@
26
26
  "!src/_test/**/*",
27
27
  "abi",
28
28
  "accounts",
29
+ "actions",
29
30
  "chains",
30
31
  "contract",
31
32
  "ens",
@@ -51,6 +52,11 @@
51
52
  "import": "./dist/esm/accounts/index.js",
52
53
  "default": "./dist/cjs/accounts/index.js"
53
54
  },
55
+ "./actions": {
56
+ "types": "./dist/types/actions/index.d.ts",
57
+ "import": "./dist/esm/actions/index.js",
58
+ "default": "./dist/cjs/actions/index.js"
59
+ },
54
60
  "./chains": {
55
61
  "types": "./dist/types/chains/index.d.ts",
56
62
  "import": "./dist/esm/chains/index.js",
@@ -105,8 +111,11 @@
105
111
  "accounts": [
106
112
  "./dist/types/accounts/index.d.ts"
107
113
  ],
114
+ "actions": [
115
+ "./dist/types/actions/index.d.ts"
116
+ ],
108
117
  "chains": [
109
- "./dist/types/chains/index.d.ts"
118
+ "./dist/types/chains.d.ts"
110
119
  ],
111
120
  "contract": [
112
121
  "./dist/types/contract.d.ts"
@@ -1,6 +1,6 @@
1
1
  import type { Address } from 'abitype'
2
2
 
3
- import type { PublicClient } from '../../clients/createPublicClient.js'
3
+ import type { Client } from '../../clients/createClient.js'
4
4
  import type { Transport } from '../../clients/transports/createTransport.js'
5
5
  import {
6
6
  singleAddressResolverAbi,
@@ -64,7 +64,7 @@ export type GetEnsAddressReturnType = Address | null
64
64
  * // '0xd2135CfB216b74109775236E36d4b433F1DF507B'
65
65
  */
66
66
  export async function getEnsAddress<TChain extends Chain | undefined,>(
67
- client: PublicClient<Transport, TChain>,
67
+ client: Client<Transport, TChain>,
68
68
  {
69
69
  blockNumber,
70
70
  blockTag,
@@ -1,4 +1,4 @@
1
- import type { PublicClient } from '../../clients/createPublicClient.js'
1
+ import type { Client } from '../../clients/createClient.js'
2
2
  import type { Transport } from '../../clients/transports/createTransport.js'
3
3
  import type { Chain } from '../../types/chain.js'
4
4
  import type { AssetGatewayUrls } from '../../types/ens.js'
@@ -45,7 +45,7 @@ export type GetEnsAvatarReturnType = string | null
45
45
  * // 'https://ipfs.io/ipfs/Qma8mnp6xV3J2cRNf3mTth5C8nV11CAnceVinc3y8jSbio'
46
46
  */
47
47
  export async function getEnsAvatar<TChain extends Chain | undefined>(
48
- client: PublicClient<Transport, TChain>,
48
+ client: Client<Transport, TChain>,
49
49
  {
50
50
  blockNumber,
51
51
  blockTag,
@@ -1,6 +1,6 @@
1
1
  import type { Address } from 'abitype'
2
2
 
3
- import type { PublicClient } from '../../clients/createPublicClient.js'
3
+ import type { Client } from '../../clients/createClient.js'
4
4
  import type { Transport } from '../../clients/transports/createTransport.js'
5
5
  import { panicReasons } from '../../constants/solidity.js'
6
6
  import {
@@ -55,7 +55,7 @@ export type GetEnsNameReturnType = string | null
55
55
  * // 'wagmi-dev.eth'
56
56
  */
57
57
  export async function getEnsName<TChain extends Chain | undefined>(
58
- client: PublicClient<Transport, TChain>,
58
+ client: Client<Transport, TChain>,
59
59
  {
60
60
  address,
61
61
  blockNumber,
@@ -1,6 +1,6 @@
1
1
  import type { Address } from 'abitype'
2
2
 
3
- import type { PublicClient } from '../../clients/createPublicClient.js'
3
+ import type { Client } from '../../clients/createClient.js'
4
4
  import type { Transport } from '../../clients/transports/createTransport.js'
5
5
  import type { Chain } from '../../types/chain.js'
6
6
  import type { Prettify } from '../../types/utils.js'
@@ -52,7 +52,7 @@ export type GetEnsResolverReturnType = Address
52
52
  * // '0x4976fb03C32e5B8cfe2b6cCB31c09Ba78EBaBa41'
53
53
  */
54
54
  export async function getEnsResolver<TChain extends Chain | undefined>(
55
- client: PublicClient<Transport, TChain>,
55
+ client: Client<Transport, TChain>,
56
56
  {
57
57
  blockNumber,
58
58
  blockTag,
@@ -1,6 +1,6 @@
1
1
  import type { Address } from 'abitype'
2
2
 
3
- import type { PublicClient } from '../../clients/createPublicClient.js'
3
+ import type { Client } from '../../clients/createClient.js'
4
4
  import type { Transport } from '../../clients/transports/createTransport.js'
5
5
  import { textResolverAbi, universalResolverAbi } from '../../constants/abis.js'
6
6
  import type { Chain } from '../../types/chain.js'
@@ -59,7 +59,7 @@ export type GetEnsTextReturnType = string | null
59
59
  * // 'wagmi_sh'
60
60
  */
61
61
  export async function getEnsText<TChain extends Chain | undefined>(
62
- client: PublicClient<Transport, TChain>,
62
+ client: Client<Transport, TChain>,
63
63
  {
64
64
  blockNumber,
65
65
  blockTag,
@@ -0,0 +1,324 @@
1
+ export {
2
+ type GetEnsAddressParameters,
3
+ type GetEnsAddressReturnType,
4
+ getEnsAddress,
5
+ } from './ens/getEnsAddress.js'
6
+ export {
7
+ type GetEnsAvatarParameters,
8
+ type GetEnsAvatarReturnType,
9
+ getEnsAvatar,
10
+ } from './ens/getEnsAvatar.js'
11
+ export {
12
+ type GetEnsNameParameters,
13
+ type GetEnsNameReturnType,
14
+ getEnsName,
15
+ } from './ens/getEnsName.js'
16
+ export {
17
+ type GetEnsResolverParameters,
18
+ type GetEnsResolverReturnType,
19
+ getEnsResolver,
20
+ } from './ens/getEnsResolver.js'
21
+ export {
22
+ type GetEnsTextParameters,
23
+ type GetEnsTextReturnType,
24
+ getEnsText,
25
+ } from './ens/getEnsText.js'
26
+ export {
27
+ type CallParameters,
28
+ type CallReturnType,
29
+ call,
30
+ } from './public/call.js'
31
+ export {
32
+ type CreateBlockFilterReturnType,
33
+ createBlockFilter,
34
+ } from './public/createBlockFilter.js'
35
+ export {
36
+ type CreateContractEventFilterParameters,
37
+ type CreateContractEventFilterReturnType,
38
+ createContractEventFilter,
39
+ } from './public/createContractEventFilter.js'
40
+ export {
41
+ type CreateEventFilterParameters,
42
+ type CreateEventFilterReturnType,
43
+ createEventFilter,
44
+ } from './public/createEventFilter.js'
45
+ export {
46
+ type CreatePendingTransactionFilterReturnType,
47
+ createPendingTransactionFilter,
48
+ } from './public/createPendingTransactionFilter.js'
49
+ export {
50
+ type EstimateContractGasParameters,
51
+ type EstimateContractGasReturnType,
52
+ estimateContractGas,
53
+ } from './public/estimateContractGas.js'
54
+ export {
55
+ type EstimateGasParameters,
56
+ type EstimateGasReturnType,
57
+ estimateGas,
58
+ } from './public/estimateGas.js'
59
+ export {
60
+ type GetBalanceParameters,
61
+ type GetBalanceReturnType,
62
+ getBalance,
63
+ } from './public/getBalance.js'
64
+ export {
65
+ type GetBlockParameters,
66
+ type GetBlockReturnType,
67
+ getBlock,
68
+ } from './public/getBlock.js'
69
+ export {
70
+ type GetBlockNumberParameters,
71
+ type GetBlockNumberReturnType,
72
+ getBlockNumber,
73
+ } from './public/getBlockNumber.js'
74
+ export {
75
+ type GetBlockTransactionCountParameters,
76
+ type GetBlockTransactionCountReturnType,
77
+ getBlockTransactionCount,
78
+ } from './public/getBlockTransactionCount.js'
79
+ export {
80
+ type GetBytecodeParameters,
81
+ type GetBytecodeReturnType,
82
+ getBytecode,
83
+ } from './public/getBytecode.js'
84
+ export { type GetChainIdReturnType, getChainId } from './public/getChainId.js'
85
+ export {
86
+ type GetFeeHistoryParameters,
87
+ type GetFeeHistoryReturnType,
88
+ getFeeHistory,
89
+ } from './public/getFeeHistory.js'
90
+ export {
91
+ type GetFilterChangesParameters,
92
+ type GetFilterChangesReturnType,
93
+ getFilterChanges,
94
+ } from './public/getFilterChanges.js'
95
+ export {
96
+ type GetFilterLogsParameters,
97
+ type GetFilterLogsReturnType,
98
+ getFilterLogs,
99
+ } from './public/getFilterLogs.js'
100
+ export {
101
+ type GetGasPriceReturnType,
102
+ getGasPrice,
103
+ } from './public/getGasPrice.js'
104
+ export {
105
+ type GetLogsParameters,
106
+ type GetLogsReturnType,
107
+ getLogs,
108
+ } from './public/getLogs.js'
109
+ export {
110
+ type GetStorageAtParameters,
111
+ type GetStorageAtReturnType,
112
+ getStorageAt,
113
+ } from './public/getStorageAt.js'
114
+ export {
115
+ type GetTransactionConfirmationsParameters,
116
+ type GetTransactionConfirmationsReturnType,
117
+ getTransactionConfirmations,
118
+ } from './public/getTransactionConfirmations.js'
119
+ export {
120
+ type GetTransactionCountParameters,
121
+ type GetTransactionCountReturnType,
122
+ getTransactionCount,
123
+ } from './public/getTransactionCount.js'
124
+ export {
125
+ type GetTransactionParameters,
126
+ type GetTransactionReturnType,
127
+ getTransaction,
128
+ } from './public/getTransaction.js'
129
+ export {
130
+ type GetTransactionReceiptParameters,
131
+ type GetTransactionReceiptReturnType,
132
+ getTransactionReceipt,
133
+ } from './public/getTransactionReceipt.js'
134
+ export {
135
+ type ImpersonateAccountParameters,
136
+ impersonateAccount,
137
+ } from './test/impersonateAccount.js'
138
+ export {
139
+ type IncreaseTimeParameters,
140
+ increaseTime,
141
+ } from './test/increaseTime.js'
142
+ export { type MineParameters, mine } from './test/mine.js'
143
+ export {
144
+ type MulticallParameters,
145
+ type MulticallReturnType,
146
+ multicall,
147
+ } from './public/multicall.js'
148
+ export {
149
+ type OnBlock,
150
+ type OnBlockParameter,
151
+ type WatchBlocksParameters,
152
+ type WatchBlocksReturnType,
153
+ watchBlocks,
154
+ } from './public/watchBlocks.js'
155
+ export {
156
+ type OnBlockNumberFn,
157
+ type OnBlockNumberParameter,
158
+ type WatchBlockNumberParameters,
159
+ type WatchBlockNumberReturnType,
160
+ watchBlockNumber,
161
+ } from './public/watchBlockNumber.js'
162
+ export {
163
+ type OnLogsFn,
164
+ type OnLogsParameter,
165
+ type WatchEventParameters,
166
+ type WatchEventReturnType,
167
+ watchEvent,
168
+ } from './public/watchEvent.js'
169
+ export {
170
+ type OnTransactionsFn,
171
+ type OnTransactionsParameter,
172
+ type WatchPendingTransactionsParameters,
173
+ type WatchPendingTransactionsReturnType,
174
+ watchPendingTransactions,
175
+ } from './public/watchPendingTransactions.js'
176
+ export {
177
+ type ReadContractParameters,
178
+ type ReadContractReturnType,
179
+ readContract,
180
+ } from './public/readContract.js'
181
+ export {
182
+ type GetPermissionsReturnType,
183
+ getPermissions,
184
+ } from './wallet/getPermissions.js'
185
+ export {
186
+ type ReplacementReason,
187
+ type ReplacementReturnType,
188
+ type WaitForTransactionReceiptParameters,
189
+ type WaitForTransactionReceiptReturnType,
190
+ waitForTransactionReceipt,
191
+ } from './public/waitForTransactionReceipt.js'
192
+ export {
193
+ type RequestAddressesReturnType,
194
+ requestAddresses,
195
+ } from './wallet/requestAddresses.js'
196
+ export {
197
+ type RequestPermissionsReturnType,
198
+ type RequestPermissionsParameters,
199
+ requestPermissions,
200
+ } from './wallet/requestPermissions.js'
201
+ export {
202
+ type DropTransactionParameters,
203
+ dropTransaction,
204
+ } from './test/dropTransaction.js'
205
+ export {
206
+ type GetAutomineReturnType,
207
+ getAutomine,
208
+ } from './test/getAutomine.js'
209
+ export {
210
+ type GetTxpoolContentReturnType,
211
+ getTxpoolContent,
212
+ } from './test/getTxpoolContent.js'
213
+ export {
214
+ type GetTxpoolStatusReturnType,
215
+ getTxpoolStatus,
216
+ } from './test/getTxpoolStatus.js'
217
+ export {
218
+ type InspectTxpoolReturnType,
219
+ inspectTxpool,
220
+ } from './test/inspectTxpool.js'
221
+ export { type ResetParameters, reset } from './test/reset.js'
222
+ export { type RevertParameters, revert } from './test/revert.js'
223
+ export {
224
+ type SendTransactionParameters,
225
+ type SendTransactionReturnType,
226
+ sendTransaction,
227
+ } from './wallet/sendTransaction.js'
228
+ export {
229
+ type SendUnsignedTransactionParameters,
230
+ type SendUnsignedTransactionReturnType,
231
+ sendUnsignedTransaction,
232
+ } from './test/sendUnsignedTransaction.js'
233
+ export { type SetBalanceParameters, setBalance } from './test/setBalance.js'
234
+ export { setAutomine } from './test/setAutomine.js'
235
+ export {
236
+ type SetBlockGasLimitParameters,
237
+ setBlockGasLimit,
238
+ } from './test/setBlockGasLimit.js'
239
+ export {
240
+ type SetBlockTimestampIntervalParameters,
241
+ setBlockTimestampInterval,
242
+ } from './test/setBlockTimestampInterval.js'
243
+ export { type SetCodeParameters, setCode } from './test/setCode.js'
244
+ export { type SetCoinbaseParameters, setCoinbase } from './test/setCoinbase.js'
245
+ export {
246
+ type SetIntervalMiningParameters,
247
+ setIntervalMining,
248
+ } from './test/setIntervalMining.js'
249
+ export {
250
+ type SetMinGasPriceParameters,
251
+ setMinGasPrice,
252
+ } from './test/setMinGasPrice.js'
253
+ export {
254
+ type SetNextBlockBaseFeePerGasParameters,
255
+ setNextBlockBaseFeePerGas,
256
+ } from './test/setNextBlockBaseFeePerGas.js'
257
+ export {
258
+ type SetNextBlockTimestampParameters,
259
+ setNextBlockTimestamp,
260
+ } from './test/setNextBlockTimestamp.js'
261
+ export { type SetNonceParameters, setNonce } from './test/setNonce.js'
262
+ export {
263
+ type SetStorageAtParameters,
264
+ setStorageAt,
265
+ } from './test/setStorageAt.js'
266
+ export { snapshot } from './test/snapshot.js'
267
+ export {
268
+ type SignMessageParameters,
269
+ type SignMessageReturnType,
270
+ signMessage,
271
+ } from './wallet/signMessage.js'
272
+ export {
273
+ type SignTypedDataParameters,
274
+ type SignTypedDataReturnType,
275
+ signTypedData,
276
+ } from './wallet/signTypedData.js'
277
+ export {
278
+ type SimulateContractParameters,
279
+ type SimulateContractReturnType,
280
+ simulateContract,
281
+ } from './public/simulateContract.js'
282
+ export {
283
+ type StopImpersonatingAccountParameters,
284
+ stopImpersonatingAccount,
285
+ } from './test/stopImpersonatingAccount.js'
286
+ export {
287
+ type SwitchChainParameters,
288
+ switchChain,
289
+ } from './wallet/switchChain.js'
290
+ export {
291
+ type UninstallFilterParameters,
292
+ type UninstallFilterReturnType,
293
+ uninstallFilter,
294
+ } from './public/uninstallFilter.js'
295
+ export {
296
+ type VerifyHashParameters,
297
+ type VerifyHashReturnType,
298
+ verifyHash,
299
+ } from './public/verifyHash.js'
300
+ export {
301
+ type VerifyMessageParameters,
302
+ type VerifyMessageReturnType,
303
+ verifyMessage,
304
+ } from './public/verifyMessage.js'
305
+ export {
306
+ type VerifyTypedDataParameters,
307
+ type VerifyTypedDataReturnType,
308
+ verifyTypedData,
309
+ } from './public/verifyTypedData.js'
310
+ export {
311
+ type WatchAssetParameters,
312
+ type WatchAssetReturnType,
313
+ watchAsset,
314
+ } from './wallet/watchAsset.js'
315
+ export {
316
+ type WatchContractEventParameters,
317
+ type WatchContractEventReturnType,
318
+ watchContractEvent,
319
+ } from './public/watchContractEvent.js'
320
+ export {
321
+ type WriteContractParameters,
322
+ type WriteContractReturnType,
323
+ writeContract,
324
+ } from './wallet/writeContract.js'
@@ -2,7 +2,7 @@ import type { Address } from 'abitype'
2
2
 
3
3
  import type { Account } from '../../accounts/types.js'
4
4
  import { parseAccount } from '../../accounts/utils/parseAccount.js'
5
- import type { PublicClient } from '../../clients/createPublicClient.js'
5
+ import type { Client } from '../../clients/createClient.js'
6
6
  import type { Transport } from '../../clients/transports/createTransport.js'
7
7
  import { multicall3Abi } from '../../constants/abis.js'
8
8
  import { aggregate3Signature } from '../../constants/contract.js'
@@ -83,7 +83,7 @@ export type CallReturnType = { data: Hex | undefined }
83
83
  * })
84
84
  */
85
85
  export async function call<TChain extends Chain | undefined>(
86
- client: PublicClient<Transport, TChain>,
86
+ client: Client<Transport, TChain>,
87
87
  args: CallParameters<TChain>,
88
88
  ): Promise<CallReturnType> {
89
89
  const {
@@ -194,8 +194,8 @@ type ScheduleMulticallParameters<TChain extends Chain | undefined> = Pick<
194
194
  to: Address
195
195
  }
196
196
 
197
- async function scheduleMulticall<TChain extends Chain | undefined>(
198
- client: PublicClient<Transport, TChain>,
197
+ async function scheduleMulticall<TChain extends Chain | undefined,>(
198
+ client: Client<Transport>,
199
199
  args: ScheduleMulticallParameters<TChain>,
200
200
  ) {
201
201
  const { batchSize = 1024, wait = 0 } =