@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,89 @@
|
|
1
|
+
import "../../../web3-core/lib/esm/web3_config.js";
|
2
|
+
import "../../../web3-core/lib/esm/web3_request_manager.js";
|
3
|
+
import "../../../web3-core/lib/esm/web3_subscription_manager.js";
|
4
|
+
import "../../../web3-core/lib/esm/web3_subscriptions.js";
|
5
|
+
import { Web3Context as y } from "../../../web3-core/lib/esm/web3_context.js";
|
6
|
+
import "../../../web3-core/lib/esm/web3_batch_request.js";
|
7
|
+
import { isSupportedProvider as c } from "../../../web3-core/lib/esm/utils.js";
|
8
|
+
import { InvalidMethodParamsError as u } from "../../../web3-errors/lib/esm/errors/generic_errors.js";
|
9
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
10
|
+
import { Iban as l } from "../../../web3-eth-iban/lib/esm/iban.js";
|
11
|
+
import "../../../web3-types/lib/esm/data_format_types.js";
|
12
|
+
import "../../../web3-types/lib/esm/eth_types.js";
|
13
|
+
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
14
|
+
import * as a from "../../../web3-utils/lib/esm/index.js";
|
15
|
+
import "../../../web3-validator/lib/esm/formats.js";
|
16
|
+
import "../../../web3-validator/lib/esm/default_validator.js";
|
17
|
+
import "../../../web3-core/lib/esm/web3_promi_event.js";
|
18
|
+
import "../../../setimmediate/setImmediate.js";
|
19
|
+
import { registeredSubscriptions as S, Web3Eth as b } from "../../../web3-eth/lib/esm/web3_eth.js";
|
20
|
+
import "../../../web3-eth-abi/lib/esm/coders/base/number.js";
|
21
|
+
import "../../../web3-eth/lib/esm/schemas.js";
|
22
|
+
import "../../../web3-eth/lib/esm/constants.js";
|
23
|
+
import "../../../web3-eth/lib/esm/rpc_method_wrappers.js";
|
24
|
+
import "../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.js";
|
25
|
+
import "../../../web3-eth/lib/esm/utils/transaction_builder.js";
|
26
|
+
import { Contract as E } from "../../../web3-eth-contract/lib/esm/contract.js";
|
27
|
+
import { registryAddresses as P } from "../../../web3-eth-ens/lib/esm/config.js";
|
28
|
+
import { ENS as h } from "../../../web3-eth-ens/lib/esm/ens.js";
|
29
|
+
import { Personal as g } from "../../../web3-eth-personal/lib/esm/personal.js";
|
30
|
+
import { Net as w } from "../../../web3-net/lib/esm/net.js";
|
31
|
+
import "../../../web3-net/lib/esm/rpc_method_wrappers.js";
|
32
|
+
import v from "./abi.js";
|
33
|
+
import { initAccountsForContext as N } from "./accounts.js";
|
34
|
+
import { Web3PkgInfo as W } from "./version.js";
|
35
|
+
import { isNullish as f } from "../../../web3-utils/lib/esm/validation.js";
|
36
|
+
class n extends y {
|
37
|
+
constructor(t) {
|
38
|
+
var s;
|
39
|
+
(f(t) || typeof t == "string" && t.trim() === "" || typeof t != "string" && !c(t) && !t.provider) && console.warn("NOTE: web3.js is running without provider. You need to pass a provider in order to interact with the network!");
|
40
|
+
let i = {};
|
41
|
+
typeof t == "string" || c(t) ? i.provider = t : t ? i = t : i = {}, i.registeredSubscriptions = Object.assign(Object.assign({}, S), (s = i.registeredSubscriptions) !== null && s !== void 0 ? s : {}), super(i);
|
42
|
+
const m = N(this);
|
43
|
+
this._wallet = m.wallet, this._accountProvider = m, this.utils = a;
|
44
|
+
const o = this;
|
45
|
+
class d extends E {
|
46
|
+
constructor(p, e, r) {
|
47
|
+
if (typeof e == "object" && typeof r == "object")
|
48
|
+
throw new u("Should not provide options at both 2nd and 3rd parameters");
|
49
|
+
if (f(e))
|
50
|
+
super(p, r, o.getContextObject());
|
51
|
+
else if (typeof e == "object")
|
52
|
+
super(p, e, o.getContextObject());
|
53
|
+
else if (typeof e == "string")
|
54
|
+
super(p, e, r ?? {}, o.getContextObject());
|
55
|
+
else
|
56
|
+
throw new u();
|
57
|
+
super.subscribeToContextEvents(o);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
const j = o.use(b);
|
61
|
+
this.eth = Object.assign(j, {
|
62
|
+
// ENS module
|
63
|
+
ens: o.use(h, P.main),
|
64
|
+
// Iban helpers
|
65
|
+
Iban: l,
|
66
|
+
net: o.use(w),
|
67
|
+
personal: o.use(g),
|
68
|
+
// Contract helper and module
|
69
|
+
Contract: d,
|
70
|
+
// ABI Helpers
|
71
|
+
abi: v,
|
72
|
+
// Accounts helper
|
73
|
+
accounts: m
|
74
|
+
});
|
75
|
+
}
|
76
|
+
}
|
77
|
+
n.version = W.version;
|
78
|
+
n.utils = a;
|
79
|
+
n.modules = {
|
80
|
+
Web3Eth: b,
|
81
|
+
Iban: l,
|
82
|
+
Net: w,
|
83
|
+
ENS: h,
|
84
|
+
Personal: g
|
85
|
+
};
|
86
|
+
export {
|
87
|
+
n as Web3,
|
88
|
+
n as default
|
89
|
+
};
|
@@ -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/web3_base_provider.cjs"),e=s=>o.Web3BaseProvider.isWeb3Provider(s),c=s=>typeof s!="string"&&"request"in s&&s.request.constructor.name==="AsyncFunction"&&"isMetaMask"in s&&s.isMetaMask,t=s=>typeof s!="string"&&"request"in s&&s.request.constructor.name==="Function",n=s=>typeof s!="string"&&"request"in s&&s.request.constructor.name==="AsyncFunction",i=s=>typeof s!="string"&&"send"in s,r=s=>typeof s!="string"&&"sendAsync"in s,u=s=>s&&(e(s)||n(s)||t(s)||r(s)||i(s)),a=s=>s&&"supportsSubscriptions"in s?s.supportsSubscriptions():!!(s&&typeof s!="string"&&"on"in s);exports.isEIP1193Provider=n;exports.isLegacyRequestProvider=t;exports.isLegacySendAsyncProvider=r;exports.isLegacySendProvider=i;exports.isMetaMaskProvider=c;exports.isSupportSubscriptions=a;exports.isSupportedProvider=u;exports.isWeb3Provider=e;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import "../../../web3-types/lib/esm/data_format_types.js";
|
2
|
+
import "../../../web3-types/lib/esm/eth_types.js";
|
3
|
+
import { Web3BaseProvider as t } from "../../../web3-types/lib/esm/web3_base_provider.js";
|
4
|
+
const n = (s) => t.isWeb3Provider(s), y = (s) => typeof s != "string" && "request" in s && s.request.constructor.name === "AsyncFunction" && "isMetaMask" in s && s.isMetaMask, e = (s) => typeof s != "string" && "request" in s && s.request.constructor.name === "Function", i = (s) => typeof s != "string" && "request" in s && s.request.constructor.name === "AsyncFunction", c = (s) => typeof s != "string" && "send" in s, o = (s) => typeof s != "string" && "sendAsync" in s, f = (s) => s && (n(s) || i(s) || e(s) || o(s) || c(s)), P = (s) => s && "supportsSubscriptions" in s ? s.supportsSubscriptions() : !!(s && typeof s != "string" && "on" in s);
|
5
|
+
export {
|
6
|
+
i as isEIP1193Provider,
|
7
|
+
e as isLegacyRequestProvider,
|
8
|
+
o as isLegacySendAsyncProvider,
|
9
|
+
c as isLegacySendProvider,
|
10
|
+
y as isMetaMaskProvider,
|
11
|
+
P as isSupportSubscriptions,
|
12
|
+
f as isSupportedProvider,
|
13
|
+
n as isWeb3Provider
|
14
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const q=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs"),_=require("../../../web3-errors/lib/esm/errors/response_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const p=require("../../../web3-utils/lib/esm/web3_deferred_promise.cjs"),l=require("../../../web3-utils/lib/esm/json_rpc.cjs");var f=globalThis&&globalThis.__awaiter||function(d,r,s,t){function o(i){return i instanceof s?i:new s(function(n){n(i)})}return new(s||(s=Promise))(function(i,n){function e(u){try{c(t.next(u))}catch(h){n(h)}}function a(u){try{c(t.throw(u))}catch(h){n(h)}}function c(u){u.done?i(u.value):o(u.value).then(e,a)}c((t=t.apply(d,r||[])).next())})};const m=1e3;class v{constructor(r){this._requestManager=r,this._requests=new Map}get requests(){return[...this._requests.values()].map(r=>r.payload)}add(r){const s=l.toPayload(r),t=new p.Web3DeferredPromise;return this._requests.set(s.id,{payload:s,promise:t}),t}execute(r){var s;return f(this,void 0,void 0,function*(){if(this.requests.length===0)return Promise.resolve([]);const t=new p.Web3DeferredPromise({timeout:(s=r==null?void 0:r.timeout)!==null&&s!==void 0?s:m,eagerStart:!0,timeoutMessage:"Batch request timeout"});return this._processBatchRequest(t).catch(o=>t.reject(o)),t.catch(o=>{o instanceof q.OperationTimeoutError&&this._abortAllRequests("Batch request timeout"),t.reject(o)}),t})}_processBatchRequest(r){var s,t;return f(this,void 0,void 0,function*(){const o=yield this._requestManager.sendBatch([...this._requests.values()].map(e=>e.payload));if(o.length!==this._requests.size)throw this._abortAllRequests("Invalid batch response"),new _.ResponseError(o,`Batch request size mismatch the results size. Requests: ${this._requests.size}, Responses: ${o.length}`);const i=this.requests.map(e=>e.id).map(Number).sort((e,a)=>e-a),n=o.map(e=>e.id).map(Number).sort((e,a)=>e-a);if(JSON.stringify(i)!==JSON.stringify(n))throw this._abortAllRequests("Invalid batch response"),new _.ResponseError(o,`Batch request mismatch the results. Requests: [${i.join()}], Responses: [${n.join()}]`);for(const e of o)l.isResponseWithResult(e)?(s=this._requests.get(e.id))===null||s===void 0||s.promise.resolve(e.result):l.isResponseWithError(e)&&((t=this._requests.get(e.id))===null||t===void 0||t.promise.reject(e.error));r.resolve(o)})}_abortAllRequests(r){for(const{promise:s}of this._requests.values())s.reject(new q.OperationAbortError(r))}}exports.DEFAULT_BATCH_REQUEST_TIMEOUT=m;exports.Web3BatchRequest=v;
|
@@ -0,0 +1,83 @@
|
|
1
|
+
import { OperationTimeoutError as f, OperationAbortError as q } from "../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
+
import { ResponseError as p } from "../../../web3-errors/lib/esm/errors/response_errors.js";
|
3
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
4
|
+
import { Web3DeferredPromise as m } from "../../../web3-utils/lib/esm/web3_deferred_promise.js";
|
5
|
+
import { toPayload as _, isResponseWithResult as v, isResponseWithError as R } from "../../../web3-utils/lib/esm/json_rpc.js";
|
6
|
+
var d = globalThis && globalThis.__awaiter || function(l, r, t, s) {
|
7
|
+
function o(i) {
|
8
|
+
return i instanceof t ? i : new t(function(n) {
|
9
|
+
n(i);
|
10
|
+
});
|
11
|
+
}
|
12
|
+
return new (t || (t = Promise))(function(i, n) {
|
13
|
+
function e(u) {
|
14
|
+
try {
|
15
|
+
c(s.next(u));
|
16
|
+
} catch (h) {
|
17
|
+
n(h);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
function a(u) {
|
21
|
+
try {
|
22
|
+
c(s.throw(u));
|
23
|
+
} catch (h) {
|
24
|
+
n(h);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
function c(u) {
|
28
|
+
u.done ? i(u.value) : o(u.value).then(e, a);
|
29
|
+
}
|
30
|
+
c((s = s.apply(l, r || [])).next());
|
31
|
+
});
|
32
|
+
};
|
33
|
+
const b = 1e3;
|
34
|
+
class T {
|
35
|
+
constructor(r) {
|
36
|
+
this._requestManager = r, this._requests = /* @__PURE__ */ new Map();
|
37
|
+
}
|
38
|
+
get requests() {
|
39
|
+
return [...this._requests.values()].map((r) => r.payload);
|
40
|
+
}
|
41
|
+
add(r) {
|
42
|
+
const t = _(r), s = new m();
|
43
|
+
return this._requests.set(t.id, { payload: t, promise: s }), s;
|
44
|
+
}
|
45
|
+
// eslint-disable-next-line class-methods-use-this
|
46
|
+
execute(r) {
|
47
|
+
var t;
|
48
|
+
return d(this, void 0, void 0, function* () {
|
49
|
+
if (this.requests.length === 0)
|
50
|
+
return Promise.resolve([]);
|
51
|
+
const s = new m({
|
52
|
+
timeout: (t = r == null ? void 0 : r.timeout) !== null && t !== void 0 ? t : b,
|
53
|
+
eagerStart: !0,
|
54
|
+
timeoutMessage: "Batch request timeout"
|
55
|
+
});
|
56
|
+
return this._processBatchRequest(s).catch((o) => s.reject(o)), s.catch((o) => {
|
57
|
+
o instanceof f && this._abortAllRequests("Batch request timeout"), s.reject(o);
|
58
|
+
}), s;
|
59
|
+
});
|
60
|
+
}
|
61
|
+
_processBatchRequest(r) {
|
62
|
+
var t, s;
|
63
|
+
return d(this, void 0, void 0, function* () {
|
64
|
+
const o = yield this._requestManager.sendBatch([...this._requests.values()].map((e) => e.payload));
|
65
|
+
if (o.length !== this._requests.size)
|
66
|
+
throw this._abortAllRequests("Invalid batch response"), new p(o, `Batch request size mismatch the results size. Requests: ${this._requests.size}, Responses: ${o.length}`);
|
67
|
+
const i = this.requests.map((e) => e.id).map(Number).sort((e, a) => e - a), n = o.map((e) => e.id).map(Number).sort((e, a) => e - a);
|
68
|
+
if (JSON.stringify(i) !== JSON.stringify(n))
|
69
|
+
throw this._abortAllRequests("Invalid batch response"), new p(o, `Batch request mismatch the results. Requests: [${i.join()}], Responses: [${n.join()}]`);
|
70
|
+
for (const e of o)
|
71
|
+
v(e) ? (t = this._requests.get(e.id)) === null || t === void 0 || t.promise.resolve(e.result) : R(e) && ((s = this._requests.get(e.id)) === null || s === void 0 || s.promise.reject(e.error));
|
72
|
+
r.resolve(o);
|
73
|
+
});
|
74
|
+
}
|
75
|
+
_abortAllRequests(r) {
|
76
|
+
for (const { promise: t } of this._requests.values())
|
77
|
+
t.reject(new q(r));
|
78
|
+
}
|
79
|
+
}
|
80
|
+
export {
|
81
|
+
b as DEFAULT_BATCH_REQUEST_TIMEOUT,
|
82
|
+
T as Web3BatchRequest
|
83
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../web3-errors/lib/esm/errors/core_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const r=require("./web3_event_emitter.cjs"),a=require("../../../web3-utils/lib/esm/converters.cjs"),n=require("../../../web3-utils/lib/esm/validation.cjs");exports.Web3ConfigEvent=void 0;(function(e){e.CONFIG_CHANGE="CONFIG_CHANGE"})(exports.Web3ConfigEvent||(exports.Web3ConfigEvent={}));class s extends r.Web3EventEmitter{constructor(t){super(),this.config={handleRevert:!1,defaultAccount:void 0,defaultBlock:"latest",transactionBlockTimeout:50,transactionConfirmationBlocks:24,transactionPollingInterval:1e3,transactionPollingTimeout:750*1e3,transactionReceiptPollingInterval:void 0,transactionSendTimeout:750*1e3,transactionConfirmationPollingInterval:void 0,blockHeaderTimeout:10,maxListenersWarningThreshold:100,contractDataInputFill:"input",defaultNetworkId:void 0,defaultChain:"mainnet",defaultHardfork:"london",defaultCommon:void 0,defaultTransactionType:"0x2",defaultMaxPriorityFeePerGas:a.toHex(25e8),enableExperimentalFeatures:{useSubscriptionWhenCheckingBlockTimeout:!1,useRpcCallSpecification:!1},transactionBuilder:void 0,transactionTypeParser:void 0},this.setConfig(t??{})}setConfig(t){Object.assign(this.config,t)}get handleRevert(){return this.config.handleRevert}set handleRevert(t){this._triggerConfigChange("handleRevert",t),this.config.handleRevert=t}get contractDataInputFill(){return this.config.contractDataInputFill}set contractDataInputFill(t){this._triggerConfigChange("contractDataInputFill",t),this.config.contractDataInputFill=t}get defaultAccount(){return this.config.defaultAccount}set defaultAccount(t){this._triggerConfigChange("defaultAccount",t),this.config.defaultAccount=t}get defaultBlock(){return this.config.defaultBlock}set defaultBlock(t){this._triggerConfigChange("defaultBlock",t),this.config.defaultBlock=t}get transactionSendTimeout(){return this.config.transactionSendTimeout}set transactionSendTimeout(t){this._triggerConfigChange("transactionSendTimeout",t),this.config.transactionSendTimeout=t}get transactionBlockTimeout(){return this.config.transactionBlockTimeout}set transactionBlockTimeout(t){this._triggerConfigChange("transactionBlockTimeout",t),this.config.transactionBlockTimeout=t}get transactionConfirmationBlocks(){return this.config.transactionConfirmationBlocks}set transactionConfirmationBlocks(t){this._triggerConfigChange("transactionConfirmationBlocks",t),this.config.transactionConfirmationBlocks=t}get transactionPollingInterval(){return this.config.transactionPollingInterval}set transactionPollingInterval(t){this._triggerConfigChange("transactionPollingInterval",t),this.config.transactionPollingInterval=t,this.transactionReceiptPollingInterval=t,this.transactionConfirmationPollingInterval=t}get transactionPollingTimeout(){return this.config.transactionPollingTimeout}set transactionPollingTimeout(t){this._triggerConfigChange("transactionPollingTimeout",t),this.config.transactionPollingTimeout=t}get transactionReceiptPollingInterval(){return this.config.transactionReceiptPollingInterval}set transactionReceiptPollingInterval(t){this._triggerConfigChange("transactionReceiptPollingInterval",t),this.config.transactionReceiptPollingInterval=t}get transactionConfirmationPollingInterval(){return this.config.transactionConfirmationPollingInterval}set transactionConfirmationPollingInterval(t){this._triggerConfigChange("transactionConfirmationPollingInterval",t),this.config.transactionConfirmationPollingInterval=t}get blockHeaderTimeout(){return this.config.blockHeaderTimeout}set blockHeaderTimeout(t){this._triggerConfigChange("blockHeaderTimeout",t),this.config.blockHeaderTimeout=t}get enableExperimentalFeatures(){return this.config.enableExperimentalFeatures}set enableExperimentalFeatures(t){this._triggerConfigChange("enableExperimentalFeatures",t),this.config.enableExperimentalFeatures=t}get maxListenersWarningThreshold(){return this.config.maxListenersWarningThreshold}set maxListenersWarningThreshold(t){this._triggerConfigChange("maxListenersWarningThreshold",t),this.setMaxListenerWarningThreshold(t),this.config.maxListenersWarningThreshold=t}get defaultNetworkId(){return this.config.defaultNetworkId}set defaultNetworkId(t){this._triggerConfigChange("defaultNetworkId",t),this.config.defaultNetworkId=t}get defaultChain(){return this.config.defaultChain}set defaultChain(t){if(!n.isNullish(this.config.defaultCommon)&&!n.isNullish(this.config.defaultCommon.baseChain)&&t!==this.config.defaultCommon.baseChain)throw new i.ConfigChainMismatchError(this.config.defaultChain,t);this._triggerConfigChange("defaultChain",t),this.config.defaultChain=t}get defaultHardfork(){return this.config.defaultHardfork}set defaultHardfork(t){if(!n.isNullish(this.config.defaultCommon)&&!n.isNullish(this.config.defaultCommon.hardfork)&&t!==this.config.defaultCommon.hardfork)throw new i.ConfigHardforkMismatchError(this.config.defaultCommon.hardfork,t);this._triggerConfigChange("defaultHardfork",t),this.config.defaultHardfork=t}get defaultCommon(){return this.config.defaultCommon}set defaultCommon(t){if(!n.isNullish(this.config.defaultHardfork)&&!n.isNullish(t)&&!n.isNullish(t.hardfork)&&this.config.defaultHardfork!==t.hardfork)throw new i.ConfigHardforkMismatchError(this.config.defaultHardfork,t.hardfork);if(!n.isNullish(this.config.defaultChain)&&!n.isNullish(t)&&!n.isNullish(t.baseChain)&&this.config.defaultChain!==t.baseChain)throw new i.ConfigChainMismatchError(this.config.defaultChain,t.baseChain);this._triggerConfigChange("defaultCommon",t),this.config.defaultCommon=t}get defaultTransactionType(){return this.config.defaultTransactionType}set defaultTransactionType(t){this._triggerConfigChange("defaultTransactionType",t),this.config.defaultTransactionType=t}get defaultMaxPriorityFeePerGas(){return this.config.defaultMaxPriorityFeePerGas}set defaultMaxPriorityFeePerGas(t){this._triggerConfigChange("defaultMaxPriorityFeePerGas",t),this.config.defaultMaxPriorityFeePerGas=t}get transactionBuilder(){return this.config.transactionBuilder}set transactionBuilder(t){this._triggerConfigChange("transactionBuilder",t),this.config.transactionBuilder=t}get transactionTypeParser(){return this.config.transactionTypeParser}set transactionTypeParser(t){this._triggerConfigChange("transactionTypeParser",t),this.config.transactionTypeParser=t}_triggerConfigChange(t,o){this.emit(exports.Web3ConfigEvent.CONFIG_CHANGE,{name:t,oldValue:this.config[t],newValue:o})}}exports.Web3Config=s;
|
@@ -0,0 +1,343 @@
|
|
1
|
+
import { ConfigChainMismatchError as o, ConfigHardforkMismatchError as a } from "../../../web3-errors/lib/esm/errors/core_errors.js";
|
2
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import { Web3EventEmitter as s } from "./web3_event_emitter.js";
|
4
|
+
import { toHex as g } from "../../../web3-utils/lib/esm/converters.js";
|
5
|
+
import { isNullish as n } from "../../../web3-utils/lib/esm/validation.js";
|
6
|
+
var i;
|
7
|
+
(function(e) {
|
8
|
+
e.CONFIG_CHANGE = "CONFIG_CHANGE";
|
9
|
+
})(i || (i = {}));
|
10
|
+
class d extends s {
|
11
|
+
constructor(t) {
|
12
|
+
super(), this.config = {
|
13
|
+
handleRevert: !1,
|
14
|
+
defaultAccount: void 0,
|
15
|
+
defaultBlock: "latest",
|
16
|
+
transactionBlockTimeout: 50,
|
17
|
+
transactionConfirmationBlocks: 24,
|
18
|
+
transactionPollingInterval: 1e3,
|
19
|
+
transactionPollingTimeout: 750 * 1e3,
|
20
|
+
transactionReceiptPollingInterval: void 0,
|
21
|
+
transactionSendTimeout: 750 * 1e3,
|
22
|
+
transactionConfirmationPollingInterval: void 0,
|
23
|
+
blockHeaderTimeout: 10,
|
24
|
+
maxListenersWarningThreshold: 100,
|
25
|
+
contractDataInputFill: "input",
|
26
|
+
defaultNetworkId: void 0,
|
27
|
+
defaultChain: "mainnet",
|
28
|
+
defaultHardfork: "london",
|
29
|
+
// TODO - Check if there is a default Common
|
30
|
+
defaultCommon: void 0,
|
31
|
+
defaultTransactionType: "0x2",
|
32
|
+
defaultMaxPriorityFeePerGas: g(25e8),
|
33
|
+
enableExperimentalFeatures: {
|
34
|
+
useSubscriptionWhenCheckingBlockTimeout: !1,
|
35
|
+
useRpcCallSpecification: !1
|
36
|
+
},
|
37
|
+
transactionBuilder: void 0,
|
38
|
+
transactionTypeParser: void 0
|
39
|
+
}, this.setConfig(t ?? {});
|
40
|
+
}
|
41
|
+
setConfig(t) {
|
42
|
+
Object.assign(this.config, t);
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* The `handleRevert` options property returns the revert reason string if enabled for the following methods:
|
46
|
+
* - web3.eth.sendTransaction()
|
47
|
+
* - web3.eth.call()
|
48
|
+
* - myContract.methods.myMethod().call()
|
49
|
+
* - myContract.methods.myMethod().send()
|
50
|
+
* Default is `false`.
|
51
|
+
*
|
52
|
+
* `Note`: At the moment `handleRevert` is only supported for `sendTransaction` and not for `sendSignedTransaction`
|
53
|
+
*/
|
54
|
+
get handleRevert() {
|
55
|
+
return this.config.handleRevert;
|
56
|
+
}
|
57
|
+
/**
|
58
|
+
* Will set the handleRevert
|
59
|
+
*/
|
60
|
+
set handleRevert(t) {
|
61
|
+
this._triggerConfigChange("handleRevert", t), this.config.handleRevert = t;
|
62
|
+
}
|
63
|
+
/**
|
64
|
+
* The `contractDataInputFill` options property will allow you to set the hash of the method signature and encoded parameters to the property
|
65
|
+
* either `data`, `input` or both within your contract.
|
66
|
+
* This will affect the contracts send, call and estimateGas methods
|
67
|
+
* Default is `input`.
|
68
|
+
*/
|
69
|
+
get contractDataInputFill() {
|
70
|
+
return this.config.contractDataInputFill;
|
71
|
+
}
|
72
|
+
/**
|
73
|
+
* Will set the contractDataInputFill
|
74
|
+
*/
|
75
|
+
set contractDataInputFill(t) {
|
76
|
+
this._triggerConfigChange("contractDataInputFill", t), this.config.contractDataInputFill = t;
|
77
|
+
}
|
78
|
+
/**
|
79
|
+
* This default address is used as the default `from` property, if no `from` property is specified in for the following methods:
|
80
|
+
* - web3.eth.sendTransaction()
|
81
|
+
* - web3.eth.call()
|
82
|
+
* - myContract.methods.myMethod().call()
|
83
|
+
* - myContract.methods.myMethod().send()
|
84
|
+
*/
|
85
|
+
get defaultAccount() {
|
86
|
+
return this.config.defaultAccount;
|
87
|
+
}
|
88
|
+
/**
|
89
|
+
* Will set the default account.
|
90
|
+
*/
|
91
|
+
set defaultAccount(t) {
|
92
|
+
this._triggerConfigChange("defaultAccount", t), this.config.defaultAccount = t;
|
93
|
+
}
|
94
|
+
/**
|
95
|
+
* The default block is used for certain methods. You can override it by passing in the defaultBlock as last parameter. The default value is `"latest"`.
|
96
|
+
* - web3.eth.getBalance()
|
97
|
+
* - web3.eth.getCode()
|
98
|
+
* - web3.eth.getTransactionCount()
|
99
|
+
* - web3.eth.getStorageAt()
|
100
|
+
* - web3.eth.call()
|
101
|
+
* - myContract.methods.myMethod().call()
|
102
|
+
*/
|
103
|
+
get defaultBlock() {
|
104
|
+
return this.config.defaultBlock;
|
105
|
+
}
|
106
|
+
/**
|
107
|
+
* Will set the default block.
|
108
|
+
*
|
109
|
+
* - A block number
|
110
|
+
* - `"earliest"` - String: The genesis block
|
111
|
+
* - `"latest"` - String: The latest block (current head of the blockchain)
|
112
|
+
* - `"pending"` - String: The currently mined block (including pending transactions)
|
113
|
+
* - `"finalized"` - String: (For POS networks) The finalized block is one which has been accepted as canonical by greater than 2/3 of validators
|
114
|
+
* - `"safe"` - String: (For POS networks) The safe head block is one which under normal network conditions, is expected to be included in the canonical chain. Under normal network conditions the safe head and the actual tip of the chain will be equivalent (with safe head trailing only by a few seconds). Safe heads will be less likely to be reorged than the proof of work network`s latest blocks.
|
115
|
+
*/
|
116
|
+
set defaultBlock(t) {
|
117
|
+
this._triggerConfigChange("defaultBlock", t), this.config.defaultBlock = t;
|
118
|
+
}
|
119
|
+
/**
|
120
|
+
* The time used to wait for Ethereum Node to return the sent transaction result.
|
121
|
+
* Note: If the RPC call stuck at the Node and therefor timed-out, the transaction may still be pending or even mined by the Network. We recommend checking the pending transactions in such a case.
|
122
|
+
* Default is `750` seconds (12.5 minutes).
|
123
|
+
*/
|
124
|
+
get transactionSendTimeout() {
|
125
|
+
return this.config.transactionSendTimeout;
|
126
|
+
}
|
127
|
+
/**
|
128
|
+
* Will set the transactionSendTimeout.
|
129
|
+
*/
|
130
|
+
set transactionSendTimeout(t) {
|
131
|
+
this._triggerConfigChange("transactionSendTimeout", t), this.config.transactionSendTimeout = t;
|
132
|
+
}
|
133
|
+
/**
|
134
|
+
* The `transactionBlockTimeout` is used over socket-based connections. This option defines the amount of new blocks it should wait until the first confirmation happens, otherwise the PromiEvent rejects with a timeout error.
|
135
|
+
* Default is `50`.
|
136
|
+
*/
|
137
|
+
get transactionBlockTimeout() {
|
138
|
+
return this.config.transactionBlockTimeout;
|
139
|
+
}
|
140
|
+
/**
|
141
|
+
* Will set the transactionBlockTimeout.
|
142
|
+
*/
|
143
|
+
set transactionBlockTimeout(t) {
|
144
|
+
this._triggerConfigChange("transactionBlockTimeout", t), this.config.transactionBlockTimeout = t;
|
145
|
+
}
|
146
|
+
/**
|
147
|
+
* This defines the number of blocks it requires until a transaction is considered confirmed.
|
148
|
+
* Default is `24`.
|
149
|
+
*/
|
150
|
+
get transactionConfirmationBlocks() {
|
151
|
+
return this.config.transactionConfirmationBlocks;
|
152
|
+
}
|
153
|
+
/**
|
154
|
+
* Will set the transactionConfirmationBlocks.
|
155
|
+
*/
|
156
|
+
set transactionConfirmationBlocks(t) {
|
157
|
+
this._triggerConfigChange("transactionConfirmationBlocks", t), this.config.transactionConfirmationBlocks = t;
|
158
|
+
}
|
159
|
+
/**
|
160
|
+
* Used over HTTP connections. This option defines the number of seconds between Web3 calls for a receipt which confirms that a transaction was mined by the network.
|
161
|
+
* Default is `1000` ms.
|
162
|
+
*/
|
163
|
+
get transactionPollingInterval() {
|
164
|
+
return this.config.transactionPollingInterval;
|
165
|
+
}
|
166
|
+
/**
|
167
|
+
* Will set the transactionPollingInterval.
|
168
|
+
*/
|
169
|
+
set transactionPollingInterval(t) {
|
170
|
+
this._triggerConfigChange("transactionPollingInterval", t), this.config.transactionPollingInterval = t, this.transactionReceiptPollingInterval = t, this.transactionConfirmationPollingInterval = t;
|
171
|
+
}
|
172
|
+
/**
|
173
|
+
* Used over HTTP connections. This option defines the number of seconds Web3 will wait for a receipt which confirms that a transaction was mined by the network. Note: If this method times out, the transaction may still be pending.
|
174
|
+
* Default is `750` seconds (12.5 minutes).
|
175
|
+
*/
|
176
|
+
get transactionPollingTimeout() {
|
177
|
+
return this.config.transactionPollingTimeout;
|
178
|
+
}
|
179
|
+
/**
|
180
|
+
* Will set the transactionPollingTimeout.
|
181
|
+
*/
|
182
|
+
set transactionPollingTimeout(t) {
|
183
|
+
this._triggerConfigChange("transactionPollingTimeout", t), this.config.transactionPollingTimeout = t;
|
184
|
+
}
|
185
|
+
/**
|
186
|
+
* The `transactionPollingInterval` is used over HTTP connections. This option defines the number of seconds between Web3 calls for a receipt which confirms that a transaction was mined by the network.
|
187
|
+
* Default is `undefined`
|
188
|
+
*/
|
189
|
+
get transactionReceiptPollingInterval() {
|
190
|
+
return this.config.transactionReceiptPollingInterval;
|
191
|
+
}
|
192
|
+
/**
|
193
|
+
* Will set the transactionReceiptPollingInterval
|
194
|
+
*/
|
195
|
+
set transactionReceiptPollingInterval(t) {
|
196
|
+
this._triggerConfigChange("transactionReceiptPollingInterval", t), this.config.transactionReceiptPollingInterval = t;
|
197
|
+
}
|
198
|
+
get transactionConfirmationPollingInterval() {
|
199
|
+
return this.config.transactionConfirmationPollingInterval;
|
200
|
+
}
|
201
|
+
set transactionConfirmationPollingInterval(t) {
|
202
|
+
this._triggerConfigChange("transactionConfirmationPollingInterval", t), this.config.transactionConfirmationPollingInterval = t;
|
203
|
+
}
|
204
|
+
/**
|
205
|
+
* The blockHeaderTimeout is used over socket-based connections. This option defines the amount seconds it should wait for `'newBlockHeaders'` event before falling back to polling to fetch transaction receipt.
|
206
|
+
* Default is `10` seconds.
|
207
|
+
*/
|
208
|
+
get blockHeaderTimeout() {
|
209
|
+
return this.config.blockHeaderTimeout;
|
210
|
+
}
|
211
|
+
/**
|
212
|
+
* Will set the blockHeaderTimeout
|
213
|
+
*/
|
214
|
+
set blockHeaderTimeout(t) {
|
215
|
+
this._triggerConfigChange("blockHeaderTimeout", t), this.config.blockHeaderTimeout = t;
|
216
|
+
}
|
217
|
+
/**
|
218
|
+
* The enableExperimentalFeatures is used to enable trying new experimental features that are still not fully implemented or not fully tested or still have some related issues.
|
219
|
+
* Default is `false` for every feature.
|
220
|
+
*/
|
221
|
+
get enableExperimentalFeatures() {
|
222
|
+
return this.config.enableExperimentalFeatures;
|
223
|
+
}
|
224
|
+
/**
|
225
|
+
* Will set the enableExperimentalFeatures
|
226
|
+
*/
|
227
|
+
set enableExperimentalFeatures(t) {
|
228
|
+
this._triggerConfigChange("enableExperimentalFeatures", t), this.config.enableExperimentalFeatures = t;
|
229
|
+
}
|
230
|
+
get maxListenersWarningThreshold() {
|
231
|
+
return this.config.maxListenersWarningThreshold;
|
232
|
+
}
|
233
|
+
set maxListenersWarningThreshold(t) {
|
234
|
+
this._triggerConfigChange("maxListenersWarningThreshold", t), this.setMaxListenerWarningThreshold(t), this.config.maxListenersWarningThreshold = t;
|
235
|
+
}
|
236
|
+
get defaultNetworkId() {
|
237
|
+
return this.config.defaultNetworkId;
|
238
|
+
}
|
239
|
+
set defaultNetworkId(t) {
|
240
|
+
this._triggerConfigChange("defaultNetworkId", t), this.config.defaultNetworkId = t;
|
241
|
+
}
|
242
|
+
get defaultChain() {
|
243
|
+
return this.config.defaultChain;
|
244
|
+
}
|
245
|
+
set defaultChain(t) {
|
246
|
+
if (!n(this.config.defaultCommon) && !n(this.config.defaultCommon.baseChain) && t !== this.config.defaultCommon.baseChain)
|
247
|
+
throw new o(this.config.defaultChain, t);
|
248
|
+
this._triggerConfigChange("defaultChain", t), this.config.defaultChain = t;
|
249
|
+
}
|
250
|
+
/**
|
251
|
+
* Will return the default hardfork. Default is `london`
|
252
|
+
* The default hardfork property can be one of the following:
|
253
|
+
* - `chainstart`
|
254
|
+
* - `homestead`
|
255
|
+
* - `dao`
|
256
|
+
* - `tangerineWhistle`
|
257
|
+
* - `spuriousDragon`
|
258
|
+
* - `byzantium`
|
259
|
+
* - `constantinople`
|
260
|
+
* - `petersburg`
|
261
|
+
* - `istanbul`
|
262
|
+
* - `berlin`
|
263
|
+
* - `london`
|
264
|
+
* - 'arrowGlacier',
|
265
|
+
* - 'tangerineWhistle',
|
266
|
+
* - 'muirGlacier'
|
267
|
+
*
|
268
|
+
*/
|
269
|
+
get defaultHardfork() {
|
270
|
+
return this.config.defaultHardfork;
|
271
|
+
}
|
272
|
+
/**
|
273
|
+
* Will set the default hardfork.
|
274
|
+
*
|
275
|
+
*/
|
276
|
+
set defaultHardfork(t) {
|
277
|
+
if (!n(this.config.defaultCommon) && !n(this.config.defaultCommon.hardfork) && t !== this.config.defaultCommon.hardfork)
|
278
|
+
throw new a(this.config.defaultCommon.hardfork, t);
|
279
|
+
this._triggerConfigChange("defaultHardfork", t), this.config.defaultHardfork = t;
|
280
|
+
}
|
281
|
+
/**
|
282
|
+
*
|
283
|
+
* Will get the default common property
|
284
|
+
* The default common property does contain the following Common object:
|
285
|
+
* - `customChain` - `Object`: The custom chain properties
|
286
|
+
* - `name` - `string`: (optional) The name of the chain
|
287
|
+
* - `networkId` - `number`: Network ID of the custom chain
|
288
|
+
* - `chainId` - `number`: Chain ID of the custom chain
|
289
|
+
* - `baseChain` - `string`: (optional) mainnet, goerli, kovan, rinkeby, or ropsten
|
290
|
+
* - `hardfork` - `string`: (optional) chainstart, homestead, dao, tangerineWhistle, spuriousDragon, byzantium, constantinople, petersburg, istanbul, berlin, or london
|
291
|
+
* Default is `undefined`.
|
292
|
+
*
|
293
|
+
*/
|
294
|
+
get defaultCommon() {
|
295
|
+
return this.config.defaultCommon;
|
296
|
+
}
|
297
|
+
/**
|
298
|
+
* Will set the default common property
|
299
|
+
*
|
300
|
+
*/
|
301
|
+
set defaultCommon(t) {
|
302
|
+
if (!n(this.config.defaultHardfork) && !n(t) && !n(t.hardfork) && this.config.defaultHardfork !== t.hardfork)
|
303
|
+
throw new a(this.config.defaultHardfork, t.hardfork);
|
304
|
+
if (!n(this.config.defaultChain) && !n(t) && !n(t.baseChain) && this.config.defaultChain !== t.baseChain)
|
305
|
+
throw new o(this.config.defaultChain, t.baseChain);
|
306
|
+
this._triggerConfigChange("defaultCommon", t), this.config.defaultCommon = t;
|
307
|
+
}
|
308
|
+
get defaultTransactionType() {
|
309
|
+
return this.config.defaultTransactionType;
|
310
|
+
}
|
311
|
+
set defaultTransactionType(t) {
|
312
|
+
this._triggerConfigChange("defaultTransactionType", t), this.config.defaultTransactionType = t;
|
313
|
+
}
|
314
|
+
get defaultMaxPriorityFeePerGas() {
|
315
|
+
return this.config.defaultMaxPriorityFeePerGas;
|
316
|
+
}
|
317
|
+
set defaultMaxPriorityFeePerGas(t) {
|
318
|
+
this._triggerConfigChange("defaultMaxPriorityFeePerGas", t), this.config.defaultMaxPriorityFeePerGas = t;
|
319
|
+
}
|
320
|
+
get transactionBuilder() {
|
321
|
+
return this.config.transactionBuilder;
|
322
|
+
}
|
323
|
+
set transactionBuilder(t) {
|
324
|
+
this._triggerConfigChange("transactionBuilder", t), this.config.transactionBuilder = t;
|
325
|
+
}
|
326
|
+
get transactionTypeParser() {
|
327
|
+
return this.config.transactionTypeParser;
|
328
|
+
}
|
329
|
+
set transactionTypeParser(t) {
|
330
|
+
this._triggerConfigChange("transactionTypeParser", t), this.config.transactionTypeParser = t;
|
331
|
+
}
|
332
|
+
_triggerConfigChange(t, r) {
|
333
|
+
this.emit(i.CONFIG_CHANGE, {
|
334
|
+
name: t,
|
335
|
+
oldValue: this.config[t],
|
336
|
+
newValue: r
|
337
|
+
});
|
338
|
+
}
|
339
|
+
}
|
340
|
+
export {
|
341
|
+
d as Web3Config,
|
342
|
+
i as Web3ConfigEvent
|
343
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const f=require("./utils.cjs"),l=require("./web3_config.cjs"),g=require("./web3_request_manager.cjs"),p=require("./web3_subscription_manager.cjs"),_=require("./web3_batch_request.cjs"),M=require("../../../web3-utils/lib/esm/validation.cjs");var q=globalThis&&globalThis.__awaiter||function(v,e,r,i){function s(t){return t instanceof r?t:new r(function(n){n(t)})}return new(r||(r=Promise))(function(t,n){function u(a){try{o(i.next(a))}catch(d){n(d)}}function c(a){try{o(i.throw(a))}catch(d){n(d)}}function o(a){a.done?t(a.value):s(a.value).then(u,c)}o((i=i.apply(v,e||[])).next())})};class h extends l.Web3Config{constructor(e){var r;if(super(),this.providers=g.Web3RequestManager.providers,M.isNullish(e)||typeof e=="string"&&e.trim()!==""||f.isSupportedProvider(e)){this._requestManager=new g.Web3RequestManager(e),this._subscriptionManager=new p.Web3SubscriptionManager(this._requestManager,{});return}const{config:i,provider:s,requestManager:t,subscriptionManager:n,registeredSubscriptions:u,accountProvider:c,wallet:o}=e;this.setConfig(i??{}),this._requestManager=t??new g.Web3RequestManager(s,(r=i==null?void 0:i.enableExperimentalFeatures)===null||r===void 0?void 0:r.useSubscriptionWhenCheckingBlockTimeout),n?this._subscriptionManager=n:this._subscriptionManager=new p.Web3SubscriptionManager(this.requestManager,u??{}),c&&(this._accountProvider=c),o&&(this._wallet=o)}get requestManager(){return this._requestManager}get subscriptionManager(){return this._subscriptionManager}get wallet(){return this._wallet}get accountProvider(){return this._accountProvider}static fromContextObject(...e){return new this(...e.reverse())}getContextObject(){var e;return{config:this.config,provider:this.provider,requestManager:this.requestManager,subscriptionManager:this.subscriptionManager,registeredSubscriptions:(e=this.subscriptionManager)===null||e===void 0?void 0:e.registeredSubscriptions,providers:this.providers,wallet:this.wallet,accountProvider:this.accountProvider}}use(e,...r){const i=new e(...r,this.getContextObject());return this.on(l.Web3ConfigEvent.CONFIG_CHANGE,s=>{i.setConfig({[s.name]:s.newValue})}),i}link(e){this.setConfig(e.config),this._requestManager=e.requestManager,this.provider=e.provider,this._subscriptionManager=e.subscriptionManager,this._wallet=e.wallet,this._accountProvider=e._accountProvider,e.on(l.Web3ConfigEvent.CONFIG_CHANGE,r=>{this.setConfig({[r.name]:r.newValue})})}registerPlugin(e){if(this[e.pluginNamespace]!==void 0)throw new b.ExistingPluginNamespaceError(e.pluginNamespace);const r={[e.pluginNamespace]:e};r[e.pluginNamespace].link(this),Object.assign(this,r)}get provider(){return this.currentProvider}set provider(e){this.requestManager.setProvider(e)}get currentProvider(){return this.requestManager.provider}set currentProvider(e){this.requestManager.setProvider(e)}get givenProvider(){return h.givenProvider}setProvider(e){return this.provider=e,!0}get BatchRequest(){return _.Web3BatchRequest.bind(void 0,this._requestManager)}extend(e){var r;return e.property&&!this[e.property]&&(this[e.property]={}),(r=e.methods)===null||r===void 0||r.forEach(i=>{const s=(...t)=>q(this,void 0,void 0,function*(){return this.requestManager.send({method:i.call,params:t})});e.property?this[e.property][i.name]=s:this[i.name]=s}),this}}h.providers=g.Web3RequestManager.providers;exports.Web3Context=h;
|