@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,90 @@
|
|
1
|
+
import { ETH_DATA_FORMAT as p } from "../../../../web3-types/lib/esm/data_format_types.js";
|
2
|
+
import { HardforksOrdered as s } from "../../../../web3-types/lib/esm/eth_types.js";
|
3
|
+
import "../../../../web3-types/lib/esm/web3_base_provider.js";
|
4
|
+
import { InvalidPropertiesForTransactionTypeError as x } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
5
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
6
|
+
import { Web3ValidatorError as y } from "../../../../web3-validator/lib/esm/errors.js";
|
7
|
+
import "../../../../web3-validator/lib/esm/formats.js";
|
8
|
+
import { validator as u } from "../../../../web3-validator/lib/esm/default_validator.js";
|
9
|
+
import { isNullish as i } from "../../../../web3-validator/lib/esm/validation/object.js";
|
10
|
+
import { format as m } from "../../../../web3-utils/lib/esm/formatter.js";
|
11
|
+
import { toHex as T } from "../../../../web3-utils/lib/esm/converters.js";
|
12
|
+
const l = {
|
13
|
+
type: "object",
|
14
|
+
properties: {
|
15
|
+
accessList: {
|
16
|
+
type: "null"
|
17
|
+
},
|
18
|
+
maxFeePerGas: {
|
19
|
+
type: "null"
|
20
|
+
},
|
21
|
+
maxPriorityFeePerGas: {
|
22
|
+
type: "null"
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}, f = {
|
26
|
+
type: "object",
|
27
|
+
properties: {
|
28
|
+
maxFeePerGas: {
|
29
|
+
type: "null"
|
30
|
+
},
|
31
|
+
maxPriorityFeePerGas: {
|
32
|
+
type: "null"
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}, d = {
|
36
|
+
type: "object",
|
37
|
+
properties: {
|
38
|
+
gasPrice: {
|
39
|
+
type: "null"
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}, n = (o, e, t) => {
|
43
|
+
try {
|
44
|
+
u.validateJSONSchema(o, e);
|
45
|
+
} catch (r) {
|
46
|
+
throw r instanceof y ? new x(r.errors, t) : r;
|
47
|
+
}
|
48
|
+
}, P = (o) => {
|
49
|
+
var e, t;
|
50
|
+
const r = o;
|
51
|
+
if (!i(r.type)) {
|
52
|
+
let a;
|
53
|
+
switch (r.type) {
|
54
|
+
case "0x0":
|
55
|
+
a = l;
|
56
|
+
break;
|
57
|
+
case "0x1":
|
58
|
+
a = f;
|
59
|
+
break;
|
60
|
+
case "0x2":
|
61
|
+
a = d;
|
62
|
+
break;
|
63
|
+
default:
|
64
|
+
return m({ format: "uint" }, r.type, p);
|
65
|
+
}
|
66
|
+
return n(a, r, r.type), m({ format: "uint" }, r.type, p);
|
67
|
+
}
|
68
|
+
if (!i(r.maxFeePerGas) || !i(r.maxPriorityFeePerGas))
|
69
|
+
return n(d, r, "0x2"), "0x2";
|
70
|
+
if (!i(r.accessList))
|
71
|
+
return n(f, r, "0x1"), "0x1";
|
72
|
+
const c = (e = r.hardfork) !== null && e !== void 0 ? e : (t = r.common) === null || t === void 0 ? void 0 : t.hardfork;
|
73
|
+
if (!i(c)) {
|
74
|
+
const a = Object.keys(s).indexOf(c);
|
75
|
+
if (a >= Object.keys(s).indexOf("london"))
|
76
|
+
return i(r.gasPrice) ? "0x2" : "0x0";
|
77
|
+
if (a === Object.keys(s).indexOf("berlin"))
|
78
|
+
return "0x0";
|
79
|
+
}
|
80
|
+
if (!i(r.gasPrice))
|
81
|
+
return n(l, r, "0x0"), "0x0";
|
82
|
+
}, g = (o, e) => {
|
83
|
+
var t;
|
84
|
+
return ((t = e == null ? void 0 : e.transactionTypeParser) !== null && t !== void 0 ? t : P)(o);
|
85
|
+
}, A = (o) => o[0] > 127 ? "0x0" : T(o[0]);
|
86
|
+
export {
|
87
|
+
P as defaultTransactionTypeParser,
|
88
|
+
A as detectRawTransactionType,
|
89
|
+
g as detectTransactionType
|
90
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=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 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");require("../../../../web3-validator/lib/esm/default_validator.cjs");const t=require("../../../../web3-validator/lib/esm/validation/object.cjs"),s=require("../schemas.cjs"),m=require("../../../../web3-utils/lib/esm/objects.cjs"),d=require("../../../../web3-utils/lib/esm/formatter.cjs"),a=require("../../../../web3-utils/lib/esm/converters.cjs");function f(i,u=c.DEFAULT_RETURN_FORMAT,n={transactionSchema:s.transactionInfoSchema,fillInputAndData:!1}){var o,r;let e=m.mergeDeep({},i);if(t.isNullish(i==null?void 0:i.common)||(e.common=Object.assign({},i.common),t.isNullish((o=i.common)===null||o===void 0?void 0:o.customChain)||(e.common.customChain=Object.assign({},i.common.customChain))),e=d.format((r=n.transactionSchema)!==null&&r!==void 0?r:s.transactionInfoSchema,e,u),!t.isNullish(e.data)&&!t.isNullish(e.input)&&a.toHex(e.data)!==a.toHex(e.input))throw new l.TransactionDataAndInputError({data:a.bytesToHex(e.data),input:a.bytesToHex(e.input)});return n.fillInputAndData&&(t.isNullish(e.data)?t.isNullish(e.input)||(e.data=e.input):e.input=e.data),t.isNullish(e.gasLimit)||(e.gas=e.gasLimit,delete e.gasLimit),e}exports.formatTransaction=f;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { DEFAULT_RETURN_FORMAT as u } 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 { TransactionDataAndInputError as d } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
5
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
6
|
+
import "../../../../web3-validator/lib/esm/formats.js";
|
7
|
+
import "../../../../web3-validator/lib/esm/default_validator.js";
|
8
|
+
import { isNullish as i } from "../../../../web3-validator/lib/esm/validation/object.js";
|
9
|
+
import { transactionInfoSchema as r } from "../schemas.js";
|
10
|
+
import { mergeDeep as l } from "../../../../web3-utils/lib/esm/objects.js";
|
11
|
+
import { format as c } from "../../../../web3-utils/lib/esm/formatter.js";
|
12
|
+
import { toHex as e, bytesToHex as p } from "../../../../web3-utils/lib/esm/converters.js";
|
13
|
+
function C(o, f = u, n = {
|
14
|
+
transactionSchema: r,
|
15
|
+
fillInputAndData: !1
|
16
|
+
}) {
|
17
|
+
var m, a;
|
18
|
+
let t = l({}, o);
|
19
|
+
if (i(o == null ? void 0 : o.common) || (t.common = Object.assign({}, o.common), i((m = o.common) === null || m === void 0 ? void 0 : m.customChain) || (t.common.customChain = Object.assign({}, o.common.customChain))), t = c((a = n.transactionSchema) !== null && a !== void 0 ? a : r, t, f), !i(t.data) && !i(t.input) && // Converting toHex is accounting for data and input being Uint8Arrays
|
20
|
+
// since comparing Uint8Array is not as straightforward as comparing strings
|
21
|
+
e(t.data) !== e(t.input))
|
22
|
+
throw new d({
|
23
|
+
data: p(t.data),
|
24
|
+
input: p(t.input)
|
25
|
+
});
|
26
|
+
return n.fillInputAndData && (i(t.data) ? i(t.input) || (t.data = t.input) : t.input = t.data), i(t.gasLimit) || (t.gas = t.gasLimit, delete t.gasLimit), t;
|
27
|
+
}
|
28
|
+
export {
|
29
|
+
C as formatTransaction
|
30
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("../../../../web3-errors/lib/esm/errors/contract_errors.cjs"),_=require("../../../../web3-errors/lib/esm/errors/response_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const v=require("../../../../web3-eth-abi/lib/esm/utils.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");require("../../../../web3-validator/lib/esm/default_validator.cjs");const g=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-abi/lib/esm/coders/base/number.cjs");const m=require("../../../../web3-eth-abi/lib/esm/decode_contract_error_data.cjs"),p=require("../rpc_method_wrappers.cjs");var q=globalThis&&globalThis.__awaiter||function(r,a,n,e){function t(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function u(o){try{c(e.next(o))}catch(d){s(d)}}function f(o){try{c(e.throw(o))}catch(d){s(d)}}function c(o){o.done?i(o.value):t(o.value).then(u,f)}c((e=e.apply(r,a||[])).next())})};const l=(r,a)=>{var n,e,t,i;if(r instanceof E.ContractExecutionError&&r.innerError instanceof E.Eip838ExecutionError){if(a!==void 0){const s=a.filter(u=>v.isAbiErrorFragment(u));return m.decodeContractErrorData(s,r.innerError),{reason:r.innerError.message,signature:(n=r.innerError.data)===null||n===void 0?void 0:n.slice(0,10),data:(e=r.innerError.data)===null||e===void 0?void 0:e.substring(10),customErrorName:r.innerError.errorName,customErrorDecodedSignature:r.innerError.errorSignature,customErrorArguments:r.innerError.errorArgs}}return{reason:r.innerError.message,signature:(t=r.innerError.data)===null||t===void 0?void 0:t.slice(0,10),data:(i=r.innerError.data)===null||i===void 0?void 0:i.substring(10)}}if(r instanceof _.InvalidResponseError&&!Array.isArray(r.innerError)&&r.innerError!==void 0)return r.innerError.message;throw r};function h(r,a,n,e=g.DEFAULT_RETURN_FORMAT){return q(this,void 0,void 0,function*(){try{yield p.call(r,a,r.defaultBlock,e);return}catch(t){return l(t,n)}})}exports.getRevertReason=h;exports.parseTransactionError=l;
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { ContractExecutionError as m, Eip838ExecutionError as E } from "../../../../web3-errors/lib/esm/errors/contract_errors.js";
|
2
|
+
import { InvalidResponseError as l } from "../../../../web3-errors/lib/esm/errors/response_errors.js";
|
3
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
4
|
+
import { isAbiErrorFragment as p } from "../../../../web3-eth-abi/lib/esm/utils.js";
|
5
|
+
import "../../../../web3-validator/lib/esm/formats.js";
|
6
|
+
import "../../../../web3-validator/lib/esm/default_validator.js";
|
7
|
+
import { DEFAULT_RETURN_FORMAT as v } from "../../../../web3-types/lib/esm/data_format_types.js";
|
8
|
+
import "../../../../web3-types/lib/esm/eth_types.js";
|
9
|
+
import "../../../../web3-types/lib/esm/web3_base_provider.js";
|
10
|
+
import "../../../../web3-eth-abi/lib/esm/coders/base/number.js";
|
11
|
+
import { decodeContractErrorData as g } from "../../../../web3-eth-abi/lib/esm/decode_contract_error_data.js";
|
12
|
+
import { call as _ } from "../rpc_method_wrappers.js";
|
13
|
+
var h = globalThis && globalThis.__awaiter || function(r, a, n, i) {
|
14
|
+
function t(o) {
|
15
|
+
return o instanceof n ? o : new n(function(s) {
|
16
|
+
s(o);
|
17
|
+
});
|
18
|
+
}
|
19
|
+
return new (n || (n = Promise))(function(o, s) {
|
20
|
+
function u(e) {
|
21
|
+
try {
|
22
|
+
c(i.next(e));
|
23
|
+
} catch (d) {
|
24
|
+
s(d);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
function f(e) {
|
28
|
+
try {
|
29
|
+
c(i.throw(e));
|
30
|
+
} catch (d) {
|
31
|
+
s(d);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
function c(e) {
|
35
|
+
e.done ? o(e.value) : t(e.value).then(u, f);
|
36
|
+
}
|
37
|
+
c((i = i.apply(r, a || [])).next());
|
38
|
+
});
|
39
|
+
};
|
40
|
+
const y = (r, a) => {
|
41
|
+
var n, i, t, o;
|
42
|
+
if (r instanceof m && r.innerError instanceof E) {
|
43
|
+
if (a !== void 0) {
|
44
|
+
const s = a.filter((u) => p(u));
|
45
|
+
return g(s, r.innerError), {
|
46
|
+
reason: r.innerError.message,
|
47
|
+
signature: (n = r.innerError.data) === null || n === void 0 ? void 0 : n.slice(0, 10),
|
48
|
+
data: (i = r.innerError.data) === null || i === void 0 ? void 0 : i.substring(10),
|
49
|
+
customErrorName: r.innerError.errorName,
|
50
|
+
customErrorDecodedSignature: r.innerError.errorSignature,
|
51
|
+
customErrorArguments: r.innerError.errorArgs
|
52
|
+
};
|
53
|
+
}
|
54
|
+
return {
|
55
|
+
reason: r.innerError.message,
|
56
|
+
signature: (t = r.innerError.data) === null || t === void 0 ? void 0 : t.slice(0, 10),
|
57
|
+
data: (o = r.innerError.data) === null || o === void 0 ? void 0 : o.substring(10)
|
58
|
+
};
|
59
|
+
}
|
60
|
+
if (r instanceof l && !Array.isArray(r.innerError) && r.innerError !== void 0)
|
61
|
+
return r.innerError.message;
|
62
|
+
throw r;
|
63
|
+
};
|
64
|
+
function B(r, a, n, i = v) {
|
65
|
+
return h(this, void 0, void 0, function* () {
|
66
|
+
try {
|
67
|
+
yield _(r, a, r.defaultBlock, i);
|
68
|
+
return;
|
69
|
+
} catch (t) {
|
70
|
+
return y(t, n);
|
71
|
+
}
|
72
|
+
});
|
73
|
+
}
|
74
|
+
export {
|
75
|
+
B as getRevertReason,
|
76
|
+
y as parseTransactionError
|
77
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const E=require("./get_revert_reason.cjs");var g=globalThis&&globalThis.__awaiter||function(s,a,e,t){function d(o){return o instanceof e?o:new e(function(r){r(o)})}return new(e||(e=Promise))(function(o,r){function i(u){try{f(t.next(u))}catch(l){r(l)}}function n(u){try{f(t.throw(u))}catch(l){r(l)}}function f(u){u.done?o(u.value):d(u.value).then(i,n)}f((t=t.apply(s,a||[])).next())})};function h(s,a,e,t,d,o){return g(this,void 0,void 0,function*(){let r=o;r===void 0&&(t!==void 0?r=E.parseTransactionError(t):s.handleRevert&&a!==void 0&&(r=yield E.getRevertReason(s,a,d)));let i;if(r===void 0)i=new c.TransactionRevertedWithoutReasonError(e);else if(typeof r=="string")i=new c.TransactionRevertInstructionError(r,void 0,e);else if(r.customErrorName!==void 0&&r.customErrorDecodedSignature!==void 0&&r.customErrorArguments!==void 0){const n=r;i=new c.TransactionRevertWithCustomError(n.reason,n.customErrorName,n.customErrorDecodedSignature,n.customErrorArguments,n.signature,e,n.data)}else i=new c.TransactionRevertInstructionError(r.reason,r.signature,e,r.data);return i})}exports.getTransactionError=h;
|
@@ -0,0 +1,50 @@
|
|
1
|
+
import { TransactionRevertedWithoutReasonError as m, TransactionRevertInstructionError as l, TransactionRevertWithCustomError as h } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
2
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import { parseTransactionError as E, getRevertReason as g } from "./get_revert_reason.js";
|
4
|
+
var w = globalThis && globalThis.__awaiter || function(s, f, e, o) {
|
5
|
+
function d(t) {
|
6
|
+
return t instanceof e ? t : new e(function(n) {
|
7
|
+
n(t);
|
8
|
+
});
|
9
|
+
}
|
10
|
+
return new (e || (e = Promise))(function(t, n) {
|
11
|
+
function i(u) {
|
12
|
+
try {
|
13
|
+
a(o.next(u));
|
14
|
+
} catch (c) {
|
15
|
+
n(c);
|
16
|
+
}
|
17
|
+
}
|
18
|
+
function r(u) {
|
19
|
+
try {
|
20
|
+
a(o.throw(u));
|
21
|
+
} catch (c) {
|
22
|
+
n(c);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
function a(u) {
|
26
|
+
u.done ? t(u.value) : d(u.value).then(i, r);
|
27
|
+
}
|
28
|
+
a((o = o.apply(s, f || [])).next());
|
29
|
+
});
|
30
|
+
};
|
31
|
+
function y(s, f, e, o, d, t) {
|
32
|
+
return w(this, void 0, void 0, function* () {
|
33
|
+
let n = t;
|
34
|
+
n === void 0 && (o !== void 0 ? n = E(o) : s.handleRevert && f !== void 0 && (n = yield g(s, f, d)));
|
35
|
+
let i;
|
36
|
+
if (n === void 0)
|
37
|
+
i = new m(e);
|
38
|
+
else if (typeof n == "string")
|
39
|
+
i = new l(n, void 0, e);
|
40
|
+
else if (n.customErrorName !== void 0 && n.customErrorDecodedSignature !== void 0 && n.customErrorArguments !== void 0) {
|
41
|
+
const r = n;
|
42
|
+
i = new h(r.reason, r.customErrorName, r.customErrorDecodedSignature, r.customErrorArguments, r.signature, e, r.data);
|
43
|
+
} else
|
44
|
+
i = new l(n.reason, n.signature, e, n.data);
|
45
|
+
return i;
|
46
|
+
});
|
47
|
+
}
|
48
|
+
export {
|
49
|
+
y as getTransactionError
|
50
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const P=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 c=require("../../../../web3-validator/lib/esm/validation/object.cjs"),p=require("../rpc_method_wrappers.cjs"),G=require("./transaction_builder.cjs"),d=require("../../../../web3-utils/lib/esm/formatter.cjs");var g=globalThis&&globalThis.__awaiter||function(i,n,r,e){function o(t){return t instanceof r?t:new r(function(a){a(t)})}return new(r||(r=Promise))(function(t,a){function u(s){try{f(e.next(s))}catch(l){a(l)}}function y(s){try{f(e.throw(s))}catch(l){a(l)}}function f(s){s.done?t(s.value):o(s.value).then(u,y)}f((e=e.apply(i,n||[])).next())})};function h(i,n,r){var e,o,t;return g(this,void 0,void 0,function*(){const a=yield p.getBlock(n,n.defaultBlock,!1,r);if(c.isNullish(a.baseFeePerGas))throw new P.Eip1559NotSupportedError;if(!c.isNullish(i.gasPrice)){const u=d.format({format:"uint"},i.gasPrice,r);return{maxPriorityFeePerGas:u,maxFeePerGas:u}}return{maxPriorityFeePerGas:d.format({format:"uint"},(e=i.maxPriorityFeePerGas)!==null&&e!==void 0?e:n.defaultMaxPriorityFeePerGas,r),maxFeePerGas:d.format({format:"uint"},(o=i.maxFeePerGas)!==null&&o!==void 0?o:BigInt(a.baseFeePerGas)*BigInt(2)+BigInt((t=i.maxPriorityFeePerGas)!==null&&t!==void 0?t:n.defaultMaxPriorityFeePerGas),r)}})}function m(i,n,r){return g(this,void 0,void 0,function*(){const e=G.getTransactionType(i,n);if(!c.isNullish(e)){if(e.startsWith("-"))throw new P.UnsupportedTransactionTypeError(e);if(Number(e)<0||Number(e)>127)throw new P.UnsupportedTransactionTypeError(e);if(c.isNullish(i.gasPrice)&&(e==="0x0"||e==="0x1"))return{gasPrice:yield p.getGasPrice(n,r),maxPriorityFeePerGas:void 0,maxFeePerGas:void 0};if(e==="0x2")return Object.assign({gasPrice:void 0},yield h(i,n,r))}})}exports.getTransactionGasPricing=m;
|
@@ -0,0 +1,79 @@
|
|
1
|
+
import { UnsupportedTransactionTypeError as P, Eip1559NotSupportedError as G } 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 c } from "../../../../web3-validator/lib/esm/validation/object.js";
|
9
|
+
import { getGasPrice as y, getBlock as g } from "../rpc_method_wrappers.js";
|
10
|
+
import { getTransactionType as h } from "./transaction_builder.js";
|
11
|
+
import { format as m } from "../../../../web3-utils/lib/esm/formatter.js";
|
12
|
+
var p = globalThis && globalThis.__awaiter || function(r, t, e, i) {
|
13
|
+
function s(o) {
|
14
|
+
return o instanceof e ? o : new e(function(n) {
|
15
|
+
n(o);
|
16
|
+
});
|
17
|
+
}
|
18
|
+
return new (e || (e = Promise))(function(o, n) {
|
19
|
+
function f(a) {
|
20
|
+
try {
|
21
|
+
u(i.next(a));
|
22
|
+
} catch (d) {
|
23
|
+
n(d);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
function l(a) {
|
27
|
+
try {
|
28
|
+
u(i.throw(a));
|
29
|
+
} catch (d) {
|
30
|
+
n(d);
|
31
|
+
}
|
32
|
+
}
|
33
|
+
function u(a) {
|
34
|
+
a.done ? o(a.value) : s(a.value).then(f, l);
|
35
|
+
}
|
36
|
+
u((i = i.apply(r, t || [])).next());
|
37
|
+
});
|
38
|
+
};
|
39
|
+
function x(r, t, e) {
|
40
|
+
var i, s, o;
|
41
|
+
return p(this, void 0, void 0, function* () {
|
42
|
+
const n = yield g(t, t.defaultBlock, !1, e);
|
43
|
+
if (c(n.baseFeePerGas))
|
44
|
+
throw new G();
|
45
|
+
if (!c(r.gasPrice)) {
|
46
|
+
const f = m({ format: "uint" }, r.gasPrice, e);
|
47
|
+
return {
|
48
|
+
maxPriorityFeePerGas: f,
|
49
|
+
maxFeePerGas: f
|
50
|
+
};
|
51
|
+
}
|
52
|
+
return {
|
53
|
+
maxPriorityFeePerGas: m({ format: "uint" }, (i = r.maxPriorityFeePerGas) !== null && i !== void 0 ? i : t.defaultMaxPriorityFeePerGas, e),
|
54
|
+
maxFeePerGas: m({ format: "uint" }, (s = r.maxFeePerGas) !== null && s !== void 0 ? s : BigInt(n.baseFeePerGas) * BigInt(2) + BigInt((o = r.maxPriorityFeePerGas) !== null && o !== void 0 ? o : t.defaultMaxPriorityFeePerGas), e)
|
55
|
+
};
|
56
|
+
});
|
57
|
+
}
|
58
|
+
function M(r, t, e) {
|
59
|
+
return p(this, void 0, void 0, function* () {
|
60
|
+
const i = h(r, t);
|
61
|
+
if (!c(i)) {
|
62
|
+
if (i.startsWith("-"))
|
63
|
+
throw new P(i);
|
64
|
+
if (Number(i) < 0 || Number(i) > 127)
|
65
|
+
throw new P(i);
|
66
|
+
if (c(r.gasPrice) && (i === "0x0" || i === "0x1"))
|
67
|
+
return {
|
68
|
+
gasPrice: yield y(t, e),
|
69
|
+
maxPriorityFeePerGas: void 0,
|
70
|
+
maxFeePerGas: void 0
|
71
|
+
};
|
72
|
+
if (i === "0x2")
|
73
|
+
return Object.assign({ gasPrice: void 0 }, yield x(r, t, e));
|
74
|
+
}
|
75
|
+
});
|
76
|
+
}
|
77
|
+
export {
|
78
|
+
M as getTransactionGasPricing
|
79
|
+
};
|
@@ -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");require("../../../../web3-eth-accounts/lib/esm/account.cjs");const b=require("../../../../web3-eth-accounts/lib/esm/common/common.cjs");require("../../../../web3-eth-accounts/lib/esm/common/enums.cjs");require("../../../../web3-eth-accounts/lib/esm/common/types.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 f=require("../../../../web3-validator/lib/esm/validation/object.cjs");require("../../../../web3-eth-accounts/lib/esm/tx/constants.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");const j=require("../../../../web3-eth-accounts/lib/esm/tx/transactionFactory.cjs"),w=require("../validation.cjs"),G=require("./format_transaction.cjs"),L=require("./transaction_builder.cjs"),h=require("../../../../web3-utils/lib/esm/converters.cjs");var O=globalThis&&globalThis.__awaiter||function(e,i,o,l){function m(d){return d instanceof o?d:new o(function(u){u(d)})}return new(o||(o=Promise))(function(d,u){function s(r){try{v(l.next(r))}catch(a){u(a)}}function c(r){try{v(l.throw(r))}catch(a){u(a)}}function v(r){r.done?d(r.value):m(r.value).then(s,c)}v((l=l.apply(e,i||[])).next())})};const A=e=>{var i,o;return{nonce:e.nonce,gasPrice:e.gasPrice,gasLimit:(i=e.gasLimit)!==null&&i!==void 0?i:e.gas,to:e.to,value:e.value,data:(o=e.data)!==null&&o!==void 0?o:e.input,type:e.type,chainId:e.chainId,accessList:e.accessList,maxPriorityFeePerGas:e.maxPriorityFeePerGas,maxFeePerGas:e.maxFeePerGas}},D=(e,i)=>{var o,l,m,d,u,s,c,v,r,a,_,t,q,k,p,T,g,y;const C=!f.isNullish(e.chain)&&!f.isNullish(e.hardfork)||!f.isNullish(e.common);let n;if(!C)i.defaultCommon?(n=i.defaultCommon,f.isNullish(n.hardfork)&&(n.hardfork=(o=e.hardfork)!==null&&o!==void 0?o:i.defaultHardfork),f.isNullish(n.baseChain)&&(n.baseChain=i.defaultChain)):n=b.Common.custom({name:"custom-network",chainId:h.toNumber(e.chainId),networkId:f.isNullish(e.networkId)?void 0:h.toNumber(e.networkId),defaultHardfork:(l=e.hardfork)!==null&&l!==void 0?l:i.defaultHardfork},{baseChain:i.defaultChain});else{const I=(s=(u=(d=(m=e==null?void 0:e.common)===null||m===void 0?void 0:m.customChain)===null||d===void 0?void 0:d.name)!==null&&u!==void 0?u:e.chain)!==null&&s!==void 0?s:"custom-network",F=h.toNumber((r=(v=(c=e==null?void 0:e.common)===null||c===void 0?void 0:c.customChain)===null||v===void 0?void 0:v.chainId)!==null&&r!==void 0?r:e==null?void 0:e.chainId),N=h.toNumber((t=(_=(a=e==null?void 0:e.common)===null||a===void 0?void 0:a.customChain)===null||_===void 0?void 0:_.networkId)!==null&&t!==void 0?t:e==null?void 0:e.networkId),P=(p=(k=(q=e==null?void 0:e.common)===null||q===void 0?void 0:q.hardfork)!==null&&k!==void 0?k:e==null?void 0:e.hardfork)!==null&&p!==void 0?p:i.defaultHardfork,H=(y=(g=(T=e.common)===null||T===void 0?void 0:T.baseChain)!==null&&g!==void 0?g:e.chain)!==null&&y!==void 0?y:i.defaultChain;F&&N&&I&&(n=b.Common.custom({name:I,chainId:F,networkId:N,defaultHardfork:P},{baseChain:H}))}return{common:n}},E=(e,i,o,l=!1,m=!0)=>O(void 0,void 0,void 0,function*(){const d=yield L.transactionBuilder({transaction:e,web3Context:i,privateKey:o,fillGasPrice:l,fillGasLimit:m}),u=G.formatTransaction(d,S.ETH_DATA_FORMAT);return w.validateTransactionForSigning(u),j.TransactionFactory.fromTxData(A(u),D(u,i))});exports.prepareTransactionForSigning=E;
|
@@ -0,0 +1,102 @@
|
|
1
|
+
import { ETH_DATA_FORMAT as j } 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 "../../../../web3-eth-accounts/lib/esm/account.js";
|
6
|
+
import { Common as P } from "../../../../web3-eth-accounts/lib/esm/common/common.js";
|
7
|
+
import "../../../../web3-eth-accounts/lib/esm/common/enums.js";
|
8
|
+
import "../../../../web3-eth-accounts/lib/esm/common/types.js";
|
9
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
10
|
+
import "../../../../web3-validator/lib/esm/formats.js";
|
11
|
+
import "../../../../web3-validator/lib/esm/default_validator.js";
|
12
|
+
import { isNullish as h } from "../../../../web3-validator/lib/esm/validation/object.js";
|
13
|
+
import "../../../../web3-eth-accounts/lib/esm/tx/constants.js";
|
14
|
+
import "../../../../web3-eth-accounts/lib/esm/tx/eip1559Transaction.js";
|
15
|
+
import "../../../../web3-eth-accounts/lib/esm/tx/eip2930Transaction.js";
|
16
|
+
import "../../../../@ethereumjs/rlp/dist/index.js";
|
17
|
+
import "../../../../web3-eth-accounts/lib/esm/tx/types.js";
|
18
|
+
import { TransactionFactory as A } from "../../../../web3-eth-accounts/lib/esm/tx/transactionFactory.js";
|
19
|
+
import { validateTransactionForSigning as D } from "../validation.js";
|
20
|
+
import { formatTransaction as E } from "./format_transaction.js";
|
21
|
+
import { transactionBuilder as O } from "./transaction_builder.js";
|
22
|
+
import { toNumber as _ } from "../../../../web3-utils/lib/esm/converters.js";
|
23
|
+
var S = globalThis && globalThis.__awaiter || function(o, i, d, u) {
|
24
|
+
function f(m) {
|
25
|
+
return m instanceof d ? m : new d(function(l) {
|
26
|
+
l(m);
|
27
|
+
});
|
28
|
+
}
|
29
|
+
return new (d || (d = Promise))(function(m, l) {
|
30
|
+
function p(e) {
|
31
|
+
try {
|
32
|
+
v(u.next(e));
|
33
|
+
} catch (n) {
|
34
|
+
l(n);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
function a(e) {
|
38
|
+
try {
|
39
|
+
v(u.throw(e));
|
40
|
+
} catch (n) {
|
41
|
+
l(n);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
function v(e) {
|
45
|
+
e.done ? m(e.value) : f(e.value).then(p, a);
|
46
|
+
}
|
47
|
+
v((u = u.apply(o, i || [])).next());
|
48
|
+
});
|
49
|
+
};
|
50
|
+
const b = (o) => {
|
51
|
+
var i, d;
|
52
|
+
return {
|
53
|
+
nonce: o.nonce,
|
54
|
+
gasPrice: o.gasPrice,
|
55
|
+
gasLimit: (i = o.gasLimit) !== null && i !== void 0 ? i : o.gas,
|
56
|
+
to: o.to,
|
57
|
+
value: o.value,
|
58
|
+
data: (d = o.data) !== null && d !== void 0 ? d : o.input,
|
59
|
+
type: o.type,
|
60
|
+
chainId: o.chainId,
|
61
|
+
accessList: o.accessList,
|
62
|
+
maxPriorityFeePerGas: o.maxPriorityFeePerGas,
|
63
|
+
maxFeePerGas: o.maxFeePerGas
|
64
|
+
};
|
65
|
+
}, N = (o, i) => {
|
66
|
+
var d, u, f, m, l, p, a, v, e, n, c, k, t, s, T, g, I, y;
|
67
|
+
const w = !h(o.chain) && !h(o.hardfork) || !h(o.common);
|
68
|
+
let r;
|
69
|
+
if (!w)
|
70
|
+
i.defaultCommon ? (r = i.defaultCommon, h(r.hardfork) && (r.hardfork = (d = o.hardfork) !== null && d !== void 0 ? d : i.defaultHardfork), h(r.baseChain) && (r.baseChain = i.defaultChain)) : r = P.custom({
|
71
|
+
name: "custom-network",
|
72
|
+
chainId: _(o.chainId),
|
73
|
+
networkId: h(o.networkId) ? void 0 : _(o.networkId),
|
74
|
+
defaultHardfork: (u = o.hardfork) !== null && u !== void 0 ? u : i.defaultHardfork
|
75
|
+
}, {
|
76
|
+
baseChain: i.defaultChain
|
77
|
+
});
|
78
|
+
else {
|
79
|
+
const F = (p = (l = (m = (f = o == null ? void 0 : o.common) === null || f === void 0 ? void 0 : f.customChain) === null || m === void 0 ? void 0 : m.name) !== null && l !== void 0 ? l : o.chain) !== null && p !== void 0 ? p : "custom-network", C = _((e = (v = (a = o == null ? void 0 : o.common) === null || a === void 0 ? void 0 : a.customChain) === null || v === void 0 ? void 0 : v.chainId) !== null && e !== void 0 ? e : o == null ? void 0 : o.chainId), H = _((k = (c = (n = o == null ? void 0 : o.common) === null || n === void 0 ? void 0 : n.customChain) === null || c === void 0 ? void 0 : c.networkId) !== null && k !== void 0 ? k : o == null ? void 0 : o.networkId), G = (T = (s = (t = o == null ? void 0 : o.common) === null || t === void 0 ? void 0 : t.hardfork) !== null && s !== void 0 ? s : o == null ? void 0 : o.hardfork) !== null && T !== void 0 ? T : i.defaultHardfork, L = (y = (I = (g = o.common) === null || g === void 0 ? void 0 : g.baseChain) !== null && I !== void 0 ? I : o.chain) !== null && y !== void 0 ? y : i.defaultChain;
|
80
|
+
C && H && F && (r = P.custom({
|
81
|
+
name: F,
|
82
|
+
chainId: C,
|
83
|
+
networkId: H,
|
84
|
+
defaultHardfork: G
|
85
|
+
}, {
|
86
|
+
baseChain: L
|
87
|
+
}));
|
88
|
+
}
|
89
|
+
return { common: r };
|
90
|
+
}, ro = (o, i, d, u = !1, f = !0) => S(void 0, void 0, void 0, function* () {
|
91
|
+
const m = yield O({
|
92
|
+
transaction: o,
|
93
|
+
web3Context: i,
|
94
|
+
privateKey: d,
|
95
|
+
fillGasPrice: u,
|
96
|
+
fillGasLimit: f
|
97
|
+
}), l = E(m, j);
|
98
|
+
return D(l), A.fromTxData(b(l), N(l, i));
|
99
|
+
});
|
100
|
+
export {
|
101
|
+
ro as prepareTransactionForSigning
|
102
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const T=require("../constants.cjs"),h=require("../rpc_method_wrappers.cjs"),_=require("../../../../web3-utils/lib/esm/promise_helpers.cjs");var v=globalThis&&globalThis.__awaiter||function(r,u,t,o){function s(n){return n instanceof t?n:new t(function(c){c(n)})}return new(t||(t=Promise))(function(n,c){function a(e){try{l(o.next(e))}catch(i){c(i)}}function d(e){try{l(o.throw(e))}catch(i){c(i)}}function l(e){e.done?n(e.value):s(e.value).then(a,d)}l((o=o.apply(r,u||[])).next())})};function p(r,u,t){const o=r.transactionPollingInterval,[s,n]=_.rejectIfConditionAtInterval(()=>v(this,void 0,void 0,function*(){let a;try{a=yield h.getBlockNumber(r,T.NUMBER_DATA_FORMAT)}catch(l){console.warn("An error happen while trying to get the block number",l);return}const d=a-u;if(d>=r.transactionBlockTimeout)return new m.TransactionBlockTimeoutError({starterBlockNumber:u,numberOfBlocks:d,transactionHash:t})}),o);return[n,{clean:()=>{clearInterval(s)}}]}function y(r,u,t){var o;return v(this,void 0,void 0,function*(){let s=!0,n,c;function a(l,e){e&&console.warn("error happened at subscription. So revert to polling...",e),c.clean(),s=!1;const[i,f]=p(r,u,t);c.clean=f.clean,i.catch(g=>l(g))}try{n=yield(o=r.subscriptionManager)===null||o===void 0?void 0:o.subscribe("newHeads"),c={clean:()=>{var l;n.id&&((l=r.subscriptionManager)===null||l===void 0||l.removeSubscription(n).then(()=>{}).catch(()=>{}))}}}catch{return p(r,u,t)}return[new Promise((l,e)=>{try{n.on("data",i=>{if(s=!1,!(i!=null&&i.number))return;const f=Number(BigInt(i.number)-BigInt(u));f>=r.transactionBlockTimeout&&e(new m.TransactionBlockTimeoutError({starterBlockNumber:u,numberOfBlocks:f,transactionHash:t}))}),n.on("error",i=>{a(e,i)})}catch(i){a(e,i)}setTimeout(()=>{s&&a(e)},r.blockHeaderTimeout*1e3)}),c]})}function b(r,u){var t,o;return v(this,void 0,void 0,function*(){const{provider:s}=r.requestManager;let n;const c=yield h.getBlockNumber(r,T.NUMBER_DATA_FORMAT);return!((o=(t=s).supportsSubscriptions)===null||o===void 0)&&o.call(t)&&r.enableExperimentalFeatures.useSubscriptionWhenCheckingBlockTimeout?n=yield y(r,c,u):n=p(r,c,u),n})}exports.rejectIfBlockTimeout=b;
|
@@ -0,0 +1,109 @@
|
|
1
|
+
import { TransactionBlockTimeoutError as v } from "../../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
2
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import { NUMBER_DATA_FORMAT as h } from "../constants.js";
|
4
|
+
import { getBlockNumber as T } from "../rpc_method_wrappers.js";
|
5
|
+
import { rejectIfConditionAtInterval as y } from "../../../../web3-utils/lib/esm/promise_helpers.js";
|
6
|
+
var m = globalThis && globalThis.__awaiter || function(n, u, t, i) {
|
7
|
+
function a(r) {
|
8
|
+
return r instanceof t ? r : new t(function(c) {
|
9
|
+
c(r);
|
10
|
+
});
|
11
|
+
}
|
12
|
+
return new (t || (t = Promise))(function(r, c) {
|
13
|
+
function s(o) {
|
14
|
+
try {
|
15
|
+
l(i.next(o));
|
16
|
+
} catch (e) {
|
17
|
+
c(e);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
function f(o) {
|
21
|
+
try {
|
22
|
+
l(i.throw(o));
|
23
|
+
} catch (e) {
|
24
|
+
c(e);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
function l(o) {
|
28
|
+
o.done ? r(o.value) : a(o.value).then(s, f);
|
29
|
+
}
|
30
|
+
l((i = i.apply(n, u || [])).next());
|
31
|
+
});
|
32
|
+
};
|
33
|
+
function p(n, u, t) {
|
34
|
+
const i = n.transactionPollingInterval, [a, r] = y(() => m(this, void 0, void 0, function* () {
|
35
|
+
let s;
|
36
|
+
try {
|
37
|
+
s = yield T(n, h);
|
38
|
+
} catch (l) {
|
39
|
+
console.warn("An error happen while trying to get the block number", l);
|
40
|
+
return;
|
41
|
+
}
|
42
|
+
const f = s - u;
|
43
|
+
if (f >= n.transactionBlockTimeout)
|
44
|
+
return new v({
|
45
|
+
starterBlockNumber: u,
|
46
|
+
numberOfBlocks: f,
|
47
|
+
transactionHash: t
|
48
|
+
});
|
49
|
+
}), i);
|
50
|
+
return [r, { clean: () => {
|
51
|
+
clearInterval(a);
|
52
|
+
} }];
|
53
|
+
}
|
54
|
+
function _(n, u, t) {
|
55
|
+
var i;
|
56
|
+
return m(this, void 0, void 0, function* () {
|
57
|
+
let a = !0, r, c;
|
58
|
+
function s(l, o) {
|
59
|
+
o && console.warn("error happened at subscription. So revert to polling...", o), c.clean(), a = !1;
|
60
|
+
const [e, d] = p(n, u, t);
|
61
|
+
c.clean = d.clean, e.catch((g) => l(g));
|
62
|
+
}
|
63
|
+
try {
|
64
|
+
r = yield (i = n.subscriptionManager) === null || i === void 0 ? void 0 : i.subscribe("newHeads"), c = {
|
65
|
+
clean: () => {
|
66
|
+
var l;
|
67
|
+
r.id && ((l = n.subscriptionManager) === null || l === void 0 || l.removeSubscription(r).then(() => {
|
68
|
+
}).catch(() => {
|
69
|
+
}));
|
70
|
+
}
|
71
|
+
};
|
72
|
+
} catch {
|
73
|
+
return p(n, u, t);
|
74
|
+
}
|
75
|
+
return [new Promise((l, o) => {
|
76
|
+
try {
|
77
|
+
r.on("data", (e) => {
|
78
|
+
if (a = !1, !(e != null && e.number))
|
79
|
+
return;
|
80
|
+
const d = Number(BigInt(e.number) - BigInt(u));
|
81
|
+
d >= n.transactionBlockTimeout && o(new v({
|
82
|
+
starterBlockNumber: u,
|
83
|
+
numberOfBlocks: d,
|
84
|
+
transactionHash: t
|
85
|
+
}));
|
86
|
+
}), r.on("error", (e) => {
|
87
|
+
s(o, e);
|
88
|
+
});
|
89
|
+
} catch (e) {
|
90
|
+
s(o, e);
|
91
|
+
}
|
92
|
+
setTimeout(() => {
|
93
|
+
a && s(o);
|
94
|
+
}, n.blockHeaderTimeout * 1e3);
|
95
|
+
}), c];
|
96
|
+
});
|
97
|
+
}
|
98
|
+
function A(n, u) {
|
99
|
+
var t, i;
|
100
|
+
return m(this, void 0, void 0, function* () {
|
101
|
+
const { provider: a } = n.requestManager;
|
102
|
+
let r;
|
103
|
+
const c = yield T(n, h);
|
104
|
+
return !((i = (t = a).supportsSubscriptions) === null || i === void 0) && i.call(t) && n.enableExperimentalFeatures.useSubscriptionWhenCheckingBlockTimeout ? r = yield _(n, c, u) : r = p(n, c, u), r;
|
105
|
+
});
|
106
|
+
}
|
107
|
+
export {
|
108
|
+
A as rejectIfBlockTimeout
|
109
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=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 f=require("../../../../web3-errors/lib/esm/errors/contract_errors.cjs"),h=require("../../../../web3-errors/lib/esm/errors/transaction_errors.cjs"),b=require("../../../../web3-errors/lib/esm/errors/response_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 d=require("../../../../web3-validator/lib/esm/validation/object.cjs"),p=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 T=require("./get_transaction_gas_pricing.cjs"),g=require("./try_send_transaction.cjs"),C=require("./watch_transaction_for_confirmations.cjs"),q=require("../constants.cjs"),v=require("./get_transaction_error.cjs"),w=require("./get_revert_reason.cjs"),x=require("./decoding.cjs");var a=globalThis&&globalThis.__awaiter||function(l,t,n,i){function e(r){return r instanceof n?r:new n(function(o){o(r)})}return new(n||(n=Promise))(function(r,o){function m(s){try{c(i.next(s))}catch(u){o(u)}}function _(s){try{c(i.throw(s))}catch(u){o(u)}}function c(s){s.done?r(s.value):e(s.value).then(m,_)}c((i=i.apply(l,t||[])).next())})};class R{constructor({options:t,web3Context:n,promiEvent:i,returnFormat:e}){this.options={checkRevertBeforeSending:!0},this.options=t,this.web3Context=n,this.promiEvent=i,this.returnFormat=e}getReceiptWithEvents(t){var n,i;const e=Object.assign({},t??{});if(!((n=this.options)===null||n===void 0)&&n.contractAbi&&e.logs&&e.logs.length>0){e.events={};for(const r of e.logs){const o=x.decodeEventABI(q.ALL_EVENTS_ABI,r,(i=this.options)===null||i===void 0?void 0:i.contractAbi,this.returnFormat);o.event&&(e.events[o.event]=o)}}return e}checkRevertBeforeSending(t){return a(this,void 0,void 0,function*(){if(this.options.checkRevertBeforeSending!==!1){const n=yield w.getRevertReason(this.web3Context,t,this.options.contractAbi);if(n!==void 0)throw yield v.getTransactionError(this.web3Context,t,void 0,void 0,this.options.contractAbi,n)}})}emitSending(t){this.promiEvent.listenerCount("sending")>0&&this.promiEvent.emit("sending",t)}populateGasPrice({transactionFormatted:t,transaction:n}){var i;return a(this,void 0,void 0,function*(){let e=t;return!(!((i=this.options)===null||i===void 0)&&i.ignoreGasPricing)&&d.isNullish(t.gasPrice)&&(d.isNullish(n.maxPriorityFeePerGas)||d.isNullish(n.maxFeePerGas))&&(e=Object.assign(Object.assign({},t),yield T.getTransactionGasPricing(t,this.web3Context,E.ETH_DATA_FORMAT))),e})}signAndSend({wallet:t,tx:n}){return a(this,void 0,void 0,function*(){if(t){const i=yield t.signTransaction(n);return g.trySendTransaction(this.web3Context,()=>a(this,void 0,void 0,function*(){return p.sendRawTransaction(this.web3Context.requestManager,i.rawTransaction)}),i.transactionHash)}return g.trySendTransaction(this.web3Context,()=>a(this,void 0,void 0,function*(){return p.sendTransaction(this.web3Context.requestManager,n)}))})}emitSent(t){this.promiEvent.listenerCount("sent")>0&&this.promiEvent.emit("sent",t)}emitTransactionHash(t){this.promiEvent.listenerCount("transactionHash")>0&&this.promiEvent.emit("transactionHash",t)}emitReceipt(t){this.promiEvent.listenerCount("receipt")>0&&this.promiEvent.emit("receipt",t)}handleError({error:t,tx:n}){var i;return a(this,void 0,void 0,function*(){let e=t;return e instanceof f.ContractExecutionError&&this.web3Context.handleRevert&&(e=yield v.getTransactionError(this.web3Context,n,void 0,void 0,(i=this.options)===null||i===void 0?void 0:i.contractAbi)),(e instanceof b.InvalidResponseError||e instanceof f.ContractExecutionError||e instanceof h.TransactionRevertWithCustomError||e instanceof h.TransactionRevertedWithoutReasonError||e instanceof h.TransactionRevertInstructionError)&&this.promiEvent.listenerCount("error")>0&&this.promiEvent.emit("error",e),e})}emitConfirmation({receipt:t,transactionHash:n}){this.promiEvent.listenerCount("confirmation")>0&&C.watchTransactionForConfirmations(this.web3Context,this.promiEvent,t,n,this.returnFormat)}handleResolve({receipt:t,tx:n}){var i,e,r;return a(this,void 0,void 0,function*(){if(!((i=this.options)===null||i===void 0)&&i.transactionResolver)return(e=this.options)===null||e===void 0?void 0:e.transactionResolver(t);if(t.status===BigInt(0)){const o=yield v.getTransactionError(this.web3Context,n,t,void 0,(r=this.options)===null||r===void 0?void 0:r.contractAbi);throw this.promiEvent.listenerCount("error")>0&&this.promiEvent.emit("error",o),o}else return t})}}exports.SendTxHelper=R;
|