@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,107 @@
|
|
1
|
+
import { asciiToHex as t, bytesToHex as s, bytesToUint8Array as i, ethUnitMap as a, fromAscii as m, fromDecimal as n, fromUtf8 as p, fromWei as c, hexToAscii as d, hexToBytes as l, hexToNumber as f, hexToNumberString as x, hexToString as u, hexToUtf8 as h, numberToHex as T, stringToHex as R, toAscii as k, toBigInt as A, toBool as B, toChecksumAddress as S, toDecimal as y, toHex as g, toNumber as I, toUtf8 as P, toWei as b, utf8ToBytes as H, utf8ToHex as W } from "./converters.js";
|
2
|
+
import { EventEmitter as C } from "./event_emitter.js";
|
3
|
+
import { checkAddressCheckSum as D, compareBlockNumbers as N, isAddress as U, isBloom as w, isContractAddressInBloom as j, isHex as q, isHexStrict as V, isInBloom as F, isNullish as L, isTopic as M, isTopicInBloom as _, isUserEthereumAddressInBloom as z } from "./validation.js";
|
4
|
+
import { convert as J, convertScalarValue as K, format as O, isDataFormat as Q } from "./formatter.js";
|
5
|
+
import { encodePacked as Y, getStorageSlotNumForLongString as Z, keccak256Wrapper as $, keccak256Wrapper as ee, processSolidityEncodePackedArgs as oe, sha3 as re, sha3Raw as te, soliditySha3 as se, soliditySha3Raw as ie } from "./hash.js";
|
6
|
+
import { randomBytes as me, randomHex as ne } from "./random.js";
|
7
|
+
import { fromTwosComplement as ce, leftPad as de, padLeft as le, padRight as fe, rightPad as xe, toTwosComplement as ue } from "./string_manipulation.js";
|
8
|
+
import { mergeDeep as Te } from "./objects.js";
|
9
|
+
import { isPromise as ke, pollTillDefined as Ae, pollTillDefinedAndReturnIntervalId as Be, rejectIfConditionAtInterval as Se, rejectIfTimeout as ye, waitWithTimeout as ge } from "./promise_helpers.js";
|
10
|
+
import * as e from "./json_rpc.js";
|
11
|
+
import { isBatchRequest as Pe, isBatchResponse as be, isResponseRpcError as He, isResponseWithError as We, isResponseWithNotification as ve, isResponseWithResult as Ce, isSubscriptionResult as Ee, isValidResponse as De, setRequestIdStart as Ne, toBatchPayload as Ue, toPayload as we, validateResponse as je } from "./json_rpc.js";
|
12
|
+
import { Web3DeferredPromise as Ve } from "./web3_deferred_promise.js";
|
13
|
+
import { ChunkResponseParser as Le } from "./chunk_response_parser.js";
|
14
|
+
import { uuidV4 as _e } from "./uuid.js";
|
15
|
+
import { Eip1193Provider as Ge } from "./web3_eip1193_provider.js";
|
16
|
+
import { SocketProvider as Ke } from "./socket_provider.js";
|
17
|
+
import { uint8ArrayConcat as Qe, uint8ArrayEquals as Xe } from "./uint8array.js";
|
18
|
+
export {
|
19
|
+
Le as ChunkResponseParser,
|
20
|
+
Ge as Eip1193Provider,
|
21
|
+
C as EventEmitter,
|
22
|
+
Ke as SocketProvider,
|
23
|
+
Ve as Web3DeferredPromise,
|
24
|
+
t as asciiToHex,
|
25
|
+
s as bytesToHex,
|
26
|
+
i as bytesToUint8Array,
|
27
|
+
D as checkAddressCheckSum,
|
28
|
+
N as compareBlockNumbers,
|
29
|
+
J as convert,
|
30
|
+
K as convertScalarValue,
|
31
|
+
Y as encodePacked,
|
32
|
+
a as ethUnitMap,
|
33
|
+
O as format,
|
34
|
+
m as fromAscii,
|
35
|
+
n as fromDecimal,
|
36
|
+
ce as fromTwosComplement,
|
37
|
+
p as fromUtf8,
|
38
|
+
c as fromWei,
|
39
|
+
Z as getStorageSlotNumForLongString,
|
40
|
+
d as hexToAscii,
|
41
|
+
l as hexToBytes,
|
42
|
+
f as hexToNumber,
|
43
|
+
x as hexToNumberString,
|
44
|
+
u as hexToString,
|
45
|
+
h as hexToUtf8,
|
46
|
+
U as isAddress,
|
47
|
+
Pe as isBatchRequest,
|
48
|
+
be as isBatchResponse,
|
49
|
+
w as isBloom,
|
50
|
+
j as isContractAddressInBloom,
|
51
|
+
Q as isDataFormat,
|
52
|
+
q as isHex,
|
53
|
+
V as isHexStrict,
|
54
|
+
F as isInBloom,
|
55
|
+
L as isNullish,
|
56
|
+
ke as isPromise,
|
57
|
+
He as isResponseRpcError,
|
58
|
+
We as isResponseWithError,
|
59
|
+
ve as isResponseWithNotification,
|
60
|
+
Ce as isResponseWithResult,
|
61
|
+
Ee as isSubscriptionResult,
|
62
|
+
M as isTopic,
|
63
|
+
_ as isTopicInBloom,
|
64
|
+
z as isUserEthereumAddressInBloom,
|
65
|
+
De as isValidResponse,
|
66
|
+
e as jsonRpc,
|
67
|
+
$ as keccak256,
|
68
|
+
ee as keccak256Wrapper,
|
69
|
+
de as leftPad,
|
70
|
+
Te as mergeDeep,
|
71
|
+
T as numberToHex,
|
72
|
+
le as padLeft,
|
73
|
+
fe as padRight,
|
74
|
+
Ae as pollTillDefined,
|
75
|
+
Be as pollTillDefinedAndReturnIntervalId,
|
76
|
+
oe as processSolidityEncodePackedArgs,
|
77
|
+
me as randomBytes,
|
78
|
+
ne as randomHex,
|
79
|
+
Se as rejectIfConditionAtInterval,
|
80
|
+
ye as rejectIfTimeout,
|
81
|
+
xe as rightPad,
|
82
|
+
Ne as setRequestIdStart,
|
83
|
+
re as sha3,
|
84
|
+
te as sha3Raw,
|
85
|
+
se as soliditySha3,
|
86
|
+
ie as soliditySha3Raw,
|
87
|
+
R as stringToHex,
|
88
|
+
k as toAscii,
|
89
|
+
Ue as toBatchPayload,
|
90
|
+
A as toBigInt,
|
91
|
+
B as toBool,
|
92
|
+
S as toChecksumAddress,
|
93
|
+
y as toDecimal,
|
94
|
+
g as toHex,
|
95
|
+
I as toNumber,
|
96
|
+
we as toPayload,
|
97
|
+
ue as toTwosComplement,
|
98
|
+
P as toUtf8,
|
99
|
+
b as toWei,
|
100
|
+
Qe as uint8ArrayConcat,
|
101
|
+
Xe as uint8ArrayEquals,
|
102
|
+
H as utf8ToBytes,
|
103
|
+
W as utf8ToHex,
|
104
|
+
_e as uuidV4,
|
105
|
+
je as validateResponse,
|
106
|
+
ge as waitWithTimeout
|
107
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const o=require("../../../web3-validator/lib/esm/validation/object.cjs"),R=require("./uuid.cjs"),h=i=>{const r=i.error.code;return y.rpcErrorsMap.has(r)||r>=-32099&&r<=-32e3},u=i=>!Array.isArray(i)&&!!i&&i.jsonrpc==="2.0"&&"result"in i&&o.isNullish(i.error)&&(typeof i.id=="number"||typeof i.id=="string"),d=i=>!Array.isArray(i)&&i.jsonrpc==="2.0"&&!!i&&o.isNullish(i.result)&&"error"in i&&(typeof i.id=="number"||typeof i.id=="string"),A=i=>!Array.isArray(i)&&!!i&&i.jsonrpc==="2.0"&&!o.isNullish(i.params)&&!o.isNullish(i.method),p=i=>!Array.isArray(i)&&!!i&&i.jsonrpc==="2.0"&&"id"in i&&"result"in i,c=i=>u(i)||d(i),l=i=>Array.isArray(i)?i.every(c):c(i),f=i=>Array.isArray(i)&&i.length>0&&l(i);let t;const m=i=>{t=i},n=i=>{var r,s,a,e;return typeof t<"u"&&(t+=1),{jsonrpc:(r=i.jsonrpc)!==null&&r!==void 0?r:"2.0",id:(a=(s=i.id)!==null&&s!==void 0?s:t)!==null&&a!==void 0?a:R.uuidV4(),method:i.method,params:(e=i.params)!==null&&e!==void 0?e:void 0}},q=i=>i.map(r=>n(r)),v=i=>Array.isArray(i)&&i.length>0;exports.isBatchRequest=v;exports.isBatchResponse=f;exports.isResponseRpcError=h;exports.isResponseWithError=d;exports.isResponseWithNotification=A;exports.isResponseWithResult=u;exports.isSubscriptionResult=p;exports.isValidResponse=l;exports.setRequestIdStart=m;exports.toBatchPayload=q;exports.toPayload=n;exports.validateResponse=c;
|
@@ -0,0 +1,41 @@
|
|
1
|
+
import { rpcErrorsMap as l } from "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
2
|
+
import "../../../web3-validator/lib/esm/formats.js";
|
3
|
+
import "../../../web3-validator/lib/esm/default_validator.js";
|
4
|
+
import "../../../web3-types/lib/esm/data_format_types.js";
|
5
|
+
import "../../../web3-types/lib/esm/eth_types.js";
|
6
|
+
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
7
|
+
import { isNullish as o } from "../../../web3-validator/lib/esm/validation/object.js";
|
8
|
+
import { uuidV4 as y } from "./uuid.js";
|
9
|
+
const _ = (r) => {
|
10
|
+
const i = r.error.code;
|
11
|
+
return l.has(i) || i >= -32099 && i <= -32e3;
|
12
|
+
}, m = (r) => !Array.isArray(r) && !!r && r.jsonrpc === "2.0" && // JSON RPC consider "null" as valid response
|
13
|
+
"result" in r && o(r.error) && (typeof r.id == "number" || typeof r.id == "string"), u = (r) => !Array.isArray(r) && r.jsonrpc === "2.0" && !!r && o(r.result) && // JSON RPC consider "null" as valid response
|
14
|
+
"error" in r && (typeof r.id == "number" || typeof r.id == "string"), B = (r) => !Array.isArray(r) && !!r && r.jsonrpc === "2.0" && !o(r.params) && !o(r.method), E = (r) => !Array.isArray(r) && !!r && r.jsonrpc === "2.0" && "id" in r && // JSON RPC consider "null" as valid response
|
15
|
+
"result" in r, n = (r) => m(r) || u(r), A = (r) => Array.isArray(r) ? r.every(n) : n(r), S = (r) => Array.isArray(r) && r.length > 0 && A(r);
|
16
|
+
let t;
|
17
|
+
const W = (r) => {
|
18
|
+
t = r;
|
19
|
+
}, h = (r) => {
|
20
|
+
var i, a, d, c;
|
21
|
+
return typeof t < "u" && (t += 1), {
|
22
|
+
jsonrpc: (i = r.jsonrpc) !== null && i !== void 0 ? i : "2.0",
|
23
|
+
id: (d = (a = r.id) !== null && a !== void 0 ? a : t) !== null && d !== void 0 ? d : y(),
|
24
|
+
method: r.method,
|
25
|
+
params: (c = r.params) !== null && c !== void 0 ? c : void 0
|
26
|
+
};
|
27
|
+
}, I = (r) => r.map((i) => h(i)), N = (r) => Array.isArray(r) && r.length > 0;
|
28
|
+
export {
|
29
|
+
N as isBatchRequest,
|
30
|
+
S as isBatchResponse,
|
31
|
+
_ as isResponseRpcError,
|
32
|
+
u as isResponseWithError,
|
33
|
+
B as isResponseWithNotification,
|
34
|
+
m as isResponseWithResult,
|
35
|
+
E as isSubscriptionResult,
|
36
|
+
A as isValidResponse,
|
37
|
+
W as setRequestIdStart,
|
38
|
+
I as toBatchPayload,
|
39
|
+
h as toPayload,
|
40
|
+
n as validateResponse
|
41
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");const o=require("../../../web3-types/lib/esm/primitives_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");const c=require("../../../web3-validator/lib/esm/validation/object.cjs"),t=s=>typeof s=="object"&&!c.isNullish(s)&&!Array.isArray(s)&&!(s instanceof o.TypedArray),n=(s,...u)=>{const i=s;if(!t(i))return i;for(const r of u)for(const e in r)t(r[e])?(i[e]||(i[e]={}),n(i[e],r[e])):!c.isNullish(r[e])&&Object.hasOwnProperty.call(r,e)&&(Array.isArray(r[e])||r[e]instanceof o.TypedArray?i[e]=r[e].slice(0):i[e]=r[e]);return i};exports.mergeDeep=n;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import "../../../web3-types/lib/esm/data_format_types.js";
|
2
|
+
import "../../../web3-types/lib/esm/eth_types.js";
|
3
|
+
import { TypedArray as s } from "../../../web3-types/lib/esm/primitives_types.js";
|
4
|
+
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
5
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
6
|
+
import "../../../web3-validator/lib/esm/formats.js";
|
7
|
+
import "../../../web3-validator/lib/esm/default_validator.js";
|
8
|
+
import { isNullish as f } from "../../../web3-validator/lib/esm/validation/object.js";
|
9
|
+
const i = (e) => typeof e == "object" && !f(e) && !Array.isArray(e) && !(e instanceof s), p = (e, ...n) => {
|
10
|
+
const t = e;
|
11
|
+
if (!i(t))
|
12
|
+
return t;
|
13
|
+
for (const o of n)
|
14
|
+
for (const r in o)
|
15
|
+
i(o[r]) ? (t[r] || (t[r] = {}), p(t[r], o[r])) : !f(o[r]) && Object.hasOwnProperty.call(o, r) && (Array.isArray(o[r]) || o[r] instanceof s ? t[r] = o[r].slice(0) : t[r] = o[r]);
|
16
|
+
return t;
|
17
|
+
};
|
18
|
+
export {
|
19
|
+
p as mergeDeep
|
20
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const I=require("../../../web3-validator/lib/esm/validation/object.cjs");var f=globalThis&&globalThis.__awaiter||function(t,o,e,n){function u(i){return i instanceof e?i:new e(function(r){r(i)})}return new(e||(e=Promise))(function(i,r){function c(l){try{s(n.next(l))}catch(d){r(d)}}function m(l){try{s(n.throw(l))}catch(d){r(d)}}function s(l){l.done?i(l.value):u(l.value).then(c,m)}s((n=n.apply(t,o||[])).next())})};function h(t){return(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}function a(t,o,e){return f(this,void 0,void 0,function*(){let n;const u=yield Promise.race([t instanceof Promise?t:t(),new Promise((i,r)=>{n=setTimeout(()=>e?r(e):i(void 0),o)})]);if(n&&clearTimeout(n),u instanceof Error)throw u;return u})}function v(t,o){let e;return[new Promise((u,i)=>{e=setInterval(function r(){return f(this,void 0,void 0,function*(){try{const c=yield a(t,o);I.isNullish(c)||(clearInterval(e),u(c))}catch(c){clearInterval(e),i(c)}}),r}(),o)}),e]}function T(t,o){return f(this,void 0,void 0,function*(){return v(t,o)[0]})}function p(t,o){let e;const n=new Promise((u,i)=>{e=setTimeout(()=>{i(o)},t)});return[e,n]}function y(t,o){let e;const n=new Promise((u,i)=>{e=setInterval(()=>{f(this,void 0,void 0,function*(){const r=yield t();r&&(clearInterval(e),i(r))})},o)});return[e,n]}exports.isPromise=h;exports.pollTillDefined=T;exports.pollTillDefinedAndReturnIntervalId=v;exports.rejectIfConditionAtInterval=y;exports.rejectIfTimeout=p;exports.waitWithTimeout=a;
|
@@ -0,0 +1,104 @@
|
|
1
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
2
|
+
import "../../../web3-validator/lib/esm/formats.js";
|
3
|
+
import "../../../web3-validator/lib/esm/default_validator.js";
|
4
|
+
import "../../../web3-types/lib/esm/data_format_types.js";
|
5
|
+
import "../../../web3-types/lib/esm/eth_types.js";
|
6
|
+
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
7
|
+
import { isNullish as a } from "../../../web3-validator/lib/esm/validation/object.js";
|
8
|
+
var f = globalThis && globalThis.__awaiter || function(n, o, t, e) {
|
9
|
+
function c(i) {
|
10
|
+
return i instanceof t ? i : new t(function(r) {
|
11
|
+
r(i);
|
12
|
+
});
|
13
|
+
}
|
14
|
+
return new (t || (t = Promise))(function(i, r) {
|
15
|
+
function l(u) {
|
16
|
+
try {
|
17
|
+
s(e.next(u));
|
18
|
+
} catch (d) {
|
19
|
+
r(d);
|
20
|
+
}
|
21
|
+
}
|
22
|
+
function m(u) {
|
23
|
+
try {
|
24
|
+
s(e.throw(u));
|
25
|
+
} catch (d) {
|
26
|
+
r(d);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
function s(u) {
|
30
|
+
u.done ? i(u.value) : c(u.value).then(l, m);
|
31
|
+
}
|
32
|
+
s((e = e.apply(n, o || [])).next());
|
33
|
+
});
|
34
|
+
};
|
35
|
+
function j(n) {
|
36
|
+
return (typeof n == "object" || typeof n == "function") && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
37
|
+
typeof n.then == "function";
|
38
|
+
}
|
39
|
+
function p(n, o, t) {
|
40
|
+
return f(this, void 0, void 0, function* () {
|
41
|
+
let e;
|
42
|
+
const c = yield Promise.race([
|
43
|
+
n instanceof Promise ? n : n(),
|
44
|
+
new Promise((i, r) => {
|
45
|
+
e = setTimeout(() => t ? r(t) : i(void 0), o);
|
46
|
+
})
|
47
|
+
]);
|
48
|
+
if (e && clearTimeout(e), c instanceof Error)
|
49
|
+
throw c;
|
50
|
+
return c;
|
51
|
+
});
|
52
|
+
}
|
53
|
+
function v(n, o) {
|
54
|
+
let t;
|
55
|
+
return [new Promise((c, i) => {
|
56
|
+
t = setInterval(
|
57
|
+
function r() {
|
58
|
+
return f(this, void 0, void 0, function* () {
|
59
|
+
try {
|
60
|
+
const l = yield p(n, o);
|
61
|
+
a(l) || (clearInterval(t), c(l));
|
62
|
+
} catch (l) {
|
63
|
+
clearInterval(t), i(l);
|
64
|
+
}
|
65
|
+
}), r;
|
66
|
+
}(),
|
67
|
+
o
|
68
|
+
);
|
69
|
+
}), t];
|
70
|
+
}
|
71
|
+
function x(n, o) {
|
72
|
+
return f(this, void 0, void 0, function* () {
|
73
|
+
return v(n, o)[0];
|
74
|
+
});
|
75
|
+
}
|
76
|
+
function C(n, o) {
|
77
|
+
let t;
|
78
|
+
const e = new Promise((c, i) => {
|
79
|
+
t = setTimeout(() => {
|
80
|
+
i(o);
|
81
|
+
}, n);
|
82
|
+
});
|
83
|
+
return [t, e];
|
84
|
+
}
|
85
|
+
function R(n, o) {
|
86
|
+
let t;
|
87
|
+
const e = new Promise((c, i) => {
|
88
|
+
t = setInterval(() => {
|
89
|
+
f(this, void 0, void 0, function* () {
|
90
|
+
const r = yield n();
|
91
|
+
r && (clearInterval(t), i(r));
|
92
|
+
});
|
93
|
+
}, o);
|
94
|
+
});
|
95
|
+
return [t, e];
|
96
|
+
}
|
97
|
+
export {
|
98
|
+
j as isPromise,
|
99
|
+
x as pollTillDefined,
|
100
|
+
v as pollTillDefinedAndReturnIntervalId,
|
101
|
+
R as rejectIfConditionAtInterval,
|
102
|
+
C as rejectIfTimeout,
|
103
|
+
p as waitWithTimeout
|
104
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../ethereum-cryptography/esm/random.cjs"),r=require("./converters.cjs"),o=e=>t.getRandomBytesSync(e),n=e=>r.bytesToHex(o(e));exports.randomBytes=o;exports.randomHex=n;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../web3-errors/lib/esm/errors/connection_errors.cjs"),d=require("../../../web3-errors/lib/esm/errors/provider_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const R=require("./web3_eip1193_provider.cjs"),f=require("./chunk_response_parser.cjs"),l=require("./validation.cjs"),v=require("./web3_deferred_promise.cjs"),c=require("./json_rpc.cjs");var g=globalThis&&globalThis.__awaiter||function(a,e,t,s){function i(n){return n instanceof t?n:new t(function(h){h(n)})}return new(t||(t=Promise))(function(n,h){function p(o){try{u(s.next(o))}catch(_){h(_)}}function m(o){try{u(s.throw(o))}catch(_){h(_)}}function u(o){o.done?n(o.value):i(o.value).then(p,m)}u((s=s.apply(a,e||[])).next())})};const q={autoReconnect:!0,delay:5e3,maxAttempts:5},E=1e3;class S extends R.Eip1193Provider{constructor(e,t,s){if(super(),this._connectionStatus="connecting",this._onMessageHandler=this._onMessage.bind(this),this._onOpenHandler=this._onConnect.bind(this),this._onCloseHandler=this._onCloseEvent.bind(this),this._onErrorHandler=this._onError.bind(this),!this._validateProviderPath(e))throw new d.InvalidClientError(e);this._socketPath=e,this._socketOptions=t,this._reconnectOptions=Object.assign(Object.assign({},q),s??{}),this._pendingRequestsQueue=new Map,this._sentRequestsQueue=new Map,this._init(),this.connect(),this.chunkResponseParser=new f.ChunkResponseParser(this._eventEmitter,this._reconnectOptions.autoReconnect),this.chunkResponseParser.onError(()=>{this._clearQueues()}),this.isReconnecting=!1}get SocketConnection(){return this._socketConnection}_init(){this._reconnectAttempts=0}connect(){try{this._openSocketConnection(),this._connectionStatus="connecting",this._addSocketListeners()}catch(e){if(this.isReconnecting)setImmediate(()=>{this._reconnect()});else throw this._connectionStatus="disconnected",e&&e.message?new r.ConnectionError(`Error while connecting to ${this._socketPath}. Reason: ${e.message}`):new d.InvalidClientError(this._socketPath)}}_validateProviderPath(e){return!!e}supportsSubscriptions(){return!0}on(e,t){this._eventEmitter.on(e,t)}once(e,t){this._eventEmitter.once(e,t)}removeListener(e,t){this._eventEmitter.removeListener(e,t)}_onDisconnect(e,t){this._connectionStatus="disconnected",super._onDisconnect(e,t)}disconnect(e,t){const s=e??E;this._removeSocketListeners(),this.getStatus()!=="disconnected"&&this._closeSocketConnection(s,t),this._onDisconnect(s,t)}removeAllListeners(e){this._eventEmitter.removeAllListeners(e)}_onError(e){this.isReconnecting?this._reconnect():this._eventEmitter.emit("error",e)}reset(){this._sentRequestsQueue.clear(),this._pendingRequestsQueue.clear(),this._init(),this._removeSocketListeners(),this._addSocketListeners()}_reconnect(){this.isReconnecting||(this.isReconnecting=!0,this._sentRequestsQueue.size>0&&this._sentRequestsQueue.forEach((e,t)=>{e.deferredPromise.reject(new r.PendingRequestsOnReconnectingError),this._sentRequestsQueue.delete(t)}),this._reconnectAttempts<this._reconnectOptions.maxAttempts?(this._reconnectAttempts+=1,setTimeout(()=>{this._removeSocketListeners(),this.connect(),this.isReconnecting=!1},this._reconnectOptions.delay)):(this.isReconnecting=!1,this._clearQueues(),this._removeSocketListeners(),this._eventEmitter.emit("error",new r.MaxAttemptsReachedOnReconnectingError(this._reconnectOptions.maxAttempts))))}request(e){return g(this,void 0,void 0,function*(){if(l.isNullish(this._socketConnection))throw new Error("Connection is undefined");this.getStatus()==="disconnected"&&this.connect();const t=c.isBatchRequest(e)?e[0].id:e.id;if(!t)throw new d.Web3WSProviderError("Request Id not defined");if(this._sentRequestsQueue.has(t))throw new r.RequestAlreadySentError(t);const s=new v.Web3DeferredPromise;s.catch(n=>{this._eventEmitter.emit("error",n)});const i={payload:e,deferredPromise:s};if(this.getStatus()==="connecting")return this._pendingRequestsQueue.set(t,i),i.deferredPromise;this._sentRequestsQueue.set(t,i);try{this._sendToSocket(i.payload)}catch(n){this._sentRequestsQueue.delete(t),this._eventEmitter.emit("error",n)}return s})}_onConnect(){this._connectionStatus="connected",this._reconnectAttempts=0,super._onConnect(),this._sendPendingRequests()}_sendPendingRequests(){for(const[e,t]of this._pendingRequestsQueue.entries())this._sendToSocket(t.payload),this._pendingRequestsQueue.delete(e),this._sentRequestsQueue.set(e,t)}_onMessage(e){const t=this._parseResponses(e);if(!(l.isNullish(t)||t.length===0))for(const s of t){if(c.isResponseWithNotification(s)&&s.method.endsWith("_subscription")){this._eventEmitter.emit("message",s);return}const i=c.isBatchResponse(s)?s[0].id:s.id,n=this._sentRequestsQueue.get(i);if(!n)return;(c.isBatchResponse(s)||c.isResponseWithResult(s)||c.isResponseWithError(s))&&(this._eventEmitter.emit("message",s),n.deferredPromise.resolve(s)),this._sentRequestsQueue.delete(i)}}_clearQueues(e){this._pendingRequestsQueue.size>0&&this._pendingRequestsQueue.forEach((t,s)=>{t.deferredPromise.reject(new r.ConnectionNotOpenError(e)),this._pendingRequestsQueue.delete(s)}),this._sentRequestsQueue.size>0&&this._sentRequestsQueue.forEach((t,s)=>{t.deferredPromise.reject(new r.ConnectionNotOpenError(e)),this._sentRequestsQueue.delete(s)}),this._removeSocketListeners()}}exports.SocketProvider=S;
|
@@ -0,0 +1,195 @@
|
|
1
|
+
import { ConnectionError as l, PendingRequestsOnReconnectingError as R, MaxAttemptsReachedOnReconnectingError as g, RequestAlreadySentError as v, ConnectionNotOpenError as _ } from "../../../web3-errors/lib/esm/errors/connection_errors.js";
|
2
|
+
import { InvalidClientError as d, Web3WSProviderError as E } from "../../../web3-errors/lib/esm/errors/provider_errors.js";
|
3
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
4
|
+
import { Eip1193Provider as q } from "./web3_eip1193_provider.js";
|
5
|
+
import { ChunkResponseParser as w } from "./chunk_response_parser.js";
|
6
|
+
import { isNullish as a } from "./validation.js";
|
7
|
+
import { Web3DeferredPromise as S } from "./web3_deferred_promise.js";
|
8
|
+
import { isBatchRequest as Q, isResponseWithNotification as k, isBatchResponse as m, isResponseWithResult as C, isResponseWithError as P } from "./json_rpc.js";
|
9
|
+
var O = globalThis && globalThis.__awaiter || function(u, e, t, s) {
|
10
|
+
function i(n) {
|
11
|
+
return n instanceof t ? n : new t(function(r) {
|
12
|
+
r(n);
|
13
|
+
});
|
14
|
+
}
|
15
|
+
return new (t || (t = Promise))(function(n, r) {
|
16
|
+
function p(o) {
|
17
|
+
try {
|
18
|
+
c(s.next(o));
|
19
|
+
} catch (h) {
|
20
|
+
r(h);
|
21
|
+
}
|
22
|
+
}
|
23
|
+
function f(o) {
|
24
|
+
try {
|
25
|
+
c(s.throw(o));
|
26
|
+
} catch (h) {
|
27
|
+
r(h);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
function c(o) {
|
31
|
+
o.done ? n(o.value) : i(o.value).then(p, f);
|
32
|
+
}
|
33
|
+
c((s = s.apply(u, e || [])).next());
|
34
|
+
});
|
35
|
+
};
|
36
|
+
const L = {
|
37
|
+
autoReconnect: !0,
|
38
|
+
delay: 5e3,
|
39
|
+
maxAttempts: 5
|
40
|
+
}, A = 1e3;
|
41
|
+
class D extends q {
|
42
|
+
/**
|
43
|
+
* This is an abstract class for implementing a socket provider (e.g. WebSocket, IPC). It extends the EIP-1193 provider {@link EIP1193Provider}.
|
44
|
+
* @param socketPath - The path to the socket (e.g. /ipc/path or ws://localhost:8546)
|
45
|
+
* @param socketOptions - The options for the socket connection. Its type is supposed to be specified in the inherited classes.
|
46
|
+
* @param reconnectOptions - The options for the socket reconnection {@link ReconnectOptions}
|
47
|
+
*/
|
48
|
+
constructor(e, t, s) {
|
49
|
+
if (super(), this._connectionStatus = "connecting", this._onMessageHandler = this._onMessage.bind(this), this._onOpenHandler = this._onConnect.bind(this), this._onCloseHandler = this._onCloseEvent.bind(this), this._onErrorHandler = this._onError.bind(this), !this._validateProviderPath(e))
|
50
|
+
throw new d(e);
|
51
|
+
this._socketPath = e, this._socketOptions = t, this._reconnectOptions = Object.assign(Object.assign({}, L), s ?? {}), this._pendingRequestsQueue = /* @__PURE__ */ new Map(), this._sentRequestsQueue = /* @__PURE__ */ new Map(), this._init(), this.connect(), this.chunkResponseParser = new w(this._eventEmitter, this._reconnectOptions.autoReconnect), this.chunkResponseParser.onError(() => {
|
52
|
+
this._clearQueues();
|
53
|
+
}), this.isReconnecting = !1;
|
54
|
+
}
|
55
|
+
get SocketConnection() {
|
56
|
+
return this._socketConnection;
|
57
|
+
}
|
58
|
+
_init() {
|
59
|
+
this._reconnectAttempts = 0;
|
60
|
+
}
|
61
|
+
/**
|
62
|
+
* Try to establish a connection to the socket
|
63
|
+
*/
|
64
|
+
connect() {
|
65
|
+
try {
|
66
|
+
this._openSocketConnection(), this._connectionStatus = "connecting", this._addSocketListeners();
|
67
|
+
} catch (e) {
|
68
|
+
if (this.isReconnecting)
|
69
|
+
setImmediate(() => {
|
70
|
+
this._reconnect();
|
71
|
+
});
|
72
|
+
else
|
73
|
+
throw this._connectionStatus = "disconnected", e && e.message ? new l(`Error while connecting to ${this._socketPath}. Reason: ${e.message}`) : new d(this._socketPath);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
// eslint-disable-next-line class-methods-use-this
|
77
|
+
_validateProviderPath(e) {
|
78
|
+
return !!e;
|
79
|
+
}
|
80
|
+
/**
|
81
|
+
*
|
82
|
+
* @returns `true` if the socket supports subscriptions
|
83
|
+
*/
|
84
|
+
// eslint-disable-next-line class-methods-use-this
|
85
|
+
supportsSubscriptions() {
|
86
|
+
return !0;
|
87
|
+
}
|
88
|
+
on(e, t) {
|
89
|
+
this._eventEmitter.on(e, t);
|
90
|
+
}
|
91
|
+
once(e, t) {
|
92
|
+
this._eventEmitter.once(e, t);
|
93
|
+
}
|
94
|
+
removeListener(e, t) {
|
95
|
+
this._eventEmitter.removeListener(e, t);
|
96
|
+
}
|
97
|
+
_onDisconnect(e, t) {
|
98
|
+
this._connectionStatus = "disconnected", super._onDisconnect(e, t);
|
99
|
+
}
|
100
|
+
/**
|
101
|
+
* Disconnects the socket
|
102
|
+
* @param code - The code to be sent to the server
|
103
|
+
* @param data - The data to be sent to the server
|
104
|
+
*/
|
105
|
+
disconnect(e, t) {
|
106
|
+
const s = e ?? A;
|
107
|
+
this._removeSocketListeners(), this.getStatus() !== "disconnected" && this._closeSocketConnection(s, t), this._onDisconnect(s, t);
|
108
|
+
}
|
109
|
+
/**
|
110
|
+
* Removes all listeners for the specified event type.
|
111
|
+
* @param type - The event type to remove the listeners for
|
112
|
+
*/
|
113
|
+
removeAllListeners(e) {
|
114
|
+
this._eventEmitter.removeAllListeners(e);
|
115
|
+
}
|
116
|
+
_onError(e) {
|
117
|
+
this.isReconnecting ? this._reconnect() : this._eventEmitter.emit("error", e);
|
118
|
+
}
|
119
|
+
/**
|
120
|
+
* Resets the socket, removing all listeners and pending requests
|
121
|
+
*/
|
122
|
+
reset() {
|
123
|
+
this._sentRequestsQueue.clear(), this._pendingRequestsQueue.clear(), this._init(), this._removeSocketListeners(), this._addSocketListeners();
|
124
|
+
}
|
125
|
+
_reconnect() {
|
126
|
+
this.isReconnecting || (this.isReconnecting = !0, this._sentRequestsQueue.size > 0 && this._sentRequestsQueue.forEach((e, t) => {
|
127
|
+
e.deferredPromise.reject(new R()), this._sentRequestsQueue.delete(t);
|
128
|
+
}), this._reconnectAttempts < this._reconnectOptions.maxAttempts ? (this._reconnectAttempts += 1, setTimeout(() => {
|
129
|
+
this._removeSocketListeners(), this.connect(), this.isReconnecting = !1;
|
130
|
+
}, this._reconnectOptions.delay)) : (this.isReconnecting = !1, this._clearQueues(), this._removeSocketListeners(), this._eventEmitter.emit("error", new g(this._reconnectOptions.maxAttempts))));
|
131
|
+
}
|
132
|
+
/**
|
133
|
+
* Creates a request object to be sent to the server
|
134
|
+
*/
|
135
|
+
request(e) {
|
136
|
+
return O(this, void 0, void 0, function* () {
|
137
|
+
if (a(this._socketConnection))
|
138
|
+
throw new Error("Connection is undefined");
|
139
|
+
this.getStatus() === "disconnected" && this.connect();
|
140
|
+
const t = Q(e) ? e[0].id : e.id;
|
141
|
+
if (!t)
|
142
|
+
throw new E("Request Id not defined");
|
143
|
+
if (this._sentRequestsQueue.has(t))
|
144
|
+
throw new v(t);
|
145
|
+
const s = new S();
|
146
|
+
s.catch((n) => {
|
147
|
+
this._eventEmitter.emit("error", n);
|
148
|
+
});
|
149
|
+
const i = {
|
150
|
+
payload: e,
|
151
|
+
deferredPromise: s
|
152
|
+
};
|
153
|
+
if (this.getStatus() === "connecting")
|
154
|
+
return this._pendingRequestsQueue.set(t, i), i.deferredPromise;
|
155
|
+
this._sentRequestsQueue.set(t, i);
|
156
|
+
try {
|
157
|
+
this._sendToSocket(i.payload);
|
158
|
+
} catch (n) {
|
159
|
+
this._sentRequestsQueue.delete(t), this._eventEmitter.emit("error", n);
|
160
|
+
}
|
161
|
+
return s;
|
162
|
+
});
|
163
|
+
}
|
164
|
+
_onConnect() {
|
165
|
+
this._connectionStatus = "connected", this._reconnectAttempts = 0, super._onConnect(), this._sendPendingRequests();
|
166
|
+
}
|
167
|
+
_sendPendingRequests() {
|
168
|
+
for (const [e, t] of this._pendingRequestsQueue.entries())
|
169
|
+
this._sendToSocket(t.payload), this._pendingRequestsQueue.delete(e), this._sentRequestsQueue.set(e, t);
|
170
|
+
}
|
171
|
+
_onMessage(e) {
|
172
|
+
const t = this._parseResponses(e);
|
173
|
+
if (!(a(t) || t.length === 0))
|
174
|
+
for (const s of t) {
|
175
|
+
if (k(s) && s.method.endsWith("_subscription")) {
|
176
|
+
this._eventEmitter.emit("message", s);
|
177
|
+
return;
|
178
|
+
}
|
179
|
+
const i = m(s) ? s[0].id : s.id, n = this._sentRequestsQueue.get(i);
|
180
|
+
if (!n)
|
181
|
+
return;
|
182
|
+
(m(s) || C(s) || P(s)) && (this._eventEmitter.emit("message", s), n.deferredPromise.resolve(s)), this._sentRequestsQueue.delete(i);
|
183
|
+
}
|
184
|
+
}
|
185
|
+
_clearQueues(e) {
|
186
|
+
this._pendingRequestsQueue.size > 0 && this._pendingRequestsQueue.forEach((t, s) => {
|
187
|
+
t.deferredPromise.reject(new _(e)), this._pendingRequestsQueue.delete(s);
|
188
|
+
}), this._sentRequestsQueue.size > 0 && this._sentRequestsQueue.forEach((t, s) => {
|
189
|
+
t.deferredPromise.reject(new _(e)), this._sentRequestsQueue.delete(s);
|
190
|
+
}), this._removeSocketListeners();
|
191
|
+
}
|
192
|
+
}
|
193
|
+
export {
|
194
|
+
D as SocketProvider
|
195
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../web3-errors/lib/esm/errors/utils_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const c=require("../../../web3-validator/lib/esm/utils.cjs"),d=require("../../../web3-validator/lib/esm/default_validator.cjs"),a=require("../../../web3-validator/lib/esm/validation/string.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const g=require("../../../web3-validator/lib/esm/validation/numbers.cjs"),o=require("./converters.cjs"),s=(t,e,r="0")=>typeof t=="string"?a.isHexStrict(t)?c.padLeft(t,e,r):t.padStart(e,r):(d.validator.validate(["int"],[t]),c.padLeft(t,e,r)),p=(t,e,r="0")=>{if(typeof t=="string"&&!a.isHexStrict(t))return t.padEnd(e,r);d.validator.validate(["int"],[t]);const i=typeof t=="string"&&a.isHexStrict(t)?t:o.numberToHex(t),n=i.startsWith("-")?3:2;return i.padEnd(e+n,r)},u=p,l=s,q=(t,e=64)=>{d.validator.validate(["int"],[t]);const r=o.toNumber(t);if(r>=0)return s(o.toHex(r),e);const i=g.bigintPower(BigInt(2),BigInt(e*4));if(-r>=i)throw new f.NibbleWidthError(`value: ${t}, nibbleWidth: ${e}`);const m=BigInt(r)+i;return s(o.numberToHex(m),e)},w=(t,e=64)=>{d.validator.validate(["int"],[t]);const r=o.toNumber(t);if(r<0)return r;const i=Math.ceil(Math.log(Number(r))/Math.log(2));if(i>e*4)throw new f.NibbleWidthError(`value: "${t}", nibbleWidth: "${e}"`);if(e*4!==i)return r;const n=g.bigintPower(BigInt(2),BigInt(e)*BigInt(4));return o.toNumber(BigInt(r)-n)};exports.fromTwosComplement=w;exports.leftPad=l;exports.padLeft=s;exports.padRight=p;exports.rightPad=u;exports.toTwosComplement=q;
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { NibbleWidthError as d } from "../../../web3-errors/lib/esm/errors/utils_errors.js";
|
2
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import "../../../web3-validator/lib/esm/formats.js";
|
4
|
+
import { padLeft as s } from "../../../web3-validator/lib/esm/utils.js";
|
5
|
+
import { validator as p } from "../../../web3-validator/lib/esm/default_validator.js";
|
6
|
+
import { isHexStrict as e } from "../../../web3-validator/lib/esm/validation/string.js";
|
7
|
+
import "../../../web3-types/lib/esm/data_format_types.js";
|
8
|
+
import "../../../web3-types/lib/esm/eth_types.js";
|
9
|
+
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
10
|
+
import { bigintPower as g } from "../../../web3-validator/lib/esm/validation/numbers.js";
|
11
|
+
import { numberToHex as a, toNumber as m, toHex as B } from "./converters.js";
|
12
|
+
const f = (t, o, r = "0") => typeof t == "string" ? e(t) ? s(t, o, r) : t.padStart(o, r) : (p.validate(["int"], [t]), s(t, o, r)), w = (t, o, r = "0") => {
|
13
|
+
if (typeof t == "string" && !e(t))
|
14
|
+
return t.padEnd(o, r);
|
15
|
+
p.validate(["int"], [t]);
|
16
|
+
const i = typeof t == "string" && e(t) ? t : a(t), n = i.startsWith("-") ? 3 : 2;
|
17
|
+
return i.padEnd(o + n, r);
|
18
|
+
}, S = w, T = f, l = (t, o = 64) => {
|
19
|
+
p.validate(["int"], [t]);
|
20
|
+
const r = m(t);
|
21
|
+
if (r >= 0)
|
22
|
+
return f(B(r), o);
|
23
|
+
const i = g(BigInt(2), BigInt(o * 4));
|
24
|
+
if (-r >= i)
|
25
|
+
throw new d(`value: ${t}, nibbleWidth: ${o}`);
|
26
|
+
const c = BigInt(r) + i;
|
27
|
+
return f(a(c), o);
|
28
|
+
}, C = (t, o = 64) => {
|
29
|
+
p.validate(["int"], [t]);
|
30
|
+
const r = m(t);
|
31
|
+
if (r < 0)
|
32
|
+
return r;
|
33
|
+
const i = Math.ceil(Math.log(Number(r)) / Math.log(2));
|
34
|
+
if (i > o * 4)
|
35
|
+
throw new d(`value: "${t}", nibbleWidth: "${o}"`);
|
36
|
+
if (o * 4 !== i)
|
37
|
+
return r;
|
38
|
+
const n = g(BigInt(2), BigInt(o) * BigInt(4));
|
39
|
+
return m(BigInt(r) - n);
|
40
|
+
};
|
41
|
+
export {
|
42
|
+
C as fromTwosComplement,
|
43
|
+
T as leftPad,
|
44
|
+
f as padLeft,
|
45
|
+
w as padRight,
|
46
|
+
S as rightPad,
|
47
|
+
l as toTwosComplement
|
48
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(...t){const r=t.reduce((n,o)=>n+o.length,0),e=new Uint8Array(r);let u=0;for(const n of t)e.set(n,u),u+=n.length;return e}function f(t,r){if(t===r)return!0;if(t.byteLength!==r.byteLength)return!1;for(let e=0;e<t.byteLength;e+=1)if(t[e]!==r[e])return!1;return!0}exports.uint8ArrayConcat=i;exports.uint8ArrayEquals=f;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
function g(...t) {
|
2
|
+
const n = t.reduce((r, f) => r + f.length, 0), e = new Uint8Array(n);
|
3
|
+
let u = 0;
|
4
|
+
for (const r of t)
|
5
|
+
e.set(r, u), u += r.length;
|
6
|
+
return e;
|
7
|
+
}
|
8
|
+
function i(t, n) {
|
9
|
+
if (t === n)
|
10
|
+
return !0;
|
11
|
+
if (t.byteLength !== n.byteLength)
|
12
|
+
return !1;
|
13
|
+
for (let e = 0; e < t.byteLength; e += 1)
|
14
|
+
if (t[e] !== n[e])
|
15
|
+
return !1;
|
16
|
+
return !0;
|
17
|
+
}
|
18
|
+
export {
|
19
|
+
g as uint8ArrayConcat,
|
20
|
+
i as uint8ArrayEquals
|
21
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./converters.cjs"),e=require("./random.cjs"),n=()=>{const t=e.randomBytes(16);t[6]=t[6]&15|64,t[8]=t[8]&63|128;const s=r.bytesToHex(t);return[s.substring(2,10),s.substring(10,14),s.substring(14,18),s.substring(18,22),s.substring(22,34)].join("-")};exports.uuidV4=n;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { bytesToHex as r } from "./converters.js";
|
2
|
+
import { randomBytes as n } from "./random.js";
|
3
|
+
const u = () => {
|
4
|
+
const s = n(16);
|
5
|
+
s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128;
|
6
|
+
const t = r(s);
|
7
|
+
return [
|
8
|
+
t.substring(2, 10),
|
9
|
+
t.substring(10, 14),
|
10
|
+
t.substring(14, 18),
|
11
|
+
t.substring(18, 22),
|
12
|
+
t.substring(22, 34)
|
13
|
+
].join("-");
|
14
|
+
};
|
15
|
+
export {
|
16
|
+
u as uuidV4
|
17
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const B=require("../../../web3-errors/lib/esm/errors/utils_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const l=require("../../../web3-validator/lib/esm/validation/string.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");const m=require("../../../web3-validator/lib/esm/validation/address.cjs"),d=require("../../../web3-validator/lib/esm/validation/block.cjs"),i=require("../../../web3-validator/lib/esm/validation/bloom.cjs"),g=require("../../../web3-validator/lib/esm/validation/object.cjs"),a=require("../../../web3-validator/lib/esm/validation/topic.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");const r=require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");const I=l.isHexStrict,T=l.isHex,p=m.checkAddressCheckSum,h=m.isAddress,q=i.isBloom,f=i.isInBloom,S=i.isUserEthereumAddressInBloom,A=i.isContractAddressInBloom,E=a.isTopic,N=a.isTopicInBloom,C=(s,e)=>{const o=typeof s=="string"&&d.isBlockTag(s),t=typeof e=="string"&&d.isBlockTag(e);if(s===e||(s==="earliest"||s===0)&&(e==="earliest"||e===0))return 0;if(s==="earliest"&&e>0)return-1;if(e==="earliest"&&s>0)return 1;if(o&&t){const u={[r.BlockTags.EARLIEST]:1,[r.BlockTags.FINALIZED]:2,[r.BlockTags.SAFE]:3,[r.BlockTags.LATEST]:4,[r.BlockTags.PENDING]:5};return u[s]<u[e]?-1:1}if(o&&!t||!o&&t)throw new B.InvalidBlockError("Cannot compare blocktag with provided non-blocktag input.");const n=BigInt(s),c=BigInt(e);return n<c?-1:n===c?0:1},x=g.isNullish;exports.checkAddressCheckSum=p;exports.compareBlockNumbers=C;exports.isAddress=h;exports.isBloom=q;exports.isContractAddressInBloom=A;exports.isHex=T;exports.isHexStrict=I;exports.isInBloom=f;exports.isNullish=x;exports.isTopic=E;exports.isTopicInBloom=N;exports.isUserEthereumAddressInBloom=S;
|