@ozdao/prometheus-framework 0.1.66 → 0.1.68

Sign up to get free protection for your applications and to get access to all the features.
Files changed (647) 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/components/pages/SignIn.vue.cjs +1 -1
  566. package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +67 -65
  567. package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
  568. package/dist/prometheus-framework/src/modules/auth/store/auth.js +1 -1
  569. package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
  570. package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
  571. package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
  572. package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
  573. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
  574. package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
  575. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
  576. package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
  577. package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
  578. package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
  579. package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
  580. package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
  581. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
  582. package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +6 -7
  583. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
  584. package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
  585. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
  586. package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
  587. package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
  588. package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
  589. package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
  590. package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
  591. package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
  592. package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
  593. package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
  594. package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
  595. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
  596. package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
  597. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
  598. package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
  599. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
  600. package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
  601. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
  602. package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
  603. package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
  604. package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
  605. package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
  606. package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
  607. package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
  608. package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
  609. package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
  610. package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
  611. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
  612. package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +30 -61
  613. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
  614. package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +20 -21
  615. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
  616. package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +28 -33
  617. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
  618. package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
  619. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
  620. package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
  621. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
  622. package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +6 -41
  623. package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
  624. package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
  625. package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
  626. package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
  627. package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
  628. package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
  629. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
  630. package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
  631. package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
  632. package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
  633. package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
  634. package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
  635. package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
  636. package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
  637. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
  638. package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +75 -33
  639. package/dist/prometheus-framework.cjs.js +29 -30
  640. package/dist/prometheus-framework.es.js +3953 -3225
  641. package/dist/style.css +1 -1
  642. package/package.json +3 -2
  643. package/src/modules/auth/components/pages/SignIn.vue +2 -2
  644. package/src/modules/payments/components/pages/Payments.vue +32 -34
  645. package/src/modules/products/components/blocks/CardLeftover.vue +1 -2
  646. package/src/modules/products/components/blocks/CardProduct.vue +1 -17
  647. package/src/modules/products/components/sections/EditProductInfo.vue +3 -5
@@ -0,0 +1,155 @@
1
+ import { DEFAULT_RETURN_FORMAT as f } from "../../../web3-types/lib/esm/data_format_types.js";
2
+ import "../../../web3-types/lib/esm/eth_types.js";
3
+ import "../../../web3-types/lib/esm/web3_base_provider.js";
4
+ import { SubscriptionError as u, ProviderError as w } from "../../../web3-errors/lib/esm/errors/provider_errors.js";
5
+ import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
6
+ import { isSupportSubscriptions as S } from "./utils.js";
7
+ import { Web3RequestManagerEvent as b } from "./web3_request_manager.js";
8
+ import { isNullish as a } from "../../../web3-utils/lib/esm/validation.js";
9
+ var p = globalThis && globalThis.__awaiter || function(h, i, t, s) {
10
+ function r(e) {
11
+ return e instanceof t ? e : new t(function(n) {
12
+ n(e);
13
+ });
14
+ }
15
+ return new (t || (t = Promise))(function(e, n) {
16
+ function l(o) {
17
+ try {
18
+ c(s.next(o));
19
+ } catch (d) {
20
+ n(d);
21
+ }
22
+ }
23
+ function v(o) {
24
+ try {
25
+ c(s.throw(o));
26
+ } catch (d) {
27
+ n(d);
28
+ }
29
+ }
30
+ function c(o) {
31
+ o.done ? e(o.value) : r(o.value).then(l, v);
32
+ }
33
+ c((s = s.apply(h, i || [])).next());
34
+ });
35
+ };
36
+ class T {
37
+ constructor(i, t, s = !1) {
38
+ this.requestManager = i, this.registeredSubscriptions = t, this.tolerateUnlinkedSubscription = s, this._subscriptions = /* @__PURE__ */ new Map(), this.requestManager.on(b.BEFORE_PROVIDER_CHANGE, () => p(this, void 0, void 0, function* () {
39
+ yield this.unsubscribe();
40
+ })), this.requestManager.on(b.PROVIDER_CHANGED, () => {
41
+ this.clear(), this.listenToProviderEvents();
42
+ }), this.listenToProviderEvents();
43
+ }
44
+ listenToProviderEvents() {
45
+ const i = this.requestManager.provider;
46
+ !this.requestManager.provider || typeof (i == null ? void 0 : i.supportsSubscriptions) == "function" && !(i != null && i.supportsSubscriptions()) || typeof this.requestManager.provider.on == "function" && (typeof this.requestManager.provider.request == "function" ? this.requestManager.provider.on(
47
+ "message",
48
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument
49
+ (t) => this.messageListener(t)
50
+ ) : i.on("data", (t) => this.messageListener(t)));
51
+ }
52
+ messageListener(i) {
53
+ var t, s, r;
54
+ if (!i)
55
+ throw new u("Should not call messageListener with no data. Type was");
56
+ const e = ((t = i.params) === null || t === void 0 ? void 0 : t.subscription) || ((s = i.data) === null || s === void 0 ? void 0 : s.subscription) || ((r = i.id) === null || r === void 0 ? void 0 : r.toString(16));
57
+ if (e) {
58
+ const n = this._subscriptions.get(e);
59
+ n == null || n.processSubscriptionData(i);
60
+ }
61
+ }
62
+ /**
63
+ * Will create a new subscription
64
+ *
65
+ * @param name - The subscription you want to subscribe to
66
+ * @param args - Optional additional parameters, depending on the subscription type
67
+ * @param returnFormat- ({@link DataFormat} defaults to {@link DEFAULT_RETURN_FORMAT}) - Specifies how the return data from the call should be formatted.
68
+ *
69
+ * Will subscribe to a specific topic (note: name)
70
+ * @returns The subscription object
71
+ */
72
+ subscribe(i, t, s = f) {
73
+ return p(this, void 0, void 0, function* () {
74
+ const r = this.registeredSubscriptions[i];
75
+ if (!r)
76
+ throw new u("Invalid subscription type");
77
+ const e = new r(t ?? void 0, {
78
+ subscriptionManager: this,
79
+ returnFormat: s
80
+ });
81
+ return yield this.addSubscription(e), e;
82
+ });
83
+ }
84
+ /**
85
+ * Will returns all subscriptions.
86
+ */
87
+ get subscriptions() {
88
+ return this._subscriptions;
89
+ }
90
+ /**
91
+ *
92
+ * Adds an instance of {@link Web3Subscription} and subscribes to it
93
+ *
94
+ * @param sub - A {@link Web3Subscription} object
95
+ */
96
+ addSubscription(i) {
97
+ return p(this, void 0, void 0, function* () {
98
+ if (!this.requestManager.provider)
99
+ throw new w("Provider not available");
100
+ if (!this.supportsSubscriptions())
101
+ throw new u("The current provider does not support subscriptions");
102
+ if (i.id && this._subscriptions.has(i.id))
103
+ throw new u(`Subscription with id "${i.id}" already exists`);
104
+ if (yield i.sendSubscriptionRequest(), a(i.id))
105
+ throw new u("Subscription is not subscribed yet.");
106
+ return this._subscriptions.set(i.id, i), i.id;
107
+ });
108
+ }
109
+ /**
110
+ * Will clear a subscription
111
+ *
112
+ * @param id - The subscription of type {@link Web3Subscription} to remove
113
+ */
114
+ removeSubscription(i) {
115
+ return p(this, void 0, void 0, function* () {
116
+ const { id: t } = i;
117
+ if (a(t))
118
+ throw new u("Subscription is not subscribed yet. Or, had already been unsubscribed but not through the Subscription Manager.");
119
+ if (!this._subscriptions.has(t) && !this.tolerateUnlinkedSubscription)
120
+ throw new u(`Subscription with id "${t.toString()}" does not exists`);
121
+ return yield i.sendUnsubscribeRequest(), this._subscriptions.delete(t), t;
122
+ });
123
+ }
124
+ /**
125
+ * Will unsubscribe all subscriptions that fulfill the condition
126
+ *
127
+ * @param condition - A function that access and `id` and a `subscription` and return `true` or `false`
128
+ * @returns An array of all the un-subscribed subscriptions
129
+ */
130
+ unsubscribe(i) {
131
+ return p(this, void 0, void 0, function* () {
132
+ const t = [];
133
+ for (const [s, r] of this.subscriptions.entries())
134
+ (!i || typeof i == "function" && i({ id: s, sub: r })) && t.push(this.removeSubscription(r));
135
+ return Promise.all(t);
136
+ });
137
+ }
138
+ /**
139
+ * Clears all subscriptions
140
+ */
141
+ clear() {
142
+ this._subscriptions.clear();
143
+ }
144
+ /**
145
+ * Check whether the current provider supports subscriptions.
146
+ *
147
+ * @returns `true` or `false` depending on if the current provider supports subscriptions
148
+ */
149
+ supportsSubscriptions() {
150
+ return a(this.requestManager.provider) ? !1 : S(this.requestManager.provider);
151
+ }
152
+ }
153
+ export {
154
+ T as Web3SubscriptionManager
155
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=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 d=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const _=require("./web3_subscription_manager.cjs"),v=require("./web3_event_emitter.cjs"),f=require("../../../web3-utils/lib/esm/json_rpc.cjs");var o=globalThis&&globalThis.__awaiter||function(b,i,r,t){function n(e){return e instanceof r?e:new r(function(u){u(e)})}return new(r||(r=Promise))(function(e,u){function h(s){try{c(t.next(s))}catch(a){u(a)}}function l(s){try{c(t.throw(s))}catch(a){u(a)}}function c(s){s.done?e(s.value):n(s.value).then(h,l)}c((t=t.apply(b,i||[])).next())})};class m extends v.Web3EventEmitter{constructor(i,r){var t;super(),this.args=i;const{requestManager:n}=r,{subscriptionManager:e}=r;if(n&&e)throw new d.SubscriptionError("Only requestManager or subscriptionManager should be provided at Subscription constructor");if(!n&&!e)throw new d.SubscriptionError("Either requestManager or subscriptionManager should be provided at Subscription constructor");n?this._subscriptionManager=new _.Web3SubscriptionManager(n,{},!0):this._subscriptionManager=e,this._returnFormat=(t=r==null?void 0:r.returnFormat)!==null&&t!==void 0?t:p.DEFAULT_RETURN_FORMAT}get id(){return this._id}get lastBlock(){return this._lastBlock}subscribe(){return o(this,void 0,void 0,function*(){return this._subscriptionManager.addSubscription(this)})}processSubscriptionData(i){var r,t;i!=null&&i.data?this._processSubscriptionResult((t=(r=i==null?void 0:i.data)===null||r===void 0?void 0:r.result)!==null&&t!==void 0?t:i==null?void 0:i.data):i&&f.isResponseWithNotification(i)&&this._processSubscriptionResult(i==null?void 0:i.params.result)}sendSubscriptionRequest(){return o(this,void 0,void 0,function*(){return this._id=yield this._subscriptionManager.requestManager.send({method:"eth_subscribe",params:this._buildSubscriptionParams()}),this.emit("connected",this._id),this._id})}get returnFormat(){return this._returnFormat}get subscriptionManager(){return this._subscriptionManager}resubscribe(){return o(this,void 0,void 0,function*(){yield this.unsubscribe(),yield this.subscribe()})}unsubscribe(){return o(this,void 0,void 0,function*(){this.id&&(yield this._subscriptionManager.removeSubscription(this))})}sendUnsubscribeRequest(){return o(this,void 0,void 0,function*(){yield this._subscriptionManager.requestManager.send({method:"eth_unsubscribe",params:[this.id]}),this._id=void 0})}formatSubscriptionResult(i){return i}_processSubscriptionResult(i){this.emit("data",this.formatSubscriptionResult(i))}_processSubscriptionError(i){this.emit("error",i)}_buildSubscriptionParams(){throw new Error("Implement in the child class")}}exports.Web3Subscription=m;
@@ -0,0 +1,111 @@
1
+ import { DEFAULT_RETURN_FORMAT as l } from "../../../web3-types/lib/esm/data_format_types.js";
2
+ import "../../../web3-types/lib/esm/eth_types.js";
3
+ import "../../../web3-types/lib/esm/web3_base_provider.js";
4
+ import { SubscriptionError as d } from "../../../web3-errors/lib/esm/errors/provider_errors.js";
5
+ import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
6
+ import { Web3SubscriptionManager as m } from "./web3_subscription_manager.js";
7
+ import { Web3EventEmitter as _ } from "./web3_event_emitter.js";
8
+ import { isResponseWithNotification as v } from "../../../web3-utils/lib/esm/json_rpc.js";
9
+ var o = globalThis && globalThis.__awaiter || function(b, i, r, t) {
10
+ function n(s) {
11
+ return s instanceof r ? s : new r(function(u) {
12
+ u(s);
13
+ });
14
+ }
15
+ return new (r || (r = Promise))(function(s, u) {
16
+ function h(e) {
17
+ try {
18
+ c(t.next(e));
19
+ } catch (a) {
20
+ u(a);
21
+ }
22
+ }
23
+ function p(e) {
24
+ try {
25
+ c(t.throw(e));
26
+ } catch (a) {
27
+ u(a);
28
+ }
29
+ }
30
+ function c(e) {
31
+ e.done ? s(e.value) : n(e.value).then(h, p);
32
+ }
33
+ c((t = t.apply(b, i || [])).next());
34
+ });
35
+ };
36
+ class q extends _ {
37
+ constructor(i, r) {
38
+ var t;
39
+ super(), this.args = i;
40
+ const { requestManager: n } = r, { subscriptionManager: s } = r;
41
+ if (n && s)
42
+ throw new d("Only requestManager or subscriptionManager should be provided at Subscription constructor");
43
+ if (!n && !s)
44
+ throw new d("Either requestManager or subscriptionManager should be provided at Subscription constructor");
45
+ n ? this._subscriptionManager = new m(n, {}, !0) : this._subscriptionManager = s, this._returnFormat = (t = r == null ? void 0 : r.returnFormat) !== null && t !== void 0 ? t : l;
46
+ }
47
+ get id() {
48
+ return this._id;
49
+ }
50
+ get lastBlock() {
51
+ return this._lastBlock;
52
+ }
53
+ subscribe() {
54
+ return o(this, void 0, void 0, function* () {
55
+ return this._subscriptionManager.addSubscription(this);
56
+ });
57
+ }
58
+ processSubscriptionData(i) {
59
+ var r, t;
60
+ i != null && i.data ? this._processSubscriptionResult((t = (r = i == null ? void 0 : i.data) === null || r === void 0 ? void 0 : r.result) !== null && t !== void 0 ? t : i == null ? void 0 : i.data) : i && v(i) && this._processSubscriptionResult(i == null ? void 0 : i.params.result);
61
+ }
62
+ sendSubscriptionRequest() {
63
+ return o(this, void 0, void 0, function* () {
64
+ return this._id = yield this._subscriptionManager.requestManager.send({
65
+ method: "eth_subscribe",
66
+ params: this._buildSubscriptionParams()
67
+ }), this.emit("connected", this._id), this._id;
68
+ });
69
+ }
70
+ get returnFormat() {
71
+ return this._returnFormat;
72
+ }
73
+ get subscriptionManager() {
74
+ return this._subscriptionManager;
75
+ }
76
+ resubscribe() {
77
+ return o(this, void 0, void 0, function* () {
78
+ yield this.unsubscribe(), yield this.subscribe();
79
+ });
80
+ }
81
+ unsubscribe() {
82
+ return o(this, void 0, void 0, function* () {
83
+ this.id && (yield this._subscriptionManager.removeSubscription(this));
84
+ });
85
+ }
86
+ sendUnsubscribeRequest() {
87
+ return o(this, void 0, void 0, function* () {
88
+ yield this._subscriptionManager.requestManager.send({
89
+ method: "eth_unsubscribe",
90
+ params: [this.id]
91
+ }), this._id = void 0;
92
+ });
93
+ }
94
+ // eslint-disable-next-line class-methods-use-this
95
+ formatSubscriptionResult(i) {
96
+ return i;
97
+ }
98
+ _processSubscriptionResult(i) {
99
+ this.emit("data", this.formatSubscriptionResult(i));
100
+ }
101
+ _processSubscriptionError(i) {
102
+ this.emit("error", i);
103
+ }
104
+ // eslint-disable-next-line class-methods-use-this
105
+ _buildSubscriptionParams() {
106
+ throw new Error("Implement in the child class");
107
+ }
108
+ }
109
+ export {
110
+ q as Web3Subscription
111
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=100,_=101,E=201,I=202,N=203,T=204,A=205,O=206,S=207,D=300,C=301,L=310,P=311,t=400,o=402,c=405,n=407,s=408,V=410,M=411,U=412,X=413,G=414,H=415,B=416,K=417,F=418,Y=419,J=420,W=421,Q=422,e=423,r=424,Z=425,i=426,l=427,u=428,a=429,b=430,d=431,g=432,y=433,f=434,j=435,m=436,p=437,v=438,h=439,k=440,q=441,w=500,x=503,z=505,$=506,RR=507,_R=600,ER=602,IR=603,NR=604,TR=701,AR=702,OR=703,SR=704,DR=705,CR=706,LR=707,PR=709,tR=801,oR=802,cR=4001,nR=4100,sR=4200,VR=4900,MR=4901,UR=902,XR=903,GR=1001,HR=1002,BR=1003,KR=1004,FR=1005,YR=1006,JR=1008,WR=1009,QR=1010,eR=1011,rR=1012,ZR=1014,iR=1100,lR=1101,uR=1200,aR=-32700,bR=-32600,dR=-32601,gR=-32602,yR=-32603,fR=-32e3,jR=-32001,mR=-32002,pR=-32003,vR=-32004,hR=-32005,kR=-32006;exports.ERR_ABI_ENCODING=A;exports.ERR_CONN=w;exports.ERR_CONN_MAX_ATTEMPTS=z;exports.ERR_CONN_NOT_OPEN=x;exports.ERR_CONN_PENDING_REQUESTS=$;exports.ERR_CONTRACT=D;exports.ERR_CONTRACT_EXECUTION_REVERTED=L;exports.ERR_CONTRACT_RESOLVER_MISSING=C;exports.ERR_CONTRACT_TX_DATA_AND_INPUT=P;exports.ERR_CORE_HARDFORK_MISMATCH=lR;exports.ERR_ENS_NETWORK_NOT_SYNCED=XR;exports.ERR_ENS_UNSUPPORTED_NETWORK=UR;exports.ERR_EXISTING_PLUGIN_NAMESPACE=O;exports.ERR_FORMATTERS=E;exports.ERR_INVALID_ADDRESS=FR;exports.ERR_INVALID_BLOCK=rR;exports.ERR_INVALID_BOOLEAN=JR;exports.ERR_INVALID_BYTES=HR;exports.ERR_INVALID_CLIENT=ER;exports.ERR_INVALID_HEX=YR;exports.ERR_INVALID_LARGE_VALUE=eR;exports.ERR_INVALID_METHOD_PARAMS=S;exports.ERR_INVALID_NIBBLE_WIDTH=ZR;exports.ERR_INVALID_NUMBER=BR;exports.ERR_INVALID_PASSWORD=CR;exports.ERR_INVALID_PRIVATE_KEY=AR;exports.ERR_INVALID_RESPONSE=_;exports.ERR_INVALID_SIGNATURE=oR;exports.ERR_INVALID_SIZE=QR;exports.ERR_INVALID_STRING=GR;exports.ERR_INVALID_UNIT=KR;exports.ERR_INVALID_UNSIGNED_INTEGER=WR;exports.ERR_IV_LENGTH=LR;exports.ERR_KEY_DERIVATION_FAIL=SR;exports.ERR_KEY_VERSION_UNSUPPORTED=DR;exports.ERR_METHOD_NOT_IMPLEMENTED=I;exports.ERR_OPERATION_ABORT=T;exports.ERR_OPERATION_TIMEOUT=N;exports.ERR_PBKDF2_ITERATIONS=PR;exports.ERR_PRIVATE_KEY_LENGTH=TR;exports.ERR_PROVIDER=_R;exports.ERR_RAW_TX_UNDEFINED=n;exports.ERR_REQ_ALREADY_SENT=RR;exports.ERR_RESPONSE=R;exports.ERR_RPC_INTERNAL_ERROR=yR;exports.ERR_RPC_INVALID_INPUT=fR;exports.ERR_RPC_INVALID_JSON=aR;exports.ERR_RPC_INVALID_METHOD=dR;exports.ERR_RPC_INVALID_PARAMS=gR;exports.ERR_RPC_INVALID_REQUEST=bR;exports.ERR_RPC_LIMIT_EXCEEDED=hR;exports.ERR_RPC_MISSING_RESOURCE=jR;exports.ERR_RPC_NOT_SUPPORTED=kR;exports.ERR_RPC_TRANSACTION_REJECTED=pR;exports.ERR_RPC_UNAVAILABLE_RESOURCE=mR;exports.ERR_RPC_UNSUPPORTED_METHOD=vR;exports.ERR_SCHEMA_FORMAT=uR;exports.ERR_SIGNATURE_FAILED=tR;exports.ERR_SUBSCRIPTION=IR;exports.ERR_TX=t;exports.ERR_TX_BLOCK_TIMEOUT=g;exports.ERR_TX_CHAIN_ID_MISMATCH=U;exports.ERR_TX_CHAIN_MISMATCH=j;exports.ERR_TX_DATA_AND_INPUT=Z;exports.ERR_TX_GAS_MISMATCH=f;exports.ERR_TX_GAS_MISMATCH_INNER_ERROR=q;exports.ERR_TX_HARDFORK_MISMATCH=m;exports.ERR_TX_INVALID_CHAIN_INFO=X;exports.ERR_TX_INVALID_FEE_MARKET_GAS=K;exports.ERR_TX_INVALID_FEE_MARKET_GAS_PRICE=F;exports.ERR_TX_INVALID_LEGACY_FEE_MARKET=Y;exports.ERR_TX_INVALID_LEGACY_GAS=B;exports.ERR_TX_INVALID_NONCE_OR_CHAIN_ID=W;exports.ERR_TX_INVALID_OBJECT=J;exports.ERR_TX_INVALID_PROPERTIES_FOR_TYPE=h;exports.ERR_TX_INVALID_RECEIVER=p;exports.ERR_TX_INVALID_SENDER=s;exports.ERR_TX_LOCAL_WALLET_NOT_AVAILABLE=a;exports.ERR_TX_MISSING_CHAIN_INFO=G;exports.ERR_TX_MISSING_CUSTOM_CHAIN=V;exports.ERR_TX_MISSING_CUSTOM_CHAIN_ID=M;exports.ERR_TX_MISSING_GAS=H;exports.ERR_TX_MISSING_GAS_INNER_ERROR=k;exports.ERR_TX_NOT_FOUND=b;exports.ERR_TX_POLLING_TIMEOUT=i;exports.ERR_TX_RECEIPT_MISSING_BLOCK_NUMBER=u;exports.ERR_TX_RECEIPT_MISSING_OR_BLOCKHASH_NULL=l;exports.ERR_TX_REVERT_TRANSACTION=o;exports.ERR_TX_REVERT_TRANSACTION_CUSTOM_ERROR=v;exports.ERR_TX_REVERT_WITHOUT_REASON=c;exports.ERR_TX_SEND_TIMEOUT=d;exports.ERR_TX_SIGNING=y;exports.ERR_TX_UNABLE_TO_POPULATE_NONCE=Q;exports.ERR_TX_UNSUPPORTED_EIP_1559=e;exports.ERR_TX_UNSUPPORTED_TYPE=r;exports.ERR_UNSUPPORTED_KDF=OR;exports.ERR_VALIDATION=iR;exports.ERR_WS_PROVIDER=NR;exports.JSONRPC_ERR_CHAIN_DISCONNECTED=MR;exports.JSONRPC_ERR_DISCONNECTED=VR;exports.JSONRPC_ERR_REJECTED_REQUEST=cR;exports.JSONRPC_ERR_UNAUTHORIZED=nR;exports.JSONRPC_ERR_UNSUPPORTED_METHOD=sR;
@@ -0,0 +1,106 @@
1
+ const R = 100, _ = 101, E = 201, I = 202, N = 203, T = 204, A = 205, o = 206, t = 207, c = 300, n = 301, s = 310, O = 311, S = 400, D = 402, C = 405, L = 407, P = 408, V = 410, M = 411, U = 412, X = 413, G = 414, H = 415, B = 416, K = 417, F = 418, Y = 419, J = 420, W = 421, Q = 422, Z = 423, e = 424, p = 425, r = 426, x = 427, a = 428, b = 429, d = 430, f = 431, g = 432, h = 433, i = 434, j = 435, k = 436, l = 437, m = 438, q = 439, u = 440, v = 441, w = 500, y = 503, z = 505, $ = 506, RR = 507, _R = 600, ER = 602, IR = 603, NR = 604, TR = 701, AR = 702, oR = 703, tR = 704, cR = 705, nR = 706, sR = 707, OR = 709, SR = 801, DR = 802, CR = 4001, LR = 4100, PR = 4200, VR = 4900, MR = 4901, UR = 902, XR = 903, GR = 1001, HR = 1002, BR = 1003, KR = 1004, FR = 1005, YR = 1006, JR = 1008, WR = 1009, QR = 1010, ZR = 1011, eR = 1012, pR = 1014, rR = 1100, xR = 1101, aR = 1200, bR = -32700, dR = -32600, fR = -32601, gR = -32602, hR = -32603, iR = -32e3, jR = -32001, kR = -32002, lR = -32003, mR = -32004, qR = -32005, uR = -32006;
2
+ export {
3
+ A as ERR_ABI_ENCODING,
4
+ w as ERR_CONN,
5
+ z as ERR_CONN_MAX_ATTEMPTS,
6
+ y as ERR_CONN_NOT_OPEN,
7
+ $ as ERR_CONN_PENDING_REQUESTS,
8
+ c as ERR_CONTRACT,
9
+ s as ERR_CONTRACT_EXECUTION_REVERTED,
10
+ n as ERR_CONTRACT_RESOLVER_MISSING,
11
+ O as ERR_CONTRACT_TX_DATA_AND_INPUT,
12
+ xR as ERR_CORE_HARDFORK_MISMATCH,
13
+ XR as ERR_ENS_NETWORK_NOT_SYNCED,
14
+ UR as ERR_ENS_UNSUPPORTED_NETWORK,
15
+ o as ERR_EXISTING_PLUGIN_NAMESPACE,
16
+ E as ERR_FORMATTERS,
17
+ FR as ERR_INVALID_ADDRESS,
18
+ eR as ERR_INVALID_BLOCK,
19
+ JR as ERR_INVALID_BOOLEAN,
20
+ HR as ERR_INVALID_BYTES,
21
+ ER as ERR_INVALID_CLIENT,
22
+ YR as ERR_INVALID_HEX,
23
+ ZR as ERR_INVALID_LARGE_VALUE,
24
+ t as ERR_INVALID_METHOD_PARAMS,
25
+ pR as ERR_INVALID_NIBBLE_WIDTH,
26
+ BR as ERR_INVALID_NUMBER,
27
+ nR as ERR_INVALID_PASSWORD,
28
+ AR as ERR_INVALID_PRIVATE_KEY,
29
+ _ as ERR_INVALID_RESPONSE,
30
+ DR as ERR_INVALID_SIGNATURE,
31
+ QR as ERR_INVALID_SIZE,
32
+ GR as ERR_INVALID_STRING,
33
+ KR as ERR_INVALID_UNIT,
34
+ WR as ERR_INVALID_UNSIGNED_INTEGER,
35
+ sR as ERR_IV_LENGTH,
36
+ tR as ERR_KEY_DERIVATION_FAIL,
37
+ cR as ERR_KEY_VERSION_UNSUPPORTED,
38
+ I as ERR_METHOD_NOT_IMPLEMENTED,
39
+ T as ERR_OPERATION_ABORT,
40
+ N as ERR_OPERATION_TIMEOUT,
41
+ OR as ERR_PBKDF2_ITERATIONS,
42
+ TR as ERR_PRIVATE_KEY_LENGTH,
43
+ _R as ERR_PROVIDER,
44
+ L as ERR_RAW_TX_UNDEFINED,
45
+ RR as ERR_REQ_ALREADY_SENT,
46
+ R as ERR_RESPONSE,
47
+ hR as ERR_RPC_INTERNAL_ERROR,
48
+ iR as ERR_RPC_INVALID_INPUT,
49
+ bR as ERR_RPC_INVALID_JSON,
50
+ fR as ERR_RPC_INVALID_METHOD,
51
+ gR as ERR_RPC_INVALID_PARAMS,
52
+ dR as ERR_RPC_INVALID_REQUEST,
53
+ qR as ERR_RPC_LIMIT_EXCEEDED,
54
+ jR as ERR_RPC_MISSING_RESOURCE,
55
+ uR as ERR_RPC_NOT_SUPPORTED,
56
+ lR as ERR_RPC_TRANSACTION_REJECTED,
57
+ kR as ERR_RPC_UNAVAILABLE_RESOURCE,
58
+ mR as ERR_RPC_UNSUPPORTED_METHOD,
59
+ aR as ERR_SCHEMA_FORMAT,
60
+ SR as ERR_SIGNATURE_FAILED,
61
+ IR as ERR_SUBSCRIPTION,
62
+ S as ERR_TX,
63
+ g as ERR_TX_BLOCK_TIMEOUT,
64
+ U as ERR_TX_CHAIN_ID_MISMATCH,
65
+ j as ERR_TX_CHAIN_MISMATCH,
66
+ p as ERR_TX_DATA_AND_INPUT,
67
+ i as ERR_TX_GAS_MISMATCH,
68
+ v as ERR_TX_GAS_MISMATCH_INNER_ERROR,
69
+ k as ERR_TX_HARDFORK_MISMATCH,
70
+ X as ERR_TX_INVALID_CHAIN_INFO,
71
+ K as ERR_TX_INVALID_FEE_MARKET_GAS,
72
+ F as ERR_TX_INVALID_FEE_MARKET_GAS_PRICE,
73
+ Y as ERR_TX_INVALID_LEGACY_FEE_MARKET,
74
+ B as ERR_TX_INVALID_LEGACY_GAS,
75
+ W as ERR_TX_INVALID_NONCE_OR_CHAIN_ID,
76
+ J as ERR_TX_INVALID_OBJECT,
77
+ q as ERR_TX_INVALID_PROPERTIES_FOR_TYPE,
78
+ l as ERR_TX_INVALID_RECEIVER,
79
+ P as ERR_TX_INVALID_SENDER,
80
+ b as ERR_TX_LOCAL_WALLET_NOT_AVAILABLE,
81
+ G as ERR_TX_MISSING_CHAIN_INFO,
82
+ V as ERR_TX_MISSING_CUSTOM_CHAIN,
83
+ M as ERR_TX_MISSING_CUSTOM_CHAIN_ID,
84
+ H as ERR_TX_MISSING_GAS,
85
+ u as ERR_TX_MISSING_GAS_INNER_ERROR,
86
+ d as ERR_TX_NOT_FOUND,
87
+ r as ERR_TX_POLLING_TIMEOUT,
88
+ a as ERR_TX_RECEIPT_MISSING_BLOCK_NUMBER,
89
+ x as ERR_TX_RECEIPT_MISSING_OR_BLOCKHASH_NULL,
90
+ D as ERR_TX_REVERT_TRANSACTION,
91
+ m as ERR_TX_REVERT_TRANSACTION_CUSTOM_ERROR,
92
+ C as ERR_TX_REVERT_WITHOUT_REASON,
93
+ f as ERR_TX_SEND_TIMEOUT,
94
+ h as ERR_TX_SIGNING,
95
+ Q as ERR_TX_UNABLE_TO_POPULATE_NONCE,
96
+ Z as ERR_TX_UNSUPPORTED_EIP_1559,
97
+ e as ERR_TX_UNSUPPORTED_TYPE,
98
+ oR as ERR_UNSUPPORTED_KDF,
99
+ rR as ERR_VALIDATION,
100
+ NR as ERR_WS_PROVIDER,
101
+ MR as JSONRPC_ERR_CHAIN_DISCONNECTED,
102
+ VR as JSONRPC_ERR_DISCONNECTED,
103
+ CR as JSONRPC_ERR_REJECTED_REQUEST,
104
+ LR as JSONRPC_ERR_UNAUTHORIZED,
105
+ PR as JSONRPC_ERR_UNSUPPORTED_METHOD
106
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../error_codes.cjs"),e=require("../web3_error_base.cjs");class t extends e.BaseWeb3Error{constructor(){super("Private key must be 32 bytes."),this.code=r.ERR_PRIVATE_KEY_LENGTH}}class i extends e.BaseWeb3Error{constructor(){super("Invalid Private Key, Not a valid string or uint8Array"),this.code=r.ERR_INVALID_PRIVATE_KEY}}class n extends e.BaseWeb3Error{constructor(o){super(`"${o}"`),this.code=r.ERR_INVALID_SIGNATURE}}class a extends e.BaseWeb3Error{constructor(){super("Invalid key derivation function"),this.code=r.ERR_UNSUPPORTED_KDF}}class E extends e.BaseWeb3Error{constructor(){super("Key derivation failed - possibly wrong password"),this.code=r.ERR_KEY_DERIVATION_FAIL}}class c extends e.BaseWeb3Error{constructor(){super("Unsupported key store version"),this.code=r.ERR_KEY_VERSION_UNSUPPORTED}}class d extends e.BaseWeb3Error{constructor(){super("Password cannot be empty"),this.code=r.ERR_INVALID_PASSWORD}}class u extends e.BaseWeb3Error{constructor(){super("Initialization vector must be 16 bytes"),this.code=r.ERR_IV_LENGTH}}class I extends e.BaseWeb3Error{constructor(){super("c > 1000, pbkdf2 is less secure with less iterations"),this.code=r.ERR_PBKDF2_ITERATIONS}}exports.IVLengthError=u;exports.InvalidKdfError=a;exports.InvalidPasswordError=d;exports.InvalidPrivateKeyError=i;exports.InvalidSignatureError=n;exports.KeyDerivationError=E;exports.KeyStoreVersionError=c;exports.PBKDF2IterationsError=I;exports.PrivateKeyLengthError=t;
@@ -0,0 +1,58 @@
1
+ import { ERR_INVALID_SIGNATURE as t, ERR_UNSUPPORTED_KDF as o, ERR_INVALID_PASSWORD as i, ERR_IV_LENGTH as n, ERR_PBKDF2_ITERATIONS as c, ERR_PRIVATE_KEY_LENGTH as a, ERR_INVALID_PRIVATE_KEY as d, ERR_KEY_DERIVATION_FAIL as E, ERR_KEY_VERSION_UNSUPPORTED as R } from "../error_codes.js";
2
+ import { BaseWeb3Error as r } from "../web3_error_base.js";
3
+ class _ extends r {
4
+ constructor() {
5
+ super("Private key must be 32 bytes."), this.code = a;
6
+ }
7
+ }
8
+ class l extends r {
9
+ constructor() {
10
+ super("Invalid Private Key, Not a valid string or uint8Array"), this.code = d;
11
+ }
12
+ }
13
+ class p extends r {
14
+ constructor(e) {
15
+ super(`"${e}"`), this.code = t;
16
+ }
17
+ }
18
+ class v extends r {
19
+ constructor() {
20
+ super("Invalid key derivation function"), this.code = o;
21
+ }
22
+ }
23
+ class P extends r {
24
+ constructor() {
25
+ super("Key derivation failed - possibly wrong password"), this.code = E;
26
+ }
27
+ }
28
+ class y extends r {
29
+ constructor() {
30
+ super("Unsupported key store version"), this.code = R;
31
+ }
32
+ }
33
+ class K extends r {
34
+ constructor() {
35
+ super("Password cannot be empty"), this.code = i;
36
+ }
37
+ }
38
+ class h extends r {
39
+ constructor() {
40
+ super("Initialization vector must be 16 bytes"), this.code = n;
41
+ }
42
+ }
43
+ class N extends r {
44
+ constructor() {
45
+ super("c > 1000, pbkdf2 is less secure with less iterations"), this.code = c;
46
+ }
47
+ }
48
+ export {
49
+ h as IVLengthError,
50
+ v as InvalidKdfError,
51
+ K as InvalidPasswordError,
52
+ l as InvalidPrivateKeyError,
53
+ p as InvalidSignatureError,
54
+ P as KeyDerivationError,
55
+ y as KeyStoreVersionError,
56
+ N as PBKDF2IterationsError,
57
+ _ as PrivateKeyLengthError
58
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../error_codes.cjs"),s=require("../web3_error_base.cjs");class o extends s.BaseWeb3Error{constructor(e,n){super(e),this.code=r.ERR_CONN,n&&(this.errorCode=n.code,this.errorReason=n.reason)}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{errorCode:this.errorCode,errorReason:this.errorReason})}}class c extends o{constructor(e){super("Connection not open",e),this.code=r.ERR_CONN_NOT_OPEN}}class i extends o{constructor(e){super(`Maximum number of reconnect attempts reached! (${e})`),this.code=r.ERR_CONN_MAX_ATTEMPTS}}class R extends o{constructor(){super("CONNECTION ERROR: Provider started to reconnect before the response got received!"),this.code=r.ERR_CONN_PENDING_REQUESTS}}class d extends o{constructor(e){super(`Request already sent with following id: ${e}`),this.code=r.ERR_REQ_ALREADY_SENT}}exports.ConnectionError=o;exports.ConnectionNotOpenError=c;exports.MaxAttemptsReachedOnReconnectingError=i;exports.PendingRequestsOnReconnectingError=R;exports.RequestAlreadySentError=d;
@@ -0,0 +1,37 @@
1
+ import { ERR_CONN as s, ERR_CONN_NOT_OPEN as n, ERR_CONN_MAX_ATTEMPTS as c, ERR_CONN_PENDING_REQUESTS as i, ERR_REQ_ALREADY_SENT as R } from "../error_codes.js";
2
+ import { BaseWeb3Error as d } from "../web3_error_base.js";
3
+ class o extends d {
4
+ constructor(e, t) {
5
+ super(e), this.code = s, t && (this.errorCode = t.code, this.errorReason = t.reason);
6
+ }
7
+ toJSON() {
8
+ return Object.assign(Object.assign({}, super.toJSON()), { errorCode: this.errorCode, errorReason: this.errorReason });
9
+ }
10
+ }
11
+ class N extends o {
12
+ constructor(e) {
13
+ super("Connection not open", e), this.code = n;
14
+ }
15
+ }
16
+ class u extends o {
17
+ constructor(e) {
18
+ super(`Maximum number of reconnect attempts reached! (${e})`), this.code = c;
19
+ }
20
+ }
21
+ class O extends o {
22
+ constructor() {
23
+ super("CONNECTION ERROR: Provider started to reconnect before the response got received!"), this.code = i;
24
+ }
25
+ }
26
+ class p extends o {
27
+ constructor(e) {
28
+ super(`Request already sent with following id: ${e}`), this.code = R;
29
+ }
30
+ }
31
+ export {
32
+ o as ConnectionError,
33
+ N as ConnectionNotOpenError,
34
+ u as MaxAttemptsReachedOnReconnectingError,
35
+ O as PendingRequestsOnReconnectingError,
36
+ p as RequestAlreadySentError
37
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../error_codes.cjs"),o=require("../web3_error_base.cjs");class i extends o.BaseWeb3Error{constructor(t,e){super(t),this.code=s.ERR_CONTRACT,this.receipt=e}}class c extends o.BaseWeb3Error{constructor(t,e){super(`The resolver at ${t} does not implement requested method: "${e}".`),this.address=t,this.name=e,this.code=s.ERR_CONTRACT_RESOLVER_MISSING}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{address:this.address,name:this.name})}}class a extends i{constructor(t){if(super(t.message||"Error"),this.name="name"in t&&t.name||this.constructor.name,this.stack="stack"in t&&t.stack||void 0,this.code=t.code,typeof t.data=="object"){let e;"originalError"in t.data?e=t.data.originalError:e=t.data,this.data=e.data,this.innerError=new a(e)}else this.data=t.data}setDecodedProperties(t,e,r){this.errorName=t,this.errorSignature=e,this.errorArgs=r}toJSON(){let t=Object.assign(Object.assign({},super.toJSON()),{data:this.data});return this.errorName&&(t=Object.assign(Object.assign({},t),{errorName:this.errorName,errorSignature:this.errorSignature,errorArgs:this.errorArgs})),t}}class d extends i{constructor(t){super("Error happened while trying to execute a function inside a smart contract"),this.code=s.ERR_CONTRACT_EXECUTION_REVERTED,this.innerError=new a(t)}}class u extends o.InvalidValueError{constructor(t){var e,r;super(`data: ${(e=t.data)!==null&&e!==void 0?e:"undefined"}, input: ${(r=t.input)!==null&&r!==void 0?r:"undefined"}`,`You can't have "data" and "input" as properties of a contract at the same time, please use either "data" or "input" instead.`),this.code=s.ERR_CONTRACT_TX_DATA_AND_INPUT}}exports.ContractExecutionError=d;exports.ContractTransactionDataAndInputError=u;exports.Eip838ExecutionError=a;exports.ResolverMethodMissingError=c;exports.Web3ContractError=i;
@@ -0,0 +1,49 @@
1
+ import { ERR_CONTRACT as o, ERR_CONTRACT_RESOLVER_MISSING as d, ERR_CONTRACT_EXECUTION_REVERTED as c, ERR_CONTRACT_TX_DATA_AND_INPUT as u } from "../error_codes.js";
2
+ import { BaseWeb3Error as i, InvalidValueError as h } from "../web3_error_base.js";
3
+ class n extends i {
4
+ constructor(t, e) {
5
+ super(t), this.code = o, this.receipt = e;
6
+ }
7
+ }
8
+ class l extends i {
9
+ constructor(t, e) {
10
+ super(`The resolver at ${t} does not implement requested method: "${e}".`), this.address = t, this.name = e, this.code = d;
11
+ }
12
+ toJSON() {
13
+ return Object.assign(Object.assign({}, super.toJSON()), { address: this.address, name: this.name });
14
+ }
15
+ }
16
+ class a extends n {
17
+ constructor(t) {
18
+ if (super(t.message || "Error"), this.name = "name" in t && t.name || this.constructor.name, this.stack = "stack" in t && t.stack || void 0, this.code = t.code, typeof t.data == "object") {
19
+ let e;
20
+ "originalError" in t.data ? e = t.data.originalError : e = t.data, this.data = e.data, this.innerError = new a(e);
21
+ } else
22
+ this.data = t.data;
23
+ }
24
+ setDecodedProperties(t, e, r) {
25
+ this.errorName = t, this.errorSignature = e, this.errorArgs = r;
26
+ }
27
+ toJSON() {
28
+ let t = Object.assign(Object.assign({}, super.toJSON()), { data: this.data });
29
+ return this.errorName && (t = Object.assign(Object.assign({}, t), { errorName: this.errorName, errorSignature: this.errorSignature, errorArgs: this.errorArgs })), t;
30
+ }
31
+ }
32
+ class m extends n {
33
+ constructor(t) {
34
+ super("Error happened while trying to execute a function inside a smart contract"), this.code = c, this.innerError = new a(t);
35
+ }
36
+ }
37
+ class g extends h {
38
+ constructor(t) {
39
+ var e, r;
40
+ super(`data: ${(e = t.data) !== null && e !== void 0 ? e : "undefined"}, input: ${(r = t.input) !== null && r !== void 0 ? r : "undefined"}`, `You can't have "data" and "input" as properties of a contract at the same time, please use either "data" or "input" instead.`), this.code = u;
41
+ }
42
+ }
43
+ export {
44
+ m as ContractExecutionError,
45
+ g as ContractTransactionDataAndInputError,
46
+ a as Eip838ExecutionError,
47
+ l as ResolverMethodMissingError,
48
+ n as Web3ContractError
49
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../web3_error_base.cjs"),a=require("../error_codes.cjs");class t extends e.BaseWeb3Error{constructor(r,o){super(`Web3Config hardfork doesnt match in defaultHardfork ${r} and common.hardfork ${o}`),this.code=a.ERR_CORE_HARDFORK_MISMATCH}}class n extends e.BaseWeb3Error{constructor(r,o){super(`Web3Config chain doesnt match in defaultHardfork ${r} and common.hardfork ${o}`),this.code=a.ERR_CORE_HARDFORK_MISMATCH}}exports.ConfigChainMismatchError=n;exports.ConfigHardforkMismatchError=t;
@@ -0,0 +1,16 @@
1
+ import { BaseWeb3Error as a } from "../web3_error_base.js";
2
+ import { ERR_CORE_HARDFORK_MISMATCH as t } from "../error_codes.js";
3
+ class d extends a {
4
+ constructor(r, o) {
5
+ super(`Web3Config hardfork doesnt match in defaultHardfork ${r} and common.hardfork ${o}`), this.code = t;
6
+ }
7
+ }
8
+ class c extends a {
9
+ constructor(r, o) {
10
+ super(`Web3Config chain doesnt match in defaultHardfork ${r} and common.hardfork ${o}`), this.code = t;
11
+ }
12
+ }
13
+ export {
14
+ c as ConfigChainMismatchError,
15
+ d as ConfigHardforkMismatchError
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../error_codes.cjs"),e=require("../web3_error_base.cjs");class s extends e.BaseWeb3Error{constructor(t){super(`ENS is not supported on network ${t}`),this.code=r.ERR_ENS_UNSUPPORTED_NETWORK}}class E extends e.BaseWeb3Error{constructor(){super("Network not synced"),this.code=r.ERR_ENS_NETWORK_NOT_SYNCED}}exports.ENSNetworkNotSyncedError=E;exports.ENSUnsupportedNetworkError=s;
@@ -0,0 +1,16 @@
1
+ import { ERR_ENS_UNSUPPORTED_NETWORK as e, ERR_ENS_NETWORK_NOT_SYNCED as s } from "../error_codes.js";
2
+ import { BaseWeb3Error as r } from "../web3_error_base.js";
3
+ class n extends r {
4
+ constructor(t) {
5
+ super(`ENS is not supported on network ${t}`), this.code = e;
6
+ }
7
+ }
8
+ class c extends r {
9
+ constructor() {
10
+ super("Network not synced"), this.code = s;
11
+ }
12
+ }
13
+ export {
14
+ c as ENSNetworkNotSyncedError,
15
+ n as ENSUnsupportedNetworkError
16
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../error_codes.cjs"),t=require("../web3_error_base.cjs");class a extends t.BaseWeb3Error{constructor(r){super(`Invalid parameters passed. "${typeof r<"u"?r:""}"`),this.hint=r,this.code=e.ERR_INVALID_METHOD_PARAMS}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{hint:this.hint})}}class n extends t.BaseWeb3Error{constructor(){super(...arguments),this.code=e.ERR_FORMATTERS}}class i extends t.BaseWeb3Error{constructor(){super("The method you're trying to call is not implemented."),this.code=e.ERR_METHOD_NOT_IMPLEMENTED}}class E extends t.BaseWeb3Error{constructor(){super(...arguments),this.code=e.ERR_OPERATION_TIMEOUT}}class c extends t.BaseWeb3Error{constructor(){super(...arguments),this.code=e.ERR_OPERATION_ABORT}}class d extends t.BaseWeb3Error{constructor(r,o){super(r),this.code=e.ERR_ABI_ENCODING,this.props=o??{}}}class u extends t.BaseWeb3Error{constructor(r){super(`A plugin with the namespace: ${r} has already been registered.`),this.code=e.ERR_EXISTING_PLUGIN_NAMESPACE}}exports.AbiError=d;exports.ExistingPluginNamespaceError=u;exports.FormatterError=n;exports.InvalidMethodParamsError=a;exports.MethodNotImplementedError=i;exports.OperationAbortError=c;exports.OperationTimeoutError=E;
@@ -0,0 +1,49 @@
1
+ import { ERR_INVALID_METHOD_PARAMS as o, ERR_FORMATTERS as n, ERR_OPERATION_TIMEOUT as c, ERR_ABI_ENCODING as i, ERR_EXISTING_PLUGIN_NAMESPACE as a, ERR_OPERATION_ABORT as E, ERR_METHOD_NOT_IMPLEMENTED as d } from "../error_codes.js";
2
+ import { BaseWeb3Error as r } from "../web3_error_base.js";
3
+ class p extends r {
4
+ constructor(e) {
5
+ super(`Invalid parameters passed. "${typeof e < "u" ? e : ""}"`), this.hint = e, this.code = o;
6
+ }
7
+ toJSON() {
8
+ return Object.assign(Object.assign({}, super.toJSON()), { hint: this.hint });
9
+ }
10
+ }
11
+ class h extends r {
12
+ constructor() {
13
+ super(...arguments), this.code = n;
14
+ }
15
+ }
16
+ class l extends r {
17
+ constructor() {
18
+ super("The method you're trying to call is not implemented."), this.code = d;
19
+ }
20
+ }
21
+ class m extends r {
22
+ constructor() {
23
+ super(...arguments), this.code = c;
24
+ }
25
+ }
26
+ class O extends r {
27
+ constructor() {
28
+ super(...arguments), this.code = E;
29
+ }
30
+ }
31
+ class _ extends r {
32
+ constructor(e, s) {
33
+ super(e), this.code = i, this.props = s ?? {};
34
+ }
35
+ }
36
+ class I extends r {
37
+ constructor(e) {
38
+ super(`A plugin with the namespace: ${e} has already been registered.`), this.code = a;
39
+ }
40
+ }
41
+ export {
42
+ _ as AbiError,
43
+ I as ExistingPluginNamespaceError,
44
+ h as FormatterError,
45
+ p as InvalidMethodParamsError,
46
+ l as MethodNotImplementedError,
47
+ O as OperationAbortError,
48
+ m as OperationTimeoutError
49
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../error_codes.cjs"),e=require("../web3_error_base.cjs");class t extends e.BaseWeb3Error{constructor(){super(...arguments),this.code=r.ERR_PROVIDER}}class i extends e.BaseWeb3Error{constructor(o){super(`Client URL "${o}" is invalid.`),this.code=r.ERR_INVALID_CLIENT}}class c extends e.BaseWeb3Error{constructor(){super(...arguments),this.code=r.ERR_SUBSCRIPTION}}class n extends e.BaseWeb3Error{constructor(){super(...arguments),this.code=r.ERR_WS_PROVIDER}}exports.InvalidClientError=i;exports.ProviderError=t;exports.SubscriptionError=c;exports.Web3WSProviderError=n;