viem 0.0.0-main.20240110T155739 → 0.0.0-main.20240110T220130

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 (406) hide show
  1. package/CHANGELOG.md +7 -7
  2. package/README.md +1 -1
  3. package/_cjs/errors/base.js +1 -1
  4. package/_cjs/errors/base.js.map +1 -1
  5. package/_cjs/errors/version.js +1 -1
  6. package/_esm/actions/ens/getEnsAddress.js +2 -2
  7. package/_esm/actions/ens/getEnsAvatar.js +3 -3
  8. package/_esm/actions/ens/getEnsName.js +1 -1
  9. package/_esm/actions/ens/getEnsResolver.js +2 -2
  10. package/_esm/actions/ens/getEnsText.js +2 -2
  11. package/_esm/actions/getContract.js +2 -2
  12. package/_esm/actions/public/call.js +1 -1
  13. package/_esm/actions/public/createBlockFilter.js +3 -3
  14. package/_esm/actions/public/createContractEventFilter.js +3 -3
  15. package/_esm/actions/public/createEventFilter.js +3 -3
  16. package/_esm/actions/public/createPendingTransactionFilter.js +3 -3
  17. package/_esm/actions/public/estimateContractGas.js +2 -2
  18. package/_esm/actions/public/estimateFeesPerGas.js +2 -2
  19. package/_esm/actions/public/estimateGas.js +1 -1
  20. package/_esm/actions/public/estimateMaxPriorityFeePerGas.js +2 -2
  21. package/_esm/actions/public/getBalance.js +2 -2
  22. package/_esm/actions/public/getBlock.js +1 -1
  23. package/_esm/actions/public/getBlockNumber.js +1 -1
  24. package/_esm/actions/public/getBlockTransactionCount.js +1 -1
  25. package/_esm/actions/public/getBytecode.js +1 -1
  26. package/_esm/actions/public/getChainId.js +1 -1
  27. package/_esm/actions/public/getContractEvents.js +1 -1
  28. package/_esm/actions/public/getFeeHistory.js +1 -1
  29. package/_esm/actions/public/getFilterChanges.js +5 -5
  30. package/_esm/actions/public/getFilterLogs.js +1 -1
  31. package/_esm/actions/public/getGasPrice.js +1 -1
  32. package/_esm/actions/public/getLogs.js +1 -1
  33. package/_esm/actions/public/getProof.js +1 -1
  34. package/_esm/actions/public/getStorageAt.js +1 -1
  35. package/_esm/actions/public/getTransaction.js +2 -2
  36. package/_esm/actions/public/getTransactionConfirmations.js +1 -1
  37. package/_esm/actions/public/getTransactionCount.js +2 -2
  38. package/_esm/actions/public/getTransactionReceipt.js +2 -2
  39. package/_esm/actions/public/multicall.js +2 -2
  40. package/_esm/actions/public/readContract.js +2 -2
  41. package/_esm/actions/public/simulateContract.js +3 -3
  42. package/_esm/actions/public/uninstallFilter.js +5 -5
  43. package/_esm/actions/public/verifyMessage.js +1 -1
  44. package/_esm/actions/public/verifyTypedData.js +1 -1
  45. package/_esm/actions/public/waitForTransactionReceipt.js +2 -2
  46. package/_esm/actions/public/watchBlockNumber.js +1 -1
  47. package/_esm/actions/public/watchBlocks.js +1 -1
  48. package/_esm/actions/public/watchContractEvent.js +3 -3
  49. package/_esm/actions/public/watchEvent.js +4 -4
  50. package/_esm/actions/public/watchPendingTransactions.js +2 -2
  51. package/_esm/actions/test/dropTransaction.js +1 -1
  52. package/_esm/actions/test/dumpState.js +1 -1
  53. package/_esm/actions/test/getAutomine.js +1 -1
  54. package/_esm/actions/test/getTxpoolContent.js +1 -1
  55. package/_esm/actions/test/getTxpoolStatus.js +1 -1
  56. package/_esm/actions/test/impersonateAccount.js +1 -1
  57. package/_esm/actions/test/increaseTime.js +1 -1
  58. package/_esm/actions/test/inspectTxpool.js +1 -1
  59. package/_esm/actions/test/loadState.js +1 -1
  60. package/_esm/actions/test/mine.js +1 -1
  61. package/_esm/actions/test/removeBlockTimestampInterval.js +2 -2
  62. package/_esm/actions/test/reset.js +1 -1
  63. package/_esm/actions/test/revert.js +1 -1
  64. package/_esm/actions/test/sendUnsignedTransaction.js +1 -1
  65. package/_esm/actions/test/setAutomine.js +1 -1
  66. package/_esm/actions/test/setBalance.js +1 -1
  67. package/_esm/actions/test/setBlockGasLimit.js +1 -1
  68. package/_esm/actions/test/setBlockTimestampInterval.js +2 -2
  69. package/_esm/actions/test/setCode.js +1 -1
  70. package/_esm/actions/test/setCoinbase.js +1 -1
  71. package/_esm/actions/test/setIntervalMining.js +1 -1
  72. package/_esm/actions/test/setLoggingEnabled.js +1 -1
  73. package/_esm/actions/test/setMinGasPrice.js +1 -1
  74. package/_esm/actions/test/setNextBlockBaseFeePerGas.js +1 -1
  75. package/_esm/actions/test/setNextBlockTimestamp.js +1 -1
  76. package/_esm/actions/test/setNonce.js +1 -1
  77. package/_esm/actions/test/setRpcUrl.js +1 -1
  78. package/_esm/actions/test/setStorageAt.js +1 -1
  79. package/_esm/actions/test/snapshot.js +1 -1
  80. package/_esm/actions/test/stopImpersonatingAccount.js +2 -2
  81. package/_esm/actions/wallet/addChain.js +1 -1
  82. package/_esm/actions/wallet/deployContract.js +2 -2
  83. package/_esm/actions/wallet/getAddresses.js +1 -1
  84. package/_esm/actions/wallet/getPermissions.js +1 -1
  85. package/_esm/actions/wallet/prepareTransactionRequest.js +1 -1
  86. package/_esm/actions/wallet/requestAddresses.js +1 -1
  87. package/_esm/actions/wallet/requestPermissions.js +1 -1
  88. package/_esm/actions/wallet/sendRawTransaction.js +1 -1
  89. package/_esm/actions/wallet/sendTransaction.js +2 -2
  90. package/_esm/actions/wallet/signMessage.js +4 -4
  91. package/_esm/actions/wallet/signTransaction.js +1 -1
  92. package/_esm/actions/wallet/signTypedData.js +2 -2
  93. package/_esm/actions/wallet/switchChain.js +1 -1
  94. package/_esm/actions/wallet/watchAsset.js +1 -1
  95. package/_esm/actions/wallet/writeContract.js +5 -5
  96. package/_esm/chains/opStack/actions/buildDepositTransaction.js +1 -1
  97. package/_esm/chains/opStack/actions/buildInitiateWithdrawal.js +1 -1
  98. package/_esm/chains/opStack/actions/buildProveWithdrawal.js +1 -1
  99. package/_esm/chains/opStack/actions/depositTransaction.js +1 -1
  100. package/_esm/chains/opStack/actions/estimateDepositTransactionGas.js +1 -1
  101. package/_esm/chains/opStack/actions/estimateFinalizeWithdrawalGas.js +1 -1
  102. package/_esm/chains/opStack/actions/estimateInitiateWithdrawalGas.js +1 -1
  103. package/_esm/chains/opStack/actions/estimateProveWithdrawalGas.js +1 -1
  104. package/_esm/chains/opStack/actions/finalizeWithdrawal.js +1 -1
  105. package/_esm/chains/opStack/actions/getL2Output.js +1 -1
  106. package/_esm/chains/opStack/actions/getTimeToFinalize.js +2 -2
  107. package/_esm/chains/opStack/actions/getTimeToNextL2Output.js +2 -2
  108. package/_esm/chains/opStack/actions/getTimeToProve.js +2 -2
  109. package/_esm/chains/opStack/actions/getWithdrawalStatus.js +2 -2
  110. package/_esm/chains/opStack/actions/initiateWithdrawal.js +1 -1
  111. package/_esm/chains/opStack/actions/proveWithdrawal.js +1 -1
  112. package/_esm/chains/opStack/actions/waitForNextL2Output.js +1 -1
  113. package/_esm/chains/opStack/actions/waitToFinalize.js +2 -2
  114. package/_esm/chains/opStack/actions/waitToProve.js +2 -2
  115. package/_esm/chains/opStack/decorators/publicL1.js +1 -1
  116. package/_esm/chains/opStack/decorators/publicL2.js +1 -1
  117. package/_esm/chains/opStack/decorators/walletL1.js +1 -1
  118. package/_esm/chains/opStack/decorators/walletL2.js +1 -1
  119. package/_esm/errors/base.js +1 -1
  120. package/_esm/errors/base.js.map +1 -1
  121. package/_esm/errors/version.js +1 -1
  122. package/_esm/utils/encoding/fromBytes.js +6 -6
  123. package/_esm/utils/encoding/fromHex.js +6 -6
  124. package/_esm/utils/encoding/toBytes.js +6 -6
  125. package/_esm/utils/encoding/toHex.js +6 -6
  126. package/_esm/utils/ens/labelhash.js +1 -1
  127. package/_esm/utils/ens/namehash.js +1 -1
  128. package/_esm/utils/signature/verifyMessage.js +1 -1
  129. package/_esm/utils/signature/verifyTypedData.js +1 -1
  130. package/_esm/utils/unit/formatEther.js +1 -1
  131. package/_esm/utils/unit/formatGwei.js +1 -1
  132. package/_esm/utils/unit/formatUnits.js +1 -1
  133. package/_esm/utils/unit/parseEther.js +1 -1
  134. package/_esm/utils/unit/parseGwei.js +1 -1
  135. package/_esm/utils/unit/parseUnits.js +1 -1
  136. package/_types/actions/ens/getEnsAddress.d.ts +2 -2
  137. package/_types/actions/ens/getEnsAvatar.d.ts +3 -3
  138. package/_types/actions/ens/getEnsName.d.ts +1 -1
  139. package/_types/actions/ens/getEnsResolver.d.ts +2 -2
  140. package/_types/actions/ens/getEnsText.d.ts +2 -2
  141. package/_types/actions/getContract.d.ts +22 -22
  142. package/_types/actions/public/call.d.ts +1 -1
  143. package/_types/actions/public/createBlockFilter.d.ts +3 -3
  144. package/_types/actions/public/createContractEventFilter.d.ts +3 -3
  145. package/_types/actions/public/createEventFilter.d.ts +3 -3
  146. package/_types/actions/public/createPendingTransactionFilter.d.ts +3 -3
  147. package/_types/actions/public/estimateContractGas.d.ts +2 -2
  148. package/_types/actions/public/estimateFeesPerGas.d.ts +2 -2
  149. package/_types/actions/public/estimateGas.d.ts +1 -1
  150. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts +2 -2
  151. package/_types/actions/public/getBalance.d.ts +2 -2
  152. package/_types/actions/public/getBlock.d.ts +1 -1
  153. package/_types/actions/public/getBlockNumber.d.ts +1 -1
  154. package/_types/actions/public/getBlockTransactionCount.d.ts +1 -1
  155. package/_types/actions/public/getBytecode.d.ts +1 -1
  156. package/_types/actions/public/getChainId.d.ts +1 -1
  157. package/_types/actions/public/getContractEvents.d.ts +1 -1
  158. package/_types/actions/public/getFeeHistory.d.ts +1 -1
  159. package/_types/actions/public/getFilterChanges.d.ts +5 -5
  160. package/_types/actions/public/getFilterLogs.d.ts +1 -1
  161. package/_types/actions/public/getGasPrice.d.ts +1 -1
  162. package/_types/actions/public/getLogs.d.ts +1 -1
  163. package/_types/actions/public/getProof.d.ts +1 -1
  164. package/_types/actions/public/getStorageAt.d.ts +1 -1
  165. package/_types/actions/public/getTransaction.d.ts +2 -2
  166. package/_types/actions/public/getTransactionConfirmations.d.ts +1 -1
  167. package/_types/actions/public/getTransactionCount.d.ts +2 -2
  168. package/_types/actions/public/getTransactionReceipt.d.ts +2 -2
  169. package/_types/actions/public/multicall.d.ts +2 -2
  170. package/_types/actions/public/readContract.d.ts +2 -2
  171. package/_types/actions/public/simulateContract.d.ts +3 -3
  172. package/_types/actions/public/uninstallFilter.d.ts +5 -5
  173. package/_types/actions/public/verifyMessage.d.ts +1 -1
  174. package/_types/actions/public/verifyTypedData.d.ts +1 -1
  175. package/_types/actions/public/waitForTransactionReceipt.d.ts +2 -2
  176. package/_types/actions/public/watchBlockNumber.d.ts +1 -1
  177. package/_types/actions/public/watchBlocks.d.ts +1 -1
  178. package/_types/actions/public/watchContractEvent.d.ts +3 -3
  179. package/_types/actions/public/watchEvent.d.ts +4 -4
  180. package/_types/actions/public/watchPendingTransactions.d.ts +2 -2
  181. package/_types/actions/test/dropTransaction.d.ts +1 -1
  182. package/_types/actions/test/dumpState.d.ts +1 -1
  183. package/_types/actions/test/getAutomine.d.ts +1 -1
  184. package/_types/actions/test/getTxpoolContent.d.ts +1 -1
  185. package/_types/actions/test/getTxpoolStatus.d.ts +1 -1
  186. package/_types/actions/test/impersonateAccount.d.ts +1 -1
  187. package/_types/actions/test/increaseTime.d.ts +1 -1
  188. package/_types/actions/test/inspectTxpool.d.ts +1 -1
  189. package/_types/actions/test/loadState.d.ts +1 -1
  190. package/_types/actions/test/mine.d.ts +1 -1
  191. package/_types/actions/test/removeBlockTimestampInterval.d.ts +2 -2
  192. package/_types/actions/test/reset.d.ts +1 -1
  193. package/_types/actions/test/revert.d.ts +1 -1
  194. package/_types/actions/test/sendUnsignedTransaction.d.ts +1 -1
  195. package/_types/actions/test/setAutomine.d.ts +1 -1
  196. package/_types/actions/test/setBalance.d.ts +1 -1
  197. package/_types/actions/test/setBlockGasLimit.d.ts +1 -1
  198. package/_types/actions/test/setBlockTimestampInterval.d.ts +2 -2
  199. package/_types/actions/test/setCode.d.ts +1 -1
  200. package/_types/actions/test/setCoinbase.d.ts +1 -1
  201. package/_types/actions/test/setIntervalMining.d.ts +1 -1
  202. package/_types/actions/test/setLoggingEnabled.d.ts +1 -1
  203. package/_types/actions/test/setMinGasPrice.d.ts +1 -1
  204. package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts +1 -1
  205. package/_types/actions/test/setNextBlockTimestamp.d.ts +1 -1
  206. package/_types/actions/test/setNonce.d.ts +1 -1
  207. package/_types/actions/test/setRpcUrl.d.ts +1 -1
  208. package/_types/actions/test/setStorageAt.d.ts +1 -1
  209. package/_types/actions/test/snapshot.d.ts +1 -1
  210. package/_types/actions/test/stopImpersonatingAccount.d.ts +2 -2
  211. package/_types/actions/wallet/addChain.d.ts +1 -1
  212. package/_types/actions/wallet/deployContract.d.ts +2 -2
  213. package/_types/actions/wallet/getAddresses.d.ts +1 -1
  214. package/_types/actions/wallet/getPermissions.d.ts +1 -1
  215. package/_types/actions/wallet/prepareTransactionRequest.d.ts +1 -1
  216. package/_types/actions/wallet/requestAddresses.d.ts +1 -1
  217. package/_types/actions/wallet/requestPermissions.d.ts +1 -1
  218. package/_types/actions/wallet/sendRawTransaction.d.ts +1 -1
  219. package/_types/actions/wallet/sendTransaction.d.ts +2 -2
  220. package/_types/actions/wallet/signMessage.d.ts +4 -4
  221. package/_types/actions/wallet/signTransaction.d.ts +1 -1
  222. package/_types/actions/wallet/signTypedData.d.ts +2 -2
  223. package/_types/actions/wallet/switchChain.d.ts +1 -1
  224. package/_types/actions/wallet/watchAsset.d.ts +1 -1
  225. package/_types/actions/wallet/writeContract.d.ts +5 -5
  226. package/_types/chains/opStack/actions/buildDepositTransaction.d.ts +1 -1
  227. package/_types/chains/opStack/actions/buildInitiateWithdrawal.d.ts +1 -1
  228. package/_types/chains/opStack/actions/buildProveWithdrawal.d.ts +1 -1
  229. package/_types/chains/opStack/actions/depositTransaction.d.ts +1 -1
  230. package/_types/chains/opStack/actions/estimateDepositTransactionGas.d.ts +1 -1
  231. package/_types/chains/opStack/actions/estimateFinalizeWithdrawalGas.d.ts +1 -1
  232. package/_types/chains/opStack/actions/estimateInitiateWithdrawalGas.d.ts +1 -1
  233. package/_types/chains/opStack/actions/estimateProveWithdrawalGas.d.ts +1 -1
  234. package/_types/chains/opStack/actions/finalizeWithdrawal.d.ts +1 -1
  235. package/_types/chains/opStack/actions/getL2Output.d.ts +1 -1
  236. package/_types/chains/opStack/actions/getTimeToFinalize.d.ts +2 -2
  237. package/_types/chains/opStack/actions/getTimeToNextL2Output.d.ts +2 -2
  238. package/_types/chains/opStack/actions/getTimeToProve.d.ts +2 -2
  239. package/_types/chains/opStack/actions/getWithdrawalStatus.d.ts +2 -2
  240. package/_types/chains/opStack/actions/initiateWithdrawal.d.ts +1 -1
  241. package/_types/chains/opStack/actions/proveWithdrawal.d.ts +1 -1
  242. package/_types/chains/opStack/actions/waitForNextL2Output.d.ts +1 -1
  243. package/_types/chains/opStack/actions/waitToFinalize.d.ts +2 -2
  244. package/_types/chains/opStack/actions/waitToProve.d.ts +2 -2
  245. package/_types/chains/opStack/decorators/publicL1.d.ts +20 -20
  246. package/_types/chains/opStack/decorators/publicL2.d.ts +4 -4
  247. package/_types/chains/opStack/decorators/walletL1.d.ts +4 -4
  248. package/_types/chains/opStack/decorators/walletL2.d.ts +2 -2
  249. package/_types/clients/createPublicClient.d.ts +2 -2
  250. package/_types/clients/createTestClient.d.ts +3 -3
  251. package/_types/clients/createWalletClient.d.ts +5 -5
  252. package/_types/clients/decorators/public.d.ts +79 -79
  253. package/_types/clients/decorators/test.d.ts +33 -33
  254. package/_types/clients/decorators/wallet.d.ts +26 -26
  255. package/_types/errors/version.d.ts +1 -1
  256. package/_types/utils/encoding/fromBytes.d.ts +6 -6
  257. package/_types/utils/encoding/fromHex.d.ts +6 -6
  258. package/_types/utils/encoding/toBytes.d.ts +6 -6
  259. package/_types/utils/encoding/toHex.d.ts +6 -6
  260. package/_types/utils/ens/labelhash.d.ts +1 -1
  261. package/_types/utils/ens/namehash.d.ts +1 -1
  262. package/_types/utils/signature/verifyMessage.d.ts +1 -1
  263. package/_types/utils/signature/verifyTypedData.d.ts +1 -1
  264. package/_types/utils/unit/formatEther.d.ts +1 -1
  265. package/_types/utils/unit/formatGwei.d.ts +1 -1
  266. package/_types/utils/unit/formatUnits.d.ts +1 -1
  267. package/_types/utils/unit/parseEther.d.ts +1 -1
  268. package/_types/utils/unit/parseGwei.d.ts +1 -1
  269. package/_types/utils/unit/parseUnits.d.ts +1 -1
  270. package/actions/ens/getEnsAddress.ts +2 -2
  271. package/actions/ens/getEnsAvatar.ts +3 -3
  272. package/actions/ens/getEnsName.ts +1 -1
  273. package/actions/ens/getEnsResolver.ts +2 -2
  274. package/actions/ens/getEnsText.ts +2 -2
  275. package/actions/getContract.ts +22 -22
  276. package/actions/public/call.ts +1 -1
  277. package/actions/public/createBlockFilter.ts +3 -3
  278. package/actions/public/createContractEventFilter.ts +3 -3
  279. package/actions/public/createEventFilter.ts +3 -3
  280. package/actions/public/createPendingTransactionFilter.ts +3 -3
  281. package/actions/public/estimateContractGas.ts +2 -2
  282. package/actions/public/estimateFeesPerGas.ts +2 -2
  283. package/actions/public/estimateGas.ts +1 -1
  284. package/actions/public/estimateMaxPriorityFeePerGas.ts +2 -2
  285. package/actions/public/getBalance.ts +2 -2
  286. package/actions/public/getBlock.ts +1 -1
  287. package/actions/public/getBlockNumber.ts +1 -1
  288. package/actions/public/getBlockTransactionCount.ts +1 -1
  289. package/actions/public/getBytecode.ts +1 -1
  290. package/actions/public/getChainId.ts +1 -1
  291. package/actions/public/getContractEvents.ts +1 -1
  292. package/actions/public/getFeeHistory.ts +1 -1
  293. package/actions/public/getFilterChanges.ts +5 -5
  294. package/actions/public/getFilterLogs.ts +1 -1
  295. package/actions/public/getGasPrice.ts +1 -1
  296. package/actions/public/getLogs.ts +1 -1
  297. package/actions/public/getProof.ts +1 -1
  298. package/actions/public/getStorageAt.ts +1 -1
  299. package/actions/public/getTransaction.ts +2 -2
  300. package/actions/public/getTransactionConfirmations.ts +1 -1
  301. package/actions/public/getTransactionCount.ts +2 -2
  302. package/actions/public/getTransactionReceipt.ts +2 -2
  303. package/actions/public/multicall.ts +2 -2
  304. package/actions/public/readContract.ts +2 -2
  305. package/actions/public/simulateContract.ts +3 -3
  306. package/actions/public/uninstallFilter.ts +5 -5
  307. package/actions/public/verifyMessage.ts +1 -1
  308. package/actions/public/verifyTypedData.ts +1 -1
  309. package/actions/public/waitForTransactionReceipt.ts +2 -2
  310. package/actions/public/watchBlockNumber.ts +1 -1
  311. package/actions/public/watchBlocks.ts +1 -1
  312. package/actions/public/watchContractEvent.ts +3 -3
  313. package/actions/public/watchEvent.ts +4 -4
  314. package/actions/public/watchPendingTransactions.ts +2 -2
  315. package/actions/test/dropTransaction.ts +1 -1
  316. package/actions/test/dumpState.ts +1 -1
  317. package/actions/test/getAutomine.ts +1 -1
  318. package/actions/test/getTxpoolContent.ts +1 -1
  319. package/actions/test/getTxpoolStatus.ts +1 -1
  320. package/actions/test/impersonateAccount.ts +1 -1
  321. package/actions/test/increaseTime.ts +1 -1
  322. package/actions/test/inspectTxpool.ts +1 -1
  323. package/actions/test/loadState.ts +1 -1
  324. package/actions/test/mine.ts +1 -1
  325. package/actions/test/removeBlockTimestampInterval.ts +2 -2
  326. package/actions/test/reset.ts +1 -1
  327. package/actions/test/revert.ts +1 -1
  328. package/actions/test/sendUnsignedTransaction.ts +1 -1
  329. package/actions/test/setAutomine.ts +1 -1
  330. package/actions/test/setBalance.ts +1 -1
  331. package/actions/test/setBlockGasLimit.ts +1 -1
  332. package/actions/test/setBlockTimestampInterval.ts +2 -2
  333. package/actions/test/setCode.ts +1 -1
  334. package/actions/test/setCoinbase.ts +1 -1
  335. package/actions/test/setIntervalMining.ts +1 -1
  336. package/actions/test/setLoggingEnabled.ts +1 -1
  337. package/actions/test/setMinGasPrice.ts +1 -1
  338. package/actions/test/setNextBlockBaseFeePerGas.ts +1 -1
  339. package/actions/test/setNextBlockTimestamp.ts +1 -1
  340. package/actions/test/setNonce.ts +1 -1
  341. package/actions/test/setRpcUrl.ts +1 -1
  342. package/actions/test/setStorageAt.ts +1 -1
  343. package/actions/test/snapshot.ts +1 -1
  344. package/actions/test/stopImpersonatingAccount.ts +2 -2
  345. package/actions/wallet/addChain.ts +1 -1
  346. package/actions/wallet/deployContract.ts +2 -2
  347. package/actions/wallet/getAddresses.ts +1 -1
  348. package/actions/wallet/getPermissions.ts +1 -1
  349. package/actions/wallet/prepareTransactionRequest.ts +1 -1
  350. package/actions/wallet/requestAddresses.ts +1 -1
  351. package/actions/wallet/requestPermissions.ts +1 -1
  352. package/actions/wallet/sendRawTransaction.ts +1 -1
  353. package/actions/wallet/sendTransaction.ts +2 -2
  354. package/actions/wallet/signMessage.ts +4 -4
  355. package/actions/wallet/signTransaction.ts +1 -1
  356. package/actions/wallet/signTypedData.ts +2 -2
  357. package/actions/wallet/switchChain.ts +1 -1
  358. package/actions/wallet/watchAsset.ts +1 -1
  359. package/actions/wallet/writeContract.ts +5 -5
  360. package/chains/opStack/actions/buildDepositTransaction.ts +1 -1
  361. package/chains/opStack/actions/buildInitiateWithdrawal.ts +1 -1
  362. package/chains/opStack/actions/buildProveWithdrawal.ts +1 -1
  363. package/chains/opStack/actions/depositTransaction.ts +1 -1
  364. package/chains/opStack/actions/estimateDepositTransactionGas.ts +1 -1
  365. package/chains/opStack/actions/estimateFinalizeWithdrawalGas.ts +1 -1
  366. package/chains/opStack/actions/estimateInitiateWithdrawalGas.ts +1 -1
  367. package/chains/opStack/actions/estimateProveWithdrawalGas.ts +1 -1
  368. package/chains/opStack/actions/finalizeWithdrawal.ts +1 -1
  369. package/chains/opStack/actions/getL2Output.ts +1 -1
  370. package/chains/opStack/actions/getTimeToFinalize.ts +2 -2
  371. package/chains/opStack/actions/getTimeToNextL2Output.ts +2 -2
  372. package/chains/opStack/actions/getTimeToProve.ts +2 -2
  373. package/chains/opStack/actions/getWithdrawalStatus.ts +2 -2
  374. package/chains/opStack/actions/initiateWithdrawal.ts +1 -1
  375. package/chains/opStack/actions/proveWithdrawal.ts +1 -1
  376. package/chains/opStack/actions/waitForNextL2Output.ts +1 -1
  377. package/chains/opStack/actions/waitToFinalize.ts +2 -2
  378. package/chains/opStack/actions/waitToProve.ts +2 -2
  379. package/chains/opStack/decorators/publicL1.ts +20 -20
  380. package/chains/opStack/decorators/publicL2.ts +4 -4
  381. package/chains/opStack/decorators/walletL1.ts +4 -4
  382. package/chains/opStack/decorators/walletL2.ts +2 -2
  383. package/chains/zksync/types.ts +6 -6
  384. package/clients/createPublicClient.ts +2 -2
  385. package/clients/createTestClient.ts +3 -3
  386. package/clients/createWalletClient.ts +5 -5
  387. package/clients/decorators/public.ts +79 -79
  388. package/clients/decorators/test.ts +33 -33
  389. package/clients/decorators/wallet.ts +26 -26
  390. package/errors/base.ts +1 -1
  391. package/errors/version.ts +1 -1
  392. package/package.json +1 -1
  393. package/utils/encoding/fromBytes.ts +6 -6
  394. package/utils/encoding/fromHex.ts +6 -6
  395. package/utils/encoding/toBytes.ts +6 -6
  396. package/utils/encoding/toHex.ts +6 -6
  397. package/utils/ens/labelhash.ts +1 -1
  398. package/utils/ens/namehash.ts +1 -1
  399. package/utils/signature/verifyMessage.ts +1 -1
  400. package/utils/signature/verifyTypedData.ts +1 -1
  401. package/utils/unit/formatEther.ts +1 -1
  402. package/utils/unit/formatGwei.ts +1 -1
  403. package/utils/unit/formatUnits.ts +1 -1
  404. package/utils/unit/parseEther.ts +1 -1
  405. package/utils/unit/parseGwei.ts +1 -1
  406. package/utils/unit/parseUnits.ts +1 -1
@@ -1,13 +1,13 @@
1
1
  /**
2
- * Destroys a [`Filter`](https://viem.sh/docs/glossary/types.html#filter).
2
+ * Destroys a [`Filter`](https://viem.sh/docs/glossary/types#filter).
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/public/uninstallFilter.html
4
+ * - Docs: https://viem.sh/docs/actions/public/uninstallFilter
5
5
  * - JSON-RPC Methods: [`eth_uninstallFilter`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_uninstallFilter)
6
6
  *
7
7
  * Destroys a Filter that was created from one of the following Actions:
8
- * - [`createBlockFilter`](https://viem.sh/docs/actions/public/createBlockFilter.html)
9
- * - [`createEventFilter`](https://viem.sh/docs/actions/public/createEventFilter.html)
10
- * - [`createPendingTransactionFilter`](https://viem.sh/docs/actions/public/createPendingTransactionFilter.html)
8
+ * - [`createBlockFilter`](https://viem.sh/docs/actions/public/createBlockFilter)
9
+ * - [`createEventFilter`](https://viem.sh/docs/actions/public/createEventFilter)
10
+ * - [`createPendingTransactionFilter`](https://viem.sh/docs/actions/public/createPendingTransactionFilter)
11
11
  *
12
12
  * @param client - Client to use
13
13
  * @param parameters - {@link UninstallFilterParameters}
@@ -5,7 +5,7 @@ import { verifyHash, } from './verifyHash.js';
5
5
  *
6
6
  * Compatible with Smart Contract Accounts & Externally Owned Accounts via [ERC-6492](https://eips.ethereum.org/EIPS/eip-6492).
7
7
  *
8
- * - Docs {@link https://viem.sh/docs/actions/public/verifyMessage.html}
8
+ * - Docs {@link https://viem.sh/docs/actions/public/verifyMessage}
9
9
  *
10
10
  * @param client - Client to use.
11
11
  * @param parameters - {@link VerifyMessageParameters}
@@ -3,7 +3,7 @@ import { verifyHash, } from './verifyHash.js';
3
3
  /**
4
4
  * Verify that typed data was signed by the provided address.
5
5
  *
6
- * - Docs {@link https://viem.sh/docs/actions/public/verifyTypedData.html}
6
+ * - Docs {@link https://viem.sh/docs/actions/public/verifyTypedData}
7
7
  *
8
8
  * @param client - Client to use.
9
9
  * @param parameters - {@link VerifyTypedDataParameters}
@@ -9,9 +9,9 @@ import { getTransaction, } from './getTransaction.js';
9
9
  import { getTransactionReceipt, } from './getTransactionReceipt.js';
10
10
  import { watchBlockNumber, } from './watchBlockNumber.js';
11
11
  /**
12
- * Waits for the [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) to be included on a [Block](https://viem.sh/docs/glossary/terms.html#block) (one confirmation), and then returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms.html#transaction-receipt). If the Transaction reverts, then the action will throw an error.
12
+ * Waits for the [Transaction](https://viem.sh/docs/glossary/terms#transaction) to be included on a [Block](https://viem.sh/docs/glossary/terms#block) (one confirmation), and then returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms#transaction-receipt). If the Transaction reverts, then the action will throw an error.
13
13
  *
14
- * - Docs: https://viem.sh/docs/actions/public/waitForTransactionReceipt.html
14
+ * - Docs: https://viem.sh/docs/actions/public/waitForTransactionReceipt
15
15
  * - Example: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/sending-transactions
16
16
  * - JSON-RPC Methods:
17
17
  * - Polls [`eth_getTransactionReceipt`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionReceipt) on each block until it has been processed.
@@ -7,7 +7,7 @@ import { getBlockNumber, } from './getBlockNumber.js';
7
7
  /**
8
8
  * Watches and returns incoming block numbers.
9
9
  *
10
- * - Docs: https://viem.sh/docs/actions/public/watchBlockNumber.html
10
+ * - Docs: https://viem.sh/docs/actions/public/watchBlockNumber
11
11
  * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/watching-blocks
12
12
  * - JSON-RPC Methods:
13
13
  * - When `poll: true`, calls [`eth_blockNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_blocknumber) on a polling interval.
@@ -7,7 +7,7 @@ import { getBlock } from './getBlock.js';
7
7
  /**
8
8
  * Watches and returns information for incoming blocks.
9
9
  *
10
- * - Docs: https://viem.sh/docs/actions/public/watchBlocks.html
10
+ * - Docs: https://viem.sh/docs/actions/public/watchBlocks
11
11
  * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/blocks/watching-blocks
12
12
  * - JSON-RPC Methods:
13
13
  * - When `poll: true`, calls [`eth_getBlockByNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getBlockByNumber) on a polling interval.
@@ -15,11 +15,11 @@ import { uninstallFilter } from './uninstallFilter.js';
15
15
  /**
16
16
  * Watches and returns emitted contract event logs.
17
17
  *
18
- * - Docs: https://viem.sh/docs/contract/watchContractEvent.html
18
+ * - Docs: https://viem.sh/docs/contract/watchContractEvent
19
19
  *
20
- * This Action will batch up all the event logs found within the [`pollingInterval`](https://viem.sh/docs/contract/watchContractEvent.html#pollinginterval-optional), and invoke them via [`onLogs`](https://viem.sh/docs/contract/watchContractEvent.html#onLogs).
20
+ * This Action will batch up all the event logs found within the [`pollingInterval`](https://viem.sh/docs/contract/watchContractEvent#pollinginterval-optional), and invoke them via [`onLogs`](https://viem.sh/docs/contract/watchContractEvent#onLogs).
21
21
  *
22
- * `watchContractEvent` will attempt to create an [Event Filter](https://viem.sh/docs/contract/createContractEventFilter.html) and listen to changes to the Filter per polling interval, however, if the RPC Provider does not support Filters (e.g. `eth_newFilter`), then `watchContractEvent` will fall back to using [`getLogs`](https://viem.sh/docs/actions/public/getLogs) instead.
22
+ * `watchContractEvent` will attempt to create an [Event Filter](https://viem.sh/docs/contract/createContractEventFilter) and listen to changes to the Filter per polling interval, however, if the RPC Provider does not support Filters (e.g. `eth_newFilter`), then `watchContractEvent` will fall back to using [`getLogs`](https://viem.sh/docs/actions/public/getLogs) instead.
23
23
  *
24
24
  * @param client - Client to use
25
25
  * @param parameters - {@link WatchContractEventParameters}
@@ -11,9 +11,9 @@ import { getFilterChanges } from './getFilterChanges.js';
11
11
  import { getLogs } from './getLogs.js';
12
12
  import { uninstallFilter } from './uninstallFilter.js';
13
13
  /**
14
- * Watches and returns emitted [Event Logs](https://viem.sh/docs/glossary/terms.html#event-log).
14
+ * Watches and returns emitted [Event Logs](https://viem.sh/docs/glossary/terms#event-log).
15
15
  *
16
- * - Docs: https://viem.sh/docs/actions/public/watchEvent.html
16
+ * - Docs: https://viem.sh/docs/actions/public/watchEvent
17
17
  * - JSON-RPC Methods:
18
18
  * - **RPC Provider supports `eth_newFilter`:**
19
19
  * - Calls [`eth_newFilter`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_newfilter) to create a filter (called on initialize).
@@ -21,9 +21,9 @@ import { uninstallFilter } from './uninstallFilter.js';
21
21
  * - **RPC Provider does not support `eth_newFilter`:**
22
22
  * - Calls [`eth_getLogs`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getlogs) for each block between the polling interval.
23
23
  *
24
- * This Action will batch up all the Event Logs found within the [`pollingInterval`](https://viem.sh/docs/actions/public/watchEvent.html#pollinginterval-optional), and invoke them via [`onLogs`](https://viem.sh/docs/actions/public/watchEvent.html#onLogs).
24
+ * This Action will batch up all the Event Logs found within the [`pollingInterval`](https://viem.sh/docs/actions/public/watchEvent#pollinginterval-optional), and invoke them via [`onLogs`](https://viem.sh/docs/actions/public/watchEvent#onLogs).
25
25
  *
26
- * `watchEvent` will attempt to create an [Event Filter](https://viem.sh/docs/actions/public/createEventFilter.html) and listen to changes to the Filter per polling interval, however, if the RPC Provider does not support Filters (e.g. `eth_newFilter`), then `watchEvent` will fall back to using [`getLogs`](https://viem.sh/docs/actions/public/getLogs.html) instead.
26
+ * `watchEvent` will attempt to create an [Event Filter](https://viem.sh/docs/actions/public/createEventFilter) and listen to changes to the Filter per polling interval, however, if the RPC Provider does not support Filters (e.g. `eth_newFilter`), then `watchEvent` will fall back to using [`getLogs`](https://viem.sh/docs/actions/public/getLogs) instead.
27
27
  *
28
28
  * @param client - Client to use
29
29
  * @param parameters - {@link WatchEventParameters}
@@ -8,14 +8,14 @@ import { uninstallFilter } from './uninstallFilter.js';
8
8
  /**
9
9
  * Watches and returns pending transaction hashes.
10
10
  *
11
- * - Docs: https://viem.sh/docs/actions/public/watchPendingTransactions.html
11
+ * - Docs: https://viem.sh/docs/actions/public/watchPendingTransactions
12
12
  * - JSON-RPC Methods:
13
13
  * - When `poll: true`
14
14
  * - Calls [`eth_newPendingTransactionFilter`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_newpendingtransactionfilter) to initialize the filter.
15
15
  * - Calls [`eth_getFilterChanges`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getFilterChanges) on a polling interval.
16
16
  * - When `poll: false` & WebSocket Transport, uses a WebSocket subscription via [`eth_subscribe`](https://docs.alchemy.com/reference/eth-subscribe-polygon) and the `"newPendingTransactions"` event.
17
17
  *
18
- * This Action will batch up all the pending transactions found within the [`pollingInterval`](https://viem.sh/docs/actions/public/watchPendingTransactions.html#pollinginterval-optional), and invoke them via [`onTransactions`](https://viem.sh/docs/actions/public/watchPendingTransactions.html#ontransactions).
18
+ * This Action will batch up all the pending transactions found within the [`pollingInterval`](https://viem.sh/docs/actions/public/watchPendingTransactions#pollinginterval-optional), and invoke them via [`onTransactions`](https://viem.sh/docs/actions/public/watchPendingTransactions#ontransactions).
19
19
  *
20
20
  * @param client - Client to use
21
21
  * @param parameters - {@link WatchPendingTransactionsParameters}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Removes a transaction from the mempool.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/dropTransaction.html
4
+ * - Docs: https://viem.sh/docs/actions/test/dropTransaction
5
5
  *
6
6
  * @param client - Client to use
7
7
  * @param parameters - {@link DropTransactionParameters}
@@ -2,7 +2,7 @@
2
2
  * Serializes the current state (including contracts code, contract's storage,
3
3
  * accounts properties, etc.) into a savable data blob.
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/test/dumpState.html
5
+ * - Docs: https://viem.sh/docs/actions/test/dumpState
6
6
  *
7
7
  * @param client - Client to use
8
8
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Returns the automatic mining status of the node.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/getAutomine.html
4
+ * - Docs: https://viem.sh/docs/actions/test/getAutomine
5
5
  *
6
6
  * @param client - Client to use
7
7
  * @returns Whether or not the node is auto mining. {@link GetAutomineReturnType}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 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.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/getTxpoolContent.html
4
+ * - Docs: https://viem.sh/docs/actions/test/getTxpoolContent
5
5
  *
6
6
  * @param client - Client to use
7
7
  * @returns Transaction pool content. {@link GetTxpoolContentReturnType}
@@ -2,7 +2,7 @@ import { hexToNumber } from '../../utils/encoding/fromHex.js';
2
2
  /**
3
3
  * 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.
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/test/getTxpoolStatus.html
5
+ * - Docs: https://viem.sh/docs/actions/test/getTxpoolStatus
6
6
  *
7
7
  * @param client - Client to use
8
8
  * @returns Transaction pool status. {@link GetTxpoolStatusReturnType}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 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.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/impersonateAccount.html
4
+ * - Docs: https://viem.sh/docs/actions/test/impersonateAccount
5
5
  *
6
6
  * @param client - Client to use
7
7
  * @param parameters - {@link ImpersonateAccountParameters}
@@ -2,7 +2,7 @@ import { numberToHex } from '../../utils/encoding/toHex.js';
2
2
  /**
3
3
  * Jump forward in time by the given amount of time, in seconds.
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/test/increaseTime.html
5
+ * - Docs: https://viem.sh/docs/actions/test/increaseTime
6
6
  *
7
7
  * @param client - Client to use
8
8
  * @param parameters – {@link IncreaseTimeParameters}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * 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.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/inspectTxpool.html
4
+ * - Docs: https://viem.sh/docs/actions/test/inspectTxpool
5
5
  *
6
6
  * @param client - Client to use
7
7
  * @returns Transaction pool inspection data. {@link InspectTxpoolReturnType}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Adds state previously dumped with `dumpState` to the current chain.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/loadState.html
4
+ * - Docs: https://viem.sh/docs/actions/test/loadState
5
5
  *
6
6
  * @param client - Client to use
7
7
  * @param parameters - {@link LoadStateParameters}
@@ -2,7 +2,7 @@ import { numberToHex } from '../../utils/encoding/toHex.js';
2
2
  /**
3
3
  * Mine a specified number of blocks.
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/test/mine.html
5
+ * - Docs: https://viem.sh/docs/actions/test/mine
6
6
  *
7
7
  * @param client - Client to use
8
8
  * @param parameters – {@link MineParameters}
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Removes [`setBlockTimestampInterval`](https://viem.sh/docs/actions/test/setBlockTimestampInterval.html) if it exists.
2
+ * Removes [`setBlockTimestampInterval`](https://viem.sh/docs/actions/test/setBlockTimestampInterval) if it exists.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/removeBlockTimestampInterval.html
4
+ * - Docs: https://viem.sh/docs/actions/test/removeBlockTimestampInterval
5
5
  *
6
6
  * @param client - Client to use
7
7
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Resets fork back to its original state.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/reset.html
4
+ * - Docs: https://viem.sh/docs/actions/test/reset
5
5
  *
6
6
  * @param client - Client to use
7
7
  * @param parameters – {@link ResetParameters}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Revert the state of the blockchain at the current block.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/revert.html
4
+ * - Docs: https://viem.sh/docs/actions/test/revert
5
5
  *
6
6
  * @param client - Client to use
7
7
  * @param parameters – {@link RevertParameters}
@@ -3,7 +3,7 @@ import { formatTransactionRequest, } from '../../utils/formatters/transactionReq
3
3
  /**
4
4
  * 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.
5
5
  *
6
- * - Docs: https://viem.sh/docs/actions/test/getTxpoolContent.html
6
+ * - Docs: https://viem.sh/docs/actions/test/getTxpoolContent
7
7
  *
8
8
  * @param client - Client to use
9
9
  * @param parameters – {@link SendUnsignedTransactionParameters}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Enables or disables the automatic mining of new blocks with each new transaction submitted to the network.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/setAutomine.html
4
+ * - Docs: https://viem.sh/docs/actions/test/setAutomine
5
5
  *
6
6
  * @param client - Client to use
7
7
  *
@@ -2,7 +2,7 @@ import { numberToHex } from '../../utils/encoding/toHex.js';
2
2
  /**
3
3
  * Modifies the balance of an account.
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/test/setBalance.html
5
+ * - Docs: https://viem.sh/docs/actions/test/setBalance
6
6
  *
7
7
  * @param client - Client to use
8
8
  * @param parameters – {@link SetBalanceParameters}
@@ -2,7 +2,7 @@ import { numberToHex } from '../../utils/encoding/toHex.js';
2
2
  /**
3
3
  * Sets the block's gas limit.
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/test/setBlockGasLimit.html
5
+ * - Docs: https://viem.sh/docs/actions/test/setBlockGasLimit
6
6
  *
7
7
  * @param client - Client to use
8
8
  * @param parameters – {@link SetBlockGasLimitParameters}
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Similar to [`increaseTime`](https://viem.sh/docs/actions/test/increaseTime.html), but sets a block timestamp `interval`. The timestamp of future blocks will be computed as `lastBlock_timestamp` + `interval`.
2
+ * 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`.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/setBlockTimestampInterval.html
4
+ * - Docs: https://viem.sh/docs/actions/test/setBlockTimestampInterval
5
5
  *
6
6
  * @param client - Client to use
7
7
  * @param parameters – {@link SetBlockTimestampIntervalParameters}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Modifies the bytecode stored at an account's address.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/setCode.html
4
+ * - Docs: https://viem.sh/docs/actions/test/setCode
5
5
  *
6
6
  * @param client - Client to use
7
7
  * @param parameters – {@link SetCodeParameters}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Sets the coinbase address to be used in new blocks.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/setCoinbase.html
4
+ * - Docs: https://viem.sh/docs/actions/test/setCoinbase
5
5
  *
6
6
  * @param client - Client to use
7
7
  * @param parameters – {@link SetCoinbaseParameters}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Sets the automatic mining interval (in seconds) of blocks. Setting the interval to 0 will disable automatic mining.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/setIntervalMining.html
4
+ * - Docs: https://viem.sh/docs/actions/test/setIntervalMining
5
5
  *
6
6
  * @param client - Client to use
7
7
  * @param parameters – {@link SetIntervalMiningParameters}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Enable or disable logging on the test node network.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/setLoggingEnabled.html
4
+ * - Docs: https://viem.sh/docs/actions/test/setLoggingEnabled
5
5
  *
6
6
  * @param client - Client to use
7
7
  *
@@ -2,7 +2,7 @@ import { numberToHex } from '../../utils/encoding/toHex.js';
2
2
  /**
3
3
  * Change the minimum gas price accepted by the network (in wei).
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/test/setMinGasPrice.html
5
+ * - Docs: https://viem.sh/docs/actions/test/setMinGasPrice
6
6
  *
7
7
  * Note: `setMinGasPrice` can only be used on clients that do not have EIP-1559 enabled.
8
8
  *
@@ -2,7 +2,7 @@ import { numberToHex } from '../../utils/encoding/toHex.js';
2
2
  /**
3
3
  * Sets the next block's base fee per gas.
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/test/setNextBlockBaseFeePerGas.html
5
+ * - Docs: https://viem.sh/docs/actions/test/setNextBlockBaseFeePerGas
6
6
  *
7
7
  * @param client - Client to use
8
8
  * @param parameters – {@link SetNextBlockBaseFeePerGasParameters}
@@ -2,7 +2,7 @@ import { numberToHex } from '../../utils/encoding/toHex.js';
2
2
  /**
3
3
  * Sets the next block's timestamp.
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/test/setNextBlockTimestamp.html
5
+ * - Docs: https://viem.sh/docs/actions/test/setNextBlockTimestamp
6
6
  *
7
7
  * @param client - Client to use
8
8
  * @param parameters – {@link SetNextBlockTimestampParameters}
@@ -2,7 +2,7 @@ import { numberToHex } from '../../utils/encoding/toHex.js';
2
2
  /**
3
3
  * Modifies (overrides) the nonce of an account.
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/test/setNonce.html
5
+ * - Docs: https://viem.sh/docs/actions/test/setNonce
6
6
  *
7
7
  * @param client - Client to use
8
8
  * @param parameters – {@link SetNonceParameters}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Sets the backend RPC URL.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/setRpcUrl.html
4
+ * - Docs: https://viem.sh/docs/actions/test/setRpcUrl
5
5
  *
6
6
  * @param client - Client to use
7
7
  * @param jsonRpcUrl – RPC URL
@@ -2,7 +2,7 @@ import { numberToHex } from '../../utils/encoding/toHex.js';
2
2
  /**
3
3
  * Writes to a slot of an account's storage.
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/test/setStorageAt.html
5
+ * - Docs: https://viem.sh/docs/actions/test/setStorageAt
6
6
  *
7
7
  * @param client - Client to use
8
8
  * @param parameters – {@link SetStorageAtParameters}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Snapshot the state of the blockchain at the current block.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/snapshot.html
4
+ * - Docs: https://viem.sh/docs/actions/test/snapshot
5
5
  *
6
6
  * @param client - Client to use
7
7
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
- * Stop impersonating an account after having previously used [`impersonateAccount`](https://viem.sh/docs/actions/test/impersonateAccount.html).
2
+ * Stop impersonating an account after having previously used [`impersonateAccount`](https://viem.sh/docs/actions/test/impersonateAccount).
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/test/stopImpersonatingAccount.html
4
+ * - Docs: https://viem.sh/docs/actions/test/stopImpersonatingAccount
5
5
  *
6
6
  * @param client - Client to use
7
7
  * @param parameters – {@link StopImpersonatingAccountParameters}
@@ -2,7 +2,7 @@ import { numberToHex, } from '../../utils/encoding/toHex.js';
2
2
  /**
3
3
  * Adds an EVM chain to the wallet.
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/wallet/addChain.html
5
+ * - Docs: https://viem.sh/docs/actions/wallet/addChain
6
6
  * - JSON-RPC Methods: [`eth_addEthereumChain`](https://eips.ethereum.org/EIPS/eip-3085)
7
7
  *
8
8
  * @param client - Client to use
@@ -3,12 +3,12 @@ import { sendTransaction, } from './sendTransaction.js';
3
3
  /**
4
4
  * Deploys a contract to the network, given bytecode and constructor arguments.
5
5
  *
6
- * - Docs: https://viem.sh/docs/contract/deployContract.html
6
+ * - Docs: https://viem.sh/docs/contract/deployContract
7
7
  * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/contracts/deploying-contracts
8
8
  *
9
9
  * @param client - Client to use
10
10
  * @param parameters - {@link DeployContractParameters}
11
- * @returns The [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) hash. {@link DeployContractReturnType}
11
+ * @returns The [Transaction](https://viem.sh/docs/glossary/terms#transaction) hash. {@link DeployContractReturnType}
12
12
  *
13
13
  * @example
14
14
  * import { createWalletClient, http } from 'viem'
@@ -2,7 +2,7 @@ import { checksumAddress, } from '../../utils/address/getAddress.js';
2
2
  /**
3
3
  * Returns a list of account addresses owned by the wallet or client.
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/wallet/getAddresses.html
5
+ * - Docs: https://viem.sh/docs/actions/wallet/getAddresses
6
6
  * - JSON-RPC Methods: [`eth_accounts`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_accounts)
7
7
  *
8
8
  * @param client - Client to use
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Gets the wallets current permissions.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/wallet/getPermissions.html
4
+ * - Docs: https://viem.sh/docs/actions/wallet/getPermissions
5
5
  * - JSON-RPC Methods: [`wallet_getPermissions`](https://eips.ethereum.org/EIPS/eip-2255)
6
6
  *
7
7
  * @param client - Client to use
@@ -11,7 +11,7 @@ import { getTransactionType } from '../../utils/transaction/getTransactionType.j
11
11
  /**
12
12
  * Prepares a transaction request for signing.
13
13
  *
14
- * - Docs: https://viem.sh/docs/actions/wallet/prepareTransactionRequest.html
14
+ * - Docs: https://viem.sh/docs/actions/wallet/prepareTransactionRequest
15
15
  *
16
16
  * @param args - {@link PrepareTransactionRequestParameters}
17
17
  * @returns The transaction request. {@link PrepareTransactionRequestReturnType}
@@ -2,7 +2,7 @@ import { getAddress } from '../../utils/address/getAddress.js';
2
2
  /**
3
3
  * Requests a list of accounts managed by a wallet.
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/wallet/requestAddresses.html
5
+ * - Docs: https://viem.sh/docs/actions/wallet/requestAddresses
6
6
  * - JSON-RPC Methods: [`eth_requestAccounts`](https://eips.ethereum.org/EIPS/eip-1102)
7
7
  *
8
8
  * Sends a request to the wallet, asking for permission to access the user's accounts. After the user accepts the request, it will return a list of accounts (addresses).
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Requests permissions for a wallet.
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/wallet/requestPermissions.html
4
+ * - Docs: https://viem.sh/docs/actions/wallet/requestPermissions
5
5
  * - JSON-RPC Methods: [`wallet_requestPermissions`](https://eips.ethereum.org/EIPS/eip-2255)
6
6
  *
7
7
  * @param client - Client to use
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Sends a **signed** transaction to the network
3
3
  *
4
- * - Docs: https://viem.sh/docs/actions/wallet/sendRawTransaction.html
4
+ * - Docs: https://viem.sh/docs/actions/wallet/sendRawTransaction
5
5
  * - JSON-RPC Method: [`eth_sendRawTransaction`](https://ethereum.github.io/execution-apis/api-documentation/)
6
6
  *
7
7
  * @param client - Client to use
@@ -12,7 +12,7 @@ import { sendRawTransaction, } from './sendRawTransaction.js';
12
12
  /**
13
13
  * Creates, signs, and sends a new transaction to the network.
14
14
  *
15
- * - Docs: https://viem.sh/docs/actions/wallet/sendTransaction.html
15
+ * - Docs: https://viem.sh/docs/actions/wallet/sendTransaction
16
16
  * - Examples: https://stackblitz.com/github/wevm/viem/tree/main/examples/transactions/sending-transactions
17
17
  * - JSON-RPC Methods:
18
18
  * - JSON-RPC Accounts: [`eth_sendTransaction`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_sendtransaction)
@@ -20,7 +20,7 @@ import { sendRawTransaction, } from './sendRawTransaction.js';
20
20
  *
21
21
  * @param client - Client to use
22
22
  * @param parameters - {@link SendTransactionParameters}
23
- * @returns The [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) hash. {@link SendTransactionReturnType}
23
+ * @returns The [Transaction](https://viem.sh/docs/glossary/terms#transaction) hash. {@link SendTransactionReturnType}
24
24
  *
25
25
  * @example
26
26
  * import { createWalletClient, custom } from 'viem'
@@ -4,14 +4,14 @@ import { stringToHex, toHex, } from '../../utils/encoding/toHex.js';
4
4
  /**
5
5
  * Calculates an Ethereum-specific signature in [EIP-191 format](https://eips.ethereum.org/EIPS/eip-191): `keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))`.
6
6
  *
7
- * - Docs: https://viem.sh/docs/actions/wallet/signMessage.html
7
+ * - Docs: https://viem.sh/docs/actions/wallet/signMessage
8
8
  * - JSON-RPC Methods:
9
- * - JSON-RPC Accounts: [`personal_sign`](https://docs.metamask.io/guide/signing-data.html#personal-sign)
9
+ * - JSON-RPC Accounts: [`personal_sign`](https://docs.metamask.io/guide/signing-data#personal-sign)
10
10
  * - Local Accounts: Signs locally. No JSON-RPC request.
11
11
  *
12
12
  * With the calculated signature, you can:
13
- * - use [`verifyMessage`](https://viem.sh/docs/utilities/verifyMessage.html) to verify the signature,
14
- * - use [`recoverMessageAddress`](https://viem.sh/docs/utilities/recoverMessageAddress.html) to recover the signing address from a signature.
13
+ * - use [`verifyMessage`](https://viem.sh/docs/utilities/verifyMessage) to verify the signature,
14
+ * - use [`recoverMessageAddress`](https://viem.sh/docs/utilities/recoverMessageAddress) to recover the signing address from a signature.
15
15
  *
16
16
  * @param client - Client to use
17
17
  * @param parameters - {@link SignMessageParameters}
@@ -10,7 +10,7 @@ import { getChainId } from '../public/getChainId.js';
10
10
  /**
11
11
  * Signs a transaction.
12
12
  *
13
- * - Docs: https://viem.sh/docs/actions/wallet/signTransaction.html
13
+ * - Docs: https://viem.sh/docs/actions/wallet/signTransaction
14
14
  * - JSON-RPC Methods:
15
15
  * - JSON-RPC Accounts: [`eth_signTransaction`](https://ethereum.github.io/execution-apis/api-documentation/)
16
16
  * - Local Accounts: Signs locally. No JSON-RPC request.
@@ -6,9 +6,9 @@ import { getTypesForEIP712Domain, validateTypedData, } from '../../utils/typedDa
6
6
  /**
7
7
  * Signs typed data and calculates an Ethereum-specific signature in [https://eips.ethereum.org/EIPS/eip-712](https://eips.ethereum.org/EIPS/eip-712): `sign(keccak256("\x19\x01" ‖ domainSeparator ‖ hashStruct(message)))`
8
8
  *
9
- * - Docs: https://viem.sh/docs/actions/wallet/signTypedData.html
9
+ * - Docs: https://viem.sh/docs/actions/wallet/signTypedData
10
10
  * - JSON-RPC Methods:
11
- * - JSON-RPC Accounts: [`eth_signTypedData_v4`](https://docs.metamask.io/guide/signing-data.html#signtypeddata-v4)
11
+ * - JSON-RPC Accounts: [`eth_signTypedData_v4`](https://docs.metamask.io/guide/signing-data#signtypeddata-v4)
12
12
  * - Local Accounts: Signs locally. No JSON-RPC request.
13
13
  *
14
14
  * @param client - Client to use
@@ -2,7 +2,7 @@ import { numberToHex, } from '../../utils/encoding/toHex.js';
2
2
  /**
3
3
  * Switch the target chain in a wallet.
4
4
  *
5
- * - Docs: https://viem.sh/docs/actions/wallet/switchChain.html
5
+ * - Docs: https://viem.sh/docs/actions/wallet/switchChain
6
6
  * - JSON-RPC Methods: [`eth_switchEthereumChain`](https://eips.ethereum.org/EIPS/eip-3326)
7
7
  *
8
8
  * @param client - Client to use