@ozdao/prometheus-framework 0.1.66 → 0.1.68
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_virtual/_commonjsHelpers.cjs +1 -1
- package/dist/_virtual/_commonjsHelpers.js +5 -3
- package/dist/_virtual/browser-ponyfill.cjs +1 -0
- package/dist/_virtual/browser-ponyfill.js +4 -0
- package/dist/_virtual/crc32.cjs +1 -0
- package/dist/_virtual/crc32.js +4 -0
- package/dist/_virtual/events.cjs +1 -0
- package/dist/_virtual/events.js +4 -0
- package/dist/_virtual/index.cjs +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/node_modules/@adraffy/ens-normalize/dist/index.cjs +1 -0
- package/dist/node_modules/@adraffy/ens-normalize/dist/index.js +557 -0
- package/dist/node_modules/@ethereumjs/rlp/dist/index.cjs +1 -0
- package/dist/node_modules/@ethereumjs/rlp/dist/index.js +164 -0
- package/dist/node_modules/@noble/curves/esm/_shortw_utils.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/_shortw_utils.js +19 -0
- package/dist/node_modules/@noble/curves/esm/abstract/curve.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/abstract/curve.js +88 -0
- package/dist/node_modules/@noble/curves/esm/abstract/modular.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/abstract/modular.js +210 -0
- package/dist/node_modules/@noble/curves/esm/abstract/utils.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/abstract/utils.js +178 -0
- package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/abstract/weierstrass.js +581 -0
- package/dist/node_modules/@noble/curves/esm/secp256k1.cjs +1 -0
- package/dist/node_modules/@noble/curves/esm/secp256k1.js +47 -0
- package/dist/node_modules/@noble/hashes/esm/_assert.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/_assert.js +48 -0
- package/dist/node_modules/@noble/hashes/esm/_sha2.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/_sha2.js +61 -0
- package/dist/node_modules/@noble/hashes/esm/_u64.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/_u64.js +48 -0
- package/dist/node_modules/@noble/hashes/esm/crypto.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/crypto.js +4 -0
- package/dist/node_modules/@noble/hashes/esm/hmac.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/hmac.js +43 -0
- package/dist/node_modules/@noble/hashes/esm/pbkdf2.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/pbkdf2.js +32 -0
- package/dist/node_modules/@noble/hashes/esm/scrypt.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/scrypt.js +73 -0
- package/dist/node_modules/@noble/hashes/esm/sha256.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/sha256.js +120 -0
- package/dist/node_modules/@noble/hashes/esm/sha3.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/sha3.js +118 -0
- package/dist/node_modules/@noble/hashes/esm/sha512.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/sha512.js +144 -0
- package/dist/node_modules/@noble/hashes/esm/utils.cjs +1 -0
- package/dist/node_modules/@noble/hashes/esm/utils.js +64 -0
- package/dist/node_modules/abitype/dist/chunk-NHABU752.cjs +1 -0
- package/dist/node_modules/abitype/dist/chunk-NHABU752.js +4 -0
- package/dist/node_modules/abitype/dist/chunk-WP7KDV47.cjs +1 -0
- package/dist/node_modules/abitype/dist/chunk-WP7KDV47.js +11 -0
- package/dist/node_modules/abitype/dist/index.cjs +2 -0
- package/dist/node_modules/abitype/dist/index.js +299 -0
- package/dist/node_modules/crc-32/crc32.cjs +1 -0
- package/dist/node_modules/crc-32/crc32.js +51 -0
- package/dist/node_modules/cross-fetch/dist/browser-ponyfill.cjs +2 -0
- package/dist/node_modules/cross-fetch/dist/browser-ponyfill.js +320 -0
- package/dist/node_modules/ethereum-cryptography/esm/aes.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/aes.js +61 -0
- package/dist/node_modules/ethereum-cryptography/esm/keccak.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/keccak.js +9 -0
- package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/pbkdf2.js +15 -0
- package/dist/node_modules/ethereum-cryptography/esm/random.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/random.js +7 -0
- package/dist/node_modules/ethereum-cryptography/esm/scrypt.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/scrypt.js +8 -0
- package/dist/node_modules/ethereum-cryptography/esm/secp256k1.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/secp256k1.js +4 -0
- package/dist/node_modules/ethereum-cryptography/esm/utils.cjs +1 -0
- package/dist/node_modules/ethereum-cryptography/esm/utils.js +35 -0
- package/dist/node_modules/events/events.cjs +1 -0
- package/dist/node_modules/events/events.js +229 -0
- package/dist/node_modules/isomorphic-ws/browser.cjs +1 -0
- package/dist/node_modules/isomorphic-ws/browser.js +6 -0
- package/dist/node_modules/setimmediate/setImmediate.cjs +1 -0
- package/dist/node_modules/setimmediate/setImmediate.js +99 -0
- package/dist/node_modules/web3/lib/esm/abi.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/abi.js +24 -0
- package/dist/node_modules/web3/lib/esm/accounts.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/accounts.js +101 -0
- package/dist/node_modules/web3/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/index.js +76 -0
- package/dist/node_modules/web3/lib/esm/version.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/version.js +4 -0
- package/dist/node_modules/web3/lib/esm/web3.cjs +1 -0
- package/dist/node_modules/web3/lib/esm/web3.js +89 -0
- package/dist/node_modules/web3-core/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/utils.js +14 -0
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_batch_request.js +83 -0
- package/dist/node_modules/web3-core/lib/esm/web3_config.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_config.js +343 -0
- package/dist/node_modules/web3-core/lib/esm/web3_context.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_context.js +227 -0
- package/dist/node_modules/web3-core/lib/esm/web3_event_emitter.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_event_emitter.js +39 -0
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_promi_event.js +58 -0
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_request_manager.js +240 -0
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_subscription_manager.js +155 -0
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.cjs +1 -0
- package/dist/node_modules/web3-core/lib/esm/web3_subscriptions.js +111 -0
- package/dist/node_modules/web3-errors/lib/esm/error_codes.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/error_codes.js +106 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/account_errors.js +58 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/connection_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/connection_errors.js +37 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/contract_errors.js +49 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/core_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/core_errors.js +16 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/ens_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/ens_errors.js +16 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/generic_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/generic_errors.js +49 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/provider_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/provider_errors.js +28 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/response_errors.js +30 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/rpc_error_messages.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/rpc_error_messages.js +161 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/rpc_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/rpc_errors.js +129 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/schema_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/schema_errors.js +13 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/signature_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/signature_errors.js +10 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.cjs +5 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/transaction_errors.js +256 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/errors/utils_errors.js +76 -0
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.cjs +1 -0
- package/dist/node_modules/web3-errors/lib/esm/web3_error_base.js +28 -0
- package/dist/node_modules/web3-eth/lib/esm/constants.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/constants.js +14 -0
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/rpc_method_wrappers.js +413 -0
- package/dist/node_modules/web3-eth/lib/esm/schemas.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/schemas.js +570 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/decode_signed_transaction.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/decode_signed_transaction.js +31 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/decoding.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/decoding.js +34 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/detect_transaction_type.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/detect_transaction_type.js +90 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/format_transaction.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/format_transaction.js +30 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_revert_reason.js +77 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_error.js +50 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/get_transaction_gas_pricing.js +79 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/prepare_transaction_for_signing.js +102 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/reject_if_block_timeout.js +109 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/send_tx_helper.js +143 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/transaction_builder.js +131 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/try_send_transaction.js +52 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/wait_for_transaction_receipt.js +61 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_pooling.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_pooling.js +51 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_by_subscription.js +77 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/utils/watch_transaction_for_confirmations.js +42 -0
- package/dist/node_modules/web3-eth/lib/esm/validation.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/validation.js +111 -0
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/web3_eth.js +1512 -0
- package/dist/node_modules/web3-eth/lib/esm/web3_subscriptions.cjs +1 -0
- package/dist/node_modules/web3-eth/lib/esm/web3_subscriptions.js +65 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/errors_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/errors_api.js +13 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/events_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/events_api.js +13 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/functions_api.js +20 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/logs_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/logs_api.js +14 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/api/parameters_api.js +22 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/address.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/address.js +47 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/array.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/array.js +72 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bool.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bool.js +37 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/bytes.js +66 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/index.js +59 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/number.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/number.js +85 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/numbersLimits.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/numbersLimits.js +15 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/string.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/string.js +22 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/tuple.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/tuple.js +77 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/base/utils.js +15 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/decode.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/decode.js +16 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/encode.js +23 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/coders/utils.js +58 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/decode_contract_error_data.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/decode_contract_error_data.js +18 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-abi/lib/esm/utils.js +39 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.cjs +2 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/account.js +219 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/goerli.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/goerli.js +99 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/mainnet.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/mainnet.js +115 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/sepolia.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/chains/sepolia.js +102 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/common.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/common.js +741 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1153.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1153.js +25 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1559.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/1559.js +29 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2315.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2315.js +28 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2537.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2537.js +181 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2565.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2565.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2718.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2718.js +14 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2929.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2929.js +87 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2930.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/2930.js +24 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3198.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3198.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3529.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3529.js +29 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3540.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3540.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3541.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3541.js +15 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3554.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3554.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3607.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3607.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3651.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3651.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3670.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3670.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3675.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3675.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3855.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3855.js +21 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3860.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/3860.js +26 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4345.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4345.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4399.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/4399.js +16 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/5133.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/5133.js +20 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/index.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/eips/index.js +49 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/enums.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/enums.js +27 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/arrowGlacier.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/arrowGlacier.js +14 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/berlin.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/berlin.js +10 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/byzantium.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/byzantium.js +59 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/chainstart.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/chainstart.js +441 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/constantinople.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/constantinople.js +71 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/dao.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/dao.js +13 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/grayGlacier.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/grayGlacier.js +14 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/homestead.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/homestead.js +18 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/index.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/index.js +39 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/istanbul.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/istanbul.js +90 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/london.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/london.js +10 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/merge.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/merge.js +15 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.js +10 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/muirGlacier.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/muirGlacier.js +18 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/petersburg.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/petersburg.js +42 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/shanghai.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/shanghai.js +10 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/spuriousDragon.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/spuriousDragon.js +23 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/tangerineWhistle.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/tangerineWhistle.js +46 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/types.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/types.js +7 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/common/utils.js +277 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/schemas.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/schemas.js +25 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/address.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/address.js +57 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/baseTransaction.js +272 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/constants.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/constants.js +11 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip1559Transaction.js +285 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/eip2930Transaction.js +268 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/legacyTransaction.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/legacyTransaction.js +256 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/transactionFactory.js +89 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/types.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/types.js +18 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/tx/utils.js +80 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.cjs +1 -0
- package/dist/node_modules/web3-eth-accounts/lib/esm/wallet.js +361 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/contract.js +510 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/encoding.js +80 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/index.js +27 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/log_subscription.js +36 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-contract/lib/esm/utils.js +90 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/ENSRegistry.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/ENSRegistry.js +168 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/abi/ens/PublicResolver.js +578 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/config.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/config.js +27 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/ens.js +241 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/registry.js +105 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/resolver.js +95 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-eth-ens/lib/esm/utils.js +19 -0
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.cjs +1 -0
- package/dist/node_modules/web3-eth-iban/lib/esm/iban.js +283 -0
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.cjs +1 -0
- package/dist/node_modules/web3-eth-personal/lib/esm/personal.js +265 -0
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.cjs +1 -0
- package/dist/node_modules/web3-eth-personal/lib/esm/rpc_method_wrappers.js +93 -0
- package/dist/node_modules/web3-net/lib/esm/net.cjs +1 -0
- package/dist/node_modules/web3-net/lib/esm/net.js +97 -0
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.cjs +1 -0
- package/dist/node_modules/web3-net/lib/esm/rpc_method_wrappers.js +51 -0
- package/dist/node_modules/web3-providers-http/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3-providers-http/lib/esm/index.js +98 -0
- package/dist/node_modules/web3-providers-ws/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3-providers-ws/lib/esm/index.js +70 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.cjs +1 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/eth_rpc_methods.js +407 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.cjs +1 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/net_rpc_methods.js +56 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.cjs +1 -0
- package/dist/node_modules/web3-rpc-methods/lib/esm/personal_rpc_methods.js +84 -0
- package/dist/node_modules/web3-types/lib/esm/data_format_types.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/data_format_types.js +15 -0
- package/dist/node_modules/web3-types/lib/esm/eth_types.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/eth_types.js +12 -0
- package/dist/node_modules/web3-types/lib/esm/primitives_types.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/primitives_types.js +4 -0
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/web3_base_provider.js +89 -0
- package/dist/node_modules/web3-types/lib/esm/web3_base_wallet.cjs +1 -0
- package/dist/node_modules/web3-types/lib/esm/web3_base_wallet.js +8 -0
- package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/chunk_response_parser.js +37 -0
- package/dist/node_modules/web3-utils/lib/esm/converters.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/converters.js +177 -0
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/event_emitter.js +91 -0
- package/dist/node_modules/web3-utils/lib/esm/formatter.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/formatter.js +134 -0
- package/dist/node_modules/web3-utils/lib/esm/hash.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/hash.js +107 -0
- package/dist/node_modules/web3-utils/lib/esm/index.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/index.js +107 -0
- package/dist/node_modules/web3-utils/lib/esm/json_rpc.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/json_rpc.js +41 -0
- package/dist/node_modules/web3-utils/lib/esm/objects.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/objects.js +20 -0
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/promise_helpers.js +104 -0
- package/dist/node_modules/web3-utils/lib/esm/random.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/random.js +7 -0
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/socket_provider.js +195 -0
- package/dist/node_modules/web3-utils/lib/esm/string_manipulation.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/string_manipulation.js +48 -0
- package/dist/node_modules/web3-utils/lib/esm/uint8array.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/uint8array.js +21 -0
- package/dist/node_modules/web3-utils/lib/esm/uuid.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/uuid.js +17 -0
- package/dist/node_modules/web3-utils/lib/esm/validation.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/validation.js +50 -0
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/web3_deferred_promise.js +114 -0
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.cjs +1 -0
- package/dist/node_modules/web3-utils/lib/esm/web3_eip1193_provider.js +86 -0
- package/dist/node_modules/web3-validator/lib/esm/constants.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/constants.js +4 -0
- package/dist/node_modules/web3-validator/lib/esm/default_validator.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/default_validator.js +5 -0
- package/dist/node_modules/web3-validator/lib/esm/errors.cjs +3 -0
- package/dist/node_modules/web3-validator/lib/esm/errors.js +17 -0
- package/dist/node_modules/web3-validator/lib/esm/formats.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/formats.js +31 -0
- package/dist/node_modules/web3-validator/lib/esm/utils.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/utils.js +178 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/abi.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/abi.js +4 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/address.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/address.js +22 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/block.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/block.js +10 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/bloom.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/bloom.js +29 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/boolean.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/boolean.js +5 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/bytes.js +27 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/filter.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/filter.js +26 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/numbers.js +52 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/object.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/object.js +13 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/string.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/string.js +23 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/topic.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validation/topic.js +6 -0
- package/dist/node_modules/web3-validator/lib/esm/validator.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/validator.js +84 -0
- package/dist/node_modules/web3-validator/lib/esm/web3_validator.cjs +1 -0
- package/dist/node_modules/web3-validator/lib/esm/web3_validator.js +31 -0
- package/dist/node_modules/zod/lib/index.cjs +1 -0
- package/dist/node_modules/zod/lib/index.js +2854 -0
- package/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.cjs +3 -0
- package/dist/prometheus-framework/node_modules/axios/lib/adapters/adapters.js +51 -0
- package/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/adapters/xhr.js +105 -79
- package/dist/prometheus-framework/node_modules/axios/lib/axios.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/axios.js +41 -35
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/CancelToken.js +57 -44
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/CanceledError.js +8 -15
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/cancel/isCancel.js +3 -6
- package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/Axios.js +101 -72
- package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosError.js +19 -19
- package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.cjs +2 -0
- package/dist/prometheus-framework/node_modules/axios/lib/core/AxiosHeaders.js +165 -0
- package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/InterceptorManager.js +56 -22
- package/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/buildFullPath.js +6 -6
- package/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/dispatchRequest.js +23 -38
- package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/mergeConfig.js +62 -58
- package/dist/prometheus-framework/node_modules/axios/lib/core/settle.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/settle.js +11 -18
- package/dist/prometheus-framework/node_modules/axios/lib/core/transformData.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/core/transformData.js +11 -9
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/index.js +49 -48
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/defaults/transitional.js +2 -2
- package/dist/prometheus-framework/node_modules/axios/lib/env/data.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/env/data.js +2 -7
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +33 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/HttpStatusCode.js +72 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/bind.js +4 -6
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/buildURL.js +13 -24
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/combineURLs.js +4 -4
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/cookies.js +30 -40
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/formDataToJSON.js +30 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAbsoluteURL.js +3 -3
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isAxiosError.js +4 -11
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/isURLSameOrigin.js +34 -39
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/null.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/null.js +2 -5
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.cjs +2 -2
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseHeaders.js +28 -38
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/parseProtocol.js +4 -7
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/speedometer.js +19 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/spread.js +5 -8
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toFormData.js +79 -32
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/toURLEncodedForm.js +13 -0
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/helpers/validator.js +33 -31
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/browser/index.js +15 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/common/utils.js +7 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/index.cjs +1 -0
- package/dist/prometheus-framework/node_modules/axios/lib/platform/index.js +9 -0
- package/dist/prometheus-framework/node_modules/axios/lib/utils.cjs +1 -1
- package/dist/prometheus-framework/node_modules/axios/lib/utils.js +212 -140
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +2 -72
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue2.js +72 -2
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +67 -65
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +6 -7
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +30 -61
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +20 -21
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +28 -33
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +6 -41
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +75 -33
- package/dist/prometheus-framework.cjs.js +29 -30
- package/dist/prometheus-framework.es.js +3953 -3225
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/src/modules/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,510 @@
|
|
1
|
+
import { Web3ConfigEvent as K } from "../../../web3-core/lib/esm/web3_config.js";
|
2
|
+
import "../../../web3-core/lib/esm/web3_request_manager.js";
|
3
|
+
import "../../../web3-core/lib/esm/web3_subscription_manager.js";
|
4
|
+
import "../../../web3-core/lib/esm/web3_subscriptions.js";
|
5
|
+
import { Web3Context as F } from "../../../web3-core/lib/esm/web3_context.js";
|
6
|
+
import "../../../web3-core/lib/esm/web3_batch_request.js";
|
7
|
+
import { DEFAULT_RETURN_FORMAT as p } from "../../../web3-types/lib/esm/data_format_types.js";
|
8
|
+
import { BlockTags as q } from "../../../web3-types/lib/esm/eth_types.js";
|
9
|
+
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
10
|
+
import { ContractTransactionDataAndInputError as z, Web3ContractError as y, ContractExecutionError as C } from "../../../web3-errors/lib/esm/errors/contract_errors.js";
|
11
|
+
import { SubscriptionError as P } from "../../../web3-errors/lib/esm/errors/provider_errors.js";
|
12
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
13
|
+
import "../../../web3-eth-iban/lib/esm/iban.js";
|
14
|
+
import { Web3ValidatorError as Q } from "../../../web3-validator/lib/esm/errors.js";
|
15
|
+
import "../../../web3-validator/lib/esm/formats.js";
|
16
|
+
import { transformJsonDataToAbiFormat as X } from "../../../web3-validator/lib/esm/utils.js";
|
17
|
+
import { validator as D } from "../../../web3-validator/lib/esm/default_validator.js";
|
18
|
+
import { isNullish as I } from "../../../web3-validator/lib/esm/validation/object.js";
|
19
|
+
import "../../../web3-core/lib/esm/web3_promi_event.js";
|
20
|
+
import "../../../setimmediate/setImmediate.js";
|
21
|
+
import "../../../web3-eth/lib/esm/web3_eth.js";
|
22
|
+
import { decodeEventABI as Y } from "../../../web3-eth/lib/esm/utils/decoding.js";
|
23
|
+
import "../../../web3-eth/lib/esm/schemas.js";
|
24
|
+
import { ALL_EVENTS as L, ALL_EVENTS_ABI as x } from "../../../web3-eth/lib/esm/constants.js";
|
25
|
+
import { getLogs as Z, call as R, createAccessList as O, sendTransaction as B, estimateGas as tt } from "../../../web3-eth/lib/esm/rpc_method_wrappers.js";
|
26
|
+
import "../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.js";
|
27
|
+
import { NewHeadsSubscription as W } from "../../../web3-eth/lib/esm/web3_subscriptions.js";
|
28
|
+
import "../../../web3-eth/lib/esm/utils/transaction_builder.js";
|
29
|
+
import { isAbiErrorFragment as it, isAbiFunctionFragment as nt, jsonInterfaceMethodToString as N, isAbiEventFragment as et } from "../../../web3-eth-abi/lib/esm/utils.js";
|
30
|
+
import { encodeEventSignature as ot } from "../../../web3-eth-abi/lib/esm/api/events_api.js";
|
31
|
+
import { encodeFunctionSignature as st } from "../../../web3-eth-abi/lib/esm/api/functions_api.js";
|
32
|
+
import "../../../web3-eth-abi/lib/esm/coders/base/number.js";
|
33
|
+
import { decodeContractErrorData as T } from "../../../web3-eth-abi/lib/esm/decode_contract_error_data.js";
|
34
|
+
import { encodeMethodABI as G, encodeEventABI as V, decodeMethodReturn as rt } from "./encoding.js";
|
35
|
+
import { LogsSubscription as J } from "./log_subscription.js";
|
36
|
+
import { getEthTxCallParams as at, getCreateAccessListParams as ct, getSendTxParams as U, getEstimateGasParams as dt, isContractInitOptions as k, isWeb3ContractContext as H } from "./utils.js";
|
37
|
+
import { format as S, isDataFormat as _ } from "../../../web3-utils/lib/esm/formatter.js";
|
38
|
+
import { keccak256Wrapper as lt } from "../../../web3-utils/lib/esm/hash.js";
|
39
|
+
import { toChecksumAddress as ht } from "../../../web3-utils/lib/esm/converters.js";
|
40
|
+
var b = globalThis && globalThis.__awaiter || function($, t, e, o) {
|
41
|
+
function c(s) {
|
42
|
+
return s instanceof e ? s : new e(function(n) {
|
43
|
+
n(s);
|
44
|
+
});
|
45
|
+
}
|
46
|
+
return new (e || (e = Promise))(function(s, n) {
|
47
|
+
function r(l) {
|
48
|
+
try {
|
49
|
+
i(o.next(l));
|
50
|
+
} catch (u) {
|
51
|
+
n(u);
|
52
|
+
}
|
53
|
+
}
|
54
|
+
function a(l) {
|
55
|
+
try {
|
56
|
+
i(o.throw(l));
|
57
|
+
} catch (u) {
|
58
|
+
n(u);
|
59
|
+
}
|
60
|
+
}
|
61
|
+
function i(l) {
|
62
|
+
l.done ? s(l.value) : c(l.value).then(r, a);
|
63
|
+
}
|
64
|
+
i((o = o.apply($, t || [])).next());
|
65
|
+
});
|
66
|
+
};
|
67
|
+
const ut = {
|
68
|
+
logs: J,
|
69
|
+
newHeads: W,
|
70
|
+
newBlockHeaders: W
|
71
|
+
};
|
72
|
+
class w extends F {
|
73
|
+
constructor(t, e, o, c, s) {
|
74
|
+
var n, r, a;
|
75
|
+
const i = k(e) ? e : k(o) ? o : void 0;
|
76
|
+
let l;
|
77
|
+
H(e) ? l = e : H(o) ? l = o : l = c;
|
78
|
+
let u;
|
79
|
+
if (typeof e == "object" && "provider" in e ? u = e.provider : typeof o == "object" && "provider" in o ? u = o.provider : typeof c == "object" && "provider" in c ? u = c.provider : u = w.givenProvider, super(Object.assign(Object.assign({}, l), { provider: u, registeredSubscriptions: ut })), this.syncWithContext = !1, this._functions = {}, !I(i) && !I(i.data) && !I(i.input) && this.config.contractDataInputFill !== "both")
|
80
|
+
throw new z({
|
81
|
+
data: i.data,
|
82
|
+
input: i.input
|
83
|
+
});
|
84
|
+
this._overloadedMethodAbis = /* @__PURE__ */ new Map();
|
85
|
+
const d = _(c) ? c : _(o) ? o : s ?? p, h = typeof e == "string" ? e : void 0;
|
86
|
+
this.config.contractDataInputFill === "both" ? this._dataInputFill = this.config.contractDataInputFill : this._dataInputFill = (n = i == null ? void 0 : i.dataInputFill) !== null && n !== void 0 ? n : this.config.contractDataInputFill, this._parseAndSetJsonInterface(t, d), I(h) || this._parseAndSetAddress(h, d), this.options = {
|
87
|
+
address: h,
|
88
|
+
jsonInterface: this._jsonInterface,
|
89
|
+
gas: (r = i == null ? void 0 : i.gas) !== null && r !== void 0 ? r : i == null ? void 0 : i.gasLimit,
|
90
|
+
gasPrice: i == null ? void 0 : i.gasPrice,
|
91
|
+
from: i == null ? void 0 : i.from,
|
92
|
+
input: i == null ? void 0 : i.input,
|
93
|
+
data: i == null ? void 0 : i.data
|
94
|
+
}, this.syncWithContext = (a = i == null ? void 0 : i.syncWithContext) !== null && a !== void 0 ? a : !1, l instanceof F && this.subscribeToContextEvents(l), Object.defineProperty(this.options, "address", {
|
95
|
+
set: (f) => this._parseAndSetAddress(f, d),
|
96
|
+
get: () => this._address
|
97
|
+
}), Object.defineProperty(this.options, "jsonInterface", {
|
98
|
+
set: (f) => this._parseAndSetJsonInterface(f, d),
|
99
|
+
get: () => this._jsonInterface
|
100
|
+
});
|
101
|
+
}
|
102
|
+
/**
|
103
|
+
* Subscribe to an event.
|
104
|
+
*
|
105
|
+
* ```ts
|
106
|
+
* await myContract.events.MyEvent([options])
|
107
|
+
* ```
|
108
|
+
*
|
109
|
+
* There is a special event `allEvents` that can be used to subscribe all events.
|
110
|
+
*
|
111
|
+
* ```ts
|
112
|
+
* await myContract.events.allEvents([options])
|
113
|
+
* ```
|
114
|
+
*
|
115
|
+
* @returns - When individual event is accessed will returns {@link ContractBoundEvent} object
|
116
|
+
*/
|
117
|
+
get events() {
|
118
|
+
return this._events;
|
119
|
+
}
|
120
|
+
/**
|
121
|
+
* Creates a transaction object for that method, which then can be `called`, `send`, `estimated`, `createAccessList` , or `ABI encoded`.
|
122
|
+
*
|
123
|
+
* The methods of this smart contract are available through:
|
124
|
+
*
|
125
|
+
* The name: `myContract.methods.myMethod(123)`
|
126
|
+
* The name with parameters: `myContract.methods['myMethod(uint256)'](123)`
|
127
|
+
* The signature `myContract.methods['0x58cf5f10'](123)`
|
128
|
+
*
|
129
|
+
* This allows calling functions with same name but different parameters from the JavaScript contract object.
|
130
|
+
*
|
131
|
+
* \> The method signature does not provide a type safe interface, so we recommend to use method `name` instead.
|
132
|
+
*
|
133
|
+
* ```ts
|
134
|
+
* // calling a method
|
135
|
+
* const result = await myContract.methods.myMethod(123).call({from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe'});
|
136
|
+
*
|
137
|
+
* // or sending and using a promise
|
138
|
+
* const receipt = await myContract.methods.myMethod(123).send({from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe'});
|
139
|
+
*
|
140
|
+
* // or sending and using the events
|
141
|
+
* const sendObject = myContract.methods.myMethod(123).send({from: '0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe'});
|
142
|
+
* sendObject.on('transactionHash', function(hash){
|
143
|
+
* ...
|
144
|
+
* });
|
145
|
+
* sendObject.on('receipt', function(receipt){
|
146
|
+
* ...
|
147
|
+
* });
|
148
|
+
* sendObject.on('confirmation', function(confirmationNumber, receipt){
|
149
|
+
* ...
|
150
|
+
* });
|
151
|
+
* sendObject.on('error', function(error, receipt) {
|
152
|
+
* ...
|
153
|
+
* });
|
154
|
+
* ```
|
155
|
+
*
|
156
|
+
* @returns - Either returns {@link PayableMethodObject} or {@link NonPayableMethodObject} based on the definitions of the {@doclink glossary/json_interface | json interface} of that contract.
|
157
|
+
*/
|
158
|
+
get methods() {
|
159
|
+
return this._methods;
|
160
|
+
}
|
161
|
+
/**
|
162
|
+
* Clones the current contract instance. This doesn't deploy contract on blockchain and only creates a local clone.
|
163
|
+
*
|
164
|
+
* @returns - The new contract instance.
|
165
|
+
*
|
166
|
+
* ```ts
|
167
|
+
* const contract1 = new eth.Contract(abi, address, {gasPrice: '12345678', from: fromAddress});
|
168
|
+
*
|
169
|
+
* const contract2 = contract1.clone();
|
170
|
+
* contract2.options.address = address2;
|
171
|
+
*
|
172
|
+
* (contract1.options.address !== contract2.options.address);
|
173
|
+
* > true
|
174
|
+
* ```
|
175
|
+
*/
|
176
|
+
clone() {
|
177
|
+
let t;
|
178
|
+
return this.options.address ? t = new w([...this._jsonInterface, ...this._errorsInterface], this.options.address, {
|
179
|
+
gas: this.options.gas,
|
180
|
+
gasPrice: this.options.gasPrice,
|
181
|
+
from: this.options.from,
|
182
|
+
input: this.options.input,
|
183
|
+
data: this.options.data,
|
184
|
+
provider: this.currentProvider,
|
185
|
+
syncWithContext: this.syncWithContext,
|
186
|
+
dataInputFill: this._dataInputFill
|
187
|
+
}, this.getContextObject()) : t = new w([...this._jsonInterface, ...this._errorsInterface], {
|
188
|
+
gas: this.options.gas,
|
189
|
+
gasPrice: this.options.gasPrice,
|
190
|
+
from: this.options.from,
|
191
|
+
input: this.options.input,
|
192
|
+
data: this.options.data,
|
193
|
+
provider: this.currentProvider,
|
194
|
+
syncWithContext: this.syncWithContext,
|
195
|
+
dataInputFill: this._dataInputFill
|
196
|
+
}, this.getContextObject()), this.context && t.subscribeToContextEvents(this.context), t;
|
197
|
+
}
|
198
|
+
/**
|
199
|
+
* Call this function to deploy the contract to the blockchain. After successful deployment the promise will resolve with a new contract instance.
|
200
|
+
*
|
201
|
+
* ```ts
|
202
|
+
* myContract.deploy({
|
203
|
+
* input: '0x12345...', // data keyword can be used, too. If input is used, data will be ignored.
|
204
|
+
* arguments: [123, 'My String']
|
205
|
+
* })
|
206
|
+
* .send({
|
207
|
+
* from: '0x1234567890123456789012345678901234567891',
|
208
|
+
* gas: 1500000,
|
209
|
+
* gasPrice: '30000000000000'
|
210
|
+
* }, function(error, transactionHash){ ... })
|
211
|
+
* .on('error', function(error){ ... })
|
212
|
+
* .on('transactionHash', function(transactionHash){ ... })
|
213
|
+
* .on('receipt', function(receipt){
|
214
|
+
* console.log(receipt.contractAddress) // contains the new contract address
|
215
|
+
* })
|
216
|
+
* .on('confirmation', function(confirmationNumber, receipt){ ... })
|
217
|
+
* .then(function(newContractInstance){
|
218
|
+
* console.log(newContractInstance.options.address) // instance with the new contract address
|
219
|
+
* });
|
220
|
+
*
|
221
|
+
*
|
222
|
+
* // When the data is already set as an option to the contract itself
|
223
|
+
* myContract.options.data = '0x12345...';
|
224
|
+
*
|
225
|
+
* myContract.deploy({
|
226
|
+
* arguments: [123, 'My String']
|
227
|
+
* })
|
228
|
+
* .send({
|
229
|
+
* from: '0x1234567890123456789012345678901234567891',
|
230
|
+
* gas: 1500000,
|
231
|
+
* gasPrice: '30000000000000'
|
232
|
+
* })
|
233
|
+
* .then(function(newContractInstance){
|
234
|
+
* console.log(newContractInstance.options.address) // instance with the new contract address
|
235
|
+
* });
|
236
|
+
*
|
237
|
+
*
|
238
|
+
* // Simply encoding
|
239
|
+
* myContract.deploy({
|
240
|
+
* input: '0x12345...',
|
241
|
+
* arguments: [123, 'My String']
|
242
|
+
* })
|
243
|
+
* .encodeABI();
|
244
|
+
* > '0x12345...0000012345678765432'
|
245
|
+
*
|
246
|
+
*
|
247
|
+
* // Gas estimation
|
248
|
+
* myContract.deploy({
|
249
|
+
* input: '0x12345...',
|
250
|
+
* arguments: [123, 'My String']
|
251
|
+
* })
|
252
|
+
* .estimateGas(function(err, gas){
|
253
|
+
* console.log(gas);
|
254
|
+
* });
|
255
|
+
* ```
|
256
|
+
*
|
257
|
+
* @returns - The transaction object
|
258
|
+
*/
|
259
|
+
deploy(t) {
|
260
|
+
var e, o, c;
|
261
|
+
let s = this._jsonInterface.find((u) => u.type === "constructor");
|
262
|
+
s || (s = {
|
263
|
+
type: "constructor",
|
264
|
+
inputs: [],
|
265
|
+
stateMutability: ""
|
266
|
+
});
|
267
|
+
const n = S({ format: "bytes" }, (e = t == null ? void 0 : t.input) !== null && e !== void 0 ? e : this.options.input, p), r = S({ format: "bytes" }, (o = t == null ? void 0 : t.data) !== null && o !== void 0 ? o : this.options.data, p);
|
268
|
+
if ((!n || n.trim() === "0x") && (!r || r.trim() === "0x"))
|
269
|
+
throw new y("contract creation without any data provided.");
|
270
|
+
const a = (c = t == null ? void 0 : t.arguments) !== null && c !== void 0 ? c : [], i = Object.assign(Object.assign({}, this.options), { input: n, data: r }), l = n ?? r;
|
271
|
+
return {
|
272
|
+
arguments: a,
|
273
|
+
send: (u) => {
|
274
|
+
const d = Object.assign({}, u);
|
275
|
+
return this._contractMethodDeploySend(s, a, d, i);
|
276
|
+
},
|
277
|
+
estimateGas: (u, d = p) => b(this, void 0, void 0, function* () {
|
278
|
+
const h = Object.assign({}, u);
|
279
|
+
return this._contractMethodEstimateGas({
|
280
|
+
abi: s,
|
281
|
+
params: a,
|
282
|
+
returnFormat: d,
|
283
|
+
options: h,
|
284
|
+
contractOptions: i
|
285
|
+
});
|
286
|
+
}),
|
287
|
+
encodeABI: () => G(s, a, S({ format: "bytes" }, l, p))
|
288
|
+
};
|
289
|
+
}
|
290
|
+
getPastEvents(t, e, o) {
|
291
|
+
var c;
|
292
|
+
return b(this, void 0, void 0, function* () {
|
293
|
+
const s = typeof t == "string" ? t : L, n = (
|
294
|
+
// eslint-disable-next-line no-nested-ternary
|
295
|
+
typeof t != "string" && !_(t) ? t : _(e) ? {} : e
|
296
|
+
), r = _(t) ? t : _(e) ? e : o ?? p, a = s === "allEvents" || s === L ? x : this._jsonInterface.find((m) => "name" in m && m.name === s);
|
297
|
+
if (!a)
|
298
|
+
throw new y(`Event ${s} not found.`);
|
299
|
+
const { fromBlock: i, toBlock: l, topics: u, address: d } = V(this.options, a, n ?? {}), f = (yield Z(this, { fromBlock: i, toBlock: l, topics: u, address: d }, r)).map((m) => typeof m == "string" ? m : Y(a, m, this._jsonInterface, r)), v = (c = n == null ? void 0 : n.filter) !== null && c !== void 0 ? c : {}, A = Object.keys(v);
|
300
|
+
return A.length > 0 ? f.filter((m) => typeof m == "string" ? !0 : A.every((g) => {
|
301
|
+
var M;
|
302
|
+
if (Array.isArray(v[g]))
|
303
|
+
return v[g].some((E) => String(m.returnValues[g]).toUpperCase() === String(E).toUpperCase());
|
304
|
+
const j = (M = a.inputs) === null || M === void 0 ? void 0 : M.filter((E) => E.name === g)[0];
|
305
|
+
return j != null && j.indexed && j.type === "string" && lt(v[g]) === String(m.returnValues[g]) ? !0 : String(m.returnValues[g]).toUpperCase() === String(v[g]).toUpperCase();
|
306
|
+
})) : f;
|
307
|
+
});
|
308
|
+
}
|
309
|
+
_parseAndSetAddress(t, e = p) {
|
310
|
+
this._address = t && ht(S({ format: "address" }, t, e));
|
311
|
+
}
|
312
|
+
_parseAndSetJsonInterface(t, e = p) {
|
313
|
+
var o, c, s, n, r;
|
314
|
+
this._functions = {}, this._methods = {}, this._events = {};
|
315
|
+
let a = [];
|
316
|
+
const i = t.filter((u) => u.type !== "error"), l = t.filter((u) => it(u));
|
317
|
+
for (const u of i) {
|
318
|
+
const d = Object.assign(Object.assign({}, u), { signature: "" });
|
319
|
+
if (nt(d)) {
|
320
|
+
const h = N(d), f = st(h);
|
321
|
+
d.signature = f, d.constant = (c = (o = d.stateMutability === "view") !== null && o !== void 0 ? o : d.stateMutability === "pure") !== null && c !== void 0 ? c : d.constant, d.payable = (s = d.stateMutability === "payable") !== null && s !== void 0 ? s : d.payable, this._overloadedMethodAbis.set(d.name, [
|
322
|
+
...(n = this._overloadedMethodAbis.get(d.name)) !== null && n !== void 0 ? n : [],
|
323
|
+
d
|
324
|
+
]);
|
325
|
+
const v = (r = this._overloadedMethodAbis.get(d.name)) !== null && r !== void 0 ? r : [], A = this._createContractMethod(v, l);
|
326
|
+
this._functions[h] = {
|
327
|
+
signature: f,
|
328
|
+
method: A
|
329
|
+
}, this._methods[d.name] = this._functions[h].method, this._methods[h] = this._functions[h].method, this._methods[f] = this._functions[h].method;
|
330
|
+
} else if (et(d)) {
|
331
|
+
const h = N(d), f = ot(h), v = this._createContractEvent(d, e);
|
332
|
+
d.signature = f, (!(h in this._events) || d.name === "bound") && (this._events[h] = v), this._events[d.name] = v, this._events[f] = v;
|
333
|
+
}
|
334
|
+
a = [...a, d];
|
335
|
+
}
|
336
|
+
this._events.allEvents = this._createContractEvent(x, e), this._jsonInterface = [...a], this._errorsInterface = l;
|
337
|
+
}
|
338
|
+
// eslint-disable-next-line class-methods-use-this
|
339
|
+
_getAbiParams(t, e) {
|
340
|
+
var o;
|
341
|
+
try {
|
342
|
+
return X((o = t.inputs) !== null && o !== void 0 ? o : [], e);
|
343
|
+
} catch (c) {
|
344
|
+
throw new y(`Invalid parameters for method ${t.name}: ${c.message}`);
|
345
|
+
}
|
346
|
+
}
|
347
|
+
_createContractMethod(t, e) {
|
348
|
+
const o = t[t.length - 1];
|
349
|
+
return (...c) => {
|
350
|
+
var s, n;
|
351
|
+
let r;
|
352
|
+
const a = (s = this._overloadedMethodAbis.get(o.name)) !== null && s !== void 0 ? s : [];
|
353
|
+
let i = a[0];
|
354
|
+
const l = e, u = a.filter((h) => {
|
355
|
+
var f;
|
356
|
+
return ((f = h.inputs) !== null && f !== void 0 ? f : []).length === c.length;
|
357
|
+
});
|
358
|
+
if (a.length === 1 || u.length === 0)
|
359
|
+
r = this._getAbiParams(i, c), D.validate((n = o.inputs) !== null && n !== void 0 ? n : [], r);
|
360
|
+
else {
|
361
|
+
const h = [];
|
362
|
+
for (const f of u)
|
363
|
+
try {
|
364
|
+
r = this._getAbiParams(f, c), D.validate(f.inputs, r), i = f;
|
365
|
+
break;
|
366
|
+
} catch (v) {
|
367
|
+
h.push(v);
|
368
|
+
}
|
369
|
+
if (h.length === u.length)
|
370
|
+
throw new Q(h);
|
371
|
+
}
|
372
|
+
const d = {
|
373
|
+
arguments: r,
|
374
|
+
call: (h, f) => b(this, void 0, void 0, function* () {
|
375
|
+
return this._contractMethodCall(i, r, l, h, f);
|
376
|
+
}),
|
377
|
+
send: (h) => this._contractMethodSend(i, r, l, h),
|
378
|
+
estimateGas: (h, f = p) => b(this, void 0, void 0, function* () {
|
379
|
+
return this._contractMethodEstimateGas({
|
380
|
+
abi: i,
|
381
|
+
params: r,
|
382
|
+
returnFormat: f,
|
383
|
+
options: h
|
384
|
+
});
|
385
|
+
}),
|
386
|
+
encodeABI: () => G(i, r),
|
387
|
+
createAccessList: (h, f) => b(this, void 0, void 0, function* () {
|
388
|
+
return this._contractMethodCreateAccessList(i, r, l, h, f);
|
389
|
+
})
|
390
|
+
};
|
391
|
+
return i.stateMutability === "payable", d;
|
392
|
+
};
|
393
|
+
}
|
394
|
+
_contractMethodCall(t, e, o, c, s) {
|
395
|
+
var n;
|
396
|
+
return b(this, void 0, void 0, function* () {
|
397
|
+
const r = at({
|
398
|
+
abi: t,
|
399
|
+
params: e,
|
400
|
+
options: Object.assign(Object.assign({}, c), { dataInputFill: this._dataInputFill }),
|
401
|
+
contractOptions: Object.assign(Object.assign({}, this.options), { from: (n = this.options.from) !== null && n !== void 0 ? n : this.config.defaultAccount })
|
402
|
+
});
|
403
|
+
try {
|
404
|
+
const a = yield R(this, r, s, p);
|
405
|
+
return rt(t, a);
|
406
|
+
} catch (a) {
|
407
|
+
throw a instanceof C && T(o, a.innerError), a;
|
408
|
+
}
|
409
|
+
});
|
410
|
+
}
|
411
|
+
_contractMethodCreateAccessList(t, e, o, c, s) {
|
412
|
+
var n;
|
413
|
+
return b(this, void 0, void 0, function* () {
|
414
|
+
const r = ct({
|
415
|
+
abi: t,
|
416
|
+
params: e,
|
417
|
+
options: Object.assign(Object.assign({}, c), { dataInputFill: this.config.contractDataInputFill }),
|
418
|
+
contractOptions: Object.assign(Object.assign({}, this.options), { from: (n = this.options.from) !== null && n !== void 0 ? n : this.config.defaultAccount })
|
419
|
+
});
|
420
|
+
try {
|
421
|
+
return O(this, r, s, p);
|
422
|
+
} catch (a) {
|
423
|
+
throw a instanceof C && T(o, a.innerError), a;
|
424
|
+
}
|
425
|
+
});
|
426
|
+
}
|
427
|
+
_contractMethodSend(t, e, o, c, s) {
|
428
|
+
var n, r;
|
429
|
+
let a = s ?? this.options;
|
430
|
+
a = Object.assign(Object.assign({}, a), { input: void 0, from: (r = (n = a.from) !== null && n !== void 0 ? n : this.defaultAccount) !== null && r !== void 0 ? r : void 0 });
|
431
|
+
const i = U({
|
432
|
+
abi: t,
|
433
|
+
params: e,
|
434
|
+
options: Object.assign(Object.assign({}, c), { dataInputFill: this.config.contractDataInputFill }),
|
435
|
+
contractOptions: a
|
436
|
+
}), l = B(this, i, p, {
|
437
|
+
// TODO Should make this configurable by the user
|
438
|
+
checkRevertBeforeSending: !1,
|
439
|
+
contractAbi: this._jsonInterface
|
440
|
+
});
|
441
|
+
return l.on("error", (u) => {
|
442
|
+
u instanceof C && T(o, u.innerError);
|
443
|
+
}), l;
|
444
|
+
}
|
445
|
+
_contractMethodDeploySend(t, e, o, c) {
|
446
|
+
var s, n;
|
447
|
+
let r = c ?? this.options;
|
448
|
+
r = Object.assign(Object.assign({}, r), { from: (n = (s = r.from) !== null && s !== void 0 ? s : this.defaultAccount) !== null && n !== void 0 ? n : void 0 });
|
449
|
+
const a = U({
|
450
|
+
abi: t,
|
451
|
+
params: e,
|
452
|
+
options: Object.assign(Object.assign({}, o), { dataInputFill: this.config.contractDataInputFill }),
|
453
|
+
contractOptions: r
|
454
|
+
});
|
455
|
+
return B(this, a, p, {
|
456
|
+
transactionResolver: (i) => {
|
457
|
+
if (i.status === BigInt(0))
|
458
|
+
throw new y("code couldn't be stored", i);
|
459
|
+
const l = this.clone();
|
460
|
+
return l.options.address = i.contractAddress, l;
|
461
|
+
},
|
462
|
+
contractAbi: this._jsonInterface,
|
463
|
+
// TODO Should make this configurable by the user
|
464
|
+
checkRevertBeforeSending: !1
|
465
|
+
});
|
466
|
+
}
|
467
|
+
_contractMethodEstimateGas({ abi: t, params: e, returnFormat: o, options: c, contractOptions: s }) {
|
468
|
+
return b(this, void 0, void 0, function* () {
|
469
|
+
const n = dt({
|
470
|
+
abi: t,
|
471
|
+
params: e,
|
472
|
+
options: Object.assign(Object.assign({}, c), { dataInputFill: this.config.contractDataInputFill }),
|
473
|
+
contractOptions: s ?? this.options
|
474
|
+
});
|
475
|
+
return tt(this, n, q.LATEST, o);
|
476
|
+
});
|
477
|
+
}
|
478
|
+
// eslint-disable-next-line class-methods-use-this
|
479
|
+
_createContractEvent(t, e = p) {
|
480
|
+
return (...o) => {
|
481
|
+
var c;
|
482
|
+
const { topics: s, fromBlock: n } = V(this.options, t, o[0]), r = new J({
|
483
|
+
address: this.options.address,
|
484
|
+
topics: s,
|
485
|
+
abi: t,
|
486
|
+
jsonInterface: this._jsonInterface
|
487
|
+
}, {
|
488
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
489
|
+
subscriptionManager: this.subscriptionManager,
|
490
|
+
returnFormat: e
|
491
|
+
});
|
492
|
+
return I(n) || this.getPastEvents(t.name, { fromBlock: n, topics: s }, e).then((a) => {
|
493
|
+
a.forEach((i) => r.emit("data", i));
|
494
|
+
}).catch((a) => {
|
495
|
+
r.emit("error", new P("Failed to get past events.", a));
|
496
|
+
}), (c = this.subscriptionManager) === null || c === void 0 || c.addSubscription(r).catch((a) => {
|
497
|
+
r.emit("error", new P("Failed to subscribe.", a));
|
498
|
+
}), r;
|
499
|
+
};
|
500
|
+
}
|
501
|
+
subscribeToContextEvents(t) {
|
502
|
+
const e = this;
|
503
|
+
this.context = t, e.syncWithContext && t.on(K.CONFIG_CHANGE, (o) => {
|
504
|
+
e.setConfig({ [o.name]: o.newValue });
|
505
|
+
});
|
506
|
+
}
|
507
|
+
}
|
508
|
+
export {
|
509
|
+
w as Contract
|
510
|
+
};
|
@@ -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 d=require("../../../web3-errors/lib/esm/errors/contract_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const q=require("../../../web3-eth-abi/lib/esm/utils.cjs"),_=require("../../../web3-eth-abi/lib/esm/api/events_api.cjs"),g=require("../../../web3-eth-abi/lib/esm/api/functions_api.cjs"),a=require("../../../web3-eth-abi/lib/esm/api/parameters_api.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");const f=require("../../../web3-eth/lib/esm/schemas.cjs"),h=require("../../../web3-eth/lib/esm/constants.cjs");require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");const m=require("../../../web3-utils/lib/esm/validation.cjs"),p=require("../../../web3-utils/lib/esm/formatter.cjs"),y=require("../../../web3-utils/lib/esm/hash.cjs"),A=({address:t},r,e)=>{var n,o;const l=e==null?void 0:e.topics,E=(n=e==null?void 0:e.filter)!==null&&n!==void 0?n:{},i={};if(m.isNullish(e==null?void 0:e.fromBlock)||(i.fromBlock=p.format(f.blockSchema.properties.number,e==null?void 0:e.fromBlock,{number:c.FMT_NUMBER.HEX,bytes:c.FMT_BYTES.HEX})),m.isNullish(e==null?void 0:e.toBlock)||(i.toBlock=p.format(f.blockSchema.properties.number,e==null?void 0:e.toBlock,{number:c.FMT_NUMBER.HEX,bytes:c.FMT_BYTES.HEX})),l&&Array.isArray(l))i.topics=[...l];else if(i.topics=[],r&&!r.anonymous&&![h.ALL_EVENTS,"allEvents"].includes(r.name)&&i.topics.push((o=r.signature)!==null&&o!==void 0?o:_.encodeEventSignature(q.jsonInterfaceMethodToString(r))),![h.ALL_EVENTS,"allEvents"].includes(r.name)&&r.inputs)for(const u of r.inputs){if(!u.indexed)continue;const s=E[u.name];if(!s){i.topics.push(null);continue}Array.isArray(s)?i.topics.push(s.map(v=>a.encodeParameter(u.type,v))):u.type==="string"?i.topics.push(y.keccak256Wrapper(s)):i.topics.push(a.encodeParameter(u.type,s))}return i.topics.length||delete i.topics,t&&(i.address=t.toLowerCase()),i},B=(t,r,e)=>{const n=Array.isArray(t.inputs)?t.inputs.length:0;if(n!==r.length)throw new d.Web3ContractError(`The number of arguments is not matching the methods required number. You need to pass ${n} arguments.`);const o=a.encodeParameters(Array.isArray(t.inputs)?t.inputs:[],r).replace("0x","");if(q.isAbiConstructorFragment(t)){if(!e)throw new d.Web3ContractError("The contract has no contract data option set. This is necessary to append the constructor parameters.");return e.startsWith("0x")?`${e}${o}`:`0x${e}${o}`}return`${g.encodeFunctionSignature(t)}${o}`},T=(t,r)=>{if(t.type==="constructor")return r;if(!r)return null;const e=r.length>=2?r.slice(2):r;if(!t.outputs)return null;const n=a.decodeParameters([...t.outputs],e);return n.__length__===1?n[0]:n};exports.decodeMethodReturn=T;exports.encodeEventABI=A;exports.encodeMethodABI=B;
|
@@ -0,0 +1,80 @@
|
|
1
|
+
import { FMT_NUMBER as p, FMT_BYTES 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 { Web3ContractError as l } from "../../../web3-errors/lib/esm/errors/contract_errors.js";
|
5
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
6
|
+
import { jsonInterfaceMethodToString as E, isAbiConstructorFragment as A } from "../../../web3-eth-abi/lib/esm/utils.js";
|
7
|
+
import { encodeEventSignature as B } from "../../../web3-eth-abi/lib/esm/api/events_api.js";
|
8
|
+
import { encodeFunctionSignature as k } from "../../../web3-eth-abi/lib/esm/api/functions_api.js";
|
9
|
+
import { encodeParameter as f, encodeParameters as _, decodeParameters as T } from "../../../web3-eth-abi/lib/esm/api/parameters_api.js";
|
10
|
+
import "../../../web3-validator/lib/esm/formats.js";
|
11
|
+
import "../../../web3-validator/lib/esm/default_validator.js";
|
12
|
+
import "../../../web3-eth-abi/lib/esm/coders/base/number.js";
|
13
|
+
import "../../../setimmediate/setImmediate.js";
|
14
|
+
import "../../../web3-eth/lib/esm/web3_eth.js";
|
15
|
+
import { blockSchema as a } from "../../../web3-eth/lib/esm/schemas.js";
|
16
|
+
import { ALL_EVENTS as d } from "../../../web3-eth/lib/esm/constants.js";
|
17
|
+
import "../../../web3-eth/lib/esm/rpc_method_wrappers.js";
|
18
|
+
import "../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.js";
|
19
|
+
import "../../../web3-core/lib/esm/web3_config.js";
|
20
|
+
import "../../../web3-core/lib/esm/web3_request_manager.js";
|
21
|
+
import "../../../web3-core/lib/esm/web3_subscription_manager.js";
|
22
|
+
import "../../../web3-core/lib/esm/web3_subscriptions.js";
|
23
|
+
import "../../../web3-core/lib/esm/web3_context.js";
|
24
|
+
import "../../../web3-core/lib/esm/web3_batch_request.js";
|
25
|
+
import "../../../web3-eth-iban/lib/esm/iban.js";
|
26
|
+
import "../../../web3-core/lib/esm/web3_promi_event.js";
|
27
|
+
import "../../../web3-eth/lib/esm/utils/transaction_builder.js";
|
28
|
+
import { isNullish as h } from "../../../web3-utils/lib/esm/validation.js";
|
29
|
+
import { format as g } from "../../../web3-utils/lib/esm/formatter.js";
|
30
|
+
import { keccak256Wrapper as $ } from "../../../web3-utils/lib/esm/hash.js";
|
31
|
+
const or = ({ address: o }, t, r) => {
|
32
|
+
var i, n;
|
33
|
+
const s = r == null ? void 0 : r.topics, v = (i = r == null ? void 0 : r.filter) !== null && i !== void 0 ? i : {}, e = {};
|
34
|
+
if (h(r == null ? void 0 : r.fromBlock) || (e.fromBlock = g(a.properties.number, r == null ? void 0 : r.fromBlock, {
|
35
|
+
number: p.HEX,
|
36
|
+
bytes: u.HEX
|
37
|
+
})), h(r == null ? void 0 : r.toBlock) || (e.toBlock = g(a.properties.number, r == null ? void 0 : r.toBlock, {
|
38
|
+
number: p.HEX,
|
39
|
+
bytes: u.HEX
|
40
|
+
})), s && Array.isArray(s))
|
41
|
+
e.topics = [...s];
|
42
|
+
else if (e.topics = [], t && !t.anonymous && ![d, "allEvents"].includes(t.name) && e.topics.push((n = t.signature) !== null && n !== void 0 ? n : B(E(t))), ![d, "allEvents"].includes(t.name) && t.inputs)
|
43
|
+
for (const m of t.inputs) {
|
44
|
+
if (!m.indexed)
|
45
|
+
continue;
|
46
|
+
const c = v[m.name];
|
47
|
+
if (!c) {
|
48
|
+
e.topics.push(null);
|
49
|
+
continue;
|
50
|
+
}
|
51
|
+
Array.isArray(c) ? e.topics.push(c.map((y) => f(m.type, y))) : m.type === "string" ? e.topics.push($(c)) : e.topics.push(f(m.type, c));
|
52
|
+
}
|
53
|
+
return e.topics.length || delete e.topics, o && (e.address = o.toLowerCase()), e;
|
54
|
+
}, er = (o, t, r) => {
|
55
|
+
const i = Array.isArray(o.inputs) ? o.inputs.length : 0;
|
56
|
+
if (i !== t.length)
|
57
|
+
throw new l(`The number of arguments is not matching the methods required number. You need to pass ${i} arguments.`);
|
58
|
+
const n = _(Array.isArray(o.inputs) ? o.inputs : [], t).replace("0x", "");
|
59
|
+
if (A(o)) {
|
60
|
+
if (!r)
|
61
|
+
throw new l("The contract has no contract data option set. This is necessary to append the constructor parameters.");
|
62
|
+
return r.startsWith("0x") ? `${r}${n}` : `0x${r}${n}`;
|
63
|
+
}
|
64
|
+
return `${k(o)}${n}`;
|
65
|
+
}, ir = (o, t) => {
|
66
|
+
if (o.type === "constructor")
|
67
|
+
return t;
|
68
|
+
if (!t)
|
69
|
+
return null;
|
70
|
+
const r = t.length >= 2 ? t.slice(2) : t;
|
71
|
+
if (!o.outputs)
|
72
|
+
return null;
|
73
|
+
const i = T([...o.outputs], r);
|
74
|
+
return i.__length__ === 1 ? i[0] : i;
|
75
|
+
};
|
76
|
+
export {
|
77
|
+
ir as decodeMethodReturn,
|
78
|
+
or as encodeEventABI,
|
79
|
+
er as encodeMethodABI
|
80
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./contract.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");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-eth-abi/lib/esm/coders/base/number.cjs");require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");require("../../../web3-eth/lib/esm/schemas.cjs");require("../../../web3-eth/lib/esm/constants.cjs");require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");exports.Contract=e.Contract;exports.default=e.Contract;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { Contract as o } from "./contract.js";
|
2
|
+
import "../../../web3-types/lib/esm/data_format_types.js";
|
3
|
+
import "../../../web3-types/lib/esm/eth_types.js";
|
4
|
+
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
5
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
6
|
+
import "../../../web3-validator/lib/esm/formats.js";
|
7
|
+
import "../../../web3-validator/lib/esm/default_validator.js";
|
8
|
+
import "../../../web3-eth-abi/lib/esm/coders/base/number.js";
|
9
|
+
import "../../../setimmediate/setImmediate.js";
|
10
|
+
import "../../../web3-eth/lib/esm/web3_eth.js";
|
11
|
+
import "../../../web3-eth/lib/esm/schemas.js";
|
12
|
+
import "../../../web3-eth/lib/esm/constants.js";
|
13
|
+
import "../../../web3-eth/lib/esm/rpc_method_wrappers.js";
|
14
|
+
import "../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.js";
|
15
|
+
import "../../../web3-core/lib/esm/web3_config.js";
|
16
|
+
import "../../../web3-core/lib/esm/web3_request_manager.js";
|
17
|
+
import "../../../web3-core/lib/esm/web3_subscription_manager.js";
|
18
|
+
import "../../../web3-core/lib/esm/web3_subscriptions.js";
|
19
|
+
import "../../../web3-core/lib/esm/web3_context.js";
|
20
|
+
import "../../../web3-core/lib/esm/web3_batch_request.js";
|
21
|
+
import "../../../web3-eth-iban/lib/esm/iban.js";
|
22
|
+
import "../../../web3-core/lib/esm/web3_promi_event.js";
|
23
|
+
import "../../../web3-eth/lib/esm/utils/transaction_builder.js";
|
24
|
+
export {
|
25
|
+
o as Contract,
|
26
|
+
o as default
|
27
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");const i=require("../../../web3-core/lib/esm/web3_subscriptions.cjs");require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.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");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");const s=require("../../../web3-eth/lib/esm/utils/decoding.cjs");require("../../../web3-eth/lib/esm/schemas.cjs");require("../../../web3-eth/lib/esm/constants.cjs");require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");class t extends i.Web3Subscription{constructor(e,r){super(e,r),this.address=e.address,this.topics=e.topics,this.abi=e.abi,this.jsonInterface=e.jsonInterface}_buildSubscriptionParams(){return["logs",{address:this.address,topics:this.topics}]}formatSubscriptionResult(e){return s.decodeEventABI(this.abi,e,this.jsonInterface,super.returnFormat)}}exports.LogsSubscription=t;
|