superstack-wallet-sdk 0.4.2

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 (623) hide show
  1. package/README.md +114 -0
  2. package/dist/esm/_virtual/_commonjsHelpers.js +2 -0
  3. package/dist/esm/_virtual/_commonjsHelpers.js.map +1 -0
  4. package/dist/esm/_virtual/_polyfill-node.buffer.js +2 -0
  5. package/dist/esm/_virtual/_polyfill-node.buffer.js.map +1 -0
  6. package/dist/esm/_virtual/index.js +2 -0
  7. package/dist/esm/_virtual/index.js.map +1 -0
  8. package/dist/esm/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +2 -0
  9. package/dist/esm/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js.map +1 -0
  10. package/dist/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +2 -0
  11. package/dist/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
  12. package/dist/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +2 -0
  13. package/dist/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
  14. package/dist/esm/node_modules/@noble/hashes/esm/_md.js +2 -0
  15. package/dist/esm/node_modules/@noble/hashes/esm/_md.js.map +1 -0
  16. package/dist/esm/node_modules/@noble/hashes/esm/_u64.js +2 -0
  17. package/dist/esm/node_modules/@noble/hashes/esm/_u64.js.map +1 -0
  18. package/dist/esm/node_modules/@noble/hashes/esm/crypto.js +2 -0
  19. package/dist/esm/node_modules/@noble/hashes/esm/crypto.js.map +1 -0
  20. package/dist/esm/node_modules/@noble/hashes/esm/hmac.js +2 -0
  21. package/dist/esm/node_modules/@noble/hashes/esm/hmac.js.map +1 -0
  22. package/dist/esm/node_modules/@noble/hashes/esm/sha2.js +2 -0
  23. package/dist/esm/node_modules/@noble/hashes/esm/sha2.js.map +1 -0
  24. package/dist/esm/node_modules/@noble/hashes/esm/sha256.js +2 -0
  25. package/dist/esm/node_modules/@noble/hashes/esm/sha256.js.map +1 -0
  26. package/dist/esm/node_modules/@noble/hashes/esm/sha3.js +2 -0
  27. package/dist/esm/node_modules/@noble/hashes/esm/sha3.js.map +1 -0
  28. package/dist/esm/node_modules/@noble/hashes/esm/utils.js +4 -0
  29. package/dist/esm/node_modules/@noble/hashes/esm/utils.js.map +1 -0
  30. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/adapter.js +2 -0
  31. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/adapter.js.map +1 -0
  32. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/errors.js +2 -0
  33. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/errors.js.map +1 -0
  34. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/signer.js +2 -0
  35. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/signer.js.map +1 -0
  36. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/transaction.js +2 -0
  37. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/transaction.js.map +1 -0
  38. package/dist/esm/node_modules/abitype/dist/esm/errors.js +2 -0
  39. package/dist/esm/node_modules/abitype/dist/esm/errors.js.map +1 -0
  40. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js +2 -0
  41. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js.map +1 -0
  42. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js +2 -0
  43. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js.map +1 -0
  44. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/signature.js +2 -0
  45. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/signature.js.map +1 -0
  46. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js +2 -0
  47. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js.map +1 -0
  48. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/struct.js +2 -0
  49. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/struct.js.map +1 -0
  50. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js +2 -0
  51. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js.map +1 -0
  52. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js +2 -0
  53. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js.map +1 -0
  54. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js +2 -0
  55. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js.map +1 -0
  56. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbi.js +2 -0
  57. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbi.js.map +1 -0
  58. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbiItem.js +2 -0
  59. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbiItem.js.map +1 -0
  60. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js +2 -0
  61. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js.map +1 -0
  62. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/cache.js +2 -0
  63. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/cache.js.map +1 -0
  64. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js +2 -0
  65. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js.map +1 -0
  66. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/structs.js +2 -0
  67. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/structs.js.map +1 -0
  68. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/utils.js +2 -0
  69. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/utils.js.map +1 -0
  70. package/dist/esm/node_modules/abitype/dist/esm/regex.js +2 -0
  71. package/dist/esm/node_modules/abitype/dist/esm/regex.js.map +1 -0
  72. package/dist/esm/node_modules/abitype/dist/esm/version.js +2 -0
  73. package/dist/esm/node_modules/abitype/dist/esm/version.js.map +1 -0
  74. package/dist/esm/node_modules/ethers/lib.esm/_version.js +2 -0
  75. package/dist/esm/node_modules/ethers/lib.esm/_version.js.map +1 -0
  76. package/dist/esm/node_modules/ethers/lib.esm/utils/data.js +2 -0
  77. package/dist/esm/node_modules/ethers/lib.esm/utils/data.js.map +1 -0
  78. package/dist/esm/node_modules/ethers/lib.esm/utils/errors.js +2 -0
  79. package/dist/esm/node_modules/ethers/lib.esm/utils/errors.js.map +1 -0
  80. package/dist/esm/node_modules/ethers/lib.esm/utils/fixednumber.js +2 -0
  81. package/dist/esm/node_modules/ethers/lib.esm/utils/fixednumber.js.map +1 -0
  82. package/dist/esm/node_modules/ethers/lib.esm/utils/maths.js +2 -0
  83. package/dist/esm/node_modules/ethers/lib.esm/utils/maths.js.map +1 -0
  84. package/dist/esm/node_modules/ethers/lib.esm/utils/properties.js +2 -0
  85. package/dist/esm/node_modules/ethers/lib.esm/utils/properties.js.map +1 -0
  86. package/dist/esm/node_modules/ethers/lib.esm/utils/units.js +2 -0
  87. package/dist/esm/node_modules/ethers/lib.esm/utils/units.js.map +1 -0
  88. package/dist/esm/node_modules/eventemitter3/index.js +2 -0
  89. package/dist/esm/node_modules/eventemitter3/index.js.map +1 -0
  90. package/dist/esm/node_modules/eventemitter3/index2.js +2 -0
  91. package/dist/esm/node_modules/eventemitter3/index2.js.map +1 -0
  92. package/dist/esm/node_modules/ox/_esm/core/AbiConstructor.js +2 -0
  93. package/dist/esm/node_modules/ox/_esm/core/AbiConstructor.js.map +1 -0
  94. package/dist/esm/node_modules/ox/_esm/core/AbiFunction.js +2 -0
  95. package/dist/esm/node_modules/ox/_esm/core/AbiFunction.js.map +1 -0
  96. package/dist/esm/node_modules/ox/_esm/core/AbiItem.js +2 -0
  97. package/dist/esm/node_modules/ox/_esm/core/AbiItem.js.map +1 -0
  98. package/dist/esm/node_modules/ox/_esm/core/AbiParameters.js +2 -0
  99. package/dist/esm/node_modules/ox/_esm/core/AbiParameters.js.map +1 -0
  100. package/dist/esm/node_modules/ox/_esm/core/Address.js +2 -0
  101. package/dist/esm/node_modules/ox/_esm/core/Address.js.map +1 -0
  102. package/dist/esm/node_modules/ox/_esm/core/Authorization.js +2 -0
  103. package/dist/esm/node_modules/ox/_esm/core/Authorization.js.map +1 -0
  104. package/dist/esm/node_modules/ox/_esm/core/BlockOverrides.js +2 -0
  105. package/dist/esm/node_modules/ox/_esm/core/BlockOverrides.js.map +1 -0
  106. package/dist/esm/node_modules/ox/_esm/core/Bytes.js +2 -0
  107. package/dist/esm/node_modules/ox/_esm/core/Bytes.js.map +1 -0
  108. package/dist/esm/node_modules/ox/_esm/core/Caches.js +2 -0
  109. package/dist/esm/node_modules/ox/_esm/core/Caches.js.map +1 -0
  110. package/dist/esm/node_modules/ox/_esm/core/Errors.js +2 -0
  111. package/dist/esm/node_modules/ox/_esm/core/Errors.js.map +1 -0
  112. package/dist/esm/node_modules/ox/_esm/core/Hash.js +2 -0
  113. package/dist/esm/node_modules/ox/_esm/core/Hash.js.map +1 -0
  114. package/dist/esm/node_modules/ox/_esm/core/Hex.js +2 -0
  115. package/dist/esm/node_modules/ox/_esm/core/Hex.js.map +1 -0
  116. package/dist/esm/node_modules/ox/_esm/core/Json.js +2 -0
  117. package/dist/esm/node_modules/ox/_esm/core/Json.js.map +1 -0
  118. package/dist/esm/node_modules/ox/_esm/core/Signature.js +2 -0
  119. package/dist/esm/node_modules/ox/_esm/core/Signature.js.map +1 -0
  120. package/dist/esm/node_modules/ox/_esm/core/Solidity.js +2 -0
  121. package/dist/esm/node_modules/ox/_esm/core/Solidity.js.map +1 -0
  122. package/dist/esm/node_modules/ox/_esm/core/Withdrawal.js +2 -0
  123. package/dist/esm/node_modules/ox/_esm/core/Withdrawal.js.map +1 -0
  124. package/dist/esm/node_modules/ox/_esm/core/internal/abiItem.js +2 -0
  125. package/dist/esm/node_modules/ox/_esm/core/internal/abiItem.js.map +1 -0
  126. package/dist/esm/node_modules/ox/_esm/core/internal/abiParameters.js +2 -0
  127. package/dist/esm/node_modules/ox/_esm/core/internal/abiParameters.js.map +1 -0
  128. package/dist/esm/node_modules/ox/_esm/core/internal/bytes.js +2 -0
  129. package/dist/esm/node_modules/ox/_esm/core/internal/bytes.js.map +1 -0
  130. package/dist/esm/node_modules/ox/_esm/core/internal/cursor.js +2 -0
  131. package/dist/esm/node_modules/ox/_esm/core/internal/cursor.js.map +1 -0
  132. package/dist/esm/node_modules/ox/_esm/core/internal/errors.js +2 -0
  133. package/dist/esm/node_modules/ox/_esm/core/internal/errors.js.map +1 -0
  134. package/dist/esm/node_modules/ox/_esm/core/internal/hex.js +2 -0
  135. package/dist/esm/node_modules/ox/_esm/core/internal/hex.js.map +1 -0
  136. package/dist/esm/node_modules/ox/_esm/core/internal/lru.js +2 -0
  137. package/dist/esm/node_modules/ox/_esm/core/internal/lru.js.map +1 -0
  138. package/dist/esm/node_modules/ox/_esm/core/version.js +2 -0
  139. package/dist/esm/node_modules/ox/_esm/core/version.js.map +1 -0
  140. package/dist/esm/node_modules/ox/_esm/erc6492/SignatureErc6492.js +2 -0
  141. package/dist/esm/node_modules/ox/_esm/erc6492/SignatureErc6492.js.map +1 -0
  142. package/dist/esm/node_modules/ox/_esm/erc8010/SignatureErc8010.js +2 -0
  143. package/dist/esm/node_modules/ox/_esm/erc8010/SignatureErc8010.js.map +1 -0
  144. package/dist/esm/node_modules/styled-components/dist/styled-components.browser.esm.js +2 -0
  145. package/dist/esm/node_modules/styled-components/dist/styled-components.browser.esm.js.map +1 -0
  146. package/dist/esm/node_modules/stylis/src/Enum.js +2 -0
  147. package/dist/esm/node_modules/stylis/src/Enum.js.map +1 -0
  148. package/dist/esm/node_modules/stylis/src/Middleware.js +2 -0
  149. package/dist/esm/node_modules/stylis/src/Middleware.js.map +1 -0
  150. package/dist/esm/node_modules/stylis/src/Parser.js +2 -0
  151. package/dist/esm/node_modules/stylis/src/Parser.js.map +1 -0
  152. package/dist/esm/node_modules/stylis/src/Prefixer.js +2 -0
  153. package/dist/esm/node_modules/stylis/src/Prefixer.js.map +1 -0
  154. package/dist/esm/node_modules/stylis/src/Serializer.js +2 -0
  155. package/dist/esm/node_modules/stylis/src/Serializer.js.map +1 -0
  156. package/dist/esm/node_modules/stylis/src/Tokenizer.js +2 -0
  157. package/dist/esm/node_modules/stylis/src/Tokenizer.js.map +1 -0
  158. package/dist/esm/node_modules/stylis/src/Utility.js +2 -0
  159. package/dist/esm/node_modules/stylis/src/Utility.js.map +1 -0
  160. package/dist/esm/node_modules/tslib/tslib.es6.js +2 -0
  161. package/dist/esm/node_modules/tslib/tslib.es6.js.map +1 -0
  162. package/dist/esm/node_modules/viem/_esm/accounts/utils/parseAccount.js +2 -0
  163. package/dist/esm/node_modules/viem/_esm/accounts/utils/parseAccount.js.map +1 -0
  164. package/dist/esm/node_modules/viem/_esm/accounts/utils/publicKeyToAddress.js +2 -0
  165. package/dist/esm/node_modules/viem/_esm/accounts/utils/publicKeyToAddress.js.map +1 -0
  166. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsAddress.js +2 -0
  167. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsAddress.js.map +1 -0
  168. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsAvatar.js +2 -0
  169. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsAvatar.js.map +1 -0
  170. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsName.js +2 -0
  171. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsName.js.map +1 -0
  172. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsResolver.js +2 -0
  173. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsResolver.js.map +1 -0
  174. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsText.js +2 -0
  175. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsText.js.map +1 -0
  176. package/dist/esm/node_modules/viem/_esm/actions/public/call.js +2 -0
  177. package/dist/esm/node_modules/viem/_esm/actions/public/call.js.map +1 -0
  178. package/dist/esm/node_modules/viem/_esm/actions/public/createAccessList.js +2 -0
  179. package/dist/esm/node_modules/viem/_esm/actions/public/createAccessList.js.map +1 -0
  180. package/dist/esm/node_modules/viem/_esm/actions/public/createBlockFilter.js +2 -0
  181. package/dist/esm/node_modules/viem/_esm/actions/public/createBlockFilter.js.map +1 -0
  182. package/dist/esm/node_modules/viem/_esm/actions/public/createContractEventFilter.js +2 -0
  183. package/dist/esm/node_modules/viem/_esm/actions/public/createContractEventFilter.js.map +1 -0
  184. package/dist/esm/node_modules/viem/_esm/actions/public/createEventFilter.js +2 -0
  185. package/dist/esm/node_modules/viem/_esm/actions/public/createEventFilter.js.map +1 -0
  186. package/dist/esm/node_modules/viem/_esm/actions/public/createPendingTransactionFilter.js +2 -0
  187. package/dist/esm/node_modules/viem/_esm/actions/public/createPendingTransactionFilter.js.map +1 -0
  188. package/dist/esm/node_modules/viem/_esm/actions/public/estimateContractGas.js +2 -0
  189. package/dist/esm/node_modules/viem/_esm/actions/public/estimateContractGas.js.map +1 -0
  190. package/dist/esm/node_modules/viem/_esm/actions/public/estimateFeesPerGas.js +2 -0
  191. package/dist/esm/node_modules/viem/_esm/actions/public/estimateFeesPerGas.js.map +1 -0
  192. package/dist/esm/node_modules/viem/_esm/actions/public/estimateGas.js +2 -0
  193. package/dist/esm/node_modules/viem/_esm/actions/public/estimateGas.js.map +1 -0
  194. package/dist/esm/node_modules/viem/_esm/actions/public/estimateMaxPriorityFeePerGas.js +2 -0
  195. package/dist/esm/node_modules/viem/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -0
  196. package/dist/esm/node_modules/viem/_esm/actions/public/getBalance.js +2 -0
  197. package/dist/esm/node_modules/viem/_esm/actions/public/getBalance.js.map +1 -0
  198. package/dist/esm/node_modules/viem/_esm/actions/public/getBlobBaseFee.js +2 -0
  199. package/dist/esm/node_modules/viem/_esm/actions/public/getBlobBaseFee.js.map +1 -0
  200. package/dist/esm/node_modules/viem/_esm/actions/public/getBlock.js +2 -0
  201. package/dist/esm/node_modules/viem/_esm/actions/public/getBlock.js.map +1 -0
  202. package/dist/esm/node_modules/viem/_esm/actions/public/getBlockNumber.js +2 -0
  203. package/dist/esm/node_modules/viem/_esm/actions/public/getBlockNumber.js.map +1 -0
  204. package/dist/esm/node_modules/viem/_esm/actions/public/getBlockTransactionCount.js +2 -0
  205. package/dist/esm/node_modules/viem/_esm/actions/public/getBlockTransactionCount.js.map +1 -0
  206. package/dist/esm/node_modules/viem/_esm/actions/public/getChainId.js +2 -0
  207. package/dist/esm/node_modules/viem/_esm/actions/public/getChainId.js.map +1 -0
  208. package/dist/esm/node_modules/viem/_esm/actions/public/getCode.js +2 -0
  209. package/dist/esm/node_modules/viem/_esm/actions/public/getCode.js.map +1 -0
  210. package/dist/esm/node_modules/viem/_esm/actions/public/getContractEvents.js +2 -0
  211. package/dist/esm/node_modules/viem/_esm/actions/public/getContractEvents.js.map +1 -0
  212. package/dist/esm/node_modules/viem/_esm/actions/public/getEip712Domain.js +2 -0
  213. package/dist/esm/node_modules/viem/_esm/actions/public/getEip712Domain.js.map +1 -0
  214. package/dist/esm/node_modules/viem/_esm/actions/public/getFeeHistory.js +2 -0
  215. package/dist/esm/node_modules/viem/_esm/actions/public/getFeeHistory.js.map +1 -0
  216. package/dist/esm/node_modules/viem/_esm/actions/public/getFilterChanges.js +2 -0
  217. package/dist/esm/node_modules/viem/_esm/actions/public/getFilterChanges.js.map +1 -0
  218. package/dist/esm/node_modules/viem/_esm/actions/public/getFilterLogs.js +2 -0
  219. package/dist/esm/node_modules/viem/_esm/actions/public/getFilterLogs.js.map +1 -0
  220. package/dist/esm/node_modules/viem/_esm/actions/public/getGasPrice.js +2 -0
  221. package/dist/esm/node_modules/viem/_esm/actions/public/getGasPrice.js.map +1 -0
  222. package/dist/esm/node_modules/viem/_esm/actions/public/getLogs.js +2 -0
  223. package/dist/esm/node_modules/viem/_esm/actions/public/getLogs.js.map +1 -0
  224. package/dist/esm/node_modules/viem/_esm/actions/public/getProof.js +2 -0
  225. package/dist/esm/node_modules/viem/_esm/actions/public/getProof.js.map +1 -0
  226. package/dist/esm/node_modules/viem/_esm/actions/public/getStorageAt.js +2 -0
  227. package/dist/esm/node_modules/viem/_esm/actions/public/getStorageAt.js.map +1 -0
  228. package/dist/esm/node_modules/viem/_esm/actions/public/getTransaction.js +2 -0
  229. package/dist/esm/node_modules/viem/_esm/actions/public/getTransaction.js.map +1 -0
  230. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionConfirmations.js +2 -0
  231. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionConfirmations.js.map +1 -0
  232. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionCount.js +2 -0
  233. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionCount.js.map +1 -0
  234. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionReceipt.js +2 -0
  235. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionReceipt.js.map +1 -0
  236. package/dist/esm/node_modules/viem/_esm/actions/public/multicall.js +2 -0
  237. package/dist/esm/node_modules/viem/_esm/actions/public/multicall.js.map +1 -0
  238. package/dist/esm/node_modules/viem/_esm/actions/public/readContract.js +2 -0
  239. package/dist/esm/node_modules/viem/_esm/actions/public/readContract.js.map +1 -0
  240. package/dist/esm/node_modules/viem/_esm/actions/public/simulateBlocks.js +2 -0
  241. package/dist/esm/node_modules/viem/_esm/actions/public/simulateBlocks.js.map +1 -0
  242. package/dist/esm/node_modules/viem/_esm/actions/public/simulateCalls.js +2 -0
  243. package/dist/esm/node_modules/viem/_esm/actions/public/simulateCalls.js.map +1 -0
  244. package/dist/esm/node_modules/viem/_esm/actions/public/simulateContract.js +2 -0
  245. package/dist/esm/node_modules/viem/_esm/actions/public/simulateContract.js.map +1 -0
  246. package/dist/esm/node_modules/viem/_esm/actions/public/uninstallFilter.js +2 -0
  247. package/dist/esm/node_modules/viem/_esm/actions/public/uninstallFilter.js.map +1 -0
  248. package/dist/esm/node_modules/viem/_esm/actions/public/verifyHash.js +2 -0
  249. package/dist/esm/node_modules/viem/_esm/actions/public/verifyHash.js.map +1 -0
  250. package/dist/esm/node_modules/viem/_esm/actions/public/verifyMessage.js +2 -0
  251. package/dist/esm/node_modules/viem/_esm/actions/public/verifyMessage.js.map +1 -0
  252. package/dist/esm/node_modules/viem/_esm/actions/public/verifyTypedData.js +2 -0
  253. package/dist/esm/node_modules/viem/_esm/actions/public/verifyTypedData.js.map +1 -0
  254. package/dist/esm/node_modules/viem/_esm/actions/public/waitForTransactionReceipt.js +2 -0
  255. package/dist/esm/node_modules/viem/_esm/actions/public/waitForTransactionReceipt.js.map +1 -0
  256. package/dist/esm/node_modules/viem/_esm/actions/public/watchBlockNumber.js +2 -0
  257. package/dist/esm/node_modules/viem/_esm/actions/public/watchBlockNumber.js.map +1 -0
  258. package/dist/esm/node_modules/viem/_esm/actions/public/watchBlocks.js +2 -0
  259. package/dist/esm/node_modules/viem/_esm/actions/public/watchBlocks.js.map +1 -0
  260. package/dist/esm/node_modules/viem/_esm/actions/public/watchContractEvent.js +2 -0
  261. package/dist/esm/node_modules/viem/_esm/actions/public/watchContractEvent.js.map +1 -0
  262. package/dist/esm/node_modules/viem/_esm/actions/public/watchEvent.js +2 -0
  263. package/dist/esm/node_modules/viem/_esm/actions/public/watchEvent.js.map +1 -0
  264. package/dist/esm/node_modules/viem/_esm/actions/public/watchPendingTransactions.js +2 -0
  265. package/dist/esm/node_modules/viem/_esm/actions/public/watchPendingTransactions.js.map +1 -0
  266. package/dist/esm/node_modules/viem/_esm/actions/siwe/verifySiweMessage.js +2 -0
  267. package/dist/esm/node_modules/viem/_esm/actions/siwe/verifySiweMessage.js.map +1 -0
  268. package/dist/esm/node_modules/viem/_esm/actions/wallet/prepareTransactionRequest.js +2 -0
  269. package/dist/esm/node_modules/viem/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -0
  270. package/dist/esm/node_modules/viem/_esm/actions/wallet/sendRawTransaction.js +2 -0
  271. package/dist/esm/node_modules/viem/_esm/actions/wallet/sendRawTransaction.js.map +1 -0
  272. package/dist/esm/node_modules/viem/_esm/clients/createClient.js +2 -0
  273. package/dist/esm/node_modules/viem/_esm/clients/createClient.js.map +1 -0
  274. package/dist/esm/node_modules/viem/_esm/clients/createPublicClient.js +2 -0
  275. package/dist/esm/node_modules/viem/_esm/clients/createPublicClient.js.map +1 -0
  276. package/dist/esm/node_modules/viem/_esm/clients/decorators/public.js +2 -0
  277. package/dist/esm/node_modules/viem/_esm/clients/decorators/public.js.map +1 -0
  278. package/dist/esm/node_modules/viem/_esm/clients/transports/createTransport.js +2 -0
  279. package/dist/esm/node_modules/viem/_esm/clients/transports/createTransport.js.map +1 -0
  280. package/dist/esm/node_modules/viem/_esm/clients/transports/http.js +2 -0
  281. package/dist/esm/node_modules/viem/_esm/clients/transports/http.js.map +1 -0
  282. package/dist/esm/node_modules/viem/_esm/constants/abis.js +2 -0
  283. package/dist/esm/node_modules/viem/_esm/constants/abis.js.map +1 -0
  284. package/dist/esm/node_modules/viem/_esm/constants/address.js +2 -0
  285. package/dist/esm/node_modules/viem/_esm/constants/address.js.map +1 -0
  286. package/dist/esm/node_modules/viem/_esm/constants/blob.js +2 -0
  287. package/dist/esm/node_modules/viem/_esm/constants/blob.js.map +1 -0
  288. package/dist/esm/node_modules/viem/_esm/constants/contract.js +2 -0
  289. package/dist/esm/node_modules/viem/_esm/constants/contract.js.map +1 -0
  290. package/dist/esm/node_modules/viem/_esm/constants/contracts.js +2 -0
  291. package/dist/esm/node_modules/viem/_esm/constants/contracts.js.map +1 -0
  292. package/dist/esm/node_modules/viem/_esm/constants/number.js +2 -0
  293. package/dist/esm/node_modules/viem/_esm/constants/number.js.map +1 -0
  294. package/dist/esm/node_modules/viem/_esm/constants/solidity.js +2 -0
  295. package/dist/esm/node_modules/viem/_esm/constants/solidity.js.map +1 -0
  296. package/dist/esm/node_modules/viem/_esm/constants/strings.js +2 -0
  297. package/dist/esm/node_modules/viem/_esm/constants/strings.js.map +1 -0
  298. package/dist/esm/node_modules/viem/_esm/constants/unit.js +2 -0
  299. package/dist/esm/node_modules/viem/_esm/constants/unit.js.map +1 -0
  300. package/dist/esm/node_modules/viem/_esm/errors/abi.js +2 -0
  301. package/dist/esm/node_modules/viem/_esm/errors/abi.js.map +1 -0
  302. package/dist/esm/node_modules/viem/_esm/errors/address.js +2 -0
  303. package/dist/esm/node_modules/viem/_esm/errors/address.js.map +1 -0
  304. package/dist/esm/node_modules/viem/_esm/errors/base.js +2 -0
  305. package/dist/esm/node_modules/viem/_esm/errors/base.js.map +1 -0
  306. package/dist/esm/node_modules/viem/_esm/errors/blob.js +2 -0
  307. package/dist/esm/node_modules/viem/_esm/errors/blob.js.map +1 -0
  308. package/dist/esm/node_modules/viem/_esm/errors/block.js +2 -0
  309. package/dist/esm/node_modules/viem/_esm/errors/block.js.map +1 -0
  310. package/dist/esm/node_modules/viem/_esm/errors/ccip.js +2 -0
  311. package/dist/esm/node_modules/viem/_esm/errors/ccip.js.map +1 -0
  312. package/dist/esm/node_modules/viem/_esm/errors/chain.js +2 -0
  313. package/dist/esm/node_modules/viem/_esm/errors/chain.js.map +1 -0
  314. package/dist/esm/node_modules/viem/_esm/errors/contract.js +2 -0
  315. package/dist/esm/node_modules/viem/_esm/errors/contract.js.map +1 -0
  316. package/dist/esm/node_modules/viem/_esm/errors/cursor.js +2 -0
  317. package/dist/esm/node_modules/viem/_esm/errors/cursor.js.map +1 -0
  318. package/dist/esm/node_modules/viem/_esm/errors/data.js +2 -0
  319. package/dist/esm/node_modules/viem/_esm/errors/data.js.map +1 -0
  320. package/dist/esm/node_modules/viem/_esm/errors/eip712.js +2 -0
  321. package/dist/esm/node_modules/viem/_esm/errors/eip712.js.map +1 -0
  322. package/dist/esm/node_modules/viem/_esm/errors/encoding.js +2 -0
  323. package/dist/esm/node_modules/viem/_esm/errors/encoding.js.map +1 -0
  324. package/dist/esm/node_modules/viem/_esm/errors/ens.js +2 -0
  325. package/dist/esm/node_modules/viem/_esm/errors/ens.js.map +1 -0
  326. package/dist/esm/node_modules/viem/_esm/errors/estimateGas.js +2 -0
  327. package/dist/esm/node_modules/viem/_esm/errors/estimateGas.js.map +1 -0
  328. package/dist/esm/node_modules/viem/_esm/errors/fee.js +2 -0
  329. package/dist/esm/node_modules/viem/_esm/errors/fee.js.map +1 -0
  330. package/dist/esm/node_modules/viem/_esm/errors/log.js +2 -0
  331. package/dist/esm/node_modules/viem/_esm/errors/log.js.map +1 -0
  332. package/dist/esm/node_modules/viem/_esm/errors/node.js +2 -0
  333. package/dist/esm/node_modules/viem/_esm/errors/node.js.map +1 -0
  334. package/dist/esm/node_modules/viem/_esm/errors/request.js +2 -0
  335. package/dist/esm/node_modules/viem/_esm/errors/request.js.map +1 -0
  336. package/dist/esm/node_modules/viem/_esm/errors/rpc.js +2 -0
  337. package/dist/esm/node_modules/viem/_esm/errors/rpc.js.map +1 -0
  338. package/dist/esm/node_modules/viem/_esm/errors/stateOverride.js +2 -0
  339. package/dist/esm/node_modules/viem/_esm/errors/stateOverride.js.map +1 -0
  340. package/dist/esm/node_modules/viem/_esm/errors/transaction.js +2 -0
  341. package/dist/esm/node_modules/viem/_esm/errors/transaction.js.map +1 -0
  342. package/dist/esm/node_modules/viem/_esm/errors/transport.js +2 -0
  343. package/dist/esm/node_modules/viem/_esm/errors/transport.js.map +1 -0
  344. package/dist/esm/node_modules/viem/_esm/errors/typedData.js +2 -0
  345. package/dist/esm/node_modules/viem/_esm/errors/typedData.js.map +1 -0
  346. package/dist/esm/node_modules/viem/_esm/errors/utils.js +2 -0
  347. package/dist/esm/node_modules/viem/_esm/errors/utils.js.map +1 -0
  348. package/dist/esm/node_modules/viem/_esm/errors/version.js +2 -0
  349. package/dist/esm/node_modules/viem/_esm/errors/version.js.map +1 -0
  350. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js +2 -0
  351. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js.map +1 -0
  352. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeErrorResult.js +2 -0
  353. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeErrorResult.js.map +1 -0
  354. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeEventLog.js +2 -0
  355. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeEventLog.js.map +1 -0
  356. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeFunctionData.js +2 -0
  357. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeFunctionData.js.map +1 -0
  358. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeFunctionResult.js +2 -0
  359. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeFunctionResult.js.map +1 -0
  360. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js +2 -0
  361. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js.map +1 -0
  362. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeDeployData.js +2 -0
  363. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeDeployData.js.map +1 -0
  364. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeErrorResult.js +2 -0
  365. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeErrorResult.js.map +1 -0
  366. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeEventTopics.js +2 -0
  367. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeEventTopics.js.map +1 -0
  368. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeFunctionData.js +2 -0
  369. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeFunctionData.js.map +1 -0
  370. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeFunctionResult.js +2 -0
  371. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeFunctionResult.js.map +1 -0
  372. package/dist/esm/node_modules/viem/_esm/utils/abi/formatAbiItem.js +2 -0
  373. package/dist/esm/node_modules/viem/_esm/utils/abi/formatAbiItem.js.map +1 -0
  374. package/dist/esm/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js +2 -0
  375. package/dist/esm/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js.map +1 -0
  376. package/dist/esm/node_modules/viem/_esm/utils/abi/getAbiItem.js +2 -0
  377. package/dist/esm/node_modules/viem/_esm/utils/abi/getAbiItem.js.map +1 -0
  378. package/dist/esm/node_modules/viem/_esm/utils/abi/parseEventLogs.js +2 -0
  379. package/dist/esm/node_modules/viem/_esm/utils/abi/parseEventLogs.js.map +1 -0
  380. package/dist/esm/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js +2 -0
  381. package/dist/esm/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js.map +1 -0
  382. package/dist/esm/node_modules/viem/_esm/utils/address/getAddress.js +2 -0
  383. package/dist/esm/node_modules/viem/_esm/utils/address/getAddress.js.map +1 -0
  384. package/dist/esm/node_modules/viem/_esm/utils/address/isAddress.js +2 -0
  385. package/dist/esm/node_modules/viem/_esm/utils/address/isAddress.js.map +1 -0
  386. package/dist/esm/node_modules/viem/_esm/utils/address/isAddressEqual.js +2 -0
  387. package/dist/esm/node_modules/viem/_esm/utils/address/isAddressEqual.js.map +1 -0
  388. package/dist/esm/node_modules/viem/_esm/utils/authorization/hashAuthorization.js +2 -0
  389. package/dist/esm/node_modules/viem/_esm/utils/authorization/hashAuthorization.js.map +1 -0
  390. package/dist/esm/node_modules/viem/_esm/utils/authorization/recoverAuthorizationAddress.js +2 -0
  391. package/dist/esm/node_modules/viem/_esm/utils/authorization/recoverAuthorizationAddress.js.map +1 -0
  392. package/dist/esm/node_modules/viem/_esm/utils/authorization/verifyAuthorization.js +2 -0
  393. package/dist/esm/node_modules/viem/_esm/utils/authorization/verifyAuthorization.js.map +1 -0
  394. package/dist/esm/node_modules/viem/_esm/utils/blob/blobsToCommitments.js +2 -0
  395. package/dist/esm/node_modules/viem/_esm/utils/blob/blobsToCommitments.js.map +1 -0
  396. package/dist/esm/node_modules/viem/_esm/utils/blob/blobsToProofs.js +2 -0
  397. package/dist/esm/node_modules/viem/_esm/utils/blob/blobsToProofs.js.map +1 -0
  398. package/dist/esm/node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js +2 -0
  399. package/dist/esm/node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js.map +1 -0
  400. package/dist/esm/node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js +2 -0
  401. package/dist/esm/node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js.map +1 -0
  402. package/dist/esm/node_modules/viem/_esm/utils/blob/toBlobSidecars.js +2 -0
  403. package/dist/esm/node_modules/viem/_esm/utils/blob/toBlobSidecars.js.map +1 -0
  404. package/dist/esm/node_modules/viem/_esm/utils/blob/toBlobs.js +2 -0
  405. package/dist/esm/node_modules/viem/_esm/utils/blob/toBlobs.js.map +1 -0
  406. package/dist/esm/node_modules/viem/_esm/utils/buildRequest.js +2 -0
  407. package/dist/esm/node_modules/viem/_esm/utils/buildRequest.js.map +1 -0
  408. package/dist/esm/node_modules/viem/_esm/utils/ccip.js +2 -0
  409. package/dist/esm/node_modules/viem/_esm/utils/ccip.js.map +1 -0
  410. package/dist/esm/node_modules/viem/_esm/utils/chain/getChainContractAddress.js +2 -0
  411. package/dist/esm/node_modules/viem/_esm/utils/chain/getChainContractAddress.js.map +1 -0
  412. package/dist/esm/node_modules/viem/_esm/utils/cursor.js +2 -0
  413. package/dist/esm/node_modules/viem/_esm/utils/cursor.js.map +1 -0
  414. package/dist/esm/node_modules/viem/_esm/utils/data/concat.js +2 -0
  415. package/dist/esm/node_modules/viem/_esm/utils/data/concat.js.map +1 -0
  416. package/dist/esm/node_modules/viem/_esm/utils/data/isHex.js +2 -0
  417. package/dist/esm/node_modules/viem/_esm/utils/data/isHex.js.map +1 -0
  418. package/dist/esm/node_modules/viem/_esm/utils/data/pad.js +2 -0
  419. package/dist/esm/node_modules/viem/_esm/utils/data/pad.js.map +1 -0
  420. package/dist/esm/node_modules/viem/_esm/utils/data/size.js +2 -0
  421. package/dist/esm/node_modules/viem/_esm/utils/data/size.js.map +1 -0
  422. package/dist/esm/node_modules/viem/_esm/utils/data/slice.js +2 -0
  423. package/dist/esm/node_modules/viem/_esm/utils/data/slice.js.map +1 -0
  424. package/dist/esm/node_modules/viem/_esm/utils/data/trim.js +2 -0
  425. package/dist/esm/node_modules/viem/_esm/utils/data/trim.js.map +1 -0
  426. package/dist/esm/node_modules/viem/_esm/utils/encoding/fromBytes.js +2 -0
  427. package/dist/esm/node_modules/viem/_esm/utils/encoding/fromBytes.js.map +1 -0
  428. package/dist/esm/node_modules/viem/_esm/utils/encoding/fromHex.js +2 -0
  429. package/dist/esm/node_modules/viem/_esm/utils/encoding/fromHex.js.map +1 -0
  430. package/dist/esm/node_modules/viem/_esm/utils/encoding/toBytes.js +2 -0
  431. package/dist/esm/node_modules/viem/_esm/utils/encoding/toBytes.js.map +1 -0
  432. package/dist/esm/node_modules/viem/_esm/utils/encoding/toHex.js +2 -0
  433. package/dist/esm/node_modules/viem/_esm/utils/encoding/toHex.js.map +1 -0
  434. package/dist/esm/node_modules/viem/_esm/utils/encoding/toRlp.js +2 -0
  435. package/dist/esm/node_modules/viem/_esm/utils/encoding/toRlp.js.map +1 -0
  436. package/dist/esm/node_modules/viem/_esm/utils/ens/avatar/parseAvatarRecord.js +2 -0
  437. package/dist/esm/node_modules/viem/_esm/utils/ens/avatar/parseAvatarRecord.js.map +1 -0
  438. package/dist/esm/node_modules/viem/_esm/utils/ens/avatar/utils.js +2 -0
  439. package/dist/esm/node_modules/viem/_esm/utils/ens/avatar/utils.js.map +1 -0
  440. package/dist/esm/node_modules/viem/_esm/utils/ens/encodeLabelhash.js +2 -0
  441. package/dist/esm/node_modules/viem/_esm/utils/ens/encodeLabelhash.js.map +1 -0
  442. package/dist/esm/node_modules/viem/_esm/utils/ens/encodedLabelToLabelhash.js +2 -0
  443. package/dist/esm/node_modules/viem/_esm/utils/ens/encodedLabelToLabelhash.js.map +1 -0
  444. package/dist/esm/node_modules/viem/_esm/utils/ens/errors.js +2 -0
  445. package/dist/esm/node_modules/viem/_esm/utils/ens/errors.js.map +1 -0
  446. package/dist/esm/node_modules/viem/_esm/utils/ens/labelhash.js +2 -0
  447. package/dist/esm/node_modules/viem/_esm/utils/ens/labelhash.js.map +1 -0
  448. package/dist/esm/node_modules/viem/_esm/utils/ens/localBatchGatewayRequest.js +2 -0
  449. package/dist/esm/node_modules/viem/_esm/utils/ens/localBatchGatewayRequest.js.map +1 -0
  450. package/dist/esm/node_modules/viem/_esm/utils/ens/namehash.js +2 -0
  451. package/dist/esm/node_modules/viem/_esm/utils/ens/namehash.js.map +1 -0
  452. package/dist/esm/node_modules/viem/_esm/utils/ens/packetToBytes.js +2 -0
  453. package/dist/esm/node_modules/viem/_esm/utils/ens/packetToBytes.js.map +1 -0
  454. package/dist/esm/node_modules/viem/_esm/utils/errors/getCallError.js +2 -0
  455. package/dist/esm/node_modules/viem/_esm/utils/errors/getCallError.js.map +1 -0
  456. package/dist/esm/node_modules/viem/_esm/utils/errors/getContractError.js +2 -0
  457. package/dist/esm/node_modules/viem/_esm/utils/errors/getContractError.js.map +1 -0
  458. package/dist/esm/node_modules/viem/_esm/utils/errors/getEstimateGasError.js +2 -0
  459. package/dist/esm/node_modules/viem/_esm/utils/errors/getEstimateGasError.js.map +1 -0
  460. package/dist/esm/node_modules/viem/_esm/utils/errors/getNodeError.js +2 -0
  461. package/dist/esm/node_modules/viem/_esm/utils/errors/getNodeError.js.map +1 -0
  462. package/dist/esm/node_modules/viem/_esm/utils/filters/createFilterRequestScope.js +2 -0
  463. package/dist/esm/node_modules/viem/_esm/utils/filters/createFilterRequestScope.js.map +1 -0
  464. package/dist/esm/node_modules/viem/_esm/utils/formatters/block.js +2 -0
  465. package/dist/esm/node_modules/viem/_esm/utils/formatters/block.js.map +1 -0
  466. package/dist/esm/node_modules/viem/_esm/utils/formatters/extract.js +2 -0
  467. package/dist/esm/node_modules/viem/_esm/utils/formatters/extract.js.map +1 -0
  468. package/dist/esm/node_modules/viem/_esm/utils/formatters/feeHistory.js +2 -0
  469. package/dist/esm/node_modules/viem/_esm/utils/formatters/feeHistory.js.map +1 -0
  470. package/dist/esm/node_modules/viem/_esm/utils/formatters/log.js +2 -0
  471. package/dist/esm/node_modules/viem/_esm/utils/formatters/log.js.map +1 -0
  472. package/dist/esm/node_modules/viem/_esm/utils/formatters/proof.js +2 -0
  473. package/dist/esm/node_modules/viem/_esm/utils/formatters/proof.js.map +1 -0
  474. package/dist/esm/node_modules/viem/_esm/utils/formatters/transaction.js +2 -0
  475. package/dist/esm/node_modules/viem/_esm/utils/formatters/transaction.js.map +1 -0
  476. package/dist/esm/node_modules/viem/_esm/utils/formatters/transactionReceipt.js +2 -0
  477. package/dist/esm/node_modules/viem/_esm/utils/formatters/transactionReceipt.js.map +1 -0
  478. package/dist/esm/node_modules/viem/_esm/utils/formatters/transactionRequest.js +2 -0
  479. package/dist/esm/node_modules/viem/_esm/utils/formatters/transactionRequest.js.map +1 -0
  480. package/dist/esm/node_modules/viem/_esm/utils/getAction.js +2 -0
  481. package/dist/esm/node_modules/viem/_esm/utils/getAction.js.map +1 -0
  482. package/dist/esm/node_modules/viem/_esm/utils/hash/hashSignature.js +2 -0
  483. package/dist/esm/node_modules/viem/_esm/utils/hash/hashSignature.js.map +1 -0
  484. package/dist/esm/node_modules/viem/_esm/utils/hash/keccak256.js +2 -0
  485. package/dist/esm/node_modules/viem/_esm/utils/hash/keccak256.js.map +1 -0
  486. package/dist/esm/node_modules/viem/_esm/utils/hash/normalizeSignature.js +2 -0
  487. package/dist/esm/node_modules/viem/_esm/utils/hash/normalizeSignature.js.map +1 -0
  488. package/dist/esm/node_modules/viem/_esm/utils/hash/sha256.js +2 -0
  489. package/dist/esm/node_modules/viem/_esm/utils/hash/sha256.js.map +1 -0
  490. package/dist/esm/node_modules/viem/_esm/utils/hash/toEventSelector.js +2 -0
  491. package/dist/esm/node_modules/viem/_esm/utils/hash/toEventSelector.js.map +1 -0
  492. package/dist/esm/node_modules/viem/_esm/utils/hash/toFunctionSelector.js +2 -0
  493. package/dist/esm/node_modules/viem/_esm/utils/hash/toFunctionSelector.js.map +1 -0
  494. package/dist/esm/node_modules/viem/_esm/utils/hash/toSignature.js +2 -0
  495. package/dist/esm/node_modules/viem/_esm/utils/hash/toSignature.js.map +1 -0
  496. package/dist/esm/node_modules/viem/_esm/utils/hash/toSignatureHash.js +2 -0
  497. package/dist/esm/node_modules/viem/_esm/utils/hash/toSignatureHash.js.map +1 -0
  498. package/dist/esm/node_modules/viem/_esm/utils/lru.js +2 -0
  499. package/dist/esm/node_modules/viem/_esm/utils/lru.js.map +1 -0
  500. package/dist/esm/node_modules/viem/_esm/utils/observe.js +2 -0
  501. package/dist/esm/node_modules/viem/_esm/utils/observe.js.map +1 -0
  502. package/dist/esm/node_modules/viem/_esm/utils/poll.js +2 -0
  503. package/dist/esm/node_modules/viem/_esm/utils/poll.js.map +1 -0
  504. package/dist/esm/node_modules/viem/_esm/utils/promise/createBatchScheduler.js +2 -0
  505. package/dist/esm/node_modules/viem/_esm/utils/promise/createBatchScheduler.js.map +1 -0
  506. package/dist/esm/node_modules/viem/_esm/utils/promise/withCache.js +2 -0
  507. package/dist/esm/node_modules/viem/_esm/utils/promise/withCache.js.map +1 -0
  508. package/dist/esm/node_modules/viem/_esm/utils/promise/withDedupe.js +2 -0
  509. package/dist/esm/node_modules/viem/_esm/utils/promise/withDedupe.js.map +1 -0
  510. package/dist/esm/node_modules/viem/_esm/utils/promise/withResolvers.js +2 -0
  511. package/dist/esm/node_modules/viem/_esm/utils/promise/withResolvers.js.map +1 -0
  512. package/dist/esm/node_modules/viem/_esm/utils/promise/withRetry.js +2 -0
  513. package/dist/esm/node_modules/viem/_esm/utils/promise/withRetry.js.map +1 -0
  514. package/dist/esm/node_modules/viem/_esm/utils/promise/withTimeout.js +2 -0
  515. package/dist/esm/node_modules/viem/_esm/utils/promise/withTimeout.js.map +1 -0
  516. package/dist/esm/node_modules/viem/_esm/utils/regex.js +2 -0
  517. package/dist/esm/node_modules/viem/_esm/utils/regex.js.map +1 -0
  518. package/dist/esm/node_modules/viem/_esm/utils/rpc/http.js +2 -0
  519. package/dist/esm/node_modules/viem/_esm/utils/rpc/http.js.map +1 -0
  520. package/dist/esm/node_modules/viem/_esm/utils/rpc/id.js +2 -0
  521. package/dist/esm/node_modules/viem/_esm/utils/rpc/id.js.map +1 -0
  522. package/dist/esm/node_modules/viem/_esm/utils/signature/hashMessage.js +2 -0
  523. package/dist/esm/node_modules/viem/_esm/utils/signature/hashMessage.js.map +1 -0
  524. package/dist/esm/node_modules/viem/_esm/utils/signature/hashTypedData.js +2 -0
  525. package/dist/esm/node_modules/viem/_esm/utils/signature/hashTypedData.js.map +1 -0
  526. package/dist/esm/node_modules/viem/_esm/utils/signature/recoverAddress.js +2 -0
  527. package/dist/esm/node_modules/viem/_esm/utils/signature/recoverAddress.js.map +1 -0
  528. package/dist/esm/node_modules/viem/_esm/utils/signature/recoverPublicKey.js +2 -0
  529. package/dist/esm/node_modules/viem/_esm/utils/signature/recoverPublicKey.js.map +1 -0
  530. package/dist/esm/node_modules/viem/_esm/utils/signature/serializeSignature.js +2 -0
  531. package/dist/esm/node_modules/viem/_esm/utils/signature/serializeSignature.js.map +1 -0
  532. package/dist/esm/node_modules/viem/_esm/utils/signature/toPrefixedMessage.js +2 -0
  533. package/dist/esm/node_modules/viem/_esm/utils/signature/toPrefixedMessage.js.map +1 -0
  534. package/dist/esm/node_modules/viem/_esm/utils/siwe/parseSiweMessage.js +2 -0
  535. package/dist/esm/node_modules/viem/_esm/utils/siwe/parseSiweMessage.js.map +1 -0
  536. package/dist/esm/node_modules/viem/_esm/utils/siwe/validateSiweMessage.js +2 -0
  537. package/dist/esm/node_modules/viem/_esm/utils/siwe/validateSiweMessage.js.map +1 -0
  538. package/dist/esm/node_modules/viem/_esm/utils/stateOverride.js +2 -0
  539. package/dist/esm/node_modules/viem/_esm/utils/stateOverride.js.map +1 -0
  540. package/dist/esm/node_modules/viem/_esm/utils/stringify.js +2 -0
  541. package/dist/esm/node_modules/viem/_esm/utils/stringify.js.map +1 -0
  542. package/dist/esm/node_modules/viem/_esm/utils/transaction/assertRequest.js +2 -0
  543. package/dist/esm/node_modules/viem/_esm/utils/transaction/assertRequest.js.map +1 -0
  544. package/dist/esm/node_modules/viem/_esm/utils/transaction/getTransactionType.js +2 -0
  545. package/dist/esm/node_modules/viem/_esm/utils/transaction/getTransactionType.js.map +1 -0
  546. package/dist/esm/node_modules/viem/_esm/utils/typedData.js +2 -0
  547. package/dist/esm/node_modules/viem/_esm/utils/typedData.js.map +1 -0
  548. package/dist/esm/node_modules/viem/_esm/utils/uid.js +2 -0
  549. package/dist/esm/node_modules/viem/_esm/utils/uid.js.map +1 -0
  550. package/dist/esm/node_modules/viem/_esm/utils/unit/formatEther.js +2 -0
  551. package/dist/esm/node_modules/viem/_esm/utils/unit/formatEther.js.map +1 -0
  552. package/dist/esm/node_modules/viem/_esm/utils/unit/formatGwei.js +2 -0
  553. package/dist/esm/node_modules/viem/_esm/utils/unit/formatGwei.js.map +1 -0
  554. package/dist/esm/node_modules/viem/_esm/utils/unit/formatUnits.js +2 -0
  555. package/dist/esm/node_modules/viem/_esm/utils/unit/formatUnits.js.map +1 -0
  556. package/dist/esm/node_modules/viem/_esm/utils/wait.js +2 -0
  557. package/dist/esm/node_modules/viem/_esm/utils/wait.js.map +1 -0
  558. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/_shortw_utils.js +3 -0
  559. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/_shortw_utils.js.map +1 -0
  560. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/curve.js +3 -0
  561. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/curve.js.map +1 -0
  562. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/modular.js +4 -0
  563. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/modular.js.map +1 -0
  564. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/utils.js +3 -0
  565. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/utils.js.map +1 -0
  566. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/weierstrass.js +4 -0
  567. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/weierstrass.js.map +1 -0
  568. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/secp256k1.js +3 -0
  569. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/secp256k1.js.map +1 -0
  570. package/dist/esm/src/LoginModal.js +2 -0
  571. package/dist/esm/src/LoginModal.js.map +1 -0
  572. package/dist/esm/src/LoginModal.styles.js +286 -0
  573. package/dist/esm/src/LoginModal.styles.js.map +1 -0
  574. package/dist/esm/src/adapters/phantom.js +2 -0
  575. package/dist/esm/src/adapters/phantom.js.map +1 -0
  576. package/dist/esm/src/client.js +2 -0
  577. package/dist/esm/src/client.js.map +1 -0
  578. package/dist/esm/src/coinbase.js +2 -0
  579. package/dist/esm/src/coinbase.js.map +1 -0
  580. package/dist/esm/src/context.js +2 -0
  581. package/dist/esm/src/context.js.map +1 -0
  582. package/dist/esm/src/hooks.js +2 -0
  583. package/dist/esm/src/hooks.js.map +1 -0
  584. package/dist/esm/src/index.js +2 -0
  585. package/dist/esm/src/index.js.map +1 -0
  586. package/dist/esm/src/modal.js +2 -0
  587. package/dist/esm/src/modal.js.map +1 -0
  588. package/dist/esm/src/polyfills.js +2 -0
  589. package/dist/esm/src/polyfills.js.map +1 -0
  590. package/dist/esm/src/storage.js +2 -0
  591. package/dist/esm/src/storage.js.map +1 -0
  592. package/dist/esm/src/styles/index.js +2 -0
  593. package/dist/esm/src/styles/index.js.map +1 -0
  594. package/dist/esm/src/styles/theme.js +2 -0
  595. package/dist/esm/src/styles/theme.js.map +1 -0
  596. package/dist/esm/src/types.js +2 -0
  597. package/dist/esm/src/types.js.map +1 -0
  598. package/dist/esm/src/utils/coinbaseUtils.js +2 -0
  599. package/dist/esm/src/utils/coinbaseUtils.js.map +1 -0
  600. package/dist/esm/src/utils/oauth.js +2 -0
  601. package/dist/esm/src/utils/oauth.js.map +1 -0
  602. package/dist/esm/types/LoginModal.d.ts +3 -0
  603. package/dist/esm/types/LoginModal.styles.d.ts +29 -0
  604. package/dist/esm/types/adapters/phantom.d.ts +30 -0
  605. package/dist/esm/types/client.d.ts +170 -0
  606. package/dist/esm/types/coinbase.d.ts +3 -0
  607. package/dist/esm/types/context.d.ts +28 -0
  608. package/dist/esm/types/hooks.d.ts +56 -0
  609. package/dist/esm/types/index.d.ts +8 -0
  610. package/dist/esm/types/modal.d.ts +20 -0
  611. package/dist/esm/types/polyfills.d.ts +1 -0
  612. package/dist/esm/types/storage.d.ts +9 -0
  613. package/dist/esm/types/styles/globalStyles.d.ts +2 -0
  614. package/dist/esm/types/styles/index.d.ts +2 -0
  615. package/dist/esm/types/styles/theme.d.ts +103 -0
  616. package/dist/esm/types/types.d.ts +132 -0
  617. package/dist/esm/types/utils/coinbaseUtils.d.ts +9 -0
  618. package/dist/esm/types/utils/oauth.d.ts +21 -0
  619. package/dist/esm/types/utils/twitter.d.ts +35 -0
  620. package/dist/index.cjs +296 -0
  621. package/dist/index.cjs.map +1 -0
  622. package/dist/index.d.ts +530 -0
  623. package/package.json +97 -0
@@ -0,0 +1,2 @@
1
+ import{parseAccount as e}from"../accounts/utils/parseAccount.js";import{panicReasons as t}from"../constants/solidity.js";import{decodeErrorResult as a}from"../utils/abi/decodeErrorResult.js";import{formatAbiItem as r}from"../utils/abi/formatAbiItem.js";import{formatAbiItemWithArgs as o}from"../utils/abi/formatAbiItemWithArgs.js";import{getAbiItem as i}from"../utils/abi/getAbiItem.js";import{formatEther as s}from"../utils/unit/formatEther.js";import{formatGwei as n}from"../utils/unit/formatGwei.js";import{AbiErrorSignatureNotFoundError as c}from"./abi.js";import{BaseError as u}from"./base.js";import{prettyStateOverride as l}from"./stateOverride.js";import{prettyPrint as d}from"./transaction.js";import{getContractAddress as m}from"./utils.js";class f extends u{constructor(t,{account:a,docsPath:r,chain:o,data:i,gas:c,gasPrice:u,maxFeePerGas:m,maxPriorityFeePerGas:f,nonce:b,to:h,value:g,stateOverride:v}){const p=a?e(a):void 0;let y=d({from:p?.address,to:h,value:void 0!==g&&`${s(g)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:c,gasPrice:void 0!==u&&`${n(u)} gwei`,maxFeePerGas:void 0!==m&&`${n(m)} gwei`,maxPriorityFeePerGas:void 0!==f&&`${n(f)} gwei`,nonce:b});v&&(y+=`\n${l(v)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",y].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}}class b extends u{constructor(e,{abi:t,args:a,contractAddress:s,docsPath:n,functionName:c,sender:u}){const l=i({abi:t,args:a,name:c}),f=l?o({abiItem:l,args:a,includeFunctionName:!1,includeName:!1}):void 0,b=l?r(l,{includeName:!0}):void 0,h=d({address:s&&m(s),function:b,args:f&&"()"!==f&&`${[...Array(c?.length??0).keys()].map(()=>" ").join("")}${f}`,sender:u});super(e.shortMessage||`An unknown error occurred while executing the contract function "${c}".`,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],h&&"Contract Call:",h].filter(Boolean),name:"ContractFunctionExecutionError"}),Object.defineProperty(this,"abi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"args",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"formattedArgs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"functionName",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"sender",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=a,this.cause=e,this.contractAddress=s,this.functionName=c,this.sender=u}}class h extends u{constructor({abi:e,data:i,functionName:s,message:n}){let u,l,d,m,f;if(i&&"0x"!==i)try{l=a({abi:e,data:i});const{abiItem:s,errorName:n,args:c}=l;if("Error"===n)m=c[0];else if("Panic"===n){const[e]=c;m=t[e]}else{const e=s?r(s,{includeName:!0}):void 0,t=s&&c?o({abiItem:s,args:c,includeFunctionName:!1,includeName:!1}):void 0;d=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(n?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){u=e}else n&&(m=n);u instanceof c&&(f=u.signature,d=[`Unable to decode signature "${f}" as it was not found on the provided ABI.`,"Make sure you are using the correct ABI and that the error exists on it.",`You can look up the decoded signature here: https://openchain.xyz/signatures?query=${f}.`]),super(m&&"execution reverted"!==m||f?[`The contract function "${s}" reverted with the following ${f?"signature":"reason"}:`,m||f].join("\n"):`The contract function "${s}" reverted.`,{cause:u,metaMessages:d,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=l,this.raw=i,this.reason=m,this.signature=f}}class g extends u{constructor({functionName:e}){super(`The contract function "${e}" returned no data ("0x").`,{metaMessages:["This could be due to any of the following:",` - The contract does not have the function "${e}",`," - The parameters passed to the contract function may be invalid, or"," - The address is not a contract."],name:"ContractFunctionZeroDataError"})}}class v extends u{constructor({factory:e}){super("Deployment for counterfactual contract call failed"+(e?` for factory "${e}".`:""),{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class p extends u{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}export{f as CallExecutionError,b as ContractFunctionExecutionError,h as ContractFunctionRevertedError,g as ContractFunctionZeroDataError,v as CounterfactualDeploymentFailedError,p as RawContractError};
2
+ //# sourceMappingURL=contract.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.js","sources":["../../../../../../node_modules/viem/_esm/errors/contract.js"],"sourcesContent":["import { parseAccount } from '../accounts/utils/parseAccount.js';\nimport { panicReasons } from '../constants/solidity.js';\nimport { decodeErrorResult, } from '../utils/abi/decodeErrorResult.js';\nimport { formatAbiItem } from '../utils/abi/formatAbiItem.js';\nimport { formatAbiItemWithArgs } from '../utils/abi/formatAbiItemWithArgs.js';\nimport { getAbiItem } from '../utils/abi/getAbiItem.js';\nimport { formatEther } from '../utils/unit/formatEther.js';\nimport { formatGwei } from '../utils/unit/formatGwei.js';\nimport { AbiErrorSignatureNotFoundError } from './abi.js';\nimport { BaseError } from './base.js';\nimport { prettyStateOverride } from './stateOverride.js';\nimport { prettyPrint } from './transaction.js';\nimport { getContractAddress } from './utils.js';\nexport class CallExecutionError extends BaseError {\n constructor(cause, { account: account_, docsPath, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride, }) {\n const account = account_ ? parseAccount(account_) : undefined;\n let prettyArgs = prettyPrint({\n from: account?.address,\n to,\n value: typeof value !== 'undefined' &&\n `${formatEther(value)} ${chain?.nativeCurrency?.symbol || 'ETH'}`,\n data,\n gas,\n gasPrice: typeof gasPrice !== 'undefined' && `${formatGwei(gasPrice)} gwei`,\n maxFeePerGas: typeof maxFeePerGas !== 'undefined' &&\n `${formatGwei(maxFeePerGas)} gwei`,\n maxPriorityFeePerGas: typeof maxPriorityFeePerGas !== 'undefined' &&\n `${formatGwei(maxPriorityFeePerGas)} gwei`,\n nonce,\n });\n if (stateOverride) {\n prettyArgs += `\\n${prettyStateOverride(stateOverride)}`;\n }\n super(cause.shortMessage, {\n cause,\n docsPath,\n metaMessages: [\n ...(cause.metaMessages ? [...cause.metaMessages, ' '] : []),\n 'Raw Call Arguments:',\n prettyArgs,\n ].filter(Boolean),\n name: 'CallExecutionError',\n });\n Object.defineProperty(this, \"cause\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.cause = cause;\n }\n}\nexport class ContractFunctionExecutionError extends BaseError {\n constructor(cause, { abi, args, contractAddress, docsPath, functionName, sender, }) {\n const abiItem = getAbiItem({ abi, args, name: functionName });\n const formattedArgs = abiItem\n ? formatAbiItemWithArgs({\n abiItem,\n args,\n includeFunctionName: false,\n includeName: false,\n })\n : undefined;\n const functionWithParams = abiItem\n ? formatAbiItem(abiItem, { includeName: true })\n : undefined;\n const prettyArgs = prettyPrint({\n address: contractAddress && getContractAddress(contractAddress),\n function: functionWithParams,\n args: formattedArgs &&\n formattedArgs !== '()' &&\n `${[...Array(functionName?.length ?? 0).keys()]\n .map(() => ' ')\n .join('')}${formattedArgs}`,\n sender,\n });\n super(cause.shortMessage ||\n `An unknown error occurred while executing the contract function \"${functionName}\".`, {\n cause,\n docsPath,\n metaMessages: [\n ...(cause.metaMessages ? [...cause.metaMessages, ' '] : []),\n prettyArgs && 'Contract Call:',\n prettyArgs,\n ].filter(Boolean),\n name: 'ContractFunctionExecutionError',\n });\n Object.defineProperty(this, \"abi\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"args\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"cause\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"contractAddress\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"formattedArgs\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"functionName\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"sender\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.abi = abi;\n this.args = args;\n this.cause = cause;\n this.contractAddress = contractAddress;\n this.functionName = functionName;\n this.sender = sender;\n }\n}\nexport class ContractFunctionRevertedError extends BaseError {\n constructor({ abi, data, functionName, message, }) {\n let cause;\n let decodedData;\n let metaMessages;\n let reason;\n if (data && data !== '0x') {\n try {\n decodedData = decodeErrorResult({ abi, data });\n const { abiItem, errorName, args: errorArgs } = decodedData;\n if (errorName === 'Error') {\n reason = errorArgs[0];\n }\n else if (errorName === 'Panic') {\n const [firstArg] = errorArgs;\n reason = panicReasons[firstArg];\n }\n else {\n const errorWithParams = abiItem\n ? formatAbiItem(abiItem, { includeName: true })\n : undefined;\n const formattedArgs = abiItem && errorArgs\n ? formatAbiItemWithArgs({\n abiItem,\n args: errorArgs,\n includeFunctionName: false,\n includeName: false,\n })\n : undefined;\n metaMessages = [\n errorWithParams ? `Error: ${errorWithParams}` : '',\n formattedArgs && formattedArgs !== '()'\n ? ` ${[...Array(errorName?.length ?? 0).keys()]\n .map(() => ' ')\n .join('')}${formattedArgs}`\n : '',\n ];\n }\n }\n catch (err) {\n cause = err;\n }\n }\n else if (message)\n reason = message;\n let signature;\n if (cause instanceof AbiErrorSignatureNotFoundError) {\n signature = cause.signature;\n metaMessages = [\n `Unable to decode signature \"${signature}\" as it was not found on the provided ABI.`,\n 'Make sure you are using the correct ABI and that the error exists on it.',\n `You can look up the decoded signature here: https://openchain.xyz/signatures?query=${signature}.`,\n ];\n }\n super((reason && reason !== 'execution reverted') || signature\n ? [\n `The contract function \"${functionName}\" reverted with the following ${signature ? 'signature' : 'reason'}:`,\n reason || signature,\n ].join('\\n')\n : `The contract function \"${functionName}\" reverted.`, {\n cause,\n metaMessages,\n name: 'ContractFunctionRevertedError',\n });\n Object.defineProperty(this, \"data\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"raw\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"reason\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"signature\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.data = decodedData;\n this.raw = data;\n this.reason = reason;\n this.signature = signature;\n }\n}\nexport class ContractFunctionZeroDataError extends BaseError {\n constructor({ functionName }) {\n super(`The contract function \"${functionName}\" returned no data (\"0x\").`, {\n metaMessages: [\n 'This could be due to any of the following:',\n ` - The contract does not have the function \"${functionName}\",`,\n ' - The parameters passed to the contract function may be invalid, or',\n ' - The address is not a contract.',\n ],\n name: 'ContractFunctionZeroDataError',\n });\n }\n}\nexport class CounterfactualDeploymentFailedError extends BaseError {\n constructor({ factory }) {\n super(`Deployment for counterfactual contract call failed${factory ? ` for factory \"${factory}\".` : ''}`, {\n metaMessages: [\n 'Please ensure:',\n '- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).',\n '- The `factoryData` is a valid encoded function call for contract deployment function on the factory.',\n ],\n name: 'CounterfactualDeploymentFailedError',\n });\n }\n}\nexport class RawContractError extends BaseError {\n constructor({ data, message, }) {\n super(message || '', { name: 'RawContractError' });\n Object.defineProperty(this, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 3\n });\n Object.defineProperty(this, \"data\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.data = data;\n }\n}\n//# sourceMappingURL=contract.js.map"],"names":["CallExecutionError","BaseError","constructor","cause","account","account_","docsPath","chain","data","gas","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","value","stateOverride","parseAccount","undefined","prettyArgs","prettyPrint","from","address","formatEther","nativeCurrency","symbol","formatGwei","prettyStateOverride","super","shortMessage","metaMessages","filter","Boolean","name","Object","defineProperty","this","enumerable","configurable","writable","ContractFunctionExecutionError","abi","args","contractAddress","functionName","sender","abiItem","getAbiItem","formattedArgs","formatAbiItemWithArgs","includeFunctionName","includeName","functionWithParams","formatAbiItem","getContractAddress","function","Array","length","keys","map","join","ContractFunctionRevertedError","message","decodedData","reason","signature","decodeErrorResult","errorName","errorArgs","firstArg","panicReasons","errorWithParams","err","AbiErrorSignatureNotFoundError","raw","ContractFunctionZeroDataError","CounterfactualDeploymentFailedError","factory","RawContractError"],"mappings":"+uBAaO,MAAMA,UAA2BC,EACpC,WAAAC,CAAYC,GAASC,QAASC,EAAQC,SAAEA,EAAQC,MAAEA,EAAKC,KAAEA,EAAIC,IAAEA,EAAGC,SAAEA,EAAQC,aAAEA,EAAYC,qBAAEA,EAAoBC,MAAEA,EAAKC,GAAEA,EAAEC,MAAEA,EAAKC,cAAEA,IAChI,MAAMZ,EAAUC,EAAWY,EAAaZ,QAAYa,EACpD,IAAIC,EAAaC,EAAY,CACzBC,KAAMjB,GAASkB,QACfR,KACAC,WAAwB,IAAVA,GACV,GAAGQ,EAAYR,MAAUR,GAAOiB,gBAAgBC,QAAU,QAC9DjB,OACAC,MACAC,cAA8B,IAAbA,GAA4B,GAAGgB,EAAWhB,UAC3DC,kBAAsC,IAAjBA,GACjB,GAAGe,EAAWf,UAClBC,0BAAsD,IAAzBA,GACzB,GAAGc,EAAWd,UAClBC,UAEAG,IACAG,GAAc,KAAKQ,EAAoBX,MAE3CY,MAAMzB,EAAM0B,aAAc,CACtB1B,QACAG,WACAwB,aAAc,IACN3B,EAAM2B,aAAe,IAA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,WAAO,IAEXqB,KAAK5B,KAAOA,CAChB","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{BaseError as e}from"./base.js";class s extends e{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class o extends e{constructor({length:e,position:s}){super(`Position \`${s}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class t extends e{constructor({count:e,limit:s}){super(`Recursive read limit of \`${s}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}export{s as NegativeOffsetError,o as PositionOutOfBoundsError,t as RecursiveReadLimitExceededError};
2
+ //# sourceMappingURL=cursor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cursor.js","sources":["../../../../../../node_modules/viem/_esm/errors/cursor.js"],"sourcesContent":["import { BaseError } from './base.js';\nexport class NegativeOffsetError extends BaseError {\n constructor({ offset }) {\n super(`Offset \\`${offset}\\` cannot be negative.`, {\n name: 'NegativeOffsetError',\n });\n }\n}\nexport class PositionOutOfBoundsError extends BaseError {\n constructor({ length, position }) {\n super(`Position \\`${position}\\` is out of bounds (\\`0 < position < ${length}\\`).`, { name: 'PositionOutOfBoundsError' });\n }\n}\nexport class RecursiveReadLimitExceededError extends BaseError {\n constructor({ count, limit }) {\n super(`Recursive read limit of \\`${limit}\\` exceeded (recursive read count: \\`${count}\\`).`, { name: 'RecursiveReadLimitExceededError' });\n }\n}\n//# sourceMappingURL=cursor.js.map"],"names":["NegativeOffsetError","BaseError","constructor","offset","super","name","PositionOutOfBoundsError","length","position","RecursiveReadLimitExceededError","count","limit"],"mappings":"sCACO,MAAMA,UAA4BC,EACrC,WAAAC,EAAYC,OAAEA,IACVC,MAAM,YAAYD,0BAAgC,CAC9CE,KAAM,uBAEd,EAEG,MAAMC,UAAiCL,EAC1C,WAAAC,EAAYK,OAAEA,EAAMC,SAAEA,IAClBJ,MAAM,cAAcI,0CAAiDD,QAAc,CAAEF,KAAM,4BAC/F,EAEG,MAAMI,UAAwCR,EACjD,WAAAC,EAAYQ,MAAEA,EAAKC,MAAEA,IACjBP,MAAM,6BAA6BO,yCAA6CD,QAAa,CAAEL,KAAM,mCACzG","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{BaseError as e}from"./base.js";class s extends e{constructor({offset:e,position:s,size:t}){super(`Slice ${"start"===s?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${t}).`,{name:"SliceOffsetOutOfBoundsError"})}}class t extends e{constructor({size:e,targetSize:s,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} size (${e}) exceeds padding size (${s}).`,{name:"SizeExceedsPaddingSizeError"})}}class r extends e{constructor({size:e,targetSize:s,type:t}){super(`${t.charAt(0).toUpperCase()}${t.slice(1).toLowerCase()} is expected to be ${s} ${t} long, but is ${e} ${t} long.`,{name:"InvalidBytesLengthError"})}}export{r as InvalidBytesLengthError,t as SizeExceedsPaddingSizeError,s as SliceOffsetOutOfBoundsError};
2
+ //# sourceMappingURL=data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.js","sources":["../../../../../../node_modules/viem/_esm/errors/data.js"],"sourcesContent":["import { BaseError } from './base.js';\nexport class SliceOffsetOutOfBoundsError extends BaseError {\n constructor({ offset, position, size, }) {\n super(`Slice ${position === 'start' ? 'starting' : 'ending'} at offset \"${offset}\" is out-of-bounds (size: ${size}).`, { name: 'SliceOffsetOutOfBoundsError' });\n }\n}\nexport class SizeExceedsPaddingSizeError extends BaseError {\n constructor({ size, targetSize, type, }) {\n super(`${type.charAt(0).toUpperCase()}${type\n .slice(1)\n .toLowerCase()} size (${size}) exceeds padding size (${targetSize}).`, { name: 'SizeExceedsPaddingSizeError' });\n }\n}\nexport class InvalidBytesLengthError extends BaseError {\n constructor({ size, targetSize, type, }) {\n super(`${type.charAt(0).toUpperCase()}${type\n .slice(1)\n .toLowerCase()} is expected to be ${targetSize} ${type} long, but is ${size} ${type} long.`, { name: 'InvalidBytesLengthError' });\n }\n}\n//# sourceMappingURL=data.js.map"],"names":["SliceOffsetOutOfBoundsError","BaseError","constructor","offset","position","size","super","name","SizeExceedsPaddingSizeError","targetSize","type","charAt","toUpperCase","slice","toLowerCase","InvalidBytesLengthError"],"mappings":"sCACO,MAAMA,UAAoCC,EAC7C,WAAAC,EAAYC,OAAEA,EAAMC,SAAEA,EAAQC,KAAEA,IAC5BC,MAAM,SAAsB,UAAbF,EAAuB,WAAa,uBAAuBD,8BAAmCE,MAAU,CAAEE,KAAM,+BACnI,EAEG,MAAMC,UAAoCP,EAC7C,WAAAC,EAAYG,KAAEA,EAAII,WAAEA,EAAUC,KAAEA,IAC5BJ,MAAM,GAAGI,EAAKC,OAAO,GAAGC,gBAAgBF,EACnCG,MAAM,GACNC,uBAAuBT,4BAA+BI,MAAgB,CAAEF,KAAM,+BACvF,EAEG,MAAMQ,UAAgCd,EACzC,WAAAC,EAAYG,KAAEA,EAAII,WAAEA,EAAUC,KAAEA,IAC5BJ,MAAM,GAAGI,EAAKC,OAAO,GAAGC,gBAAgBF,EACnCG,MAAM,GACNC,mCAAmCL,KAAcC,kBAAqBL,KAAQK,UAAc,CAAEH,KAAM,2BAC7G","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{BaseError as t}from"./base.js";class o extends t{constructor({address:t}){super(`No EIP-712 domain found on contract "${t}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${t}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}export{o as Eip712DomainNotFoundError};
2
+ //# sourceMappingURL=eip712.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eip712.js","sources":["../../../../../../node_modules/viem/_esm/errors/eip712.js"],"sourcesContent":["import { BaseError } from './base.js';\nexport class Eip712DomainNotFoundError extends BaseError {\n constructor({ address }) {\n super(`No EIP-712 domain found on contract \"${address}\".`, {\n metaMessages: [\n 'Ensure that:',\n `- The contract is deployed at the address \"${address}\".`,\n '- `eip712Domain()` function exists on the contract.',\n '- `eip712Domain()` function matches signature to ERC-5267 specification.',\n ],\n name: 'Eip712DomainNotFoundError',\n });\n }\n}\n//# sourceMappingURL=eip712.js.map"],"names":["Eip712DomainNotFoundError","BaseError","constructor","address","super","metaMessages","name"],"mappings":"sCACO,MAAMA,UAAkCC,EAC3C,WAAAC,EAAYC,QAAEA,IACVC,MAAM,wCAAwCD,MAAa,CACvDE,aAAc,CACV,eACA,8CAA8CF,MAC9C,sDACA,4EAEJG,KAAM,6BAEd","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{BaseError as e}from"./base.js";class s extends e{constructor({max:e,min:s,signed:n,size:r,value:a}){super(`Number "${a}" is not in safe ${r?`${8*r}-bit ${n?"signed":"unsigned"} `:""}integer range ${e?`(${s} to ${e})`:`(above ${s})`}`,{name:"IntegerOutOfRangeError"})}}class n extends e{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class r extends e{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class a extends e{constructor({givenSize:e,maxSize:s}){super(`Size cannot exceed ${s} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}export{s as IntegerOutOfRangeError,n as InvalidBytesBooleanError,r as InvalidHexBooleanError,a as SizeOverflowError};
2
+ //# sourceMappingURL=encoding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encoding.js","sources":["../../../../../../node_modules/viem/_esm/errors/encoding.js"],"sourcesContent":["import { BaseError } from './base.js';\nexport class IntegerOutOfRangeError extends BaseError {\n constructor({ max, min, signed, size, value, }) {\n super(`Number \"${value}\" is not in safe ${size ? `${size * 8}-bit ${signed ? 'signed' : 'unsigned'} ` : ''}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: 'IntegerOutOfRangeError' });\n }\n}\nexport class InvalidBytesBooleanError extends BaseError {\n constructor(bytes) {\n super(`Bytes value \"${bytes}\" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`, {\n name: 'InvalidBytesBooleanError',\n });\n }\n}\nexport class InvalidHexBooleanError extends BaseError {\n constructor(hex) {\n super(`Hex value \"${hex}\" is not a valid boolean. The hex value must be \"0x0\" (false) or \"0x1\" (true).`, { name: 'InvalidHexBooleanError' });\n }\n}\nexport class InvalidHexValueError extends BaseError {\n constructor(value) {\n super(`Hex value \"${value}\" is an odd length (${value.length}). It must be an even length.`, { name: 'InvalidHexValueError' });\n }\n}\nexport class SizeOverflowError extends BaseError {\n constructor({ givenSize, maxSize }) {\n super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes.`, { name: 'SizeOverflowError' });\n }\n}\n//# sourceMappingURL=encoding.js.map"],"names":["IntegerOutOfRangeError","BaseError","constructor","max","min","signed","size","value","super","name","InvalidBytesBooleanError","bytes","InvalidHexBooleanError","hex","SizeOverflowError","givenSize","maxSize"],"mappings":"sCACO,MAAMA,UAA+BC,EACxC,WAAAC,EAAYC,IAAEA,EAAGC,IAAEA,EAAGC,OAAEA,EAAMC,KAAEA,EAAIC,MAAEA,IAClCC,MAAM,WAAWD,qBAAyBD,EAAO,GAAU,EAAPA,SAAgBD,EAAS,SAAW,cAAgB,mBAAmBF,EAAM,IAAIC,QAAUD,KAAS,UAAUC,OAAU,CAAEK,KAAM,0BACxL,EAEG,MAAMC,UAAiCT,EAC1C,WAAAC,CAAYS,GACRH,MAAM,gBAAgBG,kGAAuG,CACzHF,KAAM,4BAEd,EAEG,MAAMG,UAA+BX,EACxC,WAAAC,CAAYW,GACRL,MAAM,cAAcK,kFAAqF,CAAEJ,KAAM,0BACrH,EAOG,MAAMK,UAA0Bb,EACnC,WAAAC,EAAYa,UAAEA,EAASC,QAAEA,IACrBR,MAAM,sBAAsBQ,wBAA8BD,WAAoB,CAAEN,KAAM,qBAC1F","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{BaseError as a}from"./base.js";class e extends a{constructor({data:a}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(a)}`],name:"EnsAvatarInvalidMetadataError"})}}class r extends a{constructor({reason:a}){super(`ENS NFT avatar URI is invalid. ${a}`,{name:"EnsAvatarInvalidNftUriError"})}}class t extends a{constructor({uri:a}){super(`Unable to resolve ENS avatar URI "${a}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class s extends a{constructor({namespace:a}){super(`ENS NFT avatar namespace "${a}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}export{e as EnsAvatarInvalidMetadataError,r as EnsAvatarInvalidNftUriError,s as EnsAvatarUnsupportedNamespaceError,t as EnsAvatarUriResolutionError};
2
+ //# sourceMappingURL=ens.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ens.js","sources":["../../../../../../node_modules/viem/_esm/errors/ens.js"],"sourcesContent":["import { BaseError } from './base.js';\nexport class EnsAvatarInvalidMetadataError extends BaseError {\n constructor({ data }) {\n super('Unable to extract image from metadata. The metadata may be malformed or invalid.', {\n metaMessages: [\n '- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.',\n '',\n `Provided data: ${JSON.stringify(data)}`,\n ],\n name: 'EnsAvatarInvalidMetadataError',\n });\n }\n}\nexport class EnsAvatarInvalidNftUriError extends BaseError {\n constructor({ reason }) {\n super(`ENS NFT avatar URI is invalid. ${reason}`, {\n name: 'EnsAvatarInvalidNftUriError',\n });\n }\n}\nexport class EnsAvatarUriResolutionError extends BaseError {\n constructor({ uri }) {\n super(`Unable to resolve ENS avatar URI \"${uri}\". The URI may be malformed, invalid, or does not respond with a valid image.`, { name: 'EnsAvatarUriResolutionError' });\n }\n}\nexport class EnsAvatarUnsupportedNamespaceError extends BaseError {\n constructor({ namespace }) {\n super(`ENS NFT avatar namespace \"${namespace}\" is not supported. Must be \"erc721\" or \"erc1155\".`, { name: 'EnsAvatarUnsupportedNamespaceError' });\n }\n}\nexport class EnsInvalidChainIdError extends BaseError {\n constructor({ chainId }) {\n super(`Invalid ENSIP-11 chainId: ${chainId}. Must be between 0 and 0x7fffffff, or 1.`, {\n name: 'EnsInvalidChainIdError',\n });\n }\n}\n//# sourceMappingURL=ens.js.map"],"names":["EnsAvatarInvalidMetadataError","BaseError","constructor","data","super","metaMessages","JSON","stringify","name","EnsAvatarInvalidNftUriError","reason","EnsAvatarUriResolutionError","uri","EnsAvatarUnsupportedNamespaceError","namespace"],"mappings":"sCACO,MAAMA,UAAsCC,EAC/C,WAAAC,EAAYC,KAAEA,IACVC,MAAM,mFAAoF,CACtFC,aAAc,CACV,mGACA,GACA,kBAAkBC,KAAKC,UAAUJ,MAErCK,KAAM,iCAEd,EAEG,MAAMC,UAAoCR,EAC7C,WAAAC,EAAYQ,OAAEA,IACVN,MAAM,kCAAkCM,IAAU,CAC9CF,KAAM,+BAEd,EAEG,MAAMG,UAAoCV,EAC7C,WAAAC,EAAYU,IAAEA,IACVR,MAAM,qCAAqCQ,iFAAoF,CAAEJ,KAAM,+BAC3I,EAEG,MAAMK,UAA2CZ,EACpD,WAAAC,EAAYY,UAAEA,IACVV,MAAM,6BAA6BU,sDAA+D,CAAEN,KAAM,sCAC9G","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{formatEther as e}from"../utils/unit/formatEther.js";import{formatGwei as a}from"../utils/unit/formatGwei.js";import{BaseError as s}from"./base.js";import{prettyPrint as t}from"./transaction.js";class r extends s{constructor(s,{account:r,docsPath:o,chain:i,data:m,gas:n,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:d,nonce:g,to:l,value:P}){const f=t({from:r?.address,to:l,value:void 0!==P&&`${e(P)} ${i?.nativeCurrency?.symbol||"ETH"}`,data:m,gas:n,gasPrice:void 0!==c&&`${a(c)} gwei`,maxFeePerGas:void 0!==u&&`${a(u)} gwei`,maxPriorityFeePerGas:void 0!==d&&`${a(d)} gwei`,nonce:g});super(s.shortMessage,{cause:s,docsPath:o,metaMessages:[...s.metaMessages?[...s.metaMessages," "]:[],"Estimate Gas Arguments:",f].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=s}}export{r as EstimateGasExecutionError};
2
+ //# sourceMappingURL=estimateGas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"estimateGas.js","sources":["../../../../../../node_modules/viem/_esm/errors/estimateGas.js"],"sourcesContent":["import { formatEther } from '../utils/unit/formatEther.js';\nimport { formatGwei } from '../utils/unit/formatGwei.js';\nimport { BaseError } from './base.js';\nimport { prettyPrint } from './transaction.js';\nexport class EstimateGasExecutionError extends BaseError {\n constructor(cause, { account, docsPath, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, }) {\n const prettyArgs = prettyPrint({\n from: account?.address,\n to,\n value: typeof value !== 'undefined' &&\n `${formatEther(value)} ${chain?.nativeCurrency?.symbol || 'ETH'}`,\n data,\n gas,\n gasPrice: typeof gasPrice !== 'undefined' && `${formatGwei(gasPrice)} gwei`,\n maxFeePerGas: typeof maxFeePerGas !== 'undefined' &&\n `${formatGwei(maxFeePerGas)} gwei`,\n maxPriorityFeePerGas: typeof maxPriorityFeePerGas !== 'undefined' &&\n `${formatGwei(maxPriorityFeePerGas)} gwei`,\n nonce,\n });\n super(cause.shortMessage, {\n cause,\n docsPath,\n metaMessages: [\n ...(cause.metaMessages ? [...cause.metaMessages, ' '] : []),\n 'Estimate Gas Arguments:',\n prettyArgs,\n ].filter(Boolean),\n name: 'EstimateGasExecutionError',\n });\n Object.defineProperty(this, \"cause\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.cause = cause;\n }\n}\n//# sourceMappingURL=estimateGas.js.map"],"names":["EstimateGasExecutionError","BaseError","constructor","cause","account","docsPath","chain","data","gas","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","value","prettyArgs","prettyPrint","from","address","formatEther","nativeCurrency","symbol","formatGwei","super","shortMessage","metaMessages","filter","Boolean","name","Object","defineProperty","this","enumerable","configurable","writable"],"mappings":"yMAIO,MAAMA,UAAkCC,EAC3C,WAAAC,CAAYC,GAAOC,QAAEA,EAAOC,SAAEA,EAAQC,MAAEA,EAAKC,KAAEA,EAAIC,IAAEA,EAAGC,SAAEA,EAAQC,aAAEA,EAAYC,qBAAEA,EAAoBC,MAAEA,EAAKC,GAAEA,EAAEC,MAAEA,IAC/G,MAAMC,EAAaC,EAAY,CAC3BC,KAAMb,GAASc,QACfL,KACAC,WAAwB,IAAVA,GACV,GAAGK,EAAYL,MAAUR,GAAOc,gBAAgBC,QAAU,QAC9Dd,OACAC,MACAC,cAA8B,IAAbA,GAA4B,GAAGa,EAAWb,UAC3DC,kBAAsC,IAAjBA,GACjB,GAAGY,EAAWZ,UAClBC,0BAAsD,IAAzBA,GACzB,GAAGW,EAAWX,UAClBC,UAEJW,MAAMpB,EAAMqB,aAAc,CACtBrB,QACAE,WACAoB,aAAc,IACNtB,EAAMsB,aAAe,IAAItB,EAAMsB,aAAc,KAAO,GACxD,0BACAV,GACFW,OAAOC,SACTC,KAAM,8BAEVC,OAAOC,eAAeC,KAAM,QAAS,CACjCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVpB,WAAO,IAEXiB,KAAK5B,MAAQA,CACjB","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{formatGwei as e}from"../utils/unit/formatGwei.js";import{BaseError as r}from"./base.js";class s extends r{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class t extends r{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class o extends r{constructor({maxPriorityFeePerGas:r}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${e(r)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}export{s as BaseFeeScalarError,t as Eip1559FeesNotSupportedError,o as MaxFeePerGasTooLowError};
2
+ //# sourceMappingURL=fee.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fee.js","sources":["../../../../../../node_modules/viem/_esm/errors/fee.js"],"sourcesContent":["import { formatGwei } from '../utils/unit/formatGwei.js';\nimport { BaseError } from './base.js';\nexport class BaseFeeScalarError extends BaseError {\n constructor() {\n super('`baseFeeMultiplier` must be greater than 1.', {\n name: 'BaseFeeScalarError',\n });\n }\n}\nexport class Eip1559FeesNotSupportedError extends BaseError {\n constructor() {\n super('Chain does not support EIP-1559 fees.', {\n name: 'Eip1559FeesNotSupportedError',\n });\n }\n}\nexport class MaxFeePerGasTooLowError extends BaseError {\n constructor({ maxPriorityFeePerGas }) {\n super(`\\`maxFeePerGas\\` cannot be less than the \\`maxPriorityFeePerGas\\` (${formatGwei(maxPriorityFeePerGas)} gwei).`, { name: 'MaxFeePerGasTooLowError' });\n }\n}\n//# sourceMappingURL=fee.js.map"],"names":["BaseFeeScalarError","BaseError","constructor","super","name","Eip1559FeesNotSupportedError","MaxFeePerGasTooLowError","maxPriorityFeePerGas","formatGwei"],"mappings":"+FAEO,MAAMA,UAA2BC,EACpC,WAAAC,GACIC,MAAM,8CAA+C,CACjDC,KAAM,sBAEd,EAEG,MAAMC,UAAqCJ,EAC9C,WAAAC,GACIC,MAAM,wCAAyC,CAC3CC,KAAM,gCAEd,EAEG,MAAME,UAAgCL,EACzC,WAAAC,EAAYK,qBAAEA,IACVJ,MAAM,sEAAsEK,EAAWD,YAAgC,CAAEH,KAAM,2BACnI","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{BaseError as r}from"./base.js";class e extends r{constructor(r){super(`Filter type "${r}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}export{e as FilterTypeNotSupportedError};
2
+ //# sourceMappingURL=log.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"log.js","sources":["../../../../../../node_modules/viem/_esm/errors/log.js"],"sourcesContent":["import { BaseError } from './base.js';\nexport class FilterTypeNotSupportedError extends BaseError {\n constructor(type) {\n super(`Filter type \"${type}\" is not supported.`, {\n name: 'FilterTypeNotSupportedError',\n });\n }\n}\n//# sourceMappingURL=log.js.map"],"names":["FilterTypeNotSupportedError","BaseError","constructor","type","super","name"],"mappings":"sCACO,MAAMA,UAAoCC,EAC7C,WAAAC,CAAYC,GACRC,MAAM,gBAAgBD,uBAA2B,CAC7CE,KAAM,+BAEd","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{formatGwei as e}from"../utils/unit/formatGwei.js";import{BaseError as a}from"./base.js";class r extends a{constructor({cause:e,message:a}={}){const r=a?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(r,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(r,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class o extends a{constructor({cause:a,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${e(r)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:a,name:"FeeCapTooHighError"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class n extends a{constructor({cause:a,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${e(r)}`:""} gwei) cannot be lower than the block base fee.`,{cause:a,name:"FeeCapTooLowError"})}}Object.defineProperty(n,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class t extends a{constructor({cause:e,nonce:a}={}){super(`Nonce provided for the transaction ${a?`(${a}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(t,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class s extends a{constructor({cause:e,nonce:a}={}){super([`Nonce provided for the transaction ${a?`(${a}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join("\n"),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(s,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class c extends a{constructor({cause:e,nonce:a}={}){super(`Nonce provided for the transaction ${a?`(${a}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class i extends a{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join("\n"),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(i,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class u extends a{constructor({cause:e,gas:a}={}){super(`The amount of gas ${a?`(${a}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class l extends a{constructor({cause:e,gas:a}={}){super(`The amount of gas ${a?`(${a}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class d extends a{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class h extends a{constructor({cause:a,maxPriorityFeePerGas:r,maxFeePerGas:o}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${r?` = ${e(r)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${o?` = ${e(o)} gwei`:""}).`].join("\n"),{cause:a,name:"TipAboveFeeCapError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class f extends a{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}export{r as ExecutionRevertedError,o as FeeCapTooHighError,n as FeeCapTooLowError,i as InsufficientFundsError,u as IntrinsicGasTooHighError,l as IntrinsicGasTooLowError,c as NonceMaxValueError,t as NonceTooHighError,s as NonceTooLowError,h as TipAboveFeeCapError,d as TransactionTypeNotSupportedError,f as UnknownNodeError};
2
+ //# sourceMappingURL=node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.js","sources":["../../../../../../node_modules/viem/_esm/errors/node.js"],"sourcesContent":["import { formatGwei } from '../utils/unit/formatGwei.js';\nimport { BaseError } from './base.js';\nexport class ExecutionRevertedError extends BaseError {\n constructor({ cause, message, } = {}) {\n const reason = message\n ?.replace('execution reverted: ', '')\n ?.replace('execution reverted', '');\n super(`Execution reverted ${reason ? `with reason: ${reason}` : 'for an unknown reason'}.`, {\n cause,\n name: 'ExecutionRevertedError',\n });\n }\n}\nObject.defineProperty(ExecutionRevertedError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 3\n});\nObject.defineProperty(ExecutionRevertedError, \"nodeMessage\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /execution reverted/\n});\nexport class FeeCapTooHighError extends BaseError {\n constructor({ cause, maxFeePerGas, } = {}) {\n super(`The fee cap (\\`maxFeePerGas\\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ''}) cannot be higher than the maximum allowed value (2^256-1).`, {\n cause,\n name: 'FeeCapTooHighError',\n });\n }\n}\nObject.defineProperty(FeeCapTooHighError, \"nodeMessage\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /max fee per gas higher than 2\\^256-1|fee cap higher than 2\\^256-1/\n});\nexport class FeeCapTooLowError extends BaseError {\n constructor({ cause, maxFeePerGas, } = {}) {\n super(`The fee cap (\\`maxFeePerGas\\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)}` : ''} gwei) cannot be lower than the block base fee.`, {\n cause,\n name: 'FeeCapTooLowError',\n });\n }\n}\nObject.defineProperty(FeeCapTooLowError, \"nodeMessage\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/\n});\nexport class NonceTooHighError extends BaseError {\n constructor({ cause, nonce, } = {}) {\n super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}is higher than the next one expected.`, { cause, name: 'NonceTooHighError' });\n }\n}\nObject.defineProperty(NonceTooHighError, \"nodeMessage\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /nonce too high/\n});\nexport class NonceTooLowError extends BaseError {\n constructor({ cause, nonce, } = {}) {\n super([\n `Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}is lower than the current nonce of the account.`,\n 'Try increasing the nonce or find the latest nonce with `getTransactionCount`.',\n ].join('\\n'), { cause, name: 'NonceTooLowError' });\n }\n}\nObject.defineProperty(NonceTooLowError, \"nodeMessage\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /nonce too low|transaction already imported|already known/\n});\nexport class NonceMaxValueError extends BaseError {\n constructor({ cause, nonce, } = {}) {\n super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ''}exceeds the maximum allowed nonce.`, { cause, name: 'NonceMaxValueError' });\n }\n}\nObject.defineProperty(NonceMaxValueError, \"nodeMessage\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /nonce has max value/\n});\nexport class InsufficientFundsError extends BaseError {\n constructor({ cause } = {}) {\n super([\n 'The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.',\n ].join('\\n'), {\n cause,\n metaMessages: [\n 'This error could arise when the account does not have enough funds to:',\n ' - pay for the total gas fee,',\n ' - pay for the value to send.',\n ' ',\n 'The cost of the transaction is calculated as `gas * gas fee + value`, where:',\n ' - `gas` is the amount of gas needed for transaction to execute,',\n ' - `gas fee` is the gas fee,',\n ' - `value` is the amount of ether to send to the recipient.',\n ],\n name: 'InsufficientFundsError',\n });\n }\n}\nObject.defineProperty(InsufficientFundsError, \"nodeMessage\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /insufficient funds|exceeds transaction sender account balance/\n});\nexport class IntrinsicGasTooHighError extends BaseError {\n constructor({ cause, gas, } = {}) {\n super(`The amount of gas ${gas ? `(${gas}) ` : ''}provided for the transaction exceeds the limit allowed for the block.`, {\n cause,\n name: 'IntrinsicGasTooHighError',\n });\n }\n}\nObject.defineProperty(IntrinsicGasTooHighError, \"nodeMessage\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /intrinsic gas too high|gas limit reached/\n});\nexport class IntrinsicGasTooLowError extends BaseError {\n constructor({ cause, gas, } = {}) {\n super(`The amount of gas ${gas ? `(${gas}) ` : ''}provided for the transaction is too low.`, {\n cause,\n name: 'IntrinsicGasTooLowError',\n });\n }\n}\nObject.defineProperty(IntrinsicGasTooLowError, \"nodeMessage\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /intrinsic gas too low/\n});\nexport class TransactionTypeNotSupportedError extends BaseError {\n constructor({ cause }) {\n super('The transaction type is not supported for this chain.', {\n cause,\n name: 'TransactionTypeNotSupportedError',\n });\n }\n}\nObject.defineProperty(TransactionTypeNotSupportedError, \"nodeMessage\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /transaction type not valid/\n});\nexport class TipAboveFeeCapError extends BaseError {\n constructor({ cause, maxPriorityFeePerGas, maxFeePerGas, } = {}) {\n super([\n `The provided tip (\\`maxPriorityFeePerGas\\`${maxPriorityFeePerGas\n ? ` = ${formatGwei(maxPriorityFeePerGas)} gwei`\n : ''}) cannot be higher than the fee cap (\\`maxFeePerGas\\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ''}).`,\n ].join('\\n'), {\n cause,\n name: 'TipAboveFeeCapError',\n });\n }\n}\nObject.defineProperty(TipAboveFeeCapError, \"nodeMessage\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/\n});\nexport class UnknownNodeError extends BaseError {\n constructor({ cause }) {\n super(`An error occurred while executing: ${cause?.shortMessage}`, {\n cause,\n name: 'UnknownNodeError',\n });\n }\n}\n//# sourceMappingURL=node.js.map"],"names":["ExecutionRevertedError","BaseError","constructor","cause","message","reason","replace","super","name","Object","defineProperty","enumerable","configurable","writable","value","FeeCapTooHighError","maxFeePerGas","formatGwei","FeeCapTooLowError","NonceTooHighError","nonce","NonceTooLowError","join","NonceMaxValueError","InsufficientFundsError","metaMessages","IntrinsicGasTooHighError","gas","IntrinsicGasTooLowError","TransactionTypeNotSupportedError","TipAboveFeeCapError","maxPriorityFeePerGas","UnknownNodeError","shortMessage"],"mappings":"+FAEO,MAAMA,UAA+BC,EACxC,WAAAC,EAAYC,MAAEA,EAAKC,QAAEA,GAAa,CAAA,GAC9B,MAAMC,EAASD,GACTE,QAAQ,uBAAwB,KAChCA,QAAQ,qBAAsB,IACpCC,MAAM,sBAAsBF,EAAS,gBAAgBA,IAAW,2BAA4B,CACxFF,QACAK,KAAM,0BAEd,EAEJC,OAAOC,eAAeV,EAAwB,OAAQ,CAClDW,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,MAAO,IAEXL,OAAOC,eAAeV,EAAwB,cAAe,CACzDW,YAAY,EACZC,c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AO,CACVnB,QACAK,KAAM,uBAEd,EAEJC,OAAOC,eAAeoB,EAAqB,cAAe,CACtDnB,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,MAAO,iFAEJ,MAAMkB,UAAyB/B,EAClC,WAAAC,EAAYC,MAAEA,IACVI,MAAM,sCAAsCJ,GAAO8B,eAAgB,CAC/D9B,QACAK,KAAM,oBAEd","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{stringify as e}from"../utils/stringify.js";import{BaseError as t}from"./base.js";import{getUrl as r}from"./utils.js";class s extends t{constructor({body:t,cause:s,details:a,headers:o,status:i,url:u}){super("HTTP request failed.",{cause:s,details:a,metaMessages:[i&&`Status: ${i}`,`URL: ${r(u)}`,t&&`Request body: ${e(t)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=t,this.headers=o,this.status=i,this.url=u}}class a extends t{constructor({body:t,error:s,url:a}){super("RPC Request failed.",{cause:s,details:s.message,metaMessages:[`URL: ${r(a)}`,`Request body: ${e(t)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=s.code,this.data=s.data}}class o extends t{constructor({body:t,url:s}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${r(s)}`,`Request body: ${e(t)}`],name:"TimeoutError"})}}export{s as HttpRequestError,a as RpcRequestError,o as TimeoutError};
2
+ //# sourceMappingURL=request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.js","sources":["../../../../../../node_modules/viem/_esm/errors/request.js"],"sourcesContent":["import { stringify } from '../utils/stringify.js';\nimport { BaseError } from './base.js';\nimport { getUrl } from './utils.js';\nexport class HttpRequestError extends BaseError {\n constructor({ body, cause, details, headers, status, url, }) {\n super('HTTP request failed.', {\n cause,\n details,\n metaMessages: [\n status && `Status: ${status}`,\n `URL: ${getUrl(url)}`,\n body && `Request body: ${stringify(body)}`,\n ].filter(Boolean),\n name: 'HttpRequestError',\n });\n Object.defineProperty(this, \"body\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"headers\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"status\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"url\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.body = body;\n this.headers = headers;\n this.status = status;\n this.url = url;\n }\n}\nexport class WebSocketRequestError extends BaseError {\n constructor({ body, cause, details, url, }) {\n super('WebSocket request failed.', {\n cause,\n details,\n metaMessages: [\n `URL: ${getUrl(url)}`,\n body && `Request body: ${stringify(body)}`,\n ].filter(Boolean),\n name: 'WebSocketRequestError',\n });\n }\n}\nexport class RpcRequestError extends BaseError {\n constructor({ body, error, url, }) {\n super('RPC Request failed.', {\n cause: error,\n details: error.message,\n metaMessages: [`URL: ${getUrl(url)}`, `Request body: ${stringify(body)}`],\n name: 'RpcRequestError',\n });\n Object.defineProperty(this, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"data\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.code = error.code;\n this.data = error.data;\n }\n}\nexport class SocketClosedError extends BaseError {\n constructor({ url, } = {}) {\n super('The socket has been closed.', {\n metaMessages: [url && `URL: ${getUrl(url)}`].filter(Boolean),\n name: 'SocketClosedError',\n });\n }\n}\nexport class TimeoutError extends BaseError {\n constructor({ body, url, }) {\n super('The request took too long to respond.', {\n details: 'The request timed out.',\n metaMessages: [`URL: ${getUrl(url)}`, `Request body: ${stringify(body)}`],\n name: 'TimeoutError',\n });\n }\n}\n//# sourceMappingURL=request.js.map"],"names":["HttpRequestError","BaseError","constructor","body","cause","details","headers","status","url","super","metaMessages","getUrl","stringify","filter","Boolean","name","Object","defineProperty","this","enumerable","configurable","writable","value","RpcRequestError","error","message","code","data","TimeoutError"],"mappings":"4HAGO,MAAMA,UAAyBC,EAClC,WAAAC,EAAYC,KAAEA,EAAIC,MAAEA,EAAKC,QAAEA,EAAOC,QAAEA,EAAOC,OAAEA,EAAMC,IAAEA,IACjDC,MAAM,uBAAwB,CAC1BL,QACAC,UACAK,aAAc,CACVH,GAAU,WAAWA,IACrB,QAAQI,EAAOH,KACfL,GAAQ,iBAAiBS,EAAUT,MACrCU,OAAOC,SACTC,KAAM,qBAEVC,OAAOC,eAAeC,KAAM,OAAQ,CAChCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,WAAO,IAEXN,OAAOC,eAAeC,KAAM,UAAW,CACnCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,WAAO,IAEXN,OAAOC,eAAeC,KAAM,SAAU,CAClCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,WAAO,IAEXN,OAAOC,eAAeC,KAAM,MAAO,CAC/BC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,WAAO,IAEXJ,KAAKf,KAAOA,EACZe,KAAKZ,QAAUA,EACfY,KAAKX,OAASA,EACdW,KAAKV,IAAMA,CACf,EAeG,MAAMe,UAAwBtB,EACjC,WAAAC,EAAYC,KAAEA,EAAIqB,MAAEA,EAAKhB,IAAEA,IACvBC,MAAM,sBAAuB,CACzBL,MAAOoB,EACPnB,QAASmB,EAAMC,QACff,aAAc,CAAC,QAAQC,EAAOH,KAAQ,iBAAiBI,EAAUT,MACjEY,KAAM,oBAEVC,OAAOC,eAAeC,KAAM,OAAQ,CAChCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,WAAO,IAEXN,OAAOC,eAAeC,KAAM,OAAQ,CAChCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,WAAO,IAEXJ,KAAKQ,KAAOF,EAAME,KAClBR,KAAKS,KAAOH,EAAMG,IACtB,EAUG,MAAMC,UAAqB3B,EAC9B,WAAAC,EAAYC,KAAEA,EAAIK,IAAEA,IAChBC,MAAM,wCAAyC,CAC3CJ,QAAS,yBACTK,aAAc,CAAC,QAAQC,EAAOH,KAAQ,iBAAiBI,EAAUT,MACjEY,KAAM,gBAEd","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{BaseError as e}from"./base.js";import{RpcRequestError as r}from"./request.js";class o extends e{constructor(e,{code:o,docsPath:t,metaMessages:s,name:a,shortMessage:c}){super(c,{cause:e,docsPath:t,metaMessages:s||e?.metaMessages,name:a||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=a||e.name,this.code=e instanceof r?e.code:o??-1}}class t extends o{constructor(e,r){super(e,r),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=r.data}}class s extends o{constructor(e){super(e,{code:s.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(s,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class a extends o{constructor(e){super(e,{code:a.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(a,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class c extends o{constructor(e,{method:r}={}){super(e,{code:c.code,name:"MethodNotFoundRpcError",shortMessage:`The method${r?` "${r}"`:""} does not exist / is not available.`})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class n extends o{constructor(e){super(e,{code:n.code,name:"InvalidParamsRpcError",shortMessage:["Invalid parameters were provided to the RPC method.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty(n,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class d extends o{constructor(e){super(e,{code:d.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class u extends o{constructor(e){super(e,{code:u.code,name:"InvalidInputRpcError",shortMessage:["Missing or invalid parameters.","Double check you have provided the correct parameters."].join("\n")})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class l extends o{constructor(e){super(e,{code:l.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class i extends o{constructor(e){super(e,{code:i.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(i,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class b extends o{constructor(e){super(e,{code:b.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class p extends o{constructor(e,{method:r}={}){super(e,{code:p.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${r?` "${r}"`:""} is not supported.`})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class h extends o{constructor(e){super(e,{code:h.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class m extends o{constructor(e){super(e,{code:m.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class f extends t{constructor(e){super(e,{code:f.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class g extends t{constructor(e){super(e,{code:g.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class v extends t{constructor(e,{method:r}={}){super(e,{code:v.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${r?` " ${r}"`:""}.`})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class w extends t{constructor(e){super(e,{code:w.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class P extends t{constructor(e){super(e,{code:P.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(P,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class j extends t{constructor(e){super(e,{code:j.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(j,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class y extends t{constructor(e){super(e,{code:y.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class M extends t{constructor(e){super(e,{code:M.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(M,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class x extends t{constructor(e){super(e,{code:x.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class O extends t{constructor(e){super(e,{code:O.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class R extends t{constructor(e){super(e,{code:R.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(R,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class E extends t{constructor(e){super(e,{code:E.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750});class T extends t{constructor(e){super(e,{code:T.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(T,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class q extends o{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}export{E as AtomicReadyWalletRejectedUpgradeError,T as AtomicityNotSupportedError,R as BundleTooLargeError,P as ChainDisconnectedError,x as DuplicateIdError,d as InternalRpcError,u as InvalidInputRpcError,n as InvalidParamsRpcError,a as InvalidRequestRpcError,m as JsonRpcVersionUnsupportedError,h as LimitExceededRpcError,c as MethodNotFoundRpcError,p as MethodNotSupportedRpcError,s as ParseRpcError,w as ProviderDisconnectedError,t as ProviderRpcError,l as ResourceNotFoundRpcError,i as ResourceUnavailableRpcError,o as RpcError,j as SwitchChainError,b as TransactionRejectedRpcError,g as UnauthorizedProviderError,O as UnknownBundleIdError,q as UnknownRpcError,M as UnsupportedChainIdError,y as UnsupportedNonOptionalCapabilityError,v as UnsupportedProviderMethodError,f as UserRejectedRequestError};
2
+ //# sourceMappingURL=rpc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rpc.js","sources":["../../../../../../node_modules/viem/_esm/errors/rpc.js"],"sourcesContent":["import { BaseError } from './base.js';\nimport { RpcRequestError } from './request.js';\nconst unknownErrorCode = -1;\nexport class RpcError extends BaseError {\n constructor(cause, { code, docsPath, metaMessages, name, shortMessage, }) {\n super(shortMessage, {\n cause,\n docsPath,\n metaMessages: metaMessages || cause?.metaMessages,\n name: name || 'RpcError',\n });\n Object.defineProperty(this, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.name = name || cause.name;\n this.code = (cause instanceof RpcRequestError ? cause.code : (code ?? unknownErrorCode));\n }\n}\nexport class ProviderRpcError extends RpcError {\n constructor(cause, options) {\n super(cause, options);\n Object.defineProperty(this, \"data\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.data = options.data;\n }\n}\nexport class ParseRpcError extends RpcError {\n constructor(cause) {\n super(cause, {\n code: ParseRpcError.code,\n name: 'ParseRpcError',\n shortMessage: 'Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.',\n });\n }\n}\nObject.defineProperty(ParseRpcError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32700\n});\nexport class InvalidRequestRpcError extends RpcError {\n constructor(cause) {\n super(cause, {\n code: InvalidRequestRpcError.code,\n name: 'InvalidRequestRpcError',\n shortMessage: 'JSON is not a valid request object.',\n });\n }\n}\nObject.defineProperty(InvalidRequestRpcError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32600\n});\nexport class MethodNotFoundRpcError extends RpcError {\n constructor(cause, { method } = {}) {\n super(cause, {\n code: MethodNotFoundRpcError.code,\n name: 'MethodNotFoundRpcError',\n shortMessage: `The method${method ? ` \"${method}\"` : ''} does not exist / is not available.`,\n });\n }\n}\nObject.defineProperty(MethodNotFoundRpcError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32601\n});\nexport class InvalidParamsRpcError extends RpcError {\n constructor(cause) {\n super(cause, {\n code: InvalidParamsRpcError.code,\n name: 'InvalidParamsRpcError',\n shortMessage: [\n 'Invalid parameters were provided to the RPC method.',\n 'Double check you have provided the correct parameters.',\n ].join('\\n'),\n });\n }\n}\nObject.defineProperty(InvalidParamsRpcError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32602\n});\nexport class InternalRpcError extends RpcError {\n constructor(cause) {\n super(cause, {\n code: InternalRpcError.code,\n name: 'InternalRpcError',\n shortMessage: 'An internal error was received.',\n });\n }\n}\nObject.defineProperty(InternalRpcError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32603\n});\nexport class InvalidInputRpcError extends RpcError {\n constructor(cause) {\n super(cause, {\n code: InvalidInputRpcError.code,\n name: 'InvalidInputRpcError',\n shortMessage: [\n 'Missing or invalid parameters.',\n 'Double check you have provided the correct parameters.',\n ].join('\\n'),\n });\n }\n}\nObject.defineProperty(InvalidInputRpcError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32000\n});\nexport class ResourceNotFoundRpcError extends RpcError {\n constructor(cause) {\n super(cause, {\n code: ResourceNotFoundRpcError.code,\n name: 'ResourceNotFoundRpcError',\n shortMessage: 'Requested resource not found.',\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'ResourceNotFoundRpcError'\n });\n }\n}\nObject.defineProperty(ResourceNotFoundRpcError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32001\n});\nexport class ResourceUnavailableRpcError extends RpcError {\n constructor(cause) {\n super(cause, {\n code: ResourceUnavailableRpcError.code,\n name: 'ResourceUnavailableRpcError',\n shortMessage: 'Requested resource not available.',\n });\n }\n}\nObject.defineProperty(ResourceUnavailableRpcError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32002\n});\nexport class TransactionRejectedRpcError extends RpcError {\n constructor(cause) {\n super(cause, {\n code: TransactionRejectedRpcError.code,\n name: 'TransactionRejectedRpcError',\n shortMessage: 'Transaction creation failed.',\n });\n }\n}\nObject.defineProperty(TransactionRejectedRpcError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32003\n});\nexport class MethodNotSupportedRpcError extends RpcError {\n constructor(cause, { method } = {}) {\n super(cause, {\n code: MethodNotSupportedRpcError.code,\n name: 'MethodNotSupportedRpcError',\n shortMessage: `Method${method ? ` \"${method}\"` : ''} is not supported.`,\n });\n }\n}\nObject.defineProperty(MethodNotSupportedRpcError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32004\n});\nexport class LimitExceededRpcError extends RpcError {\n constructor(cause) {\n super(cause, {\n code: LimitExceededRpcError.code,\n name: 'LimitExceededRpcError',\n shortMessage: 'Request exceeds defined limit.',\n });\n }\n}\nObject.defineProperty(LimitExceededRpcError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32005\n});\nexport class JsonRpcVersionUnsupportedError extends RpcError {\n constructor(cause) {\n super(cause, {\n code: JsonRpcVersionUnsupportedError.code,\n name: 'JsonRpcVersionUnsupportedError',\n shortMessage: 'Version of JSON-RPC protocol is not supported.',\n });\n }\n}\nObject.defineProperty(JsonRpcVersionUnsupportedError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: -32006\n});\nexport class UserRejectedRequestError extends ProviderRpcError {\n constructor(cause) {\n super(cause, {\n code: UserRejectedRequestError.code,\n name: 'UserRejectedRequestError',\n shortMessage: 'User rejected the request.',\n });\n }\n}\nObject.defineProperty(UserRejectedRequestError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 4001\n});\nexport class UnauthorizedProviderError extends ProviderRpcError {\n constructor(cause) {\n super(cause, {\n code: UnauthorizedProviderError.code,\n name: 'UnauthorizedProviderError',\n shortMessage: 'The requested method and/or account has not been authorized by the user.',\n });\n }\n}\nObject.defineProperty(UnauthorizedProviderError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 4100\n});\nexport class UnsupportedProviderMethodError extends ProviderRpcError {\n constructor(cause, { method } = {}) {\n super(cause, {\n code: UnsupportedProviderMethodError.code,\n name: 'UnsupportedProviderMethodError',\n shortMessage: `The Provider does not support the requested method${method ? ` \" ${method}\"` : ''}.`,\n });\n }\n}\nObject.defineProperty(UnsupportedProviderMethodError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 4200\n});\nexport class ProviderDisconnectedError extends ProviderRpcError {\n constructor(cause) {\n super(cause, {\n code: ProviderDisconnectedError.code,\n name: 'ProviderDisconnectedError',\n shortMessage: 'The Provider is disconnected from all chains.',\n });\n }\n}\nObject.defineProperty(ProviderDisconnectedError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 4900\n});\nexport class ChainDisconnectedError extends ProviderRpcError {\n constructor(cause) {\n super(cause, {\n code: ChainDisconnectedError.code,\n name: 'ChainDisconnectedError',\n shortMessage: 'The Provider is not connected to the requested chain.',\n });\n }\n}\nObject.defineProperty(ChainDisconnectedError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 4901\n});\nexport class SwitchChainError extends ProviderRpcError {\n constructor(cause) {\n super(cause, {\n code: SwitchChainError.code,\n name: 'SwitchChainError',\n shortMessage: 'An error occurred when attempting to switch chain.',\n });\n }\n}\nObject.defineProperty(SwitchChainError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 4902\n});\nexport class UnsupportedNonOptionalCapabilityError extends ProviderRpcError {\n constructor(cause) {\n super(cause, {\n code: UnsupportedNonOptionalCapabilityError.code,\n name: 'UnsupportedNonOptionalCapabilityError',\n shortMessage: 'This Wallet does not support a capability that was not marked as optional.',\n });\n }\n}\nObject.defineProperty(UnsupportedNonOptionalCapabilityError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 5700\n});\nexport class UnsupportedChainIdError extends ProviderRpcError {\n constructor(cause) {\n super(cause, {\n code: UnsupportedChainIdError.code,\n name: 'UnsupportedChainIdError',\n shortMessage: 'This Wallet does not support the requested chain ID.',\n });\n }\n}\nObject.defineProperty(UnsupportedChainIdError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 5710\n});\nexport class DuplicateIdError extends ProviderRpcError {\n constructor(cause) {\n super(cause, {\n code: DuplicateIdError.code,\n name: 'DuplicateIdError',\n shortMessage: 'There is already a bundle submitted with this ID.',\n });\n }\n}\nObject.defineProperty(DuplicateIdError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 5720\n});\nexport class UnknownBundleIdError extends ProviderRpcError {\n constructor(cause) {\n super(cause, {\n code: UnknownBundleIdError.code,\n name: 'UnknownBundleIdError',\n shortMessage: 'This bundle id is unknown / has not been submitted',\n });\n }\n}\nObject.defineProperty(UnknownBundleIdError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 5730\n});\nexport class BundleTooLargeError extends ProviderRpcError {\n constructor(cause) {\n super(cause, {\n code: BundleTooLargeError.code,\n name: 'BundleTooLargeError',\n shortMessage: 'The call bundle is too large for the Wallet to process.',\n });\n }\n}\nObject.defineProperty(BundleTooLargeError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 5740\n});\nexport class AtomicReadyWalletRejectedUpgradeError extends ProviderRpcError {\n constructor(cause) {\n super(cause, {\n code: AtomicReadyWalletRejectedUpgradeError.code,\n name: 'AtomicReadyWalletRejectedUpgradeError',\n shortMessage: 'The Wallet can support atomicity after an upgrade, but the user rejected the upgrade.',\n });\n }\n}\nObject.defineProperty(AtomicReadyWalletRejectedUpgradeError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 5750\n});\nexport class AtomicityNotSupportedError extends ProviderRpcError {\n constructor(cause) {\n super(cause, {\n code: AtomicityNotSupportedError.code,\n name: 'AtomicityNotSupportedError',\n shortMessage: 'The wallet does not support atomic execution but the request requires it.',\n });\n }\n}\nObject.defineProperty(AtomicityNotSupportedError, \"code\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 5760\n});\nexport class UnknownRpcError extends RpcError {\n constructor(cause) {\n super(cause, {\n name: 'UnknownRpcError',\n shortMessage: 'An unknown RPC error occurred.',\n });\n }\n}\n//# sourceMappingURL=rpc.js.map"],"names":["RpcError","BaseError","constructor","cause","code","docsPath","metaMessages","name","shortMessage","super","Object","defineProperty","this","enumerable","configurable","writable","value","RpcRequestError","ProviderRpcError","options","data","ParseRpcError","InvalidRequestRpcError","MethodNotFoundRpcError","method","InvalidParamsRpcError","join","InternalRpcError","InvalidInputRpcError","ResourceNotFoundRpcError","ResourceUnavailableRpcError","TransactionRejectedRpcError","MethodNotSupportedRpcError","LimitExceededRpcError","JsonRpcVersionUnsupportedError","UserRejectedRequestError","UnauthorizedProviderError","UnsupportedProviderMethodError","ProviderDisconnectedError","ChainDisconnectedError","SwitchChainError","UnsupportedNonOptionalCapabilityError","UnsupportedChainIdError","DuplicateIdError","UnknownBundleIdError","BundleTooLargeError","AtomicReadyWalletRejectedUpgradeError","AtomicityNotSupportedError","UnknownRpcError"],"mappings":"qFAGO,MAAMA,UAAiBC,EAC1B,WAAAC,CAAYC,GAAOC,KAAEA,EAAIC,SAAEA,EAAQC,aAAEA,EAAYC,KAAEA,EAAIC,aAAEA,IACrDC,MAAMD,EAAc,CAChBL,QACAE,WACAC,aAAcA,GAAgBH,GAAOG,aACrCC,KAAMA,GAAQ,aAElBG,OAAOC,eAAeC,KAAM,OAAQ,CAChCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,WAAO,IAEXJ,KAAKL,KAAOA,GAAQJ,EAAMI,KAC1BK,KAAKR,KAAQD,aAAiBc,EAAkBd,EAAMC,KAAQA,IAhB7C,CAiBrB,EAEG,MAAMc,UAAyBlB,EAClC,WAAAE,CAAYC,EAAOgB,GACfV,MAAMN,EAAOgB,GACbT,OAAOC,eAAeC,KAAM,OAAQ,CAChCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,WAAO,IAEXJ,KAAKQ,KAAOD,EAAQC,IACxB,EAEG,MAAMC,UAAsBrB,EAC/B,WAAAE,CAAYC,GACRM,MAAMN,EAAO,CACTC,KAAMiB,EAAcjB,KACpBG,KAAM,gBACNC,aAAc,yGAEtB,EAEJE,OAAOC,eAAeU,EAAe,OAAQ,CACzCR,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,OAAO,QAEJ,MAAMM,UAA+BtB,EACxC,WAAAE,CAAYC,GACRM,MAAMN,EAAO,CACTC,KAAMkB,EAAuBlB,KAC7BG,KAAM,yBACNC,aAAc,uCAEtB,EAEJE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C,EAAsC1C,KAC5CG,KAAM,wCACNC,aAAc,yFAEtB,EAEJE,OAAOC,eAAemC,EAAuC,OAAQ,CACjEjC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,MAAO,OAEJ,MAAM+B,UAAmC7B,EAC5C,WAAAhB,CAAYC,GACRM,MAAMN,EAAO,CACTC,KAAM2C,EAA2B3C,KACjCG,KAAM,6BACNC,aAAc,6EAEtB,EAEJE,OAAOC,eAAeoC,EAA4B,OAAQ,CACtDlC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,MAAO,OAEJ,MAAMgC,UAAwBhD,EACjC,WAAAE,CAAYC,GACRM,MAAMN,EAAO,CACTI,KAAM,kBACNC,aAAc,kCAEtB","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{BaseError as e}from"./base.js";class t extends e{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class n extends e{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function s(e){return e.reduce((e,{slot:t,value:n})=>`${e} ${t}: ${n}\n`,"")}function a(e){return e.reduce((e,{address:t,...n})=>{let a=`${e} ${t}:\n`;return n.nonce&&(a+=` nonce: ${n.nonce}\n`),n.balance&&(a+=` balance: ${n.balance}\n`),n.code&&(a+=` code: ${n.code}\n`),n.state&&(a+=" state:\n",a+=s(n.state)),n.stateDiff&&(a+=" stateDiff:\n",a+=s(n.stateDiff)),a}," State Override:\n").slice(0,-1)}export{t as AccountStateConflictError,n as StateAssignmentConflictError,s as prettyStateMapping,a as prettyStateOverride};
2
+ //# sourceMappingURL=stateOverride.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stateOverride.js","sources":["../../../../../../node_modules/viem/_esm/errors/stateOverride.js"],"sourcesContent":["import { BaseError } from './base.js';\nexport class AccountStateConflictError extends BaseError {\n constructor({ address }) {\n super(`State for account \"${address}\" is set multiple times.`, {\n name: 'AccountStateConflictError',\n });\n }\n}\nexport class StateAssignmentConflictError extends BaseError {\n constructor() {\n super('state and stateDiff are set on the same account.', {\n name: 'StateAssignmentConflictError',\n });\n }\n}\n/** @internal */\nexport function prettyStateMapping(stateMapping) {\n return stateMapping.reduce((pretty, { slot, value }) => {\n return `${pretty} ${slot}: ${value}\\n`;\n }, '');\n}\nexport function prettyStateOverride(stateOverride) {\n return stateOverride\n .reduce((pretty, { address, ...state }) => {\n let val = `${pretty} ${address}:\\n`;\n if (state.nonce)\n val += ` nonce: ${state.nonce}\\n`;\n if (state.balance)\n val += ` balance: ${state.balance}\\n`;\n if (state.code)\n val += ` code: ${state.code}\\n`;\n if (state.state) {\n val += ' state:\\n';\n val += prettyStateMapping(state.state);\n }\n if (state.stateDiff) {\n val += ' stateDiff:\\n';\n val += prettyStateMapping(state.stateDiff);\n }\n return val;\n }, ' State Override:\\n')\n .slice(0, -1);\n}\n//# sourceMappingURL=stateOverride.js.map"],"names":["AccountStateConflictError","BaseError","constructor","address","super","name","StateAssignmentConflictError","prettyStateMapping","stateMapping","reduce","pretty","slot","value","prettyStateOverride","stateOverride","state","val","nonce","balance","code","stateDiff","slice"],"mappings":"sCACO,MAAMA,UAAkCC,EAC3C,WAAAC,EAAYC,QAAEA,IACVC,MAAM,sBAAsBD,4BAAmC,CAC3DE,KAAM,6BAEd,EAEG,MAAMC,UAAqCL,EAC9C,WAAAC,GACIE,MAAM,mDAAoD,CACtDC,KAAM,gCAEd,EAGG,SAASE,EAAmBC,GAC/B,OAAOA,EAAaC,OAAO,CAACC,GAAUC,OAAMC,WACjC,GAAGF,YAAiBC,MAASC,MACrC,GACP,CACO,SAASC,EAAoBC,GAChC,OAAOA,EACFL,OAAO,CAACC,GAAUP,aAAYY,MAC/B,IAAIC,EAAM,GAAGN,QAAaP,OAe1B,OAdIY,EAAME,QACND,GAAO,gBAAgBD,EAAME,WAC7BF,EAAMG,UACNF,GAAO,kBAAkBD,EAAMG,aAC/BH,EAAMI,OACNH,GAAO,eAAeD,EAAMI,UAC5BJ,EAAMA,QACNC,GAAO,iBACPA,GAAOT,EAAmBQ,EAAMA,QAEhCA,EAAMK,YACNJ,GAAO,qBACPA,GAAOT,EAAmBQ,EAAMK,YAE7BJ,GACR,uBACEK,MAAM,KACf","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{BaseError as a}from"./base.js";function e(a){const e=Object.entries(a).map(([a,e])=>void 0===e||!1===e?null:[a,e]).filter(Boolean),n=e.reduce((a,[e])=>Math.max(a,e.length),0);return e.map(([a,e])=>` ${`${a}:`.padEnd(n+1)} ${e}`).join("\n")}class n extends a{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join("\n"),{name:"FeeConflictError"})}}class o extends a{constructor({transaction:a}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",e(a),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class t extends a{constructor({blockHash:a,blockNumber:e,blockTag:n,hash:o,index:t}){let r="Transaction";n&&void 0!==t&&(r=`Transaction at block time "${n}" at index "${t}"`),a&&void 0!==t&&(r=`Transaction at block hash "${a}" at index "${t}"`),e&&void 0!==t&&(r=`Transaction at block number "${e}" at index "${t}"`),o&&(r=`Transaction with hash "${o}"`),super(`${r} could not be found.`,{name:"TransactionNotFoundError"})}}class r extends a{constructor({hash:a}){super(`Transaction receipt with hash "${a}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class s extends a{constructor({hash:a}){super(`Timed out while waiting for transaction with hash "${a}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}export{n as FeeConflictError,o as InvalidSerializableTransactionError,t as TransactionNotFoundError,r as TransactionReceiptNotFoundError,s as WaitForTransactionReceiptTimeoutError,e as prettyPrint};
2
+ //# sourceMappingURL=transaction.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.js","sources":["../../../../../../node_modules/viem/_esm/errors/transaction.js"],"sourcesContent":["import { formatEther } from '../utils/unit/formatEther.js';\nimport { formatGwei } from '../utils/unit/formatGwei.js';\nimport { BaseError } from './base.js';\nexport function prettyPrint(args) {\n const entries = Object.entries(args)\n .map(([key, value]) => {\n if (value === undefined || value === false)\n return null;\n return [key, value];\n })\n .filter(Boolean);\n const maxLength = entries.reduce((acc, [key]) => Math.max(acc, key.length), 0);\n return entries\n .map(([key, value]) => ` ${`${key}:`.padEnd(maxLength + 1)} ${value}`)\n .join('\\n');\n}\nexport class FeeConflictError extends BaseError {\n constructor() {\n super([\n 'Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.',\n 'Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.',\n ].join('\\n'), { name: 'FeeConflictError' });\n }\n}\nexport class InvalidLegacyVError extends BaseError {\n constructor({ v }) {\n super(`Invalid \\`v\\` value \"${v}\". Expected 27 or 28.`, {\n name: 'InvalidLegacyVError',\n });\n }\n}\nexport class InvalidSerializableTransactionError extends BaseError {\n constructor({ transaction }) {\n super('Cannot infer a transaction type from provided transaction.', {\n metaMessages: [\n 'Provided Transaction:',\n '{',\n prettyPrint(transaction),\n '}',\n '',\n 'To infer the type, either provide:',\n '- a `type` to the Transaction, or',\n '- an EIP-1559 Transaction with `maxFeePerGas`, or',\n '- an EIP-2930 Transaction with `gasPrice` & `accessList`, or',\n '- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or',\n '- an EIP-7702 Transaction with `authorizationList`, or',\n '- a Legacy Transaction with `gasPrice`',\n ],\n name: 'InvalidSerializableTransactionError',\n });\n }\n}\nexport class InvalidSerializedTransactionTypeError extends BaseError {\n constructor({ serializedType }) {\n super(`Serialized transaction type \"${serializedType}\" is invalid.`, {\n name: 'InvalidSerializedTransactionType',\n });\n Object.defineProperty(this, \"serializedType\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.serializedType = serializedType;\n }\n}\nexport class InvalidSerializedTransactionError extends BaseError {\n constructor({ attributes, serializedTransaction, type, }) {\n const missing = Object.entries(attributes)\n .map(([key, value]) => (typeof value === 'undefined' ? key : undefined))\n .filter(Boolean);\n super(`Invalid serialized transaction of type \"${type}\" was provided.`, {\n metaMessages: [\n `Serialized Transaction: \"${serializedTransaction}\"`,\n missing.length > 0 ? `Missing Attributes: ${missing.join(', ')}` : '',\n ].filter(Boolean),\n name: 'InvalidSerializedTransactionError',\n });\n Object.defineProperty(this, \"serializedTransaction\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n Object.defineProperty(this, \"type\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.serializedTransaction = serializedTransaction;\n this.type = type;\n }\n}\nexport class InvalidStorageKeySizeError extends BaseError {\n constructor({ storageKey }) {\n super(`Size for storage key \"${storageKey}\" is invalid. Expected 32 bytes. Got ${Math.floor((storageKey.length - 2) / 2)} bytes.`, { name: 'InvalidStorageKeySizeError' });\n }\n}\nexport class TransactionExecutionError extends BaseError {\n constructor(cause, { account, docsPath, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, }) {\n const prettyArgs = prettyPrint({\n chain: chain && `${chain?.name} (id: ${chain?.id})`,\n from: account?.address,\n to,\n value: typeof value !== 'undefined' &&\n `${formatEther(value)} ${chain?.nativeCurrency?.symbol || 'ETH'}`,\n data,\n gas,\n gasPrice: typeof gasPrice !== 'undefined' && `${formatGwei(gasPrice)} gwei`,\n maxFeePerGas: typeof maxFeePerGas !== 'undefined' &&\n `${formatGwei(maxFeePerGas)} gwei`,\n maxPriorityFeePerGas: typeof maxPriorityFeePerGas !== 'undefined' &&\n `${formatGwei(maxPriorityFeePerGas)} gwei`,\n nonce,\n });\n super(cause.shortMessage, {\n cause,\n docsPath,\n metaMessages: [\n ...(cause.metaMessages ? [...cause.metaMessages, ' '] : []),\n 'Request Arguments:',\n prettyArgs,\n ].filter(Boolean),\n name: 'TransactionExecutionError',\n });\n Object.defineProperty(this, \"cause\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: void 0\n });\n this.cause = cause;\n }\n}\nexport class TransactionNotFoundError extends BaseError {\n constructor({ blockHash, blockNumber, blockTag, hash, index, }) {\n let identifier = 'Transaction';\n if (blockTag && index !== undefined)\n identifier = `Transaction at block time \"${blockTag}\" at index \"${index}\"`;\n if (blockHash && index !== undefined)\n identifier = `Transaction at block hash \"${blockHash}\" at index \"${index}\"`;\n if (blockNumber && index !== undefined)\n identifier = `Transaction at block number \"${blockNumber}\" at index \"${index}\"`;\n if (hash)\n identifier = `Transaction with hash \"${hash}\"`;\n super(`${identifier} could not be found.`, {\n name: 'TransactionNotFoundError',\n });\n }\n}\nexport class TransactionReceiptNotFoundError extends BaseError {\n constructor({ hash }) {\n super(`Transaction receipt with hash \"${hash}\" could not be found. The Transaction may not be processed on a block yet.`, {\n name: 'TransactionReceiptNotFoundError',\n });\n }\n}\nexport class WaitForTransactionReceiptTimeoutError extends BaseError {\n constructor({ hash }) {\n super(`Timed out while waiting for transaction with hash \"${hash}\" to be confirmed.`, { name: 'WaitForTransactionReceiptTimeoutError' });\n }\n}\n//# sourceMappingURL=transaction.js.map"],"names":["prettyPrint","args","entries","Object","map","key","value","undefined","filter","Boolean","maxLength","reduce","acc","Math","max","length","padEnd","join","FeeConflictError","BaseError","constructor","super","name","InvalidSerializableTransactionError","transaction","metaMessages","TransactionNotFoundError","blockHash","blockNumber","blockTag","hash","index","identifier","TransactionReceiptNotFoundError","WaitForTransactionReceiptTimeoutError"],"mappings":"sCAGO,SAASA,EAAYC,GACx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.js";class o extends r{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}export{o as UrlRequiredError};
2
+ //# sourceMappingURL=transport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transport.js","sources":["../../../../../../node_modules/viem/_esm/errors/transport.js"],"sourcesContent":["import { BaseError } from './base.js';\nexport class UrlRequiredError extends BaseError {\n constructor() {\n super('No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.', {\n docsPath: '/docs/clients/intro',\n name: 'UrlRequiredError',\n });\n }\n}\n//# sourceMappingURL=transport.js.map"],"names":["UrlRequiredError","BaseError","constructor","super","docsPath","name"],"mappings":"sCACO,MAAMA,UAAyBC,EAClC,WAAAC,GACIC,MAAM,yFAA0F,CAC5FC,SAAU,sBACVC,KAAM,oBAEd","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{stringify as t}from"../utils/stringify.js";import{BaseError as e}from"./base.js";class s extends e{constructor({domain:e}){super(`Invalid domain "${t(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class r extends e{constructor({primaryType:t,types:e}){super(`Invalid primary type \`${t}\` must be one of \`${JSON.stringify(Object.keys(e))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class a extends e{constructor({type:t}){super(`Struct type "${t}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}export{s as InvalidDomainError,r as InvalidPrimaryTypeError,a as InvalidStructTypeError};
2
+ //# sourceMappingURL=typedData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typedData.js","sources":["../../../../../../node_modules/viem/_esm/errors/typedData.js"],"sourcesContent":["import { stringify } from '../utils/stringify.js';\nimport { BaseError } from './base.js';\nexport class InvalidDomainError extends BaseError {\n constructor({ domain }) {\n super(`Invalid domain \"${stringify(domain)}\".`, {\n metaMessages: ['Must be a valid EIP-712 domain.'],\n });\n }\n}\nexport class InvalidPrimaryTypeError extends BaseError {\n constructor({ primaryType, types, }) {\n super(`Invalid primary type \\`${primaryType}\\` must be one of \\`${JSON.stringify(Object.keys(types))}\\`.`, {\n docsPath: '/api/glossary/Errors#typeddatainvalidprimarytypeerror',\n metaMessages: ['Check that the primary type is a key in `types`.'],\n });\n }\n}\nexport class InvalidStructTypeError extends BaseError {\n constructor({ type }) {\n super(`Struct type \"${type}\" is invalid.`, {\n metaMessages: ['Struct type must not be a Solidity type.'],\n name: 'InvalidStructTypeError',\n });\n }\n}\n//# sourceMappingURL=typedData.js.map"],"names":["InvalidDomainError","BaseError","constructor","domain","super","stringify","metaMessages","InvalidPrimaryTypeError","primaryType","types","JSON","Object","keys","docsPath","InvalidStructTypeError","type","name"],"mappings":"wFAEO,MAAMA,UAA2BC,EACpC,WAAAC,EAAYC,OAAEA,IACVC,MAAM,mBAAmBC,EAAUF,OAAa,CAC5CG,aAAc,CAAC,oCAEvB,EAEG,MAAMC,UAAgCN,EACzC,WAAAC,EAAYM,YAAEA,EAAWC,MAAEA,IACvBL,MAAM,0BAA0BI,wBAAkCE,KAAKL,UAAUM,OAAOC,KAAKH,SAAc,CACvGI,SAAU,wDACVP,aAAc,CAAC,qDAEvB,EAEG,MAAMQ,UAA+Bb,EACxC,WAAAC,EAAYa,KAAEA,IACVX,MAAM,gBAAgBW,iBAAqB,CACvCT,aAAc,CAAC,4CACfU,KAAM,0BAEd","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ const o=o=>o,t=o=>o;export{o as getContractAddress,t as getUrl};
2
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sources":["../../../../../../node_modules/viem/_esm/errors/utils.js"],"sourcesContent":["export const getContractAddress = (address) => address;\nexport const getUrl = (url) => url;\n//# sourceMappingURL=utils.js.map"],"names":["getContractAddress","address","getUrl","url"],"mappings":"AAAY,MAACA,EAAsBC,GAAYA,EAClCC,EAAUC,GAAQA","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ const o="2.37.8";export{o as version};
2
+ //# sourceMappingURL=version.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.js","sources":["../../../../../../node_modules/viem/_esm/errors/version.js"],"sourcesContent":["export const version = '2.37.8';\n//# sourceMappingURL=version.js.map"],"names":["version"],"mappings":"AAAY,MAACA,EAAU","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{AbiDecodingZeroDataError as t,AbiDecodingDataSizeTooSmallError as s,InvalidAbiDecodingTypeError as o}from"../../errors/abi.js";import{checksumAddress as n}from"../address/getAddress.js";import{createCursor as e}from"../cursor.js";import{size as i}from"../data/size.js";import{sliceBytes as r}from"../data/slice.js";import{trim as c}from"../data/trim.js";import{bytesToNumber as a,bytesToBool as f,bytesToBigInt as p,bytesToString as u}from"../encoding/fromBytes.js";import{hexToBytes as m}from"../encoding/toBytes.js";import{bytesToHex as y}from"../encoding/toHex.js";import{getArrayComponents as d}from"./encodeAbiParameters.js";function P(o,n){const r="string"==typeof n?m(n):n,c=e(r);if(0===i(r)&&o.length>0)throw new t;if(i(n)&&i(n)<32)throw new s({data:"string"==typeof n?n:y(n),params:o,size:i(n)});let a=0;const f=[];for(let t=0;t<o.length;++t){const s=o[t];c.setPosition(a);const[n,e]=l(c,s,{staticPosition:0});a+=e,f.push(n)}return f}function l(t,s,{staticPosition:e}){const i=d(s.type);if(i){const[o,n]=i;return function(t,s,{length:o,staticPosition:n}){if(!o){const o=n+a(t.readBytes(g)),e=o+h;t.setPosition(o);const i=a(t.readBytes(h)),r=B(s);let c=0;const f=[];for(let o=0;o<i;++o){t.setPosition(e+(r?32*o:c));const[n,i]=l(t,s,{staticPosition:e});c+=i,f.push(n)}return t.setPosition(n+32),[f,32]}if(B(s)){const e=n+a(t.readBytes(g)),i=[];for(let n=0;n<o;++n){t.setPosition(e+32*n);const[o]=l(t,s,{staticPosition:e});i.push(o)}return t.setPosition(n+32),[i,32]}let e=0;const i=[];for(let r=0;r<o;++r){const[o,r]=l(t,s,{staticPosition:n+e});e+=r,i.push(o)}return[i,e]}(t,{...s,type:n},{length:o,staticPosition:e})}if("tuple"===s.type)return function(t,s,{staticPosition:o}){const n=0===s.components.length||s.components.some(({name:t})=>!t),e=n?[]:{};let i=0;if(B(s)){const r=o+a(t.readBytes(g));for(let o=0;o<s.components.length;++o){const c=s.components[o];t.setPosition(r+i);const[a,f]=l(t,c,{staticPosition:r});i+=f,e[n?o:c?.name]=a}return t.setPosition(o+32),[e,32]}for(let r=0;r<s.components.length;++r){const c=s.components[r],[a,f]=l(t,c,{staticPosition:o});e[n?r:c?.name]=a,i+=f}return[e,i]}(t,s,{staticPosition:e});if("address"===s.type)return function(t){const s=t.readBytes(32);return[n(y(r(s,-20))),32]}(t);if("bool"===s.type)return function(t){return[f(t.readBytes(32),{size:32}),32]}(t);if(s.type.startsWith("bytes"))return function(t,s,{staticPosition:o}){const[n,e]=s.type.split("bytes");if(!e){const s=a(t.readBytes(32));t.setPosition(o+s);const n=a(t.readBytes(32));if(0===n)return t.setPosition(o+32),["0x",32];const e=t.readBytes(n);return t.setPosition(o+32),[y(e),32]}const i=y(t.readBytes(Number.parseInt(e,10),32));return[i,32]}(t,s,{staticPosition:e});if(s.type.startsWith("uint")||s.type.startsWith("int"))return function(t,s){const o=s.type.startsWith("int"),n=Number.parseInt(s.type.split("int")[1]||"256",10),e=t.readBytes(32);return[n>48?p(e,{signed:o}):a(e,{signed:o}),32]}(t,s);if("string"===s.type)return function(t,{staticPosition:s}){const o=a(t.readBytes(32)),n=s+o;t.setPosition(n);const e=a(t.readBytes(32));if(0===e)return t.setPosition(s+32),["",32];const i=t.readBytes(e,32),r=u(c(i));return t.setPosition(s+32),[r,32]}(t,{staticPosition:e});throw new o(s.type,{docsPath:"/docs/contract/decodeAbiParameters"})}const h=32,g=32;function B(t){const{type:s}=t;if("string"===s)return!0;if("bytes"===s)return!0;if(s.endsWith("[]"))return!0;if("tuple"===s)return t.components?.some(B);const o=d(t.type);return!(!o||!B({...t,type:o[1]}))}export{P as decodeAbiParameters};
2
+ //# sourceMappingURL=decodeAbiParameters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decodeAbiParameters.js","sources":["../../../../../../../node_modules/viem/_esm/utils/abi/decodeAbiParameters.js"],"sourcesContent":["import { AbiDecodingDataSizeTooSmallError, AbiDecodingZeroDataError, InvalidAbiDecodingTypeError, } from '../../errors/abi.js';\nimport { checksumAddress, } from '../address/getAddress.js';\nimport { createCursor, } from '../cursor.js';\nimport { size } from '../data/size.js';\nimport { sliceBytes } from '../data/slice.js';\nimport { trim } from '../data/trim.js';\nimport { bytesToBigInt, bytesToBool, bytesToNumber, bytesToString, } from '../encoding/fromBytes.js';\nimport { hexToBytes } from '../encoding/toBytes.js';\nimport { bytesToHex } from '../encoding/toHex.js';\nimport { getArrayComponents } from './encodeAbiParameters.js';\nexport function decodeAbiParameters(params, data) {\n const bytes = typeof data === 'string' ? hexToBytes(data) : data;\n const cursor = createCursor(bytes);\n if (size(bytes) === 0 && params.length > 0)\n throw new AbiDecodingZeroDataError();\n if (size(data) && size(data) < 32)\n throw new AbiDecodingDataSizeTooSmallError({\n data: typeof data === 'string' ? data : bytesToHex(data),\n params: params,\n size: size(data),\n });\n let consumed = 0;\n const values = [];\n for (let i = 0; i < params.length; ++i) {\n const param = params[i];\n cursor.setPosition(consumed);\n const [data, consumed_] = decodeParameter(cursor, param, {\n staticPosition: 0,\n });\n consumed += consumed_;\n values.push(data);\n }\n return values;\n}\nfunction decodeParameter(cursor, param, { staticPosition }) {\n const arrayComponents = getArrayComponents(param.type);\n if (arrayComponents) {\n const [length, type] = arrayComponents;\n return decodeArray(cursor, { ...param, type }, { length, staticPosition });\n }\n if (param.type === 'tuple')\n return decodeTuple(cursor, param, { staticPosition });\n if (param.type === 'address')\n return decodeAddress(cursor);\n if (param.type === 'bool')\n return decodeBool(cursor);\n if (param.type.startsWith('bytes'))\n return decodeBytes(cursor, param, { staticPosition });\n if (param.type.startsWith('uint') || param.type.startsWith('int'))\n return decodeNumber(cursor, param);\n if (param.type === 'string')\n return decodeString(cursor, { staticPosition });\n throw new InvalidAbiDecodingTypeError(param.type, {\n docsPath: '/docs/contract/decodeAbiParameters',\n });\n}\n////////////////////////////////////////////////////////////////////\n// Type Decoders\nconst sizeOfLength = 32;\nconst sizeOfOffset = 32;\nfunction decodeAddress(cursor) {\n const value = cursor.readBytes(32);\n return [checksumAddress(bytesToHex(sliceBytes(value, -20))), 32];\n}\nfunction decodeArray(cursor, param, { length, staticPosition }) {\n // If the length of the array is not known in advance (dynamic array),\n // this means we will need to wonder off to the pointer and decode.\n if (!length) {\n // Dealing with a dynamic type, so get the offset of the array data.\n const offset = bytesToNumber(cursor.readBytes(sizeOfOffset));\n // Start is the static position of current slot + offset.\n const start = staticPosition + offset;\n const startOfData = start + sizeOfLength;\n // Get the length of the array from the offset.\n cursor.setPosition(start);\n const length = bytesToNumber(cursor.readBytes(sizeOfLength));\n // Check if the array has any dynamic children.\n const dynamicChild = hasDynamicChild(param);\n let consumed = 0;\n const value = [];\n for (let i = 0; i < length; ++i) {\n // If any of the children is dynamic, then all elements will be offset pointer, thus size of one slot (32 bytes).\n // Otherwise, elements will be the size of their encoding (consumed bytes).\n cursor.setPosition(startOfData + (dynamicChild ? i * 32 : consumed));\n const [data, consumed_] = decodeParameter(cursor, param, {\n staticPosition: startOfData,\n });\n consumed += consumed_;\n value.push(data);\n }\n // As we have gone wondering, restore to the original position + next slot.\n cursor.setPosition(staticPosition + 32);\n return [value, 32];\n }\n // If the length of the array is known in advance,\n // and the length of an element deeply nested in the array is not known,\n // we need to decode the offset of the array data.\n if (hasDynamicChild(param)) {\n // Dealing with dynamic types, so get the offset of the array data.\n const offset = bytesToNumber(cursor.readBytes(sizeOfOffset));\n // Start is the static position of current slot + offset.\n const start = staticPosition + offset;\n const value = [];\n for (let i = 0; i < length; ++i) {\n // Move cursor along to the next slot (next offset pointer).\n cursor.setPosition(start + i * 32);\n const [data] = decodeParameter(cursor, param, {\n staticPosition: start,\n });\n value.push(data);\n }\n // As we have gone wondering, restore to the original position + next slot.\n cursor.setPosition(staticPosition + 32);\n return [value, 32];\n }\n // If the length of the array is known in advance and the array is deeply static,\n // then we can just decode each element in sequence.\n let consumed = 0;\n const value = [];\n for (let i = 0; i < length; ++i) {\n const [data, consumed_] = decodeParameter(cursor, param, {\n staticPosition: staticPosition + consumed,\n });\n consumed += consumed_;\n value.push(data);\n }\n return [value, consumed];\n}\nfunction decodeBool(cursor) {\n return [bytesToBool(cursor.readBytes(32), { size: 32 }), 32];\n}\nfunction decodeBytes(cursor, param, { staticPosition }) {\n const [_, size] = param.type.split('bytes');\n if (!size) {\n // Dealing with dynamic types, so get the offset of the bytes data.\n const offset = bytesToNumber(cursor.readBytes(32));\n // Set position of the cursor to start of bytes data.\n cursor.setPosition(staticPosition + offset);\n const length = bytesToNumber(cursor.readBytes(32));\n // If there is no length, we have zero data.\n if (length === 0) {\n // As we have gone wondering, restore to the original position + next slot.\n cursor.setPosition(staticPosition + 32);\n return ['0x', 32];\n }\n const data = cursor.readBytes(length);\n // As we have gone wondering, restore to the original position + next slot.\n cursor.setPosition(staticPosition + 32);\n return [bytesToHex(data), 32];\n }\n const value = bytesToHex(cursor.readBytes(Number.parseInt(size, 10), 32));\n return [value, 32];\n}\nfunction decodeNumber(cursor, param) {\n const signed = param.type.startsWith('int');\n const size = Number.parseInt(param.type.split('int')[1] || '256', 10);\n const value = cursor.readBytes(32);\n return [\n size > 48\n ? bytesToBigInt(value, { signed })\n : bytesToNumber(value, { signed }),\n 32,\n ];\n}\nfunction decodeTuple(cursor, param, { staticPosition }) {\n // Tuples can have unnamed components (i.e. they are arrays), so we must\n // determine whether the tuple is named or unnamed. In the case of a named\n // tuple, the value will be an object where each property is the name of the\n // component. In the case of an unnamed tuple, the value will be an array.\n const hasUnnamedChild = param.components.length === 0 || param.components.some(({ name }) => !name);\n // Initialize the value to an object or an array, depending on whether the\n // tuple is named or unnamed.\n const value = hasUnnamedChild ? [] : {};\n let consumed = 0;\n // If the tuple has a dynamic child, we must first decode the offset to the\n // tuple data.\n if (hasDynamicChild(param)) {\n // Dealing with dynamic types, so get the offset of the tuple data.\n const offset = bytesToNumber(cursor.readBytes(sizeOfOffset));\n // Start is the static position of referencing slot + offset.\n const start = staticPosition + offset;\n for (let i = 0; i < param.components.length; ++i) {\n const component = param.components[i];\n cursor.setPosition(start + consumed);\n const [data, consumed_] = decodeParameter(cursor, component, {\n staticPosition: start,\n });\n consumed += consumed_;\n value[hasUnnamedChild ? i : component?.name] = data;\n }\n // As we have gone wondering, restore to the original position + next slot.\n cursor.setPosition(staticPosition + 32);\n return [value, 32];\n }\n // If the tuple has static children, we can just decode each component\n // in sequence.\n for (let i = 0; i < param.components.length; ++i) {\n const component = param.components[i];\n const [data, consumed_] = decodeParameter(cursor, component, {\n staticPosition,\n });\n value[hasUnnamedChild ? i : component?.name] = data;\n consumed += consumed_;\n }\n return [value, consumed];\n}\nfunction decodeString(cursor, { staticPosition }) {\n // Get offset to start of string data.\n const offset = bytesToNumber(cursor.readBytes(32));\n // Start is the static position of current slot + offset.\n const start = staticPosition + offset;\n cursor.setPosition(start);\n const length = bytesToNumber(cursor.readBytes(32));\n // If there is no length, we have zero data (empty string).\n if (length === 0) {\n cursor.setPosition(staticPosition + 32);\n return ['', 32];\n }\n const data = cursor.readBytes(length, 32);\n const value = bytesToString(trim(data));\n // As we have gone wondering, restore to the original position + next slot.\n cursor.setPosition(staticPosition + 32);\n return [value, 32];\n}\nfunction hasDynamicChild(param) {\n const { type } = param;\n if (type === 'string')\n return true;\n if (type === 'bytes')\n return true;\n if (type.endsWith('[]'))\n return true;\n if (type === 'tuple')\n return param.components?.some(hasDynamicChild);\n const arrayComponents = getArrayComponents(param.type);\n if (arrayComponents &&\n hasDynamicChild({ ...param, type: arrayComponents[1] }))\n return true;\n return false;\n}\n//# sourceMappingURL=decodeAbiParameters.js.map"],"names":["decodeAbiParameters","params","data","bytes","hexToBytes","cursor","createCursor","size","length","AbiDecodingZeroDataError","AbiDecodingDataSizeTooSmallError","bytesToHex","consumed","values","i","param","setPosition","consumed_","decodeParameter","staticPosition","push","arrayComponents","getArrayComponents","type","start","bytesToNumber","readBytes","sizeOfOffset","startOfData","sizeOfLength","dynamicChild","hasDynamicChild","value","decodeArray","hasUnnamedChild","components","some","name","component","decodeTuple","checksumAddress","sliceBytes","decodeAddress","bytesToBool","decodeBool","startsWith","_","split","offset","Number","parseInt","decodeBytes","signed","bytesToBigInt","decodeNumber","bytesToString","trim","decodeString","InvalidAbiDecodingTypeError","docsPath","endsWith"],"mappings":"6nBAUO,SAASA,EAAoBC,EAAQC,GACxC,MAAMC,EAAwB,iBAATD,EAAoBE,EAAWF,GAAQA,EACtDG,EAASC,EAAaH,GAC5B,GAAoB,IAAhBI,EAAKJ,IAAgBF,EAAOO,OAAS,EACrC,MAAM,IAAIC,EACd,GAAIF,EAAKL,IAASK,EAAKL,GAAQ,GAC3B,MAAM,IAAIQ,EAAiC,CACvCR,KAAsB,iBAATA,EAAoBA,EAAOS,EAAWT,GACnDD,OAAQA,EACRM,KAAMA,EAAKL,KAEnB,IAAIU,EAAW,EACf,MAAMC,EAAS,GACf,IAAK,IAAIC,EAAI,EAAGA,EAAIb,EAAOO,SAAUM,EAAG,CACpC,MAAMC,EAAQd,EAAOa,GACrBT,EAAOW,YAAYJ,GACnB,MAAOV,EAAMe,GAAaC,EAAgBb,EAAQU,EAAO,CACrDI,eAAgB,IAEpBP,GAAYK,EACZJ,EAAOO,KAAKlB,EAChB,CACA,OAAOW,CACX,CACA,SAASK,EAAgBb,EAAQU,GAAOI,eAAEA,IACtC,MAAME,EAAkBC,EAAmBP,EAAMQ,MACjD,GAAIF,EAAiB,CACjB,MAAOb,EAAQe,GAAQF,EACvB,OA0BR,SAAqBhB,EAAQU,GAAOP,OAAEA,EAAMW,eAAEA,IAG1C,IAAKX,EAAQ,CAET,MAEMg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uB,EAAcC,EAAKtD,IAGjC,OADAG,EAAOW,YAAYG,EAAiB,IAC7B,CAACa,EAAO,GACnB,CA5KeyB,CAAapD,EAAQ,CAAEc,mBAClC,MAAM,IAAIuC,EAA4B3C,EAAMQ,KAAM,CAC9CoC,SAAU,sCAElB,CAGA,MAAM9B,EAAe,GACfF,EAAe,GAqKrB,SAASI,EAAgBhB,GACrB,MAAMQ,KAAEA,GAASR,EACjB,GAAa,WAATQ,EACA,OAAO,EACX,GAAa,UAATA,EACA,OAAO,EACX,GAAIA,EAAKqC,SAAS,MACd,OAAO,EACX,GAAa,UAATrC,EACA,OAAOR,EAAMoB,YAAYC,KAAKL,GAClC,MAAMV,EAAkBC,EAAmBP,EAAMQ,MACjD,SAAIF,IACAU,EAAgB,IAAKhB,EAAOQ,KAAMF,EAAgB,KAG1D","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{solidityError as r,solidityPanic as t}from"../../constants/solidity.js";import{AbiDecodingZeroDataError as o,AbiErrorSignatureNotFoundError as i}from"../../errors/abi.js";import{slice as e}from"../data/slice.js";import{toFunctionSelector as s}from"../hash/toFunctionSelector.js";import{decodeAbiParameters as n}from"./decodeAbiParameters.js";import{formatAbiItem as m}from"./formatAbiItem.js";function a(a){const{abi:c,data:p}=a,d=e(p,0,4);if("0x"===d)throw new o;const f=[...c||[],r,t].find(r=>"error"===r.type&&d===s(m(r)));if(!f)throw new i(d,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:f,args:"inputs"in f&&f.inputs&&f.inputs.length>0?n(f.inputs,e(p,4)):void 0,errorName:f.name}}export{a as decodeErrorResult};
2
+ //# sourceMappingURL=decodeErrorResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decodeErrorResult.js","sources":["../../../../../../../node_modules/viem/_esm/utils/abi/decodeErrorResult.js"],"sourcesContent":["import { solidityError, solidityPanic } from '../../constants/solidity.js';\nimport { AbiDecodingZeroDataError, AbiErrorSignatureNotFoundError, } from '../../errors/abi.js';\nimport { slice } from '../data/slice.js';\nimport { toFunctionSelector, } from '../hash/toFunctionSelector.js';\nimport { decodeAbiParameters, } from './decodeAbiParameters.js';\nimport { formatAbiItem } from './formatAbiItem.js';\nexport function decodeErrorResult(parameters) {\n const { abi, data } = parameters;\n const signature = slice(data, 0, 4);\n if (signature === '0x')\n throw new AbiDecodingZeroDataError();\n const abi_ = [...(abi || []), solidityError, solidityPanic];\n const abiItem = abi_.find((x) => x.type === 'error' && signature === toFunctionSelector(formatAbiItem(x)));\n if (!abiItem)\n throw new AbiErrorSignatureNotFoundError(signature, {\n docsPath: '/docs/contract/decodeErrorResult',\n });\n return {\n abiItem,\n args: 'inputs' in abiItem && abiItem.inputs && abiItem.inputs.length > 0\n ? decodeAbiParameters(abiItem.inputs, slice(data, 4))\n : undefined,\n errorName: abiItem.name,\n };\n}\n//# sourceMappingURL=decodeErrorResult.js.map"],"names":["decodeErrorResult","parameters","abi","data","signature","slice","AbiDecodingZeroDataError","abiItem","solidityError","solidityPanic","find","x","type","toFunctionSelector","formatAbiItem","AbiErrorSignatureNotFoundError","docsPath","args","inputs","length","decodeAbiParameters","undefined","errorName","name"],"mappings":"gZAMO,SAASA,EAAkBC,GAC9B,MAAMC,IAAEA,EAAGC,KAAEA,GAASF,EAChBG,EAAYC,EAAMF,EAAM,EAAG,GACjC,GAAkB,OAAdC,EACA,MAAM,IAAIE,EACd,MACMC,EADO,IAAKL,GAAO,GAAKM,EAAeC,GACxBC,KAAMC,GAAiB,UAAXA,EAAEC,MAAoBR,IAAcS,EAAmBC,EAAcH,KACtG,IAAKJ,EACD,MAAM,IAAIQ,EAA+BX,EAAW,CAChDY,SAAU,qCAElB,MAAO,CACHT,UACAU,KAAM,WAAYV,GAAWA,EAAQW,QAAUX,EAAQW,OAAOC,OAAS,EACjEC,EAAoBb,EAAQW,OAAQb,EAAMF,EAAM,SAChDkB,EACNC,UAAWf,EAAQgB,KAE3B","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{AbiEventSignatureEmptyTopicsError as e,AbiEventSignatureNotFoundError as t,DecodeLogTopicsMismatch as r,AbiDecodingDataSizeTooSmallError as n,DecodeLogDataMismatch as o}from"../../errors/abi.js";import{PositionOutOfBoundsError as i}from"../../errors/cursor.js";import{size as a}from"../data/size.js";import{toEventSelector as s}from"../hash/toEventSelector.js";import{decodeAbiParameters as m}from"./decodeAbiParameters.js";import{formatAbiItem as f}from"./formatAbiItem.js";const c="/docs/contract/decodeEventLog";function d(d){const{abi:h,data:l,strict:u,topics:w}=d,b=u??!0,[v,...g]=w;if(!v)throw new e({docsPath:c});const y=h.find(e=>"event"===e.type&&v===s(f(e)));if(!y||!("name"in y)||"event"!==y.type)throw new t(v,{docsPath:c});const{name:j,inputs:x}=y,I=x?.some(e=>!("name"in e&&e.name)),z=I?[]:{},P=x.map((e,t)=>[e,t]).filter(([e])=>"indexed"in e&&e.indexed);for(let e=0;e<P.length;e++){const[t,n]=P[e],o=g[e];if(!o)throw new r({abiItem:y,param:t});z[I?n:t.name||n]=p({param:t,value:o})}const A=x.filter(e=>!("indexed"in e&&e.indexed));if(A.length>0)if(l&&"0x"!==l)try{const e=m(A,l);if(e)if(I)for(let t=0;t<x.length;t++)z[t]=z[t]??e.shift();else for(let t=0;t<A.length;t++)z[A[t].name]=e[t]}catch(e){if(b){if(e instanceof n||e instanceof i)throw new o({abiItem:y,data:l,params:A,size:a(l)});throw e}}else if(b)throw new o({abiItem:y,data:"0x",params:A,size:0});return{eventName:j,args:Object.values(z).length>0?z:void 0}}function p({param:e,value:t}){if("string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))return t;return(m([e],t)||[])[0]}export{d as decodeEventLog};
2
+ //# sourceMappingURL=decodeEventLog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decodeEventLog.js","sources":["../../../../../../../node_modules/viem/_esm/utils/abi/decodeEventLog.js"],"sourcesContent":["import { AbiDecodingDataSizeTooSmallError, AbiEventSignatureEmptyTopicsError, AbiEventSignatureNotFoundError, DecodeLogDataMismatch, DecodeLogTopicsMismatch, } from '../../errors/abi.js';\nimport { PositionOutOfBoundsError } from '../../errors/cursor.js';\nimport { size } from '../data/size.js';\nimport { toEventSelector, } from '../hash/toEventSelector.js';\nimport { decodeAbiParameters, } from './decodeAbiParameters.js';\nimport { formatAbiItem } from './formatAbiItem.js';\nconst docsPath = '/docs/contract/decodeEventLog';\nexport function decodeEventLog(parameters) {\n const { abi, data, strict: strict_, topics, } = parameters;\n const strict = strict_ ?? true;\n const [signature, ...argTopics] = topics;\n if (!signature)\n throw new AbiEventSignatureEmptyTopicsError({ docsPath });\n const abiItem = abi.find((x) => x.type === 'event' &&\n signature === toEventSelector(formatAbiItem(x)));\n if (!(abiItem && 'name' in abiItem) || abiItem.type !== 'event')\n throw new AbiEventSignatureNotFoundError(signature, { docsPath });\n const { name, inputs } = abiItem;\n const isUnnamed = inputs?.some((x) => !('name' in x && x.name));\n const args = isUnnamed ? [] : {};\n // Decode topics (indexed args).\n const indexedInputs = inputs\n .map((x, i) => [x, i])\n .filter(([x]) => 'indexed' in x && x.indexed);\n for (let i = 0; i < indexedInputs.length; i++) {\n const [param, argIndex] = indexedInputs[i];\n const topic = argTopics[i];\n if (!topic)\n throw new DecodeLogTopicsMismatch({\n abiItem,\n param: param,\n });\n args[isUnnamed ? argIndex : param.name || argIndex] = decodeTopic({\n param,\n value: topic,\n });\n }\n // Decode data (non-indexed args).\n const nonIndexedInputs = inputs.filter((x) => !('indexed' in x && x.indexed));\n if (nonIndexedInputs.length > 0) {\n if (data && data !== '0x') {\n try {\n const decodedData = decodeAbiParameters(nonIndexedInputs, data);\n if (decodedData) {\n if (isUnnamed)\n for (let i = 0; i < inputs.length; i++)\n args[i] = args[i] ?? decodedData.shift();\n else\n for (let i = 0; i < nonIndexedInputs.length; i++)\n args[nonIndexedInputs[i].name] = decodedData[i];\n }\n }\n catch (err) {\n if (strict) {\n if (err instanceof AbiDecodingDataSizeTooSmallError ||\n err instanceof PositionOutOfBoundsError)\n throw new DecodeLogDataMismatch({\n abiItem,\n data: data,\n params: nonIndexedInputs,\n size: size(data),\n });\n throw err;\n }\n }\n }\n else if (strict) {\n throw new DecodeLogDataMismatch({\n abiItem,\n data: '0x',\n params: nonIndexedInputs,\n size: 0,\n });\n }\n }\n return {\n eventName: name,\n args: Object.values(args).length > 0 ? args : undefined,\n };\n}\nfunction decodeTopic({ param, value }) {\n if (param.type === 'string' ||\n param.type === 'bytes' ||\n param.type === 'tuple' ||\n param.type.match(/^(.*)\\[(\\d+)?\\]$/))\n return value;\n const decodedArg = decodeAbiParameters([param], value) || [];\n return decodedArg[0];\n}\n//# sourceMappingURL=decodeEventLog.js.map"],"names":["docsPath","decodeEventLog","parameters","abi","data","strict","strict_","topics","signature","argTopics","AbiEventSignatureEmptyTopicsError","abiItem","find","x","type","toEventSelector","formatAbiItem","AbiEventSignatureNotFoundError","name","inputs","isUnnamed","some","args","indexedInputs","map","i","filter","indexed","length","param","argIndex","topic","DecodeLogTopicsMismatch","decodeTopic","value","nonIndexedInputs","decodedData","decodeAbiParameters","shift","err","AbiDecodingDataSizeTooSmallError","PositionOutOfBoundsError","DecodeLogDataMismatch","params","size","eventName","Object","values","undefined","match"],"mappings":"keAMA,MAAMA,EAAW,gCACV,SAASC,EAAeC,GAC3B,MAAMC,IAAEA,EAAGC,KAAEA,EAAMC,OAAQC,EAAOC,OAAEA,GAAYL,EAC1CG,EAASC,IAAW,GACnBE,KAAcC,GAAaF,EAClC,IAAKC,EACD,MAAM,IAAIE,EAAkC,CAAEV,aAClD,MAAMW,EAAUR,EAAIS,KAAMC,GAAiB,UAAXA,EAAEC,MAC9BN,IAAcO,EAAgBC,EAAcH,KAChD,IAAMF,KAAW,SAAUA,IAA6B,UAAjBA,EAAQG,KAC3C,MAAM,IAAIG,EAA+BT,EAAW,CAAER,aAC1D,MAAMkB,KAAEA,EAAIC,OAAEA,GAAWR,EACnBS,EAAYD,GAAQE,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AEA,EAAKK,MAAEA,IAC1B,GAAmB,WAAfL,EAAMf,MACS,UAAfe,EAAMf,MACS,UAAfe,EAAMf,MACNe,EAAMf,KAAKmC,MAAM,oBACjB,OAAOf,EAEX,OADmBG,EAAoB,CAACR,GAAQK,IAAU,IACxC,EACtB","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{AbiFunctionSignatureNotFoundError as t}from"../../errors/abi.js";import{slice as o}from"../data/slice.js";import{toFunctionSelector as i}from"../hash/toFunctionSelector.js";import{decodeAbiParameters as r}from"./decodeAbiParameters.js";import{formatAbiItem as n}from"./formatAbiItem.js";function e(e){const{abi:a,data:s}=e,m=o(s,0,4),c=a.find(t=>"function"===t.type&&m===i(n(t)));if(!c)throw new t(m,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:c.name,args:"inputs"in c&&c.inputs&&c.inputs.length>0?r(c.inputs,o(s,4)):void 0}}export{e as decodeFunctionData};
2
+ //# sourceMappingURL=decodeFunctionData.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decodeFunctionData.js","sources":["../../../../../../../node_modules/viem/_esm/utils/abi/decodeFunctionData.js"],"sourcesContent":["import { AbiFunctionSignatureNotFoundError } from '../../errors/abi.js';\nimport { slice } from '../data/slice.js';\nimport { toFunctionSelector, } from '../hash/toFunctionSelector.js';\nimport { decodeAbiParameters, } from './decodeAbiParameters.js';\nimport { formatAbiItem } from './formatAbiItem.js';\nexport function decodeFunctionData(parameters) {\n const { abi, data } = parameters;\n const signature = slice(data, 0, 4);\n const description = abi.find((x) => x.type === 'function' &&\n signature === toFunctionSelector(formatAbiItem(x)));\n if (!description)\n throw new AbiFunctionSignatureNotFoundError(signature, {\n docsPath: '/docs/contract/decodeFunctionData',\n });\n return {\n functionName: description.name,\n args: ('inputs' in description &&\n description.inputs &&\n description.inputs.length > 0\n ? decodeAbiParameters(description.inputs, slice(data, 4))\n : undefined),\n };\n}\n//# sourceMappingURL=decodeFunctionData.js.map"],"names":["decodeFunctionData","parameters","abi","data","signature","slice","description","find","x","type","toFunctionSelector","formatAbiItem","AbiFunctionSignatureNotFoundError","docsPath","functionName","name","args","inputs","length","decodeAbiParameters","undefined"],"mappings":"sSAKO,SAASA,EAAmBC,GAC/B,MAAMC,IAAEA,EAAGC,KAAEA,GAASF,EAChBG,EAAYC,EAAMF,EAAM,EAAG,GAC3BG,EAAcJ,EAAIK,KAAMC,GAAiB,aAAXA,EAAEC,MAClCL,IAAcM,EAAmBC,EAAcH,KACnD,IAAKF,EACD,MAAM,IAAIM,EAAkCR,EAAW,CACnDS,SAAU,sCAElB,MAAO,CACHC,aAAcR,EAAYS,KAC1BC,KAAO,WAAYV,GACfA,EAAYW,QACZX,EAAYW,OAAOC,OAAS,EAC1BC,EAAoBb,EAAYW,OAAQZ,EAAMF,EAAM,SACpDiB,EAEd","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{AbiFunctionNotFoundError as t,AbiFunctionOutputsNotFoundError as o}from"../../errors/abi.js";import{decodeAbiParameters as e}from"./decodeAbiParameters.js";import{getAbiItem as n}from"./getAbiItem.js";const r="/docs/contract/decodeFunctionResult";function i(i){const{abi:s,args:a,functionName:c,data:d}=i;let m=s[0];if(c){const o=n({abi:s,args:a,name:c});if(!o)throw new t(c,{docsPath:r});m=o}if("function"!==m.type)throw new t(void 0,{docsPath:r});if(!m.outputs)throw new o(m.name,{docsPath:r});const f=e(m.outputs,d);return f&&f.length>1?f:f&&1===f.length?f[0]:void 0}export{i as decodeFunctionResult};
2
+ //# sourceMappingURL=decodeFunctionResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decodeFunctionResult.js","sources":["../../../../../../../node_modules/viem/_esm/utils/abi/decodeFunctionResult.js"],"sourcesContent":["import { AbiFunctionNotFoundError, AbiFunctionOutputsNotFoundError, } from '../../errors/abi.js';\nimport { decodeAbiParameters, } from './decodeAbiParameters.js';\nimport { getAbiItem } from './getAbiItem.js';\nconst docsPath = '/docs/contract/decodeFunctionResult';\nexport function decodeFunctionResult(parameters) {\n const { abi, args, functionName, data } = parameters;\n let abiItem = abi[0];\n if (functionName) {\n const item = getAbiItem({ abi, args, name: functionName });\n if (!item)\n throw new AbiFunctionNotFoundError(functionName, { docsPath });\n abiItem = item;\n }\n if (abiItem.type !== 'function')\n throw new AbiFunctionNotFoundError(undefined, { docsPath });\n if (!abiItem.outputs)\n throw new AbiFunctionOutputsNotFoundError(abiItem.name, { docsPath });\n const values = decodeAbiParameters(abiItem.outputs, data);\n if (values && values.length > 1)\n return values;\n if (values && values.length === 1)\n return values[0];\n return undefined;\n}\n//# sourceMappingURL=decodeFunctionResult.js.map"],"names":["docsPath","decodeFunctionResult","parameters","abi","args","functionName","data","abiItem","item","getAbiItem","name","AbiFunctionNotFoundError","type","undefined","outputs","AbiFunctionOutputsNotFoundError","values","decodeAbiParameters","length"],"mappings":"gNAGA,MAAMA,EAAW,sCACV,SAASC,EAAqBC,GACjC,MAAMC,IAAEA,EAAGC,KAAEA,EAAIC,aAAEA,EAAYC,KAAEA,GAASJ,EAC1C,IAAIK,EAAUJ,EAAI,GAClB,GAAIE,EAAc,CACd,MAAMG,EAAOC,EAAW,CAAEN,MAAKC,OAAMM,KAAML,IAC3C,IAAKG,EACD,MAAM,IAAIG,EAAyBN,EAAc,CAAEL,aACvDO,EAAUC,CACd,CACA,GAAqB,aAAjBD,EAAQK,KACR,MAAM,IAAID,OAAyBE,EAAW,CAAEb,aACpD,IAAKO,EAAQO,QACT,MAAM,IAAIC,EAAgCR,EAAQG,KAAM,CAAEV,aAC9D,MAAMgB,EAASC,EAAoBV,EAAQO,QAASR,GACpD,OAAIU,GAAUA,EAAOE,OAAS,EACnBF,EACPA,GAA4B,IAAlBA,EAAOE,OACVF,EAAO,QADlB,CAGJ","x_google_ignoreList":[0]}
@@ -0,0 +1,2 @@
1
+ import{AbiEncodingLengthMismatchError as e,InvalidAbiEncodingTypeError as t,InvalidArrayError as n,AbiEncodingArrayLengthMismatchError as r,AbiEncodingBytesSizeMismatchError as o}from"../../errors/abi.js";import{InvalidAddressError as i}from"../../errors/address.js";import{BaseError as s}from"../../errors/base.js";import{IntegerOutOfRangeError as a}from"../../errors/encoding.js";import{isAddress as c}from"../address/isAddress.js";import{concat as d}from"../data/concat.js";import{padHex as p}from"../data/pad.js";import{size as m}from"../data/size.js";import{slice as u}from"../data/slice.js";import{numberToHex as f,boolToHex as l,stringToHex as h}from"../encoding/toHex.js";import{integerRegex as y}from"../regex.js";function g(t,n){if(t.length!==n.length)throw new e({expectedLength:t.length,givenLength:n.length});const r=function({params:e,values:t}){const n=[];for(let r=0;r<e.length;r++)n.push(w({param:e[r],value:t[r]}));return n}({params:t,values:n}),o=b(r);return 0===o.length?"0x":o}function w({param:e,value:g}){const j=v(e.type);if(j){const[t,o]=j;return function(e,{length:t,param:o}){const i=null===t;if(!Array.isArray(e))throw new n(e);if(!i&&e.length!==t)throw new r({expectedLength:t,givenLength:e.length,type:`${o.type}[${t}]`});let s=!1;const a=[];for(let t=0;t<e.length;t++){const n=w({param:o,value:e[t]});n.dynamic&&(s=!0),a.push(n)}if(i||s){const e=b(a);if(i){const t=f(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?d([t,e]):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:d(a.map(({encoded:e})=>e))}}(g,{length:t,param:{...e,type:o}})}if("tuple"===e.type)return function(e,{param:t}){let n=!1;const r=[];for(let o=0;o<t.components.length;o++){const i=t.components[o],s=w({param:i,value:e[Array.isArray(e)?o:i.name]});r.push(s),s.dynamic&&(n=!0)}return{dynamic:n,encoded:n?b(r):d(r.map(({encoded:e})=>e))}}(g,{param:e});if("address"===e.type)return function(e){if(!c(e))throw new i({address:e});return{dynamic:!1,encoded:p(e.toLowerCase())}}(g);if("bool"===e.type)return function(e){if("boolean"!=typeof e)throw new s(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:p(l(e))}}(g);if(e.type.startsWith("uint")||e.type.startsWith("int")){const t=e.type.startsWith("int"),[,,n="256"]=y.exec(e.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){const r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new a({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:f(e,{size:32,signed:t})}}(g,{signed:t,size:Number(n)})}if(e.type.startsWith("bytes"))return function(e,{param:t}){const[,n]=t.type.split("bytes"),r=m(e);if(!n){let t=e;return r%32!=0&&(t=p(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:d([p(f(r,{size:32})),t])}}if(r!==Number.parseInt(n,10))throw new o({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:p(e,{dir:"right"})}}(g,{param:e});if("string"===e.type)return function(e){const t=h(e),n=Math.ceil(m(t)/32),r=[];for(let e=0;e<n;e++)r.push(p(u(t,32*e,32*(e+1)),{dir:"right"}));return{dynamic:!0,encoded:d([p(f(m(t),{size:32})),...r])}}(g);throw new t(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function b(e){let t=0;for(let n=0;n<e.length;n++){const{dynamic:r,encoded:o}=e[n];t+=r?32:m(o)}const n=[],r=[];let o=0;for(let i=0;i<e.length;i++){const{dynamic:s,encoded:a}=e[i];s?(n.push(f(t+o,{size:32})),r.push(a),o+=m(a)):n.push(a)}return d([...n,...r])}function v(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}export{g as encodeAbiParameters,v as getArrayComponents};
2
+ //# sourceMappingURL=encodeAbiParameters.js.map