@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.
- package/dist/_virtual/_commonjsHelpers.cjs +1 -1
- package/dist/_virtual/_commonjsHelpers.js +5 -3
- package/dist/_virtual/browser-ponyfill.cjs +1 -0
- package/dist/_virtual/browser-ponyfill.js +4 -0
- package/dist/_virtual/crc32.cjs +1 -0
- package/dist/_virtual/crc32.js +4 -0
- package/dist/_virtual/events.cjs +1 -0
- package/dist/_virtual/events.js +4 -0
- package/dist/_virtual/index.cjs +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -0
- package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +557 -0
- package/dist/node_modules/@ethereumjs/rlp/dist/index.cjs +1 -0
- package/dist/node_modules/@ethereumjs/rlp/dist/index.js +164 -0
- package/dist/node_modules/@noble/curves/esm/_shortw_utils.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/_shortw_utils.js +19 -0
- package/dist/node_modules/@noble/curves/esm/abstract/curve.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/abstract/curve.js +88 -0
- package/dist/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/abstract/modular.js +210 -0
- package/dist/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/abstract/utils.js +178 -0
- package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.js +581 -0
- package/dist/node_modules/@noble/curves/esm/secp256k1.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/secp256k1.js +47 -0
- package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/_assert.js +48 -0
- package/dist/node_modules/@noble/hashes/esm/_sha2.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/_sha2.js +61 -0
- package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/_u64.js +48 -0
- package/dist/node_modules/@noble/hashes/esm/crypto.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/crypto.js +4 -0
- package/dist/node_modules/@noble/hashes/esm/hmac.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/hmac.js +43 -0
- package/dist/node_modules/@noble/hashes/esm/pbkdf2.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/pbkdf2.js +32 -0
- package/dist/node_modules/@noble/hashes/esm/scrypt.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/scrypt.js +73 -0
- package/dist/node_modules/@noble/hashes/esm/sha256.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/sha256.js +120 -0
- package/dist/node_modules/@noble/hashes/esm/sha3.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/sha3.js +118 -0
- package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/sha512.js +144 -0
- package/dist/node_modules/@noble/hashes/esm/utils.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/utils.js +64 -0
- package/dist/node_modules/abitype/dist/chunk-NHABU752.cjs +1 -0
- package/dist/node_modules/abitype/dist/chunk-NHABU752.js +4 -0
- package/dist/node_modules/abitype/dist/chunk-WP7KDV47.cjs +1 -0
- package/dist/node_modules/abitype/dist/chunk-WP7KDV47.js +11 -0
- package/dist/node_modules/abitype/dist/index.cjs +2 -0
- package/dist/node_modules/abitype/dist/index.js +299 -0
- package/dist/node_modules/crc-32/crc32.cjs +1 -0
- package/dist/node_modules/crc-32/crc32.js +51 -0
- package/dist/node_modules/cross-fetch/dist/browser-ponyfill.cjs +2 -0
- package/dist/node_modules/cross-fetch/dist/browser-ponyfill.js +320 -0
- package/dist/node_modules/ethereum-cryptography/esm/aes.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/aes.js +61 -0
- package/dist/node_modules/ethereum-cryptography/esm/keccak.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/keccak.js +9 -0
- package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.js +15 -0
- package/dist/node_modules/ethereum-cryptography/esm/random.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/random.js +7 -0
- package/dist/node_modules/ethereum-cryptography/esm/scrypt.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/scrypt.js +8 -0
- package/dist/node_modules/ethereum-cryptography/esm/secp256k1.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/secp256k1.js +4 -0
- package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/utils.js +35 -0
- package/dist/node_modules/events/events.cjs +1 -0
- package/dist/node_modules/events/events.js +229 -0
- package/dist/node_modules/isomorphic-ws/browser.cjs +1 -0
- package/dist/node_modules/isomorphic-ws/browser.js +6 -0
- package/dist/node_modules/setimmediate/setImmediate.cjs +1 -0
- package/dist/node_modules/setimmediate/setImmediate.js +99 -0
- package/dist/node_modules/web3/lib/esm/abi.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/abi.js +24 -0
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/accounts.js +101 -0
- package/dist/node_modules/web3/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/index.js +76 -0
- package/dist/node_modules/web3/lib/esm/version.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/version.js +4 -0
- package/dist/node_modules/web3/lib/esm/web3.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/web3.js +89 -0
- package/dist/node_modules/web3-core/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/utils.js +14 -0
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +83 -0
- package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_config.js +343 -0
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +227 -0
- package/dist/node_modules/web3-core/lib/esm/web3_event_emitter.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_event_emitter.js +39 -0
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +58 -0
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +240 -0
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +155 -0
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +111 -0
- package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/error_codes.js +106 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.js +58 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/connection_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/connection_errors.js +37 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +49 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/core_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/core_errors.js +16 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/ens_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/ens_errors.js +16 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/generic_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/generic_errors.js +49 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/provider_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/provider_errors.js +28 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +30 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/rpc_error_messages.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/rpc_error_messages.js +161 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/rpc_errors.js +129 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/schema_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/schema_errors.js +13 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/signature_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/signature_errors.js +10 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +5 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +256 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +76 -0
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +28 -0
- package/dist/node_modules/web3-eth/lib/esm/constants.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/constants.js +14 -0
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +413 -0
- package/dist/node_modules/web3-eth/lib/esm/schemas.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/schemas.js +570 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/decode_signed_transaction.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/decode_signed_transaction.js +31 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/decoding.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/decoding.js +34 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/detect_transaction_type.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/detect_transaction_type.js +90 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/format_transaction.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/format_transaction.js +30 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +77 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +50 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +79 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +102 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +109 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +143 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +131 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +52 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +61 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_pooling.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_pooling.js +51 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +77 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +42 -0
- package/dist/node_modules/web3-eth/lib/esm/validation.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/validation.js +111 -0
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +1512 -0
- package/dist/node_modules/web3-eth/lib/esm/web3_subscriptions.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/web3_subscriptions.js +65 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/errors_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/errors_api.js +13 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/events_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/events_api.js +13 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.js +20 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/logs_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/logs_api.js +14 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.js +22 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/address.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/address.js +47 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/array.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/array.js +72 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bool.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bool.js +37 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.js +66 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.js +59 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/number.js +85 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/numbersLimits.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/numbersLimits.js +15 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/string.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/string.js +22 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/tuple.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/tuple.js +77 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/utils.js +15 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/decode.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/decode.js +16 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.js +23 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/utils.js +58 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/decode_contract_error_data.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/decode_contract_error_data.js +18 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/utils.js +39 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +219 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/goerli.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/goerli.js +99 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/mainnet.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/mainnet.js +115 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/sepolia.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/sepolia.js +102 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/common.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/common.js +741 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1153.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1153.js +25 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1559.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1559.js +29 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2315.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2315.js +28 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2537.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2537.js +181 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2565.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2565.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2718.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2718.js +14 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2929.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2929.js +87 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2930.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2930.js +24 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3198.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3198.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3529.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3529.js +29 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3540.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3540.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3541.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3541.js +15 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3554.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3554.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3607.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3607.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3651.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3651.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3670.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3670.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3675.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3675.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3855.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3855.js +21 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3860.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3860.js +26 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4345.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4345.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4399.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4399.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/5133.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/5133.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/index.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/index.js +49 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/enums.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/enums.js +27 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/arrowGlacier.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/arrowGlacier.js +14 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/berlin.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/berlin.js +10 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/byzantium.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/byzantium.js +59 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/chainstart.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/chainstart.js +441 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/constantinople.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/constantinople.js +71 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/dao.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/dao.js +13 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/grayGlacier.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/grayGlacier.js +14 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/homestead.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/homestead.js +18 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/index.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/index.js +39 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/istanbul.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/istanbul.js +90 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/london.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/london.js +10 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/merge.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/merge.js +15 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.js +10 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/muirGlacier.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/muirGlacier.js +18 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/petersburg.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/petersburg.js +42 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/shanghai.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/shanghai.js +10 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/spuriousDragon.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/spuriousDragon.js +23 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/tangerineWhistle.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/tangerineWhistle.js +46 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/types.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/types.js +7 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +277 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/schemas.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/schemas.js +25 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/address.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/address.js +57 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.js +272 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/constants.js +11 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.js +285 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.js +268 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/legacyTransaction.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/legacyTransaction.js +256 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.js +89 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/types.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/types.js +18 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/utils.js +80 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +361 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +510 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +80 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/index.js +27 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +36 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/utils.js +90 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/ENSRegistry.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/ENSRegistry.js +168 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.js +578 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/config.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/config.js +27 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +241 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +105 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +95 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/utils.js +19 -0
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -0
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +283 -0
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -0
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +265 -0
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -0
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +93 -0
- package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -0
- package/dist/node_modules/web3-net/lib/esm/net.js +97 -0
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -0
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +51 -0
- package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3-providers-http/lib/esm/index.js +98 -0
- package/dist/node_modules/web3-providers-ws/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3-providers-ws/lib/esm/index.js +70 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +407 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +56 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +84 -0
- package/dist/node_modules/web3-types/lib/esm/data_format_types.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/data_format_types.js +15 -0
- package/dist/node_modules/web3-types/lib/esm/eth_types.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/eth_types.js +12 -0
- package/dist/node_modules/web3-types/lib/esm/primitives_types.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/primitives_types.js +4 -0
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +89 -0
- package/dist/node_modules/web3-types/lib/esm/web3_base_wallet.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/web3_base_wallet.js +8 -0
- package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +37 -0
- package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/converters.js +177 -0
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +91 -0
- package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/formatter.js +134 -0
- package/dist/node_modules/web3-utils/lib/esm/hash.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/hash.js +107 -0
- package/dist/node_modules/web3-utils/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/index.js +107 -0
- package/dist/node_modules/web3-utils/lib/esm/json_rpc.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/json_rpc.js +41 -0
- package/dist/node_modules/web3-utils/lib/esm/objects.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/objects.js +20 -0
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +104 -0
- package/dist/node_modules/web3-utils/lib/esm/random.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/random.js +7 -0
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +195 -0
- package/dist/node_modules/web3-utils/lib/esm/string_manipulation.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/string_manipulation.js +48 -0
- package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/uint8array.js +21 -0
- package/dist/node_modules/web3-utils/lib/esm/uuid.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/uuid.js +17 -0
- package/dist/node_modules/web3-utils/lib/esm/validation.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/validation.js +50 -0
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +114 -0
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +86 -0
- package/dist/node_modules/web3-validator/lib/esm/constants.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/constants.js +4 -0
- package/dist/node_modules/web3-validator/lib/esm/default_validator.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/default_validator.js +5 -0
- package/dist/node_modules/web3-validator/lib/esm/errors.cjs +3 -0
- package/dist/node_modules/web3-validator/lib/esm/errors.js +17 -0
- package/dist/node_modules/web3-validator/lib/esm/formats.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/formats.js +31 -0
- package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/utils.js +178 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/abi.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/abi.js +4 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/address.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/address.js +22 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/block.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/block.js +10 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/bloom.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/bloom.js +29 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/boolean.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/boolean.js +5 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +27 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/filter.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/filter.js +26 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +52 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/object.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/object.js +13 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/string.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/string.js +23 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/topic.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/topic.js +6 -0
- package/dist/node_modules/web3-validator/lib/esm/validator.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validator.js +84 -0
- package/dist/node_modules/web3-validator/lib/esm/web3_validator.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/web3_validator.js +31 -0
- package/dist/node_modules/zod/lib/index.cjs +1 -0
- package/dist/node_modules/zod/lib/index.js +2854 -0
- package/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.cjs +3 -0
- package/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.js +51 -0
- package/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.js +105 -79
- package/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/axios.js +41 -35
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.js +57 -44
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.js +8 -15
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.js +3 -6
- package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +101 -72
- package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.js +19 -19
- package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.cjs +2 -0
- package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.js +165 -0
- package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.js +56 -22
- package/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.js +6 -6
- package/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.js +23 -38
- package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.js +62 -58
- package/dist/prometheus-framework/node_modules/axios/lib/core/settle.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/settle.js +11 -18
- package/dist/prometheus-framework/node_modules/axios/lib/core/transformData.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/transformData.js +11 -9
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +49 -48
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.js +2 -2
- package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +2 -7
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.js +72 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.js +4 -6
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.js +13 -24
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +4 -4
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.js +30 -40
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +30 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.js +3 -3
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.js +4 -11
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +34 -39
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/null.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/null.js +2 -5
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.cjs +2 -2
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.js +28 -38
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.js +4 -7
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.js +19 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.js +5 -8
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.js +79 -32
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.js +33 -31
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +7 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/index.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/index.js +9 -0
- package/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/utils.js +212 -140
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -72
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -2
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +6 -7
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +30 -61
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +20 -21
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +28 -33
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +6 -41
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +75 -33
- package/dist/prometheus-framework.cjs.js +29 -30
- package/dist/prometheus-framework.es.js +3953 -3225
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/src/modules/payments/components/pages/Payments.vue +32 -34
- package/src/modules/products/components/blocks/CardLeftover.vue +1 -2
- package/src/modules/products/components/blocks/CardProduct.vue +1 -17
- 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;
|