@ozdao/prometheus-framework 0.1.66 → 0.1.67

Sign up to get free protection for your applications and to get access to all the features.
Files changed (644) hide show
  1. package/dist/_virtual/_commonjsHelpers.cjs +1 -1
  2. package/dist/_virtual/_commonjsHelpers.js +5 -3
  3. package/dist/_virtual/browser-ponyfill.cjs +1 -0
  4. package/dist/_virtual/browser-ponyfill.js +4 -0
  5. package/dist/_virtual/crc32.cjs +1 -0
  6. package/dist/_virtual/crc32.js +4 -0
  7. package/dist/_virtual/events.cjs +1 -0
  8. package/dist/_virtual/events.js +4 -0
  9. package/dist/_virtual/index.cjs +1 -0
  10. package/dist/_virtual/index.js +4 -0
  11. package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -0
  12. package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +557 -0
  13. package/dist/node_modules/@ethereumjs/rlp/dist/index.cjs +1 -0
  14. package/dist/node_modules/@ethereumjs/rlp/dist/index.js +164 -0
  15. package/dist/node_modules/@noble/curves/esm/_shortw_utils.cjs +1 -0
  16. package/dist/node_modules/@noble/curves/esm/_shortw_utils.js +19 -0
  17. package/dist/node_modules/@noble/curves/esm/abstract/curve.cjs +1 -0
  18. package/dist/node_modules/@noble/curves/esm/abstract/curve.js +88 -0
  19. package/dist/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -0
  20. package/dist/node_modules/@noble/curves/esm/abstract/modular.js +210 -0
  21. package/dist/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -0
  22. package/dist/node_modules/@noble/curves/esm/abstract/utils.js +178 -0
  23. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -0
  24. package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.js +581 -0
  25. package/dist/node_modules/@noble/curves/esm/secp256k1.cjs +1 -0
  26. package/dist/node_modules/@noble/curves/esm/secp256k1.js +47 -0
  27. package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
  28. package/dist/node_modules/@noble/hashes/esm/_assert.js +48 -0
  29. package/dist/node_modules/@noble/hashes/esm/_sha2.cjs +1 -0
  30. package/dist/node_modules/@noble/hashes/esm/_sha2.js +61 -0
  31. package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -0
  32. package/dist/node_modules/@noble/hashes/esm/_u64.js +48 -0
  33. package/dist/node_modules/@noble/hashes/esm/crypto.cjs +1 -0
  34. package/dist/node_modules/@noble/hashes/esm/crypto.js +4 -0
  35. package/dist/node_modules/@noble/hashes/esm/hmac.cjs +1 -0
  36. package/dist/node_modules/@noble/hashes/esm/hmac.js +43 -0
  37. package/dist/node_modules/@noble/hashes/esm/pbkdf2.cjs +1 -0
  38. package/dist/node_modules/@noble/hashes/esm/pbkdf2.js +32 -0
  39. package/dist/node_modules/@noble/hashes/esm/scrypt.cjs +1 -0
  40. package/dist/node_modules/@noble/hashes/esm/scrypt.js +73 -0
  41. package/dist/node_modules/@noble/hashes/esm/sha256.cjs +1 -0
  42. package/dist/node_modules/@noble/hashes/esm/sha256.js +120 -0
  43. package/dist/node_modules/@noble/hashes/esm/sha3.cjs +1 -0
  44. package/dist/node_modules/@noble/hashes/esm/sha3.js +118 -0
  45. package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -0
  46. package/dist/node_modules/@noble/hashes/esm/sha512.js +144 -0
  47. package/dist/node_modules/@noble/hashes/esm/utils.cjs +1 -0
  48. package/dist/node_modules/@noble/hashes/esm/utils.js +64 -0
  49. package/dist/node_modules/abitype/dist/chunk-NHABU752.cjs +1 -0
  50. package/dist/node_modules/abitype/dist/chunk-NHABU752.js +4 -0
  51. package/dist/node_modules/abitype/dist/chunk-WP7KDV47.cjs +1 -0
  52. package/dist/node_modules/abitype/dist/chunk-WP7KDV47.js +11 -0
  53. package/dist/node_modules/abitype/dist/index.cjs +2 -0
  54. package/dist/node_modules/abitype/dist/index.js +299 -0
  55. package/dist/node_modules/crc-32/crc32.cjs +1 -0
  56. package/dist/node_modules/crc-32/crc32.js +51 -0
  57. package/dist/node_modules/cross-fetch/dist/browser-ponyfill.cjs +2 -0
  58. package/dist/node_modules/cross-fetch/dist/browser-ponyfill.js +320 -0
  59. package/dist/node_modules/ethereum-cryptography/esm/aes.cjs +1 -0
  60. package/dist/node_modules/ethereum-cryptography/esm/aes.js +61 -0
  61. package/dist/node_modules/ethereum-cryptography/esm/keccak.cjs +1 -0
  62. package/dist/node_modules/ethereum-cryptography/esm/keccak.js +9 -0
  63. package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.cjs +1 -0
  64. package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.js +15 -0
  65. package/dist/node_modules/ethereum-cryptography/esm/random.cjs +1 -0
  66. package/dist/node_modules/ethereum-cryptography/esm/random.js +7 -0
  67. package/dist/node_modules/ethereum-cryptography/esm/scrypt.cjs +1 -0
  68. package/dist/node_modules/ethereum-cryptography/esm/scrypt.js +8 -0
  69. package/dist/node_modules/ethereum-cryptography/esm/secp256k1.cjs +1 -0
  70. package/dist/node_modules/ethereum-cryptography/esm/secp256k1.js +4 -0
  71. package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -0
  72. package/dist/node_modules/ethereum-cryptography/esm/utils.js +35 -0
  73. package/dist/node_modules/events/events.cjs +1 -0
  74. package/dist/node_modules/events/events.js +229 -0
  75. package/dist/node_modules/isomorphic-ws/browser.cjs +1 -0
  76. package/dist/node_modules/isomorphic-ws/browser.js +6 -0
  77. package/dist/node_modules/setimmediate/setImmediate.cjs +1 -0
  78. package/dist/node_modules/setimmediate/setImmediate.js +99 -0
  79. package/dist/node_modules/web3/lib/esm/abi.cjs +1 -0
  80. package/dist/node_modules/web3/lib/esm/abi.js +24 -0
  81. package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -0
  82. package/dist/node_modules/web3/lib/esm/accounts.js +101 -0
  83. package/dist/node_modules/web3/lib/esm/index.cjs +1 -0
  84. package/dist/node_modules/web3/lib/esm/index.js +76 -0
  85. package/dist/node_modules/web3/lib/esm/version.cjs +1 -0
  86. package/dist/node_modules/web3/lib/esm/version.js +4 -0
  87. package/dist/node_modules/web3/lib/esm/web3.cjs +1 -0
  88. package/dist/node_modules/web3/lib/esm/web3.js +89 -0
  89. package/dist/node_modules/web3-core/lib/esm/utils.cjs +1 -0
  90. package/dist/node_modules/web3-core/lib/esm/utils.js +14 -0
  91. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -0
  92. package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +83 -0
  93. package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -0
  94. package/dist/node_modules/web3-core/lib/esm/web3_config.js +343 -0
  95. package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -0
  96. package/dist/node_modules/web3-core/lib/esm/web3_context.js +227 -0
  97. package/dist/node_modules/web3-core/lib/esm/web3_event_emitter.cjs +1 -0
  98. package/dist/node_modules/web3-core/lib/esm/web3_event_emitter.js +39 -0
  99. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -0
  100. package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +58 -0
  101. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -0
  102. package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +240 -0
  103. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -0
  104. package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +155 -0
  105. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -0
  106. package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +111 -0
  107. package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -0
  108. package/dist/node_modules/web3-errors/lib/esm/error_codes.js +106 -0
  109. package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.cjs +1 -0
  110. package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.js +58 -0
  111. package/dist/node_modules/web3-errors/lib/esm/errors/connection_errors.cjs +1 -0
  112. package/dist/node_modules/web3-errors/lib/esm/errors/connection_errors.js +37 -0
  113. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -0
  114. package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +49 -0
  115. package/dist/node_modules/web3-errors/lib/esm/errors/core_errors.cjs +1 -0
  116. package/dist/node_modules/web3-errors/lib/esm/errors/core_errors.js +16 -0
  117. package/dist/node_modules/web3-errors/lib/esm/errors/ens_errors.cjs +1 -0
  118. package/dist/node_modules/web3-errors/lib/esm/errors/ens_errors.js +16 -0
  119. package/dist/node_modules/web3-errors/lib/esm/errors/generic_errors.cjs +1 -0
  120. package/dist/node_modules/web3-errors/lib/esm/errors/generic_errors.js +49 -0
  121. package/dist/node_modules/web3-errors/lib/esm/errors/provider_errors.cjs +1 -0
  122. package/dist/node_modules/web3-errors/lib/esm/errors/provider_errors.js +28 -0
  123. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -0
  124. package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +30 -0
  125. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_error_messages.cjs +1 -0
  126. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_error_messages.js +161 -0
  127. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs +1 -0
  128. package/dist/node_modules/web3-errors/lib/esm/errors/rpc_errors.js +129 -0
  129. package/dist/node_modules/web3-errors/lib/esm/errors/schema_errors.cjs +1 -0
  130. package/dist/node_modules/web3-errors/lib/esm/errors/schema_errors.js +13 -0
  131. package/dist/node_modules/web3-errors/lib/esm/errors/signature_errors.cjs +1 -0
  132. package/dist/node_modules/web3-errors/lib/esm/errors/signature_errors.js +10 -0
  133. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +5 -0
  134. package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +256 -0
  135. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -0
  136. package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +76 -0
  137. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -0
  138. package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +28 -0
  139. package/dist/node_modules/web3-eth/lib/esm/constants.cjs +1 -0
  140. package/dist/node_modules/web3-eth/lib/esm/constants.js +14 -0
  141. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -0
  142. package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +413 -0
  143. package/dist/node_modules/web3-eth/lib/esm/schemas.cjs +1 -0
  144. package/dist/node_modules/web3-eth/lib/esm/schemas.js +570 -0
  145. package/dist/node_modules/web3-eth/lib/esm/utils/decode_signed_transaction.cjs +1 -0
  146. package/dist/node_modules/web3-eth/lib/esm/utils/decode_signed_transaction.js +31 -0
  147. package/dist/node_modules/web3-eth/lib/esm/utils/decoding.cjs +1 -0
  148. package/dist/node_modules/web3-eth/lib/esm/utils/decoding.js +34 -0
  149. package/dist/node_modules/web3-eth/lib/esm/utils/detect_transaction_type.cjs +1 -0
  150. package/dist/node_modules/web3-eth/lib/esm/utils/detect_transaction_type.js +90 -0
  151. package/dist/node_modules/web3-eth/lib/esm/utils/format_transaction.cjs +1 -0
  152. package/dist/node_modules/web3-eth/lib/esm/utils/format_transaction.js +30 -0
  153. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -0
  154. package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +77 -0
  155. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -0
  156. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +50 -0
  157. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -0
  158. package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +79 -0
  159. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -0
  160. package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +102 -0
  161. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -0
  162. package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +109 -0
  163. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -0
  164. package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +143 -0
  165. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -0
  166. package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +131 -0
  167. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -0
  168. package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +52 -0
  169. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -0
  170. package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +61 -0
  171. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_pooling.cjs +1 -0
  172. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_pooling.js +51 -0
  173. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -0
  174. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +77 -0
  175. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -0
  176. package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +42 -0
  177. package/dist/node_modules/web3-eth/lib/esm/validation.cjs +1 -0
  178. package/dist/node_modules/web3-eth/lib/esm/validation.js +111 -0
  179. package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -0
  180. package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +1512 -0
  181. package/dist/node_modules/web3-eth/lib/esm/web3_subscriptions.cjs +1 -0
  182. package/dist/node_modules/web3-eth/lib/esm/web3_subscriptions.js +65 -0
  183. package/dist/node_modules/web3-eth-abi/lib/esm/api/errors_api.cjs +1 -0
  184. package/dist/node_modules/web3-eth-abi/lib/esm/api/errors_api.js +13 -0
  185. package/dist/node_modules/web3-eth-abi/lib/esm/api/events_api.cjs +1 -0
  186. package/dist/node_modules/web3-eth-abi/lib/esm/api/events_api.js +13 -0
  187. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.cjs +1 -0
  188. package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.js +20 -0
  189. package/dist/node_modules/web3-eth-abi/lib/esm/api/logs_api.cjs +1 -0
  190. package/dist/node_modules/web3-eth-abi/lib/esm/api/logs_api.js +14 -0
  191. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.cjs +1 -0
  192. package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.js +22 -0
  193. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/address.cjs +1 -0
  194. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/address.js +47 -0
  195. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/array.cjs +1 -0
  196. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/array.js +72 -0
  197. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bool.cjs +1 -0
  198. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bool.js +37 -0
  199. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.cjs +1 -0
  200. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.js +66 -0
  201. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.cjs +1 -0
  202. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.js +59 -0
  203. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs +1 -0
  204. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/number.js +85 -0
  205. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/numbersLimits.cjs +1 -0
  206. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/numbersLimits.js +15 -0
  207. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/string.cjs +1 -0
  208. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/string.js +22 -0
  209. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/tuple.cjs +1 -0
  210. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/tuple.js +77 -0
  211. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/utils.cjs +1 -0
  212. package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/utils.js +15 -0
  213. package/dist/node_modules/web3-eth-abi/lib/esm/coders/decode.cjs +1 -0
  214. package/dist/node_modules/web3-eth-abi/lib/esm/coders/decode.js +16 -0
  215. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.cjs +1 -0
  216. package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.js +23 -0
  217. package/dist/node_modules/web3-eth-abi/lib/esm/coders/utils.cjs +1 -0
  218. package/dist/node_modules/web3-eth-abi/lib/esm/coders/utils.js +58 -0
  219. package/dist/node_modules/web3-eth-abi/lib/esm/decode_contract_error_data.cjs +1 -0
  220. package/dist/node_modules/web3-eth-abi/lib/esm/decode_contract_error_data.js +18 -0
  221. package/dist/node_modules/web3-eth-abi/lib/esm/utils.cjs +1 -0
  222. package/dist/node_modules/web3-eth-abi/lib/esm/utils.js +39 -0
  223. package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -0
  224. package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +219 -0
  225. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/goerli.cjs +1 -0
  226. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/goerli.js +99 -0
  227. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/mainnet.cjs +1 -0
  228. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/mainnet.js +115 -0
  229. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/sepolia.cjs +1 -0
  230. package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/sepolia.js +102 -0
  231. package/dist/node_modules/web3-eth-accounts/lib/esm/common/common.cjs +1 -0
  232. package/dist/node_modules/web3-eth-accounts/lib/esm/common/common.js +741 -0
  233. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1153.cjs +1 -0
  234. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1153.js +25 -0
  235. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1559.cjs +1 -0
  236. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1559.js +29 -0
  237. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2315.cjs +1 -0
  238. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2315.js +28 -0
  239. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2537.cjs +1 -0
  240. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2537.js +181 -0
  241. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2565.cjs +1 -0
  242. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2565.js +20 -0
  243. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2718.cjs +1 -0
  244. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2718.js +14 -0
  245. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2929.cjs +1 -0
  246. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2929.js +87 -0
  247. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2930.cjs +1 -0
  248. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2930.js +24 -0
  249. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3198.cjs +1 -0
  250. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3198.js +20 -0
  251. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3529.cjs +1 -0
  252. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3529.js +29 -0
  253. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3540.cjs +1 -0
  254. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3540.js +16 -0
  255. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3541.cjs +1 -0
  256. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3541.js +15 -0
  257. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3554.cjs +1 -0
  258. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3554.js +20 -0
  259. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3607.cjs +1 -0
  260. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3607.js +16 -0
  261. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3651.cjs +1 -0
  262. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3651.js +16 -0
  263. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3670.cjs +1 -0
  264. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3670.js +16 -0
  265. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3675.cjs +1 -0
  266. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3675.js +16 -0
  267. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3855.cjs +1 -0
  268. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3855.js +21 -0
  269. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3860.cjs +1 -0
  270. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3860.js +26 -0
  271. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4345.cjs +1 -0
  272. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4345.js +20 -0
  273. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4399.cjs +1 -0
  274. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4399.js +16 -0
  275. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/5133.cjs +1 -0
  276. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/5133.js +20 -0
  277. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/index.cjs +1 -0
  278. package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/index.js +49 -0
  279. package/dist/node_modules/web3-eth-accounts/lib/esm/common/enums.cjs +1 -0
  280. package/dist/node_modules/web3-eth-accounts/lib/esm/common/enums.js +27 -0
  281. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/arrowGlacier.cjs +1 -0
  282. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/arrowGlacier.js +14 -0
  283. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/berlin.cjs +1 -0
  284. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/berlin.js +10 -0
  285. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/byzantium.cjs +1 -0
  286. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/byzantium.js +59 -0
  287. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/chainstart.cjs +1 -0
  288. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/chainstart.js +441 -0
  289. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/constantinople.cjs +1 -0
  290. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/constantinople.js +71 -0
  291. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/dao.cjs +1 -0
  292. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/dao.js +13 -0
  293. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/grayGlacier.cjs +1 -0
  294. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/grayGlacier.js +14 -0
  295. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/homestead.cjs +1 -0
  296. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/homestead.js +18 -0
  297. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/index.cjs +1 -0
  298. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/index.js +39 -0
  299. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/istanbul.cjs +1 -0
  300. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/istanbul.js +90 -0
  301. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/london.cjs +1 -0
  302. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/london.js +10 -0
  303. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/merge.cjs +1 -0
  304. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/merge.js +15 -0
  305. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.cjs +1 -0
  306. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.js +10 -0
  307. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/muirGlacier.cjs +1 -0
  308. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/muirGlacier.js +18 -0
  309. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/petersburg.cjs +1 -0
  310. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/petersburg.js +42 -0
  311. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/shanghai.cjs +1 -0
  312. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/shanghai.js +10 -0
  313. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/spuriousDragon.cjs +1 -0
  314. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/spuriousDragon.js +23 -0
  315. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/tangerineWhistle.cjs +1 -0
  316. package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/tangerineWhistle.js +46 -0
  317. package/dist/node_modules/web3-eth-accounts/lib/esm/common/types.cjs +1 -0
  318. package/dist/node_modules/web3-eth-accounts/lib/esm/common/types.js +7 -0
  319. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -0
  320. package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +277 -0
  321. package/dist/node_modules/web3-eth-accounts/lib/esm/schemas.cjs +1 -0
  322. package/dist/node_modules/web3-eth-accounts/lib/esm/schemas.js +25 -0
  323. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/address.cjs +1 -0
  324. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/address.js +57 -0
  325. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.cjs +1 -0
  326. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.js +272 -0
  327. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs +1 -0
  328. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/constants.js +11 -0
  329. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs +1 -0
  330. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.js +285 -0
  331. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs +1 -0
  332. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.js +268 -0
  333. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/legacyTransaction.cjs +1 -0
  334. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/legacyTransaction.js +256 -0
  335. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.cjs +1 -0
  336. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.js +89 -0
  337. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/types.cjs +1 -0
  338. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/types.js +18 -0
  339. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/utils.cjs +1 -0
  340. package/dist/node_modules/web3-eth-accounts/lib/esm/tx/utils.js +80 -0
  341. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -0
  342. package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +361 -0
  343. package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -0
  344. package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +510 -0
  345. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -0
  346. package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +80 -0
  347. package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -0
  348. package/dist/node_modules/web3-eth-contract/lib/esm/index.js +27 -0
  349. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -0
  350. package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +36 -0
  351. package/dist/node_modules/web3-eth-contract/lib/esm/utils.cjs +1 -0
  352. package/dist/node_modules/web3-eth-contract/lib/esm/utils.js +90 -0
  353. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/ENSRegistry.cjs +1 -0
  354. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/ENSRegistry.js +168 -0
  355. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.cjs +1 -0
  356. package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.js +578 -0
  357. package/dist/node_modules/web3-eth-ens/lib/esm/config.cjs +1 -0
  358. package/dist/node_modules/web3-eth-ens/lib/esm/config.js +27 -0
  359. package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -0
  360. package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +241 -0
  361. package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -0
  362. package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +105 -0
  363. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -0
  364. package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +95 -0
  365. package/dist/node_modules/web3-eth-ens/lib/esm/utils.cjs +1 -0
  366. package/dist/node_modules/web3-eth-ens/lib/esm/utils.js +19 -0
  367. package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -0
  368. package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +283 -0
  369. package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -0
  370. package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +265 -0
  371. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -0
  372. package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +93 -0
  373. package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -0
  374. package/dist/node_modules/web3-net/lib/esm/net.js +97 -0
  375. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -0
  376. package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +51 -0
  377. package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -0
  378. package/dist/node_modules/web3-providers-http/lib/esm/index.js +98 -0
  379. package/dist/node_modules/web3-providers-ws/lib/esm/index.cjs +1 -0
  380. package/dist/node_modules/web3-providers-ws/lib/esm/index.js +70 -0
  381. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -0
  382. package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +407 -0
  383. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -0
  384. package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +56 -0
  385. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -0
  386. package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +84 -0
  387. package/dist/node_modules/web3-types/lib/esm/data_format_types.cjs +1 -0
  388. package/dist/node_modules/web3-types/lib/esm/data_format_types.js +15 -0
  389. package/dist/node_modules/web3-types/lib/esm/eth_types.cjs +1 -0
  390. package/dist/node_modules/web3-types/lib/esm/eth_types.js +12 -0
  391. package/dist/node_modules/web3-types/lib/esm/primitives_types.cjs +1 -0
  392. package/dist/node_modules/web3-types/lib/esm/primitives_types.js +4 -0
  393. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -0
  394. package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +89 -0
  395. package/dist/node_modules/web3-types/lib/esm/web3_base_wallet.cjs +1 -0
  396. package/dist/node_modules/web3-types/lib/esm/web3_base_wallet.js +8 -0
  397. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -0
  398. package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +37 -0
  399. package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -0
  400. package/dist/node_modules/web3-utils/lib/esm/converters.js +177 -0
  401. package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -0
  402. package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +91 -0
  403. package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -0
  404. package/dist/node_modules/web3-utils/lib/esm/formatter.js +134 -0
  405. package/dist/node_modules/web3-utils/lib/esm/hash.cjs +1 -0
  406. package/dist/node_modules/web3-utils/lib/esm/hash.js +107 -0
  407. package/dist/node_modules/web3-utils/lib/esm/index.cjs +1 -0
  408. package/dist/node_modules/web3-utils/lib/esm/index.js +107 -0
  409. package/dist/node_modules/web3-utils/lib/esm/json_rpc.cjs +1 -0
  410. package/dist/node_modules/web3-utils/lib/esm/json_rpc.js +41 -0
  411. package/dist/node_modules/web3-utils/lib/esm/objects.cjs +1 -0
  412. package/dist/node_modules/web3-utils/lib/esm/objects.js +20 -0
  413. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -0
  414. package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +104 -0
  415. package/dist/node_modules/web3-utils/lib/esm/random.cjs +1 -0
  416. package/dist/node_modules/web3-utils/lib/esm/random.js +7 -0
  417. package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -0
  418. package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +195 -0
  419. package/dist/node_modules/web3-utils/lib/esm/string_manipulation.cjs +1 -0
  420. package/dist/node_modules/web3-utils/lib/esm/string_manipulation.js +48 -0
  421. package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -0
  422. package/dist/node_modules/web3-utils/lib/esm/uint8array.js +21 -0
  423. package/dist/node_modules/web3-utils/lib/esm/uuid.cjs +1 -0
  424. package/dist/node_modules/web3-utils/lib/esm/uuid.js +17 -0
  425. package/dist/node_modules/web3-utils/lib/esm/validation.cjs +1 -0
  426. package/dist/node_modules/web3-utils/lib/esm/validation.js +50 -0
  427. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -0
  428. package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +114 -0
  429. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -0
  430. package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +86 -0
  431. package/dist/node_modules/web3-validator/lib/esm/constants.cjs +1 -0
  432. package/dist/node_modules/web3-validator/lib/esm/constants.js +4 -0
  433. package/dist/node_modules/web3-validator/lib/esm/default_validator.cjs +1 -0
  434. package/dist/node_modules/web3-validator/lib/esm/default_validator.js +5 -0
  435. package/dist/node_modules/web3-validator/lib/esm/errors.cjs +3 -0
  436. package/dist/node_modules/web3-validator/lib/esm/errors.js +17 -0
  437. package/dist/node_modules/web3-validator/lib/esm/formats.cjs +1 -0
  438. package/dist/node_modules/web3-validator/lib/esm/formats.js +31 -0
  439. package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -0
  440. package/dist/node_modules/web3-validator/lib/esm/utils.js +178 -0
  441. package/dist/node_modules/web3-validator/lib/esm/validation/abi.cjs +1 -0
  442. package/dist/node_modules/web3-validator/lib/esm/validation/abi.js +4 -0
  443. package/dist/node_modules/web3-validator/lib/esm/validation/address.cjs +1 -0
  444. package/dist/node_modules/web3-validator/lib/esm/validation/address.js +22 -0
  445. package/dist/node_modules/web3-validator/lib/esm/validation/block.cjs +1 -0
  446. package/dist/node_modules/web3-validator/lib/esm/validation/block.js +10 -0
  447. package/dist/node_modules/web3-validator/lib/esm/validation/bloom.cjs +1 -0
  448. package/dist/node_modules/web3-validator/lib/esm/validation/bloom.js +29 -0
  449. package/dist/node_modules/web3-validator/lib/esm/validation/boolean.cjs +1 -0
  450. package/dist/node_modules/web3-validator/lib/esm/validation/boolean.js +5 -0
  451. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -0
  452. package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +27 -0
  453. package/dist/node_modules/web3-validator/lib/esm/validation/filter.cjs +1 -0
  454. package/dist/node_modules/web3-validator/lib/esm/validation/filter.js +26 -0
  455. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -0
  456. package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +52 -0
  457. package/dist/node_modules/web3-validator/lib/esm/validation/object.cjs +1 -0
  458. package/dist/node_modules/web3-validator/lib/esm/validation/object.js +13 -0
  459. package/dist/node_modules/web3-validator/lib/esm/validation/string.cjs +1 -0
  460. package/dist/node_modules/web3-validator/lib/esm/validation/string.js +23 -0
  461. package/dist/node_modules/web3-validator/lib/esm/validation/topic.cjs +1 -0
  462. package/dist/node_modules/web3-validator/lib/esm/validation/topic.js +6 -0
  463. package/dist/node_modules/web3-validator/lib/esm/validator.cjs +1 -0
  464. package/dist/node_modules/web3-validator/lib/esm/validator.js +84 -0
  465. package/dist/node_modules/web3-validator/lib/esm/web3_validator.cjs +1 -0
  466. package/dist/node_modules/web3-validator/lib/esm/web3_validator.js +31 -0
  467. package/dist/node_modules/zod/lib/index.cjs +1 -0
  468. package/dist/node_modules/zod/lib/index.js +2854 -0
  469. package/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.cjs +3 -0
  470. package/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.js +51 -0
  471. package/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.cjs +1 -1
  472. package/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.js +105 -79
  473. package/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +1 -1
  474. package/dist/prometheus-framework/node_modules/axios/lib/axios.js +41 -35
  475. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.cjs +1 -1
  476. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.js +57 -44
  477. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.cjs +1 -1
  478. package/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.js +8 -15
  479. package/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.cjs +1 -1
  480. package/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.js +3 -6
  481. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +1 -1
  482. package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +101 -72
  483. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.cjs +1 -1
  484. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.js +19 -19
  485. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.cjs +2 -0
  486. package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.js +165 -0
  487. package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.cjs +1 -1
  488. package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.js +56 -22
  489. package/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.cjs +1 -1
  490. package/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.js +6 -6
  491. package/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.cjs +1 -1
  492. package/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.js +23 -38
  493. package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.cjs +1 -1
  494. package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.js +62 -58
  495. package/dist/prometheus-framework/node_modules/axios/lib/core/settle.cjs +1 -1
  496. package/dist/prometheus-framework/node_modules/axios/lib/core/settle.js +11 -18
  497. package/dist/prometheus-framework/node_modules/axios/lib/core/transformData.cjs +1 -1
  498. package/dist/prometheus-framework/node_modules/axios/lib/core/transformData.js +11 -9
  499. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
  500. package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +49 -48
  501. package/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.cjs +1 -1
  502. package/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.js +2 -2
  503. package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
  504. package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +2 -7
  505. package/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.cjs +1 -0
  506. package/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
  507. package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.cjs +1 -0
  508. package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.js +72 -0
  509. package/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.cjs +1 -1
  510. package/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.js +4 -6
  511. package/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.cjs +1 -1
  512. package/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.js +13 -24
  513. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -1
  514. package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +4 -4
  515. package/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.cjs +1 -1
  516. package/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.js +30 -40
  517. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -0
  518. package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +30 -0
  519. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +1 -1
  520. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.js +3 -3
  521. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.cjs +1 -1
  522. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.js +4 -11
  523. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +1 -1
  524. package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +34 -39
  525. package/dist/prometheus-framework/node_modules/axios/lib/helpers/null.cjs +1 -1
  526. package/dist/prometheus-framework/node_modules/axios/lib/helpers/null.js +2 -5
  527. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.cjs +2 -2
  528. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.js +28 -38
  529. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.cjs +1 -1
  530. package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.js +4 -7
  531. package/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.cjs +1 -0
  532. package/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.js +19 -0
  533. package/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.cjs +1 -1
  534. package/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.js +5 -8
  535. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.cjs +1 -1
  536. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.js +79 -32
  537. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.cjs +1 -0
  538. package/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
  539. package/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.cjs +1 -1
  540. package/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.js +33 -31
  541. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.cjs +1 -0
  542. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
  543. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.cjs +1 -0
  544. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
  545. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.cjs +1 -0
  546. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
  547. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.cjs +1 -0
  548. package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.js +15 -0
  549. package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -0
  550. package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +7 -0
  551. package/dist/prometheus-framework/node_modules/axios/lib/platform/index.cjs +1 -0
  552. package/dist/prometheus-framework/node_modules/axios/lib/platform/index.js +9 -0
  553. package/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
  554. package/dist/prometheus-framework/node_modules/axios/lib/utils.js +212 -140
  555. package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
  556. package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -72
  557. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
  558. package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -2
  559. package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
  560. package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
  561. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
  562. package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
  563. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
  564. package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
  565. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  566. package/dist/prometheus-framework/src/modules/auth/store/auth.js +1 -1
  567. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  568. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  569. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  570. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  571. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  572. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  573. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  574. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  575. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  576. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  577. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  578. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  579. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  580. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +6 -7
  581. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  582. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  583. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  584. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  585. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  586. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  587. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  588. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  589. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  590. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  591. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  592. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  593. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  594. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  595. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  596. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  597. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  598. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  599. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  600. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  601. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  602. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  603. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  604. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  605. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  606. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  607. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  608. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  609. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
  610. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +30 -61
  611. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  612. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +20 -21
  613. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  614. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +28 -33
  615. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  616. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  617. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  618. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  619. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  620. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +6 -41
  621. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  622. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  623. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  624. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  625. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  626. package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
  627. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  628. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  629. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  630. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  631. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  632. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  633. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  634. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  635. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  636. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +75 -33
  637. package/dist/prometheus-framework.cjs.js +29 -30
  638. package/dist/prometheus-framework.es.js +3953 -3225
  639. package/dist/style.css +1 -1
  640. package/package.json +3 -2
  641. package/src/modules/payments/components/pages/Payments.vue +32 -34
  642. package/src/modules/products/components/blocks/CardLeftover.vue +1 -2
  643. package/src/modules/products/components/blocks/CardProduct.vue +1 -17
  644. package/src/modules/products/components/sections/EditProductInfo.vue +3 -5
@@ -0,0 +1,8 @@
1
+ class s extends Array {
2
+ constructor(e) {
3
+ super(), this._accountProvider = e;
4
+ }
5
+ }
6
+ export {
7
+ s as Web3BaseWallet
8
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../web3-errors/lib/esm/errors/response_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");class i{constructor(e,t){this.eventEmitter=e,this.autoReconnect=t}clearQueues(){typeof this._clearQueues=="function"&&this._clearQueues()}onError(e){this._clearQueues=e}parseResponse(e){const t=[];return e.replace(/\}[\n\r]?\{/g,"}|--|{").replace(/\}\][\n\r]?\[\{/g,"}]|--|[{").replace(/\}[\n\r]?\[\{/g,"}|--|[{").replace(/\}\][\n\r]?\{/g,"}]|--|{").split("|--|").forEach(u=>{let r=u;this.lastChunk&&(r=this.lastChunk+r);let s;try{s=JSON.parse(r)}catch{this.lastChunk=r,this.lastChunkTimeout&&clearTimeout(this.lastChunkTimeout),this.lastChunkTimeout=setTimeout(()=>{this.autoReconnect||(this.clearQueues(),this.eventEmitter.emit("error",new n.InvalidResponseError({id:1,jsonrpc:"2.0",error:{code:2,message:"Chunk timeout"}})))},1e3*15);return}clearTimeout(this.lastChunkTimeout),this.lastChunk=void 0,s&&t.push(s)}),t}}exports.ChunkResponseParser=i;
@@ -0,0 +1,37 @@
1
+ import { InvalidResponseError as n } from "../../../web3-errors/lib/esm/errors/response_errors.js";
2
+ import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
3
+ class l {
4
+ constructor(e, t) {
5
+ this.eventEmitter = e, this.autoReconnect = t;
6
+ }
7
+ clearQueues() {
8
+ typeof this._clearQueues == "function" && this._clearQueues();
9
+ }
10
+ onError(e) {
11
+ this._clearQueues = e;
12
+ }
13
+ parseResponse(e) {
14
+ const t = [];
15
+ return e.replace(/\}[\n\r]?\{/g, "}|--|{").replace(/\}\][\n\r]?\[\{/g, "}]|--|[{").replace(/\}[\n\r]?\[\{/g, "}|--|[{").replace(/\}\][\n\r]?\{/g, "}]|--|{").split("|--|").forEach((u) => {
16
+ let r = u;
17
+ this.lastChunk && (r = this.lastChunk + r);
18
+ let s;
19
+ try {
20
+ s = JSON.parse(r);
21
+ } catch {
22
+ this.lastChunk = r, this.lastChunkTimeout && clearTimeout(this.lastChunkTimeout), this.lastChunkTimeout = setTimeout(() => {
23
+ this.autoReconnect || (this.clearQueues(), this.eventEmitter.emit("error", new n({
24
+ id: 1,
25
+ jsonrpc: "2.0",
26
+ error: { code: 2, message: "Chunk timeout" }
27
+ })));
28
+ }, 1e3 * 15);
29
+ return;
30
+ }
31
+ clearTimeout(this.lastChunkTimeout), this.lastChunk = void 0, s && t.push(s);
32
+ }), t;
33
+ }
34
+ }
35
+ export {
36
+ l as ChunkResponseParser
37
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("../../../ethereum-cryptography/esm/keccak.cjs"),w=require("../../../ethereum-cryptography/esm/utils.cjs"),s=require("../../../web3-errors/lib/esm/errors/utils_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const b=require("../../../web3-validator/lib/esm/utils.cjs"),f=require("../../../web3-validator/lib/esm/default_validator.cjs"),p=require("../../../web3-validator/lib/esm/validation/address.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const U=require("../../../web3-validator/lib/esm/validation/numbers.cjs"),c=require("../../../web3-validator/lib/esm/validation/string.cjs"),q=require("../../../web3-validator/lib/esm/validation/object.cjs"),E=require("../../../@noble/hashes/esm/utils.cjs"),y={noether:BigInt(0),wei:BigInt(1),kwei:BigInt(1e3),Kwei:BigInt(1e3),babbage:BigInt(1e3),femtoether:BigInt(1e3),mwei:BigInt(1e6),Mwei:BigInt(1e6),lovelace:BigInt(1e6),picoether:BigInt(1e6),gwei:BigInt(1e9),Gwei:BigInt(1e9),shannon:BigInt(1e9),nanoether:BigInt(1e9),nano:BigInt(1e9),szabo:BigInt(1e12),microether:BigInt(1e12),micro:BigInt(1e12),finney:BigInt(1e15),milliether:BigInt(1e15),milli:BigInt(1e15),ether:BigInt("1000000000000000000"),kether:BigInt("1000000000000000000000"),grand:BigInt("1000000000000000000000"),mether:BigInt("1000000000000000000000000"),gether:BigInt("1000000000000000000000000000"),tether:BigInt("1000000000000000000000000000000")},I=t=>{if(f.validator.validate(["bytes"],[t]),t instanceof Uint8Array)return t;if(Array.isArray(t))return new Uint8Array(t);if(typeof t=="string")return b.hexToUint8Array(t);throw new s.InvalidBytesError(t)},{uint8ArrayToHexString:$}=b,S=t=>$(I(t)),u=t=>typeof t=="string"&&t.slice(0,2).toLowerCase()!=="0x"?I(`0x${t}`):I(t),B=t=>(f.validator.validate(["hex"],[t]),b.hexToNumber(t)),C=B,d=(t,r)=>{typeof t!="bigint"&&f.validator.validate(["int"],[t]);let i=b.numberToHex(t);return r&&(!i.startsWith("-")&&i.length%2===1?i="0x0".concat(i.slice(2)):i.length%2===0&&i.startsWith("-")&&(i="-0x0".concat(i.slice(3)))),i},W=d,k=t=>B(t).toString(),x=t=>{f.validator.validate(["string"],[t]);let r=t.replace(/^(?:\u0000)/,"");return r=r.replace(/(?:\u0000)$/,""),S(new TextEncoder().encode(r))},D=x,M=x,T=t=>w.bytesToUtf8(u(t)),_=t=>typeof t=="string"?T(t):(f.validator.validate(["bytes"],[t]),w.bytesToUtf8(t)),A=E.utf8ToBytes,O=T,l=t=>{f.validator.validate(["string"],[t]);let r="";for(let i=0;i<t.length;i+=1){const e=t.charCodeAt(i).toString(16);r+=e.length%2!==0?`0${e}`:e}return`0x${r}`},j=l,H=t=>new TextDecoder("ascii").decode(u(t)),F=H,G=(t,r)=>{if(typeof t=="string"&&p.isAddress(t))return r?"address":`0x${t.toLowerCase().replace(/^0x/i,"")}`;if(typeof t=="boolean")return r?"bool":t?"0x01":"0x00";if(typeof t=="number")return r?t<0?"int256":"uint256":d(t);if(typeof t=="bigint")return r?"bigint":d(t);if(typeof t=="object"&&t)return r?"string":x(JSON.stringify(t));if(typeof t=="string"){if(t.startsWith("-0x")||t.startsWith("-0X"))return r?"int256":d(t);if(c.isHexStrict(t))return r?"bytes":t;if(c.isHex(t)&&!U.isInt(t))return r?"bytes":`0x${t}`;if(!Number.isFinite(t))return r?"string":x(t)}throw new s.HexProcessingError(t)},m=t=>{if(typeof t=="number")return t;if(typeof t=="bigint")return t>=Number.MIN_SAFE_INTEGER&&t<=Number.MAX_SAFE_INTEGER?Number(t):t;if(typeof t=="string"&&c.isHexStrict(t))return B(t);try{return m(BigInt(t))}catch{throw new s.InvalidNumberError(t)}},L=t=>{if(typeof t=="number")return BigInt(t);if(typeof t=="bigint")return t;if(typeof t=="string"&&c.isHex(t))return t.startsWith("-")?-BigInt(t.substring(1)):BigInt(t);throw new s.InvalidNumberError(t)},P=(t,r)=>{const i=y[r];if(!i)throw new s.InvalidUnitError(r);const e=String(m(t)),n=i.toString().length-1;if(n<=0)return e.toString();const o=e.padStart(n,"0"),g=o.slice(0,-n),h=o.slice(-n).replace(/\.?0+$/,"");return g===""?`0.${h}`:h===""?g:`${g}.${h}`},V=(t,r)=>{f.validator.validate(["number"],[t]);const i=y[r];if(!i)throw new s.InvalidUnitError(r);const[e,n]=String(typeof t=="string"&&!c.isHexStrict(t)?t:m(t)).split(".").concat(""),g=BigInt(`${e}${n}`)*i,h=i.toString().length-1,a=Math.min(n.length,h);return a===0?g.toString():g.toString().padStart(a,"0").slice(0,-a)},z=t=>{if(!p.isAddress(t,!1))throw new s.InvalidAddressError(t);const r=t.toLowerCase().replace(/^0x/i,""),i=b.uint8ArrayToHexString(N.keccak256(A(r)));if(q.isNullish(i)||i==="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470")return"";let e="0x";const n=i.replace(/^0x/i,"");for(let o=0;o<r.length;o+=1)parseInt(n[o],16)>7?e+=r[o].toUpperCase():e+=r[o];return e},R=t=>{if(typeof t=="boolean")return t;if(typeof t=="number"&&(t===0||t===1)||typeof t=="bigint"&&(t===BigInt(0)||t===BigInt(1)))return!!t;if(typeof t=="string"&&!c.isHexStrict(t)&&(t==="1"||t==="0"||t==="false"||t==="true"))return t==="true"?!0:t==="false"?!1:!!Number(t);if(typeof t=="string"&&c.isHexStrict(t)&&(t==="0x1"||t==="0x0"))return!!m(t);throw new s.InvalidBooleanError(t)};exports.asciiToHex=l;exports.bytesToHex=S;exports.bytesToUint8Array=I;exports.ethUnitMap=y;exports.fromAscii=j;exports.fromDecimal=W;exports.fromUtf8=D;exports.fromWei=P;exports.hexToAscii=H;exports.hexToBytes=u;exports.hexToNumber=B;exports.hexToNumberString=k;exports.hexToString=O;exports.hexToUtf8=T;exports.numberToHex=d;exports.stringToHex=M;exports.toAscii=F;exports.toBigInt=L;exports.toBool=R;exports.toChecksumAddress=z;exports.toDecimal=C;exports.toHex=G;exports.toNumber=m;exports.toUtf8=_;exports.toWei=V;exports.utf8ToBytes=A;exports.utf8ToHex=x;
@@ -0,0 +1,177 @@
1
+ import { keccak256 as N } from "../../../ethereum-cryptography/esm/keccak.js";
2
+ import { bytesToUtf8 as p } from "../../../ethereum-cryptography/esm/utils.js";
3
+ import { InvalidBytesError as $, HexProcessingError as H, InvalidNumberError as b, InvalidUnitError as y, InvalidAddressError as E, InvalidBooleanError as U } from "../../../web3-errors/lib/esm/errors/utils_errors.js";
4
+ import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
5
+ import "../../../web3-validator/lib/esm/formats.js";
6
+ import * as C from "../../../web3-validator/lib/esm/utils.js";
7
+ import { hexToUint8Array as W, hexToNumber as k, numberToHex as l, uint8ArrayToHexString as u } from "../../../web3-validator/lib/esm/utils.js";
8
+ import { validator as s } from "../../../web3-validator/lib/esm/default_validator.js";
9
+ import { isAddress as w } from "../../../web3-validator/lib/esm/validation/address.js";
10
+ import "../../../web3-types/lib/esm/data_format_types.js";
11
+ import "../../../web3-types/lib/esm/eth_types.js";
12
+ import "../../../web3-types/lib/esm/web3_base_provider.js";
13
+ import { isInt as D } from "../../../web3-validator/lib/esm/validation/numbers.js";
14
+ import { isHexStrict as g, isHex as a } from "../../../web3-validator/lib/esm/validation/string.js";
15
+ import { isNullish as M } from "../../../web3-validator/lib/esm/validation/object.js";
16
+ import { utf8ToBytes as _ } from "../../../@noble/hashes/esm/utils.js";
17
+ const A = {
18
+ noether: BigInt(0),
19
+ wei: BigInt(1),
20
+ kwei: BigInt(1e3),
21
+ Kwei: BigInt(1e3),
22
+ babbage: BigInt(1e3),
23
+ femtoether: BigInt(1e3),
24
+ mwei: BigInt(1e6),
25
+ Mwei: BigInt(1e6),
26
+ lovelace: BigInt(1e6),
27
+ picoether: BigInt(1e6),
28
+ gwei: BigInt(1e9),
29
+ Gwei: BigInt(1e9),
30
+ shannon: BigInt(1e9),
31
+ nanoether: BigInt(1e9),
32
+ nano: BigInt(1e9),
33
+ szabo: BigInt(1e12),
34
+ microether: BigInt(1e12),
35
+ micro: BigInt(1e12),
36
+ finney: BigInt(1e15),
37
+ milliether: BigInt(1e15),
38
+ milli: BigInt(1e15),
39
+ ether: BigInt("1000000000000000000"),
40
+ kether: BigInt("1000000000000000000000"),
41
+ grand: BigInt("1000000000000000000000"),
42
+ mether: BigInt("1000000000000000000000000"),
43
+ gether: BigInt("1000000000000000000000000000"),
44
+ tether: BigInt("1000000000000000000000000000000")
45
+ }, B = (t) => {
46
+ if (s.validate(["bytes"], [t]), t instanceof Uint8Array)
47
+ return t;
48
+ if (Array.isArray(t))
49
+ return new Uint8Array(t);
50
+ if (typeof t == "string")
51
+ return W(t);
52
+ throw new $(t);
53
+ }, { uint8ArrayToHexString: F } = C, G = (t) => F(B(t)), S = (t) => typeof t == "string" && t.slice(0, 2).toLowerCase() !== "0x" ? B(`0x${t}`) : B(t), d = (t) => (s.validate(["hex"], [t]), k(t)), i0 = d, m = (t, r) => {
54
+ typeof t != "bigint" && s.validate(["int"], [t]);
55
+ let n = l(t);
56
+ return r && (!n.startsWith("-") && n.length % 2 === 1 ? n = "0x0".concat(n.slice(2)) : n.length % 2 === 0 && n.startsWith("-") && (n = "-0x0".concat(n.slice(3)))), n;
57
+ }, o0 = m, e0 = (t) => d(t).toString(), h = (t) => {
58
+ s.validate(["string"], [t]);
59
+ let r = t.replace(/^(?:\u0000)/, "");
60
+ return r = r.replace(/(?:\u0000)$/, ""), G(new TextEncoder().encode(r));
61
+ }, s0 = h, f0 = h, T = (t) => p(S(t)), c0 = (t) => typeof t == "string" ? T(t) : (s.validate(["bytes"], [t]), p(t)), L = _, g0 = T, O = (t) => {
62
+ s.validate(["string"], [t]);
63
+ let r = "";
64
+ for (let n = 0; n < t.length; n += 1) {
65
+ const i = t.charCodeAt(n).toString(16);
66
+ r += i.length % 2 !== 0 ? `0${i}` : i;
67
+ }
68
+ return `0x${r}`;
69
+ }, m0 = O, V = (t) => new TextDecoder("ascii").decode(S(t)), h0 = V, I0 = (t, r) => {
70
+ if (typeof t == "string" && w(t))
71
+ return r ? "address" : `0x${t.toLowerCase().replace(/^0x/i, "")}`;
72
+ if (typeof t == "boolean")
73
+ return r ? "bool" : t ? "0x01" : "0x00";
74
+ if (typeof t == "number")
75
+ return r ? t < 0 ? "int256" : "uint256" : m(t);
76
+ if (typeof t == "bigint")
77
+ return r ? "bigint" : m(t);
78
+ if (typeof t == "object" && t)
79
+ return r ? "string" : h(JSON.stringify(t));
80
+ if (typeof t == "string") {
81
+ if (t.startsWith("-0x") || t.startsWith("-0X"))
82
+ return r ? "int256" : m(t);
83
+ if (g(t))
84
+ return r ? "bytes" : t;
85
+ if (a(t) && !D(t))
86
+ return r ? "bytes" : `0x${t}`;
87
+ if (!Number.isFinite(t))
88
+ return r ? "string" : h(t);
89
+ }
90
+ throw new H(t);
91
+ }, I = (t) => {
92
+ if (typeof t == "number")
93
+ return t;
94
+ if (typeof t == "bigint")
95
+ return t >= Number.MIN_SAFE_INTEGER && t <= Number.MAX_SAFE_INTEGER ? Number(t) : t;
96
+ if (typeof t == "string" && g(t))
97
+ return d(t);
98
+ try {
99
+ return I(BigInt(t));
100
+ } catch {
101
+ throw new b(t);
102
+ }
103
+ }, x0 = (t) => {
104
+ if (typeof t == "number")
105
+ return BigInt(t);
106
+ if (typeof t == "bigint")
107
+ return t;
108
+ if (typeof t == "string" && a(t))
109
+ return t.startsWith("-") ? -BigInt(t.substring(1)) : BigInt(t);
110
+ throw new b(t);
111
+ }, B0 = (t, r) => {
112
+ const n = A[r];
113
+ if (!n)
114
+ throw new y(r);
115
+ const i = String(I(t)), o = n.toString().length - 1;
116
+ if (o <= 0)
117
+ return i.toString();
118
+ const e = i.padStart(o, "0"), f = e.slice(0, -o), c = e.slice(-o).replace(/\.?0+$/, "");
119
+ return f === "" ? `0.${c}` : c === "" ? f : `${f}.${c}`;
120
+ }, d0 = (t, r) => {
121
+ s.validate(["number"], [t]);
122
+ const n = A[r];
123
+ if (!n)
124
+ throw new y(r);
125
+ const [i, o] = String(typeof t == "string" && !g(t) ? t : I(t)).split(".").concat(""), f = BigInt(`${i}${o}`) * n, c = n.toString().length - 1, x = Math.min(o.length, c);
126
+ return x === 0 ? f.toString() : f.toString().padStart(x, "0").slice(0, -x);
127
+ }, p0 = (t) => {
128
+ if (!w(t, !1))
129
+ throw new E(t);
130
+ const r = t.toLowerCase().replace(/^0x/i, ""), n = u(N(L(r)));
131
+ if (M(n) || n === "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470")
132
+ return "";
133
+ let i = "0x";
134
+ const o = n.replace(/^0x/i, "");
135
+ for (let e = 0; e < r.length; e += 1)
136
+ parseInt(o[e], 16) > 7 ? i += r[e].toUpperCase() : i += r[e];
137
+ return i;
138
+ }, b0 = (t) => {
139
+ if (typeof t == "boolean")
140
+ return t;
141
+ if (typeof t == "number" && (t === 0 || t === 1) || typeof t == "bigint" && (t === BigInt(0) || t === BigInt(1)))
142
+ return !!t;
143
+ if (typeof t == "string" && !g(t) && (t === "1" || t === "0" || t === "false" || t === "true"))
144
+ return t === "true" ? !0 : t === "false" ? !1 : !!Number(t);
145
+ if (typeof t == "string" && g(t) && (t === "0x1" || t === "0x0"))
146
+ return !!I(t);
147
+ throw new U(t);
148
+ };
149
+ export {
150
+ O as asciiToHex,
151
+ G as bytesToHex,
152
+ B as bytesToUint8Array,
153
+ A as ethUnitMap,
154
+ m0 as fromAscii,
155
+ o0 as fromDecimal,
156
+ s0 as fromUtf8,
157
+ B0 as fromWei,
158
+ V as hexToAscii,
159
+ S as hexToBytes,
160
+ d as hexToNumber,
161
+ e0 as hexToNumberString,
162
+ g0 as hexToString,
163
+ T as hexToUtf8,
164
+ m as numberToHex,
165
+ f0 as stringToHex,
166
+ h0 as toAscii,
167
+ x0 as toBigInt,
168
+ b0 as toBool,
169
+ p0 as toChecksumAddress,
170
+ i0 as toDecimal,
171
+ I0 as toHex,
172
+ I as toNumber,
173
+ c0 as toUtf8,
174
+ d0 as toWei,
175
+ L as utf8ToBytes,
176
+ h as utf8ToHex
177
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../../../events/events.cjs");var f=globalThis&&globalThis.__awaiter||function(o,e,t,s){function n(i){return i instanceof t?i:new t(function(c){c(i)})}return new(t||(t=Promise))(function(i,c){function a(r){try{u(s.next(r))}catch(l){c(l)}}function d(r){try{u(s.throw(r))}catch(l){c(l)}}function u(r){r.done?i(r.value):n(r.value).then(a,d)}u((s=s.apply(o,e||[])).next())})};const v=o=>e=>o(e.detail);class p extends EventTarget{constructor(){super(...arguments),this._listeners={},this.maxListeners=Number.MAX_SAFE_INTEGER}on(e,t){return this.addEventListener(e,t),this}once(e,t){const s=n=>f(this,void 0,void 0,function*(){this.off(e,s),yield t(n)});return this.on(e,s)}off(e,t){return this.removeEventListener(e,t),this}emit(e,t){const s=new CustomEvent(e,{detail:t});return super.dispatchEvent(s)}listenerCount(e){const t=this._listeners[e];return t?t.length:0}listeners(e){return this._listeners[e].map(t=>t[0])||[]}eventNames(){return Object.keys(this._listeners)}removeAllListeners(){return Object.keys(this._listeners).forEach(e=>{this._listeners[e].forEach(t=>{super.removeEventListener(e,t[1])})}),this._listeners={},this}setMaxListeners(e){return this.maxListeners=e,this}getMaxListeners(){return this.maxListeners}addEventListener(e,t){const s=v(t);super.addEventListener(e,s),this._listeners[e]||(this._listeners[e]=[]),this._listeners[e].push([t,s])}removeEventListener(e,t){const s=this._listeners[e];if(s){const n=s.findIndex(i=>i[0]===t);n!==-1&&(super.removeEventListener(e,s[n][1]),s.splice(n,1))}}}let h;typeof window>"u"?h=E.eventsExports.EventEmitter:h=p;class _ extends h{}exports.EventEmitter=_;
@@ -0,0 +1,91 @@
1
+ import { e as f } from "../../../events/events.js";
2
+ var E = globalThis && globalThis.__awaiter || function(o, e, t, s) {
3
+ function n(i) {
4
+ return i instanceof t ? i : new t(function(c) {
5
+ c(i);
6
+ });
7
+ }
8
+ return new (t || (t = Promise))(function(i, c) {
9
+ function a(r) {
10
+ try {
11
+ h(s.next(r));
12
+ } catch (l) {
13
+ c(l);
14
+ }
15
+ }
16
+ function d(r) {
17
+ try {
18
+ h(s.throw(r));
19
+ } catch (l) {
20
+ c(l);
21
+ }
22
+ }
23
+ function h(r) {
24
+ r.done ? i(r.value) : n(r.value).then(a, d);
25
+ }
26
+ h((s = s.apply(o, e || [])).next());
27
+ });
28
+ };
29
+ const p = (o) => (e) => o(e.detail);
30
+ class v extends EventTarget {
31
+ constructor() {
32
+ super(...arguments), this._listeners = {}, this.maxListeners = Number.MAX_SAFE_INTEGER;
33
+ }
34
+ on(e, t) {
35
+ return this.addEventListener(e, t), this;
36
+ }
37
+ once(e, t) {
38
+ const s = (n) => E(this, void 0, void 0, function* () {
39
+ this.off(e, s), yield t(n);
40
+ });
41
+ return this.on(e, s);
42
+ }
43
+ off(e, t) {
44
+ return this.removeEventListener(e, t), this;
45
+ }
46
+ emit(e, t) {
47
+ const s = new CustomEvent(e, { detail: t });
48
+ return super.dispatchEvent(s);
49
+ }
50
+ listenerCount(e) {
51
+ const t = this._listeners[e];
52
+ return t ? t.length : 0;
53
+ }
54
+ listeners(e) {
55
+ return this._listeners[e].map((t) => t[0]) || [];
56
+ }
57
+ eventNames() {
58
+ return Object.keys(this._listeners);
59
+ }
60
+ removeAllListeners() {
61
+ return Object.keys(this._listeners).forEach((e) => {
62
+ this._listeners[e].forEach((t) => {
63
+ super.removeEventListener(e, t[1]);
64
+ });
65
+ }), this._listeners = {}, this;
66
+ }
67
+ setMaxListeners(e) {
68
+ return this.maxListeners = e, this;
69
+ }
70
+ getMaxListeners() {
71
+ return this.maxListeners;
72
+ }
73
+ addEventListener(e, t) {
74
+ const s = p(t);
75
+ super.addEventListener(e, s), this._listeners[e] || (this._listeners[e] = []), this._listeners[e].push([t, s]);
76
+ }
77
+ removeEventListener(e, t) {
78
+ const s = this._listeners[e];
79
+ if (s) {
80
+ const n = s.findIndex((i) => i[0] === t);
81
+ n !== -1 && (super.removeEventListener(e, s[n][1]), s.splice(n, 1));
82
+ }
83
+ }
84
+ }
85
+ let u;
86
+ typeof window > "u" ? u = f.EventEmitter : u = v;
87
+ class m extends u {
88
+ }
89
+ export {
90
+ m as EventEmitter
91
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const v=require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const a=require("../../../web3-validator/lib/esm/utils.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");const p=require("../../../web3-validator/lib/esm/validation/object.cjs"),b=require("./converters.cjs"),B=require("./objects.cjs"),q=require("./string_manipulation.cjs"),E=require("./uint8array.cjs"),{parseBaseType:M}=a,N=r=>typeof r=="object"&&!p.isNullish(r)&&"number"in r&&"bytes"in r,I=(r,s,i=[])=>{let e=Object.assign({},r),o;for(const u of s){if(e.oneOf&&o){const l=i.find(function(y){return this===y[0]},o??"");l&&l[0]===o&&(e=e.oneOf[l[1]])}if(!e.properties&&!e.items)return;if(e.properties)e=e.properties[u];else if(e.items&&e.items.properties){const l=e.items.properties;if(!l)return;e=l[u]}else e.items&&p.isObject(e.items)?e=e.items:e.items&&Array.isArray(e.items)&&(e=e.items[parseInt(u,10)]);e&&u&&(o=u)}return e},m=(r,s,i)=>{try{const{baseType:e,baseTypeSize:o}=M(s);if(e==="int"||e==="uint")switch(i.number){case v.FMT_NUMBER.NUMBER:return Number(b.toBigInt(r));case v.FMT_NUMBER.HEX:return b.numberToHex(b.toBigInt(r));case v.FMT_NUMBER.STR:return b.toBigInt(r).toString();case v.FMT_NUMBER.BIGINT:return b.toBigInt(r);default:throw new g.FormatterError(`Invalid format: ${String(i.number)}`)}if(e==="bytes"){let u;switch(o?typeof r=="string"?u=q.padLeft(r,o*2):r instanceof Uint8Array&&(u=E.uint8ArrayConcat(new Uint8Array(o-r.length),r)):u=r,i.bytes){case v.FMT_BYTES.HEX:return b.bytesToHex(b.bytesToUint8Array(u));case v.FMT_BYTES.UINT8ARRAY:return b.bytesToUint8Array(u);default:throw new g.FormatterError(`Invalid format: ${String(i.bytes)}`)}}}catch{return r}return r},A=(r,s,i,e,o=[])=>{var u,l;if(!p.isObject(r)&&!Array.isArray(r))return m(r,s==null?void 0:s.format,e);const y=r;for(const[d,c]of Object.entries(y)){i.push(d);const f=I(s,i,o);if(p.isNullish(f)){delete y[d],i.pop();continue}if(p.isObject(c)){A(c,s,i,e),i.pop();continue}if(Array.isArray(c)){let n=f;if((f==null?void 0:f.oneOf)!==void 0&&f.oneOf.forEach((t,_)=>{var T,j;!Array.isArray(f==null?void 0:f.items)&&(typeof c[0]=="object"&&((T=t==null?void 0:t.items)===null||T===void 0?void 0:T.type)==="object"||typeof c[0]=="string"&&((j=t==null?void 0:t.items)===null||j===void 0?void 0:j.type)!=="object")&&(n=t,o.push([d,_]))}),p.isNullish(n==null?void 0:n.items)){delete y[d],i.pop();continue}if(p.isObject(n.items)&&!p.isNullish(n.items.format)){for(let t=0;t<c.length;t+=1)y[d][t]=m(c[t],(u=n==null?void 0:n.items)===null||u===void 0?void 0:u.format,e);i.pop();continue}if(!Array.isArray(n==null?void 0:n.items)&&((l=n==null?void 0:n.items)===null||l===void 0?void 0:l.type)==="object"){for(const t of c)A(t,s,i,e,o);i.pop();continue}if(Array.isArray(n==null?void 0:n.items)){for(let t=0;t<c.length;t+=1)y[d][t]=m(c[t],n.items[t].format,e);i.pop();continue}}y[d]=m(c,f.format,e),i.pop()}return y},U=(r,s,i)=>{let e;p.isObject(s)?e=B.mergeDeep({},s):Array.isArray(s)?e=[...s]:e=s;const o=p.isObject(r)?r:a.ethAbiToJsonSchema(r);if(!o.properties&&!o.items&&!o.format)throw new g.FormatterError("Invalid json schema for formatting");return A(e,o,[],i)};exports.convert=A;exports.convertScalarValue=m;exports.format=U;exports.isDataFormat=N;
@@ -0,0 +1,134 @@
1
+ import { FormatterError as j } from "../../../web3-errors/lib/esm/errors/generic_errors.js";
2
+ import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
3
+ import { FMT_NUMBER as d, FMT_BYTES as I } from "../../../web3-types/lib/esm/data_format_types.js";
4
+ import "../../../web3-types/lib/esm/eth_types.js";
5
+ import "../../../web3-types/lib/esm/web3_base_provider.js";
6
+ import "../../../web3-validator/lib/esm/formats.js";
7
+ import * as _ from "../../../web3-validator/lib/esm/utils.js";
8
+ import { ethAbiToJsonSchema as N } from "../../../web3-validator/lib/esm/utils.js";
9
+ import "../../../web3-validator/lib/esm/default_validator.js";
10
+ import { isNullish as A, isObject as y } from "../../../web3-validator/lib/esm/validation/object.js";
11
+ import { toBigInt as v, numberToHex as U, bytesToUint8Array as B, bytesToHex as R } from "./converters.js";
12
+ import { mergeDeep as D } from "./objects.js";
13
+ import { padLeft as H } from "./string_manipulation.js";
14
+ import { uint8ArrayConcat as M } from "./uint8array.js";
15
+ const { parseBaseType: S } = _, O = (e) => typeof e == "object" && !A(e) && "number" in e && "bytes" in e, x = (e, s, r = []) => {
16
+ let i = Object.assign({}, e), o;
17
+ for (const f of s) {
18
+ if (i.oneOf && o) {
19
+ const l = r.find(function(m) {
20
+ return this === m[0];
21
+ }, o ?? "");
22
+ l && l[0] === o && (i = i.oneOf[l[1]]);
23
+ }
24
+ if (!i.properties && !i.items)
25
+ return;
26
+ if (i.properties)
27
+ i = i.properties[f];
28
+ else if (i.items && i.items.properties) {
29
+ const l = i.items.properties;
30
+ if (!l)
31
+ return;
32
+ i = l[f];
33
+ } else
34
+ i.items && y(i.items) ? i = i.items : i.items && Array.isArray(i.items) && (i = i.items[parseInt(f, 10)]);
35
+ i && f && (o = f);
36
+ }
37
+ return i;
38
+ }, b = (e, s, r) => {
39
+ try {
40
+ const { baseType: i, baseTypeSize: o } = S(s);
41
+ if (i === "int" || i === "uint")
42
+ switch (r.number) {
43
+ case d.NUMBER:
44
+ return Number(v(e));
45
+ case d.HEX:
46
+ return U(v(e));
47
+ case d.STR:
48
+ return v(e).toString();
49
+ case d.BIGINT:
50
+ return v(e);
51
+ default:
52
+ throw new j(`Invalid format: ${String(r.number)}`);
53
+ }
54
+ if (i === "bytes") {
55
+ let f;
56
+ switch (o ? typeof e == "string" ? f = H(e, o * 2) : e instanceof Uint8Array && (f = M(new Uint8Array(o - e.length), e)) : f = e, r.bytes) {
57
+ case I.HEX:
58
+ return R(B(f));
59
+ case I.UINT8ARRAY:
60
+ return B(f);
61
+ default:
62
+ throw new j(`Invalid format: ${String(r.bytes)}`);
63
+ }
64
+ }
65
+ } catch {
66
+ return e;
67
+ }
68
+ return e;
69
+ }, w = (e, s, r, i, o = []) => {
70
+ var f, l;
71
+ if (!y(e) && !Array.isArray(e))
72
+ return b(e, s == null ? void 0 : s.format, i);
73
+ const m = e;
74
+ for (const [c, p] of Object.entries(m)) {
75
+ r.push(c);
76
+ const u = x(s, r, o);
77
+ if (A(u)) {
78
+ delete m[c], r.pop();
79
+ continue;
80
+ }
81
+ if (y(p)) {
82
+ w(p, s, r, i), r.pop();
83
+ continue;
84
+ }
85
+ if (Array.isArray(p)) {
86
+ let n = u;
87
+ if ((u == null ? void 0 : u.oneOf) !== void 0 && u.oneOf.forEach((t, E) => {
88
+ var T, g;
89
+ !Array.isArray(u == null ? void 0 : u.items) && (typeof p[0] == "object" && ((T = t == null ? void 0 : t.items) === null || T === void 0 ? void 0 : T.type) === "object" || typeof p[0] == "string" && ((g = t == null ? void 0 : t.items) === null || g === void 0 ? void 0 : g.type) !== "object") && (n = t, o.push([c, E]));
90
+ }), A(n == null ? void 0 : n.items)) {
91
+ delete m[c], r.pop();
92
+ continue;
93
+ }
94
+ if (y(n.items) && !A(n.items.format)) {
95
+ for (let t = 0; t < p.length; t += 1)
96
+ m[c][t] = b(
97
+ p[t],
98
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
99
+ (f = n == null ? void 0 : n.items) === null || f === void 0 ? void 0 : f.format,
100
+ i
101
+ );
102
+ r.pop();
103
+ continue;
104
+ }
105
+ if (!Array.isArray(n == null ? void 0 : n.items) && ((l = n == null ? void 0 : n.items) === null || l === void 0 ? void 0 : l.type) === "object") {
106
+ for (const t of p)
107
+ w(t, s, r, i, o);
108
+ r.pop();
109
+ continue;
110
+ }
111
+ if (Array.isArray(n == null ? void 0 : n.items)) {
112
+ for (let t = 0; t < p.length; t += 1)
113
+ m[c][t] = b(p[t], n.items[t].format, i);
114
+ r.pop();
115
+ continue;
116
+ }
117
+ }
118
+ m[c] = b(p, u.format, i), r.pop();
119
+ }
120
+ return m;
121
+ }, Q = (e, s, r) => {
122
+ let i;
123
+ y(s) ? i = D({}, s) : Array.isArray(s) ? i = [...s] : i = s;
124
+ const o = y(e) ? e : N(e);
125
+ if (!o.properties && !o.items && !o.format)
126
+ throw new j("Invalid json schema for formatting");
127
+ return w(i, o, [], r);
128
+ };
129
+ export {
130
+ w as convert,
131
+ b as convertScalarValue,
132
+ Q as format,
133
+ O as isDataFormat
134
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("../../../ethereum-cryptography/esm/keccak.cjs"),s=require("../../../web3-errors/lib/esm/errors/utils_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const p=require("../../../web3-validator/lib/esm/validation/string.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");const A=require("../../../web3-validator/lib/esm/validation/address.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const k=require("../../../web3-validator/lib/esm/validation/object.cjs"),o=require("./converters.cjs"),u=require("./string_manipulation.cjs"),f=require("../../../@noble/hashes/esm/utils.cjs"),w="0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",l=t=>{let e;typeof t=="string"?t.startsWith("0x")&&p.isHexStrict(t)?e=o.hexToBytes(t):e=f.utf8ToBytes(t):e=t;const r=o.bytesToHex(g.keccak256(e));return r===w?void 0:r},S=t=>{const e=l(t);return k.isNullish(e)?w:e},x=t=>{let e;return typeof t=="bigint"||typeof t=="number"?e=f.utf8ToBytes(t.toString()):Array.isArray(t)?e=new Uint8Array(t):typeof t=="string"&&!p.isHexStrict(t)?e=f.utf8ToBytes(t):e=o.bytesToUint8Array(t),o.bytesToHex(g.keccak256(e))},E=t=>{if(Array.isArray(t))throw new Error("Autodetection of array types is not supported.");let e,r;if(typeof t=="object"&&("t"in t||"type"in t)&&("v"in t||"value"in t))e="t"in t?t.t:t.type,r="v"in t?t.v:t.value,e=e.toLowerCase()==="bigint"?"int":e;else{if(typeof t=="bigint")return["int",t];e=o.toHex(t,!0),r=o.toHex(t),!e.startsWith("int")&&!e.startsWith("uint")&&(e="bytes")}return(e.startsWith("int")||e.startsWith("uint"))&&typeof r=="string"&&!/^(-)?0x/i.test(r)&&(r=o.toBigInt(r)),[e,r]},I=t=>t.startsWith("int[")?`int256${t.slice(3)}`:t==="int"?"int256":t.startsWith("uint[")?`uint256'${t.slice(4)}`:t==="uint"?"uint256":t,a=(t,e)=>{const r=/^(\d+).*$/.exec(t.slice(e));return r?parseInt(r[1],10):0},d=t=>t.toString(2).length,y=(t,e)=>{const r=e.toString();if(t==="string"){if(typeof e=="string")return o.utf8ToHex(e);throw new s.InvalidStringError(e)}if(t==="bool"||t==="boolean"){if(typeof e=="boolean")return e?"01":"00";throw new s.InvalidBooleanError(e)}if(t==="address"){if(!A.isAddress(r))throw new s.InvalidAddressError(r);return r}const c=I(t);if(t.startsWith("uint")){const i=a(c,4);if(i%8||i<8||i>256)throw new s.InvalidSizeError(r);const n=o.toNumber(r);if(d(n)>i)throw new s.InvalidLargeValueError(r);if(n<BigInt(0))throw new s.InvalidUnsignedIntegerError(r);return i?u.leftPad(n.toString(16),i/8*2):n.toString(16)}if(t.startsWith("int")){const i=a(c,3);if(i%8||i<8||i>256)throw new s.InvalidSizeError(t);const n=o.toNumber(r);if(d(n)>i)throw new s.InvalidLargeValueError(r);return n<BigInt(0)?u.toTwosComplement(n.toString(),i/8*2):i?u.leftPad(n.toString(16),i/4):n.toString(16)}if(c==="bytes"){if(r.replace(/^0x/i,"").length%2!==0)throw new s.InvalidBytesError(r);return r}if(t.startsWith("bytes")){if(r.replace(/^0x/i,"").length%2!==0)throw new s.InvalidBytesError(r);const i=a(t,5);if(!i||i<1||i>64||i<r.replace(/^0x/i,"").length/2)throw new s.InvalidBytesError(r);return u.rightPad(r,i*2)}return""},b=t=>{const[e,r]=E(t);return Array.isArray(r)?r.map(n=>y(e,n).replace("0x","")).join(""):y(e,r).replace("0x","")},h=(...t)=>`0x${Array.prototype.slice.call(t).map(b).join("").toLowerCase()}`,v=(...t)=>l(h(...t)),q=(...t)=>S(h(...t)),T=t=>l(`0x${(typeof t=="number"?t.toString():t).padStart(64,"0")}`);exports.encodePacked=h;exports.getStorageSlotNumForLongString=T;exports.keccak256=x;exports.keccak256Wrapper=x;exports.processSolidityEncodePackedArgs=b;exports.sha3=l;exports.sha3Raw=S;exports.soliditySha3=v;exports.soliditySha3Raw=q;
@@ -0,0 +1,107 @@
1
+ import { keccak256 as d } from "../../../ethereum-cryptography/esm/keccak.js";
2
+ import { InvalidStringError as S, InvalidBooleanError as I, InvalidAddressError as E, InvalidSizeError as l, InvalidLargeValueError as h, InvalidUnsignedIntegerError as W, InvalidBytesError as s } from "../../../web3-errors/lib/esm/errors/utils_errors.js";
3
+ import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
4
+ import "../../../web3-validator/lib/esm/formats.js";
5
+ import { isHexStrict as m } from "../../../web3-validator/lib/esm/validation/string.js";
6
+ import "../../../web3-validator/lib/esm/default_validator.js";
7
+ import { isAddress as T } from "../../../web3-validator/lib/esm/validation/address.js";
8
+ import "../../../web3-types/lib/esm/data_format_types.js";
9
+ import "../../../web3-types/lib/esm/eth_types.js";
10
+ import "../../../web3-types/lib/esm/web3_base_provider.js";
11
+ import { isNullish as k } from "../../../web3-validator/lib/esm/validation/object.js";
12
+ import { hexToBytes as v, bytesToHex as x, bytesToUint8Array as B, toHex as p, toBigInt as P, utf8ToHex as z, toNumber as a } from "./converters.js";
13
+ import { leftPad as y, toTwosComplement as H, rightPad as L } from "./string_manipulation.js";
14
+ import { utf8ToBytes as f } from "../../../@noble/hashes/esm/utils.js";
15
+ const A = "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470", u = (t) => {
16
+ let r;
17
+ typeof t == "string" ? t.startsWith("0x") && m(t) ? r = v(t) : r = f(t) : r = t;
18
+ const e = x(d(r));
19
+ return e === A ? void 0 : e;
20
+ }, $ = (t) => {
21
+ const r = u(t);
22
+ return k(r) ? A : r;
23
+ }, X = (t) => {
24
+ let r;
25
+ return typeof t == "bigint" || typeof t == "number" ? r = f(t.toString()) : Array.isArray(t) ? r = new Uint8Array(t) : typeof t == "string" && !m(t) ? r = f(t) : r = B(t), x(d(r));
26
+ }, j = (t) => {
27
+ if (Array.isArray(t))
28
+ throw new Error("Autodetection of array types is not supported.");
29
+ let r, e;
30
+ if (typeof t == "object" && ("t" in t || "type" in t) && ("v" in t || "value" in t))
31
+ r = "t" in t ? t.t : t.type, e = "v" in t ? t.v : t.value, r = r.toLowerCase() === "bigint" ? "int" : r;
32
+ else {
33
+ if (typeof t == "bigint")
34
+ return ["int", t];
35
+ r = p(t, !0), e = p(t), !r.startsWith("int") && !r.startsWith("uint") && (r = "bytes");
36
+ }
37
+ return (r.startsWith("int") || r.startsWith("uint")) && typeof e == "string" && !/^(-)?0x/i.test(e) && (e = P(e)), [r, e];
38
+ }, C = (t) => t.startsWith("int[") ? `int256${t.slice(3)}` : t === "int" ? "int256" : t.startsWith("uint[") ? `uint256'${t.slice(4)}` : t === "uint" ? "uint256" : t, c = (t, r) => {
39
+ const e = /^(\d+).*$/.exec(t.slice(r));
40
+ return e ? parseInt(e[1], 10) : 0;
41
+ }, g = (t) => t.toString(2).length, w = (t, r) => {
42
+ const e = r.toString();
43
+ if (t === "string") {
44
+ if (typeof r == "string")
45
+ return z(r);
46
+ throw new S(r);
47
+ }
48
+ if (t === "bool" || t === "boolean") {
49
+ if (typeof r == "boolean")
50
+ return r ? "01" : "00";
51
+ throw new I(r);
52
+ }
53
+ if (t === "address") {
54
+ if (!T(e))
55
+ throw new E(e);
56
+ return e;
57
+ }
58
+ const o = C(t);
59
+ if (t.startsWith("uint")) {
60
+ const i = c(o, 4);
61
+ if (i % 8 || i < 8 || i > 256)
62
+ throw new l(e);
63
+ const n = a(e);
64
+ if (g(n) > i)
65
+ throw new h(e);
66
+ if (n < BigInt(0))
67
+ throw new W(e);
68
+ return i ? y(n.toString(16), i / 8 * 2) : n.toString(16);
69
+ }
70
+ if (t.startsWith("int")) {
71
+ const i = c(o, 3);
72
+ if (i % 8 || i < 8 || i > 256)
73
+ throw new l(t);
74
+ const n = a(e);
75
+ if (g(n) > i)
76
+ throw new h(e);
77
+ return n < BigInt(0) ? H(n.toString(), i / 8 * 2) : i ? y(n.toString(16), i / 4) : n.toString(16);
78
+ }
79
+ if (o === "bytes") {
80
+ if (e.replace(/^0x/i, "").length % 2 !== 0)
81
+ throw new s(e);
82
+ return e;
83
+ }
84
+ if (t.startsWith("bytes")) {
85
+ if (e.replace(/^0x/i, "").length % 2 !== 0)
86
+ throw new s(e);
87
+ const i = c(t, 5);
88
+ if (!i || i < 1 || i > 64 || i < e.replace(/^0x/i, "").length / 2)
89
+ throw new s(e);
90
+ return L(e, i * 2);
91
+ }
92
+ return "";
93
+ }, N = (t) => {
94
+ const [r, e] = j(t);
95
+ return Array.isArray(e) ? e.map((n) => w(r, n).replace("0x", "")).join("") : w(r, e).replace("0x", "");
96
+ }, b = (...t) => `0x${Array.prototype.slice.call(t).map(N).join("").toLowerCase()}`, Z = (...t) => u(b(...t)), tt = (...t) => $(b(...t)), rt = (t) => u(`0x${(typeof t == "number" ? t.toString() : t).padStart(64, "0")}`);
97
+ export {
98
+ b as encodePacked,
99
+ rt as getStorageSlotNumForLongString,
100
+ X as keccak256,
101
+ X as keccak256Wrapper,
102
+ N as processSolidityEncodePackedArgs,
103
+ u as sha3,
104
+ $ as sha3Raw,
105
+ Z as soliditySha3,
106
+ tt as soliditySha3Raw
107
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./converters.cjs"),d=require("./event_emitter.cjs"),t=require("./validation.cjs"),n=require("./formatter.cjs"),r=require("./hash.cjs"),a=require("./random.cjs"),i=require("./string_manipulation.cjs"),l=require("./objects.cjs"),s=require("./promise_helpers.cjs"),o=require("./json_rpc.cjs"),m=require("./web3_deferred_promise.cjs"),u=require("./chunk_response_parser.cjs"),p=require("./uuid.cjs"),h=require("./web3_eip1193_provider.cjs"),T=require("./socket_provider.cjs"),c=require("./uint8array.cjs");exports.asciiToHex=e.asciiToHex;exports.bytesToHex=e.bytesToHex;exports.bytesToUint8Array=e.bytesToUint8Array;exports.ethUnitMap=e.ethUnitMap;exports.fromAscii=e.fromAscii;exports.fromDecimal=e.fromDecimal;exports.fromUtf8=e.fromUtf8;exports.fromWei=e.fromWei;exports.hexToAscii=e.hexToAscii;exports.hexToBytes=e.hexToBytes;exports.hexToNumber=e.hexToNumber;exports.hexToNumberString=e.hexToNumberString;exports.hexToString=e.hexToString;exports.hexToUtf8=e.hexToUtf8;exports.numberToHex=e.numberToHex;exports.stringToHex=e.stringToHex;exports.toAscii=e.toAscii;exports.toBigInt=e.toBigInt;exports.toBool=e.toBool;exports.toChecksumAddress=e.toChecksumAddress;exports.toDecimal=e.toDecimal;exports.toHex=e.toHex;exports.toNumber=e.toNumber;exports.toUtf8=e.toUtf8;exports.toWei=e.toWei;exports.utf8ToBytes=e.utf8ToBytes;exports.utf8ToHex=e.utf8ToHex;exports.EventEmitter=d.EventEmitter;exports.checkAddressCheckSum=t.checkAddressCheckSum;exports.compareBlockNumbers=t.compareBlockNumbers;exports.isAddress=t.isAddress;exports.isBloom=t.isBloom;exports.isContractAddressInBloom=t.isContractAddressInBloom;exports.isHex=t.isHex;exports.isHexStrict=t.isHexStrict;exports.isInBloom=t.isInBloom;exports.isNullish=t.isNullish;exports.isTopic=t.isTopic;exports.isTopicInBloom=t.isTopicInBloom;exports.isUserEthereumAddressInBloom=t.isUserEthereumAddressInBloom;exports.convert=n.convert;exports.convertScalarValue=n.convertScalarValue;exports.format=n.format;exports.isDataFormat=n.isDataFormat;exports.encodePacked=r.encodePacked;exports.getStorageSlotNumForLongString=r.getStorageSlotNumForLongString;exports.keccak256=r.keccak256Wrapper;exports.keccak256Wrapper=r.keccak256Wrapper;exports.processSolidityEncodePackedArgs=r.processSolidityEncodePackedArgs;exports.sha3=r.sha3;exports.sha3Raw=r.sha3Raw;exports.soliditySha3=r.soliditySha3;exports.soliditySha3Raw=r.soliditySha3Raw;exports.randomBytes=a.randomBytes;exports.randomHex=a.randomHex;exports.fromTwosComplement=i.fromTwosComplement;exports.leftPad=i.leftPad;exports.padLeft=i.padLeft;exports.padRight=i.padRight;exports.rightPad=i.rightPad;exports.toTwosComplement=i.toTwosComplement;exports.mergeDeep=l.mergeDeep;exports.isPromise=s.isPromise;exports.pollTillDefined=s.pollTillDefined;exports.pollTillDefinedAndReturnIntervalId=s.pollTillDefinedAndReturnIntervalId;exports.rejectIfConditionAtInterval=s.rejectIfConditionAtInterval;exports.rejectIfTimeout=s.rejectIfTimeout;exports.waitWithTimeout=s.waitWithTimeout;exports.isBatchRequest=o.isBatchRequest;exports.isBatchResponse=o.isBatchResponse;exports.isResponseRpcError=o.isResponseRpcError;exports.isResponseWithError=o.isResponseWithError;exports.isResponseWithNotification=o.isResponseWithNotification;exports.isResponseWithResult=o.isResponseWithResult;exports.isSubscriptionResult=o.isSubscriptionResult;exports.isValidResponse=o.isValidResponse;exports.jsonRpc=o;exports.setRequestIdStart=o.setRequestIdStart;exports.toBatchPayload=o.toBatchPayload;exports.toPayload=o.toPayload;exports.validateResponse=o.validateResponse;exports.Web3DeferredPromise=m.Web3DeferredPromise;exports.ChunkResponseParser=u.ChunkResponseParser;exports.uuidV4=p.uuidV4;exports.Eip1193Provider=h.Eip1193Provider;exports.SocketProvider=T.SocketProvider;exports.uint8ArrayConcat=c.uint8ArrayConcat;exports.uint8ArrayEquals=c.uint8ArrayEquals;