superstack-wallet-sdk 0.4.4 → 0.4.7

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 (880) hide show
  1. package/dist/esm/node_modules/.pnpm/@emotion_is-prop-valid@1.2.2/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +2 -0
  2. package/dist/esm/node_modules/.pnpm/@emotion_is-prop-valid@1.2.2/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js.map +1 -0
  3. package/dist/esm/node_modules/.pnpm/@emotion_memoize@0.8.1/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +1 -0
  4. package/dist/esm/node_modules/.pnpm/@emotion_unitless@0.8.1/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +1 -0
  5. package/dist/esm/node_modules/.pnpm/@noble_curves@1.9.1/node_modules/@noble/curves/esm/_shortw_utils.js +3 -0
  6. package/dist/esm/node_modules/.pnpm/@noble_curves@1.9.1/node_modules/@noble/curves/esm/_shortw_utils.js.map +1 -0
  7. package/dist/esm/node_modules/.pnpm/@noble_curves@1.9.1/node_modules/@noble/curves/esm/abstract/curve.js.map +1 -0
  8. package/dist/esm/node_modules/.pnpm/@noble_curves@1.9.1/node_modules/@noble/curves/esm/abstract/modular.js +4 -0
  9. package/dist/esm/node_modules/.pnpm/@noble_curves@1.9.1/node_modules/@noble/curves/esm/abstract/modular.js.map +1 -0
  10. package/dist/esm/node_modules/.pnpm/@noble_curves@1.9.1/node_modules/@noble/curves/esm/abstract/utils.js.map +1 -0
  11. package/dist/esm/node_modules/.pnpm/@noble_curves@1.9.1/node_modules/@noble/curves/esm/abstract/weierstrass.js.map +1 -0
  12. package/dist/esm/node_modules/.pnpm/@noble_curves@1.9.1/node_modules/@noble/curves/esm/secp256k1.js +3 -0
  13. package/dist/esm/node_modules/.pnpm/@noble_curves@1.9.1/node_modules/@noble/curves/esm/secp256k1.js.map +1 -0
  14. package/dist/esm/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/esm/_md.js.map +1 -0
  15. package/dist/esm/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js.map +1 -0
  16. package/dist/esm/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/esm/crypto.js.map +1 -0
  17. package/dist/esm/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/esm/hmac.js.map +1 -0
  18. package/dist/esm/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/esm/sha2.js.map +1 -0
  19. package/dist/esm/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/esm/sha256.js.map +1 -0
  20. package/dist/esm/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/esm/sha3.js.map +1 -0
  21. package/dist/esm/node_modules/.pnpm/@noble_hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js.map +1 -0
  22. package/dist/esm/node_modules/.pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.52.2_tslib@2.8.1_typescript@5.9.2/node_modules/tslib/tslib.es6.js.map +1 -0
  23. package/dist/esm/node_modules/.pnpm/@solana_wallet-adapter-base@0.9.27_@solana_web3.js@1.98.4_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_/node_modules/@solana/wallet-adapter-base/lib/esm/adapter.js +2 -0
  24. package/dist/esm/node_modules/.pnpm/@solana_wallet-adapter-base@0.9.27_@solana_web3.js@1.98.4_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_/node_modules/@solana/wallet-adapter-base/lib/esm/adapter.js.map +1 -0
  25. package/dist/esm/node_modules/.pnpm/@solana_wallet-adapter-base@0.9.27_@solana_web3.js@1.98.4_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_/node_modules/@solana/wallet-adapter-base/lib/esm/errors.js.map +1 -0
  26. package/dist/esm/node_modules/.pnpm/@solana_wallet-adapter-base@0.9.27_@solana_web3.js@1.98.4_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_/node_modules/@solana/wallet-adapter-base/lib/esm/signer.js.map +1 -0
  27. package/dist/esm/node_modules/.pnpm/@solana_wallet-adapter-base@0.9.27_@solana_web3.js@1.98.4_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_/node_modules/@solana/wallet-adapter-base/lib/esm/transaction.js.map +1 -0
  28. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/errors.js.map +1 -0
  29. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js.map +1 -0
  30. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js.map +1 -0
  31. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/errors/signature.js.map +1 -0
  32. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js.map +1 -0
  33. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/errors/struct.js.map +1 -0
  34. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js.map +1 -0
  35. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js.map +1 -0
  36. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js.map +1 -0
  37. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/parseAbi.js.map +1 -0
  38. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/parseAbiItem.js.map +1 -0
  39. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js.map +1 -0
  40. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/runtime/cache.js.map +1 -0
  41. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js.map +1 -0
  42. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/runtime/structs.js.map +1 -0
  43. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/human-readable/runtime/utils.js.map +1 -0
  44. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/regex.js.map +1 -0
  45. package/dist/esm/node_modules/.pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype/dist/esm/version.js.map +1 -0
  46. package/dist/esm/node_modules/.pnpm/ethers@6.15.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/_version.js.map +1 -0
  47. package/dist/esm/node_modules/.pnpm/ethers@6.15.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/utils/data.js.map +1 -0
  48. package/dist/esm/node_modules/.pnpm/ethers@6.15.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/utils/errors.js.map +1 -0
  49. package/dist/esm/node_modules/.pnpm/ethers@6.15.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/utils/fixednumber.js.map +1 -0
  50. package/dist/esm/node_modules/.pnpm/ethers@6.15.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/utils/maths.js.map +1 -0
  51. package/dist/esm/node_modules/.pnpm/ethers@6.15.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/utils/properties.js.map +1 -0
  52. package/dist/esm/node_modules/.pnpm/ethers@6.15.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers/lib.esm/utils/units.js.map +1 -0
  53. package/dist/esm/node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js +2 -0
  54. package/dist/esm/node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js.map +1 -0
  55. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/AbiConstructor.js.map +1 -0
  56. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/AbiFunction.js.map +1 -0
  57. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/AbiItem.js +2 -0
  58. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/AbiItem.js.map +1 -0
  59. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/AbiParameters.js +2 -0
  60. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/AbiParameters.js.map +1 -0
  61. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/Address.js.map +1 -0
  62. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/Authorization.js.map +1 -0
  63. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/BlockOverrides.js.map +1 -0
  64. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/Bytes.js.map +1 -0
  65. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/Caches.js.map +1 -0
  66. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/Errors.js.map +1 -0
  67. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/Hash.js +2 -0
  68. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/Hash.js.map +1 -0
  69. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/Hex.js.map +1 -0
  70. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/Json.js.map +1 -0
  71. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/Signature.js.map +1 -0
  72. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/Solidity.js.map +1 -0
  73. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/Withdrawal.js.map +1 -0
  74. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/internal/abiItem.js.map +1 -0
  75. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/internal/abiParameters.js.map +1 -0
  76. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/internal/bytes.js.map +1 -0
  77. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/internal/cursor.js.map +1 -0
  78. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/internal/errors.js.map +1 -0
  79. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/internal/hex.js.map +1 -0
  80. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/internal/lru.js.map +1 -0
  81. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/core/version.js.map +1 -0
  82. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/erc6492/SignatureErc6492.js.map +1 -0
  83. package/dist/esm/node_modules/.pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox/_esm/erc8010/SignatureErc8010.js.map +1 -0
  84. package/dist/esm/node_modules/.pnpm/styled-components@6.1.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js +2 -0
  85. package/dist/esm/node_modules/.pnpm/styled-components@6.1.19_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/styled-components/dist/styled-components.browser.esm.js.map +1 -0
  86. package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Enum.js.map +1 -0
  87. package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Middleware.js.map +1 -0
  88. package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Parser.js.map +1 -0
  89. package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Prefixer.js.map +1 -0
  90. package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Serializer.js.map +1 -0
  91. package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Tokenizer.js.map +1 -0
  92. package/dist/esm/node_modules/.pnpm/stylis@4.3.2/node_modules/stylis/src/Utility.js.map +1 -0
  93. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/accounts/utils/parseAccount.js.map +1 -0
  94. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/accounts/utils/publicKeyToAddress.js.map +1 -0
  95. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/ens/getEnsAddress.js.map +1 -0
  96. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/ens/getEnsAvatar.js.map +1 -0
  97. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/ens/getEnsName.js.map +1 -0
  98. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/ens/getEnsResolver.js.map +1 -0
  99. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/ens/getEnsText.js.map +1 -0
  100. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/call.js +2 -0
  101. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/call.js.map +1 -0
  102. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/createAccessList.js.map +1 -0
  103. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/createBlockFilter.js.map +1 -0
  104. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/createContractEventFilter.js.map +1 -0
  105. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/createEventFilter.js.map +1 -0
  106. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/createPendingTransactionFilter.js.map +1 -0
  107. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/estimateContractGas.js.map +1 -0
  108. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/estimateFeesPerGas.js.map +1 -0
  109. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/estimateGas.js.map +1 -0
  110. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +1 -0
  111. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getBalance.js.map +1 -0
  112. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getBlobBaseFee.js.map +1 -0
  113. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getBlock.js.map +1 -0
  114. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getBlockNumber.js.map +1 -0
  115. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getBlockTransactionCount.js.map +1 -0
  116. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getChainId.js.map +1 -0
  117. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getCode.js.map +1 -0
  118. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getContractEvents.js.map +1 -0
  119. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getEip712Domain.js.map +1 -0
  120. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getFeeHistory.js.map +1 -0
  121. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getFilterChanges.js.map +1 -0
  122. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getFilterLogs.js.map +1 -0
  123. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getGasPrice.js.map +1 -0
  124. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getLogs.js.map +1 -0
  125. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getProof.js.map +1 -0
  126. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getStorageAt.js.map +1 -0
  127. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getTransaction.js.map +1 -0
  128. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getTransactionConfirmations.js.map +1 -0
  129. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getTransactionCount.js.map +1 -0
  130. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/getTransactionReceipt.js.map +1 -0
  131. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/multicall.js.map +1 -0
  132. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/readContract.js.map +1 -0
  133. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/simulateBlocks.js +2 -0
  134. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/simulateBlocks.js.map +1 -0
  135. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/simulateCalls.js +2 -0
  136. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/simulateCalls.js.map +1 -0
  137. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/simulateContract.js.map +1 -0
  138. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/uninstallFilter.js.map +1 -0
  139. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/verifyHash.js +2 -0
  140. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/verifyHash.js.map +1 -0
  141. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/verifyMessage.js.map +1 -0
  142. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/verifyTypedData.js.map +1 -0
  143. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/waitForTransactionReceipt.js.map +1 -0
  144. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/watchBlockNumber.js.map +1 -0
  145. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/watchBlocks.js.map +1 -0
  146. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/watchContractEvent.js.map +1 -0
  147. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/watchEvent.js.map +1 -0
  148. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/public/watchPendingTransactions.js.map +1 -0
  149. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/siwe/verifySiweMessage.js.map +1 -0
  150. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -0
  151. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/actions/wallet/sendRawTransaction.js.map +1 -0
  152. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/clients/createClient.js.map +1 -0
  153. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/clients/createPublicClient.js.map +1 -0
  154. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/clients/decorators/public.js.map +1 -0
  155. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/clients/transports/createTransport.js.map +1 -0
  156. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/clients/transports/http.js.map +1 -0
  157. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/constants/abis.js.map +1 -0
  158. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/constants/address.js.map +1 -0
  159. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/constants/blob.js.map +1 -0
  160. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/constants/contract.js.map +1 -0
  161. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/constants/contracts.js.map +1 -0
  162. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/constants/number.js.map +1 -0
  163. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/constants/solidity.js.map +1 -0
  164. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/constants/strings.js.map +1 -0
  165. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/constants/unit.js.map +1 -0
  166. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/abi.js.map +1 -0
  167. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/address.js.map +1 -0
  168. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/base.js.map +1 -0
  169. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/blob.js.map +1 -0
  170. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/block.js.map +1 -0
  171. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/ccip.js.map +1 -0
  172. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/chain.js.map +1 -0
  173. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/contract.js.map +1 -0
  174. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/cursor.js.map +1 -0
  175. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/data.js.map +1 -0
  176. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/eip712.js.map +1 -0
  177. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/encoding.js.map +1 -0
  178. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/ens.js.map +1 -0
  179. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/estimateGas.js.map +1 -0
  180. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/fee.js.map +1 -0
  181. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/log.js.map +1 -0
  182. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/node.js.map +1 -0
  183. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/request.js.map +1 -0
  184. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/rpc.js.map +1 -0
  185. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/stateOverride.js.map +1 -0
  186. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/transaction.js.map +1 -0
  187. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/transport.js.map +1 -0
  188. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/typedData.js.map +1 -0
  189. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/utils.js.map +1 -0
  190. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/errors/version.js.map +1 -0
  191. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js.map +1 -0
  192. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/decodeErrorResult.js.map +1 -0
  193. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/decodeEventLog.js.map +1 -0
  194. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/decodeFunctionData.js.map +1 -0
  195. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/decodeFunctionResult.js.map +1 -0
  196. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js.map +1 -0
  197. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/encodeDeployData.js.map +1 -0
  198. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/encodeErrorResult.js.map +1 -0
  199. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/encodeEventTopics.js.map +1 -0
  200. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/encodeFunctionData.js.map +1 -0
  201. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/encodeFunctionResult.js.map +1 -0
  202. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/formatAbiItem.js.map +1 -0
  203. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js.map +1 -0
  204. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/getAbiItem.js.map +1 -0
  205. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/parseEventLogs.js.map +1 -0
  206. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js.map +1 -0
  207. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/address/getAddress.js.map +1 -0
  208. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/address/isAddress.js.map +1 -0
  209. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/address/isAddressEqual.js.map +1 -0
  210. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/authorization/hashAuthorization.js.map +1 -0
  211. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/authorization/recoverAuthorizationAddress.js.map +1 -0
  212. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/authorization/verifyAuthorization.js.map +1 -0
  213. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/blob/blobsToCommitments.js.map +1 -0
  214. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/blob/blobsToProofs.js.map +1 -0
  215. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js.map +1 -0
  216. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js.map +1 -0
  217. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/blob/toBlobSidecars.js.map +1 -0
  218. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/blob/toBlobs.js.map +1 -0
  219. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/buildRequest.js.map +1 -0
  220. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/ccip.js.map +1 -0
  221. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/chain/getChainContractAddress.js.map +1 -0
  222. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/cursor.js.map +1 -0
  223. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/data/concat.js.map +1 -0
  224. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/data/isHex.js.map +1 -0
  225. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/data/pad.js.map +1 -0
  226. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/data/size.js.map +1 -0
  227. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/data/slice.js.map +1 -0
  228. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/data/trim.js.map +1 -0
  229. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/encoding/fromBytes.js.map +1 -0
  230. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/encoding/fromHex.js.map +1 -0
  231. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/encoding/toBytes.js.map +1 -0
  232. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/encoding/toHex.js.map +1 -0
  233. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/encoding/toRlp.js.map +1 -0
  234. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/ens/avatar/parseAvatarRecord.js.map +1 -0
  235. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/ens/avatar/utils.js.map +1 -0
  236. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/ens/encodeLabelhash.js.map +1 -0
  237. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/ens/encodedLabelToLabelhash.js.map +1 -0
  238. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/ens/errors.js.map +1 -0
  239. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/ens/labelhash.js.map +1 -0
  240. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/ens/localBatchGatewayRequest.js.map +1 -0
  241. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/ens/namehash.js.map +1 -0
  242. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/ens/packetToBytes.js.map +1 -0
  243. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/errors/getCallError.js.map +1 -0
  244. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/errors/getContractError.js.map +1 -0
  245. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/errors/getEstimateGasError.js.map +1 -0
  246. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/errors/getNodeError.js.map +1 -0
  247. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/filters/createFilterRequestScope.js.map +1 -0
  248. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/formatters/block.js.map +1 -0
  249. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/formatters/extract.js.map +1 -0
  250. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/formatters/feeHistory.js.map +1 -0
  251. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/formatters/log.js.map +1 -0
  252. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/formatters/proof.js.map +1 -0
  253. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/formatters/transaction.js.map +1 -0
  254. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/formatters/transactionReceipt.js.map +1 -0
  255. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/formatters/transactionRequest.js.map +1 -0
  256. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/getAction.js.map +1 -0
  257. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/hash/hashSignature.js.map +1 -0
  258. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/hash/keccak256.js +2 -0
  259. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/hash/keccak256.js.map +1 -0
  260. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/hash/normalizeSignature.js.map +1 -0
  261. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/hash/sha256.js +2 -0
  262. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/hash/sha256.js.map +1 -0
  263. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/hash/toEventSelector.js.map +1 -0
  264. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/hash/toFunctionSelector.js.map +1 -0
  265. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/hash/toSignature.js +2 -0
  266. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/hash/toSignature.js.map +1 -0
  267. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/hash/toSignatureHash.js.map +1 -0
  268. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/lru.js.map +1 -0
  269. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/observe.js.map +1 -0
  270. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/poll.js.map +1 -0
  271. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/promise/createBatchScheduler.js.map +1 -0
  272. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/promise/withCache.js.map +1 -0
  273. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/promise/withDedupe.js.map +1 -0
  274. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/promise/withResolvers.js.map +1 -0
  275. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/promise/withRetry.js.map +1 -0
  276. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/promise/withTimeout.js.map +1 -0
  277. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/regex.js.map +1 -0
  278. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/rpc/http.js.map +1 -0
  279. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/rpc/id.js.map +1 -0
  280. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/signature/hashMessage.js.map +1 -0
  281. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/signature/hashTypedData.js.map +1 -0
  282. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/signature/recoverAddress.js.map +1 -0
  283. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/signature/recoverPublicKey.js +2 -0
  284. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/signature/recoverPublicKey.js.map +1 -0
  285. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/signature/serializeSignature.js +2 -0
  286. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/signature/serializeSignature.js.map +1 -0
  287. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/signature/toPrefixedMessage.js.map +1 -0
  288. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/siwe/parseSiweMessage.js.map +1 -0
  289. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/siwe/validateSiweMessage.js.map +1 -0
  290. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/stateOverride.js.map +1 -0
  291. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/stringify.js.map +1 -0
  292. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/transaction/assertRequest.js.map +1 -0
  293. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/transaction/getTransactionType.js.map +1 -0
  294. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/typedData.js.map +1 -0
  295. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/uid.js.map +1 -0
  296. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/unit/formatEther.js.map +1 -0
  297. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/unit/formatGwei.js.map +1 -0
  298. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/unit/formatUnits.js.map +1 -0
  299. package/dist/esm/node_modules/.pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem/_esm/utils/wait.js.map +1 -0
  300. package/dist/esm/src/LoginModal.styles.js +6 -6
  301. package/dist/esm/src/LoginModal.styles.js.map +1 -1
  302. package/dist/esm/src/adapters/phantom.js +1 -1
  303. package/dist/esm/src/adapters/phantom.js.map +1 -1
  304. package/dist/esm/src/client.js +1 -1
  305. package/dist/esm/src/client.js.map +1 -1
  306. package/dist/esm/src/hooks.js.map +1 -1
  307. package/dist/esm/src/index.js +1 -1
  308. package/dist/esm/src/index.js.map +1 -1
  309. package/dist/esm/src/storage.js +1 -1
  310. package/dist/esm/src/storage.js.map +1 -1
  311. package/dist/esm/types/client.d.ts +1 -1
  312. package/dist/esm/types/hooks.d.ts +1 -1
  313. package/dist/esm/types/storage.d.ts +13 -2
  314. package/dist/esm/types/types.d.ts +1 -0
  315. package/dist/index.cjs +124 -123
  316. package/dist/index.cjs.map +1 -1
  317. package/dist/index.d.ts +16 -5
  318. package/package.json +1 -1
  319. package/dist/esm/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js +0 -2
  320. package/dist/esm/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.js.map +0 -1
  321. package/dist/esm/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +0 -1
  322. package/dist/esm/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +0 -1
  323. package/dist/esm/node_modules/@noble/hashes/esm/_md.js.map +0 -1
  324. package/dist/esm/node_modules/@noble/hashes/esm/_u64.js.map +0 -1
  325. package/dist/esm/node_modules/@noble/hashes/esm/crypto.js.map +0 -1
  326. package/dist/esm/node_modules/@noble/hashes/esm/hmac.js.map +0 -1
  327. package/dist/esm/node_modules/@noble/hashes/esm/sha2.js.map +0 -1
  328. package/dist/esm/node_modules/@noble/hashes/esm/sha256.js.map +0 -1
  329. package/dist/esm/node_modules/@noble/hashes/esm/sha3.js.map +0 -1
  330. package/dist/esm/node_modules/@noble/hashes/esm/utils.js.map +0 -1
  331. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/adapter.js +0 -2
  332. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/adapter.js.map +0 -1
  333. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/errors.js.map +0 -1
  334. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/signer.js.map +0 -1
  335. package/dist/esm/node_modules/@solana/wallet-adapter-base/lib/esm/transaction.js.map +0 -1
  336. package/dist/esm/node_modules/abitype/dist/esm/errors.js.map +0 -1
  337. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js.map +0 -1
  338. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js.map +0 -1
  339. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/signature.js.map +0 -1
  340. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js.map +0 -1
  341. package/dist/esm/node_modules/abitype/dist/esm/human-readable/errors/struct.js.map +0 -1
  342. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js.map +0 -1
  343. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js.map +0 -1
  344. package/dist/esm/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js.map +0 -1
  345. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbi.js.map +0 -1
  346. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbiItem.js.map +0 -1
  347. package/dist/esm/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js.map +0 -1
  348. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/cache.js.map +0 -1
  349. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js.map +0 -1
  350. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/structs.js.map +0 -1
  351. package/dist/esm/node_modules/abitype/dist/esm/human-readable/runtime/utils.js.map +0 -1
  352. package/dist/esm/node_modules/abitype/dist/esm/regex.js.map +0 -1
  353. package/dist/esm/node_modules/abitype/dist/esm/version.js.map +0 -1
  354. package/dist/esm/node_modules/ethers/lib.esm/_version.js.map +0 -1
  355. package/dist/esm/node_modules/ethers/lib.esm/utils/data.js.map +0 -1
  356. package/dist/esm/node_modules/ethers/lib.esm/utils/errors.js.map +0 -1
  357. package/dist/esm/node_modules/ethers/lib.esm/utils/fixednumber.js.map +0 -1
  358. package/dist/esm/node_modules/ethers/lib.esm/utils/maths.js.map +0 -1
  359. package/dist/esm/node_modules/ethers/lib.esm/utils/properties.js.map +0 -1
  360. package/dist/esm/node_modules/ethers/lib.esm/utils/units.js.map +0 -1
  361. package/dist/esm/node_modules/eventemitter3/index.js +0 -2
  362. package/dist/esm/node_modules/eventemitter3/index.js.map +0 -1
  363. package/dist/esm/node_modules/ox/_esm/core/AbiConstructor.js.map +0 -1
  364. package/dist/esm/node_modules/ox/_esm/core/AbiFunction.js.map +0 -1
  365. package/dist/esm/node_modules/ox/_esm/core/AbiItem.js +0 -2
  366. package/dist/esm/node_modules/ox/_esm/core/AbiItem.js.map +0 -1
  367. package/dist/esm/node_modules/ox/_esm/core/AbiParameters.js +0 -2
  368. package/dist/esm/node_modules/ox/_esm/core/AbiParameters.js.map +0 -1
  369. package/dist/esm/node_modules/ox/_esm/core/Address.js.map +0 -1
  370. package/dist/esm/node_modules/ox/_esm/core/Authorization.js.map +0 -1
  371. package/dist/esm/node_modules/ox/_esm/core/BlockOverrides.js.map +0 -1
  372. package/dist/esm/node_modules/ox/_esm/core/Bytes.js.map +0 -1
  373. package/dist/esm/node_modules/ox/_esm/core/Caches.js.map +0 -1
  374. package/dist/esm/node_modules/ox/_esm/core/Errors.js.map +0 -1
  375. package/dist/esm/node_modules/ox/_esm/core/Hash.js +0 -2
  376. package/dist/esm/node_modules/ox/_esm/core/Hash.js.map +0 -1
  377. package/dist/esm/node_modules/ox/_esm/core/Hex.js.map +0 -1
  378. package/dist/esm/node_modules/ox/_esm/core/Json.js.map +0 -1
  379. package/dist/esm/node_modules/ox/_esm/core/Signature.js.map +0 -1
  380. package/dist/esm/node_modules/ox/_esm/core/Solidity.js.map +0 -1
  381. package/dist/esm/node_modules/ox/_esm/core/Withdrawal.js.map +0 -1
  382. package/dist/esm/node_modules/ox/_esm/core/internal/abiItem.js.map +0 -1
  383. package/dist/esm/node_modules/ox/_esm/core/internal/abiParameters.js.map +0 -1
  384. package/dist/esm/node_modules/ox/_esm/core/internal/bytes.js.map +0 -1
  385. package/dist/esm/node_modules/ox/_esm/core/internal/cursor.js.map +0 -1
  386. package/dist/esm/node_modules/ox/_esm/core/internal/errors.js.map +0 -1
  387. package/dist/esm/node_modules/ox/_esm/core/internal/hex.js.map +0 -1
  388. package/dist/esm/node_modules/ox/_esm/core/internal/lru.js.map +0 -1
  389. package/dist/esm/node_modules/ox/_esm/core/version.js.map +0 -1
  390. package/dist/esm/node_modules/ox/_esm/erc6492/SignatureErc6492.js.map +0 -1
  391. package/dist/esm/node_modules/ox/_esm/erc8010/SignatureErc8010.js.map +0 -1
  392. package/dist/esm/node_modules/styled-components/dist/styled-components.browser.esm.js +0 -2
  393. package/dist/esm/node_modules/styled-components/dist/styled-components.browser.esm.js.map +0 -1
  394. package/dist/esm/node_modules/stylis/src/Enum.js.map +0 -1
  395. package/dist/esm/node_modules/stylis/src/Middleware.js.map +0 -1
  396. package/dist/esm/node_modules/stylis/src/Parser.js.map +0 -1
  397. package/dist/esm/node_modules/stylis/src/Prefixer.js.map +0 -1
  398. package/dist/esm/node_modules/stylis/src/Serializer.js.map +0 -1
  399. package/dist/esm/node_modules/stylis/src/Tokenizer.js.map +0 -1
  400. package/dist/esm/node_modules/stylis/src/Utility.js.map +0 -1
  401. package/dist/esm/node_modules/tslib/tslib.es6.js.map +0 -1
  402. package/dist/esm/node_modules/viem/_esm/accounts/utils/parseAccount.js.map +0 -1
  403. package/dist/esm/node_modules/viem/_esm/accounts/utils/publicKeyToAddress.js.map +0 -1
  404. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsAddress.js.map +0 -1
  405. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsAvatar.js.map +0 -1
  406. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsName.js.map +0 -1
  407. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsResolver.js.map +0 -1
  408. package/dist/esm/node_modules/viem/_esm/actions/ens/getEnsText.js.map +0 -1
  409. package/dist/esm/node_modules/viem/_esm/actions/public/call.js +0 -2
  410. package/dist/esm/node_modules/viem/_esm/actions/public/call.js.map +0 -1
  411. package/dist/esm/node_modules/viem/_esm/actions/public/createAccessList.js.map +0 -1
  412. package/dist/esm/node_modules/viem/_esm/actions/public/createBlockFilter.js.map +0 -1
  413. package/dist/esm/node_modules/viem/_esm/actions/public/createContractEventFilter.js.map +0 -1
  414. package/dist/esm/node_modules/viem/_esm/actions/public/createEventFilter.js.map +0 -1
  415. package/dist/esm/node_modules/viem/_esm/actions/public/createPendingTransactionFilter.js.map +0 -1
  416. package/dist/esm/node_modules/viem/_esm/actions/public/estimateContractGas.js.map +0 -1
  417. package/dist/esm/node_modules/viem/_esm/actions/public/estimateFeesPerGas.js.map +0 -1
  418. package/dist/esm/node_modules/viem/_esm/actions/public/estimateGas.js.map +0 -1
  419. package/dist/esm/node_modules/viem/_esm/actions/public/estimateMaxPriorityFeePerGas.js.map +0 -1
  420. package/dist/esm/node_modules/viem/_esm/actions/public/getBalance.js.map +0 -1
  421. package/dist/esm/node_modules/viem/_esm/actions/public/getBlobBaseFee.js.map +0 -1
  422. package/dist/esm/node_modules/viem/_esm/actions/public/getBlock.js.map +0 -1
  423. package/dist/esm/node_modules/viem/_esm/actions/public/getBlockNumber.js.map +0 -1
  424. package/dist/esm/node_modules/viem/_esm/actions/public/getBlockTransactionCount.js.map +0 -1
  425. package/dist/esm/node_modules/viem/_esm/actions/public/getChainId.js.map +0 -1
  426. package/dist/esm/node_modules/viem/_esm/actions/public/getCode.js.map +0 -1
  427. package/dist/esm/node_modules/viem/_esm/actions/public/getContractEvents.js.map +0 -1
  428. package/dist/esm/node_modules/viem/_esm/actions/public/getEip712Domain.js.map +0 -1
  429. package/dist/esm/node_modules/viem/_esm/actions/public/getFeeHistory.js.map +0 -1
  430. package/dist/esm/node_modules/viem/_esm/actions/public/getFilterChanges.js.map +0 -1
  431. package/dist/esm/node_modules/viem/_esm/actions/public/getFilterLogs.js.map +0 -1
  432. package/dist/esm/node_modules/viem/_esm/actions/public/getGasPrice.js.map +0 -1
  433. package/dist/esm/node_modules/viem/_esm/actions/public/getLogs.js.map +0 -1
  434. package/dist/esm/node_modules/viem/_esm/actions/public/getProof.js.map +0 -1
  435. package/dist/esm/node_modules/viem/_esm/actions/public/getStorageAt.js.map +0 -1
  436. package/dist/esm/node_modules/viem/_esm/actions/public/getTransaction.js.map +0 -1
  437. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionConfirmations.js.map +0 -1
  438. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionCount.js.map +0 -1
  439. package/dist/esm/node_modules/viem/_esm/actions/public/getTransactionReceipt.js.map +0 -1
  440. package/dist/esm/node_modules/viem/_esm/actions/public/multicall.js.map +0 -1
  441. package/dist/esm/node_modules/viem/_esm/actions/public/readContract.js.map +0 -1
  442. package/dist/esm/node_modules/viem/_esm/actions/public/simulateBlocks.js +0 -2
  443. package/dist/esm/node_modules/viem/_esm/actions/public/simulateBlocks.js.map +0 -1
  444. package/dist/esm/node_modules/viem/_esm/actions/public/simulateCalls.js +0 -2
  445. package/dist/esm/node_modules/viem/_esm/actions/public/simulateCalls.js.map +0 -1
  446. package/dist/esm/node_modules/viem/_esm/actions/public/simulateContract.js.map +0 -1
  447. package/dist/esm/node_modules/viem/_esm/actions/public/uninstallFilter.js.map +0 -1
  448. package/dist/esm/node_modules/viem/_esm/actions/public/verifyHash.js +0 -2
  449. package/dist/esm/node_modules/viem/_esm/actions/public/verifyHash.js.map +0 -1
  450. package/dist/esm/node_modules/viem/_esm/actions/public/verifyMessage.js.map +0 -1
  451. package/dist/esm/node_modules/viem/_esm/actions/public/verifyTypedData.js.map +0 -1
  452. package/dist/esm/node_modules/viem/_esm/actions/public/waitForTransactionReceipt.js.map +0 -1
  453. package/dist/esm/node_modules/viem/_esm/actions/public/watchBlockNumber.js.map +0 -1
  454. package/dist/esm/node_modules/viem/_esm/actions/public/watchBlocks.js.map +0 -1
  455. package/dist/esm/node_modules/viem/_esm/actions/public/watchContractEvent.js.map +0 -1
  456. package/dist/esm/node_modules/viem/_esm/actions/public/watchEvent.js.map +0 -1
  457. package/dist/esm/node_modules/viem/_esm/actions/public/watchPendingTransactions.js.map +0 -1
  458. package/dist/esm/node_modules/viem/_esm/actions/siwe/verifySiweMessage.js.map +0 -1
  459. package/dist/esm/node_modules/viem/_esm/actions/wallet/prepareTransactionRequest.js.map +0 -1
  460. package/dist/esm/node_modules/viem/_esm/actions/wallet/sendRawTransaction.js.map +0 -1
  461. package/dist/esm/node_modules/viem/_esm/clients/createClient.js.map +0 -1
  462. package/dist/esm/node_modules/viem/_esm/clients/createPublicClient.js.map +0 -1
  463. package/dist/esm/node_modules/viem/_esm/clients/decorators/public.js.map +0 -1
  464. package/dist/esm/node_modules/viem/_esm/clients/transports/createTransport.js.map +0 -1
  465. package/dist/esm/node_modules/viem/_esm/clients/transports/http.js.map +0 -1
  466. package/dist/esm/node_modules/viem/_esm/constants/abis.js.map +0 -1
  467. package/dist/esm/node_modules/viem/_esm/constants/address.js.map +0 -1
  468. package/dist/esm/node_modules/viem/_esm/constants/blob.js.map +0 -1
  469. package/dist/esm/node_modules/viem/_esm/constants/contract.js.map +0 -1
  470. package/dist/esm/node_modules/viem/_esm/constants/contracts.js.map +0 -1
  471. package/dist/esm/node_modules/viem/_esm/constants/number.js.map +0 -1
  472. package/dist/esm/node_modules/viem/_esm/constants/solidity.js.map +0 -1
  473. package/dist/esm/node_modules/viem/_esm/constants/strings.js.map +0 -1
  474. package/dist/esm/node_modules/viem/_esm/constants/unit.js.map +0 -1
  475. package/dist/esm/node_modules/viem/_esm/errors/abi.js.map +0 -1
  476. package/dist/esm/node_modules/viem/_esm/errors/address.js.map +0 -1
  477. package/dist/esm/node_modules/viem/_esm/errors/base.js.map +0 -1
  478. package/dist/esm/node_modules/viem/_esm/errors/blob.js.map +0 -1
  479. package/dist/esm/node_modules/viem/_esm/errors/block.js.map +0 -1
  480. package/dist/esm/node_modules/viem/_esm/errors/ccip.js.map +0 -1
  481. package/dist/esm/node_modules/viem/_esm/errors/chain.js.map +0 -1
  482. package/dist/esm/node_modules/viem/_esm/errors/contract.js.map +0 -1
  483. package/dist/esm/node_modules/viem/_esm/errors/cursor.js.map +0 -1
  484. package/dist/esm/node_modules/viem/_esm/errors/data.js.map +0 -1
  485. package/dist/esm/node_modules/viem/_esm/errors/eip712.js.map +0 -1
  486. package/dist/esm/node_modules/viem/_esm/errors/encoding.js.map +0 -1
  487. package/dist/esm/node_modules/viem/_esm/errors/ens.js.map +0 -1
  488. package/dist/esm/node_modules/viem/_esm/errors/estimateGas.js.map +0 -1
  489. package/dist/esm/node_modules/viem/_esm/errors/fee.js.map +0 -1
  490. package/dist/esm/node_modules/viem/_esm/errors/log.js.map +0 -1
  491. package/dist/esm/node_modules/viem/_esm/errors/node.js.map +0 -1
  492. package/dist/esm/node_modules/viem/_esm/errors/request.js.map +0 -1
  493. package/dist/esm/node_modules/viem/_esm/errors/rpc.js.map +0 -1
  494. package/dist/esm/node_modules/viem/_esm/errors/stateOverride.js.map +0 -1
  495. package/dist/esm/node_modules/viem/_esm/errors/transaction.js.map +0 -1
  496. package/dist/esm/node_modules/viem/_esm/errors/transport.js.map +0 -1
  497. package/dist/esm/node_modules/viem/_esm/errors/typedData.js.map +0 -1
  498. package/dist/esm/node_modules/viem/_esm/errors/utils.js.map +0 -1
  499. package/dist/esm/node_modules/viem/_esm/errors/version.js.map +0 -1
  500. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js.map +0 -1
  501. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeErrorResult.js.map +0 -1
  502. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeEventLog.js.map +0 -1
  503. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeFunctionData.js.map +0 -1
  504. package/dist/esm/node_modules/viem/_esm/utils/abi/decodeFunctionResult.js.map +0 -1
  505. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js.map +0 -1
  506. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeDeployData.js.map +0 -1
  507. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeErrorResult.js.map +0 -1
  508. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeEventTopics.js.map +0 -1
  509. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeFunctionData.js.map +0 -1
  510. package/dist/esm/node_modules/viem/_esm/utils/abi/encodeFunctionResult.js.map +0 -1
  511. package/dist/esm/node_modules/viem/_esm/utils/abi/formatAbiItem.js.map +0 -1
  512. package/dist/esm/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js.map +0 -1
  513. package/dist/esm/node_modules/viem/_esm/utils/abi/getAbiItem.js.map +0 -1
  514. package/dist/esm/node_modules/viem/_esm/utils/abi/parseEventLogs.js.map +0 -1
  515. package/dist/esm/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js.map +0 -1
  516. package/dist/esm/node_modules/viem/_esm/utils/address/getAddress.js.map +0 -1
  517. package/dist/esm/node_modules/viem/_esm/utils/address/isAddress.js.map +0 -1
  518. package/dist/esm/node_modules/viem/_esm/utils/address/isAddressEqual.js.map +0 -1
  519. package/dist/esm/node_modules/viem/_esm/utils/authorization/hashAuthorization.js.map +0 -1
  520. package/dist/esm/node_modules/viem/_esm/utils/authorization/recoverAuthorizationAddress.js.map +0 -1
  521. package/dist/esm/node_modules/viem/_esm/utils/authorization/verifyAuthorization.js.map +0 -1
  522. package/dist/esm/node_modules/viem/_esm/utils/blob/blobsToCommitments.js.map +0 -1
  523. package/dist/esm/node_modules/viem/_esm/utils/blob/blobsToProofs.js.map +0 -1
  524. package/dist/esm/node_modules/viem/_esm/utils/blob/commitmentToVersionedHash.js.map +0 -1
  525. package/dist/esm/node_modules/viem/_esm/utils/blob/commitmentsToVersionedHashes.js.map +0 -1
  526. package/dist/esm/node_modules/viem/_esm/utils/blob/toBlobSidecars.js.map +0 -1
  527. package/dist/esm/node_modules/viem/_esm/utils/blob/toBlobs.js.map +0 -1
  528. package/dist/esm/node_modules/viem/_esm/utils/buildRequest.js.map +0 -1
  529. package/dist/esm/node_modules/viem/_esm/utils/ccip.js.map +0 -1
  530. package/dist/esm/node_modules/viem/_esm/utils/chain/getChainContractAddress.js.map +0 -1
  531. package/dist/esm/node_modules/viem/_esm/utils/cursor.js.map +0 -1
  532. package/dist/esm/node_modules/viem/_esm/utils/data/concat.js.map +0 -1
  533. package/dist/esm/node_modules/viem/_esm/utils/data/isHex.js.map +0 -1
  534. package/dist/esm/node_modules/viem/_esm/utils/data/pad.js.map +0 -1
  535. package/dist/esm/node_modules/viem/_esm/utils/data/size.js.map +0 -1
  536. package/dist/esm/node_modules/viem/_esm/utils/data/slice.js.map +0 -1
  537. package/dist/esm/node_modules/viem/_esm/utils/data/trim.js.map +0 -1
  538. package/dist/esm/node_modules/viem/_esm/utils/encoding/fromBytes.js.map +0 -1
  539. package/dist/esm/node_modules/viem/_esm/utils/encoding/fromHex.js.map +0 -1
  540. package/dist/esm/node_modules/viem/_esm/utils/encoding/toBytes.js.map +0 -1
  541. package/dist/esm/node_modules/viem/_esm/utils/encoding/toHex.js.map +0 -1
  542. package/dist/esm/node_modules/viem/_esm/utils/encoding/toRlp.js.map +0 -1
  543. package/dist/esm/node_modules/viem/_esm/utils/ens/avatar/parseAvatarRecord.js.map +0 -1
  544. package/dist/esm/node_modules/viem/_esm/utils/ens/avatar/utils.js.map +0 -1
  545. package/dist/esm/node_modules/viem/_esm/utils/ens/encodeLabelhash.js.map +0 -1
  546. package/dist/esm/node_modules/viem/_esm/utils/ens/encodedLabelToLabelhash.js.map +0 -1
  547. package/dist/esm/node_modules/viem/_esm/utils/ens/errors.js.map +0 -1
  548. package/dist/esm/node_modules/viem/_esm/utils/ens/labelhash.js.map +0 -1
  549. package/dist/esm/node_modules/viem/_esm/utils/ens/localBatchGatewayRequest.js.map +0 -1
  550. package/dist/esm/node_modules/viem/_esm/utils/ens/namehash.js.map +0 -1
  551. package/dist/esm/node_modules/viem/_esm/utils/ens/packetToBytes.js.map +0 -1
  552. package/dist/esm/node_modules/viem/_esm/utils/errors/getCallError.js.map +0 -1
  553. package/dist/esm/node_modules/viem/_esm/utils/errors/getContractError.js.map +0 -1
  554. package/dist/esm/node_modules/viem/_esm/utils/errors/getEstimateGasError.js.map +0 -1
  555. package/dist/esm/node_modules/viem/_esm/utils/errors/getNodeError.js.map +0 -1
  556. package/dist/esm/node_modules/viem/_esm/utils/filters/createFilterRequestScope.js.map +0 -1
  557. package/dist/esm/node_modules/viem/_esm/utils/formatters/block.js.map +0 -1
  558. package/dist/esm/node_modules/viem/_esm/utils/formatters/extract.js.map +0 -1
  559. package/dist/esm/node_modules/viem/_esm/utils/formatters/feeHistory.js.map +0 -1
  560. package/dist/esm/node_modules/viem/_esm/utils/formatters/log.js.map +0 -1
  561. package/dist/esm/node_modules/viem/_esm/utils/formatters/proof.js.map +0 -1
  562. package/dist/esm/node_modules/viem/_esm/utils/formatters/transaction.js.map +0 -1
  563. package/dist/esm/node_modules/viem/_esm/utils/formatters/transactionReceipt.js.map +0 -1
  564. package/dist/esm/node_modules/viem/_esm/utils/formatters/transactionRequest.js.map +0 -1
  565. package/dist/esm/node_modules/viem/_esm/utils/getAction.js.map +0 -1
  566. package/dist/esm/node_modules/viem/_esm/utils/hash/hashSignature.js.map +0 -1
  567. package/dist/esm/node_modules/viem/_esm/utils/hash/keccak256.js +0 -2
  568. package/dist/esm/node_modules/viem/_esm/utils/hash/keccak256.js.map +0 -1
  569. package/dist/esm/node_modules/viem/_esm/utils/hash/normalizeSignature.js.map +0 -1
  570. package/dist/esm/node_modules/viem/_esm/utils/hash/sha256.js +0 -2
  571. package/dist/esm/node_modules/viem/_esm/utils/hash/sha256.js.map +0 -1
  572. package/dist/esm/node_modules/viem/_esm/utils/hash/toEventSelector.js.map +0 -1
  573. package/dist/esm/node_modules/viem/_esm/utils/hash/toFunctionSelector.js.map +0 -1
  574. package/dist/esm/node_modules/viem/_esm/utils/hash/toSignature.js +0 -2
  575. package/dist/esm/node_modules/viem/_esm/utils/hash/toSignature.js.map +0 -1
  576. package/dist/esm/node_modules/viem/_esm/utils/hash/toSignatureHash.js.map +0 -1
  577. package/dist/esm/node_modules/viem/_esm/utils/lru.js.map +0 -1
  578. package/dist/esm/node_modules/viem/_esm/utils/observe.js.map +0 -1
  579. package/dist/esm/node_modules/viem/_esm/utils/poll.js.map +0 -1
  580. package/dist/esm/node_modules/viem/_esm/utils/promise/createBatchScheduler.js.map +0 -1
  581. package/dist/esm/node_modules/viem/_esm/utils/promise/withCache.js.map +0 -1
  582. package/dist/esm/node_modules/viem/_esm/utils/promise/withDedupe.js.map +0 -1
  583. package/dist/esm/node_modules/viem/_esm/utils/promise/withResolvers.js.map +0 -1
  584. package/dist/esm/node_modules/viem/_esm/utils/promise/withRetry.js.map +0 -1
  585. package/dist/esm/node_modules/viem/_esm/utils/promise/withTimeout.js.map +0 -1
  586. package/dist/esm/node_modules/viem/_esm/utils/regex.js.map +0 -1
  587. package/dist/esm/node_modules/viem/_esm/utils/rpc/http.js.map +0 -1
  588. package/dist/esm/node_modules/viem/_esm/utils/rpc/id.js.map +0 -1
  589. package/dist/esm/node_modules/viem/_esm/utils/signature/hashMessage.js.map +0 -1
  590. package/dist/esm/node_modules/viem/_esm/utils/signature/hashTypedData.js.map +0 -1
  591. package/dist/esm/node_modules/viem/_esm/utils/signature/recoverAddress.js.map +0 -1
  592. package/dist/esm/node_modules/viem/_esm/utils/signature/recoverPublicKey.js +0 -2
  593. package/dist/esm/node_modules/viem/_esm/utils/signature/recoverPublicKey.js.map +0 -1
  594. package/dist/esm/node_modules/viem/_esm/utils/signature/serializeSignature.js +0 -2
  595. package/dist/esm/node_modules/viem/_esm/utils/signature/serializeSignature.js.map +0 -1
  596. package/dist/esm/node_modules/viem/_esm/utils/signature/toPrefixedMessage.js.map +0 -1
  597. package/dist/esm/node_modules/viem/_esm/utils/siwe/parseSiweMessage.js.map +0 -1
  598. package/dist/esm/node_modules/viem/_esm/utils/siwe/validateSiweMessage.js.map +0 -1
  599. package/dist/esm/node_modules/viem/_esm/utils/stateOverride.js.map +0 -1
  600. package/dist/esm/node_modules/viem/_esm/utils/stringify.js.map +0 -1
  601. package/dist/esm/node_modules/viem/_esm/utils/transaction/assertRequest.js.map +0 -1
  602. package/dist/esm/node_modules/viem/_esm/utils/transaction/getTransactionType.js.map +0 -1
  603. package/dist/esm/node_modules/viem/_esm/utils/typedData.js.map +0 -1
  604. package/dist/esm/node_modules/viem/_esm/utils/uid.js.map +0 -1
  605. package/dist/esm/node_modules/viem/_esm/utils/unit/formatEther.js.map +0 -1
  606. package/dist/esm/node_modules/viem/_esm/utils/unit/formatGwei.js.map +0 -1
  607. package/dist/esm/node_modules/viem/_esm/utils/unit/formatUnits.js.map +0 -1
  608. package/dist/esm/node_modules/viem/_esm/utils/wait.js.map +0 -1
  609. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/_shortw_utils.js +0 -3
  610. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/_shortw_utils.js.map +0 -1
  611. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/curve.js.map +0 -1
  612. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/modular.js +0 -4
  613. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/modular.js.map +0 -1
  614. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/utils.js.map +0 -1
  615. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/abstract/weierstrass.js.map +0 -1
  616. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/secp256k1.js +0 -3
  617. package/dist/esm/node_modules/viem/node_modules/@noble/curves/esm/secp256k1.js.map +0 -1
  618. /package/dist/esm/node_modules/{@emotion → .pnpm/@emotion_memoize@0.8.1/node_modules/@emotion}/memoize/dist/emotion-memoize.esm.js +0 -0
  619. /package/dist/esm/node_modules/{@emotion → .pnpm/@emotion_unitless@0.8.1/node_modules/@emotion}/unitless/dist/emotion-unitless.esm.js +0 -0
  620. /package/dist/esm/node_modules/{viem → .pnpm/@noble_curves@1.9.1}/node_modules/@noble/curves/esm/abstract/curve.js +0 -0
  621. /package/dist/esm/node_modules/{viem → .pnpm/@noble_curves@1.9.1}/node_modules/@noble/curves/esm/abstract/utils.js +0 -0
  622. /package/dist/esm/node_modules/{viem → .pnpm/@noble_curves@1.9.1}/node_modules/@noble/curves/esm/abstract/weierstrass.js +0 -0
  623. /package/dist/esm/node_modules/{@noble → .pnpm/@noble_hashes@1.8.0/node_modules/@noble}/hashes/esm/_md.js +0 -0
  624. /package/dist/esm/node_modules/{@noble → .pnpm/@noble_hashes@1.8.0/node_modules/@noble}/hashes/esm/_u64.js +0 -0
  625. /package/dist/esm/node_modules/{@noble → .pnpm/@noble_hashes@1.8.0/node_modules/@noble}/hashes/esm/crypto.js +0 -0
  626. /package/dist/esm/node_modules/{@noble → .pnpm/@noble_hashes@1.8.0/node_modules/@noble}/hashes/esm/hmac.js +0 -0
  627. /package/dist/esm/node_modules/{@noble → .pnpm/@noble_hashes@1.8.0/node_modules/@noble}/hashes/esm/sha2.js +0 -0
  628. /package/dist/esm/node_modules/{@noble → .pnpm/@noble_hashes@1.8.0/node_modules/@noble}/hashes/esm/sha256.js +0 -0
  629. /package/dist/esm/node_modules/{@noble → .pnpm/@noble_hashes@1.8.0/node_modules/@noble}/hashes/esm/sha3.js +0 -0
  630. /package/dist/esm/node_modules/{@noble → .pnpm/@noble_hashes@1.8.0/node_modules/@noble}/hashes/esm/utils.js +0 -0
  631. /package/dist/esm/node_modules/{tslib → .pnpm/@rollup_plugin-typescript@11.1.6_rollup@4.52.2_tslib@2.8.1_typescript@5.9.2/node_modules/tslib}/tslib.es6.js +0 -0
  632. /package/dist/esm/node_modules/{@solana → .pnpm/@solana_wallet-adapter-base@0.9.27_@solana_web3.js@1.98.4_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_/node_modules/@solana}/wallet-adapter-base/lib/esm/errors.js +0 -0
  633. /package/dist/esm/node_modules/{@solana → .pnpm/@solana_wallet-adapter-base@0.9.27_@solana_web3.js@1.98.4_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_/node_modules/@solana}/wallet-adapter-base/lib/esm/signer.js +0 -0
  634. /package/dist/esm/node_modules/{@solana → .pnpm/@solana_wallet-adapter-base@0.9.27_@solana_web3.js@1.98.4_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10_/node_modules/@solana}/wallet-adapter-base/lib/esm/transaction.js +0 -0
  635. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/errors.js +0 -0
  636. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/errors/abiItem.js +0 -0
  637. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/errors/abiParameter.js +0 -0
  638. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/errors/signature.js +0 -0
  639. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/errors/splitParameters.js +0 -0
  640. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/errors/struct.js +0 -0
  641. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/formatAbiItem.js +0 -0
  642. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/formatAbiParameter.js +0 -0
  643. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/formatAbiParameters.js +0 -0
  644. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/parseAbi.js +0 -0
  645. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/parseAbiItem.js +0 -0
  646. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/parseAbiParameters.js +0 -0
  647. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/runtime/cache.js +0 -0
  648. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/runtime/signatures.js +0 -0
  649. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/runtime/structs.js +0 -0
  650. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/human-readable/runtime/utils.js +0 -0
  651. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/regex.js +0 -0
  652. /package/dist/esm/node_modules/{abitype → .pnpm/abitype@1.1.0_typescript@5.9.2/node_modules/abitype}/dist/esm/version.js +0 -0
  653. /package/dist/esm/node_modules/{ethers → .pnpm/ethers@6.15.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers}/lib.esm/_version.js +0 -0
  654. /package/dist/esm/node_modules/{ethers → .pnpm/ethers@6.15.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers}/lib.esm/utils/data.js +0 -0
  655. /package/dist/esm/node_modules/{ethers → .pnpm/ethers@6.15.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers}/lib.esm/utils/errors.js +0 -0
  656. /package/dist/esm/node_modules/{ethers → .pnpm/ethers@6.15.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers}/lib.esm/utils/fixednumber.js +0 -0
  657. /package/dist/esm/node_modules/{ethers → .pnpm/ethers@6.15.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers}/lib.esm/utils/maths.js +0 -0
  658. /package/dist/esm/node_modules/{ethers → .pnpm/ethers@6.15.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers}/lib.esm/utils/properties.js +0 -0
  659. /package/dist/esm/node_modules/{ethers → .pnpm/ethers@6.15.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ethers}/lib.esm/utils/units.js +0 -0
  660. /package/dist/esm/node_modules/{eventemitter3 → .pnpm/eventemitter3@5.0.1/node_modules/eventemitter3}/index2.js +0 -0
  661. /package/dist/esm/node_modules/{eventemitter3 → .pnpm/eventemitter3@5.0.1/node_modules/eventemitter3}/index2.js.map +0 -0
  662. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/AbiConstructor.js +0 -0
  663. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/AbiFunction.js +0 -0
  664. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/Address.js +0 -0
  665. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/Authorization.js +0 -0
  666. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/BlockOverrides.js +0 -0
  667. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/Bytes.js +0 -0
  668. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/Caches.js +0 -0
  669. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/Errors.js +0 -0
  670. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/Hex.js +0 -0
  671. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/Json.js +0 -0
  672. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/Signature.js +0 -0
  673. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/Solidity.js +0 -0
  674. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/Withdrawal.js +0 -0
  675. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/internal/abiItem.js +0 -0
  676. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/internal/abiParameters.js +0 -0
  677. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/internal/bytes.js +0 -0
  678. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/internal/cursor.js +0 -0
  679. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/internal/errors.js +0 -0
  680. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/internal/hex.js +0 -0
  681. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/internal/lru.js +0 -0
  682. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/core/version.js +0 -0
  683. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/erc6492/SignatureErc6492.js +0 -0
  684. /package/dist/esm/node_modules/{ox → .pnpm/ox@0.9.6_typescript@5.9.2/node_modules/ox}/_esm/erc8010/SignatureErc8010.js +0 -0
  685. /package/dist/esm/node_modules/{stylis → .pnpm/stylis@4.3.2/node_modules/stylis}/src/Enum.js +0 -0
  686. /package/dist/esm/node_modules/{stylis → .pnpm/stylis@4.3.2/node_modules/stylis}/src/Middleware.js +0 -0
  687. /package/dist/esm/node_modules/{stylis → .pnpm/stylis@4.3.2/node_modules/stylis}/src/Parser.js +0 -0
  688. /package/dist/esm/node_modules/{stylis → .pnpm/stylis@4.3.2/node_modules/stylis}/src/Prefixer.js +0 -0
  689. /package/dist/esm/node_modules/{stylis → .pnpm/stylis@4.3.2/node_modules/stylis}/src/Serializer.js +0 -0
  690. /package/dist/esm/node_modules/{stylis → .pnpm/stylis@4.3.2/node_modules/stylis}/src/Tokenizer.js +0 -0
  691. /package/dist/esm/node_modules/{stylis → .pnpm/stylis@4.3.2/node_modules/stylis}/src/Utility.js +0 -0
  692. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/accounts/utils/parseAccount.js +0 -0
  693. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/accounts/utils/publicKeyToAddress.js +0 -0
  694. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/ens/getEnsAddress.js +0 -0
  695. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/ens/getEnsAvatar.js +0 -0
  696. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/ens/getEnsName.js +0 -0
  697. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/ens/getEnsResolver.js +0 -0
  698. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/ens/getEnsText.js +0 -0
  699. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/createAccessList.js +0 -0
  700. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/createBlockFilter.js +0 -0
  701. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/createContractEventFilter.js +0 -0
  702. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/createEventFilter.js +0 -0
  703. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/createPendingTransactionFilter.js +0 -0
  704. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/estimateContractGas.js +0 -0
  705. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/estimateFeesPerGas.js +0 -0
  706. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/estimateGas.js +0 -0
  707. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/estimateMaxPriorityFeePerGas.js +0 -0
  708. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getBalance.js +0 -0
  709. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getBlobBaseFee.js +0 -0
  710. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getBlock.js +0 -0
  711. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getBlockNumber.js +0 -0
  712. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getBlockTransactionCount.js +0 -0
  713. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getChainId.js +0 -0
  714. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getCode.js +0 -0
  715. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getContractEvents.js +0 -0
  716. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getEip712Domain.js +0 -0
  717. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getFeeHistory.js +0 -0
  718. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getFilterChanges.js +0 -0
  719. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getFilterLogs.js +0 -0
  720. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getGasPrice.js +0 -0
  721. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getLogs.js +0 -0
  722. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getProof.js +0 -0
  723. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getStorageAt.js +0 -0
  724. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getTransaction.js +0 -0
  725. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getTransactionConfirmations.js +0 -0
  726. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getTransactionCount.js +0 -0
  727. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/getTransactionReceipt.js +0 -0
  728. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/multicall.js +0 -0
  729. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/readContract.js +0 -0
  730. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/simulateContract.js +0 -0
  731. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/uninstallFilter.js +0 -0
  732. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/verifyMessage.js +0 -0
  733. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/verifyTypedData.js +0 -0
  734. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/waitForTransactionReceipt.js +0 -0
  735. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/watchBlockNumber.js +0 -0
  736. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/watchBlocks.js +0 -0
  737. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/watchContractEvent.js +0 -0
  738. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/watchEvent.js +0 -0
  739. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/public/watchPendingTransactions.js +0 -0
  740. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/siwe/verifySiweMessage.js +0 -0
  741. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/wallet/prepareTransactionRequest.js +0 -0
  742. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/actions/wallet/sendRawTransaction.js +0 -0
  743. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/clients/createClient.js +0 -0
  744. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/clients/createPublicClient.js +0 -0
  745. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/clients/decorators/public.js +0 -0
  746. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/clients/transports/createTransport.js +0 -0
  747. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/clients/transports/http.js +0 -0
  748. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/constants/abis.js +0 -0
  749. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/constants/address.js +0 -0
  750. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/constants/blob.js +0 -0
  751. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/constants/contract.js +0 -0
  752. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/constants/contracts.js +0 -0
  753. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/constants/number.js +0 -0
  754. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/constants/solidity.js +0 -0
  755. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/constants/strings.js +0 -0
  756. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/constants/unit.js +0 -0
  757. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/abi.js +0 -0
  758. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/address.js +0 -0
  759. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/base.js +0 -0
  760. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/blob.js +0 -0
  761. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/block.js +0 -0
  762. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/ccip.js +0 -0
  763. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/chain.js +0 -0
  764. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/contract.js +0 -0
  765. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/cursor.js +0 -0
  766. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/data.js +0 -0
  767. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/eip712.js +0 -0
  768. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/encoding.js +0 -0
  769. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/ens.js +0 -0
  770. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/estimateGas.js +0 -0
  771. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/fee.js +0 -0
  772. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/log.js +0 -0
  773. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/node.js +0 -0
  774. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/request.js +0 -0
  775. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/rpc.js +0 -0
  776. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/stateOverride.js +0 -0
  777. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/transaction.js +0 -0
  778. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/transport.js +0 -0
  779. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/typedData.js +0 -0
  780. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/utils.js +0 -0
  781. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/errors/version.js +0 -0
  782. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/decodeAbiParameters.js +0 -0
  783. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/decodeErrorResult.js +0 -0
  784. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/decodeEventLog.js +0 -0
  785. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/decodeFunctionData.js +0 -0
  786. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/decodeFunctionResult.js +0 -0
  787. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/encodeAbiParameters.js +0 -0
  788. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/encodeDeployData.js +0 -0
  789. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/encodeErrorResult.js +0 -0
  790. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/encodeEventTopics.js +0 -0
  791. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/encodeFunctionData.js +0 -0
  792. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/encodeFunctionResult.js +0 -0
  793. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/formatAbiItem.js +0 -0
  794. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/formatAbiItemWithArgs.js +0 -0
  795. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/getAbiItem.js +0 -0
  796. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/parseEventLogs.js +0 -0
  797. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/abi/prepareEncodeFunctionData.js +0 -0
  798. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/address/getAddress.js +0 -0
  799. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/address/isAddress.js +0 -0
  800. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/address/isAddressEqual.js +0 -0
  801. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/authorization/hashAuthorization.js +0 -0
  802. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/authorization/recoverAuthorizationAddress.js +0 -0
  803. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/authorization/verifyAuthorization.js +0 -0
  804. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/blob/blobsToCommitments.js +0 -0
  805. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/blob/blobsToProofs.js +0 -0
  806. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/blob/commitmentToVersionedHash.js +0 -0
  807. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/blob/commitmentsToVersionedHashes.js +0 -0
  808. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/blob/toBlobSidecars.js +0 -0
  809. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/blob/toBlobs.js +0 -0
  810. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/buildRequest.js +0 -0
  811. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/ccip.js +0 -0
  812. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/chain/getChainContractAddress.js +0 -0
  813. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/cursor.js +0 -0
  814. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/data/concat.js +0 -0
  815. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/data/isHex.js +0 -0
  816. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/data/pad.js +0 -0
  817. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/data/size.js +0 -0
  818. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/data/slice.js +0 -0
  819. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/data/trim.js +0 -0
  820. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/encoding/fromBytes.js +0 -0
  821. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/encoding/fromHex.js +0 -0
  822. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/encoding/toBytes.js +0 -0
  823. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/encoding/toHex.js +0 -0
  824. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/encoding/toRlp.js +0 -0
  825. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/ens/avatar/parseAvatarRecord.js +0 -0
  826. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/ens/avatar/utils.js +0 -0
  827. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/ens/encodeLabelhash.js +0 -0
  828. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/ens/encodedLabelToLabelhash.js +0 -0
  829. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/ens/errors.js +0 -0
  830. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/ens/labelhash.js +0 -0
  831. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/ens/localBatchGatewayRequest.js +0 -0
  832. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/ens/namehash.js +0 -0
  833. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/ens/packetToBytes.js +0 -0
  834. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/errors/getCallError.js +0 -0
  835. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/errors/getContractError.js +0 -0
  836. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/errors/getEstimateGasError.js +0 -0
  837. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/errors/getNodeError.js +0 -0
  838. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/filters/createFilterRequestScope.js +0 -0
  839. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/formatters/block.js +0 -0
  840. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/formatters/extract.js +0 -0
  841. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/formatters/feeHistory.js +0 -0
  842. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/formatters/log.js +0 -0
  843. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/formatters/proof.js +0 -0
  844. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/formatters/transaction.js +0 -0
  845. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/formatters/transactionReceipt.js +0 -0
  846. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/formatters/transactionRequest.js +0 -0
  847. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/getAction.js +0 -0
  848. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/hash/hashSignature.js +0 -0
  849. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/hash/normalizeSignature.js +0 -0
  850. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/hash/toEventSelector.js +0 -0
  851. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/hash/toFunctionSelector.js +0 -0
  852. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/hash/toSignatureHash.js +0 -0
  853. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/lru.js +0 -0
  854. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/observe.js +0 -0
  855. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/poll.js +0 -0
  856. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/promise/createBatchScheduler.js +0 -0
  857. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/promise/withCache.js +0 -0
  858. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/promise/withDedupe.js +0 -0
  859. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/promise/withResolvers.js +0 -0
  860. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/promise/withRetry.js +0 -0
  861. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/promise/withTimeout.js +0 -0
  862. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/regex.js +0 -0
  863. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/rpc/http.js +0 -0
  864. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/rpc/id.js +0 -0
  865. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/signature/hashMessage.js +0 -0
  866. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/signature/hashTypedData.js +0 -0
  867. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/signature/recoverAddress.js +0 -0
  868. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/signature/toPrefixedMessage.js +0 -0
  869. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/siwe/parseSiweMessage.js +0 -0
  870. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/siwe/validateSiweMessage.js +0 -0
  871. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/stateOverride.js +0 -0
  872. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/stringify.js +0 -0
  873. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/transaction/assertRequest.js +0 -0
  874. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/transaction/getTransactionType.js +0 -0
  875. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/typedData.js +0 -0
  876. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/uid.js +0 -0
  877. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/unit/formatEther.js +0 -0
  878. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/unit/formatGwei.js +0 -0
  879. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/unit/formatUnits.js +0 -0
  880. /package/dist/esm/node_modules/{viem → .pnpm/viem@2.37.8_bufferutil@4.0.9_typescript@5.9.2_utf-8-validate@5.0.10/node_modules/viem}/_esm/utils/wait.js +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sources":["../../../../../../../../node_modules/abitype/dist/esm/human-readable/runtime/utils.js"],"sourcesContent":["import { bytesRegex, execTyped, integerRegex, isTupleRegex, } from '../../regex.js';\nimport { UnknownSolidityTypeError } from '../errors/abiItem.js';\nimport { InvalidFunctionModifierError, InvalidModifierError, InvalidParameterError, SolidityProtectedKeywordError, } from '../errors/abiParameter.js';\nimport { InvalidSignatureError, UnknownSignatureError, } from '../errors/signature.js';\nimport { InvalidParenthesisError } from '../errors/splitParameters.js';\nimport { getParameterCacheKey, parameterCache } from './cache.js';\nimport { eventModifiers, execConstructorSignature, execErrorSignature, execEventSignature, execFallbackSignature, execFunctionSignature, functionModifiers, isConstructorSignature, isErrorSignature, isEventSignature, isFallbackSignature, isFunctionSignature, isReceiveSignature, } from './signatures.js';\nexport function parseSignature(signature, structs = {}) {\n if (isFunctionSignature(signature))\n return parseFunctionSignature(signature, structs);\n if (isEventSignature(signature))\n return parseEventSignature(signature, structs);\n if (isErrorSignature(signature))\n return parseErrorSignature(signature, structs);\n if (isConstructorSignature(signature))\n return parseConstructorSignature(signature, structs);\n if (isFallbackSignature(signature))\n return parseFallbackSignature(signature);\n if (isReceiveSignature(signature))\n return {\n type: 'receive',\n stateMutability: 'payable',\n };\n throw new UnknownSignatureError({ signature });\n}\nexport function parseFunctionSignature(signature, structs = {}) {\n const match = execFunctionSignature(signature);\n if (!match)\n throw new InvalidSignatureError({ signature, type: 'function' });\n const inputParams = splitParameters(match.parameters);\n const inputs = [];\n const inputLength = inputParams.length;\n for (let i = 0; i < inputLength; i++) {\n inputs.push(parseAbiParameter(inputParams[i], {\n modifiers: functionModifiers,\n structs,\n type: 'function',\n }));\n }\n const outputs = [];\n if (match.returns) {\n const outputParams = splitParameters(match.returns);\n const outputLength = outputParams.length;\n for (let i = 0; i < outputLength; i++) {\n outputs.push(parseAbiParameter(outputParams[i], {\n modifiers: functionModifiers,\n structs,\n type: 'function',\n }));\n }\n }\n return {\n name: match.name,\n type: 'function',\n stateMutability: match.stateMutability ?? 'nonpayable',\n inputs,\n outputs,\n };\n}\nexport function parseEventSignature(signature, structs = {}) {\n const match = execEventSignature(signature);\n if (!match)\n throw new InvalidSignatureError({ signature, type: 'event' });\n const params = splitParameters(match.parameters);\n const abiParameters = [];\n const length = params.length;\n for (let i = 0; i < length; i++)\n abiParameters.push(parseAbiParameter(params[i], {\n modifiers: eventModifiers,\n structs,\n type: 'event',\n }));\n return { name: match.name, type: 'event', inputs: abiParameters };\n}\nexport function parseErrorSignature(signature, structs = {}) {\n const match = execErrorSignature(signature);\n if (!match)\n throw new InvalidSignatureError({ signature, type: 'error' });\n const params = splitParameters(match.parameters);\n const abiParameters = [];\n const length = params.length;\n for (let i = 0; i < length; i++)\n abiParameters.push(parseAbiParameter(params[i], { structs, type: 'error' }));\n return { name: match.name, type: 'error', inputs: abiParameters };\n}\nexport function parseConstructorSignature(signature, structs = {}) {\n const match = execConstructorSignature(signature);\n if (!match)\n throw new InvalidSignatureError({ signature, type: 'constructor' });\n const params = splitParameters(match.parameters);\n const abiParameters = [];\n const length = params.length;\n for (let i = 0; i < length; i++)\n abiParameters.push(parseAbiParameter(params[i], { structs, type: 'constructor' }));\n return {\n type: 'constructor',\n stateMutability: match.stateMutability ?? 'nonpayable',\n inputs: abiParameters,\n };\n}\nexport function parseFallbackSignature(signature) {\n const match = execFallbackSignature(signature);\n if (!match)\n throw new InvalidSignatureError({ signature, type: 'fallback' });\n return {\n type: 'fallback',\n stateMutability: match.stateMutability ?? 'nonpayable',\n };\n}\nconst abiParameterWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\\spayable)?)(?<array>(?:\\[\\d*?\\])+?)?(?:\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;\nconst abiParameterWithTupleRegex = /^\\((?<type>.+?)\\)(?<array>(?:\\[\\d*?\\])+?)?(?:\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;\nconst dynamicIntegerRegex = /^u?int$/;\nexport function parseAbiParameter(param, options) {\n // optional namespace cache by `type`\n const parameterCacheKey = getParameterCacheKey(param, options?.type, options?.structs);\n if (parameterCache.has(parameterCacheKey))\n return parameterCache.get(parameterCacheKey);\n const isTuple = isTupleRegex.test(param);\n const match = execTyped(isTuple ? abiParameterWithTupleRegex : abiParameterWithoutTupleRegex, param);\n if (!match)\n throw new InvalidParameterError({ param });\n if (match.name && isSolidityKeyword(match.name))\n throw new SolidityProtectedKeywordError({ param, name: match.name });\n const name = match.name ? { name: match.name } : {};\n const indexed = match.modifier === 'indexed' ? { indexed: true } : {};\n const structs = options?.structs ?? {};\n let type;\n let components = {};\n if (isTuple) {\n type = 'tuple';\n const params = splitParameters(match.type);\n const components_ = [];\n const length = params.length;\n for (let i = 0; i < length; i++) {\n // remove `modifiers` from `options` to prevent from being added to tuple components\n components_.push(parseAbiParameter(params[i], { structs }));\n }\n components = { components: components_ };\n }\n else if (match.type in structs) {\n type = 'tuple';\n components = { components: structs[match.type] };\n }\n else if (dynamicIntegerRegex.test(match.type)) {\n type = `${match.type}256`;\n }\n else if (match.type === 'address payable') {\n type = 'address';\n }\n else {\n type = match.type;\n if (!(options?.type === 'struct') && !isSolidityType(type))\n throw new UnknownSolidityTypeError({ type });\n }\n if (match.modifier) {\n // Check if modifier exists, but is not allowed (e.g. `indexed` in `functionModifiers`)\n if (!options?.modifiers?.has?.(match.modifier))\n throw new InvalidModifierError({\n param,\n type: options?.type,\n modifier: match.modifier,\n });\n // Check if resolved `type` is valid if there is a function modifier\n if (functionModifiers.has(match.modifier) &&\n !isValidDataLocation(type, !!match.array))\n throw new InvalidFunctionModifierError({\n param,\n type: options?.type,\n modifier: match.modifier,\n });\n }\n const abiParameter = {\n type: `${type}${match.array ?? ''}`,\n ...name,\n ...indexed,\n ...components,\n };\n parameterCache.set(parameterCacheKey, abiParameter);\n return abiParameter;\n}\n// s/o latika for this\nexport function splitParameters(params, result = [], current = '', depth = 0) {\n const length = params.trim().length;\n // biome-ignore lint/correctness/noUnreachable: recursive\n for (let i = 0; i < length; i++) {\n const char = params[i];\n const tail = params.slice(i + 1);\n switch (char) {\n case ',':\n return depth === 0\n ? splitParameters(tail, [...result, current.trim()])\n : splitParameters(tail, result, `${current}${char}`, depth);\n case '(':\n return splitParameters(tail, result, `${current}${char}`, depth + 1);\n case ')':\n return splitParameters(tail, result, `${current}${char}`, depth - 1);\n default:\n return splitParameters(tail, result, `${current}${char}`, depth);\n }\n }\n if (current === '')\n return result;\n if (depth !== 0)\n throw new InvalidParenthesisError({ current, depth });\n result.push(current.trim());\n return result;\n}\nexport function isSolidityType(type) {\n return (type === 'address' ||\n type === 'bool' ||\n type === 'function' ||\n type === 'string' ||\n bytesRegex.test(type) ||\n integerRegex.test(type));\n}\nconst protectedKeywordsRegex = /^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;\n/** @internal */\nexport function isSolidityKeyword(name) {\n return (name === 'address' ||\n name === 'bool' ||\n name === 'function' ||\n name === 'string' ||\n name === 'tuple' ||\n bytesRegex.test(name) ||\n integerRegex.test(name) ||\n protectedKeywordsRegex.test(name));\n}\n/** @internal */\nexport function isValidDataLocation(type, isArray) {\n return isArray || type === 'bytes' || type === 'string' || type === 'tuple';\n}\n//# sourceMappingURL=utils.js.map"],"names":["parseSignature","signature","structs","isFunctionSignature","parseFunctionSignature","isEventSignature","parseEventSignature","isErrorSignature","parseErrorSignature","isConstructorSignature","parseConstructorSignature","isFallbackSignature","parseFallbackSignature","isReceiveSignature","type","stateMutability","UnknownSignatureError","match","execFunctionSignature","InvalidSignatureError","inputParams","splitParameters","parameters","inputs","inputLength","length","i","push","parseAbiParameter","modifiers","functionModifiers","outputs","returns","outputParams","outputLength","name","execEventSignature","params","abiParameters","eventModifiers","execErrorSignature","execConstructorSignature","execFallbackSignature","abiParameterWithoutTupleRegex","abiParameterWithTupleRegex","dynamicIntegerRegex","param","options","parameterCacheKey","getParameterCacheKey","parameterCache","has","get","isTuple","isTupleRegex","test","execTyped","InvalidParameterError","isSolidityKeyword","SolidityProtectedKeywordError","indexed","modifier","components","components_","isSolidityType","UnknownSolidityTypeError","InvalidModifierError","isValidDataLocation","array","InvalidFunctionModifierError","abiParameter","set","result","current","depth","trim","char","tail","slice","InvalidParenthesisError","bytesRegex","integerRegex","protectedKeywordsRegex","isArray"],"mappings":"q4BAOO,SAASA,EAAeC,EAAWC,EAAU,IAChD,GAAIC,EAAoBF,GACpB,OAAOG,EAAuBH,EAAWC,GAC7C,GAAIG,EAAiBJ,GACjB,OAAOK,EAAoBL,EAAWC,GAC1C,GAAIK,EAAiBN,GACjB,OAAOO,EAAoBP,EAAWC,GAC1C,GAAIO,EAAuBR,GACvB,OAAOS,EAA0BT,EAAWC,GAChD,GAAIS,EAAoBV,GACpB,OAAOW,EAAuBX,GAClC,GAAIY,EAAmBZ,GACnB,MAAO,CACHa,KAAM,UACNC,gBAAiB,WAEzB,MAAM,IAAIC,EAAsB,CAAEf,aACtC,CACO,SAASG,EAAuBH,EAAWC,EAAU,IACxD,MAAMe,EAAQC,EAAsBjB,GACpC,IAAKgB,EACD,MAAM,IAAIE,EAAsB,CAAElB,YAAWa,KAAM,aACvD,MAAMM,EAAcC,EAAgBJ,EAAMK,YACpCC,EAAS,GACTC,EAAcJ,EAAYK,OAChC,IAAK,IAAIC,EAAI,EAAGA,EAAIF,EAAaE,IAC7BH,EAAOI,KAAKC,EAAkBR,EAAYM,GAAI,CAC1CG,UAAWC,EACX5B,UACAY,KAAM,cAGd,MAAMiB,EAAU,GAChB,GAAId,EAAMe,QAAS,CACf,MAAMC,EAAeZ,EAAgBJ,EAAMe,SACrCE,EAAeD,EAAaR,OAClC,IAAK,IAAIC,EAAI,EAAGA,EAAIQ,EAAcR,IAC9BK,EAAQJ,KAAKC,EAAkBK,EAAaP,GAAI,CAC5CG,UAAWC,EACX5B,UACAY,KAAM,aAGlB,CACA,MAAO,CACHqB,KAAMlB,EAAMkB,KACZrB,KAAM,WACNC,gBAAiBE,EAAMF,iBAAmB,aAC1CQ,SACAQ,UAER,CACO,SAASzB,EAAoBL,EAAWC,EAAU,I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ACX,CACO,SAASR,EAAelD,GAC3B,MAAiB,YAATA,GACK,SAATA,GACS,aAATA,GACS,WAATA,GACAkE,EAAWzB,KAAKzC,IAChBmE,EAAa1B,KAAKzC,EAC1B,CACA,MAAMoE,EAAyB,wZAExB,SAASxB,EAAkBvB,GAC9B,MAAiB,YAATA,GACK,SAATA,GACS,aAATA,GACS,WAATA,GACS,UAATA,GACA6C,EAAWzB,KAAKpB,IAChB8C,EAAa1B,KAAKpB,IAClB+C,EAAuB3B,KAAKpB,EACpC,CAEO,SAASgC,EAAoBrD,EAAMqE,GACtC,OAAOA,GAAoB,UAATrE,GAA6B,WAATA,GAA8B,UAATA,CAC/D","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"regex.js","sources":["../../../../../../node_modules/abitype/dist/esm/regex.js"],"sourcesContent":["// TODO: This looks cool. Need to check the performance of `new RegExp` versus defined inline though.\n// https://twitter.com/GabrielVergnaud/status/1622906834343366657\nexport function execTyped(regex, string) {\n const match = regex.exec(string);\n return match?.groups;\n}\n// `bytes<M>`: binary type of `M` bytes, `0 < M <= 32`\n// https://regexr.com/6va55\nexport const bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;\n// `(u)int<M>`: (un)signed integer type of `M` bits, `0 < M <= 256`, `M % 8 == 0`\n// https://regexr.com/6v8hp\nexport const integerRegex = /^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;\nexport const isTupleRegex = /^\\(.+?\\).*?$/;\n//# sourceMappingURL=regex.js.map"],"names":["execTyped","regex","string","match","exec","groups","bytesRegex","integerRegex","isTupleRegex"],"mappings":"AAEO,SAASA,EAAUC,EAAOC,GAC7B,MAAMC,EAAQF,EAAMG,KAAKF,GACzB,OAAOC,GAAOE,MAClB,CAGY,MAACC,EAAa,uCAGbC,EAAe,+HACfC,EAAe","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"version.js","sources":["../../../../../../node_modules/abitype/dist/esm/version.js"],"sourcesContent":["export const version = '1.1.0';\n//# sourceMappingURL=version.js.map"],"names":["version"],"mappings":"AAAY,MAACA,EAAU","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"_version.js","sources":["../../../../../node_modules/ethers/lib.esm/_version.js"],"sourcesContent":["/* Do NOT modify this file; see /src.ts/_admin/update-version.ts */\n/**\n * The current version of Ethers.\n */\nexport const version = \"6.15.0\";\n//# sourceMappingURL=_version.js.map"],"names":["version"],"mappings":"AAIY,MAACA,EAAU","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"data.js","sources":["../../../../../../node_modules/ethers/lib.esm/utils/data.js"],"sourcesContent":["/**\n * Some data helpers.\n *\n *\n * @_subsection api/utils:Data Helpers [about-data]\n */\nimport { assert, assertArgument } from \"./errors.js\";\nfunction _getBytes(value, name, copy) {\n if (value instanceof Uint8Array) {\n if (copy) {\n return new Uint8Array(value);\n }\n return value;\n }\n if (typeof (value) === \"string\" && value.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)) {\n const result = new Uint8Array((value.length - 2) / 2);\n let offset = 2;\n for (let i = 0; i < result.length; i++) {\n result[i] = parseInt(value.substring(offset, offset + 2), 16);\n offset += 2;\n }\n return result;\n }\n assertArgument(false, \"invalid BytesLike value\", name || \"value\", value);\n}\n/**\n * Get a typed Uint8Array for %%value%%. If already a Uint8Array\n * the original %%value%% is returned; if a copy is required use\n * [[getBytesCopy]].\n *\n * @see: getBytesCopy\n */\nexport function getBytes(value, name) {\n return _getBytes(value, name, false);\n}\n/**\n * Get a typed Uint8Array for %%value%%, creating a copy if necessary\n * to prevent any modifications of the returned value from being\n * reflected elsewhere.\n *\n * @see: getBytes\n */\nexport function getBytesCopy(value, name) {\n return _getBytes(value, name, true);\n}\n/**\n * Returns true if %%value%% is a valid [[HexString]].\n *\n * If %%length%% is ``true`` or a //number//, it also checks that\n * %%value%% is a valid [[DataHexString]] of %%length%% (if a //number//)\n * bytes of data (e.g. ``0x1234`` is 2 bytes).\n */\nexport function isHexString(value, length) {\n if (typeof (value) !== \"string\" || !value.match(/^0x[0-9A-Fa-f]*$/)) {\n return false;\n }\n if (typeof (length) === \"number\" && value.length !== 2 + 2 * length) {\n return false;\n }\n if (length === true && (value.length % 2) !== 0) {\n return false;\n }\n return true;\n}\n/**\n * Returns true if %%value%% is a valid representation of arbitrary\n * data (i.e. a valid [[DataHexString]] or a Uint8Array).\n */\nexport function isBytesLike(value) {\n return (isHexString(value, true) || (value instanceof Uint8Array));\n}\nconst HexCharacters = \"0123456789abcdef\";\n/**\n * Returns a [[DataHexString]] representation of %%data%%.\n */\nexport function hexlify(data) {\n const bytes = getBytes(data);\n let result = \"0x\";\n for (let i = 0; i < bytes.length; i++) {\n const v = bytes[i];\n result += HexCharacters[(v & 0xf0) >> 4] + HexCharacters[v & 0x0f];\n }\n return result;\n}\n/**\n * Returns a [[DataHexString]] by concatenating all values\n * within %%data%%.\n */\nexport function concat(datas) {\n return \"0x\" + datas.map((d) => hexlify(d).substring(2)).join(\"\");\n}\n/**\n * Returns the length of %%data%%, in bytes.\n */\nexport function dataLength(data) {\n if (isHexString(data, true)) {\n return (data.length - 2) / 2;\n }\n return getBytes(data).length;\n}\n/**\n * Returns a [[DataHexString]] by slicing %%data%% from the %%start%%\n * offset to the %%end%% offset.\n *\n * By default %%start%% is 0 and %%end%% is the length of %%data%%.\n */\nexport function dataSlice(data, start, end) {\n const bytes = getBytes(data);\n if (end != null && end > bytes.length) {\n assert(false, \"cannot slice beyond data bounds\", \"BUFFER_OVERRUN\", {\n buffer: bytes, length: bytes.length, offset: end\n });\n }\n return hexlify(bytes.slice((start == null) ? 0 : start, (end == null) ? bytes.length : end));\n}\n/**\n * Return the [[DataHexString]] result by stripping all **leading**\n ** zero bytes from %%data%%.\n */\nexport function stripZerosLeft(data) {\n let bytes = hexlify(data).substring(2);\n while (bytes.startsWith(\"00\")) {\n bytes = bytes.substring(2);\n }\n return \"0x\" + bytes;\n}\nfunction zeroPad(data, length, left) {\n const bytes = getBytes(data);\n assert(length >= bytes.length, \"padding exceeds data length\", \"BUFFER_OVERRUN\", {\n buffer: new Uint8Array(bytes),\n length: length,\n offset: length + 1\n });\n const result = new Uint8Array(length);\n result.fill(0);\n if (left) {\n result.set(bytes, length - bytes.length);\n }\n else {\n result.set(bytes, 0);\n }\n return hexlify(result);\n}\n/**\n * Return the [[DataHexString]] of %%data%% padded on the **left**\n * to %%length%% bytes.\n *\n * If %%data%% already exceeds %%length%%, a [[BufferOverrunError]] is\n * thrown.\n *\n * This pads data the same as **values** are in Solidity\n * (e.g. ``uint128``).\n */\nexport function zeroPadValue(data, length) {\n return zeroPad(data, length, true);\n}\n/**\n * Return the [[DataHexString]] of %%data%% padded on the **right**\n * to %%length%% bytes.\n *\n * If %%data%% already exceeds %%length%%, a [[BufferOverrunError]] is\n * thrown.\n *\n * This pads data the same as **bytes** are in Solidity\n * (e.g. ``bytes16``).\n */\nexport function zeroPadBytes(data, length) {\n return zeroPad(data, length, false);\n}\n//# sourceMappingURL=data.js.map"],"names":["getBytes","value","name","Uint8Array","match","result","length","offset","i","parseInt","substring","assertArgument","_getBytes"],"mappings":"6CAgCO,SAASA,EAASC,EAAOC,GAC5B,OA1BJ,SAAmBD,EAAOC,GACtB,GAAID,aAAiBE,WAIjB,OAAOF,EAEX,GAAuB,iBAAnB,GAA+BA,EAAMG,MAAM,8BAA+B,CAC1E,MAAMC,EAAS,IAAIF,YAAYF,EAAMK,OAAS,GAAK,GACnD,IAAIC,EAAS,EACb,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAAOC,OAAQE,IAC/BH,EAAOG,GAAKC,SAASR,EAAMS,UAAUH,EAAQA,EAAS,GAAI,IAC1DA,GAAU,EAEd,OAAOF,CACX,CACAM,GAAe,EAAO,0BAA2BT,EAAiBD,EACtE,CASWW,CAAUX,EAAOC,EAC5B","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.js","sources":["../../../../../../node_modules/ethers/lib.esm/utils/errors.js"],"sourcesContent":["/**\n * All errors in ethers include properties to ensure they are both\n * human-readable (i.e. ``.message``) and machine-readable (i.e. ``.code``).\n *\n * The [[isError]] function can be used to check the error ``code`` and\n * provide a type guard for the properties present on that error interface.\n *\n * @_section: api/utils/errors:Errors [about-errors]\n */\nimport { version } from \"../_version.js\";\nimport { defineProperties } from \"./properties.js\";\nfunction stringify(value, seen) {\n if (value == null) {\n return \"null\";\n }\n if (seen == null) {\n seen = new Set();\n }\n if (typeof (value) === \"object\") {\n if (seen.has(value)) {\n return \"[Circular]\";\n }\n seen.add(value);\n }\n if (Array.isArray(value)) {\n return \"[ \" + (value.map((v) => stringify(v, seen))).join(\", \") + \" ]\";\n }\n if (value instanceof Uint8Array) {\n const HEX = \"0123456789abcdef\";\n let result = \"0x\";\n for (let i = 0; i < value.length; i++) {\n result += HEX[value[i] >> 4];\n result += HEX[value[i] & 0xf];\n }\n return result;\n }\n if (typeof (value) === \"object\" && typeof (value.toJSON) === \"function\") {\n return stringify(value.toJSON(), seen);\n }\n switch (typeof (value)) {\n case \"boolean\":\n case \"number\":\n case \"symbol\":\n return value.toString();\n case \"bigint\":\n return BigInt(value).toString();\n case \"string\":\n return JSON.stringify(value);\n case \"object\": {\n const keys = Object.keys(value);\n keys.sort();\n return \"{ \" + keys.map((k) => `${stringify(k, seen)}: ${stringify(value[k], seen)}`).join(\", \") + \" }\";\n }\n }\n return `[ COULD NOT SERIALIZE ]`;\n}\n/**\n * Returns true if the %%error%% matches an error thrown by ethers\n * that matches the error %%code%%.\n *\n * In TypeScript environments, this can be used to check that %%error%%\n * matches an EthersError type, which means the expected properties will\n * be set.\n *\n * @See [ErrorCodes](api:ErrorCode)\n * @example\n * try {\n * // code....\n * } catch (e) {\n * if (isError(e, \"CALL_EXCEPTION\")) {\n * // The Type Guard has validated this object\n * console.log(e.data);\n * }\n * }\n */\nexport function isError(error, code) {\n return (error && error.code === code);\n}\n/**\n * Returns true if %%error%% is a [[CallExceptionError].\n */\nexport function isCallException(error) {\n return isError(error, \"CALL_EXCEPTION\");\n}\n/**\n * Returns a new Error configured to the format ethers emits errors, with\n * the %%message%%, [[api:ErrorCode]] %%code%% and additional properties\n * for the corresponding EthersError.\n *\n * Each error in ethers includes the version of ethers, a\n * machine-readable [[ErrorCode]], and depending on %%code%%, additional\n * required properties. The error message will also include the %%message%%,\n * ethers version, %%code%% and all additional properties, serialized.\n */\nexport function makeError(message, code, info) {\n let shortMessage = message;\n {\n const details = [];\n if (info) {\n if (\"message\" in info || \"code\" in info || \"name\" in info) {\n throw new Error(`value will overwrite populated values: ${stringify(info)}`);\n }\n for (const key in info) {\n if (key === \"shortMessage\") {\n continue;\n }\n const value = (info[key]);\n // try {\n details.push(key + \"=\" + stringify(value));\n // } catch (error: any) {\n // console.log(\"MMM\", error.message);\n // details.push(key + \"=[could not serialize object]\");\n // }\n }\n }\n details.push(`code=${code}`);\n details.push(`version=${version}`);\n if (details.length) {\n message += \" (\" + details.join(\", \") + \")\";\n }\n }\n let error;\n switch (code) {\n case \"INVALID_ARGUMENT\":\n error = new TypeError(message);\n break;\n case \"NUMERIC_FAULT\":\n case \"BUFFER_OVERRUN\":\n error = new RangeError(message);\n break;\n default:\n error = new Error(message);\n }\n defineProperties(error, { code });\n if (info) {\n Object.assign(error, info);\n }\n if (error.shortMessage == null) {\n defineProperties(error, { shortMessage });\n }\n return error;\n}\n/**\n * Throws an EthersError with %%message%%, %%code%% and additional error\n * %%info%% when %%check%% is falsish..\n *\n * @see [[api:makeError]]\n */\nexport function assert(check, message, code, info) {\n if (!check) {\n throw makeError(message, code, info);\n }\n}\n/**\n * A simple helper to simply ensuring provided arguments match expected\n * constraints, throwing if not.\n *\n * In TypeScript environments, the %%check%% has been asserted true, so\n * any further code does not need additional compile-time checks.\n */\nexport function assertArgument(check, message, name, value) {\n assert(check, message, \"INVALID_ARGUMENT\", { argument: name, value: value });\n}\nexport function assertArgumentCount(count, expectedCount, message) {\n if (message == null) {\n message = \"\";\n }\n if (message) {\n message = \": \" + message;\n }\n assert(count >= expectedCount, \"missing argument\" + message, \"MISSING_ARGUMENT\", {\n count: count,\n expectedCount: expectedCount\n });\n assert(count <= expectedCount, \"too many arguments\" + message, \"UNEXPECTED_ARGUMENT\", {\n count: count,\n expectedCount: expectedCount\n });\n}\nconst _normalizeForms = [\"NFD\", \"NFC\", \"NFKD\", \"NFKC\"].reduce((accum, form) => {\n try {\n // General test for normalize\n /* c8 ignore start */\n if (\"test\".normalize(form) !== \"test\") {\n throw new Error(\"bad\");\n }\n ;\n /* c8 ignore stop */\n if (form === \"NFD\") {\n const check = String.fromCharCode(0xe9).normalize(\"NFD\");\n const expected = String.fromCharCode(0x65, 0x0301);\n /* c8 ignore start */\n if (check !== expected) {\n throw new Error(\"broken\");\n }\n /* c8 ignore stop */\n }\n accum.push(form);\n }\n catch (error) { }\n return accum;\n}, []);\n/**\n * Throws if the normalization %%form%% is not supported.\n */\nexport function assertNormalize(form) {\n assert(_normalizeForms.indexOf(form) >= 0, \"platform missing String.prototype.normalize\", \"UNSUPPORTED_OPERATION\", {\n operation: \"String.prototype.normalize\", info: { form }\n });\n}\n/**\n * Many classes use file-scoped values to guard the constructor,\n * making it effectively private. This facilitates that pattern\n * by ensuring the %%givenGaurd%% matches the file-scoped %%guard%%,\n * throwing if not, indicating the %%className%% if provided.\n */\nexport function assertPrivate(givenGuard, guard, className) {\n if (className == null) {\n className = \"\";\n }\n if (givenGuard !== guard) {\n let method = className, operation = \"new\";\n if (className) {\n method += \".\";\n operation += \" \" + className;\n }\n assert(false, `private constructor; use ${method}from* methods`, \"UNSUPPORTED_OPERATION\", {\n operation\n });\n }\n}\n//# sourceMappingURL=errors.js.map"],"names":["stringify","value","seen","Set","has","add","Array","isArray","map","v","join","Uint8Array","HEX","result","i","length","toJSON","toString","BigInt","JSON","keys","Object","sort","k","makeError","message","code","info","error","shortMessage","details","Error","key","push","version","TypeError","RangeError","defineProperties","assign","assert","check","assertArgument","name","argument","assertPrivate","givenGuard","guard","className","method","operation","reduce","accum","form","normalize","String","fromCharCode"],"mappings":"4FAWA,SAASA,EAAUC,EAAOC,GACtB,GAAa,MAATD,EACA,MAAO,OAKX,GAHY,MAARC,IACAA,EAAO,IAAIC,KAEQ,iBAAnB,EAA6B,CAC7B,GAAID,EAAKE,IAAIH,GACT,MAAO,aAEXC,EAAKG,IAAIJ,EACb,CACA,GAAIK,MAAMC,QAAQN,GACd,MAAO,KAAQA,EAAMO,IAAKC,GAAMT,EAAUS,EAAGP,IAAQQ,KAAK,MAAQ,KAEtE,GAAIT,aAAiBU,WAAY,CAC7B,MAAMC,EAAM,mBACZ,IAAIC,EAAS,KACb,IAAK,IAAIC,EAAI,EAAGA,EAAIb,EAAMc,OAAQD,IAC9BD,GAAUD,EAAIX,EAAMa,IAAM,GAC1BD,GAAUD,EAAe,GAAXX,EAAMa,IAExB,OAAOD,CACX,CACA,GAAuB,iBAAnB,GAAyD,mBAAlBZ,EAAY,OACnD,OAAOD,EAAUC,EAAMe,SAAUd,GAErC,cAAQ,GACJ,IAAK,UACL,IAAK,SACL,IAAK,SACD,OAAOD,EAAMgB,WACjB,IAAK,SACD,OAAOC,OAAOjB,GAAOgB,WACzB,IAAK,SACD,OAAOE,KAAKnB,UAAUC,GAC1B,IAAK,SAAU,CACX,MAAMmB,EAAOC,OAAOD,KAAKnB,GAEzB,OADAmB,EAAKE,OACE,KAAOF,EAAKZ,IAAKe,GAAM,GAAGvB,EAAUuB,EAAGrB,OAAUF,EAAUC,EAAMsB,GAAIrB,MAASQ,KAAK,MAAQ,IACtG,EAEJ,MAAO,yBACX,CAuCO,SAASc,EAAUC,EAASC,EAAMC,GACrC,IA0BIC,EA1BAC,EAAeJ,EACnB,CACI,MAAMK,EAAU,GAChB,GAAIH,EAAM,CACN,GAAI,YAAaA,GAAQ,SAAUA,GAAQ,SAAUA,EACjD,MAAM,IAAII,MAAM,0CAA0C/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AAIxB,MAAM,SAGxB,CACAoB,EAAMlB,KAAKmB,EACf,CACA,MAAOxB,GAAS,CAChB,OAAOuB,GACR","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fixednumber.js","sources":["../../../../../../node_modules/ethers/lib.esm/utils/fixednumber.js"],"sourcesContent":["/**\n * The **FixedNumber** class permits using values with decimal places,\n * using fixed-pont math.\n *\n * Fixed-point math is still based on integers under-the-hood, but uses an\n * internal offset to store fractional components below, and each operation\n * corrects for this after each operation.\n *\n * @_section: api/utils/fixed-point-math:Fixed-Point Maths [about-fixed-point-math]\n */\nimport { getBytes } from \"./data.js\";\nimport { assert, assertArgument, assertPrivate } from \"./errors.js\";\nimport { getBigInt, getNumber, fromTwos, mask, toBigInt } from \"./maths.js\";\nimport { defineProperties } from \"./properties.js\";\nconst BN_N1 = BigInt(-1);\nconst BN_0 = BigInt(0);\nconst BN_1 = BigInt(1);\nconst BN_5 = BigInt(5);\nconst _guard = {};\n// Constant to pull zeros from for multipliers\nlet Zeros = \"0000\";\nwhile (Zeros.length < 80) {\n Zeros += Zeros;\n}\n// Returns a string \"1\" followed by decimal \"0\"s\nfunction getTens(decimals) {\n let result = Zeros;\n while (result.length < decimals) {\n result += result;\n }\n return BigInt(\"1\" + result.substring(0, decimals));\n}\nfunction checkValue(val, format, safeOp) {\n const width = BigInt(format.width);\n if (format.signed) {\n const limit = (BN_1 << (width - BN_1));\n assert(safeOp == null || (val >= -limit && val < limit), \"overflow\", \"NUMERIC_FAULT\", {\n operation: safeOp, fault: \"overflow\", value: val\n });\n if (val > BN_0) {\n val = fromTwos(mask(val, width), width);\n }\n else {\n val = -fromTwos(mask(-val, width), width);\n }\n }\n else {\n const limit = (BN_1 << width);\n assert(safeOp == null || (val >= 0 && val < limit), \"overflow\", \"NUMERIC_FAULT\", {\n operation: safeOp, fault: \"overflow\", value: val\n });\n val = (((val % limit) + limit) % limit) & (limit - BN_1);\n }\n return val;\n}\nfunction getFormat(value) {\n if (typeof (value) === \"number\") {\n value = `fixed128x${value}`;\n }\n let signed = true;\n let width = 128;\n let decimals = 18;\n if (typeof (value) === \"string\") {\n // Parse the format string\n if (value === \"fixed\") {\n // defaults...\n }\n else if (value === \"ufixed\") {\n signed = false;\n }\n else {\n const match = value.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);\n assertArgument(match, \"invalid fixed format\", \"format\", value);\n signed = (match[1] !== \"u\");\n width = parseInt(match[2]);\n decimals = parseInt(match[3]);\n }\n }\n else if (value) {\n // Extract the values from the object\n const v = value;\n const check = (key, type, defaultValue) => {\n if (v[key] == null) {\n return defaultValue;\n }\n assertArgument(typeof (v[key]) === type, \"invalid fixed format (\" + key + \" not \" + type + \")\", \"format.\" + key, v[key]);\n return v[key];\n };\n signed = check(\"signed\", \"boolean\", signed);\n width = check(\"width\", \"number\", width);\n decimals = check(\"decimals\", \"number\", decimals);\n }\n assertArgument((width % 8) === 0, \"invalid FixedNumber width (not byte aligned)\", \"format.width\", width);\n assertArgument(decimals <= 80, \"invalid FixedNumber decimals (too large)\", \"format.decimals\", decimals);\n const name = (signed ? \"\" : \"u\") + \"fixed\" + String(width) + \"x\" + String(decimals);\n return { signed, width, decimals, name };\n}\nfunction toString(val, decimals) {\n let negative = \"\";\n if (val < BN_0) {\n negative = \"-\";\n val *= BN_N1;\n }\n let str = val.toString();\n // No decimal point for whole values\n if (decimals === 0) {\n return (negative + str);\n }\n // Pad out to the whole component (including a whole digit)\n while (str.length <= decimals) {\n str = Zeros + str;\n }\n // Insert the decimal point\n const index = str.length - decimals;\n str = str.substring(0, index) + \".\" + str.substring(index);\n // Trim the whole component (leaving at least one 0)\n while (str[0] === \"0\" && str[1] !== \".\") {\n str = str.substring(1);\n }\n // Trim the decimal component (leaving at least one 0)\n while (str[str.length - 1] === \"0\" && str[str.length - 2] !== \".\") {\n str = str.substring(0, str.length - 1);\n }\n return (negative + str);\n}\n/**\n * A FixedNumber represents a value over its [[FixedFormat]]\n * arithmetic field.\n *\n * A FixedNumber can be used to perform math, losslessly, on\n * values which have decmial places.\n *\n * A FixedNumber has a fixed bit-width to store values in, and stores all\n * values internally by multiplying the value by 10 raised to the power of\n * %%decimals%%.\n *\n * If operations are performed that cause a value to grow too high (close to\n * positive infinity) or too low (close to negative infinity), the value\n * is said to //overflow//.\n *\n * For example, an 8-bit signed value, with 0 decimals may only be within\n * the range ``-128`` to ``127``; so ``-128 - 1`` will overflow and become\n * ``127``. Likewise, ``127 + 1`` will overflow and become ``-127``.\n *\n * Many operation have a normal and //unsafe// variant. The normal variant\n * will throw a [[NumericFaultError]] on any overflow, while the //unsafe//\n * variant will silently allow overflow, corrupting its value value.\n *\n * If operations are performed that cause a value to become too small\n * (close to zero), the value loses precison and is said to //underflow//.\n *\n * For example, a value with 1 decimal place may store a number as small\n * as ``0.1``, but the value of ``0.1 / 2`` is ``0.05``, which cannot fit\n * into 1 decimal place, so underflow occurs which means precision is lost\n * and the value becomes ``0``.\n *\n * Some operations have a normal and //signalling// variant. The normal\n * variant will silently ignore underflow, while the //signalling// variant\n * will thow a [[NumericFaultError]] on underflow.\n */\nexport class FixedNumber {\n /**\n * The specific fixed-point arithmetic field for this value.\n */\n format;\n #format;\n // The actual value (accounting for decimals)\n #val;\n // A base-10 value to multiple values by to maintain the magnitude\n #tens;\n /**\n * This is a property so console.log shows a human-meaningful value.\n *\n * @private\n */\n _value;\n // Use this when changing this file to get some typing info,\n // but then switch to any to mask the internal type\n //constructor(guard: any, value: bigint, format: _FixedFormat) {\n /**\n * @private\n */\n constructor(guard, value, format) {\n assertPrivate(guard, _guard, \"FixedNumber\");\n this.#val = value;\n this.#format = format;\n const _value = toString(value, format.decimals);\n defineProperties(this, { format: format.name, _value });\n this.#tens = getTens(format.decimals);\n }\n /**\n * If true, negative values are permitted, otherwise only\n * positive values and zero are allowed.\n */\n get signed() { return this.#format.signed; }\n /**\n * The number of bits available to store the value.\n */\n get width() { return this.#format.width; }\n /**\n * The number of decimal places in the fixed-point arithment field.\n */\n get decimals() { return this.#format.decimals; }\n /**\n * The value as an integer, based on the smallest unit the\n * [[decimals]] allow.\n */\n get value() { return this.#val; }\n #checkFormat(other) {\n assertArgument(this.format === other.format, \"incompatible format; use fixedNumber.toFormat\", \"other\", other);\n }\n #checkValue(val, safeOp) {\n /*\n const width = BigInt(this.width);\n if (this.signed) {\n const limit = (BN_1 << (width - BN_1));\n assert(safeOp == null || (val >= -limit && val < limit), \"overflow\", \"NUMERIC_FAULT\", {\n operation: <string>safeOp, fault: \"overflow\", value: val\n });\n \n if (val > BN_0) {\n val = fromTwos(mask(val, width), width);\n } else {\n val = -fromTwos(mask(-val, width), width);\n }\n \n } else {\n const masked = mask(val, width);\n assert(safeOp == null || (val >= 0 && val === masked), \"overflow\", \"NUMERIC_FAULT\", {\n operation: <string>safeOp, fault: \"overflow\", value: val\n });\n val = masked;\n }\n */\n val = checkValue(val, this.#format, safeOp);\n return new FixedNumber(_guard, val, this.#format);\n }\n #add(o, safeOp) {\n this.#checkFormat(o);\n return this.#checkValue(this.#val + o.#val, safeOp);\n }\n /**\n * Returns a new [[FixedNumber]] with the result of %%this%% added\n * to %%other%%, ignoring overflow.\n */\n addUnsafe(other) { return this.#add(other); }\n /**\n * Returns a new [[FixedNumber]] with the result of %%this%% added\n * to %%other%%. A [[NumericFaultError]] is thrown if overflow\n * occurs.\n */\n add(other) { return this.#add(other, \"add\"); }\n #sub(o, safeOp) {\n this.#checkFormat(o);\n return this.#checkValue(this.#val - o.#val, safeOp);\n }\n /**\n * Returns a new [[FixedNumber]] with the result of %%other%% subtracted\n * from %%this%%, ignoring overflow.\n */\n subUnsafe(other) { return this.#sub(other); }\n /**\n * Returns a new [[FixedNumber]] with the result of %%other%% subtracted\n * from %%this%%. A [[NumericFaultError]] is thrown if overflow\n * occurs.\n */\n sub(other) { return this.#sub(other, \"sub\"); }\n #mul(o, safeOp) {\n this.#checkFormat(o);\n return this.#checkValue((this.#val * o.#val) / this.#tens, safeOp);\n }\n /**\n * Returns a new [[FixedNumber]] with the result of %%this%% multiplied\n * by %%other%%, ignoring overflow and underflow (precision loss).\n */\n mulUnsafe(other) { return this.#mul(other); }\n /**\n * Returns a new [[FixedNumber]] with the result of %%this%% multiplied\n * by %%other%%. A [[NumericFaultError]] is thrown if overflow\n * occurs.\n */\n mul(other) { return this.#mul(other, \"mul\"); }\n /**\n * Returns a new [[FixedNumber]] with the result of %%this%% multiplied\n * by %%other%%. A [[NumericFaultError]] is thrown if overflow\n * occurs or if underflow (precision loss) occurs.\n */\n mulSignal(other) {\n this.#checkFormat(other);\n const value = this.#val * other.#val;\n assert((value % this.#tens) === BN_0, \"precision lost during signalling mul\", \"NUMERIC_FAULT\", {\n operation: \"mulSignal\", fault: \"underflow\", value: this\n });\n return this.#checkValue(value / this.#tens, \"mulSignal\");\n }\n #div(o, safeOp) {\n assert(o.#val !== BN_0, \"division by zero\", \"NUMERIC_FAULT\", {\n operation: \"div\", fault: \"divide-by-zero\", value: this\n });\n this.#checkFormat(o);\n return this.#checkValue((this.#val * this.#tens) / o.#val, safeOp);\n }\n /**\n * Returns a new [[FixedNumber]] with the result of %%this%% divided\n * by %%other%%, ignoring underflow (precision loss). A\n * [[NumericFaultError]] is thrown if overflow occurs.\n */\n divUnsafe(other) { return this.#div(other); }\n /**\n * Returns a new [[FixedNumber]] with the result of %%this%% divided\n * by %%other%%, ignoring underflow (precision loss). A\n * [[NumericFaultError]] is thrown if overflow occurs.\n */\n div(other) { return this.#div(other, \"div\"); }\n /**\n * Returns a new [[FixedNumber]] with the result of %%this%% divided\n * by %%other%%. A [[NumericFaultError]] is thrown if underflow\n * (precision loss) occurs.\n */\n divSignal(other) {\n assert(other.#val !== BN_0, \"division by zero\", \"NUMERIC_FAULT\", {\n operation: \"div\", fault: \"divide-by-zero\", value: this\n });\n this.#checkFormat(other);\n const value = (this.#val * this.#tens);\n assert((value % other.#val) === BN_0, \"precision lost during signalling div\", \"NUMERIC_FAULT\", {\n operation: \"divSignal\", fault: \"underflow\", value: this\n });\n return this.#checkValue(value / other.#val, \"divSignal\");\n }\n /**\n * Returns a comparison result between %%this%% and %%other%%.\n *\n * This is suitable for use in sorting, where ``-1`` implies %%this%%\n * is smaller, ``1`` implies %%this%% is larger and ``0`` implies\n * both are equal.\n */\n cmp(other) {\n let a = this.value, b = other.value;\n // Coerce a and b to the same magnitude\n const delta = this.decimals - other.decimals;\n if (delta > 0) {\n b *= getTens(delta);\n }\n else if (delta < 0) {\n a *= getTens(-delta);\n }\n // Comnpare\n if (a < b) {\n return -1;\n }\n if (a > b) {\n return 1;\n }\n return 0;\n }\n /**\n * Returns true if %%other%% is equal to %%this%%.\n */\n eq(other) { return this.cmp(other) === 0; }\n /**\n * Returns true if %%other%% is less than to %%this%%.\n */\n lt(other) { return this.cmp(other) < 0; }\n /**\n * Returns true if %%other%% is less than or equal to %%this%%.\n */\n lte(other) { return this.cmp(other) <= 0; }\n /**\n * Returns true if %%other%% is greater than to %%this%%.\n */\n gt(other) { return this.cmp(other) > 0; }\n /**\n * Returns true if %%other%% is greater than or equal to %%this%%.\n */\n gte(other) { return this.cmp(other) >= 0; }\n /**\n * Returns a new [[FixedNumber]] which is the largest **integer**\n * that is less than or equal to %%this%%.\n *\n * The decimal component of the result will always be ``0``.\n */\n floor() {\n let val = this.#val;\n if (this.#val < BN_0) {\n val -= this.#tens - BN_1;\n }\n val = (this.#val / this.#tens) * this.#tens;\n return this.#checkValue(val, \"floor\");\n }\n /**\n * Returns a new [[FixedNumber]] which is the smallest **integer**\n * that is greater than or equal to %%this%%.\n *\n * The decimal component of the result will always be ``0``.\n */\n ceiling() {\n let val = this.#val;\n if (this.#val > BN_0) {\n val += this.#tens - BN_1;\n }\n val = (this.#val / this.#tens) * this.#tens;\n return this.#checkValue(val, \"ceiling\");\n }\n /**\n * Returns a new [[FixedNumber]] with the decimal component\n * rounded up on ties at %%decimals%% places.\n */\n round(decimals) {\n if (decimals == null) {\n decimals = 0;\n }\n // Not enough precision to not already be rounded\n if (decimals >= this.decimals) {\n return this;\n }\n const delta = this.decimals - decimals;\n const bump = BN_5 * getTens(delta - 1);\n let value = this.value + bump;\n const tens = getTens(delta);\n value = (value / tens) * tens;\n checkValue(value, this.#format, \"round\");\n return new FixedNumber(_guard, value, this.#format);\n }\n /**\n * Returns true if %%this%% is equal to ``0``.\n */\n isZero() { return (this.#val === BN_0); }\n /**\n * Returns true if %%this%% is less than ``0``.\n */\n isNegative() { return (this.#val < BN_0); }\n /**\n * Returns the string representation of %%this%%.\n */\n toString() { return this._value; }\n /**\n * Returns a float approximation.\n *\n * Due to IEEE 754 precission (or lack thereof), this function\n * can only return an approximation and most values will contain\n * rounding errors.\n */\n toUnsafeFloat() { return parseFloat(this.toString()); }\n /**\n * Return a new [[FixedNumber]] with the same value but has had\n * its field set to %%format%%.\n *\n * This will throw if the value cannot fit into %%format%%.\n */\n toFormat(format) {\n return FixedNumber.fromString(this.toString(), format);\n }\n /**\n * Creates a new [[FixedNumber]] for %%value%% divided by\n * %%decimal%% places with %%format%%.\n *\n * This will throw a [[NumericFaultError]] if %%value%% (once adjusted\n * for %%decimals%%) cannot fit in %%format%%, either due to overflow\n * or underflow (precision loss).\n */\n static fromValue(_value, _decimals, _format) {\n const decimals = (_decimals == null) ? 0 : getNumber(_decimals);\n const format = getFormat(_format);\n let value = getBigInt(_value, \"value\");\n const delta = decimals - format.decimals;\n if (delta > 0) {\n const tens = getTens(delta);\n assert((value % tens) === BN_0, \"value loses precision for format\", \"NUMERIC_FAULT\", {\n operation: \"fromValue\", fault: \"underflow\", value: _value\n });\n value /= tens;\n }\n else if (delta < 0) {\n value *= getTens(-delta);\n }\n checkValue(value, format, \"fromValue\");\n return new FixedNumber(_guard, value, format);\n }\n /**\n * Creates a new [[FixedNumber]] for %%value%% with %%format%%.\n *\n * This will throw a [[NumericFaultError]] if %%value%% cannot fit\n * in %%format%%, either due to overflow or underflow (precision loss).\n */\n static fromString(_value, _format) {\n const match = _value.match(/^(-?)([0-9]*)\\.?([0-9]*)$/);\n assertArgument(match && (match[2].length + match[3].length) > 0, \"invalid FixedNumber string value\", \"value\", _value);\n const format = getFormat(_format);\n let whole = (match[2] || \"0\"), decimal = (match[3] || \"\");\n // Pad out the decimals\n while (decimal.length < format.decimals) {\n decimal += Zeros;\n }\n // Check precision is safe\n assert(decimal.substring(format.decimals).match(/^0*$/), \"too many decimals for format\", \"NUMERIC_FAULT\", {\n operation: \"fromString\", fault: \"underflow\", value: _value\n });\n // Remove extra padding\n decimal = decimal.substring(0, format.decimals);\n const value = BigInt(match[1] + whole + decimal);\n checkValue(value, format, \"fromString\");\n return new FixedNumber(_guard, value, format);\n }\n /**\n * Creates a new [[FixedNumber]] with the big-endian representation\n * %%value%% with %%format%%.\n *\n * This will throw a [[NumericFaultError]] if %%value%% cannot fit\n * in %%format%% due to overflow.\n */\n static fromBytes(_value, _format) {\n let value = toBigInt(getBytes(_value, \"value\"));\n const format = getFormat(_format);\n if (format.signed) {\n value = fromTwos(value, format.width);\n }\n checkValue(value, format, \"fromBytes\");\n return new FixedNumber(_guard, value, format);\n }\n}\n//const f1 = FixedNumber.fromString(\"12.56\", \"fixed16x2\");\n//const f2 = FixedNumber.fromString(\"0.3\", \"fixed16x2\");\n//console.log(f1.divSignal(f2));\n//const BUMP = FixedNumber.from(\"0.5\");\n//# sourceMappingURL=fixednumber.js.map"],"names":["BN_N1","BigInt","BN_0","BN_1","BN_5","_guard","Zeros","length","getTens","decimals","result","substring","checkValue","val","format","safeOp","width","signed","limit","assert","operation","fault","value","fromTwos","mask","getFormat","match","assertArgument","parseInt","v","check","key","type","defaultValue","name","String","FixedNumber","tens","_value","constructor","guard","assertPrivate","this","negative","str","toString","index","defineProperties","checkFormat","other","add","o","addUnsafe","sub","subUnsafe","mul","mulUnsafe","mulSignal","div","divUnsafe","divSignal","cmp","a","b","delta","eq","lt","lte","gt","gte","floor","ceiling","round","bump","isZero","isNegative","toUnsafeFloat","parseFloat","toFormat","fromString","fromValue","_decimals","_format","getNumber","getBigInt","whole","decimal","fromBytes","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WU,EAAOR,EAAQ,cACnB,IAAIsB,EAAY/B,EAAQiB,EAAOR,EAC1C,CAQA,gBAAOyE,CAAUjD,EAAQ4C,GACrB,IAAI5D,EAAQkE,EAASC,EAASnD,EAAQ,UACtC,MAAMxB,EAASW,EAAUyD,GAKzB,OAJIpE,EAAOG,SACPK,EAAQC,EAASD,EAAOR,EAAOE,QAEnCJ,EAAWU,EAAOR,EAAQ,aACnB,IAAIsB,EAAY/B,EAAQiB,EAAOR,EAC1C","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"maths.js","sources":["../../../../../../node_modules/ethers/lib.esm/utils/maths.js"],"sourcesContent":["/**\n * Some mathematic operations.\n *\n * @_subsection: api/utils:Math Helpers [about-maths]\n */\nimport { hexlify, isBytesLike } from \"./data.js\";\nimport { assert, assertArgument } from \"./errors.js\";\nconst BN_0 = BigInt(0);\nconst BN_1 = BigInt(1);\n//const BN_Max256 = (BN_1 << BigInt(256)) - BN_1;\n// IEEE 754 support 53-bits of mantissa\nconst maxValue = 0x1fffffffffffff;\n/**\n * Convert %%value%% from a twos-compliment representation of %%width%%\n * bits to its value.\n *\n * If the highest bit is ``1``, the result will be negative.\n */\nexport function fromTwos(_value, _width) {\n const value = getUint(_value, \"value\");\n const width = BigInt(getNumber(_width, \"width\"));\n assert((value >> width) === BN_0, \"overflow\", \"NUMERIC_FAULT\", {\n operation: \"fromTwos\", fault: \"overflow\", value: _value\n });\n // Top bit set; treat as a negative value\n if (value >> (width - BN_1)) {\n const mask = (BN_1 << width) - BN_1;\n return -(((~value) & mask) + BN_1);\n }\n return value;\n}\n/**\n * Convert %%value%% to a twos-compliment representation of\n * %%width%% bits.\n *\n * The result will always be positive.\n */\nexport function toTwos(_value, _width) {\n let value = getBigInt(_value, \"value\");\n const width = BigInt(getNumber(_width, \"width\"));\n const limit = (BN_1 << (width - BN_1));\n if (value < BN_0) {\n value = -value;\n assert(value <= limit, \"too low\", \"NUMERIC_FAULT\", {\n operation: \"toTwos\", fault: \"overflow\", value: _value\n });\n const mask = (BN_1 << width) - BN_1;\n return ((~value) & mask) + BN_1;\n }\n else {\n assert(value < limit, \"too high\", \"NUMERIC_FAULT\", {\n operation: \"toTwos\", fault: \"overflow\", value: _value\n });\n }\n return value;\n}\n/**\n * Mask %%value%% with a bitmask of %%bits%% ones.\n */\nexport function mask(_value, _bits) {\n const value = getUint(_value, \"value\");\n const bits = BigInt(getNumber(_bits, \"bits\"));\n return value & ((BN_1 << bits) - BN_1);\n}\n/**\n * Gets a BigInt from %%value%%. If it is an invalid value for\n * a BigInt, then an ArgumentError will be thrown for %%name%%.\n */\nexport function getBigInt(value, name) {\n switch (typeof (value)) {\n case \"bigint\": return value;\n case \"number\":\n assertArgument(Number.isInteger(value), \"underflow\", name || \"value\", value);\n assertArgument(value >= -maxValue && value <= maxValue, \"overflow\", name || \"value\", value);\n return BigInt(value);\n case \"string\":\n try {\n if (value === \"\") {\n throw new Error(\"empty string\");\n }\n if (value[0] === \"-\" && value[1] !== \"-\") {\n return -BigInt(value.substring(1));\n }\n return BigInt(value);\n }\n catch (e) {\n assertArgument(false, `invalid BigNumberish string: ${e.message}`, name || \"value\", value);\n }\n }\n assertArgument(false, \"invalid BigNumberish value\", name || \"value\", value);\n}\n/**\n * Returns %%value%% as a bigint, validating it is valid as a bigint\n * value and that it is positive.\n */\nexport function getUint(value, name) {\n const result = getBigInt(value, name);\n assert(result >= BN_0, \"unsigned value cannot be negative\", \"NUMERIC_FAULT\", {\n fault: \"overflow\", operation: \"getUint\", value\n });\n return result;\n}\nconst Nibbles = \"0123456789abcdef\";\n/*\n * Converts %%value%% to a BigInt. If %%value%% is a Uint8Array, it\n * is treated as Big Endian data.\n */\nexport function toBigInt(value) {\n if (value instanceof Uint8Array) {\n let result = \"0x0\";\n for (const v of value) {\n result += Nibbles[v >> 4];\n result += Nibbles[v & 0x0f];\n }\n return BigInt(result);\n }\n return getBigInt(value);\n}\n/**\n * Gets a //number// from %%value%%. If it is an invalid value for\n * a //number//, then an ArgumentError will be thrown for %%name%%.\n */\nexport function getNumber(value, name) {\n switch (typeof (value)) {\n case \"bigint\":\n assertArgument(value >= -maxValue && value <= maxValue, \"overflow\", name || \"value\", value);\n return Number(value);\n case \"number\":\n assertArgument(Number.isInteger(value), \"underflow\", name || \"value\", value);\n assertArgument(value >= -maxValue && value <= maxValue, \"overflow\", name || \"value\", value);\n return value;\n case \"string\":\n try {\n if (value === \"\") {\n throw new Error(\"empty string\");\n }\n return getNumber(BigInt(value), name);\n }\n catch (e) {\n assertArgument(false, `invalid numeric string: ${e.message}`, name || \"value\", value);\n }\n }\n assertArgument(false, \"invalid numeric value\", name || \"value\", value);\n}\n/**\n * Converts %%value%% to a number. If %%value%% is a Uint8Array, it\n * is treated as Big Endian data. Throws if the value is not safe.\n */\nexport function toNumber(value) {\n return getNumber(toBigInt(value));\n}\n/**\n * Converts %%value%% to a Big Endian hexstring, optionally padded to\n * %%width%% bytes.\n */\nexport function toBeHex(_value, _width) {\n const value = getUint(_value, \"value\");\n let result = value.toString(16);\n if (_width == null) {\n // Ensure the value is of even length\n if (result.length % 2) {\n result = \"0\" + result;\n }\n }\n else {\n const width = getNumber(_width, \"width\");\n assert(width * 2 >= result.length, `value exceeds width (${width} bytes)`, \"NUMERIC_FAULT\", {\n operation: \"toBeHex\",\n fault: \"overflow\",\n value: _value\n });\n // Pad the value to the required width\n while (result.length < (width * 2)) {\n result = \"0\" + result;\n }\n }\n return \"0x\" + result;\n}\n/**\n * Converts %%value%% to a Big Endian Uint8Array.\n */\nexport function toBeArray(_value) {\n const value = getUint(_value, \"value\");\n if (value === BN_0) {\n return new Uint8Array([]);\n }\n let hex = value.toString(16);\n if (hex.length % 2) {\n hex = \"0\" + hex;\n }\n const result = new Uint8Array(hex.length / 2);\n for (let i = 0; i < result.length; i++) {\n const offset = i * 2;\n result[i] = parseInt(hex.substring(offset, offset + 2), 16);\n }\n return result;\n}\n/**\n * Returns a [[HexString]] for %%value%% safe to use as a //Quantity//.\n *\n * A //Quantity// does not have and leading 0 values unless the value is\n * the literal value `0x0`. This is most commonly used for JSSON-RPC\n * numeric values.\n */\nexport function toQuantity(value) {\n let result = hexlify(isBytesLike(value) ? value : toBeArray(value)).substring(2);\n while (result.startsWith(\"0\")) {\n result = result.substring(1);\n }\n if (result === \"\") {\n result = \"0\";\n }\n return \"0x\" + result;\n}\n//# sourceMappingURL=maths.js.map"],"names":["BN_0","BigInt","BN_1","maxValue","fromTwos","_value","_width","value","getUint","width","getNumber","assert","operation","fault","mask","_bits","bits","getBigInt","name","assertArgument","Number","isInteger","Error","substring","e","message","result","Nibbles","toBigInt","Uint8Array","v"],"mappings":"yDAOA,MAAMA,EAAOC,OAAO,GACdC,EAAOD,OAAO,GAGdE,EAAW,iBAOV,SAASC,EAASC,EAAQC,GAC7B,MAAMC,EAAQC,EAAQH,EAAQ,SACxBI,EAAQR,OAAOS,EAAUJ,EAAQ,UAKvC,GAJAK,EAAQJ,GAASE,IAAWT,EAAM,WAAY,gBAAiB,CAC3DY,UAAW,WAAYC,MAAO,WAAYN,MAAOF,IAGjDE,GAAUE,EAAQP,EAAO,CAEzB,UAAYK,GADEL,GAAQO,GAASP,GACFA,EACjC,CACA,OAAOK,CACX,CA6BO,SAASO,EAAKT,EAAQU,GACzB,MAAMR,EAAQC,EAAQH,EAAQ,SACxBW,EAAOf,OAAOS,EAAUK,EAAO,SACrC,OAAOR,GAAUL,GAAQc,GAAQd,CACrC,CAKO,SAASe,EAAUV,EAAOW,GAC7B,cAAQ,GACJ,IAAK,SAAU,OAAOX,EACtB,IAAK,SAGD,OAFAY,EAAeC,OAAOC,UAAUd,GAAQ,YAAaW,GAAQ,QAASX,GACtEY,EAAeZ,IAAUJ,GAAYI,GAASJ,EAAU,WAAYe,GAAQ,QAASX,GAC9EN,OAAOM,GAClB,IAAK,SACD,IACI,GAAc,KAAVA,EACA,MAAM,IAAIe,MAAM,gBAEpB,MAAiB,MAAbf,EAAM,IAA2B,MAAbA,EAAM,IAClBN,OAAOM,EAAMgB,UAAU,IAE5BtB,OAAOM,EAClB,CACA,MAAOiB,GACHL,GAAe,EAAO,gCAAgCK,EAAEC,UAAWP,GAAQ,QAASX,EACxF,EAERY,GAAe,EAAO,6BAA8BD,GAAQ,QAASX,EACzE,CAKO,SAASC,EAAQD,EAAOW,GAC3B,MAAMQ,EAAST,EAAUV,EAAOW,GAIhC,OAHAP,EAAOe,GAAU1B,EAAM,oCAAqC,gBAAiB,CACzEa,MAAO,WAAYD,UAAW,UAAWL,UAEtCmB,CACX,CACA,MAAMC,EAAU,mBAKT,SAASC,EAASrB,GACrB,GAAIA,aAAiBsB,WAAY,CAC7B,IAAIH,EAAS,MACb,IAAK,MAAMI,KAAKvB,EACZmB,GAAUC,EAAQG,GAAK,GACvBJ,GAAUC,EAAY,GAAJG,GAEtB,OAAO7B,OAAOyB,EAClB,CACA,OAAOT,EAAUV,EACrB,CAKO,SAASG,EAAUH,EAAOW,GAC7B,cAAQ,GACJ,IAAK,SAED,OADAC,EAAeZ,IAAUJ,GAAYI,GAASJ,EAAU,WAAYe,GAAQ,QAASX,GAC9Ea,OAAOb,GAClB,IAAK,SAGD,OAFAY,EAAeC,OAAOC,UAAUd,GAAQ,YAAaW,GAAQ,QAASX,GACtEY,EAAeZ,IAAUJ,GAAYI,GAASJ,EAAU,WAAYe,GAAQ,QAASX,GAC9EA,EACX,IAAK,SACD,IACI,GAAc,KAAVA,EACA,MAAM,IAAIe,MAAM,gBAEpB,OAAOZ,EAAUT,OAAOM,GAAQW,EACpC,CACA,MAAOM,GACHL,GAAe,EAAO,2BAA2BK,EAAEC,UAAWP,GAAQ,QAASX,EACnF,EAERY,GAAe,EAAO,wBAAyBD,GAAQ,QAASX,EACpE","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"properties.js","sources":["../../../../../../node_modules/ethers/lib.esm/utils/properties.js"],"sourcesContent":["/**\n * Property helper functions.\n *\n * @_subsection api/utils:Properties [about-properties]\n */\nfunction checkType(value, type, name) {\n const types = type.split(\"|\").map(t => t.trim());\n for (let i = 0; i < types.length; i++) {\n switch (type) {\n case \"any\":\n return;\n case \"bigint\":\n case \"boolean\":\n case \"number\":\n case \"string\":\n if (typeof (value) === type) {\n return;\n }\n }\n }\n const error = new Error(`invalid value for type ${type}`);\n error.code = \"INVALID_ARGUMENT\";\n error.argument = `value.${name}`;\n error.value = value;\n throw error;\n}\n/**\n * Resolves to a new object that is a copy of %%value%%, but with all\n * values resolved.\n */\nexport async function resolveProperties(value) {\n const keys = Object.keys(value);\n const results = await Promise.all(keys.map((k) => Promise.resolve(value[k])));\n return results.reduce((accum, v, index) => {\n accum[keys[index]] = v;\n return accum;\n }, {});\n}\n/**\n * Assigns the %%values%% to %%target%% as read-only values.\n *\n * It %%types%% is specified, the values are checked.\n */\nexport function defineProperties(target, values, types) {\n for (let key in values) {\n let value = values[key];\n const type = (types ? types[key] : null);\n if (type) {\n checkType(value, type, key);\n }\n Object.defineProperty(target, key, { enumerable: true, value, writable: false });\n }\n}\n//# sourceMappingURL=properties.js.map"],"names":["defineProperties","target","values","types","key","value","Object","defineProperty","enumerable","writable"],"mappings":"AA2CO,SAASA,EAAiBC,EAAQC,EAAQC,GAC7C,IAAK,IAAIC,KAAOF,EAAQ,CACpB,IAAIG,EAAQH,EAAOE,GAKnBE,OAAOC,eAAeN,EAAQG,EAAK,CAAEI,YAAY,EAAMH,QAAOI,UAAU,GAC5E,CACJ","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"units.js","sources":["../../../../../../node_modules/ethers/lib.esm/utils/units.js"],"sourcesContent":["/**\n * Most interactions with Ethereum requires integer values, which use\n * the smallest magnitude unit.\n *\n * For example, imagine dealing with dollars and cents. Since dollars\n * are divisible, non-integer values are possible, such as ``$10.77``.\n * By using the smallest indivisible unit (i.e. cents), the value can\n * be kept as the integer ``1077``.\n *\n * When receiving decimal input from the user (as a decimal string),\n * the value should be converted to an integer and when showing a user\n * a value, the integer value should be converted to a decimal string.\n *\n * This creates a clear distinction, between values to be used by code\n * (integers) and values used for display logic to users (decimals).\n *\n * The native unit in Ethereum, //ether// is divisible to 18 decimal places,\n * where each individual unit is called a //wei//.\n *\n * @_subsection api/utils:Unit Conversion [about-units]\n */\nimport { assertArgument } from \"./errors.js\";\nimport { FixedNumber } from \"./fixednumber.js\";\nimport { getNumber } from \"./maths.js\";\nconst names = [\n \"wei\",\n \"kwei\",\n \"mwei\",\n \"gwei\",\n \"szabo\",\n \"finney\",\n \"ether\",\n];\n/**\n * Converts %%value%% into a //decimal string//, assuming %%unit%% decimal\n * places. The %%unit%% may be the number of decimal places or the name of\n * a unit (e.g. ``\"gwei\"`` for 9 decimal places).\n *\n */\nexport function formatUnits(value, unit) {\n let decimals = 18;\n if (typeof (unit) === \"string\") {\n const index = names.indexOf(unit);\n assertArgument(index >= 0, \"invalid unit\", \"unit\", unit);\n decimals = 3 * index;\n }\n else if (unit != null) {\n decimals = getNumber(unit, \"unit\");\n }\n return FixedNumber.fromValue(value, decimals, { decimals, width: 512 }).toString();\n}\n/**\n * Converts the //decimal string// %%value%% to a BigInt, assuming\n * %%unit%% decimal places. The %%unit%% may the number of decimal places\n * or the name of a unit (e.g. ``\"gwei\"`` for 9 decimal places).\n */\nexport function parseUnits(value, unit) {\n assertArgument(typeof (value) === \"string\", \"value must be a string\", \"value\", value);\n let decimals = 18;\n if (typeof (unit) === \"string\") {\n const index = names.indexOf(unit);\n assertArgument(index >= 0, \"invalid unit\", \"unit\", unit);\n decimals = 3 * index;\n }\n else if (unit != null) {\n decimals = getNumber(unit, \"unit\");\n }\n return FixedNumber.fromString(value, { decimals, width: 512 }).value;\n}\n/**\n * Converts %%value%% into a //decimal string// using 18 decimal places.\n */\nexport function formatEther(wei) {\n return formatUnits(wei, 18);\n}\n/**\n * Converts the //decimal string// %%ether%% to a BigInt, using 18\n * decimal places.\n */\nexport function parseEther(ether) {\n return parseUnits(ether, 18);\n}\n//# sourceMappingURL=units.js.map"],"names":["formatUnits","value","unit","decimals","getNumber","FixedNumber","fromValue","width","toString","formatEther","wei"],"mappings":"sFAuCO,SAASA,EAAYC,EAAOC,GAC/B,IAAIC,EAAW,GASf,OAFIA,EAAWC,EAAUF,EAAM,QAExBG,EAAYC,UAAUL,EAAOE,EAAU,CAAEA,WAAUI,MAAO,MAAOC,UAC5E,CAsBO,SAASC,EAAYC,GACxB,OAAOV,EAAYU,EAAK,GAC5B","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{getDefaultExportFromCjs as e}from"../../_virtual/_commonjsHelpers.js";import{__module as t}from"../../_virtual/index.js";!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,r,s,i){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new o(r,s||e,i),f=n?n+t:t;return e._events[f]?e._events[f].fn?e._events[f]=[e._events[f],c]:e._events[f].push(c):(e._events[f]=c,e._eventsCount++),e}function i(e,t){0===--e._eventsCount?e._events=new r:delete e._events[t]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},c.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var o=0,s=r.length,i=new Array(s);o<s;o++)i[o]=r[o].fn;return i},c.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},c.prototype.emit=function(e,t,r,o,s,i){var c=n?n+e:e;if(!this._events[c])return!1;var f,a,u=this._events[c],l=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),l){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,o),!0;case 5:return u.fn.call(u.context,t,r,o,s),!0;case 6:return u.fn.call(u.context,t,r,o,s,i),!0}for(a=1,f=new Array(l-1);a<l;a++)f[a-1]=arguments[a];u.fn.apply(u.context,f)}else{var v,p=u.length;for(a=0;a<p;a++)switch(u[a].once&&this.removeListener(e,u[a].fn,void 0,!0),l){case 1:u[a].fn.call(u[a].context);break;case 2:u[a].fn.call(u[a].context,t);break;case 3:u[a].fn.call(u[a].context,t,r);break;case 4:u[a].fn.call(u[a].context,t,r,o);break;default:if(!f)for(v=1,f=new Array(l-1);v<l;v++)f[v-1]=arguments[v];u[a].fn.apply(u[a].context,f)}}return!0},c.prototype.on=function(e,t,n){return s(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return s(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,r,o){var s=n?n+e:e;if(!this._events[s])return this;if(!t)return i(this,s),this;var c=this._events[s];if(c.fn)c.fn!==t||o&&!c.once||r&&c.context!==r||i(this,s);else{for(var f=0,a=[],u=c.length;f<u;f++)(c[f].fn!==t||o&&!c[f].once||r&&c[f].context!==r)&&a.push(c[f]);a.length?this._events[s]=1===a.length?a[0]:a:i(this,s)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&i(this,t)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c}(t);var n=e(t.exports);export{n as default};
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sources":["../../../../node_modules/eventemitter3/index.js"],"sourcesContent":["'use strict';\n\nvar has = Object.prototype.hasOwnProperty\n , prefix = '~';\n\n/**\n * Constructor to create a storage for our `EE` objects.\n * An `Events` instance is a plain object whose properties are event names.\n *\n * @constructor\n * @private\n */\nfunction Events() {}\n\n//\n// We try to not inherit from `Object.prototype`. In some engines creating an\n// instance in this way is faster than calling `Object.create(null)` directly.\n// If `Object.create(null)` is not supported we prefix the event names with a\n// character to make sure that the built-in object properties are not\n// overridden or used as an attack vector.\n//\nif (Object.create) {\n Events.prototype = Object.create(null);\n\n //\n // This hack is needed because the `__proto__` property is still inherited in\n // some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.\n //\n if (!new Events().__proto__) prefix = false;\n}\n\n/**\n * Representation of a single event listener.\n *\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} [once=false] Specify if the listener is a one-time listener.\n * @constructor\n * @private\n */\nfunction EE(fn, context, once) {\n this.fn = fn;\n this.context = context;\n this.once = once || false;\n}\n\n/**\n * Add a listener for a given event.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} context The context to invoke the listener with.\n * @param {Boolean} once Specify if the listener is a one-time listener.\n * @returns {EventEmitter}\n * @private\n */\nfunction addListener(emitter, event, fn, context, once) {\n if (typeof fn !== 'function') {\n throw new TypeError('The listener must be a function');\n }\n\n var listener = new EE(fn, context || emitter, once)\n , evt = prefix ? prefix + event : event;\n\n if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;\n else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);\n else emitter._events[evt] = [emitter._events[evt], listener];\n\n return emitter;\n}\n\n/**\n * Clear event by name.\n *\n * @param {EventEmitter} emitter Reference to the `EventEmitter` instance.\n * @param {(String|Symbol)} evt The Event name.\n * @private\n */\nfunction clearEvent(emitter, evt) {\n if (--emitter._eventsCount === 0) emitter._events = new Events();\n else delete emitter._events[evt];\n}\n\n/**\n * Minimal `EventEmitter` interface that is molded against the Node.js\n * `EventEmitter` interface.\n *\n * @constructor\n * @public\n */\nfunction EventEmitter() {\n this._events = new Events();\n this._eventsCount = 0;\n}\n\n/**\n * Return an array listing the events for which the emitter has registered\n * listeners.\n *\n * @returns {Array}\n * @public\n */\nEventEmitter.prototype.eventNames = function eventNames() {\n var names = []\n , events\n , name;\n\n if (this._eventsCount === 0) return names;\n\n for (name in (events = this._events)) {\n if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);\n }\n\n if (Object.getOwnPropertySymbols) {\n return names.concat(Object.getOwnPropertySymbols(events));\n }\n\n return names;\n};\n\n/**\n * Return the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Array} The registered listeners.\n * @public\n */\nEventEmitter.prototype.listeners = function listeners(event) {\n var evt = prefix ? prefix + event : event\n , handlers = this._events[evt];\n\n if (!handlers) return [];\n if (handlers.fn) return [handlers.fn];\n\n for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {\n ee[i] = handlers[i].fn;\n }\n\n return ee;\n};\n\n/**\n * Return the number of listeners listening to a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Number} The number of listeners.\n * @public\n */\nEventEmitter.prototype.listenerCount = function listenerCount(event) {\n var evt = prefix ? prefix + event : event\n , listeners = this._events[evt];\n\n if (!listeners) return 0;\n if (listeners.fn) return 1;\n return listeners.length;\n};\n\n/**\n * Calls each of the listeners registered for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @returns {Boolean} `true` if the event had listeners, else `false`.\n * @public\n */\nEventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return false;\n\n var listeners = this._events[evt]\n , len = arguments.length\n , args\n , i;\n\n if (listeners.fn) {\n if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);\n\n switch (len) {\n case 1: return listeners.fn.call(listeners.context), true;\n case 2: return listeners.fn.call(listeners.context, a1), true;\n case 3: return listeners.fn.call(listeners.context, a1, a2), true;\n case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;\n case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;\n case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;\n }\n\n for (i = 1, args = new Array(len -1); i < len; i++) {\n args[i - 1] = arguments[i];\n }\n\n listeners.fn.apply(listeners.context, args);\n } else {\n var length = listeners.length\n , j;\n\n for (i = 0; i < length; i++) {\n if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);\n\n switch (len) {\n case 1: listeners[i].fn.call(listeners[i].context); break;\n case 2: listeners[i].fn.call(listeners[i].context, a1); break;\n case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;\n case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;\n default:\n if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {\n args[j - 1] = arguments[j];\n }\n\n listeners[i].fn.apply(listeners[i].context, args);\n }\n }\n }\n\n return true;\n};\n\n/**\n * Add a listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.on = function on(event, fn, context) {\n return addListener(this, event, fn, context, false);\n};\n\n/**\n * Add a one-time listener for a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn The listener function.\n * @param {*} [context=this] The context to invoke the listener with.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.once = function once(event, fn, context) {\n return addListener(this, event, fn, context, true);\n};\n\n/**\n * Remove the listeners of a given event.\n *\n * @param {(String|Symbol)} event The event name.\n * @param {Function} fn Only remove the listeners that match this function.\n * @param {*} context Only remove the listeners that have this context.\n * @param {Boolean} once Only remove one-time listeners.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {\n var evt = prefix ? prefix + event : event;\n\n if (!this._events[evt]) return this;\n if (!fn) {\n clearEvent(this, evt);\n return this;\n }\n\n var listeners = this._events[evt];\n\n if (listeners.fn) {\n if (\n listeners.fn === fn &&\n (!once || listeners.once) &&\n (!context || listeners.context === context)\n ) {\n clearEvent(this, evt);\n }\n } else {\n for (var i = 0, events = [], length = listeners.length; i < length; i++) {\n if (\n listeners[i].fn !== fn ||\n (once && !listeners[i].once) ||\n (context && listeners[i].context !== context)\n ) {\n events.push(listeners[i]);\n }\n }\n\n //\n // Reset the array, or remove it completely if we have no more listeners.\n //\n if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;\n else clearEvent(this, evt);\n }\n\n return this;\n};\n\n/**\n * Remove all listeners, or those of the specified event.\n *\n * @param {(String|Symbol)} [event] The event name.\n * @returns {EventEmitter} `this`.\n * @public\n */\nEventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {\n var evt;\n\n if (event) {\n evt = prefix ? prefix + event : event;\n if (this._events[evt]) clearEvent(this, evt);\n } else {\n this._events = new Events();\n this._eventsCount = 0;\n }\n\n return this;\n};\n\n//\n// Alias methods names because people roll like that.\n//\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\nEventEmitter.prototype.addListener = EventEmitter.prototype.on;\n\n//\n// Expose the prefix.\n//\nEventEmitter.prefixed = prefix;\n\n//\n// Allow `EventEmitter` to be imported as module namespace.\n//\nEventEmitter.EventEmitter = EventEmitter;\n\n//\n// Expose the module.\n//\nif ('undefined' !== typeof module) {\n module.exports = EventEmitter;\n}\n"],"names":["has","Object","prototype","hasOwnProperty","prefix","Events","EE","fn","context","once","this","addListener","emitter","event","TypeError","listener","evt","_events","push","_eventsCount","clearEvent","EventEmitter","create","__proto__","eventNames","events","name","names","call","slice","getOwnPropertySymbols","concat","listeners","handlers","i","l","length","ee","Array","listenerCount","emit","a1","a2","a3","a4","a5","args","len","arguments","removeListener","undefined","apply","j","on","removeAllListeners","off","prefixed","module"],"mappings":"6IAEA,IAAIA,EAAMC,OAAOC,UAAUC,eACvBC,EAAS,IASb,SAASC,IAAS,CA4BlB,SAASC,EAAGC,EAAIC,EAASC,GACvBC,KAAKH,GAAKA,EACVG,KAAKF,QAAUA,EACfE,KAAKD,KAAOA,IAAQ,CACtB,CAaA,SAASE,EAAYC,EA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EAAUvB,MAClBD,GAAWwB,EAAUxB,UAAYA,GAEnCY,EAAWV,KAAMM,OAEd,CACL,IAAK,IAAIkB,EAAI,EAAGT,EAAS,GAAIW,EAASJ,EAAUI,OAAQF,EAAIE,EAAQF,KAEhEF,EAAUE,GAAG3B,KAAOA,GACnBE,IAASuB,EAAUE,GAAGzB,MACtBD,GAAWwB,EAAUE,GAAG1B,UAAYA,IAErCiB,EAAOP,KAAKc,EAAUE,IAOtBT,EAAOW,OAAQ1B,KAAKO,QAAQD,GAAyB,IAAlBS,EAAOW,OAAeX,EAAO,GAAKA,EACpEL,EAAWV,KAAMM,EAC1B,CAEE,OAAON,IACT,EASAW,EAAanB,UAAUoD,mBAAqB,SAA4BzC,GACtE,IAAIG,EAUJ,OARIH,GACFG,EAAMZ,EAASA,EAASS,EAAQA,EAC5BH,KAAKO,QAAQD,IAAMI,EAAWV,KAAMM,KAExCN,KAAKO,QAAU,IAAIZ,EACnBK,KAAKS,aAAe,GAGfT,IACT,EAKAW,EAAanB,UAAUqD,IAAMlC,EAAanB,UAAU+C,eACpD5B,EAAanB,UAAUS,YAAcU,EAAanB,UAAUmD,GAK5DhC,EAAamC,SAAWpD,EAKxBiB,EAAaA,aAAeA,EAM1BoC,UAAiBpC","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AbiConstructor.js","sources":["../../../../../../node_modules/ox/_esm/core/AbiConstructor.js"],"sourcesContent":["import * as abitype from 'abitype';\nimport * as AbiItem from './AbiItem.js';\nimport * as AbiParameters from './AbiParameters.js';\nimport * as Hex from './Hex.js';\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport function decode(...parameters) {\n const [abiConstructor, options] = (() => {\n if (Array.isArray(parameters[0])) {\n const [abi, options] = parameters;\n return [fromAbi(abi), options];\n }\n return parameters;\n })();\n const { bytecode } = options;\n if (abiConstructor.inputs.length === 0)\n return undefined;\n const data = options.data.replace(bytecode, '0x');\n return AbiParameters.decode(abiConstructor.inputs, data);\n}\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport function encode(...parameters) {\n const [abiConstructor, options] = (() => {\n if (Array.isArray(parameters[0])) {\n const [abi, options] = parameters;\n return [fromAbi(abi), options];\n }\n return parameters;\n })();\n const { bytecode, args } = options;\n return Hex.concat(bytecode, abiConstructor.inputs?.length && args?.length\n ? AbiParameters.encode(abiConstructor.inputs, args)\n : '0x');\n}\n/** @internal */\nexport function format(abiConstructor) {\n return abitype.formatAbiItem(abiConstructor);\n}\n/** @internal */\nexport function from(abiConstructor) {\n return AbiItem.from(abiConstructor);\n}\n/** @internal */\nexport function fromAbi(abi) {\n const item = abi.find((item) => item.type === 'constructor');\n if (!item)\n throw new AbiItem.NotFoundError({ name: 'constructor' });\n return item;\n}\n//# sourceMappingURL=AbiConstructor.js.map"],"names":["encode","parameters","abiConstructor","options","Array","isArray","abi","fromAbi","bytecode","args","Hex.concat","inputs","length","AbiParameters.encode","from","AbiItem.from","item","find","type","AbiItem.NotFoundError","name"],"mappings":"qIAoBO,SAASA,KAAUC,GACtB,MAAOC,EAAgBC,GAAW,MAC9B,GAAIC,MAAMC,QAAQJ,EAAW,IAAK,CAC9B,MAAOK,EAAKH,GAAWF,EACvB,MAAO,CAACM,EAAQD,GAAMH,EAC1B,CACA,OAAOF,CACV,EANiC,IAO5BO,SAAEA,EAAQC,KAAEA,GAASN,EAC3B,OAAOO,EAAWF,EAAUN,EAAeS,QAAQC,QAAUH,GAAMG,OAC7DC,EAAqBX,EAAeS,OAAQF,GAC5C,KACV,CAMO,SAASK,EAAKZ,GACjB,OAAOa,EAAab,EACxB,CAEO,SAASK,EAAQD,GACpB,MAAMU,EAAOV,EAAIW,KAAMD,GAAuB,gBAAdA,EAAKE,MACrC,IAAKF,EACD,MAAM,IAAIG,EAAsB,CAAEC,KAAM,gBAC5C,OAAOJ,CACX","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AbiFunction.js","sources":["../../../../../../node_modules/ox/_esm/core/AbiFunction.js"],"sourcesContent":["import * as abitype from 'abitype';\nimport * as AbiItem from './AbiItem.js';\nimport * as AbiParameters from './AbiParameters.js';\nimport * as Hex from './Hex.js';\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport function decodeData(...parameters) {\n const [abiFunction, data] = (() => {\n if (Array.isArray(parameters[0])) {\n const [abi, name, data] = parameters;\n return [fromAbi(abi, name), data];\n }\n return parameters;\n })();\n const { overloads } = abiFunction;\n if (Hex.size(data) < 4)\n throw new AbiItem.InvalidSelectorSizeError({ data });\n if (abiFunction.inputs.length === 0)\n return undefined;\n const item = overloads\n ? fromAbi([abiFunction, ...overloads], data)\n : abiFunction;\n if (Hex.size(data) <= 4)\n return undefined;\n return AbiParameters.decode(item.inputs, Hex.slice(data, 4));\n}\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport function decodeResult(...parameters) {\n const [abiFunction, data, options = {}] = (() => {\n if (Array.isArray(parameters[0])) {\n const [abi, name, data, options] = parameters;\n return [fromAbi(abi, name), data, options];\n }\n return parameters;\n })();\n const values = AbiParameters.decode(abiFunction.outputs, data, options);\n if (values && Object.keys(values).length === 0)\n return undefined;\n if (values && Object.keys(values).length === 1) {\n if (Array.isArray(values))\n return values[0];\n return Object.values(values)[0];\n }\n return values;\n}\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport function encodeData(...parameters) {\n const [abiFunction, args = []] = (() => {\n if (Array.isArray(parameters[0])) {\n const [abi, name, args] = parameters;\n return [fromAbi(abi, name, { args }), args];\n }\n const [abiFunction, args] = parameters;\n return [abiFunction, args];\n })();\n const { overloads } = abiFunction;\n const item = overloads\n ? fromAbi([abiFunction, ...overloads], abiFunction.name, {\n args,\n })\n : abiFunction;\n const selector = getSelector(item);\n const data = args.length > 0 ? AbiParameters.encode(item.inputs, args) : undefined;\n return data ? Hex.concat(selector, data) : selector;\n}\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport function encodeResult(...parameters) {\n const [abiFunction, output, options = {}] = (() => {\n if (Array.isArray(parameters[0])) {\n const [abi, name, output, options] = parameters;\n return [fromAbi(abi, name), output, options];\n }\n return parameters;\n })();\n const { as = 'Array' } = options;\n const values = (() => {\n if (abiFunction.outputs.length === 1)\n return [output];\n if (Array.isArray(output))\n return output;\n if (as === 'Object')\n return Object.values(output);\n return [output];\n })();\n return AbiParameters.encode(abiFunction.outputs, values);\n}\n/**\n * Formats an {@link ox#AbiFunction.AbiFunction} into a **Human Readable ABI Function**.\n *\n * @example\n * ```ts twoslash\n * import { AbiFunction } from 'ox'\n *\n * const formatted = AbiFunction.format({\n * type: 'function',\n * name: 'approve',\n * stateMutability: 'nonpayable',\n * inputs: [\n * {\n * name: 'spender',\n * type: 'address',\n * },\n * {\n * name: 'amount',\n * type: 'uint256',\n * },\n * ],\n * outputs: [{ type: 'bool' }],\n * })\n *\n * formatted\n * // ^?\n *\n *\n * ```\n *\n * @param abiFunction - The ABI Function to format.\n * @returns The formatted ABI Function.\n */\nexport function format(abiFunction) {\n return abitype.formatAbiItem(abiFunction);\n}\n/**\n * Parses an arbitrary **JSON ABI Function** or **Human Readable ABI Function** into a typed {@link ox#AbiFunction.AbiFunction}.\n *\n * @example\n * ### JSON ABIs\n *\n * ```ts twoslash\n * import { AbiFunction } from 'ox'\n *\n * const approve = AbiFunction.from({\n * type: 'function',\n * name: 'approve',\n * stateMutability: 'nonpayable',\n * inputs: [\n * {\n * name: 'spender',\n * type: 'address',\n * },\n * {\n * name: 'amount',\n * type: 'uint256',\n * },\n * ],\n * outputs: [{ type: 'bool' }],\n * })\n *\n * approve\n * //^?\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n * ```\n *\n * @example\n * ### Human Readable ABIs\n *\n * A Human Readable ABI can be parsed into a typed ABI object:\n *\n * ```ts twoslash\n * import { AbiFunction } from 'ox'\n *\n * const approve = AbiFunction.from(\n * 'function approve(address spender, uint256 amount) returns (bool)' // [!code hl]\n * )\n *\n * approve\n * //^?\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n * ```\n *\n * @example\n * It is possible to specify `struct`s along with your definitions:\n *\n * ```ts twoslash\n * import { AbiFunction } from 'ox'\n *\n * const approve = AbiFunction.from([\n * 'struct Foo { address spender; uint256 amount; }', // [!code hl]\n * 'function approve(Foo foo) returns (bool)',\n * ])\n *\n * approve\n * //^?\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n * ```\n *\n *\n *\n * @param abiFunction - The ABI Function to parse.\n * @returns Typed ABI Function.\n */\nexport function from(abiFunction, options = {}) {\n return AbiItem.from(abiFunction, options);\n}\n/**\n * Extracts an {@link ox#AbiFunction.AbiFunction} from an {@link ox#Abi.Abi} given a name and optional arguments.\n *\n * @example\n * ### Extracting by Name\n *\n * ABI Functions can be extracted by their name using the `name` option:\n *\n * ```ts twoslash\n * import { Abi, AbiFunction } from 'ox'\n *\n * const abi = Abi.from([\n * 'function foo()',\n * 'event Transfer(address owner, address to, uint256 tokenId)',\n * 'function bar(string a) returns (uint256 x)',\n * ])\n *\n * const item = AbiFunction.fromAbi(abi, 'foo') // [!code focus]\n * // ^?\n *\n *\n *\n *\n *\n *\n * ```\n *\n * @example\n * ### Extracting by Selector\n *\n * ABI Functions can be extract by their selector when {@link ox#Hex.Hex} is provided to `name`.\n *\n * ```ts twoslash\n * import { Abi, AbiFunction } from 'ox'\n *\n * const abi = Abi.from([\n * 'function foo()',\n * 'event Transfer(address owner, address to, uint256 tokenId)',\n * 'function bar(string a) returns (uint256 x)',\n * ])\n * const item = AbiFunction.fromAbi(abi, '0x095ea7b3') // [!code focus]\n * // ^?\n *\n *\n *\n *\n *\n *\n *\n *\n *\n * ```\n *\n * :::note\n *\n * Extracting via a hex selector is useful when extracting an ABI Function from an `eth_call` RPC response or\n * from a Transaction `input`.\n *\n * :::\n *\n * @param abi - The ABI to extract from.\n * @param name - The name (or selector) of the ABI item to extract.\n * @param options - Extraction options.\n * @returns The ABI item.\n */\nexport function fromAbi(abi, name, options) {\n const item = AbiItem.fromAbi(abi, name, options);\n if (item.type !== 'function')\n throw new AbiItem.NotFoundError({ name, type: 'function' });\n return item;\n}\n/**\n * Computes the [4-byte selector](https://solidity-by-example.org/function-selector/) for an {@link ox#AbiFunction.AbiFunction}.\n *\n * Useful for computing function selectors for calldata.\n *\n * @example\n * ```ts twoslash\n * import { AbiFunction } from 'ox'\n *\n * const selector = AbiFunction.getSelector('function ownerOf(uint256 tokenId)')\n * // @log: '0x6352211e'\n * ```\n *\n * @example\n * ```ts twoslash\n * import { AbiFunction } from 'ox'\n *\n * const selector = AbiFunction.getSelector({\n * inputs: [{ type: 'uint256' }],\n * name: 'ownerOf',\n * outputs: [],\n * stateMutability: 'view',\n * type: 'function'\n * })\n * // @log: '0x6352211e'\n * ```\n *\n * @param abiItem - The ABI item to compute the selector for.\n * @returns The first 4 bytes of the {@link ox#Hash.(keccak256:function)} hash of the function signature.\n */\nexport function getSelector(abiItem) {\n return AbiItem.getSelector(abiItem);\n}\n//# sourceMappingURL=AbiFunction.js.map"],"names":["encodeData","parameters","abiFunction","args","Array","isArray","abi","name","fromAbi","overloads","item","selector","getSelector","data","length","AbiParameters.encode","inputs","undefined","Hex.concat","from","options","AbiItem.from","AbiItem.fromAbi","type","AbiItem.NotFoundError","abiItem","AbiItem.getSelector"],"mappings":"mKA6CO,SAASA,KAAcC,GAC1B,MAAOC,EAAaC,EAAO,IAAM,MAC7B,GAAIC,MAAMC,QAAQJ,EAAW,IAAK,CAC9B,MAAOK,EAAKC,EAAMJ,GAAQF,EAC1B,MAAO,CAACO,EAAQF,EAAKC,EAAM,CAAEJ,SAASA,EAC1C,CACA,MAAOD,EAAaC,GAAQF,EAC5B,MAAO,CAACC,EAAaC,EACxB,EAPgC,IAQ3BM,UAAEA,GAAcP,EAChBQ,EAAOD,EACPD,EAAQ,CAACN,KAAgBO,GAAYP,EAAYK,KAAM,CACrDJ,SAEFD,EACAS,EAAWC,EAAYF,GACvBG,EAAOV,EAAKW,OAAS,EAAIC,EAAqBL,EAAKM,OAAQb,QAAQc,EACzE,OAAOJ,EAAOK,EAAWP,EAAUE,GAAQF,CAC/C,CAiKO,SAASQ,EAAKjB,EAAakB,EAAU,IACxC,OAAOC,EAAanB,EAAakB,EACrC,CAkEO,SAASZ,EAAQF,EAAKC,EAAMa,GAC/B,MAAMV,EAAOY,EAAgBhB,EAAKC,EAAMa,GACxC,GAAkB,aAAdV,EAAKa,KACL,MAAM,IAAIC,EAAsB,CAAEjB,OAAMgB,KAAM,aAClD,OAAOb,CACX,CA+BO,SAASE,EAAYa,GACxB,OAAOC,EAAoBD,EAC/B","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{BaseError as t}from"./Errors.js";import{keccak256 as e}from"./Hash.js";import{validate as n,slice as r,fromString as i}from"./Hex.js";import{isArgOfType as s,normalizeSignature as o,getAmbiguousTypes as a}from"./internal/abiItem.js";import{parseAbiItem as u}from"../../../abitype/dist/esm/human-readable/parseAbiItem.js";import{formatAbiItem as m}from"../../../abitype/dist/esm/human-readable/formatAbiItem.js";function f(t,e={}){const{prepare:n=!0}=e,r=Array.isArray(t)||"string"==typeof t?u(t):t;return{...r,...n?{hash:y(r)}:{}}}function p(t,e,i){const{args:o=[],prepare:u=!0}=i??{},m=n(e,{strict:!1}),f=t.filter(t=>m?"function"===t.type||"error"===t.type?c(t)===r(e,0,4):"event"===t.type&&y(t)===e:"name"in t&&t.name===e);if(0===f.length)throw new l({name:e});if(1===f.length)return{...f[0],...u?{hash:y(f[0])}:{}};let p;for(const t of f){if(!("inputs"in t))continue;if(!o||0===o.length){if(!t.inputs||0===t.inputs.length)return{...t,...u?{hash:y(t)}:{}};continue}if(!t.inputs)continue;if(0===t.inputs.length)continue;if(t.inputs.length!==o.length)continue;if(o.every((e,n)=>{const r="inputs"in t&&t.inputs[n];return!!r&&s(e,r)})){if(p&&"inputs"in p&&p.inputs){const e=a(t.inputs,p.inputs,o);if(e)throw new b({abiItem:t,type:e[0]},{abiItem:p,type:e[1]})}p=t}}const h=(()=>{if(p)return p;const[t,...e]=f;return{...t,overloads:e}})();if(!h)throw new l({name:e});return{...h,...u?{hash:y(h)}:{}}}function c(...t){const e=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return p(e,n)}return t[0]})();return r(y(e),0,4)}function h(...t){const e=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return p(e,n)}return t[0]})(),n="string"==typeof e?e:m(e);return o(n)}function y(...t){const n=(()=>{if(Array.isArray(t[0])){const[e,n]=t;return p(e,n)}return t[0]})();return"string"!=typeof n&&"hash"in n&&n.hash?n.hash:e(i(h(n)))}class b extends t{constructor(t,e){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${o(m(t.abiItem))}\`, and`,`\`${e.type}\` in \`${o(m(e.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class l extends t{constructor({name:t,data:e,type:n="item"}){super(`ABI ${n}${t?` with name "${t}"`:e?` with data "${e}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}export{b as AmbiguityError,l as NotFoundError,f as from,p as fromAbi,c as getSelector,h as getSignature,y as getSignatureHash};
2
- //# sourceMappingURL=AbiItem.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AbiItem.js","sources":["../../../../../../node_modules/ox/_esm/core/AbiItem.js"],"sourcesContent":["import * as abitype from 'abitype';\nimport * as Errors from './Errors.js';\nimport * as Hash from './Hash.js';\nimport * as Hex from './Hex.js';\nimport * as internal from './internal/abiItem.js';\n/**\n * Formats an {@link ox#AbiItem.AbiItem} into a **Human Readable ABI Item**.\n *\n * @example\n * ```ts twoslash\n * import { AbiItem } from 'ox'\n *\n * const formatted = AbiItem.format({\n * type: 'function',\n * name: 'approve',\n * stateMutability: 'nonpayable',\n * inputs: [\n * {\n * name: 'spender',\n * type: 'address',\n * },\n * {\n * name: 'amount',\n * type: 'uint256',\n * },\n * ],\n * outputs: [{ type: 'bool' }],\n * })\n *\n * formatted\n * // ^?\n *\n *\n * ```\n *\n * @param abiItem - The ABI Item to format.\n * @returns The formatted ABI Item .\n */\nexport function format(abiItem) {\n return abitype.formatAbiItem(abiItem);\n}\n/**\n * Parses an arbitrary **JSON ABI Item** or **Human Readable ABI Item** into a typed {@link ox#AbiItem.AbiItem}.\n *\n * @example\n * ### JSON ABIs\n *\n * ```ts twoslash\n * import { AbiItem } from 'ox'\n *\n * const abiItem = AbiItem.from({\n * type: 'function',\n * name: 'approve',\n * stateMutability: 'nonpayable',\n * inputs: [\n * {\n * name: 'spender',\n * type: 'address',\n * },\n * {\n * name: 'amount',\n * type: 'uint256',\n * },\n * ],\n * outputs: [{ type: 'bool' }],\n * })\n *\n * abiItem\n * //^?\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n * ```\n *\n * @example\n * ### Human Readable ABIs\n *\n * A Human Readable ABI can be parsed into a typed ABI object:\n *\n * ```ts twoslash\n * import { AbiItem } from 'ox'\n *\n * const abiItem = AbiItem.from(\n * 'function approve(address spender, uint256 amount) returns (bool)' // [!code hl]\n * )\n *\n * abiItem\n * //^?\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n * ```\n *\n * @example\n * It is possible to specify `struct`s along with your definitions:\n *\n * ```ts twoslash\n * import { AbiItem } from 'ox'\n *\n * const abiItem = AbiItem.from([\n * 'struct Foo { address spender; uint256 amount; }', // [!code hl]\n * 'function approve(Foo foo) returns (bool)',\n * ])\n *\n * abiItem\n * //^?\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n * ```\n *\n *\n *\n * @param abiItem - The ABI Item to parse.\n * @returns The typed ABI Item.\n */\nexport function from(abiItem, options = {}) {\n const { prepare = true } = options;\n const item = (() => {\n if (Array.isArray(abiItem))\n return abitype.parseAbiItem(abiItem);\n if (typeof abiItem === 'string')\n return abitype.parseAbiItem(abiItem);\n return abiItem;\n })();\n return {\n ...item,\n ...(prepare ? { hash: getSignatureHash(item) } : {}),\n };\n}\n/**\n * Extracts an {@link ox#AbiItem.AbiItem} from an {@link ox#Abi.Abi} given a name and optional arguments.\n *\n * @example\n * ABI Items can be extracted by their name using the `name` option:\n *\n * ```ts twoslash\n * import { Abi, AbiItem } from 'ox'\n *\n * const abi = Abi.from([\n * 'function foo()',\n * 'event Transfer(address owner, address to, uint256 tokenId)',\n * 'function bar(string a) returns (uint256 x)',\n * ])\n *\n * const item = AbiItem.fromAbi(abi, 'Transfer') // [!code focus]\n * // ^?\n *\n *\n *\n *\n *\n *\n * ```\n *\n * @example\n * ### Extracting by Selector\n *\n * ABI Items can be extract by their selector when {@link ox#Hex.Hex} is provided to `name`.\n *\n * ```ts twoslash\n * import { Abi, AbiItem } from 'ox'\n *\n * const abi = Abi.from([\n * 'function foo()',\n * 'event Transfer(address owner, address to, uint256 tokenId)',\n * 'function bar(string a) returns (uint256 x)',\n * ])\n * const item = AbiItem.fromAbi(abi, '0x095ea7b3') // [!code focus]\n * // ^?\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n * ```\n *\n * :::note\n *\n * Extracting via a hex selector is useful when extracting an ABI Item from an `eth_call` RPC response,\n * a Transaction `input`, or from Event Log `topics`.\n *\n * :::\n *\n * @param abi - The ABI to extract from.\n * @param name - The name (or selector) of the ABI item to extract.\n * @param options - Extraction options.\n * @returns The ABI item.\n */\nexport function fromAbi(abi, name, options) {\n const { args = [], prepare = true } = (options ??\n {});\n const isSelector = Hex.validate(name, { strict: false });\n const abiItems = abi.filter((abiItem) => {\n if (isSelector) {\n if (abiItem.type === 'function' || abiItem.type === 'error')\n return getSelector(abiItem) === Hex.slice(name, 0, 4);\n if (abiItem.type === 'event')\n return getSignatureHash(abiItem) === name;\n return false;\n }\n return 'name' in abiItem && abiItem.name === name;\n });\n if (abiItems.length === 0)\n throw new NotFoundError({ name: name });\n if (abiItems.length === 1)\n return {\n ...abiItems[0],\n ...(prepare ? { hash: getSignatureHash(abiItems[0]) } : {}),\n };\n let matchedAbiItem;\n for (const abiItem of abiItems) {\n if (!('inputs' in abiItem))\n continue;\n if (!args || args.length === 0) {\n if (!abiItem.inputs || abiItem.inputs.length === 0)\n return {\n ...abiItem,\n ...(prepare ? { hash: getSignatureHash(abiItem) } : {}),\n };\n continue;\n }\n if (!abiItem.inputs)\n continue;\n if (abiItem.inputs.length === 0)\n continue;\n if (abiItem.inputs.length !== args.length)\n continue;\n const matched = args.every((arg, index) => {\n const abiParameter = 'inputs' in abiItem && abiItem.inputs[index];\n if (!abiParameter)\n return false;\n return internal.isArgOfType(arg, abiParameter);\n });\n if (matched) {\n // Check for ambiguity against already matched parameters (e.g. `address` vs `bytes20`).\n if (matchedAbiItem &&\n 'inputs' in matchedAbiItem &&\n matchedAbiItem.inputs) {\n const ambiguousTypes = internal.getAmbiguousTypes(abiItem.inputs, matchedAbiItem.inputs, args);\n if (ambiguousTypes)\n throw new AmbiguityError({\n abiItem,\n type: ambiguousTypes[0],\n }, {\n abiItem: matchedAbiItem,\n type: ambiguousTypes[1],\n });\n }\n matchedAbiItem = abiItem;\n }\n }\n const abiItem = (() => {\n if (matchedAbiItem)\n return matchedAbiItem;\n const [abiItem, ...overloads] = abiItems;\n return { ...abiItem, overloads };\n })();\n if (!abiItem)\n throw new NotFoundError({ name: name });\n return {\n ...abiItem,\n ...(prepare ? { hash: getSignatureHash(abiItem) } : {}),\n };\n}\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport function getSelector(...parameters) {\n const abiItem = (() => {\n if (Array.isArray(parameters[0])) {\n const [abi, name] = parameters;\n return fromAbi(abi, name);\n }\n return parameters[0];\n })();\n return Hex.slice(getSignatureHash(abiItem), 0, 4);\n}\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport function getSignature(...parameters) {\n const abiItem = (() => {\n if (Array.isArray(parameters[0])) {\n const [abi, name] = parameters;\n return fromAbi(abi, name);\n }\n return parameters[0];\n })();\n const signature = (() => {\n if (typeof abiItem === 'string')\n return abiItem;\n return abitype.formatAbiItem(abiItem);\n })();\n return internal.normalizeSignature(signature);\n}\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport function getSignatureHash(...parameters) {\n const abiItem = (() => {\n if (Array.isArray(parameters[0])) {\n const [abi, name] = parameters;\n return fromAbi(abi, name);\n }\n return parameters[0];\n })();\n if (typeof abiItem !== 'string' && 'hash' in abiItem && abiItem.hash)\n return abiItem.hash;\n return Hash.keccak256(Hex.fromString(getSignature(abiItem)));\n}\n/**\n * Throws when ambiguous types are found on overloaded ABI items.\n *\n * @example\n * ```ts twoslash\n * import { Abi, AbiFunction } from 'ox'\n *\n * const foo = Abi.from(['function foo(address)', 'function foo(bytes20)'])\n * AbiFunction.fromAbi(foo, 'foo', {\n * args: ['0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'],\n * })\n * // @error: AbiItem.AmbiguityError: Found ambiguous types in overloaded ABI Items.\n * // @error: `bytes20` in `foo(bytes20)`, and\n * // @error: `address` in `foo(address)`\n * // @error: These types encode differently and cannot be distinguished at runtime.\n * // @error: Remove one of the ambiguous items in the ABI.\n * ```\n *\n * ### Solution\n *\n * Remove one of the ambiguous types from the ABI.\n *\n * ```ts twoslash\n * import { Abi, AbiFunction } from 'ox'\n *\n * const foo = Abi.from([\n * 'function foo(address)',\n * 'function foo(bytes20)' // [!code --]\n * ])\n * AbiFunction.fromAbi(foo, 'foo', {\n * args: ['0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'],\n * })\n * // @error: AbiItem.AmbiguityError: Found ambiguous types in overloaded ABI Items.\n * // @error: `bytes20` in `foo(bytes20)`, and\n * // @error: `address` in `foo(address)`\n * // @error: These types encode differently and cannot be distinguished at runtime.\n * // @error: Remove one of the ambiguous items in the ABI.\n * ```\n */\nexport class AmbiguityError extends Errors.BaseError {\n constructor(x, y) {\n super('Found ambiguous types in overloaded ABI Items.', {\n metaMessages: [\n // TODO: abitype to add support for signature-formatted ABI items.\n `\\`${x.type}\\` in \\`${internal.normalizeSignature(abitype.formatAbiItem(x.abiItem))}\\`, and`,\n `\\`${y.type}\\` in \\`${internal.normalizeSignature(abitype.formatAbiItem(y.abiItem))}\\``,\n '',\n 'These types encode differently and cannot be distinguished at runtime.',\n 'Remove one of the ambiguous items in the ABI.',\n ],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'AbiItem.AmbiguityError'\n });\n }\n}\n/**\n * Throws when an ABI item is not found in the ABI.\n *\n * @example\n * ```ts twoslash\n * // @noErrors\n * import { Abi, AbiFunction } from 'ox'\n *\n * const foo = Abi.from([\n * 'function foo(address)',\n * 'function bar(uint)'\n * ])\n * AbiFunction.fromAbi(foo, 'baz')\n * // @error: AbiItem.NotFoundError: ABI function with name \"baz\" not found.\n * ```\n *\n * ### Solution\n *\n * Ensure the ABI item exists on the ABI.\n *\n * ```ts twoslash\n * // @noErrors\n * import { Abi, AbiFunction } from 'ox'\n *\n * const foo = Abi.from([\n * 'function foo(address)',\n * 'function bar(uint)',\n * 'function baz(bool)' // [!code ++]\n * ])\n * AbiFunction.fromAbi(foo, 'baz')\n * ```\n */\nexport class NotFoundError extends Errors.BaseError {\n constructor({ name, data, type = 'item', }) {\n const selector = (() => {\n if (name)\n return ` with name \"${name}\"`;\n if (data)\n return ` with data \"${data}\"`;\n return '';\n })();\n super(`ABI ${type}${selector} not found.`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'AbiItem.NotFoundError'\n });\n }\n}\n/**\n * Throws when the selector size is invalid.\n *\n * @example\n * ```ts twoslash\n * import { Abi, AbiFunction } from 'ox'\n *\n * const foo = Abi.from([\n * 'function foo(address)',\n * 'function bar(uint)'\n * ])\n * AbiFunction.fromAbi(foo, '0xaaa')\n * // @error: AbiItem.InvalidSelectorSizeError: Selector size is invalid. Expected 4 bytes. Received 2 bytes (\"0xaaa\").\n * ```\n *\n * ### Solution\n *\n * Ensure the selector size is 4 bytes.\n *\n * ```ts twoslash\n * // @noErrors\n * import { Abi, AbiFunction } from 'ox'\n *\n * const foo = Abi.from([\n * 'function foo(address)',\n * 'function bar(uint)'\n * ])\n * AbiFunction.fromAbi(foo, '0x7af82b1a')\n * ```\n */\nexport class InvalidSelectorSizeError extends Errors.BaseError {\n constructor({ data }) {\n super(`Selector size is invalid. Expected 4 bytes. Received ${Hex.size(data)} bytes (\"${data}\").`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'AbiItem.InvalidSelectorSizeError'\n });\n }\n}\n//# sourceMappingURL=AbiItem.js.map"],"names":["from","abiItem","options","prepare","item","Array","isArray","abitype.parseAbiItem","hash","getSignatureHash","fromAbi","abi","name","args","isSelector","Hex.validate","strict","abiItems","filter","type","getSelector","Hex.slice","length","NotFoundError","matchedAbiItem","inputs","every","arg","index","abiParameter","internal.isArgOfType","ambiguousTypes","internal.getAmbiguousTypes","AmbiguityError","overloads","parameters","getSignature","signature","abitype.formatAbiItem","internal.normalizeSignature","Hash.keccak256","Hex.fromString","Errors.BaseError","constructor","x","y","super","metaMessages","Object","defineProperty","this","enumerable","configurable","writable","value","data"],"mappings":"kaAgJO,SAASA,EAAKC,EAASC,EAAU,IACpC,MAAMC,QAAEA,GAAU,GAASD,EACrBE,EACEC,MAAMC,QAAQL,IAEK,iBAAZA,EADAM,EAAqBN,GAGzBA,EAEX,MAAO,IACAG,KACCD,EAAU,CAAEK,KAAMC,EAAiBL,IAAU,GAEzD,CAoEO,SAASM,EAAQC,EAAKC,EAAMV,GAC/B,MAAMW,KAAEA,EAAO,GAAEV,QAAEA,GAAU,GAAUD,GACnC,GACEY,EAAaC,EAAaH,EAAM,CAAEI,QAAQ,IAC1CC,EAAWN,EAAIO,OAAQjB,GACrBa,EACqB,aAAjBb,EAAQkB,MAAwC,UAAjBlB,EAAQkB,KAChCC,EAAYnB,KAAaoB,EAAUT,EAAM,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eAAeA,KACnB,iBAGXP,OAAOC,eAAeC,KAAM,OAAQ,CAChCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVC,MAAO,yBAEf","x_google_ignoreList":[0]}
@@ -1,2 +0,0 @@
1
- import{assert as e}from"./Address.js";import{fromHex as r,size as t}from"./Bytes.js";import{BaseError as s}from"./Errors.js";import{fromBytes as n,size as a,padLeft as o,fromString as i,fromBoolean as c,fromNumber as l,padRight as m,concat as u}from"./Hex.js";import{prepareParameters as h,encode as p,decodeParameter as d}from"./internal/abiParameters.js";import{create as f}from"./internal/cursor.js";import{integerRegex as b,bytesRegex as g,arrayRegex as y}from"./Solidity.js";import{parseAbiParameters as A}from"../../../abitype/dist/esm/human-readable/parseAbiParameters.js";import{formatAbiParameters as v}from"../../../abitype/dist/esm/human-readable/formatAbiParameters.js";function w(e,s,a={}){const{as:o="Array",checksumAddress:i=!1}=a,c="string"==typeof s?r(s):s,l=f(c);if(0===t(c)&&e.length>0)throw new z;if(t(c)&&t(c)<32)throw new $({data:"string"==typeof s?s:n(s),parameters:e,size:t(c)});let m=0;const u="Array"===o?[]:{};for(let r=0;r<e.length;++r){const t=e[r];l.setPosition(m);const[s,n]=d(l,t,{checksumAddress:i,staticPosition:0});m+=n,"Array"===o?u.push(s):u[t.name??r]=s}return u}function x(e,r,t){const{checksumAddress:s=!1}={};if(e.length!==r.length)throw new I({expectedLength:e.length,givenLength:r.length});const n=h({checksumAddress:s,parameters:e,values:r}),a=p(n);return 0===a.length?"0x":a}function P(e,r){if(e.length!==r.length)throw new I({expectedLength:e.length,givenLength:r.length});const t=[];for(let s=0;s<e.length;s++){const n=e[s],a=r[s];t.push(P.encode(n,a))}return u(...t)}function j(e){return Array.isArray(e)&&"string"==typeof e[0]||"string"==typeof e?A(e):e}!function(r){r.encode=function r(t,s,n=!1){if("address"===t){const r=s;return e(r),o(r.toLowerCase(),n?32:0)}if("string"===t)return i(s);if("bytes"===t)return s;if("bool"===t)return o(c(s),n?32:1);const a=t.match(b);if(a){const[e,r,t="256"]=a,o=Number.parseInt(t,10)/8;return l(s,{size:n?32:o,signed:"int"===r})}const h=t.match(g);if(h){const[e,r]=h;if(Number.parseInt(r,10)!==(s.length-2)/2)throw new E({expectedSize:Number.parseInt(r,10),value:s});return m(s,n?32:0)}const p=t.match(y);if(p&&Array.isArray(s)){const[e,t]=p,n=[];for(let e=0;e<s.length;e++)n.push(r(t,s[e],!0));return 0===n.length?"0x":u(...n)}throw new S(t)}}(P||(P={}));class $ extends s{constructor({data:e,parameters:r,size:t}){super(`Data size of ${t} bytes is too small for given parameters.`,{metaMessages:[`Params: (${v(r)})`,`Data: ${e} (${t} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class z extends s{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class L extends s{constructor({expectedLength:e,givenLength:r,type:t}){super(`Array length mismatch for type \`${t}\`. Expected: \`${e}\`. Given: \`${r}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class E extends s{constructor({expectedSize:e,value:r}){super(`Size of bytes "${r}" (bytes${a(r)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class I extends s{constructor({expectedLength:e,givenLength:r}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${e}`,`Given length (values): ${r}`].join("\n")),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class O extends s{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class S extends s{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}export{L as ArrayLengthMismatchError,E as BytesSizeMismatchError,$ as DataSizeTooSmallError,O as InvalidArrayError,S as InvalidTypeError,I as LengthMismatchError,z as ZeroDataError,w as decode,x as encode,P as encodePacked,j as from};
2
- //# sourceMappingURL=AbiParameters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AbiParameters.js","sources":["../../../../../../node_modules/ox/_esm/core/AbiParameters.js"],"sourcesContent":["import * as abitype from 'abitype';\nimport * as Address from './Address.js';\nimport * as Bytes from './Bytes.js';\nimport * as Errors from './Errors.js';\nimport * as Hex from './Hex.js';\nimport * as internal from './internal/abiParameters.js';\nimport * as Cursor from './internal/cursor.js';\nimport * as Solidity from './Solidity.js';\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport function decode(parameters, data, options = {}) {\n const { as = 'Array', checksumAddress = false } = options;\n const bytes = typeof data === 'string' ? Bytes.fromHex(data) : data;\n const cursor = Cursor.create(bytes);\n if (Bytes.size(bytes) === 0 && parameters.length > 0)\n throw new ZeroDataError();\n if (Bytes.size(bytes) && Bytes.size(bytes) < 32)\n throw new DataSizeTooSmallError({\n data: typeof data === 'string' ? data : Hex.fromBytes(data),\n parameters: parameters,\n size: Bytes.size(bytes),\n });\n let consumed = 0;\n const values = as === 'Array' ? [] : {};\n for (let i = 0; i < parameters.length; ++i) {\n const param = parameters[i];\n cursor.setPosition(consumed);\n const [data, consumed_] = internal.decodeParameter(cursor, param, {\n checksumAddress,\n staticPosition: 0,\n });\n consumed += consumed_;\n if (as === 'Array')\n values.push(data);\n else\n values[param.name ?? i] = data;\n }\n return values;\n}\n/**\n * Encodes primitive values into ABI encoded data as per the [Application Binary Interface (ABI) Specification](https://docs.soliditylang.org/en/latest/abi-spec).\n *\n * @example\n * ```ts twoslash\n * import { AbiParameters } from 'ox'\n *\n * const data = AbiParameters.encode(\n * AbiParameters.from(['string', 'uint', 'bool']),\n * ['wagmi', 420n, true],\n * )\n * ```\n *\n * @example\n * ### JSON Parameters\n *\n * Specify **JSON ABI** Parameters as schema:\n *\n * ```ts twoslash\n * import { AbiParameters } from 'ox'\n *\n * const data = AbiParameters.encode(\n * [\n * { type: 'string', name: 'name' },\n * { type: 'uint', name: 'age' },\n * { type: 'bool', name: 'isOwner' },\n * ],\n * ['wagmi', 420n, true],\n * )\n * ```\n *\n * @param parameters - The set of ABI parameters to encode, in the shape of the `inputs` or `outputs` attribute of an ABI Item. These parameters must include valid [ABI types](https://docs.soliditylang.org/en/latest/types.html).\n * @param values - The set of primitive values that correspond to the ABI types defined in `parameters`.\n * @returns ABI encoded data.\n */\nexport function encode(parameters, values, options) {\n const { checksumAddress = false } = options ?? {};\n if (parameters.length !== values.length)\n throw new LengthMismatchError({\n expectedLength: parameters.length,\n givenLength: values.length,\n });\n // Prepare the parameters to determine dynamic types to encode.\n const preparedParameters = internal.prepareParameters({\n checksumAddress,\n parameters: parameters,\n values: values,\n });\n const data = internal.encode(preparedParameters);\n if (data.length === 0)\n return '0x';\n return data;\n}\n/**\n * Encodes an array of primitive values to a [packed ABI encoding](https://docs.soliditylang.org/en/latest/abi-spec.html#non-standard-packed-mode).\n *\n * @example\n * ```ts twoslash\n * import { AbiParameters } from 'ox'\n *\n * const encoded = AbiParameters.encodePacked(\n * ['address', 'string'],\n * ['0xd8da6bf26964af9d7eed9e03e53415d37aa96045', 'hello world'],\n * )\n * // @log: '0xd8da6bf26964af9d7eed9e03e53415d37aa9604568656c6c6f20776f726c64'\n * ```\n *\n * @param types - Set of ABI types to pack encode.\n * @param values - The set of primitive values that correspond to the ABI types defined in `types`.\n * @returns The encoded packed data.\n */\nexport function encodePacked(types, values) {\n if (types.length !== values.length)\n throw new LengthMismatchError({\n expectedLength: types.length,\n givenLength: values.length,\n });\n const data = [];\n for (let i = 0; i < types.length; i++) {\n const type = types[i];\n const value = values[i];\n data.push(encodePacked.encode(type, value));\n }\n return Hex.concat(...data);\n}\n(function (encodePacked) {\n // eslint-disable-next-line jsdoc/require-jsdoc\n function encode(type, value, isArray = false) {\n if (type === 'address') {\n const address = value;\n Address.assert(address);\n return Hex.padLeft(address.toLowerCase(), isArray ? 32 : 0);\n }\n if (type === 'string')\n return Hex.fromString(value);\n if (type === 'bytes')\n return value;\n if (type === 'bool')\n return Hex.padLeft(Hex.fromBoolean(value), isArray ? 32 : 1);\n const intMatch = type.match(Solidity.integerRegex);\n if (intMatch) {\n const [_type, baseType, bits = '256'] = intMatch;\n const size = Number.parseInt(bits, 10) / 8;\n return Hex.fromNumber(value, {\n size: isArray ? 32 : size,\n signed: baseType === 'int',\n });\n }\n const bytesMatch = type.match(Solidity.bytesRegex);\n if (bytesMatch) {\n const [_type, size] = bytesMatch;\n if (Number.parseInt(size, 10) !== (value.length - 2) / 2)\n throw new BytesSizeMismatchError({\n expectedSize: Number.parseInt(size, 10),\n value: value,\n });\n return Hex.padRight(value, isArray ? 32 : 0);\n }\n const arrayMatch = type.match(Solidity.arrayRegex);\n if (arrayMatch && Array.isArray(value)) {\n const [_type, childType] = arrayMatch;\n const data = [];\n for (let i = 0; i < value.length; i++) {\n data.push(encode(childType, value[i], true));\n }\n if (data.length === 0)\n return '0x';\n return Hex.concat(...data);\n }\n throw new InvalidTypeError(type);\n }\n encodePacked.encode = encode;\n})(encodePacked || (encodePacked = {}));\n/**\n * Formats {@link ox#AbiParameters.AbiParameters} into **Human Readable ABI Parameters**.\n *\n * @example\n * ```ts twoslash\n * import { AbiParameters } from 'ox'\n *\n * const formatted = AbiParameters.format([\n * {\n * name: 'spender',\n * type: 'address',\n * },\n * {\n * name: 'amount',\n * type: 'uint256',\n * },\n * ])\n *\n * formatted\n * // ^?\n *\n *\n * ```\n *\n * @param parameters - The ABI Parameters to format.\n * @returns The formatted ABI Parameters .\n */\nexport function format(parameters) {\n return abitype.formatAbiParameters(parameters);\n}\n/**\n * Parses arbitrary **JSON ABI Parameters** or **Human Readable ABI Parameters** into typed {@link ox#AbiParameters.AbiParameters}.\n *\n * @example\n * ### JSON Parameters\n *\n * ```ts twoslash\n * import { AbiParameters } from 'ox'\n *\n * const parameters = AbiParameters.from([\n * {\n * name: 'spender',\n * type: 'address',\n * },\n * {\n * name: 'amount',\n * type: 'uint256',\n * },\n * ])\n *\n * parameters\n * //^?\n *\n *\n *\n *\n *\n *\n *\n * ```\n *\n * @example\n * ### Human Readable Parameters\n *\n * Human Readable ABI Parameters can be parsed into a typed {@link ox#AbiParameters.AbiParameters}:\n *\n * ```ts twoslash\n * import { AbiParameters } from 'ox'\n *\n * const parameters = AbiParameters.from('address spender, uint256 amount')\n *\n * parameters\n * //^?\n *\n *\n *\n *\n *\n *\n *\n * ```\n *\n * @example\n * It is possible to specify `struct`s along with your definitions:\n *\n * ```ts twoslash\n * import { AbiParameters } from 'ox'\n *\n * const parameters = AbiParameters.from([\n * 'struct Foo { address spender; uint256 amount; }', // [!code hl]\n * 'Foo foo, address bar',\n * ])\n *\n * parameters\n * //^?\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n *\n * ```\n *\n *\n *\n * @param parameters - The ABI Parameters to parse.\n * @returns The typed ABI Parameters.\n */\nexport function from(parameters) {\n if (Array.isArray(parameters) && typeof parameters[0] === 'string')\n return abitype.parseAbiParameters(parameters);\n if (typeof parameters === 'string')\n return abitype.parseAbiParameters(parameters);\n return parameters;\n}\n/**\n * Throws when the data size is too small for the given parameters.\n *\n * @example\n * ```ts twoslash\n * import { AbiParameters } from 'ox'\n *\n * AbiParameters.decode([{ type: 'uint256' }], '0x010f')\n * // ↑ ❌ 2 bytes\n * // @error: AbiParameters.DataSizeTooSmallError: Data size of 2 bytes is too small for given parameters.\n * // @error: Params: (uint256)\n * // @error: Data: 0x010f (2 bytes)\n * ```\n *\n * ### Solution\n *\n * Pass a valid data size.\n *\n * ```ts twoslash\n * import { AbiParameters } from 'ox'\n *\n * AbiParameters.decode([{ type: 'uint256' }], '0x00000000000000000000000000000000000000000000000000000000000010f')\n * // ↑ ✅ 32 bytes\n * ```\n */\nexport class DataSizeTooSmallError extends Errors.BaseError {\n constructor({ data, parameters, size, }) {\n super(`Data size of ${size} bytes is too small for given parameters.`, {\n metaMessages: [\n `Params: (${abitype.formatAbiParameters(parameters)})`,\n `Data: ${data} (${size} bytes)`,\n ],\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'AbiParameters.DataSizeTooSmallError'\n });\n }\n}\n/**\n * Throws when zero data is provided, but data is expected.\n *\n * @example\n * ```ts twoslash\n * import { AbiParameters } from 'ox'\n *\n * AbiParameters.decode([{ type: 'uint256' }], '0x')\n * // ↑ ❌ zero data\n * // @error: AbiParameters.DataSizeTooSmallError: Data size of 2 bytes is too small for given parameters.\n * // @error: Params: (uint256)\n * // @error: Data: 0x010f (2 bytes)\n * ```\n *\n * ### Solution\n *\n * Pass valid data.\n *\n * ```ts twoslash\n * import { AbiParameters } from 'ox'\n *\n * AbiParameters.decode([{ type: 'uint256' }], '0x00000000000000000000000000000000000000000000000000000000000010f')\n * // ↑ ✅ 32 bytes\n * ```\n */\nexport class ZeroDataError extends Errors.BaseError {\n constructor() {\n super('Cannot decode zero data (\"0x\") with ABI parameters.');\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'AbiParameters.ZeroDataError'\n });\n }\n}\n/**\n * The length of the array value does not match the length specified in the corresponding ABI parameter.\n *\n * ### Example\n *\n * ```ts twoslash\n * // @noErrors\n * import { AbiParameters } from 'ox'\n * // ---cut---\n * AbiParameters.encode(AbiParameters.from('uint256[3]'), [[69n, 420n]])\n * // ↑ expected: 3 ↑ ❌ length: 2\n * // @error: AbiParameters.ArrayLengthMismatchError: ABI encoding array length mismatch\n * // @error: for type `uint256[3]`. Expected: `3`. Given: `2`.\n * ```\n *\n * ### Solution\n *\n * Pass an array of the correct length.\n *\n * ```ts twoslash\n * import { AbiParameters } from 'ox'\n * // ---cut---\n * AbiParameters.encode(AbiParameters.from(['uint256[3]']), [[69n, 420n, 69n]])\n * // ↑ ✅ length: 3\n * ```\n */\nexport class ArrayLengthMismatchError extends Errors.BaseError {\n constructor({ expectedLength, givenLength, type, }) {\n super(`Array length mismatch for type \\`${type}\\`. Expected: \\`${expectedLength}\\`. Given: \\`${givenLength}\\`.`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'AbiParameters.ArrayLengthMismatchError'\n });\n }\n}\n/**\n * The size of the bytes value does not match the size specified in the corresponding ABI parameter.\n *\n * ### Example\n *\n * ```ts twoslash\n * // @noErrors\n * import { AbiParameters } from 'ox'\n * // ---cut---\n * AbiParameters.encode(AbiParameters.from('bytes8'), [['0xdeadbeefdeadbeefdeadbeef']])\n * // ↑ expected: 8 bytes ↑ ❌ size: 12 bytes\n * // @error: BytesSizeMismatchError: Size of bytes \"0xdeadbeefdeadbeefdeadbeef\"\n * // @error: (bytes12) does not match expected size (bytes8).\n * ```\n *\n * ### Solution\n *\n * Pass a bytes value of the correct size.\n *\n * ```ts twoslash\n * import { AbiParameters } from 'ox'\n * // ---cut---\n * AbiParameters.encode(AbiParameters.from(['bytes8']), ['0xdeadbeefdeadbeef'])\n * // ↑ ✅ size: 8 bytes\n * ```\n */\nexport class BytesSizeMismatchError extends Errors.BaseError {\n constructor({ expectedSize, value, }) {\n super(`Size of bytes \"${value}\" (bytes${Hex.size(value)}) does not match expected size (bytes${expectedSize}).`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'AbiParameters.BytesSizeMismatchError'\n });\n }\n}\n/**\n * The length of the values to encode does not match the length of the ABI parameters.\n *\n * ### Example\n *\n * ```ts twoslash\n * // @noErrors\n * import { AbiParameters } from 'ox'\n * // ---cut---\n * AbiParameters.encode(AbiParameters.from(['string', 'uint256']), ['hello'])\n * // @error: LengthMismatchError: ABI encoding params/values length mismatch.\n * // @error: Expected length (params): 2\n * // @error: Given length (values): 1\n * ```\n *\n * ### Solution\n *\n * Pass the correct number of values to encode.\n *\n * ### Solution\n *\n * Pass a [valid ABI type](https://docs.soliditylang.org/en/develop/abi-spec.html#types).\n */\nexport class LengthMismatchError extends Errors.BaseError {\n constructor({ expectedLength, givenLength, }) {\n super([\n 'ABI encoding parameters/values length mismatch.',\n `Expected length (parameters): ${expectedLength}`,\n `Given length (values): ${givenLength}`,\n ].join('\\n'));\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'AbiParameters.LengthMismatchError'\n });\n }\n}\n/**\n * The value provided is not a valid array as specified in the corresponding ABI parameter.\n *\n * ### Example\n *\n * ```ts twoslash\n * // @noErrors\n * import { AbiParameters } from 'ox'\n * // ---cut---\n * AbiParameters.encode(AbiParameters.from(['uint256[3]']), [69])\n * ```\n *\n * ### Solution\n *\n * Pass an array value.\n */\nexport class InvalidArrayError extends Errors.BaseError {\n constructor(value) {\n super(`Value \\`${value}\\` is not a valid array.`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'AbiParameters.InvalidArrayError'\n });\n }\n}\n/**\n * Throws when the ABI parameter type is invalid.\n *\n * @example\n * ```ts twoslash\n * import { AbiParameters } from 'ox'\n *\n * AbiParameters.decode([{ type: 'lol' }], '0x00000000000000000000000000000000000000000000000000000000000010f')\n * // ↑ ❌ invalid type\n * // @error: AbiParameters.InvalidTypeError: Type `lol` is not a valid ABI Type.\n * ```\n */\nexport class InvalidTypeError extends Errors.BaseError {\n constructor(type) {\n super(`Type \\`${type}\\` is not a valid ABI Type.`);\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'AbiParameters.InvalidTypeError'\n });\n }\n}\n//# sourceMappingURL=AbiParameters.js.map"],"names":["decode","parameters","data","options","as","checksumAddress","bytes","Bytes.fromHex","cursor","Cursor.create","Bytes.size","length","ZeroDataError","DataSizeTooSmallError","Hex.fromBytes","size","consumed","values","i","param","setPosition","consumed_","internal.decodeParameter","staticPosition","push","name","encode","LengthMismatchError","expectedLength","givenLength","preparedParameters","internal.prepareParameters","internal.encode","encodePacked","types","type","value","Hex.concat","from","Array","isArray","abitype.parseAbiParameters","address","Address.assert","Hex.padLeft","toLowerCase","Hex.fromString","Hex.fromBoolean","intMatch","match","Solidity.integerRegex","_type","baseType","bits","Number","parseInt","Hex.fromNumber","signed","bytesMatch","Solidity.bytesRegex","BytesSizeMismatchError","expectedSize","Hex.padRight","arrayMatch","Solidity.arrayRegex","childType","InvalidTypeError","Errors.BaseError","constructor","super","metaMessages","abitype.formatAbiParameters","Object","defineProperty","this","enumerable","configurable","writable","ArrayLengthMismatchError","Hex.size","join","InvalidArrayError"],"mappings":"0qBASO,SAASA,EAAOC,EAAYC,EAAMC,EAAU,CAAA,GAC/C,MAAMC,GAAEA,EAAK,QAAOC,gBAAEA,GAAkB,GAAUF,EAC5CG,EAAwB,iBAATJ,EAAoBK,EAAcL,GAAQA,EACzDM,EAASC,EAAcH,GAC7B,GAA0B,IAAtBI,EAAWJ,IAAgBL,EAAWU,OAAS,EAC/C,MAAM,IAAIC,EACd,GAAIF,EAAWJ,IAAUI,EAAWJ,GAAS,GACzC,MAAM,IAAIO,EAAsB,CAC5BX,KAAsB,iBAATA,EAAoBA,EAAOY,EAAcZ,GACtDD,WAAYA,EACZc,KAAML,EAAWJ,KAEzB,IAAIU,EAAW,EACf,MAAMC,EAAgB,UAAPb,EAAiB,GAAK,CAAA,EACrC,IAAK,IAAIc,EAAI,EAAGA,EAAIjB,EAAWU,SAAUO,EAAG,CACxC,MAAMC,EAAQlB,EAAWiB,GACzBV,EAAOY,YAAYJ,GACnB,MAAOd,EAAMmB,GAAaC,EAAyBd,EAAQW,EAAO,CAC9Dd,kBACAkB,eAAgB,IAEpBP,GAAYK,EACD,UAAPjB,EACAa,EAAOO,KAAKtB,GAEZe,EAAOE,EAAMM,MAAQP,GAAKhB,CAClC,CACA,OAAOe,CACX,CAoCO,SAASS,EAAOzB,EAAYgB,EAAQd,GAC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CkC,MAAM,oCAAoClC,oBAAuBP,iBAA8BC,QAC/F2C,OAAOC,eAAeC,KAAM,OAAQ,CAChCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVzC,MAAO,0CAEf,EA4BG,MAAMwB,UAA+BO,EACxC,WAAAC,EAAYP,aAAEA,EAAYzB,MAAEA,IACxBiC,MAAM,kBAAkBjC,YAAgB2C,EAAS3C,0CAA8CyB,OAC/FW,OAAOC,eAAeC,KAAM,OAAQ,CAChCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVzC,MAAO,wCAEf,EAyBG,MAAMT,UAA4BwC,EACrC,WAAAC,EAAYxC,eAAEA,EAAcC,YAAEA,IAC1BwC,MAAM,CACF,kDACA,iCAAiCzC,IACjC,0BAA0BC,KAC5BmD,KAAK,OACPR,OAAOC,eAAeC,KAAM,OAAQ,CAChCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVzC,MAAO,qCAEf,EAkBG,MAAM6C,UAA0Bd,EACnC,WAAAC,CAAYhC,GACRiC,MAAM,WAAWjC,6BACjBoC,OAAOC,eAAeC,KAAM,OAAQ,CAChCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVzC,MAAO,mCAEf,EAcG,MAAM8B,UAAyBC,EAClC,WAAAC,CAAYjC,GACRkC,MAAM,UAAUlC,gCAChBqC,OAAOC,eAAeC,KAAM,OAAQ,CAChCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVzC,MAAO,kCAEf","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Address.js","sources":["../../../../../../node_modules/ox/_esm/core/Address.js"],"sourcesContent":["import * as Bytes from './Bytes.js';\nimport * as Caches from './Caches.js';\nimport * as Errors from './Errors.js';\nimport * as Hash from './Hash.js';\nimport * as PublicKey from './PublicKey.js';\nconst addressRegex = /^0x[a-fA-F0-9]{40}$/;\n/**\n * Asserts that the given value is a valid {@link ox#Address.Address}.\n *\n * @example\n * ```ts twoslash\n * import { Address } from 'ox'\n *\n * Address.assert('0xA0Cf798816D4b9b9866b5330EEa46a18382f251e')\n * ```\n *\n * @example\n * ```ts twoslash\n * import { Address } from 'ox'\n *\n * Address.assert('0xdeadbeef')\n * // @error: InvalidAddressError: Address \"0xdeadbeef\" is invalid.\n * ```\n *\n * @param value - Value to assert if it is a valid address.\n * @param options - Assertion options.\n */\nexport function assert(value, options = {}) {\n const { strict = true } = options;\n if (!addressRegex.test(value))\n throw new InvalidAddressError({\n address: value,\n cause: new InvalidInputError(),\n });\n if (strict) {\n if (value.toLowerCase() === value)\n return;\n if (checksum(value) !== value)\n throw new InvalidAddressError({\n address: value,\n cause: new InvalidChecksumError(),\n });\n }\n}\n/**\n * Computes the checksum address for the given {@link ox#Address.Address}.\n *\n * @example\n * ```ts twoslash\n * import { Address } from 'ox'\n *\n * Address.checksum('0xa0cf798816d4b9b9866b5330eea46a18382f251e')\n * // @log: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'\n * ```\n *\n * @param address - The address to compute the checksum for.\n * @returns The checksummed address.\n */\nexport function checksum(address) {\n if (Caches.checksum.has(address))\n return Caches.checksum.get(address);\n assert(address, { strict: false });\n const hexAddress = address.substring(2).toLowerCase();\n const hash = Hash.keccak256(Bytes.fromString(hexAddress), { as: 'Bytes' });\n const characters = hexAddress.split('');\n for (let i = 0; i < 40; i += 2) {\n if (hash[i >> 1] >> 4 >= 8 && characters[i]) {\n characters[i] = characters[i].toUpperCase();\n }\n if ((hash[i >> 1] & 0x0f) >= 8 && characters[i + 1]) {\n characters[i + 1] = characters[i + 1].toUpperCase();\n }\n }\n const result = `0x${characters.join('')}`;\n Caches.checksum.set(address, result);\n return result;\n}\n/**\n * Converts a stringified address to a typed (checksummed) {@link ox#Address.Address}.\n *\n * @example\n * ```ts twoslash\n * import { Address } from 'ox'\n *\n * Address.from('0xa0cf798816d4b9b9866b5330eea46a18382f251e')\n * // @log: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'\n * ```\n *\n * @example\n * ```ts twoslash\n * import { Address } from 'ox'\n *\n * Address.from('0xa0cf798816d4b9b9866b5330eea46a18382f251e', {\n * checksum: false\n * })\n * // @log: '0xa0cf798816d4b9b9866b5330eea46a18382f251e'\n * ```\n *\n * @example\n * ```ts twoslash\n * import { Address } from 'ox'\n *\n * Address.from('hello')\n * // @error: InvalidAddressError: Address \"0xa\" is invalid.\n * ```\n *\n * @param address - An address string to convert to a typed Address.\n * @param options - Conversion options.\n * @returns The typed Address.\n */\nexport function from(address, options = {}) {\n const { checksum: checksumVal = false } = options;\n assert(address);\n if (checksumVal)\n return checksum(address);\n return address;\n}\n/**\n * Converts an ECDSA public key to an {@link ox#Address.Address}.\n *\n * @example\n * ```ts twoslash\n * import { Address, PublicKey } from 'ox'\n *\n * const publicKey = PublicKey.from(\n * '0x048318535b54105d4a7aae60c08fc45f9687181b4fdfc625bd1a753fa7397fed753547f11ca8696646f2f3acb08e31016afac23e630c5d11f59f61fef57b0d2aa5',\n * )\n * const address = Address.fromPublicKey(publicKey)\n * // @log: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266'\n * ```\n *\n * @param publicKey - The ECDSA public key to convert to an {@link ox#Address.Address}.\n * @param options - Conversion options.\n * @returns The {@link ox#Address.Address} corresponding to the public key.\n */\nexport function fromPublicKey(publicKey, options = {}) {\n const address = Hash.keccak256(`0x${PublicKey.toHex(publicKey).slice(4)}`).substring(26);\n return from(`0x${address}`, options);\n}\n/**\n * Checks if two {@link ox#Address.Address} are equal.\n *\n * @example\n * ```ts twoslash\n * import { Address } from 'ox'\n *\n * Address.isEqual(\n * '0xa0cf798816d4b9b9866b5330eea46a18382f251e',\n * '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'\n * )\n * // @log: true\n * ```\n *\n * @example\n * ```ts twoslash\n * import { Address } from 'ox'\n *\n * Address.isEqual(\n * '0xa0cf798816d4b9b9866b5330eea46a18382f251e',\n * '0xA0Cf798816D4b9b9866b5330EEa46a18382f251f'\n * )\n * // @log: false\n * ```\n *\n * @param addressA - The first address to compare.\n * @param addressB - The second address to compare.\n * @returns Whether the addresses are equal.\n */\nexport function isEqual(addressA, addressB) {\n assert(addressA, { strict: false });\n assert(addressB, { strict: false });\n return addressA.toLowerCase() === addressB.toLowerCase();\n}\n/**\n * Checks if the given address is a valid {@link ox#Address.Address}.\n *\n * @example\n * ```ts twoslash\n * import { Address } from 'ox'\n *\n * Address.validate('0xA0Cf798816D4b9b9866b5330EEa46a18382f251e')\n * // @log: true\n * ```\n *\n * @example\n * ```ts twoslash\n * import { Address } from 'ox'\n *\n * Address.validate('0xdeadbeef')\n * // @log: false\n * ```\n *\n * @param address - Value to check if it is a valid address.\n * @param options - Check options.\n * @returns Whether the address is a valid address.\n */\nexport function validate(address, options = {}) {\n const { strict = true } = options ?? {};\n try {\n assert(address, { strict });\n return true;\n }\n catch {\n return false;\n }\n}\n/**\n * Thrown when an address is invalid.\n *\n * @example\n * ```ts twoslash\n * import { Address } from 'ox'\n *\n * Address.from('0x123')\n * // @error: Address.InvalidAddressError: Address `0x123` is invalid.\n * ```\n */\nexport class InvalidAddressError extends Errors.BaseError {\n constructor({ address, cause }) {\n super(`Address \"${address}\" is invalid.`, {\n cause,\n });\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Address.InvalidAddressError'\n });\n }\n}\n/** Thrown when an address is not a 20 byte (40 hexadecimal character) value. */\nexport class InvalidInputError extends Errors.BaseError {\n constructor() {\n super('Address is not a 20 byte (40 hexadecimal character) value.');\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Address.InvalidInputError'\n });\n }\n}\n/** Thrown when an address does not match its checksum counterpart. */\nexport class InvalidChecksumError extends Errors.BaseError {\n constructor() {\n super('Address does not match its checksum counterpart.');\n Object.defineProperty(this, \"name\", {\n enumerable: true,\n configurable: true,\n writable: true,\n value: 'Address.InvalidChecksumError'\n });\n }\n}\n//# sourceMappingURL=Address.js.map"],"names":["addressRegex","assert","value","options","strict","test","InvalidAddressError","address","cause","InvalidInputError","toLowerCase","checksum","InvalidChecksumError","Caches.checksum","has","get","hexAddress","substring","hash","Hash.keccak256","Bytes.fromString","as","characters","split","i","toUpperCase","result","join","set","validate","Errors.BaseError","constructor","super","Object","defineProperty","this","enumerable","configurable","writable"],"mappings":"6JAKA,MAAMA,EAAe,sBAsBd,SAASC,EAAOC,EAAOC,EAAU,IACpC,MAAMC,OAAEA,GAAS,GAASD,EAC1B,IAAKH,EAAaK,KAAKH,GACnB,MAAM,IAAII,EAAoB,CAC1BC,QAASL,EACTM,MAAO,IAAIC,IAEnB,GAAIL,EAAQ,CACR,GAAIF,EAAMQ,gBAAkBR,EACxB,OACJ,GAAIS,EAAST,KAAWA,EACpB,MAAM,IAAII,EAAoB,CAC1BC,QAASL,EACTM,MAAO,IAAII,GAEvB,CACJ,CAeO,SAASD,EAASJ,GACrB,GAAIM,EAAgBC,IAAIP,GACpB,OAAOM,EAAgBE,IAAIR,GAC/BN,EAAOM,EAAS,CAAEH,QAAQ,IAC1B,MAAMY,EAAaT,EAAQU,UAAU,GAAGP,cAClCQ,EAAOC,EAAeC,EAAiBJ,GAAa,CAAEK,GAAI,UAC1DC,EAAaN,EAAWO,MAAM,IACpC,IAAK,IAAIC,EAAI,EAAGA,EAAI,GAAIA,GAAK,EACrBN,EAAKM,GAAK,IAAM,GAAK,GAAKF,EAAWE,KACrCF,EAAWE,GAAKF,EAAWE,GAAGC,gBAEd,GAAfP,EAAKM,GAAK,KAAc,GAAKF,EAAWE,EAAI,KAC7CF,EAAWE,EAAI,GAAKF,EAAWE,EAAI,GAAGC,eAG9C,MAAMC,EAAS,KAAKJ,EAAWK,KAAK,MAEpC,OADAd,EAAgBe,IAAIrB,EAASmB,GACtBA,CACX,CAwHO,SAASG,EAAStB,EAASJ,EAAU,IACxC,MAAMC,OAAEA,GAAS,GAASD,GAAW,CAAA,EACrC,IAEI,OADAF,EAAOM,EAAS,CAAEH,YACX,CACX,CACA,MACI,OAAO,CACX,CACJ,CAYO,MAAME,UAA4BwB,EACrC,WAAAC,EAAYxB,QAAEA,EAAOC,MAAEA,IACnBwB,MAAM,YAAYzB,iBAAwB,CACtCC,UAEJyB,OAAOC,eAAeC,KAAM,OAAQ,CAChCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVpC,MAAO,+BAEf,EAGG,MAAMO,UAA0BqB,EACnC,WAAAC,GACIC,MAAM,8DACNC,OAAOC,eAAeC,KAAM,OAAQ,CAChCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVpC,MAAO,6BAEf,EAGG,MAAMU,UAA6BkB,EACtC,WAAAC,GACIC,MAAM,oDACNC,OAAOC,eAAeC,KAAM,OAAQ,CAChCC,YAAY,EACZC,cAAc,EACdC,UAAU,EACVpC,MAAO,gCAEf","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Authorization.js","sources":["../../../../../../node_modules/ox/_esm/core/Authorization.js"],"sourcesContent":["import * as Hash from './Hash.js';\nimport * as Hex from './Hex.js';\nimport * as Rlp from './Rlp.js';\nimport * as Signature from './Signature.js';\n/**\n * Converts an [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702) Authorization object into a typed {@link ox#Authorization.Authorization}.\n *\n * @example\n * An Authorization can be instantiated from an [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702) Authorization tuple in object format.\n *\n * ```ts twoslash\n * import { Authorization } from 'ox'\n *\n * const authorization = Authorization.from({\n * address: '0x1234567890abcdef1234567890abcdef12345678',\n * chainId: 1,\n * nonce: 69n,\n * })\n * ```\n *\n * @example\n * ### Attaching Signatures\n *\n * A {@link ox#Signature.Signature} can be attached with the `signature` option. The example below demonstrates signing\n * an Authorization with {@link ox#Secp256k1.(sign:function)}.\n *\n * ```ts twoslash\n * import { Authorization, Secp256k1 } from 'ox'\n *\n * const authorization = Authorization.from({\n * address: '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',\n * chainId: 1,\n * nonce: 40n,\n * })\n *\n * const signature = Secp256k1.sign({\n * payload: Authorization.getSignPayload(authorization),\n * privateKey: '0x...',\n * })\n *\n * const authorization_signed = Authorization.from(authorization, { signature }) // [!code focus]\n * ```\n *\n * @param authorization - An [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702) Authorization tuple in object format.\n * @param options - Authorization options.\n * @returns The {@link ox#Authorization.Authorization}.\n */\nexport function from(authorization, options = {}) {\n if (typeof authorization.chainId === 'string')\n return fromRpc(authorization);\n return { ...authorization, ...options.signature };\n}\n/**\n * Converts an {@link ox#Authorization.Rpc} to an {@link ox#Authorization.Authorization}.\n *\n * @example\n * ```ts twoslash\n * import { Authorization } from 'ox'\n *\n * const authorization = Authorization.fromRpc({\n * address: '0x0000000000000000000000000000000000000000',\n * chainId: '0x1',\n * nonce: '0x1',\n * r: '0x635dc2033e60185bb36709c29c75d64ea51dfbd91c32ef4be198e4ceb169fb4d',\n * s: '0x50c2667ac4c771072746acfdcf1f1483336dcca8bd2df47cd83175dbe60f0540',\n * yParity: '0x0',\n * })\n * ```\n *\n * @param authorization - The RPC-formatted Authorization.\n * @returns A signed {@link ox#Authorization.Authorization}.\n */\nexport function fromRpc(authorization) {\n const { address, chainId, nonce } = authorization;\n const signature = Signature.extract(authorization);\n return {\n address,\n chainId: Number(chainId),\n nonce: BigInt(nonce),\n ...signature,\n };\n}\n/**\n * Converts an {@link ox#Authorization.ListRpc} to an {@link ox#Authorization.List}.\n *\n * @example\n * ```ts twoslash\n * import { Authorization } from 'ox'\n *\n * const authorizationList = Authorization.fromRpcList([{\n * address: '0x0000000000000000000000000000000000000000',\n * chainId: '0x1',\n * nonce: '0x1',\n * r: '0x635dc2033e60185bb36709c29c75d64ea51dfbd91c32ef4be198e4ceb169fb4d',\n * s: '0x50c2667ac4c771072746acfdcf1f1483336dcca8bd2df47cd83175dbe60f0540',\n * yParity: '0x0',\n * }])\n * ```\n *\n * @param authorizationList - The RPC-formatted Authorization list.\n * @returns A signed {@link ox#Authorization.List}.\n */\nexport function fromRpcList(authorizationList) {\n return authorizationList.map(fromRpc);\n}\n/**\n * Converts an {@link ox#Authorization.Tuple} to an {@link ox#Authorization.Authorization}.\n *\n * @example\n * ```ts twoslash\n * import { Authorization } from 'ox'\n *\n * const authorization = Authorization.fromTuple([\n * '0x1',\n * '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',\n * '0x3'\n * ])\n * // @log: {\n * // @log: address: '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',\n * // @log: chainId: 1,\n * // @log: nonce: 3n\n * // @log: }\n * ```\n *\n * @example\n * It is also possible to append a Signature tuple to the end of an Authorization tuple.\n *\n * ```ts twoslash\n * import { Authorization } from 'ox'\n *\n * const authorization = Authorization.fromTuple([\n * '0x1',\n * '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',\n * '0x3',\n * '0x1',\n * '0x68a020a209d3d56c46f38cc50a33f704f4a9a10a59377f8dd762ac66910e9b90',\n * '0x7e865ad05c4035ab5792787d4a0297a43617ae897930a6fe4d822b8faea52064',\n * ])\n * // @log: {\n * // @log: address: '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',\n * // @log: chainId: 1,\n * // @log: nonce: 3n\n * // @log: r: BigInt('0x68a020a209d3d56c46f38cc50a33f704f4a9a10a59377f8dd762ac66910e9b90'),\n * // @log: s: BigInt('0x7e865ad05c4035ab5792787d4a0297a43617ae897930a6fe4d822b8faea52064'),\n * // @log: yParity: 0,\n * // @log: }\n * ```\n *\n * @param tuple - The [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702) Authorization tuple.\n * @returns The {@link ox#Authorization.Authorization}.\n */\nexport function fromTuple(tuple) {\n const [chainId, address, nonce, yParity, r, s] = tuple;\n let args = {\n address,\n chainId: chainId === '0x' ? 0 : Number(chainId),\n nonce: nonce === '0x' ? 0n : BigInt(nonce),\n };\n if (yParity && r && s)\n args = { ...args, ...Signature.fromTuple([yParity, r, s]) };\n return from(args);\n}\n/**\n * Converts an {@link ox#Authorization.TupleList} to an {@link ox#Authorization.List}.\n *\n * @example\n * ```ts twoslash\n * import { Authorization } from 'ox'\n *\n * const authorizationList = Authorization.fromTupleList([\n * ['0x1', '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c', '0x3'],\n * ['0x3', '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c', '0x14'],\n * ])\n * // @log: [\n * // @log: {\n * // @log: address: '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',\n * // @log: chainId: 1,\n * // @log: nonce: 3n,\n * // @log: },\n * // @log: {\n * // @log: address: '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',\n * // @log: chainId: 3,\n * // @log: nonce: 20n,\n * // @log: },\n * // @log: ]\n * ```\n *\n * @example\n * It is also possible to append a Signature tuple to the end of an Authorization tuple.\n *\n * ```ts twoslash\n * import { Authorization } from 'ox'\n *\n * const authorizationList = Authorization.fromTupleList([\n * ['0x1', '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c', '0x3', '0x1', '0x68a020a209d3d56c46f38cc50a33f704f4a9a10a59377f8dd762ac66910e9b90', '0x7e865ad05c4035ab5792787d4a0297a43617ae897930a6fe4d822b8faea52064'],\n * ['0x3', '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c', '0x14', '0x1', '0x68a020a209d3d56c46f38cc50a33f704f4a9a10a59377f8dd762ac66910e9b90', '0x7e865ad05c4035ab5792787d4a0297a43617ae897930a6fe4d822b8faea52064'],\n * ])\n * // @log: [\n * // @log: {\n * // @log: address: '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',\n * // @log: chainId: 1,\n * // @log: nonce: 3n,\n * // @log: r: BigInt('0x68a020a209d3d56c46f38cc50a33f704f4a9a10a59377f8dd762ac66910e9b90'),\n * // @log: s: BigInt('0x7e865ad05c4035ab5792787d4a0297a43617ae897930a6fe4d822b8faea52064'),\n * // @log: yParity: 0,\n * // @log: },\n * // @log: {\n * // @log: address: '0xbe95c3f554e9fc85ec51be69a3d807a0d55bcf2c',\n * // @log: chainId: 3,\n * // @log: nonce: 20n,\n * // @log: r: BigInt('0x68a020a209d3d56c46f38cc50a33f704f4a9a10a59377f8dd762ac66910e9b90'),\n * // @log: s: BigInt('0x7e865ad05c4035ab5792787d4a0297a43617ae897930a6fe4d822b8faea52064'),\n * // @log: yParity: 0,\n * // @log: },\n * // @log: ]\n * ```\n *\n * @param tupleList - The [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702) Authorization tuple list.\n * @returns An {@link ox#Authorization.List}.\n */\nexport function fromTupleList(tupleList) {\n const list = [];\n for (const tuple of tupleList)\n list.push(fromTuple(tuple));\n return list;\n}\n/**\n * Computes the sign payload for an {@link ox#Authorization.Authorization} in [EIP-7702 format](https://eips.ethereum.org/EIPS/eip-7702): `keccak256('0x05' || rlp([chain_id, address, nonce]))`.\n *\n * @example\n * The example below demonstrates computing the sign payload for an {@link ox#Authorization.Authorization}. This payload\n * can then be passed to signing functions like {@link ox#Secp256k1.(sign:function)}.\n *\n * ```ts twoslash\n * import { Authorization, Secp256k1 } from 'ox'\n *\n * const authorization = Authorization.from({\n * address: '0x1234567890abcdef1234567890abcdef12345678',\n * chainId: 1,\n * nonce: 69n,\n * })\n *\n * const payload = Authorization.getSignPayload(authorization) // [!code focus]\n *\n * const signature = Secp256k1.sign({\n * payload,\n * privateKey: '0x...',\n * })\n * ```\n *\n * @param authorization - The {@link ox#Authorization.Authorization}.\n * @returns The sign payload.\n */\nexport function getSignPayload(authorization) {\n return hash(authorization, { presign: true });\n}\n/**\n * Computes the hash for an {@link ox#Authorization.Authorization} in [EIP-7702 format](https://eips.ethereum.org/EIPS/eip-7702): `keccak256('0x05' || rlp([chain_id, address, nonce]))`.\n *\n * @example\n * ```ts twoslash\n * import { Authorization } from 'ox'\n *\n * const authorization = Authorization.from({\n * address: '0x1234567890abcdef1234567890abcdef12345678',\n * chainId: 1,\n * nonce: 69n,\n * })\n *\n * const hash = Authorization.hash(authorization) // [!code focus]\n * ```\n *\n * @param authorization - The {@link ox#Authorization.Authorization}.\n * @returns The hash.\n */\nexport function hash(authorization, options = {}) {\n const { presign } = options;\n return Hash.keccak256(Hex.concat('0x05', Rlp.fromHex(toTuple(presign\n ? {\n address: authorization.address,\n chainId: authorization.chainId,\n nonce: authorization.nonce,\n }\n : authorization))));\n}\n/**\n * Converts an {@link ox#Authorization.Authorization} to an {@link ox#Authorization.Rpc}.\n *\n * @example\n * ```ts twoslash\n * import { Authorization } from 'ox'\n *\n * const authorization = Authorization.toRpc({\n * address: '0x0000000000000000000000000000000000000000',\n * chainId: 1,\n * nonce: 1n,\n * r: 44944627813007772897391531230081695102703289123332187696115181104739239197517n,\n * s: 36528503505192438307355164441104001310566505351980369085208178712678799181120n,\n * yParity: 0,\n * })\n * ```\n *\n * @param authorization - An Authorization.\n * @returns An RPC-formatted Authorization.\n */\nexport function toRpc(authorization) {\n const { address, chainId, nonce, ...signature } = authorization;\n return {\n address,\n chainId: Hex.fromNumber(chainId),\n nonce: Hex.fromNumber(nonce),\n ...Signature.toRpc(signature),\n };\n}\n/**\n * Converts an {@link ox#Authorization.List} to an {@link ox#Authorization.ListRpc}.\n *\n * @example\n * ```ts twoslash\n * import { Authorization } from 'ox'\n *\n * const authorization = Authorization.toRpcList([{\n * address: '0x0000000000000000000000000000000000000000',\n * chainId: 1,\n * nonce: 1n,\n * r: 44944627813007772897391531230081695102703289123332187696115181104739239197517n,\n * s: 36528503505192438307355164441104001310566505351980369085208178712678799181120n,\n * yParity: 0,\n * }])\n * ```\n *\n * @param authorizationList - An Authorization List.\n * @returns An RPC-formatted Authorization List.\n */\nexport function toRpcList(authorizationList) {\n return authorizationList.map(toRpc);\n}\n/**\n * Converts an {@link ox#Authorization.Authorization} to an {@link ox#Authorization.Tuple}.\n *\n * @example\n * ```ts twoslash\n * import { Authorization } from 'ox'\n *\n * const authorization = Authorization.from({\n * address: '0x1234567890abcdef1234567890abcdef12345678',\n * chainId: 1,\n * nonce: 69n,\n * })\n *\n * const tuple = Authorization.toTuple(authorization) // [!code focus]\n * // @log: [\n * // @log: address: '0x1234567890abcdef1234567890abcdef12345678',\n * // @log: chainId: 1,\n * // @log: nonce: 69n,\n * // @log: ]\n * ```\n *\n * @param authorization - The {@link ox#Authorization.Authorization}.\n * @returns An [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702) Authorization tuple.\n */\nexport function toTuple(authorization) {\n const { address, chainId, nonce } = authorization;\n const signature = Signature.extract(authorization);\n return [\n chainId ? Hex.fromNumber(chainId) : '0x',\n address,\n nonce ? Hex.fromNumber(nonce) : '0x',\n ...(signature ? Signature.toTuple(signature) : []),\n ];\n}\n/**\n * Converts an {@link ox#Authorization.List} to an {@link ox#Authorization.TupleList}.\n *\n * @example\n * ```ts twoslash\n * import { Authorization } from 'ox'\n *\n * const authorization_1 = Authorization.from({\n * address: '0x1234567890abcdef1234567890abcdef12345678',\n * chainId: 1,\n * nonce: 69n,\n * })\n * const authorization_2 = Authorization.from({\n * address: '0x1234567890abcdef1234567890abcdef12345678',\n * chainId: 3,\n * nonce: 20n,\n * })\n *\n * const tuple = Authorization.toTupleList([authorization_1, authorization_2]) // [!code focus]\n * // @log: [\n * // @log: [\n * // @log: address: '0x1234567890abcdef1234567890abcdef12345678',\n * // @log: chainId: 1,\n * // @log: nonce: 69n,\n * // @log: ],\n * // @log: [\n * // @log: address: '0x1234567890abcdef1234567890abcdef12345678',\n * // @log: chainId: 3,\n * // @log: nonce: 20n,\n * // @log: ],\n * // @log: ]\n * ```\n *\n * @param list - An {@link ox#Authorization.List}.\n * @returns An [EIP-7702](https://eips.ethereum.org/EIPS/eip-7702) Authorization tuple list.\n */\nexport function toTupleList(list) {\n if (!list || list.length === 0)\n return [];\n const tupleList = [];\n for (const authorization of list)\n tupleList.push(toTuple(authorization));\n return tupleList;\n}\n//# sourceMappingURL=Authorization.js.map"],"names":["from","authorization","options","chainId","fromRpc","signature","address","nonce","Signature.extract","Number","BigInt"],"mappings":"yCA+CO,SAASA,EAAKC,EAAeC,EAAU,IAC1C,MAAqC,iBAA1BD,EAAcE,QACdC,EAAQH,GACZ,IAAKA,KAAkBC,EAAQG,UAC1C,CAqBO,SAASD,EAAQH,GACpB,MAAMK,QAAEA,EAAOH,QAAEA,EAAOI,MAAEA,GAAUN,EAC9BI,EAAYG,EAAkBP,GACpC,MAAO,CACHK,UACAH,QAASM,OAAON,GAChBI,MAAOG,OAAOH,MACXF,EAEX","x_google_ignoreList":[0]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockOverrides.js","sources":["../../../../../../node_modules/ox/_esm/core/BlockOverrides.js"],"sourcesContent":["import * as Hex from './Hex.js';\nimport * as Withdrawal from './Withdrawal.js';\n/**\n * Converts an {@link ox#BlockOverrides.Rpc} to an {@link ox#BlockOverrides.BlockOverrides}.\n *\n * @example\n * ```ts twoslash\n * import { BlockOverrides } from 'ox'\n *\n * const blockOverrides = BlockOverrides.fromRpc({\n * baseFeePerGas: '0x1',\n * blobBaseFee: '0x2',\n * feeRecipient: '0x0000000000000000000000000000000000000000',\n * gasLimit: '0x4',\n * number: '0x5',\n * prevRandao: '0x6',\n * time: '0x1234567890',\n * withdrawals: [\n * {\n * address: '0x0000000000000000000000000000000000000000',\n * amount: '0x1',\n * index: '0x0',\n * validatorIndex: '0x1',\n * },\n * ],\n * })\n * ```\n *\n * @param rpcBlockOverrides - The RPC block overrides to convert.\n * @returns An instantiated {@link ox#BlockOverrides.BlockOverrides}.\n */\nexport function fromRpc(rpcBlockOverrides) {\n return {\n ...(rpcBlockOverrides.baseFeePerGas && {\n baseFeePerGas: BigInt(rpcBlockOverrides.baseFeePerGas),\n }),\n ...(rpcBlockOverrides.blobBaseFee && {\n blobBaseFee: BigInt(rpcBlockOverrides.blobBaseFee),\n }),\n ...(rpcBlockOverrides.feeRecipient && {\n feeRecipient: rpcBlockOverrides.feeRecipient,\n }),\n ...(rpcBlockOverrides.gasLimit && {\n gasLimit: BigInt(rpcBlockOverrides.gasLimit),\n }),\n ...(rpcBlockOverrides.number && {\n number: BigInt(rpcBlockOverrides.number),\n }),\n ...(rpcBlockOverrides.prevRandao && {\n prevRandao: BigInt(rpcBlockOverrides.prevRandao),\n }),\n ...(rpcBlockOverrides.time && {\n time: BigInt(rpcBlockOverrides.time),\n }),\n ...(rpcBlockOverrides.withdrawals && {\n withdrawals: rpcBlockOverrides.withdrawals.map(Withdrawal.fromRpc),\n }),\n };\n}\n/**\n * Converts an {@link ox#BlockOverrides.BlockOverrides} to an {@link ox#BlockOverrides.Rpc}.\n *\n * @example\n * ```ts twoslash\n * import { BlockOverrides } from 'ox'\n *\n * const blockOverrides = BlockOverrides.toRpc({\n * baseFeePerGas: 1n,\n * blobBaseFee: 2n,\n * feeRecipient: '0x0000000000000000000000000000000000000000',\n * gasLimit: 4n,\n * number: 5n,\n * prevRandao: 6n,\n * time: 78187493520n,\n * withdrawals: [\n * {\n * address: '0x0000000000000000000000000000000000000000',\n * amount: 1n,\n * index: 0,\n * validatorIndex: 1,\n * },\n * ],\n * })\n * ```\n *\n * @param blockOverrides - The block overrides to convert.\n * @returns An instantiated {@link ox#BlockOverrides.Rpc}.\n */\nexport function toRpc(blockOverrides) {\n return {\n ...(typeof blockOverrides.baseFeePerGas === 'bigint' && {\n baseFeePerGas: Hex.fromNumber(blockOverrides.baseFeePerGas),\n }),\n ...(typeof blockOverrides.blobBaseFee === 'bigint' && {\n blobBaseFee: Hex.fromNumber(blockOverrides.blobBaseFee),\n }),\n ...(typeof blockOverrides.feeRecipient === 'string' && {\n feeRecipient: blockOverrides.feeRecipient,\n }),\n ...(typeof blockOverrides.gasLimit === 'bigint' && {\n gasLimit: Hex.fromNumber(blockOverrides.gasLimit),\n }),\n ...(typeof blockOverrides.number === 'bigint' && {\n number: Hex.fromNumber(blockOverrides.number),\n }),\n ...(typeof blockOverrides.prevRandao === 'bigint' && {\n prevRandao: Hex.fromNumber(blockOverrides.prevRandao),\n }),\n ...(typeof blockOverrides.time === 'bigint' && {\n time: Hex.fromNumber(blockOverrides.time),\n }),\n ...(blockOverrides.withdrawals && {\n withdrawals: blockOverrides.withdrawals.map(Withdrawal.toRpc),\n }),\n };\n}\n//# sourceMappingURL=BlockOverrides.js.map"],"names":["toRpc","blockOverrides","baseFeePerGas","Hex.fromNumber","blobBaseFee","feeRecipient","gasLimit","number","prevRandao","time","withdrawals","map","Withdrawal.toRpc"],"mappings":"8EAwFO,SAASA,EAAMC,GAClB,MAAO,IACyC,iBAAjCA,EAAeC,eAA8B,CACpDA,cAAeC,EAAeF,EAAeC,mBAEP,iBAA/BD,EAAeG,aAA4B,CAClDA,YAAaD,EAAeF,EAAeG,iBAEJ,iBAAhCH,EAAeI,cAA6B,CACnDA,aAAcJ,EAAeI,iBAEM,iBAA5BJ,EAAeK,UAAyB,CAC/CA,SAAUH,EAAeF,EAAeK,cAEP,iBAA1BL,EAAeM,QAAuB,CAC7CA,OAAQJ,EAAeF,EAAeM,YAED,iBAA9BN,EAAeO,YAA2B,CACjDA,WAAYL,EAAeF,EAAeO,gBAEX,iBAAxBP,EAAeQ,MAAqB,CAC3CA,KAAMN,EAAeF,EAAeQ,UAEpCR,EAAeS,aAAe,CAC9BA,YAAaT,EAAeS,YAAYC,IAAIC,IAGxD","x_google_ignoreList":[0]}