@ozdao/prometheus-framework 0.1.63 → 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/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -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/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +65 -67
- 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/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.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 +2 -2
- 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/constructor/components/elements/Textarea.vue.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -61
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +61 -2
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.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 +2 -2
- 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/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.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/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.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 +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.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 +2 -2
- 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/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.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 +2 -2
- 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/CardPosition.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardPosition.vue.js +1 -1
- 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/LeftoverAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/LeftoverAdd.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 +2 -2
- 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 +2 -2
- 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 +4123 -3405
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/src/modules/auth/components/pages/SignIn.vue +2 -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,143 @@
|
|
1
|
+
import { ETH_DATA_FORMAT as E } from "../../../../web3-types/lib/esm/data_format_types.js";
|
2
|
+
import "../../../../web3-types/lib/esm/eth_types.js";
|
3
|
+
import "../../../../web3-types/lib/esm/web3_base_provider.js";
|
4
|
+
import { ContractExecutionError as m } from "../../../../web3-errors/lib/esm/errors/contract_errors.js";
|
5
|
+
import { TransactionRevertWithCustomError as g, TransactionRevertedWithoutReasonError as b, TransactionRevertInstructionError as C } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
6
|
+
import { InvalidResponseError as w } from "../../../../web3-errors/lib/esm/errors/response_errors.js";
|
7
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
8
|
+
import "../../../../web3-validator/lib/esm/formats.js";
|
9
|
+
import "../../../../web3-validator/lib/esm/default_validator.js";
|
10
|
+
import { isNullish as v } from "../../../../web3-validator/lib/esm/validation/object.js";
|
11
|
+
import { sendRawTransaction as T, sendTransaction as R } from "../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
|
12
|
+
import "../../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
|
13
|
+
import "../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
|
14
|
+
import { getTransactionGasPricing as x } from "./get_transaction_gas_pricing.js";
|
15
|
+
import { trySendTransaction as u } from "./try_send_transaction.js";
|
16
|
+
import { watchTransactionForConfirmations as _ } from "./watch_transaction_for_confirmations.js";
|
17
|
+
import { ALL_EVENTS_ABI as A } from "../constants.js";
|
18
|
+
import { getTransactionError as f } from "./get_transaction_error.js";
|
19
|
+
import { getRevertReason as y } from "./get_revert_reason.js";
|
20
|
+
import { decodeEventABI as S } from "./decoding.js";
|
21
|
+
var a = globalThis && globalThis.__awaiter || function(d, t, n, e) {
|
22
|
+
function i(o) {
|
23
|
+
return o instanceof n ? o : new n(function(r) {
|
24
|
+
r(o);
|
25
|
+
});
|
26
|
+
}
|
27
|
+
return new (n || (n = Promise))(function(o, r) {
|
28
|
+
function p(s) {
|
29
|
+
try {
|
30
|
+
c(e.next(s));
|
31
|
+
} catch (h) {
|
32
|
+
r(h);
|
33
|
+
}
|
34
|
+
}
|
35
|
+
function l(s) {
|
36
|
+
try {
|
37
|
+
c(e.throw(s));
|
38
|
+
} catch (h) {
|
39
|
+
r(h);
|
40
|
+
}
|
41
|
+
}
|
42
|
+
function c(s) {
|
43
|
+
s.done ? o(s.value) : i(s.value).then(p, l);
|
44
|
+
}
|
45
|
+
c((e = e.apply(d, t || [])).next());
|
46
|
+
});
|
47
|
+
};
|
48
|
+
class U {
|
49
|
+
constructor({ options: t, web3Context: n, promiEvent: e, returnFormat: i }) {
|
50
|
+
this.options = {
|
51
|
+
checkRevertBeforeSending: !0
|
52
|
+
}, this.options = t, this.web3Context = n, this.promiEvent = e, this.returnFormat = i;
|
53
|
+
}
|
54
|
+
getReceiptWithEvents(t) {
|
55
|
+
var n, e;
|
56
|
+
const i = Object.assign({}, t ?? {});
|
57
|
+
if (!((n = this.options) === null || n === void 0) && n.contractAbi && i.logs && i.logs.length > 0) {
|
58
|
+
i.events = {};
|
59
|
+
for (const o of i.logs) {
|
60
|
+
const r = S(A, o, (e = this.options) === null || e === void 0 ? void 0 : e.contractAbi, this.returnFormat);
|
61
|
+
r.event && (i.events[r.event] = r);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
return i;
|
65
|
+
}
|
66
|
+
checkRevertBeforeSending(t) {
|
67
|
+
return a(this, void 0, void 0, function* () {
|
68
|
+
if (this.options.checkRevertBeforeSending !== !1) {
|
69
|
+
const n = yield y(this.web3Context, t, this.options.contractAbi);
|
70
|
+
if (n !== void 0)
|
71
|
+
throw yield f(this.web3Context, t, void 0, void 0, this.options.contractAbi, n);
|
72
|
+
}
|
73
|
+
});
|
74
|
+
}
|
75
|
+
emitSending(t) {
|
76
|
+
this.promiEvent.listenerCount("sending") > 0 && this.promiEvent.emit("sending", t);
|
77
|
+
}
|
78
|
+
populateGasPrice({ transactionFormatted: t, transaction: n }) {
|
79
|
+
var e;
|
80
|
+
return a(this, void 0, void 0, function* () {
|
81
|
+
let i = t;
|
82
|
+
return !(!((e = this.options) === null || e === void 0) && e.ignoreGasPricing) && v(t.gasPrice) && (v(n.maxPriorityFeePerGas) || v(n.maxFeePerGas)) && (i = Object.assign(Object.assign({}, t), yield x(t, this.web3Context, E))), i;
|
83
|
+
});
|
84
|
+
}
|
85
|
+
signAndSend({ wallet: t, tx: n }) {
|
86
|
+
return a(this, void 0, void 0, function* () {
|
87
|
+
if (t) {
|
88
|
+
const e = yield t.signTransaction(n);
|
89
|
+
return u(this.web3Context, () => a(this, void 0, void 0, function* () {
|
90
|
+
return T(this.web3Context.requestManager, e.rawTransaction);
|
91
|
+
}), e.transactionHash);
|
92
|
+
}
|
93
|
+
return u(this.web3Context, () => a(this, void 0, void 0, function* () {
|
94
|
+
return R(this.web3Context.requestManager, n);
|
95
|
+
}));
|
96
|
+
});
|
97
|
+
}
|
98
|
+
emitSent(t) {
|
99
|
+
this.promiEvent.listenerCount("sent") > 0 && this.promiEvent.emit("sent", t);
|
100
|
+
}
|
101
|
+
emitTransactionHash(t) {
|
102
|
+
this.promiEvent.listenerCount("transactionHash") > 0 && this.promiEvent.emit("transactionHash", t);
|
103
|
+
}
|
104
|
+
emitReceipt(t) {
|
105
|
+
this.promiEvent.listenerCount("receipt") > 0 && this.promiEvent.emit(
|
106
|
+
"receipt",
|
107
|
+
// @ts-expect-error unknown type fix
|
108
|
+
t
|
109
|
+
);
|
110
|
+
}
|
111
|
+
handleError({ error: t, tx: n }) {
|
112
|
+
var e;
|
113
|
+
return a(this, void 0, void 0, function* () {
|
114
|
+
let i = t;
|
115
|
+
return i instanceof m && this.web3Context.handleRevert && (i = yield f(this.web3Context, n, void 0, void 0, (e = this.options) === null || e === void 0 ? void 0 : e.contractAbi)), (i instanceof w || i instanceof m || i instanceof g || i instanceof b || i instanceof C) && this.promiEvent.listenerCount("error") > 0 && this.promiEvent.emit("error", i), i;
|
116
|
+
});
|
117
|
+
}
|
118
|
+
emitConfirmation({ receipt: t, transactionHash: n }) {
|
119
|
+
this.promiEvent.listenerCount("confirmation") > 0 && _(this.web3Context, this.promiEvent, t, n, this.returnFormat);
|
120
|
+
}
|
121
|
+
handleResolve({ receipt: t, tx: n }) {
|
122
|
+
var e, i, o;
|
123
|
+
return a(this, void 0, void 0, function* () {
|
124
|
+
if (!((e = this.options) === null || e === void 0) && e.transactionResolver)
|
125
|
+
return (i = this.options) === null || i === void 0 ? void 0 : i.transactionResolver(t);
|
126
|
+
if (t.status === BigInt(0)) {
|
127
|
+
const r = yield f(
|
128
|
+
this.web3Context,
|
129
|
+
n,
|
130
|
+
// @ts-expect-error unknown type fix
|
131
|
+
t,
|
132
|
+
void 0,
|
133
|
+
(o = this.options) === null || o === void 0 ? void 0 : o.contractAbi
|
134
|
+
);
|
135
|
+
throw this.promiEvent.listenerCount("error") > 0 && this.promiEvent.emit("error", r), r;
|
136
|
+
} else
|
137
|
+
return t;
|
138
|
+
});
|
139
|
+
}
|
140
|
+
}
|
141
|
+
export {
|
142
|
+
U as SendTxHelper
|
143
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");require("../../../../web3-eth-accounts/lib/esm/wallet.cjs");const v=require("../../../../web3-eth-accounts/lib/esm/account.cjs");require("../../../../crc-32/crc32.cjs");require("../../../../web3-eth-accounts/lib/esm/common/types.cjs");const l=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");const y=require("../../../../web3-validator/lib/esm/validation/string.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");const p=require("../../../../web3-validator/lib/esm/validation/address.cjs"),O=require("../../../../web3-validator/lib/esm/validation/numbers.cjs"),n=require("../../../../web3-validator/lib/esm/validation/object.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/constants.cjs");require("../../../../web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs");require("../../../../@ethereumjs/rlp/dist/index.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/types.cjs");require("../../../../web3-net/lib/esm/net.cjs");const x=require("../../../../web3-net/lib/esm/rpc_method_wrappers.cjs"),C=require("../constants.cjs"),m=require("../rpc_method_wrappers.cjs"),E=require("./detect_transaction_type.cjs"),R=require("../schemas.cjs"),I=require("./get_transaction_gas_pricing.cjs"),d=require("../../../../web3-utils/lib/esm/formatter.cjs"),A=require("../../../../web3-utils/lib/esm/converters.cjs");var _=globalThis&&globalThis.__awaiter||function(i,r,t,e){function a(u){return u instanceof t?u:new t(function(c){c(u)})}return new(t||(t=Promise))(function(u,c){function f(o){try{T(e.next(o))}catch(h){c(h)}}function b(o){try{T(e.throw(o))}catch(h){c(h)}}function T(o){o.done?u(o.value):a(o.value).then(f,b)}T((e=e.apply(i,r||[])).next())})};const g=(i,r,t,e)=>{if(t!==void 0&&i in t&&t[i]!==void 0){if(typeof t[i]=="string"&&p.isAddress(t[i]))return t[i];if(!y.isHexStrict(t[i])&&O.isNumber(t[i])){if(r.wallet){const a=r.wallet.get(d.format({format:"uint"},t[i],C.NUMBER_DATA_FORMAT));if(!n.isNullish(a))return a.address;throw new l.LocalWalletNotAvailableError}throw new l.LocalWalletNotAvailableError}else throw i==="from"?new l.InvalidTransactionWithSender(t.from):new l.InvalidTransactionWithReceiver(t.to)}if(i==="from"){if(!n.isNullish(e))return v.privateKeyToAddress(e);if(!n.isNullish(r.defaultAccount))return r.defaultAccount}},N=(i,r,t=s.DEFAULT_RETURN_FORMAT)=>_(void 0,void 0,void 0,function*(){if(n.isNullish(r))throw new l.UnableToPopulateNonceError;return m.getTransactionCount(i,r,i.defaultBlock,t)}),w=(i,r)=>{const t=E.detectTransactionType(i,r);if(!n.isNullish(t))return t;if(!n.isNullish(r.defaultTransactionType))return d.format({format:"uint"},r.defaultTransactionType,s.ETH_DATA_FORMAT)};function q(i){var r,t;return _(this,void 0,void 0,function*(){let e=d.format(R.transactionSchema,i.transaction,s.DEFAULT_RETURN_FORMAT);if(n.isNullish(e.from)&&(e.from=g("from",i.web3Context,void 0,i.privateKey)),n.isNullish(e.nonce)&&(e.nonce=yield N(i.web3Context,e.from,s.ETH_DATA_FORMAT)),n.isNullish(e.value)&&(e.value="0x0"),n.isNullish(e.data))n.isNullish(e.input)?e.input="0x":e.input.startsWith("0x")||(e.input=`0x${e.input}`);else{if(!n.isNullish(e.input)&&e.data!==e.input)throw new l.TransactionDataAndInputError({data:A.bytesToHex(e.data),input:A.bytesToHex(e.input)});e.data.startsWith("0x")||(e.data=`0x${e.data}`)}if(n.isNullish(e.common)){if(i.web3Context.defaultCommon){const a=i.web3Context.defaultCommon,u=a.customChain.chainId,c=a.customChain.networkId,f=a.customChain.name;e.common=Object.assign(Object.assign({},a),{customChain:{chainId:u,networkId:c,name:f}})}n.isNullish(e.chain)&&(e.chain=i.web3Context.defaultChain),n.isNullish(e.hardfork)&&(e.hardfork=i.web3Context.defaultHardfork)}if(n.isNullish(e.chainId)&&n.isNullish((r=e.common)===null||r===void 0?void 0:r.customChain.chainId)&&(e.chainId=yield m.getChainId(i.web3Context,s.ETH_DATA_FORMAT)),n.isNullish(e.networkId)&&(e.networkId=(t=i.web3Context.defaultNetworkId)!==null&&t!==void 0?t:yield x.getId(i.web3Context,s.ETH_DATA_FORMAT)),n.isNullish(e.gasLimit)&&!n.isNullish(e.gas)&&(e.gasLimit=e.gas),e.type=w(e,i.web3Context),n.isNullish(e.accessList)&&(e.type==="0x1"||e.type==="0x2")&&(e.accessList=[]),i.fillGasPrice&&(e=Object.assign(Object.assign({},e),yield I.getTransactionGasPricing(e,i.web3Context,s.ETH_DATA_FORMAT))),n.isNullish(e.gas)&&n.isNullish(e.gasLimit)&&i.fillGasLimit){const a=yield m.estimateGas(i.web3Context,e,"latest",s.ETH_DATA_FORMAT);e=Object.assign(Object.assign({},e),{gas:d.format({format:"uint"},a,s.ETH_DATA_FORMAT)})}return e})}const F=i=>_(void 0,void 0,void 0,function*(){var r;return((r=i.web3Context.transactionBuilder)!==null&&r!==void 0?r:q)(Object.assign(Object.assign({},i),{transaction:i.transaction}))});exports.defaultTransactionBuilder=q;exports.getTransactionFromOrToAttr=g;exports.getTransactionNonce=N;exports.getTransactionType=w;exports.transactionBuilder=F;
|
@@ -0,0 +1,131 @@
|
|
1
|
+
import { ETH_DATA_FORMAT as m, DEFAULT_RETURN_FORMAT as w } from "../../../../web3-types/lib/esm/data_format_types.js";
|
2
|
+
import "../../../../web3-types/lib/esm/eth_types.js";
|
3
|
+
import "../../../../web3-types/lib/esm/web3_base_provider.js";
|
4
|
+
import "../../../../web3-eth-accounts/lib/esm/wallet.js";
|
5
|
+
import { privateKeyToAddress as b } from "../../../../web3-eth-accounts/lib/esm/account.js";
|
6
|
+
import "../../../../crc-32/crc32.js";
|
7
|
+
import "../../../../web3-eth-accounts/lib/esm/common/types.js";
|
8
|
+
import { LocalWalletNotAvailableError as h, InvalidTransactionWithSender as v, InvalidTransactionWithReceiver as x, TransactionDataAndInputError as y, UnableToPopulateNonceError as C } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
9
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
10
|
+
import "../../../../web3-validator/lib/esm/formats.js";
|
11
|
+
import { isHexStrict as A } from "../../../../web3-validator/lib/esm/validation/string.js";
|
12
|
+
import "../../../../web3-validator/lib/esm/default_validator.js";
|
13
|
+
import { isAddress as I } from "../../../../web3-validator/lib/esm/validation/address.js";
|
14
|
+
import { isNumber as _ } from "../../../../web3-validator/lib/esm/validation/numbers.js";
|
15
|
+
import { isNullish as n } from "../../../../web3-validator/lib/esm/validation/object.js";
|
16
|
+
import "../../../../web3-eth-accounts/lib/esm/tx/constants.js";
|
17
|
+
import "../../../../web3-eth-accounts/lib/esm/common/enums.js";
|
18
|
+
import "../../../../web3-eth-accounts/lib/esm/tx/eip1559Transaction.js";
|
19
|
+
import "../../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.js";
|
20
|
+
import "../../../../@ethereumjs/rlp/dist/index.js";
|
21
|
+
import "../../../../web3-eth-accounts/lib/esm/tx/types.js";
|
22
|
+
import "../../../../web3-net/lib/esm/net.js";
|
23
|
+
import { getId as O } from "../../../../web3-net/lib/esm/rpc_method_wrappers.js";
|
24
|
+
import { NUMBER_DATA_FORMAT as k } from "../constants.js";
|
25
|
+
import { getChainId as L, estimateGas as j, getTransactionCount as N } from "../rpc_method_wrappers.js";
|
26
|
+
import { detectTransactionType as E } from "./detect_transaction_type.js";
|
27
|
+
import { transactionSchema as R } from "../schemas.js";
|
28
|
+
import { getTransactionGasPricing as B } from "./get_transaction_gas_pricing.js";
|
29
|
+
import { format as d } from "../../../../web3-utils/lib/esm/formatter.js";
|
30
|
+
import { bytesToHex as T } from "../../../../web3-utils/lib/esm/converters.js";
|
31
|
+
var p = globalThis && globalThis.__awaiter || function(i, r, e, t) {
|
32
|
+
function o(a) {
|
33
|
+
return a instanceof e ? a : new e(function(c) {
|
34
|
+
c(a);
|
35
|
+
});
|
36
|
+
}
|
37
|
+
return new (e || (e = Promise))(function(a, c) {
|
38
|
+
function u(f) {
|
39
|
+
try {
|
40
|
+
s(t.next(f));
|
41
|
+
} catch (l) {
|
42
|
+
c(l);
|
43
|
+
}
|
44
|
+
}
|
45
|
+
function g(f) {
|
46
|
+
try {
|
47
|
+
s(t.throw(f));
|
48
|
+
} catch (l) {
|
49
|
+
c(l);
|
50
|
+
}
|
51
|
+
}
|
52
|
+
function s(f) {
|
53
|
+
f.done ? a(f.value) : o(f.value).then(u, g);
|
54
|
+
}
|
55
|
+
s((t = t.apply(i, r || [])).next());
|
56
|
+
});
|
57
|
+
};
|
58
|
+
const F = (i, r, e, t) => {
|
59
|
+
if (e !== void 0 && i in e && e[i] !== void 0) {
|
60
|
+
if (typeof e[i] == "string" && I(e[i]))
|
61
|
+
return e[i];
|
62
|
+
if (!A(e[i]) && _(e[i])) {
|
63
|
+
if (r.wallet) {
|
64
|
+
const o = r.wallet.get(d({ format: "uint" }, e[i], k));
|
65
|
+
if (!n(o))
|
66
|
+
return o.address;
|
67
|
+
throw new h();
|
68
|
+
}
|
69
|
+
throw new h();
|
70
|
+
} else
|
71
|
+
throw i === "from" ? new v(e.from) : (
|
72
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
73
|
+
new x(e.to)
|
74
|
+
);
|
75
|
+
}
|
76
|
+
if (i === "from") {
|
77
|
+
if (!n(t))
|
78
|
+
return b(t);
|
79
|
+
if (!n(r.defaultAccount))
|
80
|
+
return r.defaultAccount;
|
81
|
+
}
|
82
|
+
}, G = (i, r, e = w) => p(void 0, void 0, void 0, function* () {
|
83
|
+
if (n(r))
|
84
|
+
throw new C();
|
85
|
+
return N(i, r, i.defaultBlock, e);
|
86
|
+
}), W = (i, r) => {
|
87
|
+
const e = E(i, r);
|
88
|
+
if (!n(e))
|
89
|
+
return e;
|
90
|
+
if (!n(r.defaultTransactionType))
|
91
|
+
return d({ format: "uint" }, r.defaultTransactionType, m);
|
92
|
+
};
|
93
|
+
function D(i) {
|
94
|
+
var r, e;
|
95
|
+
return p(this, void 0, void 0, function* () {
|
96
|
+
let t = d(R, i.transaction, w);
|
97
|
+
if (n(t.from) && (t.from = F("from", i.web3Context, void 0, i.privateKey)), n(t.nonce) && (t.nonce = yield G(i.web3Context, t.from, m)), n(t.value) && (t.value = "0x0"), n(t.data))
|
98
|
+
n(t.input) ? t.input = "0x" : t.input.startsWith("0x") || (t.input = `0x${t.input}`);
|
99
|
+
else {
|
100
|
+
if (!n(t.input) && t.data !== t.input)
|
101
|
+
throw new y({
|
102
|
+
data: T(t.data),
|
103
|
+
input: T(t.input)
|
104
|
+
});
|
105
|
+
t.data.startsWith("0x") || (t.data = `0x${t.data}`);
|
106
|
+
}
|
107
|
+
if (n(t.common)) {
|
108
|
+
if (i.web3Context.defaultCommon) {
|
109
|
+
const o = i.web3Context.defaultCommon, a = o.customChain.chainId, c = o.customChain.networkId, u = o.customChain.name;
|
110
|
+
t.common = Object.assign(Object.assign({}, o), { customChain: { chainId: a, networkId: c, name: u } });
|
111
|
+
}
|
112
|
+
n(t.chain) && (t.chain = i.web3Context.defaultChain), n(t.hardfork) && (t.hardfork = i.web3Context.defaultHardfork);
|
113
|
+
}
|
114
|
+
if (n(t.chainId) && n((r = t.common) === null || r === void 0 ? void 0 : r.customChain.chainId) && (t.chainId = yield L(i.web3Context, m)), n(t.networkId) && (t.networkId = (e = i.web3Context.defaultNetworkId) !== null && e !== void 0 ? e : yield O(i.web3Context, m)), n(t.gasLimit) && !n(t.gas) && (t.gasLimit = t.gas), t.type = W(t, i.web3Context), n(t.accessList) && (t.type === "0x1" || t.type === "0x2") && (t.accessList = []), i.fillGasPrice && (t = Object.assign(Object.assign({}, t), yield B(t, i.web3Context, m))), n(t.gas) && n(t.gasLimit) && i.fillGasLimit) {
|
115
|
+
const o = yield j(i.web3Context, t, "latest", m);
|
116
|
+
t = Object.assign(Object.assign({}, t), { gas: d({ format: "uint" }, o, m) });
|
117
|
+
}
|
118
|
+
return t;
|
119
|
+
});
|
120
|
+
}
|
121
|
+
const ht = (i) => p(void 0, void 0, void 0, function* () {
|
122
|
+
var r;
|
123
|
+
return ((r = i.web3Context.transactionBuilder) !== null && r !== void 0 ? r : D)(Object.assign(Object.assign({}, i), { transaction: i.transaction }));
|
124
|
+
});
|
125
|
+
export {
|
126
|
+
D as defaultTransactionBuilder,
|
127
|
+
F as getTransactionFromOrToAttr,
|
128
|
+
G as getTransactionNonce,
|
129
|
+
W as getTransactionType,
|
130
|
+
ht as transactionBuilder
|
131
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const m=require("./reject_if_block_timeout.cjs"),T=require("../../../../web3-utils/lib/esm/promise_helpers.cjs");var y=globalThis&&globalThis.__awaiter||function(r,c,e,i){function u(t){return t instanceof e?t:new e(function(o){o(t)})}return new(e||(e=Promise))(function(t,o){function s(n){try{a(i.next(n))}catch(l){o(l)}}function f(n){try{a(i.throw(n))}catch(l){o(l)}}function a(n){n.done?t(n.value):u(n.value).then(s,f)}a((i=i.apply(r,c||[])).next())})};function _(r,c,e){return y(this,void 0,void 0,function*(){const[i,u]=T.rejectIfTimeout(r.transactionSendTimeout,new d.TransactionSendTimeoutError({numberOfSeconds:r.transactionSendTimeout/1e3,transactionHash:e})),[t,o]=yield m.rejectIfBlockTimeout(r,e);try{return yield Promise.race([c(),u,t])}finally{clearTimeout(i),o.clean()}})}exports.trySendTransaction=_;
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { TransactionSendTimeoutError as d } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
2
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import { rejectIfBlockTimeout as T } from "./reject_if_block_timeout.js";
|
4
|
+
import { rejectIfTimeout as s } from "../../../../web3-utils/lib/esm/promise_helpers.js";
|
5
|
+
var p = globalThis && globalThis.__awaiter || function(r, c, t, o) {
|
6
|
+
function u(n) {
|
7
|
+
return n instanceof t ? n : new t(function(i) {
|
8
|
+
i(n);
|
9
|
+
});
|
10
|
+
}
|
11
|
+
return new (t || (t = Promise))(function(n, i) {
|
12
|
+
function f(e) {
|
13
|
+
try {
|
14
|
+
m(o.next(e));
|
15
|
+
} catch (a) {
|
16
|
+
i(a);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
function l(e) {
|
20
|
+
try {
|
21
|
+
m(o.throw(e));
|
22
|
+
} catch (a) {
|
23
|
+
i(a);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
function m(e) {
|
27
|
+
e.done ? n(e.value) : u(e.value).then(f, l);
|
28
|
+
}
|
29
|
+
m((o = o.apply(r, c || [])).next());
|
30
|
+
});
|
31
|
+
};
|
32
|
+
function w(r, c, t) {
|
33
|
+
return p(this, void 0, void 0, function* () {
|
34
|
+
const [o, u] = s(r.transactionSendTimeout, new d({
|
35
|
+
numberOfSeconds: r.transactionSendTimeout / 1e3,
|
36
|
+
transactionHash: t
|
37
|
+
})), [n, i] = yield T(r, t);
|
38
|
+
try {
|
39
|
+
return yield Promise.race([
|
40
|
+
c(),
|
41
|
+
u,
|
42
|
+
n
|
43
|
+
// this will throw an error on Transaction Block Timeout
|
44
|
+
]);
|
45
|
+
} finally {
|
46
|
+
clearTimeout(o), i.clean();
|
47
|
+
}
|
48
|
+
});
|
49
|
+
}
|
50
|
+
export {
|
51
|
+
w as trySendTransaction
|
52
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const m=require("./reject_if_block_timeout.cjs"),v=require("../rpc_method_wrappers.cjs"),d=require("../../../../web3-utils/lib/esm/promise_helpers.cjs");var p=globalThis&&globalThis.__awaiter||function(t,c,o,n){function s(i){return i instanceof o?i:new o(function(r){r(i)})}return new(o||(o=Promise))(function(i,r){function u(e){try{a(n.next(e))}catch(l){r(l)}}function f(e){try{a(n.throw(e))}catch(l){r(l)}}function a(e){e.done?i(e.value):s(e.value).then(u,f)}a((n=n.apply(t,c||[])).next())})};function h(t,c,o){var n;return p(this,void 0,void 0,function*(){const s=(n=t.transactionReceiptPollingInterval)!==null&&n!==void 0?n:t.transactionPollingInterval,[i,r]=d.pollTillDefinedAndReturnIntervalId(()=>p(this,void 0,void 0,function*(){try{return v.getTransactionReceipt(t,c,o)}catch(l){console.warn("An error happen while trying to get the transaction receipt",l);return}}),s),[u,f]=d.rejectIfTimeout(t.transactionPollingTimeout,new T.TransactionPollingTimeoutError({numberOfSeconds:t.transactionPollingTimeout/1e3,transactionHash:c})),[a,e]=yield m.rejectIfBlockTimeout(t,c);try{return yield Promise.race([i,f,a])}finally{u&&clearTimeout(u),r&&clearInterval(r),e.clean()}})}exports.waitForTransactionReceipt=h;
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import { TransactionPollingTimeoutError as p } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
2
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import { rejectIfBlockTimeout as s } from "./reject_if_block_timeout.js";
|
4
|
+
import { getTransactionReceipt as T } from "../rpc_method_wrappers.js";
|
5
|
+
import { pollTillDefinedAndReturnIntervalId as v, rejectIfTimeout as I } from "../../../../web3-utils/lib/esm/promise_helpers.js";
|
6
|
+
var d = globalThis && globalThis.__awaiter || function(t, c, r, i) {
|
7
|
+
function f(e) {
|
8
|
+
return e instanceof r ? e : new r(function(o) {
|
9
|
+
o(e);
|
10
|
+
});
|
11
|
+
}
|
12
|
+
return new (r || (r = Promise))(function(e, o) {
|
13
|
+
function u(n) {
|
14
|
+
try {
|
15
|
+
l(i.next(n));
|
16
|
+
} catch (a) {
|
17
|
+
o(a);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
function m(n) {
|
21
|
+
try {
|
22
|
+
l(i.throw(n));
|
23
|
+
} catch (a) {
|
24
|
+
o(a);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
function l(n) {
|
28
|
+
n.done ? e(n.value) : f(n.value).then(u, m);
|
29
|
+
}
|
30
|
+
l((i = i.apply(t, c || [])).next());
|
31
|
+
});
|
32
|
+
};
|
33
|
+
function _(t, c, r) {
|
34
|
+
var i;
|
35
|
+
return d(this, void 0, void 0, function* () {
|
36
|
+
const f = (i = t.transactionReceiptPollingInterval) !== null && i !== void 0 ? i : t.transactionPollingInterval, [e, o] = v(() => d(this, void 0, void 0, function* () {
|
37
|
+
try {
|
38
|
+
return T(t, c, r);
|
39
|
+
} catch (a) {
|
40
|
+
console.warn("An error happen while trying to get the transaction receipt", a);
|
41
|
+
return;
|
42
|
+
}
|
43
|
+
}), f), [u, m] = I(t.transactionPollingTimeout, new p({
|
44
|
+
numberOfSeconds: t.transactionPollingTimeout / 1e3,
|
45
|
+
transactionHash: c
|
46
|
+
})), [l, n] = yield s(t, c);
|
47
|
+
try {
|
48
|
+
return yield Promise.race([
|
49
|
+
e,
|
50
|
+
m,
|
51
|
+
l
|
52
|
+
// this will throw an error on Transaction Block Timeout
|
53
|
+
]);
|
54
|
+
} finally {
|
55
|
+
u && clearTimeout(u), o && clearInterval(o), n.clean();
|
56
|
+
}
|
57
|
+
});
|
58
|
+
}
|
59
|
+
export {
|
60
|
+
_ as waitForTransactionReceipt
|
61
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../../web3-rpc-methods/lib/esm/net_rpc_methods.cjs");require("../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.cjs");const d=require("../schemas.cjs"),v=require("../../../../web3-utils/lib/esm/converters.cjs"),u=require("../../../../web3-utils/lib/esm/formatter.cjs");var y=globalThis&&globalThis.__awaiter||function(o,l,e,n){function c(t){return t instanceof e?t:new e(function(a){a(t)})}return new(e||(e=Promise))(function(t,a){function r(i){try{s(n.next(i))}catch(f){a(f)}}function h(i){try{s(n.throw(i))}catch(f){a(f)}}function s(i){i.done?t(i.value):c(i.value).then(r,h)}s((n=n.apply(o,l||[])).next())})};const g=({web3Context:o,transactionReceipt:l,transactionPromiEvent:e,returnFormat:n})=>{var c;let t=1;const a=setInterval(()=>{y(void 0,void 0,void 0,function*(){t>=o.transactionConfirmationBlocks&&clearInterval(a);const r=yield m.getBlockByNumber(o.requestManager,v.numberToHex(BigInt(l.blockNumber)+BigInt(t)),!1);r!=null&&r.hash&&(t+=1,e.emit("confirmation",{confirmations:u.format({format:"uint"},t,n),receipt:u.format(d.transactionReceiptSchema,l,n),latestBlockHash:u.format({format:"bytes32"},r.hash,n)}))})},(c=o.transactionReceiptPollingInterval)!==null&&c!==void 0?c:o.transactionPollingInterval)};exports.watchTransactionByPolling=g;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import { getBlockByNumber as h } from "../../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
|
2
|
+
import "../../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
|
3
|
+
import "../../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
|
4
|
+
import { transactionReceiptSchema as p } from "../schemas.js";
|
5
|
+
import { numberToHex as v } from "../../../../web3-utils/lib/esm/converters.js";
|
6
|
+
import { format as s } from "../../../../web3-utils/lib/esm/formatter.js";
|
7
|
+
var d = globalThis && globalThis.__awaiter || function(o, e, a, i) {
|
8
|
+
function l(n) {
|
9
|
+
return n instanceof a ? n : new a(function(c) {
|
10
|
+
c(n);
|
11
|
+
});
|
12
|
+
}
|
13
|
+
return new (a || (a = Promise))(function(n, c) {
|
14
|
+
function r(t) {
|
15
|
+
try {
|
16
|
+
f(i.next(t));
|
17
|
+
} catch (m) {
|
18
|
+
c(m);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
function u(t) {
|
22
|
+
try {
|
23
|
+
f(i.throw(t));
|
24
|
+
} catch (m) {
|
25
|
+
c(m);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
function f(t) {
|
29
|
+
t.done ? n(t.value) : l(t.value).then(r, u);
|
30
|
+
}
|
31
|
+
f((i = i.apply(o, e || [])).next());
|
32
|
+
});
|
33
|
+
};
|
34
|
+
const b = ({ web3Context: o, transactionReceipt: e, transactionPromiEvent: a, returnFormat: i }) => {
|
35
|
+
var l;
|
36
|
+
let n = 1;
|
37
|
+
const c = setInterval(() => {
|
38
|
+
d(void 0, void 0, void 0, function* () {
|
39
|
+
n >= o.transactionConfirmationBlocks && clearInterval(c);
|
40
|
+
const r = yield h(o.requestManager, v(BigInt(e.blockNumber) + BigInt(n)), !1);
|
41
|
+
r != null && r.hash && (n += 1, a.emit("confirmation", {
|
42
|
+
confirmations: s({ format: "uint" }, n, i),
|
43
|
+
receipt: s(p, e, i),
|
44
|
+
latestBlockHash: s({ format: "bytes32" }, r.hash, i)
|
45
|
+
}));
|
46
|
+
});
|
47
|
+
}, (l = o.transactionReceiptPollingInterval) !== null && l !== void 0 ? l : o.transactionPollingInterval);
|
48
|
+
};
|
49
|
+
export {
|
50
|
+
b as watchTransactionByPolling
|
51
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../schemas.cjs"),v=require("./watch_transaction_by_pooling.cjs"),d=require("../../../../web3-utils/lib/esm/formatter.cjs");var m=globalThis&&globalThis.__awaiter||function(a,l,t,o){function f(s){return s instanceof t?s:new t(function(c){c(s)})}return new(t||(t=Promise))(function(s,c){function r(n){try{u(o.next(n))}catch(h){c(h)}}function i(n){try{u(o.throw(n))}catch(h){c(h)}}function u(n){n.done?s(n.value):f(n.value).then(r,i)}u((o=o.apply(a,l||[])).next())})};const g=({web3Context:a,transactionReceipt:l,transactionPromiEvent:t,returnFormat:o})=>{let f=!0,s;setImmediate(()=>{var c;(c=a.subscriptionManager)===null||c===void 0||c.subscribe("newHeads").then(r=>{r.on("data",i=>m(void 0,void 0,void 0,function*(){var u;if(f=!1,!(i!=null&&i.number)||s===(i==null?void 0:i.parentHash))return;s=i==null?void 0:i.parentHash;const n=BigInt(i.number)-BigInt(l.blockNumber)+BigInt(1);t.emit("confirmation",{confirmations:d.format({format:"uint"},n,o),receipt:d.format(y.transactionReceiptSchema,l,o),latestBlockHash:d.format({format:"bytes32"},i.parentHash,o)}),n>=a.transactionConfirmationBlocks&&(yield(u=a.subscriptionManager)===null||u===void 0?void 0:u.removeSubscription(r))})),r.on("error",()=>m(void 0,void 0,void 0,function*(){var i;yield(i=a.subscriptionManager)===null||i===void 0?void 0:i.removeSubscription(r),f=!1,v.watchTransactionByPolling({web3Context:a,transactionReceipt:l,transactionPromiEvent:t,returnFormat:o})}))}).catch(()=>{f=!1,v.watchTransactionByPolling({web3Context:a,transactionReceipt:l,transactionPromiEvent:t,returnFormat:o})})}),setTimeout(()=>{f&&v.watchTransactionByPolling({web3Context:a,transactionReceipt:l,transactionPromiEvent:t,returnFormat:o})},a.blockHeaderTimeout*1e3)};exports.watchTransactionBySubscription=g;
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { transactionReceiptSchema as p } from "../schemas.js";
|
2
|
+
import { watchTransactionByPolling as h } from "./watch_transaction_by_pooling.js";
|
3
|
+
import { format as m } from "../../../../web3-utils/lib/esm/formatter.js";
|
4
|
+
var r = globalThis && globalThis.__awaiter || function(n, s, f, o) {
|
5
|
+
function v(t) {
|
6
|
+
return t instanceof f ? t : new f(function(l) {
|
7
|
+
l(t);
|
8
|
+
});
|
9
|
+
}
|
10
|
+
return new (f || (f = Promise))(function(t, l) {
|
11
|
+
function c(a) {
|
12
|
+
try {
|
13
|
+
u(o.next(a));
|
14
|
+
} catch (d) {
|
15
|
+
l(d);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
function i(a) {
|
19
|
+
try {
|
20
|
+
u(o.throw(a));
|
21
|
+
} catch (d) {
|
22
|
+
l(d);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
function u(a) {
|
26
|
+
a.done ? t(a.value) : v(a.value).then(c, i);
|
27
|
+
}
|
28
|
+
u((o = o.apply(n, s || [])).next());
|
29
|
+
});
|
30
|
+
};
|
31
|
+
const T = ({ web3Context: n, transactionReceipt: s, transactionPromiEvent: f, returnFormat: o }) => {
|
32
|
+
let v = !0, t;
|
33
|
+
setImmediate(() => {
|
34
|
+
var l;
|
35
|
+
(l = n.subscriptionManager) === null || l === void 0 || l.subscribe("newHeads").then((c) => {
|
36
|
+
c.on("data", (i) => r(void 0, void 0, void 0, function* () {
|
37
|
+
var u;
|
38
|
+
if (v = !1, !(i != null && i.number) || // For some cases, the on-data event is fired couple times for the same block!
|
39
|
+
// This needs investigation but seems to be because of multiple `subscription.on('data'...)` even this should not cause that.
|
40
|
+
t === (i == null ? void 0 : i.parentHash))
|
41
|
+
return;
|
42
|
+
t = i == null ? void 0 : i.parentHash;
|
43
|
+
const a = BigInt(i.number) - BigInt(s.blockNumber) + BigInt(1);
|
44
|
+
f.emit("confirmation", {
|
45
|
+
confirmations: m({ format: "uint" }, a, o),
|
46
|
+
receipt: m(p, s, o),
|
47
|
+
latestBlockHash: m({ format: "bytes32" }, i.parentHash, o)
|
48
|
+
}), a >= n.transactionConfirmationBlocks && (yield (u = n.subscriptionManager) === null || u === void 0 ? void 0 : u.removeSubscription(c));
|
49
|
+
})), c.on("error", () => r(void 0, void 0, void 0, function* () {
|
50
|
+
var i;
|
51
|
+
yield (i = n.subscriptionManager) === null || i === void 0 ? void 0 : i.removeSubscription(c), v = !1, h({
|
52
|
+
web3Context: n,
|
53
|
+
transactionReceipt: s,
|
54
|
+
transactionPromiEvent: f,
|
55
|
+
returnFormat: o
|
56
|
+
});
|
57
|
+
}));
|
58
|
+
}).catch(() => {
|
59
|
+
v = !1, h({
|
60
|
+
web3Context: n,
|
61
|
+
transactionReceipt: s,
|
62
|
+
transactionPromiEvent: f,
|
63
|
+
returnFormat: o
|
64
|
+
});
|
65
|
+
});
|
66
|
+
}), setTimeout(() => {
|
67
|
+
v && h({
|
68
|
+
web3Context: n,
|
69
|
+
transactionReceipt: s,
|
70
|
+
transactionPromiEvent: f,
|
71
|
+
returnFormat: o
|
72
|
+
});
|
73
|
+
}, n.blockHeaderTimeout * 1e3);
|
74
|
+
};
|
75
|
+
export {
|
76
|
+
T as watchTransactionBySubscription
|
77
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../../../web3-errors/lib/esm/errors/transaction_errors.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");require("../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");const u=require("../../../../web3-validator/lib/esm/validation/object.cjs"),f=require("../schemas.cjs"),h=require("./watch_transaction_by_pooling.cjs"),n=require("./watch_transaction_by_subscription.cjs"),s=require("../../../../web3-utils/lib/esm/formatter.cjs");function t(i,e,r,l,o){if(u.isNullish(r)||u.isNullish(r.blockHash))throw new a.TransactionMissingReceiptOrBlockHashError({receipt:r,blockHash:s.format({format:"bytes32"},r==null?void 0:r.blockHash,o),transactionHash:s.format({format:"bytes32"},l,o)});if(!r.blockNumber)throw new a.TransactionReceiptMissingBlockNumberError({receipt:r});e.emit("confirmation",{confirmations:s.format({format:"uint"},1,o),receipt:s.format(f.transactionReceiptSchema,r,o),latestBlockHash:s.format({format:"bytes32"},r.blockHash,o)});const c=i.requestManager.provider;c&&"supportsSubscriptions"in c&&c.supportsSubscriptions()?n.watchTransactionBySubscription({web3Context:i,transactionReceipt:r,transactionPromiEvent:e,returnFormat:o}):h.watchTransactionByPolling({web3Context:i,transactionReceipt:r,transactionPromiEvent:e,returnFormat:o})}exports.watchTransactionForConfirmations=t;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { TransactionMissingReceiptOrBlockHashError as h, TransactionReceiptMissingBlockNumberError as b } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
2
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import "../../../../web3-validator/lib/esm/formats.js";
|
4
|
+
import "../../../../web3-validator/lib/esm/default_validator.js";
|
5
|
+
import "../../../../web3-types/lib/esm/data_format_types.js";
|
6
|
+
import "../../../../web3-types/lib/esm/eth_types.js";
|
7
|
+
import "../../../../web3-types/lib/esm/web3_base_provider.js";
|
8
|
+
import { isNullish as p } from "../../../../web3-validator/lib/esm/validation/object.js";
|
9
|
+
import { transactionReceiptSchema as c } from "../schemas.js";
|
10
|
+
import { watchTransactionByPolling as k } from "./watch_transaction_by_pooling.js";
|
11
|
+
import { watchTransactionBySubscription as H } from "./watch_transaction_by_subscription.js";
|
12
|
+
import { format as r } from "../../../../web3-utils/lib/esm/formatter.js";
|
13
|
+
function q(s, m, o, l, i) {
|
14
|
+
if (p(o) || p(o.blockHash))
|
15
|
+
throw new h({
|
16
|
+
receipt: o,
|
17
|
+
blockHash: r({ format: "bytes32" }, o == null ? void 0 : o.blockHash, i),
|
18
|
+
transactionHash: r({ format: "bytes32" }, l, i)
|
19
|
+
});
|
20
|
+
if (!o.blockNumber)
|
21
|
+
throw new b({ receipt: o });
|
22
|
+
m.emit("confirmation", {
|
23
|
+
confirmations: r({ format: "uint" }, 1, i),
|
24
|
+
receipt: r(c, o, i),
|
25
|
+
latestBlockHash: r({ format: "bytes32" }, o.blockHash, i)
|
26
|
+
});
|
27
|
+
const f = s.requestManager.provider;
|
28
|
+
f && "supportsSubscriptions" in f && f.supportsSubscriptions() ? H({
|
29
|
+
web3Context: s,
|
30
|
+
transactionReceipt: o,
|
31
|
+
transactionPromiEvent: m,
|
32
|
+
returnFormat: i
|
33
|
+
}) : k({
|
34
|
+
web3Context: s,
|
35
|
+
transactionReceipt: o,
|
36
|
+
transactionPromiEvent: m,
|
37
|
+
returnFormat: i
|
38
|
+
});
|
39
|
+
}
|
40
|
+
export {
|
41
|
+
q as watchTransactionForConfirmations
|
42
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=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 r=require("../../../web3-errors/lib/esm/errors/transaction_errors.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 l=require("../../../web3-validator/lib/esm/validation/numbers.cjs"),i=require("../../../web3-validator/lib/esm/validation/object.cjs"),F=require("./utils/format_transaction.cjs"),P=e=>{if(!i.isNullish(e.common)){if(i.isNullish(e.common.customChain))throw new r.MissingCustomChainError;if(i.isNullish(e.common.customChain.chainId))throw new r.MissingCustomChainIdError;if(!i.isNullish(e.chainId)&&e.chainId!==e.common.customChain.chainId)throw new r.ChainIdMismatchError({txChainId:e.chainId,customChainId:e.common.customChain.chainId})}},u=e=>{if(!i.isNullish(e.common)&&!i.isNullish(e.chain)&&!i.isNullish(e.hardfork))throw new r.CommonOrChainAndHardforkError;if(!i.isNullish(e.chain)&&i.isNullish(e.hardfork)||!i.isNullish(e.hardfork)&&i.isNullish(e.chain))throw new r.MissingChainOrHardforkError({chain:e.chain,hardfork:e.hardfork})},d=e=>{if(!i.isNullish(e.common)&&!i.isNullish(e.common.baseChain)&&!i.isNullish(e.chain)&&e.chain!==e.common.baseChain)throw new r.ChainMismatchError({txChain:e.chain,baseChain:e.common.baseChain})},f=e=>{if(!i.isNullish(e.common)&&!i.isNullish(e.common.hardfork)&&!i.isNullish(e.hardfork)&&e.hardfork!==e.common.hardfork)throw new r.HardforkMismatchError({txHardfork:e.hardfork,commonHardfork:e.common.hardfork})},a=e=>{if(i.isNullish(e.gas)||!l.isUInt(e.gas)||i.isNullish(e.gasPrice)||!l.isUInt(e.gasPrice))throw new r.InvalidGasOrGasPrice({gas:e.gas,gasPrice:e.gasPrice});if(!i.isNullish(e.maxFeePerGas)||!i.isNullish(e.maxPriorityFeePerGas))throw new r.UnsupportedFeeMarketError({maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas})},m=e=>{if(!i.isNullish(e.gasPrice)&&e.type==="0x2")throw new r.Eip1559GasPriceError(e.gasPrice);if(e.type==="0x0"||e.type==="0x1")throw new r.UnsupportedFeeMarketError({maxFeePerGas:e.maxFeePerGas,maxPriorityFeePerGas:e.maxPriorityFeePerGas});if(i.isNullish(e.maxFeePerGas)||!l.isUInt(e.maxFeePerGas)||i.isNullish(e.maxPriorityFeePerGas)||!l.isUInt(e.maxPriorityFeePerGas))throw new r.InvalidMaxPriorityFeePerGasOrMaxFeePerGas({maxPriorityFeePerGas:e.maxPriorityFeePerGas,maxFeePerGas:e.maxFeePerGas})},G=e=>{const h=!i.isNullish(e.gas)||!i.isNullish(e.gasLimit),s=h&&!i.isNullish(e.gasPrice),o=h&&!i.isNullish(e.maxPriorityFeePerGas)&&!i.isNullish(e.maxFeePerGas);if(!s&&!o)throw new r.MissingGasError({gas:e.gas,gasPrice:e.gasPrice,maxPriorityFeePerGas:e.maxPriorityFeePerGas,maxFeePerGas:e.maxFeePerGas});if(s&&o)throw new r.TransactionGasMismatchError({gas:e.gas,gasPrice:e.gasPrice,maxPriorityFeePerGas:e.maxPriorityFeePerGas,maxFeePerGas:e.maxFeePerGas});(s?a:m)(e),(!i.isNullish(e.type)&&e.type>"0x1"?m:a)(e)},g=(e,h)=>{if(!i.isNullish(h)){h(e);return}if(typeof e!="object"||i.isNullish(e))throw new r.InvalidTransactionObjectError(e);P(e),u(e),d(e),f(e);const s=F.formatTransaction(e,x.ETH_DATA_FORMAT);if(G(s),i.isNullish(s.nonce)||i.isNullish(s.chainId)||s.nonce.startsWith("-")||s.chainId.startsWith("-"))throw new r.InvalidNonceOrChainIdError({nonce:e.nonce,chainId:e.chainId})};exports.validateBaseChain=d;exports.validateChainInfo=u;exports.validateCustomChainInfo=P;exports.validateFeeMarketGas=m;exports.validateGas=G;exports.validateHardfork=f;exports.validateLegacyGas=a;exports.validateTransactionForSigning=g;
|