viem 0.3.4 → 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 (587) hide show
  1. package/dist/cjs/clients/createPublicClient.js +11 -9
  2. package/dist/cjs/clients/createPublicClient.js.map +1 -1
  3. package/dist/cjs/errors/version.js +1 -1
  4. package/dist/esm/clients/createPublicClient.js +11 -9
  5. package/dist/esm/clients/createPublicClient.js.map +1 -1
  6. package/dist/esm/errors/version.js +1 -1
  7. package/package.json +1 -1
  8. package/src/clients/createPublicClient.ts +11 -9
  9. package/src/errors/version.ts +1 -1
  10. package/dist/types/abi.d.ts +0 -3
  11. package/dist/types/abi.d.ts.map +0 -1
  12. package/dist/types/accounts/generateMnemonic.d.ts +0 -9
  13. package/dist/types/accounts/generateMnemonic.d.ts.map +0 -1
  14. package/dist/types/accounts/generatePrivateKey.d.ts +0 -8
  15. package/dist/types/accounts/generatePrivateKey.d.ts.map +0 -1
  16. package/dist/types/accounts/hdKeyToAccount.d.ts +0 -9
  17. package/dist/types/accounts/hdKeyToAccount.d.ts.map +0 -1
  18. package/dist/types/accounts/index.d.ts +0 -21
  19. package/dist/types/accounts/index.d.ts.map +0 -1
  20. package/dist/types/accounts/mnemonicToAccount.d.ts +0 -8
  21. package/dist/types/accounts/mnemonicToAccount.d.ts.map +0 -1
  22. package/dist/types/accounts/privateKeyToAccount.d.ts +0 -9
  23. package/dist/types/accounts/privateKeyToAccount.d.ts.map +0 -1
  24. package/dist/types/accounts/toAccount.d.ts +0 -11
  25. package/dist/types/accounts/toAccount.d.ts.map +0 -1
  26. package/dist/types/accounts/types.d.ts +0 -45
  27. package/dist/types/accounts/types.d.ts.map +0 -1
  28. package/dist/types/accounts/utils/index.d.ts +0 -10
  29. package/dist/types/accounts/utils/index.d.ts.map +0 -1
  30. package/dist/types/accounts/utils/parseAccount.d.ts +0 -4
  31. package/dist/types/accounts/utils/parseAccount.d.ts.map +0 -1
  32. package/dist/types/accounts/utils/publicKeyToAddress.d.ts +0 -10
  33. package/dist/types/accounts/utils/publicKeyToAddress.d.ts.map +0 -1
  34. package/dist/types/accounts/utils/sign.d.ts +0 -16
  35. package/dist/types/accounts/utils/sign.d.ts.map +0 -1
  36. package/dist/types/accounts/utils/signMessage.d.ts +0 -16
  37. package/dist/types/accounts/utils/signMessage.d.ts.map +0 -1
  38. package/dist/types/accounts/utils/signTransaction.d.ts +0 -9
  39. package/dist/types/accounts/utils/signTransaction.d.ts.map +0 -1
  40. package/dist/types/accounts/utils/signTypedData.d.ts +0 -19
  41. package/dist/types/accounts/utils/signTypedData.d.ts.map +0 -1
  42. package/dist/types/accounts/utils/signatureToHex.d.ts +0 -3
  43. package/dist/types/accounts/utils/signatureToHex.d.ts.map +0 -1
  44. package/dist/types/accounts/wordlists/czech.d.ts +0 -2
  45. package/dist/types/accounts/wordlists/czech.d.ts.map +0 -1
  46. package/dist/types/accounts/wordlists/english.d.ts +0 -2
  47. package/dist/types/accounts/wordlists/english.d.ts.map +0 -1
  48. package/dist/types/accounts/wordlists/french.d.ts +0 -2
  49. package/dist/types/accounts/wordlists/french.d.ts.map +0 -1
  50. package/dist/types/accounts/wordlists/italian.d.ts +0 -2
  51. package/dist/types/accounts/wordlists/italian.d.ts.map +0 -1
  52. package/dist/types/accounts/wordlists/japanese.d.ts +0 -2
  53. package/dist/types/accounts/wordlists/japanese.d.ts.map +0 -1
  54. package/dist/types/accounts/wordlists/korean.d.ts +0 -2
  55. package/dist/types/accounts/wordlists/korean.d.ts.map +0 -1
  56. package/dist/types/accounts/wordlists/simplifiedChinese.d.ts +0 -2
  57. package/dist/types/accounts/wordlists/simplifiedChinese.d.ts.map +0 -1
  58. package/dist/types/accounts/wordlists/spanish.d.ts +0 -2
  59. package/dist/types/accounts/wordlists/spanish.d.ts.map +0 -1
  60. package/dist/types/accounts/wordlists/traditionalChinese.d.ts +0 -2
  61. package/dist/types/accounts/wordlists/traditionalChinese.d.ts.map +0 -1
  62. package/dist/types/actions/ens/getEnsAddress.d.ts +0 -40
  63. package/dist/types/actions/ens/getEnsAddress.d.ts.map +0 -1
  64. package/dist/types/actions/ens/getEnsAvatar.d.ts +0 -38
  65. package/dist/types/actions/ens/getEnsAvatar.d.ts.map +0 -1
  66. package/dist/types/actions/ens/getEnsName.d.ts +0 -38
  67. package/dist/types/actions/ens/getEnsName.d.ts.map +0 -1
  68. package/dist/types/actions/ens/getEnsResolver.d.ts +0 -40
  69. package/dist/types/actions/ens/getEnsResolver.d.ts.map +0 -1
  70. package/dist/types/actions/ens/getEnsText.d.ts +0 -43
  71. package/dist/types/actions/ens/getEnsText.d.ts.map +0 -1
  72. package/dist/types/actions/ens/index.d.ts +0 -6
  73. package/dist/types/actions/ens/index.d.ts.map +0 -1
  74. package/dist/types/actions/getContract.d.ts +0 -261
  75. package/dist/types/actions/getContract.d.ts.map +0 -1
  76. package/dist/types/actions/index.d.ts +0 -11
  77. package/dist/types/actions/index.d.ts.map +0 -1
  78. package/dist/types/actions/public/call.d.ts +0 -49
  79. package/dist/types/actions/public/call.d.ts.map +0 -1
  80. package/dist/types/actions/public/createBlockFilter.d.ts +0 -26
  81. package/dist/types/actions/public/createBlockFilter.d.ts.map +0 -1
  82. package/dist/types/actions/public/createContractEventFilter.d.ts +0 -41
  83. package/dist/types/actions/public/createContractEventFilter.d.ts.map +0 -1
  84. package/dist/types/actions/public/createEventFilter.d.ts +0 -46
  85. package/dist/types/actions/public/createEventFilter.d.ts.map +0 -1
  86. package/dist/types/actions/public/createPendingTransactionFilter.d.ts +0 -26
  87. package/dist/types/actions/public/createPendingTransactionFilter.d.ts.map +0 -1
  88. package/dist/types/actions/public/estimateContractGas.d.ts +0 -35
  89. package/dist/types/actions/public/estimateContractGas.d.ts.map +0 -1
  90. package/dist/types/actions/public/estimateGas.d.ts +0 -45
  91. package/dist/types/actions/public/estimateGas.d.ts.map +0 -1
  92. package/dist/types/actions/public/getBalance.d.ts +0 -52
  93. package/dist/types/actions/public/getBalance.d.ts.map +0 -1
  94. package/dist/types/actions/public/getBlock.d.ts +0 -52
  95. package/dist/types/actions/public/getBlock.d.ts.map +0 -1
  96. package/dist/types/actions/public/getBlockNumber.d.ts +0 -54
  97. package/dist/types/actions/public/getBlockNumber.d.ts.map +0 -1
  98. package/dist/types/actions/public/getBlockTransactionCount.d.ts +0 -44
  99. package/dist/types/actions/public/getBlockTransactionCount.d.ts.map +0 -1
  100. package/dist/types/actions/public/getBytecode.d.ts +0 -37
  101. package/dist/types/actions/public/getBytecode.d.ts.map +0 -1
  102. package/dist/types/actions/public/getChainId.d.ts +0 -26
  103. package/dist/types/actions/public/getChainId.d.ts.map +0 -1
  104. package/dist/types/actions/public/getFeeHistory.d.ts +0 -50
  105. package/dist/types/actions/public/getFeeHistory.d.ts.map +0 -1
  106. package/dist/types/actions/public/getFilterChanges.d.ts +0 -91
  107. package/dist/types/actions/public/getFilterChanges.d.ts.map +0 -1
  108. package/dist/types/actions/public/getFilterLogs.d.ts +0 -36
  109. package/dist/types/actions/public/getFilterLogs.d.ts.map +0 -1
  110. package/dist/types/actions/public/getGasPrice.d.ts +0 -25
  111. package/dist/types/actions/public/getGasPrice.d.ts.map +0 -1
  112. package/dist/types/actions/public/getLogs.d.ts +0 -49
  113. package/dist/types/actions/public/getLogs.d.ts.map +0 -1
  114. package/dist/types/actions/public/getStorageAt.d.ts +0 -39
  115. package/dist/types/actions/public/getStorageAt.d.ts.map +0 -1
  116. package/dist/types/actions/public/getTransaction.d.ts +0 -62
  117. package/dist/types/actions/public/getTransaction.d.ts.map +0 -1
  118. package/dist/types/actions/public/getTransactionConfirmations.d.ts +0 -39
  119. package/dist/types/actions/public/getTransactionConfirmations.d.ts.map +0 -1
  120. package/dist/types/actions/public/getTransactionCount.d.ts +0 -40
  121. package/dist/types/actions/public/getTransactionCount.d.ts.map +0 -1
  122. package/dist/types/actions/public/getTransactionReceipt.d.ts +0 -34
  123. package/dist/types/actions/public/getTransactionReceipt.d.ts.map +0 -1
  124. package/dist/types/actions/public/index.d.ts +0 -67
  125. package/dist/types/actions/public/index.d.ts.map +0 -1
  126. package/dist/types/actions/public/multicall.d.ts +0 -52
  127. package/dist/types/actions/public/multicall.d.ts.map +0 -1
  128. package/dist/types/actions/public/readContract.d.ts +0 -39
  129. package/dist/types/actions/public/readContract.d.ts.map +0 -1
  130. package/dist/types/actions/public/simulateContract.d.ts +0 -47
  131. package/dist/types/actions/public/simulateContract.d.ts.map +0 -1
  132. package/dist/types/actions/public/uninstallFilter.d.ts +0 -32
  133. package/dist/types/actions/public/uninstallFilter.d.ts.map +0 -1
  134. package/dist/types/actions/public/waitForTransactionReceipt.d.ts +0 -69
  135. package/dist/types/actions/public/waitForTransactionReceipt.d.ts.map +0 -1
  136. package/dist/types/actions/public/watchBlockNumber.d.ts +0 -57
  137. package/dist/types/actions/public/watchBlockNumber.d.ts.map +0 -1
  138. package/dist/types/actions/public/watchBlocks.d.ts +0 -64
  139. package/dist/types/actions/public/watchBlocks.d.ts.map +0 -1
  140. package/dist/types/actions/public/watchContractEvent.d.ts +0 -55
  141. package/dist/types/actions/public/watchContractEvent.d.ts.map +0 -1
  142. package/dist/types/actions/public/watchEvent.d.ts +0 -61
  143. package/dist/types/actions/public/watchEvent.d.ts.map +0 -1
  144. package/dist/types/actions/public/watchPendingTransactions.d.ts +0 -71
  145. package/dist/types/actions/public/watchPendingTransactions.d.ts.map +0 -1
  146. package/dist/types/actions/test/dropTransaction.d.ts +0 -30
  147. package/dist/types/actions/test/dropTransaction.d.ts.map +0 -1
  148. package/dist/types/actions/test/getAutomine.d.ts +0 -25
  149. package/dist/types/actions/test/getAutomine.d.ts.map +0 -1
  150. package/dist/types/actions/test/getTxpoolContent.d.ts +0 -31
  151. package/dist/types/actions/test/getTxpoolContent.d.ts.map +0 -1
  152. package/dist/types/actions/test/getTxpoolStatus.d.ts +0 -28
  153. package/dist/types/actions/test/getTxpoolStatus.d.ts.map +0 -1
  154. package/dist/types/actions/test/impersonateAccount.d.ts +0 -30
  155. package/dist/types/actions/test/impersonateAccount.d.ts.map +0 -1
  156. package/dist/types/actions/test/increaseTime.d.ts +0 -30
  157. package/dist/types/actions/test/increaseTime.d.ts.map +0 -1
  158. package/dist/types/actions/test/index.d.ts +0 -52
  159. package/dist/types/actions/test/index.d.ts.map +0 -1
  160. package/dist/types/actions/test/inspectTxpool.d.ts +0 -28
  161. package/dist/types/actions/test/inspectTxpool.d.ts.map +0 -1
  162. package/dist/types/actions/test/mine.d.ts +0 -30
  163. package/dist/types/actions/test/mine.d.ts.map +0 -1
  164. package/dist/types/actions/test/removeBlockTimestampInterval.d.ts +0 -23
  165. package/dist/types/actions/test/removeBlockTimestampInterval.d.ts.map +0 -1
  166. package/dist/types/actions/test/reset.d.ts +0 -30
  167. package/dist/types/actions/test/reset.d.ts.map +0 -1
  168. package/dist/types/actions/test/revert.d.ts +0 -28
  169. package/dist/types/actions/test/revert.d.ts.map +0 -1
  170. package/dist/types/actions/test/sendUnsignedTransaction.d.ts +0 -31
  171. package/dist/types/actions/test/sendUnsignedTransaction.d.ts.map +0 -1
  172. package/dist/types/actions/test/setAutomine.d.ts +0 -23
  173. package/dist/types/actions/test/setAutomine.d.ts.map +0 -1
  174. package/dist/types/actions/test/setBalance.d.ts +0 -33
  175. package/dist/types/actions/test/setBalance.d.ts.map +0 -1
  176. package/dist/types/actions/test/setBlockGasLimit.d.ts +0 -28
  177. package/dist/types/actions/test/setBlockGasLimit.d.ts.map +0 -1
  178. package/dist/types/actions/test/setBlockTimestampInterval.d.ts +0 -28
  179. package/dist/types/actions/test/setBlockTimestampInterval.d.ts.map +0 -1
  180. package/dist/types/actions/test/setCode.d.ts +0 -33
  181. package/dist/types/actions/test/setCode.d.ts.map +0 -1
  182. package/dist/types/actions/test/setCoinbase.d.ts +0 -30
  183. package/dist/types/actions/test/setCoinbase.d.ts.map +0 -1
  184. package/dist/types/actions/test/setIntervalMining.d.ts +0 -28
  185. package/dist/types/actions/test/setIntervalMining.d.ts.map +0 -1
  186. package/dist/types/actions/test/setLoggingEnabled.d.ts +0 -23
  187. package/dist/types/actions/test/setLoggingEnabled.d.ts.map +0 -1
  188. package/dist/types/actions/test/setMinGasPrice.d.ts +0 -32
  189. package/dist/types/actions/test/setMinGasPrice.d.ts.map +0 -1
  190. package/dist/types/actions/test/setNextBlockBaseFeePerGas.d.ts +0 -30
  191. package/dist/types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +0 -1
  192. package/dist/types/actions/test/setNextBlockTimestamp.d.ts +0 -28
  193. package/dist/types/actions/test/setNextBlockTimestamp.d.ts.map +0 -1
  194. package/dist/types/actions/test/setNonce.d.ts +0 -33
  195. package/dist/types/actions/test/setNonce.d.ts.map +0 -1
  196. package/dist/types/actions/test/setRpcUrl.d.ts +0 -24
  197. package/dist/types/actions/test/setRpcUrl.d.ts.map +0 -1
  198. package/dist/types/actions/test/setStorageAt.d.ts +0 -36
  199. package/dist/types/actions/test/setStorageAt.d.ts.map +0 -1
  200. package/dist/types/actions/test/snapshot.d.ts +0 -23
  201. package/dist/types/actions/test/snapshot.d.ts.map +0 -1
  202. package/dist/types/actions/test/stopImpersonatingAccount.d.ts +0 -30
  203. package/dist/types/actions/test/stopImpersonatingAccount.d.ts.map +0 -1
  204. package/dist/types/actions/wallet/addChain.d.ts +0 -27
  205. package/dist/types/actions/wallet/addChain.d.ts.map +0 -1
  206. package/dist/types/actions/wallet/deployContract.d.ts +0 -38
  207. package/dist/types/actions/wallet/deployContract.d.ts.map +0 -1
  208. package/dist/types/actions/wallet/getAddresses.d.ts +0 -26
  209. package/dist/types/actions/wallet/getAddresses.d.ts.map +0 -1
  210. package/dist/types/actions/wallet/getPermissions.d.ts +0 -26
  211. package/dist/types/actions/wallet/getPermissions.d.ts.map +0 -1
  212. package/dist/types/actions/wallet/index.d.ts +0 -27
  213. package/dist/types/actions/wallet/index.d.ts.map +0 -1
  214. package/dist/types/actions/wallet/requestAddresses.d.ts +0 -30
  215. package/dist/types/actions/wallet/requestAddresses.d.ts.map +0 -1
  216. package/dist/types/actions/wallet/requestPermissions.d.ts +0 -34
  217. package/dist/types/actions/wallet/requestPermissions.d.ts.map +0 -1
  218. package/dist/types/actions/wallet/sendTransaction.d.ts +0 -53
  219. package/dist/types/actions/wallet/sendTransaction.d.ts.map +0 -1
  220. package/dist/types/actions/wallet/signMessage.d.ts +0 -54
  221. package/dist/types/actions/wallet/signMessage.d.ts.map +0 -1
  222. package/dist/types/actions/wallet/signTypedData.d.ts +0 -109
  223. package/dist/types/actions/wallet/signTypedData.d.ts.map +0 -1
  224. package/dist/types/actions/wallet/switchChain.d.ts +0 -28
  225. package/dist/types/actions/wallet/switchChain.d.ts.map +0 -1
  226. package/dist/types/actions/wallet/watchAsset.d.ts +0 -35
  227. package/dist/types/actions/wallet/watchAsset.d.ts.map +0 -1
  228. package/dist/types/actions/wallet/writeContract.d.ts +0 -58
  229. package/dist/types/actions/wallet/writeContract.d.ts.map +0 -1
  230. package/dist/types/adapters/ethers.d.ts +0 -27
  231. package/dist/types/adapters/ethers.d.ts.map +0 -1
  232. package/dist/types/chains.d.ts +0 -2487
  233. package/dist/types/chains.d.ts.map +0 -1
  234. package/dist/types/clients/createClient.d.ts +0 -43
  235. package/dist/types/clients/createClient.d.ts.map +0 -1
  236. package/dist/types/clients/createPublicClient.d.ts +0 -40
  237. package/dist/types/clients/createPublicClient.d.ts.map +0 -1
  238. package/dist/types/clients/createTestClient.d.ts +0 -38
  239. package/dist/types/clients/createTestClient.d.ts.map +0 -1
  240. package/dist/types/clients/createWalletClient.d.ts +0 -51
  241. package/dist/types/clients/createWalletClient.d.ts.map +0 -1
  242. package/dist/types/clients/decorators/index.d.ts +0 -7
  243. package/dist/types/clients/decorators/index.d.ts.map +0 -1
  244. package/dist/types/clients/decorators/public.d.ts +0 -1043
  245. package/dist/types/clients/decorators/public.d.ts.map +0 -1
  246. package/dist/types/clients/decorators/test.d.ts +0 -572
  247. package/dist/types/clients/decorators/test.d.ts.map +0 -1
  248. package/dist/types/clients/decorators/wallet.d.ts +0 -436
  249. package/dist/types/clients/decorators/wallet.d.ts.map +0 -1
  250. package/dist/types/clients/index.d.ts +0 -11
  251. package/dist/types/clients/index.d.ts.map +0 -1
  252. package/dist/types/clients/transports/createTransport.d.ts +0 -37
  253. package/dist/types/clients/transports/createTransport.d.ts.map +0 -1
  254. package/dist/types/clients/transports/custom.d.ts +0 -21
  255. package/dist/types/clients/transports/custom.d.ts.map +0 -1
  256. package/dist/types/clients/transports/fallback.d.ts +0 -75
  257. package/dist/types/clients/transports/fallback.d.ts.map +0 -1
  258. package/dist/types/clients/transports/http.d.ts +0 -29
  259. package/dist/types/clients/transports/http.d.ts.map +0 -1
  260. package/dist/types/clients/transports/index.d.ts +0 -11
  261. package/dist/types/clients/transports/index.d.ts.map +0 -1
  262. package/dist/types/clients/transports/webSocket.d.ts +0 -46
  263. package/dist/types/clients/transports/webSocket.d.ts.map +0 -1
  264. package/dist/types/constants/abis.d.ts +0 -79
  265. package/dist/types/constants/abis.d.ts.map +0 -1
  266. package/dist/types/constants/contract.d.ts +0 -2
  267. package/dist/types/constants/contract.d.ts.map +0 -1
  268. package/dist/types/constants/index.d.ts +0 -5
  269. package/dist/types/constants/index.d.ts.map +0 -1
  270. package/dist/types/constants/solidity.d.ts +0 -15
  271. package/dist/types/constants/solidity.d.ts.map +0 -1
  272. package/dist/types/constants/unit.d.ts +0 -13
  273. package/dist/types/constants/unit.d.ts.map +0 -1
  274. package/dist/types/contract.d.ts +0 -7
  275. package/dist/types/contract.d.ts.map +0 -1
  276. package/dist/types/ens.d.ts +0 -5
  277. package/dist/types/ens.d.ts.map +0 -1
  278. package/dist/types/errors/abi.d.ts +0 -165
  279. package/dist/types/errors/abi.d.ts.map +0 -1
  280. package/dist/types/errors/account.d.ts +0 -8
  281. package/dist/types/errors/account.d.ts.map +0 -1
  282. package/dist/types/errors/address.d.ts +0 -8
  283. package/dist/types/errors/address.d.ts.map +0 -1
  284. package/dist/types/errors/base.d.ts +0 -22
  285. package/dist/types/errors/base.d.ts.map +0 -1
  286. package/dist/types/errors/block.d.ts +0 -10
  287. package/dist/types/errors/block.d.ts.map +0 -1
  288. package/dist/types/errors/chain.d.ts +0 -35
  289. package/dist/types/errors/chain.d.ts.map +0 -1
  290. package/dist/types/errors/contract.d.ts +0 -58
  291. package/dist/types/errors/contract.d.ts.map +0 -1
  292. package/dist/types/errors/data.d.ts +0 -10
  293. package/dist/types/errors/data.d.ts.map +0 -1
  294. package/dist/types/errors/encoding.d.ts +0 -53
  295. package/dist/types/errors/encoding.d.ts.map +0 -1
  296. package/dist/types/errors/ens.d.ts +0 -26
  297. package/dist/types/errors/ens.d.ts.map +0 -1
  298. package/dist/types/errors/estimateGas.d.ts +0 -13
  299. package/dist/types/errors/estimateGas.d.ts.map +0 -1
  300. package/dist/types/errors/index.d.ts +0 -18
  301. package/dist/types/errors/index.d.ts.map +0 -1
  302. package/dist/types/errors/log.d.ts +0 -6
  303. package/dist/types/errors/log.d.ts.map +0 -1
  304. package/dist/types/errors/node.d.ts +0 -105
  305. package/dist/types/errors/node.d.ts.map +0 -1
  306. package/dist/types/errors/request.d.ts +0 -53
  307. package/dist/types/errors/request.d.ts.map +0 -1
  308. package/dist/types/errors/rpc.d.ts +0 -199
  309. package/dist/types/errors/rpc.d.ts.map +0 -1
  310. package/dist/types/errors/transaction.d.ts +0 -75
  311. package/dist/types/errors/transaction.d.ts.map +0 -1
  312. package/dist/types/errors/transport.d.ts +0 -5
  313. package/dist/types/errors/transport.d.ts.map +0 -1
  314. package/dist/types/errors/utils.d.ts +0 -5
  315. package/dist/types/errors/utils.d.ts.map +0 -1
  316. package/dist/types/errors/version.d.ts +0 -2
  317. package/dist/types/errors/version.d.ts.map +0 -1
  318. package/dist/types/ethers.d.ts +0 -2
  319. package/dist/types/ethers.d.ts.map +0 -1
  320. package/dist/types/index.d.ts +0 -12
  321. package/dist/types/index.d.ts.map +0 -1
  322. package/dist/types/public.d.ts +0 -3
  323. package/dist/types/public.d.ts.map +0 -1
  324. package/dist/types/test.d.ts +0 -3
  325. package/dist/types/test.d.ts.map +0 -1
  326. package/dist/types/types/account.d.ts +0 -11
  327. package/dist/types/types/account.d.ts.map +0 -1
  328. package/dist/types/types/block.d.ts +0 -62
  329. package/dist/types/types/block.d.ts.map +0 -1
  330. package/dist/types/types/chain.d.ts +0 -17
  331. package/dist/types/types/chain.d.ts.map +0 -1
  332. package/dist/types/types/contract.d.ts +0 -159
  333. package/dist/types/types/contract.d.ts.map +0 -1
  334. package/dist/types/types/eip1193.d.ts +0 -1002
  335. package/dist/types/types/eip1193.d.ts.map +0 -1
  336. package/dist/types/types/ens.d.ts +0 -5
  337. package/dist/types/types/ens.d.ts.map +0 -1
  338. package/dist/types/types/fee.d.ts +0 -28
  339. package/dist/types/types/fee.d.ts.map +0 -1
  340. package/dist/types/types/filter.d.ts +0 -27
  341. package/dist/types/types/filter.d.ts.map +0 -1
  342. package/dist/types/types/formatter.d.ts +0 -13
  343. package/dist/types/types/formatter.d.ts.map +0 -1
  344. package/dist/types/types/index.d.ts +0 -19
  345. package/dist/types/types/index.d.ts.map +0 -1
  346. package/dist/types/types/log.d.ts +0 -42
  347. package/dist/types/types/log.d.ts.map +0 -1
  348. package/dist/types/types/misc.d.ts +0 -10
  349. package/dist/types/types/misc.d.ts.map +0 -1
  350. package/dist/types/types/multicall.d.ts +0 -48
  351. package/dist/types/types/multicall.d.ts.map +0 -1
  352. package/dist/types/types/rpc.d.ts +0 -19
  353. package/dist/types/types/rpc.d.ts.map +0 -1
  354. package/dist/types/types/transaction.d.ts +0 -132
  355. package/dist/types/types/transaction.d.ts.map +0 -1
  356. package/dist/types/types/transport.d.ts +0 -3
  357. package/dist/types/types/transport.d.ts.map +0 -1
  358. package/dist/types/types/typedData.d.ts +0 -47
  359. package/dist/types/types/typedData.d.ts.map +0 -1
  360. package/dist/types/types/utils.d.ts +0 -156
  361. package/dist/types/types/utils.d.ts.map +0 -1
  362. package/dist/types/types/window.d.ts +0 -7
  363. package/dist/types/types/window.d.ts.map +0 -1
  364. package/dist/types/utils/abi/decodeAbiParameters.d.ts +0 -5
  365. package/dist/types/utils/abi/decodeAbiParameters.d.ts.map +0 -1
  366. package/dist/types/utils/abi/decodeDeployData.d.ts +0 -13
  367. package/dist/types/utils/abi/decodeDeployData.d.ts.map +0 -1
  368. package/dist/types/utils/abi/decodeErrorResult.d.ts +0 -13
  369. package/dist/types/utils/abi/decodeErrorResult.d.ts.map +0 -1
  370. package/dist/types/utils/abi/decodeEventLog.d.ts +0 -13
  371. package/dist/types/utils/abi/decodeEventLog.d.ts.map +0 -1
  372. package/dist/types/utils/abi/decodeFunctionData.d.ts +0 -14
  373. package/dist/types/utils/abi/decodeFunctionData.d.ts.map +0 -1
  374. package/dist/types/utils/abi/decodeFunctionResult.d.ts +0 -10
  375. package/dist/types/utils/abi/decodeFunctionResult.d.ts.map +0 -1
  376. package/dist/types/utils/abi/encodeAbiParameters.d.ts +0 -9
  377. package/dist/types/utils/abi/encodeAbiParameters.d.ts.map +0 -1
  378. package/dist/types/utils/abi/encodeDeployData.d.ts +0 -8
  379. package/dist/types/utils/abi/encodeDeployData.d.ts.map +0 -1
  380. package/dist/types/utils/abi/encodeErrorResult.d.ts +0 -8
  381. package/dist/types/utils/abi/encodeErrorResult.d.ts.map +0 -1
  382. package/dist/types/utils/abi/encodeEventTopics.d.ts +0 -9
  383. package/dist/types/utils/abi/encodeEventTopics.d.ts.map +0 -1
  384. package/dist/types/utils/abi/encodeFunctionData.d.ts +0 -8
  385. package/dist/types/utils/abi/encodeFunctionData.d.ts.map +0 -1
  386. package/dist/types/utils/abi/encodeFunctionResult.d.ts +0 -9
  387. package/dist/types/utils/abi/encodeFunctionResult.d.ts.map +0 -1
  388. package/dist/types/utils/abi/encodePacked.d.ts +0 -11
  389. package/dist/types/utils/abi/encodePacked.d.ts.map +0 -1
  390. package/dist/types/utils/abi/formatAbiItem.d.ts +0 -9
  391. package/dist/types/utils/abi/formatAbiItem.d.ts.map +0 -1
  392. package/dist/types/utils/abi/formatAbiItemWithArgs.d.ts +0 -8
  393. package/dist/types/utils/abi/formatAbiItemWithArgs.d.ts.map +0 -1
  394. package/dist/types/utils/abi/getAbiItem.d.ts +0 -12
  395. package/dist/types/utils/abi/getAbiItem.d.ts.map +0 -1
  396. package/dist/types/utils/abi/index.d.ts +0 -30
  397. package/dist/types/utils/abi/index.d.ts.map +0 -1
  398. package/dist/types/utils/accounts.d.ts +0 -3
  399. package/dist/types/utils/accounts.d.ts.map +0 -1
  400. package/dist/types/utils/address/getAddress.d.ts +0 -4
  401. package/dist/types/utils/address/getAddress.d.ts.map +0 -1
  402. package/dist/types/utils/address/getContractAddress.d.ts +0 -19
  403. package/dist/types/utils/address/getContractAddress.d.ts.map +0 -1
  404. package/dist/types/utils/address/index.d.ts +0 -6
  405. package/dist/types/utils/address/index.d.ts.map +0 -1
  406. package/dist/types/utils/address/isAddress.d.ts +0 -3
  407. package/dist/types/utils/address/isAddress.d.ts.map +0 -1
  408. package/dist/types/utils/address/isAddressEqual.d.ts +0 -3
  409. package/dist/types/utils/address/isAddressEqual.d.ts.map +0 -1
  410. package/dist/types/utils/buildRequest.d.ts +0 -6
  411. package/dist/types/utils/buildRequest.d.ts.map +0 -1
  412. package/dist/types/utils/chain.d.ts +0 -8
  413. package/dist/types/utils/chain.d.ts.map +0 -1
  414. package/dist/types/utils/contract/extractFunctionParts.d.ts +0 -13
  415. package/dist/types/utils/contract/extractFunctionParts.d.ts.map +0 -1
  416. package/dist/types/utils/contract/index.d.ts +0 -2
  417. package/dist/types/utils/contract/index.d.ts.map +0 -1
  418. package/dist/types/utils/data/concat.d.ts +0 -6
  419. package/dist/types/utils/data/concat.d.ts.map +0 -1
  420. package/dist/types/utils/data/index.d.ts +0 -8
  421. package/dist/types/utils/data/index.d.ts.map +0 -1
  422. package/dist/types/utils/data/isBytes.d.ts +0 -3
  423. package/dist/types/utils/data/isBytes.d.ts.map +0 -1
  424. package/dist/types/utils/data/isHex.d.ts +0 -3
  425. package/dist/types/utils/data/isHex.d.ts.map +0 -1
  426. package/dist/types/utils/data/pad.d.ts +0 -11
  427. package/dist/types/utils/data/pad.d.ts.map +0 -1
  428. package/dist/types/utils/data/size.d.ts +0 -9
  429. package/dist/types/utils/data/size.d.ts.map +0 -1
  430. package/dist/types/utils/data/slice.d.ts +0 -27
  431. package/dist/types/utils/data/slice.d.ts.map +0 -1
  432. package/dist/types/utils/data/trim.d.ts +0 -8
  433. package/dist/types/utils/data/trim.d.ts.map +0 -1
  434. package/dist/types/utils/encoding/fromBytes.d.ts +0 -110
  435. package/dist/types/utils/encoding/fromBytes.d.ts.map +0 -1
  436. package/dist/types/utils/encoding/fromHex.d.ts +0 -138
  437. package/dist/types/utils/encoding/fromHex.d.ts.map +0 -1
  438. package/dist/types/utils/encoding/fromRlp.d.ts +0 -6
  439. package/dist/types/utils/encoding/fromRlp.d.ts.map +0 -1
  440. package/dist/types/utils/encoding/index.d.ts +0 -8
  441. package/dist/types/utils/encoding/index.d.ts.map +0 -1
  442. package/dist/types/utils/encoding/toBytes.d.ts +0 -125
  443. package/dist/types/utils/encoding/toBytes.d.ts.map +0 -1
  444. package/dist/types/utils/encoding/toHex.d.ts +0 -139
  445. package/dist/types/utils/encoding/toHex.d.ts.map +0 -1
  446. package/dist/types/utils/encoding/toRlp.d.ts +0 -8
  447. package/dist/types/utils/encoding/toRlp.d.ts.map +0 -1
  448. package/dist/types/utils/ens/avatar/index.d.ts +0 -2
  449. package/dist/types/utils/ens/avatar/index.d.ts.map +0 -1
  450. package/dist/types/utils/ens/avatar/parseAvatarRecord.d.ts +0 -7
  451. package/dist/types/utils/ens/avatar/parseAvatarRecord.d.ts.map +0 -1
  452. package/dist/types/utils/ens/avatar/utils.d.ts +0 -34
  453. package/dist/types/utils/ens/avatar/utils.d.ts.map +0 -1
  454. package/dist/types/utils/ens/index.d.ts +0 -5
  455. package/dist/types/utils/ens/index.d.ts.map +0 -1
  456. package/dist/types/utils/ens/labelhash.d.ts +0 -11
  457. package/dist/types/utils/ens/labelhash.d.ts.map +0 -1
  458. package/dist/types/utils/ens/namehash.d.ts +0 -13
  459. package/dist/types/utils/ens/namehash.d.ts.map +0 -1
  460. package/dist/types/utils/ens/normalize.d.ts +0 -12
  461. package/dist/types/utils/ens/normalize.d.ts.map +0 -1
  462. package/dist/types/utils/ens/packetToBytes.d.ts +0 -3
  463. package/dist/types/utils/ens/packetToBytes.d.ts.map +0 -1
  464. package/dist/types/utils/errors/getCallError.d.ts +0 -9
  465. package/dist/types/utils/errors/getCallError.d.ts.map +0 -1
  466. package/dist/types/utils/errors/getContractError.d.ts +0 -13
  467. package/dist/types/utils/errors/getContractError.d.ts.map +0 -1
  468. package/dist/types/utils/errors/getEstimateGasError.d.ts +0 -10
  469. package/dist/types/utils/errors/getEstimateGasError.d.ts.map +0 -1
  470. package/dist/types/utils/errors/getNodeError.d.ts +0 -6
  471. package/dist/types/utils/errors/getNodeError.d.ts.map +0 -1
  472. package/dist/types/utils/errors/getTransactionError.d.ts +0 -10
  473. package/dist/types/utils/errors/getTransactionError.d.ts.map +0 -1
  474. package/dist/types/utils/errors/index.d.ts +0 -6
  475. package/dist/types/utils/errors/index.d.ts.map +0 -1
  476. package/dist/types/utils/filters/createFilterRequestScope.d.ts +0 -16
  477. package/dist/types/utils/filters/createFilterRequestScope.d.ts.map +0 -1
  478. package/dist/types/utils/formatters/block.d.ts +0 -14
  479. package/dist/types/utils/formatters/block.d.ts.map +0 -1
  480. package/dist/types/utils/formatters/extract.d.ts +0 -8
  481. package/dist/types/utils/formatters/extract.d.ts.map +0 -1
  482. package/dist/types/utils/formatters/feeHistory.d.ts +0 -3
  483. package/dist/types/utils/formatters/feeHistory.d.ts.map +0 -1
  484. package/dist/types/utils/formatters/format.d.ts +0 -36
  485. package/dist/types/utils/formatters/format.d.ts.map +0 -1
  486. package/dist/types/utils/formatters/index.d.ts +0 -13
  487. package/dist/types/utils/formatters/index.d.ts.map +0 -1
  488. package/dist/types/utils/formatters/log.d.ts +0 -16
  489. package/dist/types/utils/formatters/log.d.ts.map +0 -1
  490. package/dist/types/utils/formatters/transaction.d.ts +0 -19
  491. package/dist/types/utils/formatters/transaction.d.ts.map +0 -1
  492. package/dist/types/utils/formatters/transactionReceipt.d.ts +0 -14
  493. package/dist/types/utils/formatters/transactionReceipt.d.ts.map +0 -1
  494. package/dist/types/utils/formatters/transactionRequest.d.ts +0 -14
  495. package/dist/types/utils/formatters/transactionRequest.d.ts.map +0 -1
  496. package/dist/types/utils/hash/getEventSelector.d.ts +0 -3
  497. package/dist/types/utils/hash/getEventSelector.d.ts.map +0 -1
  498. package/dist/types/utils/hash/getFunctionSelector.d.ts +0 -2
  499. package/dist/types/utils/hash/getFunctionSelector.d.ts.map +0 -1
  500. package/dist/types/utils/hash/hashFunction.d.ts +0 -2
  501. package/dist/types/utils/hash/hashFunction.d.ts.map +0 -1
  502. package/dist/types/utils/hash/index.d.ts +0 -5
  503. package/dist/types/utils/hash/index.d.ts.map +0 -1
  504. package/dist/types/utils/hash/isHash.d.ts +0 -3
  505. package/dist/types/utils/hash/isHash.d.ts.map +0 -1
  506. package/dist/types/utils/hash/keccak256.d.ts +0 -6
  507. package/dist/types/utils/hash/keccak256.d.ts.map +0 -1
  508. package/dist/types/utils/index.d.ts +0 -26
  509. package/dist/types/utils/index.d.ts.map +0 -1
  510. package/dist/types/utils/observe.d.ts +0 -17
  511. package/dist/types/utils/observe.d.ts.map +0 -1
  512. package/dist/types/utils/poll.d.ts +0 -13
  513. package/dist/types/utils/poll.d.ts.map +0 -1
  514. package/dist/types/utils/promise/createBatchScheduler.d.ts +0 -15
  515. package/dist/types/utils/promise/createBatchScheduler.d.ts.map +0 -1
  516. package/dist/types/utils/promise/index.d.ts +0 -5
  517. package/dist/types/utils/promise/index.d.ts.map +0 -1
  518. package/dist/types/utils/promise/withCache.d.ts +0 -36
  519. package/dist/types/utils/promise/withCache.d.ts.map +0 -1
  520. package/dist/types/utils/promise/withRetry.d.ts +0 -12
  521. package/dist/types/utils/promise/withRetry.d.ts.map +0 -1
  522. package/dist/types/utils/promise/withTimeout.d.ts +0 -8
  523. package/dist/types/utils/promise/withTimeout.d.ts.map +0 -1
  524. package/dist/types/utils/regex.d.ts +0 -4
  525. package/dist/types/utils/regex.d.ts.map +0 -1
  526. package/dist/types/utils/rpc.d.ts +0 -64
  527. package/dist/types/utils/rpc.d.ts.map +0 -1
  528. package/dist/types/utils/signature/hashMessage.d.ts +0 -6
  529. package/dist/types/utils/signature/hashMessage.d.ts.map +0 -1
  530. package/dist/types/utils/signature/hashTypedData.d.ts +0 -10
  531. package/dist/types/utils/signature/hashTypedData.d.ts.map +0 -1
  532. package/dist/types/utils/signature/index.d.ts +0 -16
  533. package/dist/types/utils/signature/index.d.ts.map +0 -1
  534. package/dist/types/utils/signature/recoverAddress.d.ts +0 -8
  535. package/dist/types/utils/signature/recoverAddress.d.ts.map +0 -1
  536. package/dist/types/utils/signature/recoverMessageAddress.d.ts +0 -8
  537. package/dist/types/utils/signature/recoverMessageAddress.d.ts.map +0 -1
  538. package/dist/types/utils/signature/recoverPublicKey.d.ts +0 -8
  539. package/dist/types/utils/signature/recoverPublicKey.d.ts.map +0 -1
  540. package/dist/types/utils/signature/recoverTypedDataAddress.d.ts +0 -12
  541. package/dist/types/utils/signature/recoverTypedDataAddress.d.ts.map +0 -1
  542. package/dist/types/utils/signature/verifyMessage.d.ts +0 -10
  543. package/dist/types/utils/signature/verifyMessage.d.ts.map +0 -1
  544. package/dist/types/utils/signature/verifyTypedData.d.ts +0 -13
  545. package/dist/types/utils/signature/verifyTypedData.d.ts.map +0 -1
  546. package/dist/types/utils/stringify.d.ts +0 -2
  547. package/dist/types/utils/stringify.d.ts.map +0 -1
  548. package/dist/types/utils/transaction/assertRequest.d.ts +0 -4
  549. package/dist/types/utils/transaction/assertRequest.d.ts.map +0 -1
  550. package/dist/types/utils/transaction/assertTransaction.d.ts +0 -5
  551. package/dist/types/utils/transaction/assertTransaction.d.ts.map +0 -1
  552. package/dist/types/utils/transaction/getSerializedTransactionType.d.ts +0 -4
  553. package/dist/types/utils/transaction/getSerializedTransactionType.d.ts.map +0 -1
  554. package/dist/types/utils/transaction/getTransactionType.d.ts +0 -4
  555. package/dist/types/utils/transaction/getTransactionType.d.ts.map +0 -1
  556. package/dist/types/utils/transaction/index.d.ts +0 -10
  557. package/dist/types/utils/transaction/index.d.ts.map +0 -1
  558. package/dist/types/utils/transaction/parseTransaction.d.ts +0 -5
  559. package/dist/types/utils/transaction/parseTransaction.d.ts.map +0 -1
  560. package/dist/types/utils/transaction/prepareRequest.d.ts +0 -21
  561. package/dist/types/utils/transaction/prepareRequest.d.ts.map +0 -1
  562. package/dist/types/utils/transaction/serializeTransaction.d.ts +0 -5
  563. package/dist/types/utils/transaction/serializeTransaction.d.ts.map +0 -1
  564. package/dist/types/utils/typedData.d.ts +0 -6
  565. package/dist/types/utils/typedData.d.ts.map +0 -1
  566. package/dist/types/utils/uid.d.ts +0 -2
  567. package/dist/types/utils/uid.d.ts.map +0 -1
  568. package/dist/types/utils/unit/formatEther.d.ts +0 -2
  569. package/dist/types/utils/unit/formatEther.d.ts.map +0 -1
  570. package/dist/types/utils/unit/formatGwei.d.ts +0 -2
  571. package/dist/types/utils/unit/formatGwei.d.ts.map +0 -1
  572. package/dist/types/utils/unit/formatUnits.d.ts +0 -2
  573. package/dist/types/utils/unit/formatUnits.d.ts.map +0 -1
  574. package/dist/types/utils/unit/index.d.ts +0 -7
  575. package/dist/types/utils/unit/index.d.ts.map +0 -1
  576. package/dist/types/utils/unit/parseEther.d.ts +0 -2
  577. package/dist/types/utils/unit/parseEther.d.ts.map +0 -1
  578. package/dist/types/utils/unit/parseGwei.d.ts +0 -2
  579. package/dist/types/utils/unit/parseGwei.d.ts.map +0 -1
  580. package/dist/types/utils/unit/parseUnits.d.ts +0 -2
  581. package/dist/types/utils/unit/parseUnits.d.ts.map +0 -1
  582. package/dist/types/utils/wait.d.ts +0 -2
  583. package/dist/types/utils/wait.d.ts.map +0 -1
  584. package/dist/types/wallet.d.ts +0 -3
  585. package/dist/types/wallet.d.ts.map +0 -1
  586. package/dist/types/window.d.ts +0 -2
  587. package/dist/types/window.d.ts.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../../src/clients/decorators/public.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,4BAA4B,CAAA;AAQnC,OAAO,KAAK,EACV,cAAc,EACd,cAAc,EACd,2BAA2B,EAC3B,mCAAmC,EACnC,mCAAmC,EACnC,2BAA2B,EAC3B,2BAA2B,EAC3B,wCAAwC,EACxC,6BAA6B,EAC7B,6BAA6B,EAC7B,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACpB,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,kCAAkC,EAClC,kCAAkC,EAClC,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,uBAAuB,EACvB,uBAAuB,EACvB,0BAA0B,EAC1B,0BAA0B,EAC1B,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,sBAAsB,EACtB,qCAAqC,EACrC,qCAAqC,EACrC,6BAA6B,EAC7B,6BAA6B,EAC7B,wBAAwB,EACxB,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,0BAA0B,EAC1B,0BAA0B,EAC1B,yBAAyB,EACzB,yBAAyB,EACzB,mCAAmC,EACnC,mCAAmC,EACnC,0BAA0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AAa,CAAC,UAAU,EAAE,MAAM,CA6CnC,CAAA"}
@@ -1,572 +0,0 @@
1
- import type { DropTransactionParameters, GetAutomineReturnType, GetTxpoolContentReturnType, GetTxpoolStatusReturnType, ImpersonateAccountParameters, IncreaseTimeParameters, InspectTxpoolReturnType, MineParameters, ResetParameters, RevertParameters, SendUnsignedTransactionParameters, SendUnsignedTransactionReturnType, SetBalanceParameters, SetBlockGasLimitParameters, SetBlockTimestampIntervalParameters, SetCodeParameters, SetCoinbaseParameters, SetIntervalMiningParameters, SetMinGasPriceParameters, SetNextBlockBaseFeePerGasParameters, SetNextBlockTimestampParameters, SetNonceParameters, SetStorageAtParameters, StopImpersonatingAccountParameters } from '../../actions/test/index.js';
2
- import type { Chain, Quantity } from '../../types/index.js';
3
- import type { TestClient, TestClientMode } from '../createTestClient.js';
4
- import type { Transport } from '../transports/index.js';
5
- export type TestActions = {
6
- /**
7
- * Removes a transaction from the mempool.
8
- *
9
- * - Docs: https://viem.sh/docs/actions/test/dropTransaction.html
10
- *
11
- * @param args - {@link DropTransactionParameters}
12
- *
13
- * @example
14
- * import { createTestClient, http } from 'viem'
15
- * import { foundry } from 'viem/chains'
16
- *
17
- * const client = createTestClient({
18
- * mode: 'anvil',
19
- * chain: 'foundry',
20
- * transport: http(),
21
- * })
22
- * await client.dropTransaction({
23
- * hash: '0xe58dceb6b20b03965bb678e27d141e151d7d4efc2334c2d6a49b9fac523f7364'
24
- * })
25
- */
26
- dropTransaction: (args: DropTransactionParameters) => Promise<void>;
27
- /**
28
- * Returns the automatic mining status of the node.
29
- *
30
- * - Docs: https://viem.sh/docs/actions/test/getAutomine.html
31
- *
32
- * @returns Whether or not the node is auto mining. {@link GetAutomineReturnType}
33
- *
34
- * @example
35
- * import { createTestClient, http } from 'viem'
36
- * import { foundry } from 'viem/chains'
37
- *
38
- * const client = createTestClient({
39
- * mode: 'anvil',
40
- * chain: 'foundry',
41
- * transport: http(),
42
- * })
43
- * const isAutomining = await client.getAutomine()
44
- */
45
- getAutomine: () => Promise<GetAutomineReturnType>;
46
- /**
47
- * Returns the details of all transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
48
- *
49
- * - Docs: https://viem.sh/docs/actions/test/getTxpoolContent.html
50
- *
51
- * @returns Transaction pool content. {@link GetTxpoolContentReturnType}
52
- *
53
- * @example
54
- * import { createTestClient, http } from 'viem'
55
- * import { foundry } from 'viem/chains'
56
- *
57
- * const client = createTestClient({
58
- * mode: 'anvil',
59
- * chain: 'foundry',
60
- * transport: http(),
61
- * })
62
- * const content = await client.getTxpoolContent()
63
- */
64
- getTxpoolContent: () => Promise<GetTxpoolContentReturnType>;
65
- /**
66
- * Returns a summary of all the transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
67
- *
68
- * - Docs: https://viem.sh/docs/actions/test/getTxpoolStatus.html
69
- *
70
- * @returns Transaction pool status. {@link GetTxpoolStatusReturnType}
71
- *
72
- * @example
73
- * import { createTestClient, http } from 'viem'
74
- * import { foundry } from 'viem/chains'
75
- *
76
- * const client = createTestClient({
77
- * mode: 'anvil',
78
- * chain: 'foundry',
79
- * transport: http(),
80
- * })
81
- * const status = await client.getTxpoolStatus()
82
- */
83
- getTxpoolStatus: () => Promise<GetTxpoolStatusReturnType>;
84
- /**
85
- * Impersonate an account or contract address. This lets you send transactions from that account even if you don't have access to its private key.
86
- *
87
- * - Docs: https://viem.sh/docs/actions/test/impersonateAccount.html
88
- *
89
- * @param args - {@link ImpersonateAccountParameters}
90
- *
91
- * @example
92
- * import { createTestClient, http } from 'viem'
93
- * import { foundry } from 'viem/chains'
94
- *
95
- * const client = createTestClient({
96
- * mode: 'anvil',
97
- * chain: 'foundry',
98
- * transport: http(),
99
- * })
100
- * await client.impersonateAccount({
101
- * address: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
102
- * })
103
- */
104
- impersonateAccount: (args: ImpersonateAccountParameters) => Promise<void>;
105
- /**
106
- * Jump forward in time by the given amount of time, in seconds.
107
- *
108
- * - Docs: https://viem.sh/docs/actions/test/increaseTime.html
109
- *
110
- * @param args – {@link IncreaseTimeParameters}
111
- *
112
- * @example
113
- * import { createTestClient, http } from 'viem'
114
- * import { foundry } from 'viem/chains'
115
- *
116
- * const client = createTestClient({
117
- * mode: 'anvil',
118
- * chain: 'foundry',
119
- * transport: http(),
120
- * })
121
- * await client.increaseTime({
122
- * seconds: 420,
123
- * })
124
- */
125
- increaseTime: (args: IncreaseTimeParameters) => Promise<Quantity>;
126
- /**
127
- * Returns a summary of all the transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
128
- *
129
- * - Docs: https://viem.sh/docs/actions/test/inspectTxpool.html
130
- *
131
- * @returns Transaction pool inspection data. {@link InspectTxpoolReturnType}
132
- *
133
- * @example
134
- * import { createTestClient, http } from 'viem'
135
- * import { foundry } from 'viem/chains'
136
- *
137
- * const client = createTestClient({
138
- * mode: 'anvil',
139
- * chain: 'foundry',
140
- * transport: http(),
141
- * })
142
- * const data = await client.inspectTxpool()
143
- */
144
- inspectTxpool: () => Promise<InspectTxpoolReturnType>;
145
- /**
146
- * Mine a specified number of blocks.
147
- *
148
- * - Docs: https://viem.sh/docs/actions/test/mine.html
149
- *
150
- * @param client - Client to use
151
- * @param args – {@link MineParameters}
152
- *
153
- * @example
154
- * import { createTestClient, http } from 'viem'
155
- * import { foundry } from 'viem/chains'
156
- *
157
- * const client = createTestClient({
158
- * mode: 'anvil',
159
- * chain: 'foundry',
160
- * transport: http(),
161
- * })
162
- * await client.mine({ blocks: 1 })
163
- */
164
- mine: (args: MineParameters) => Promise<void>;
165
- /**
166
- * Removes [`setBlockTimestampInterval`](https://viem.sh/docs/actions/test/setBlockTimestampInterval.html) if it exists.
167
- *
168
- * - Docs: https://viem.sh/docs/actions/test/removeBlockTimestampInterval.html
169
- *
170
- * @example
171
- * import { createTestClient, http } from 'viem'
172
- * import { foundry } from 'viem/chains'
173
- * import { removeBlockTimestampInterval } from 'viem/test'
174
- *
175
- * const client = createTestClient({
176
- * mode: 'anvil',
177
- * chain: 'foundry',
178
- * transport: http(),
179
- * })
180
- * await client.removeBlockTimestampInterval()
181
- */
182
- removeBlockTimestampInterval: () => Promise<void>;
183
- /**
184
- * Resets fork back to its original state.
185
- *
186
- * - Docs: https://viem.sh/docs/actions/test/reset.html
187
- *
188
- * @param args – {@link ResetParameters}
189
- *
190
- * @example
191
- * import { createTestClient, http } from 'viem'
192
- * import { foundry } from 'viem/chains'
193
- *
194
- * const client = createTestClient({
195
- * mode: 'anvil',
196
- * chain: 'foundry',
197
- * transport: http(),
198
- * })
199
- * await client.reset({ blockNumber: 69420n })
200
- */
201
- reset: (args?: ResetParameters) => Promise<void>;
202
- /**
203
- * Revert the state of the blockchain at the current block.
204
- *
205
- * - Docs: https://viem.sh/docs/actions/test/revert.html
206
- *
207
- * @param args – {@link RevertParameters}
208
- *
209
- * @example
210
- * import { createTestClient, http } from 'viem'
211
- * import { foundry } from 'viem/chains'
212
- *
213
- * const client = createTestClient({
214
- * mode: 'anvil',
215
- * chain: 'foundry',
216
- * transport: http(),
217
- * })
218
- * await client.revert({ id: '0x…' })
219
- */
220
- revert: (args: RevertParameters) => Promise<void>;
221
- /**
222
- * Returns the details of all transactions currently pending for inclusion in the next block(s), as well as the ones that are being scheduled for future execution only.
223
- *
224
- * - Docs: https://viem.sh/docs/actions/test/getTxpoolContent.html
225
- *
226
- * @param args – {@link SendUnsignedTransactionParameters}
227
- * @returns The transaction hash. {@link SendUnsignedTransactionReturnType}
228
- *
229
- * @example
230
- * import { createTestClient, http } from 'viem'
231
- * import { foundry } from 'viem/chains'
232
- *
233
- * const client = createTestClient({
234
- * mode: 'anvil',
235
- * chain: 'foundry',
236
- * transport: http(),
237
- * })
238
- * const hash = await client.sendUnsignedTransaction({
239
- * from: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
240
- * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
241
- * value: 1000000000000000000n,
242
- * })
243
- */
244
- sendUnsignedTransaction: (args: SendUnsignedTransactionParameters) => Promise<SendUnsignedTransactionReturnType>;
245
- /**
246
- * Enables or disables the automatic mining of new blocks with each new transaction submitted to the network.
247
- *
248
- * - Docs: https://viem.sh/docs/actions/test/setAutomine.html
249
- *
250
- * @example
251
- * import { createTestClient, http } from 'viem'
252
- * import { foundry } from 'viem/chains'
253
- *
254
- * const client = createTestClient({
255
- * mode: 'anvil',
256
- * chain: 'foundry',
257
- * transport: http(),
258
- * })
259
- * await client.setAutomine()
260
- */
261
- setAutomine: (args: boolean) => Promise<void>;
262
- /**
263
- * Modifies the balance of an account.
264
- *
265
- * - Docs: https://viem.sh/docs/actions/test/setBalance.html
266
- *
267
- * @param args – {@link SetBalanceParameters}
268
- *
269
- * @example
270
- * import { createTestClient, http, parseEther } from 'viem'
271
- * import { foundry } from 'viem/chains'
272
- *
273
- * const client = createTestClient({
274
- * mode: 'anvil',
275
- * chain: 'foundry',
276
- * transport: http(),
277
- * })
278
- * await client.setBalance({
279
- * address: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
280
- * value: parseEther('1'),
281
- * })
282
- */
283
- setBalance: (args: SetBalanceParameters) => Promise<void>;
284
- /**
285
- * Sets the block's gas limit.
286
- *
287
- * - Docs: https://viem.sh/docs/actions/test/setBlockGasLimit.html
288
- *
289
- * @param args – {@link SetBlockGasLimitParameters}
290
- *
291
- * @example
292
- * import { createTestClient, http } from 'viem'
293
- * import { foundry } from 'viem/chains'
294
- *
295
- * const client = createTestClient({
296
- * mode: 'anvil',
297
- * chain: 'foundry',
298
- * transport: http(),
299
- * })
300
- * await client.setBlockGasLimit({ gasLimit: 420_000n })
301
- */
302
- setBlockGasLimit: (args: SetBlockGasLimitParameters) => Promise<void>;
303
- /**
304
- * Similar to [`increaseTime`](https://viem.sh/docs/actions/test/increaseTime), but sets a block timestamp `interval`. The timestamp of future blocks will be computed as `lastBlock_timestamp` + `interval`.
305
- *
306
- * - Docs: https://viem.sh/docs/actions/test/setBlockTimestampInterval.html
307
- *
308
- * @param args – {@link SetBlockTimestampIntervalParameters}
309
- *
310
- * @example
311
- * import { createTestClient, http } from 'viem'
312
- * import { foundry } from 'viem/chains'
313
- *
314
- * const client = createTestClient({
315
- * mode: 'anvil',
316
- * chain: 'foundry',
317
- * transport: http(),
318
- * })
319
- * await client.setBlockTimestampInterval({ interval: 5 })
320
- */
321
- setBlockTimestampInterval: (args: SetBlockTimestampIntervalParameters) => Promise<void>;
322
- /**
323
- * Modifies the bytecode stored at an account's address.
324
- *
325
- * - Docs: https://viem.sh/docs/actions/test/setCode.html
326
- *
327
- * @param args – {@link SetCodeParameters}
328
- *
329
- * @example
330
- * import { createTestClient, http } from 'viem'
331
- * import { foundry } from 'viem/chains'
332
- *
333
- * const client = createTestClient({
334
- * mode: 'anvil',
335
- * chain: 'foundry',
336
- * transport: http(),
337
- * })
338
- * await client.setCode({
339
- * address: '0xe846c6fcf817734ca4527b28ccb4aea2b6663c79',
340
- * bytecode: '0x60806040526000600355600019600955600c80546001600160a01b031916737a250d5630b4cf539739df…',
341
- * })
342
- */
343
- setCode: (args: SetCodeParameters) => Promise<void>;
344
- /**
345
- * Sets the coinbase address to be used in new blocks.
346
- *
347
- * - Docs: https://viem.sh/docs/actions/test/setCoinbase.html
348
- *
349
- * @param args – {@link SetCoinbaseParameters}
350
- *
351
- * @example
352
- * import { createTestClient, http } from 'viem'
353
- * import { foundry } from 'viem/chains'
354
- *
355
- * const client = createTestClient({
356
- * mode: 'anvil',
357
- * chain: 'foundry',
358
- * transport: http(),
359
- * })
360
- * await client.setCoinbase({
361
- * address: '0xe846c6fcf817734ca4527b28ccb4aea2b6663c79',
362
- * })
363
- */
364
- setCoinbase: (args: SetCoinbaseParameters) => Promise<void>;
365
- /**
366
- * Sets the automatic mining interval (in seconds) of blocks. Setting the interval to 0 will disable automatic mining.
367
- *
368
- * - Docs: https://viem.sh/docs/actions/test/setIntervalMining.html
369
- *
370
- * @param args – {@link SetIntervalMiningParameters}
371
- *
372
- * @example
373
- * import { createTestClient, http } from 'viem'
374
- * import { foundry } from 'viem/chains'
375
- *
376
- * const client = createTestClient({
377
- * mode: 'anvil',
378
- * chain: 'foundry',
379
- * transport: http(),
380
- * })
381
- * await client.setIntervalMining({ interval: 5 })
382
- */
383
- setIntervalMining: (args: SetIntervalMiningParameters) => Promise<void>;
384
- /**
385
- * Enable or disable logging on the test node network.
386
- *
387
- * - Docs: https://viem.sh/docs/actions/test/setLoggingEnabled.html
388
- *
389
- * @param client - Client to use
390
- *
391
- * @example
392
- * import { createTestClient, http } from 'viem'
393
- * import { foundry } from 'viem/chains'
394
- *
395
- * const client = createTestClient({
396
- * mode: 'anvil',
397
- * chain: 'foundry',
398
- * transport: http(),
399
- * })
400
- * await client.setLoggingEnabled()
401
- */
402
- setLoggingEnabled: (args: boolean) => Promise<void>;
403
- /**
404
- * Change the minimum gas price accepted by the network (in wei).
405
- *
406
- * - Docs: https://viem.sh/docs/actions/test/setMinGasPrice.html
407
- *
408
- * Note: `setMinGasPrice` can only be used on clients that do not have EIP-1559 enabled.
409
- *
410
- * @param args – {@link SetBlockGasLimitParameters}
411
- *
412
- * @example
413
- * import { createTestClient, http, parseGwei } from 'viem'
414
- * import { foundry } from 'viem/chains'
415
- *
416
- * const client = createTestClient({
417
- * mode: 'anvil',
418
- * chain: 'foundry',
419
- * transport: http(),
420
- * })
421
- * await client.setMinGasPrice({
422
- * gasPrice: parseGwei('20'),
423
- * })
424
- */
425
- setMinGasPrice: (args: SetMinGasPriceParameters) => Promise<void>;
426
- /**
427
- * Sets the next block's base fee per gas.
428
- *
429
- * - Docs: https://viem.sh/docs/actions/test/setNextBlockBaseFeePerGas.html
430
- *
431
- * @param args – {@link SetNextBlockBaseFeePerGasParameters}
432
- *
433
- * @example
434
- * import { createTestClient, http, parseGwei } from 'viem'
435
- * import { foundry } from 'viem/chains'
436
- *
437
- * const client = createTestClient({
438
- * mode: 'anvil',
439
- * chain: 'foundry',
440
- * transport: http(),
441
- * })
442
- * await client.setNextBlockBaseFeePerGas({
443
- * baseFeePerGas: parseGwei('20'),
444
- * })
445
- */
446
- setNextBlockBaseFeePerGas: (args: SetNextBlockBaseFeePerGasParameters) => Promise<void>;
447
- /**
448
- * Sets the next block's timestamp.
449
- *
450
- * - Docs: https://viem.sh/docs/actions/test/setNextBlockTimestamp.html
451
- *
452
- * @param args – {@link SetNextBlockTimestampParameters}
453
- *
454
- * @example
455
- * import { createTestClient, http } from 'viem'
456
- * import { foundry } from 'viem/chains'
457
- *
458
- * const client = createTestClient({
459
- * mode: 'anvil',
460
- * chain: 'foundry',
461
- * transport: http(),
462
- * })
463
- * await client.setNextBlockTimestamp({ timestamp: 1671744314n })
464
- */
465
- setNextBlockTimestamp: (args: SetNextBlockTimestampParameters) => Promise<void>;
466
- /**
467
- * Modifies (overrides) the nonce of an account.
468
- *
469
- * - Docs: https://viem.sh/docs/actions/test/setNonce.html
470
- *
471
- * @param args – {@link SetNonceParameters}
472
- *
473
- * @example
474
- * import { createTestClient, http } from 'viem'
475
- * import { foundry } from 'viem/chains'
476
- *
477
- * const client = createTestClient({
478
- * mode: 'anvil',
479
- * chain: 'foundry',
480
- * transport: http(),
481
- * })
482
- * await client.setNonce({
483
- * address: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
484
- * nonce: 420,
485
- * })
486
- */
487
- setNonce: (args: SetNonceParameters) => Promise<void>;
488
- /**
489
- * Sets the backend RPC URL.
490
- *
491
- * - Docs: https://viem.sh/docs/actions/test/setRpcUrl.html
492
- *
493
- * @param jsonRpcUrl – RPC URL
494
- *
495
- * @example
496
- * import { createTestClient, http } from 'viem'
497
- * import { foundry } from 'viem/chains'
498
- *
499
- * const client = createTestClient({
500
- * mode: 'anvil',
501
- * chain: 'foundry',
502
- * transport: http(),
503
- * })
504
- * await client.setRpcUrl('https://eth-mainnet.g.alchemy.com/v2')
505
- */
506
- setRpcUrl: (args: string) => Promise<void>;
507
- /**
508
- * Writes to a slot of an account's storage.
509
- *
510
- * - Docs: https://viem.sh/docs/actions/test/setStorageAt.html
511
- *
512
- * @param args – {@link SetStorageAtParameters}
513
- *
514
- * @example
515
- * import { createTestClient, http } from 'viem'
516
- * import { foundry } from 'viem/chains'
517
- *
518
- * const client = createTestClient({
519
- * mode: 'anvil',
520
- * chain: 'foundry',
521
- * transport: http(),
522
- * })
523
- * await client.setStorageAt({
524
- * address: '0xe846c6fcf817734ca4527b28ccb4aea2b6663c79',
525
- * index: 2,
526
- * value: '0x0000000000000000000000000000000000000000000000000000000000000069',
527
- * })
528
- */
529
- setStorageAt: (args: SetStorageAtParameters) => Promise<void>;
530
- /**
531
- * Snapshot the state of the blockchain at the current block.
532
- *
533
- * - Docs: https://viem.sh/docs/actions/test/snapshot.html
534
- *
535
- * @example
536
- * import { createTestClient, http } from 'viem'
537
- * import { foundry } from 'viem/chains'
538
- * import { snapshot } from 'viem/test'
539
- *
540
- * const client = createTestClient({
541
- * mode: 'anvil',
542
- * chain: 'foundry',
543
- * transport: http(),
544
- * })
545
- * await client.snapshot()
546
- */
547
- snapshot: () => Promise<Quantity>;
548
- /**
549
- * Stop impersonating an account after having previously used [`impersonateAccount`](https://viem.sh/docs/actions/test/impersonateAccount).
550
- *
551
- * - Docs: https://viem.sh/docs/actions/test/stopImpersonatingAccount.html
552
- *
553
- * @param args – {@link StopImpersonatingAccountParameters}
554
- *
555
- * @example
556
- * import { createTestClient, http } from 'viem'
557
- * import { foundry } from 'viem/chains'
558
- * import { stopImpersonatingAccount } from 'viem/test'
559
- *
560
- * const client = createTestClient({
561
- * mode: 'anvil',
562
- * chain: 'foundry',
563
- * transport: http(),
564
- * })
565
- * await client.stopImpersonatingAccount({
566
- * address: '0xa5cc3c03994DB5b0d9A5eEdD10CabaB0813678AC',
567
- * })
568
- */
569
- stopImpersonatingAccount: (args: StopImpersonatingAccountParameters) => Promise<void>;
570
- };
571
- export declare function testActions<TChain extends Chain | undefined>(client: TestClient<TestClientMode, Transport, TChain>): TestActions;
572
- //# sourceMappingURL=test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../../../src/clients/decorators/test.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACrB,0BAA0B,EAC1B,yBAAyB,EACzB,4BAA4B,EAC5B,sBAAsB,EACtB,uBAAuB,EACvB,cAAc,EACd,eAAe,EACf,gBAAgB,EAChB,iCAAiC,EACjC,iCAAiC,EACjC,oBAAoB,EACpB,0BAA0B,EAC1B,mCAAmC,EACnC,iBAAiB,EACjB,qBAAqB,EACrB,2BAA2B,EAC3B,wBAAwB,EACxB,mCAAmC,EACnC,+BAA+B,EAC/B,kBAAkB,EAClB,sBAAsB,EACtB,kCAAkC,EACnC,MAAM,6BAA6B,CAAA;AA+BpC,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC3D,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAEvD,MAAM,MAAM,WAAW,GAAG;IACxB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,eAAe,EAAE,CAAC,IAAI,EAAE,yBAAyB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACnE;;;;;;;;;;;;;;;;;OAiBG;IACH,WAAW,EAAE,MAAM,OAAO,CAAC,qBAAqB,CAAC,CAAA;IACjD;;;;;;;;;;;;;;;;;OAiBG;IACH,gBAAgB,EAAE,MAAM,OAAO,CAAC,0BAA0B,CAAC,CAAA;IAC3D;;;;;;;;;;;;;;;;;OAiBG;IACH,eAAe,EAAE,MAAM,OAAO,CAAC,yBAAyB,CAAC,CAAA;IACzD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,kBAAkB,EAAE,CAAC,IAAI,EAAE,4BAA4B,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IACzE;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