@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,50 @@
|
|
1
|
+
import { InvalidBlockError as a } from "../../../web3-errors/lib/esm/errors/utils_errors.js";
|
2
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import "../../../web3-validator/lib/esm/formats.js";
|
4
|
+
import { isHexStrict as d, isHex as p } from "../../../web3-validator/lib/esm/validation/string.js";
|
5
|
+
import "../../../web3-validator/lib/esm/default_validator.js";
|
6
|
+
import { checkAddressCheckSum as I, isAddress as u } from "../../../web3-validator/lib/esm/validation/address.js";
|
7
|
+
import { isBlockTag as c } from "../../../web3-validator/lib/esm/validation/block.js";
|
8
|
+
import { isBloom as f, isInBloom as l, isUserEthereumAddressInBloom as B, isContractAddressInBloom as h } from "../../../web3-validator/lib/esm/validation/bloom.js";
|
9
|
+
import { isNullish as g } from "../../../web3-validator/lib/esm/validation/object.js";
|
10
|
+
import { isTopic as T, isTopicInBloom as $ } from "../../../web3-validator/lib/esm/validation/topic.js";
|
11
|
+
import "../../../web3-types/lib/esm/data_format_types.js";
|
12
|
+
import { BlockTags as o } from "../../../web3-types/lib/esm/eth_types.js";
|
13
|
+
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
14
|
+
const F = d, G = p, O = I, P = u, R = f, Z = l, j = B, q = h, z = T, J = $, K = (s, i) => {
|
15
|
+
const r = typeof s == "string" && c(s), t = typeof i == "string" && c(i);
|
16
|
+
if (s === i || (s === "earliest" || s === 0) && (i === "earliest" || i === 0))
|
17
|
+
return 0;
|
18
|
+
if (s === "earliest" && i > 0)
|
19
|
+
return -1;
|
20
|
+
if (i === "earliest" && s > 0)
|
21
|
+
return 1;
|
22
|
+
if (r && t) {
|
23
|
+
const m = {
|
24
|
+
[o.EARLIEST]: 1,
|
25
|
+
[o.FINALIZED]: 2,
|
26
|
+
[o.SAFE]: 3,
|
27
|
+
[o.LATEST]: 4,
|
28
|
+
[o.PENDING]: 5
|
29
|
+
};
|
30
|
+
return m[s] < m[i] ? -1 : 1;
|
31
|
+
}
|
32
|
+
if (r && !t || !r && t)
|
33
|
+
throw new a("Cannot compare blocktag with provided non-blocktag input.");
|
34
|
+
const e = BigInt(s), n = BigInt(i);
|
35
|
+
return e < n ? -1 : e === n ? 0 : 1;
|
36
|
+
}, M = g;
|
37
|
+
export {
|
38
|
+
O as checkAddressCheckSum,
|
39
|
+
K as compareBlockNumbers,
|
40
|
+
P as isAddress,
|
41
|
+
R as isBloom,
|
42
|
+
q as isContractAddressInBloom,
|
43
|
+
G as isHex,
|
44
|
+
F as isHexStrict,
|
45
|
+
Z as isInBloom,
|
46
|
+
M as isNullish,
|
47
|
+
z as isTopic,
|
48
|
+
J as isTopicInBloom,
|
49
|
+
j as isUserEthereumAddressInBloom
|
50
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");var a=globalThis&&globalThis.__awaiter||function(c,t,e,s){function n(i){return i instanceof e?i:new e(function(o){o(i)})}return new(e||(e=Promise))(function(i,o){function _(r){try{u(s.next(r))}catch(h){o(h)}}function l(r){try{u(s.throw(r))}catch(h){o(h)}}function u(r){r.done?i(r.value):n(r.value).then(_,l)}u((s=s.apply(c,t||[])).next())})},m;class d{constructor({timeout:t,eagerStart:e,timeoutMessage:s}={timeout:0,eagerStart:!1,timeoutMessage:"DeferredPromise timed out"}){this[m]="Promise",this._state="pending",this._promise=new Promise((n,i)=>{this._resolve=n,this._reject=i}),this._timeoutMessage=s,this._timeoutInterval=t,e&&this.startTimer()}get state(){return this._state}then(t,e){return a(this,void 0,void 0,function*(){return this._promise.then(t,e)})}catch(t){return a(this,void 0,void 0,function*(){return this._promise.catch(t)})}finally(t){return a(this,void 0,void 0,function*(){return this._promise.finally(t)})}resolve(t){this._resolve(t),this._state="fulfilled",this._clearTimeout()}reject(t){this._reject(t),this._state="rejected",this._clearTimeout()}startTimer(){this._timeoutInterval&&this._timeoutInterval>0&&(this._timeoutId=setTimeout(this._checkTimeout.bind(this),this._timeoutInterval))}_checkTimeout(){this._state==="pending"&&this._timeoutId&&this.reject(new f.OperationTimeoutError(this._timeoutMessage))}_clearTimeout(){this._timeoutId&&clearTimeout(this._timeoutId)}}m=Symbol.toStringTag;exports.Web3DeferredPromise=d;
|
@@ -0,0 +1,114 @@
|
|
1
|
+
import { OperationTimeoutError as f } from "../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
var a = globalThis && globalThis.__awaiter || function(m, t, e, r) {
|
4
|
+
function n(i) {
|
5
|
+
return i instanceof e ? i : new e(function(o) {
|
6
|
+
o(i);
|
7
|
+
});
|
8
|
+
}
|
9
|
+
return new (e || (e = Promise))(function(i, o) {
|
10
|
+
function _(s) {
|
11
|
+
try {
|
12
|
+
h(r.next(s));
|
13
|
+
} catch (u) {
|
14
|
+
o(u);
|
15
|
+
}
|
16
|
+
}
|
17
|
+
function l(s) {
|
18
|
+
try {
|
19
|
+
h(r.throw(s));
|
20
|
+
} catch (u) {
|
21
|
+
o(u);
|
22
|
+
}
|
23
|
+
}
|
24
|
+
function h(s) {
|
25
|
+
s.done ? i(s.value) : n(s.value).then(_, l);
|
26
|
+
}
|
27
|
+
h((r = r.apply(m, t || [])).next());
|
28
|
+
});
|
29
|
+
}, c;
|
30
|
+
class p {
|
31
|
+
/**
|
32
|
+
*
|
33
|
+
* @param timeout - (optional) The timeout in milliseconds.
|
34
|
+
* @param eagerStart - (optional) If true, the timer starts as soon as the promise is created.
|
35
|
+
* @param timeoutMessage - (optional) The message to include in the timeout erro that is thrown when the promise times out.
|
36
|
+
*/
|
37
|
+
constructor({ timeout: t, eagerStart: e, timeoutMessage: r } = {
|
38
|
+
timeout: 0,
|
39
|
+
eagerStart: !1,
|
40
|
+
timeoutMessage: "DeferredPromise timed out"
|
41
|
+
}) {
|
42
|
+
this[c] = "Promise", this._state = "pending", this._promise = new Promise((n, i) => {
|
43
|
+
this._resolve = n, this._reject = i;
|
44
|
+
}), this._timeoutMessage = r, this._timeoutInterval = t, e && this.startTimer();
|
45
|
+
}
|
46
|
+
/**
|
47
|
+
* Returns the current state of the promise.
|
48
|
+
* @returns 'pending' | 'fulfilled' | 'rejected'
|
49
|
+
*/
|
50
|
+
get state() {
|
51
|
+
return this._state;
|
52
|
+
}
|
53
|
+
/**
|
54
|
+
*
|
55
|
+
* @param onfulfilled - (optional) The callback to execute when the promise is fulfilled.
|
56
|
+
* @param onrejected - (optional) The callback to execute when the promise is rejected.
|
57
|
+
* @returns
|
58
|
+
*/
|
59
|
+
then(t, e) {
|
60
|
+
return a(this, void 0, void 0, function* () {
|
61
|
+
return this._promise.then(t, e);
|
62
|
+
});
|
63
|
+
}
|
64
|
+
/**
|
65
|
+
*
|
66
|
+
* @param onrejected - (optional) The callback to execute when the promise is rejected.
|
67
|
+
* @returns
|
68
|
+
*/
|
69
|
+
catch(t) {
|
70
|
+
return a(this, void 0, void 0, function* () {
|
71
|
+
return this._promise.catch(t);
|
72
|
+
});
|
73
|
+
}
|
74
|
+
/**
|
75
|
+
*
|
76
|
+
* @param onfinally - (optional) The callback to execute when the promise is settled (fulfilled or rejected).
|
77
|
+
* @returns
|
78
|
+
*/
|
79
|
+
finally(t) {
|
80
|
+
return a(this, void 0, void 0, function* () {
|
81
|
+
return this._promise.finally(t);
|
82
|
+
});
|
83
|
+
}
|
84
|
+
/**
|
85
|
+
* Resolves the current promise.
|
86
|
+
* @param value - The value to resolve the promise with.
|
87
|
+
*/
|
88
|
+
resolve(t) {
|
89
|
+
this._resolve(t), this._state = "fulfilled", this._clearTimeout();
|
90
|
+
}
|
91
|
+
/**
|
92
|
+
* Rejects the current promise.
|
93
|
+
* @param reason - The reason to reject the promise with.
|
94
|
+
*/
|
95
|
+
reject(t) {
|
96
|
+
this._reject(t), this._state = "rejected", this._clearTimeout();
|
97
|
+
}
|
98
|
+
/**
|
99
|
+
* Starts the timeout timer for the promise.
|
100
|
+
*/
|
101
|
+
startTimer() {
|
102
|
+
this._timeoutInterval && this._timeoutInterval > 0 && (this._timeoutId = setTimeout(this._checkTimeout.bind(this), this._timeoutInterval));
|
103
|
+
}
|
104
|
+
_checkTimeout() {
|
105
|
+
this._state === "pending" && this._timeoutId && this.reject(new f(this._timeoutMessage));
|
106
|
+
}
|
107
|
+
_clearTimeout() {
|
108
|
+
this._timeoutId && clearTimeout(this._timeoutId);
|
109
|
+
}
|
110
|
+
}
|
111
|
+
c = Symbol.toStringTag;
|
112
|
+
export {
|
113
|
+
p as Web3DeferredPromise
|
114
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");const v=require("../../../web3-types/lib/esm/web3_base_provider.cjs"),m=require("../../../events/events.cjs"),f=require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs"),a=require("./json_rpc.cjs");var d=globalThis&&globalThis.__awaiter||function(h,t,e,o){function u(i){return i instanceof e?i:new e(function(r){r(i)})}return new(e||(e=Promise))(function(i,r){function _(n){try{c(o.next(n))}catch(s){r(s)}}function l(n){try{c(o.throw(n))}catch(s){r(s)}}function c(n){n.done?i(n.value):u(n.value).then(_,l)}c((o=o.apply(h,t||[])).next())})};class p extends v.Web3BaseProvider{constructor(){super(...arguments),this._eventEmitter=new m.eventsExports.EventEmitter,this._chainId="",this._accounts=[]}_getChainId(){var t;return d(this,void 0,void 0,function*(){const e=yield this.request(a.toPayload({method:"eth_chainId",params:[]}));return(t=e==null?void 0:e.result)!==null&&t!==void 0?t:""})}_getAccounts(){var t;return d(this,void 0,void 0,function*(){const e=yield this.request(a.toPayload({method:"eth_accounts",params:[]}));return(t=e==null?void 0:e.result)!==null&&t!==void 0?t:[]})}_onConnect(){Promise.all([this._getChainId().then(t=>{t!==this._chainId&&(this._chainId=t,this._eventEmitter.emit("chainChanged",this._chainId))}).catch(t=>{console.error(t)}),this._getAccounts().then(t=>{this._accounts.length===t.length&&t.every(e=>t.includes(e))||(this._accounts=t,this._onAccountsChanged())}).catch(t=>{console.error(t)})]).then(()=>this._eventEmitter.emit("connect",{chainId:this._chainId})).catch(t=>{console.error(t)})}_onDisconnect(t,e){this._eventEmitter.emit("disconnect",new f.EIP1193ProviderRpcError(t,e))}_onAccountsChanged(){this._eventEmitter.emit("accountsChanged",this._accounts)}}exports.Eip1193Provider=p;
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import "../../../web3-types/lib/esm/data_format_types.js";
|
2
|
+
import "../../../web3-types/lib/esm/eth_types.js";
|
3
|
+
import { Web3BaseProvider as m } from "../../../web3-types/lib/esm/web3_base_provider.js";
|
4
|
+
import { e as v } from "../../../events/events.js";
|
5
|
+
import { EIP1193ProviderRpcError as f } from "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
6
|
+
import { toPayload as a } from "./json_rpc.js";
|
7
|
+
var d = globalThis && globalThis.__awaiter || function(h, t, e, o) {
|
8
|
+
function u(i) {
|
9
|
+
return i instanceof e ? i : new e(function(r) {
|
10
|
+
r(i);
|
11
|
+
});
|
12
|
+
}
|
13
|
+
return new (e || (e = Promise))(function(i, r) {
|
14
|
+
function _(n) {
|
15
|
+
try {
|
16
|
+
c(o.next(n));
|
17
|
+
} catch (s) {
|
18
|
+
r(s);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
function l(n) {
|
22
|
+
try {
|
23
|
+
c(o.throw(n));
|
24
|
+
} catch (s) {
|
25
|
+
r(s);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
function c(n) {
|
29
|
+
n.done ? i(n.value) : u(n.value).then(_, l);
|
30
|
+
}
|
31
|
+
c((o = o.apply(h, t || [])).next());
|
32
|
+
});
|
33
|
+
};
|
34
|
+
class C extends m {
|
35
|
+
constructor() {
|
36
|
+
super(...arguments), this._eventEmitter = new v.EventEmitter(), this._chainId = "", this._accounts = [];
|
37
|
+
}
|
38
|
+
_getChainId() {
|
39
|
+
var t;
|
40
|
+
return d(this, void 0, void 0, function* () {
|
41
|
+
const e = yield this.request(a({
|
42
|
+
method: "eth_chainId",
|
43
|
+
params: []
|
44
|
+
}));
|
45
|
+
return (t = e == null ? void 0 : e.result) !== null && t !== void 0 ? t : "";
|
46
|
+
});
|
47
|
+
}
|
48
|
+
_getAccounts() {
|
49
|
+
var t;
|
50
|
+
return d(this, void 0, void 0, function* () {
|
51
|
+
const e = yield this.request(a({
|
52
|
+
method: "eth_accounts",
|
53
|
+
params: []
|
54
|
+
}));
|
55
|
+
return (t = e == null ? void 0 : e.result) !== null && t !== void 0 ? t : [];
|
56
|
+
});
|
57
|
+
}
|
58
|
+
_onConnect() {
|
59
|
+
Promise.all([
|
60
|
+
this._getChainId().then((t) => {
|
61
|
+
t !== this._chainId && (this._chainId = t, this._eventEmitter.emit("chainChanged", this._chainId));
|
62
|
+
}).catch((t) => {
|
63
|
+
console.error(t);
|
64
|
+
}),
|
65
|
+
this._getAccounts().then((t) => {
|
66
|
+
this._accounts.length === t.length && t.every((e) => t.includes(e)) || (this._accounts = t, this._onAccountsChanged());
|
67
|
+
}).catch((t) => {
|
68
|
+
console.error(t);
|
69
|
+
})
|
70
|
+
]).then(() => this._eventEmitter.emit("connect", {
|
71
|
+
chainId: this._chainId
|
72
|
+
})).catch((t) => {
|
73
|
+
console.error(t);
|
74
|
+
});
|
75
|
+
}
|
76
|
+
// todo this must be ProvideRpcError with a message too
|
77
|
+
_onDisconnect(t, e) {
|
78
|
+
this._eventEmitter.emit("disconnect", new f(t, e));
|
79
|
+
}
|
80
|
+
_onAccountsChanged() {
|
81
|
+
this._eventEmitter.emit("accountsChanged", this._accounts);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
export {
|
85
|
+
C as Eip1193Provider
|
86
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=["bool","int","uint","bytes","string","address","tuple"];exports.VALID_ETH_BASE_TYPES=t;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./web3_validator.cjs"),t=new e.Web3Validator;exports.validator=t;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../web3-errors/lib/esm/error_codes.cjs"),s=require("../../../web3-errors/lib/esm/web3_error_base.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const t=r=>r.message?r.message:"unspecified error";class i extends s.BaseWeb3Error{constructor(e){super(),this.code=o.ERR_VALIDATION,this.errors=e,super.message=`Web3 validator found ${e.length} error[s]:
|
2
|
+
${this._compileErrors().join(`
|
3
|
+
`)}`}_compileErrors(){return this.errors.map(t)}}exports.Web3ValidatorError=i;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { ERR_VALIDATION as o } from "../../../web3-errors/lib/esm/error_codes.js";
|
2
|
+
import { BaseWeb3Error as s } from "../../../web3-errors/lib/esm/web3_error_base.js";
|
3
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
4
|
+
const t = (r) => r.message ? r.message : "unspecified error";
|
5
|
+
class a extends s {
|
6
|
+
constructor(e) {
|
7
|
+
super(), this.code = o, this.errors = e, super.message = `Web3 validator found ${e.length} error[s]:
|
8
|
+
${this._compileErrors().join(`
|
9
|
+
`)}`;
|
10
|
+
}
|
11
|
+
_compileErrors() {
|
12
|
+
return this.errors.map(t);
|
13
|
+
}
|
14
|
+
}
|
15
|
+
export {
|
16
|
+
a as Web3ValidatorError
|
17
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const b=require("./validation/address.cjs"),i=require("./validation/block.cjs"),l=require("./validation/bloom.cjs"),u=require("./validation/boolean.cjs"),n=require("./validation/bytes.cjs"),c=require("./validation/filter.cjs"),o=require("./validation/string.cjs"),r=require("./validation/numbers.cjs"),s={address:e=>b.isAddress(e),bloom:e=>l.isBloom(e),blockNumber:e=>i.isBlockNumber(e),blockTag:e=>i.isBlockTag(e),blockNumberOrTag:e=>i.isBlockNumberOrTag(e),bool:e=>u.isBoolean(e),bytes:e=>n.isBytes(e),filter:e=>c.isFilterObject(e),hex:e=>o.isHexStrict(e),uint:e=>r.isUInt(e),int:e=>r.isInt(e),number:e=>r.isNumber(e),string:e=>o.isString(e)};for(let e=8;e<=256;e+=8)s[`int${e}`]=t=>r.isInt(t,{bitSize:e}),s[`uint${e}`]=t=>r.isUInt(t,{bitSize:e});for(let e=1;e<=32;e+=1)s[`bytes${e}`]=t=>n.isBytes(t,{size:e});s.bytes256=s.bytes;exports.default=s;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
import { isAddress as m } from "./validation/address.js";
|
2
|
+
import { isBlockNumber as b, isBlockTag as l, isBlockNumberOrTag as f } from "./validation/block.js";
|
3
|
+
import { isBloom as n } from "./validation/bloom.js";
|
4
|
+
import { isBoolean as a } from "./validation/boolean.js";
|
5
|
+
import { isBytes as t } from "./validation/bytes.js";
|
6
|
+
import { isFilterObject as c } from "./validation/filter.js";
|
7
|
+
import { isHexStrict as p, isString as u } from "./validation/string.js";
|
8
|
+
import { isUInt as s, isInt as e, isNumber as g } from "./validation/numbers.js";
|
9
|
+
const i = {
|
10
|
+
address: (o) => m(o),
|
11
|
+
bloom: (o) => n(o),
|
12
|
+
blockNumber: (o) => b(o),
|
13
|
+
blockTag: (o) => l(o),
|
14
|
+
blockNumberOrTag: (o) => f(o),
|
15
|
+
bool: (o) => a(o),
|
16
|
+
bytes: (o) => t(o),
|
17
|
+
filter: (o) => c(o),
|
18
|
+
hex: (o) => p(o),
|
19
|
+
uint: (o) => s(o),
|
20
|
+
int: (o) => e(o),
|
21
|
+
number: (o) => g(o),
|
22
|
+
string: (o) => u(o)
|
23
|
+
};
|
24
|
+
for (let o = 8; o <= 256; o += 8)
|
25
|
+
i[`int${o}`] = (r) => e(r, { bitSize: o }), i[`uint${o}`] = (r) => s(r, { bitSize: o });
|
26
|
+
for (let o = 1; o <= 32; o += 1)
|
27
|
+
i[`bytes${o}`] = (r) => t(r, { size: o });
|
28
|
+
i.bytes256 = i.bytes;
|
29
|
+
export {
|
30
|
+
i as default
|
31
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("../../../web3-errors/lib/esm/errors/utils_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const H=require("./constants.cjs"),E=require("./validation/abi.cjs"),u=require("./validation/string.cjs"),I=require("./errors.cjs"),W=["hex","number","blockNumber","blockNumberOrTag","filter","bloom"],x=e=>{let t=e.replace(/ /,""),s,r=!1,i=[];if(e.includes("[")&&(t=t.slice(0,t.indexOf("[")),i=[...e.matchAll(/(?:\[(\d*)\])/g)].map(n=>parseInt(n[1],10)).map(n=>Number.isNaN(n)?-1:n),r=i.length>0),H.VALID_ETH_BASE_TYPES.includes(t))return{baseType:t,isArray:r,baseTypeSize:s,arraySizes:i};if(t.startsWith("int"))s=parseInt(t.substring(3),10),t="int";else if(t.startsWith("uint"))s=parseInt(e.substring(4),10),t="uint";else if(t.startsWith("bytes"))s=parseInt(t.substring(5),10),t="bytes";else return{baseType:void 0,isArray:!1,baseTypeSize:void 0,arraySizes:i};return{baseType:t,isArray:r,baseTypeSize:s,arraySizes:i}},T=(e,t={})=>{if(Object.keys(t).includes("type"))throw new I.Web3ValidatorError([{keyword:"eth",message:'Either "eth" or "type" can be presented in schema',params:{eth:e},instancePath:"",schemaPath:""}]);const{baseType:r,baseTypeSize:i}=x(e);if(!r&&!W.includes(e))throw new I.Web3ValidatorError([{keyword:"eth",message:`Eth data type "${e}" is not valid`,params:{eth:e},instancePath:"",schemaPath:""}]);if(r){if(r==="tuple")throw new Error('"tuple" type is not implemented directly.');return{format:`${r}${i??""}`,required:!0}}return e?{format:e,required:!0}:{}},g=(e,t="/0")=>{const s={type:"array",items:[],maxItems:e.length,minItems:e.length};for(const[r,i]of e.entries()){let n,m,f=[];E.isAbiParameterSchema(i)?(n=i.type,m=i.name,f=i.components):typeof i=="string"?(n=i,m=`${t}/${r}`):Array.isArray(i)&&(i[0]&&typeof i[0]=="string"&&i[0].startsWith("tuple")&&!Array.isArray(i[0])&&i[1]&&Array.isArray(i[1])?(n=i[0],m=`${t}/${r}`,f=i[1]):(n="tuple",m=`${t}/${r}`,f=i));const{baseType:c,isArray:y,arraySizes:h}=x(n);let p,a=s;for(let o=h.length-1;o>0;o-=1)p={type:"array",items:[],maxItems:h[o],minItems:h[o]},h[o]<0&&(delete p.maxItems,delete p.minItems),Array.isArray(a.items)?a.items.length===0?a.items=p:a.items.push(p):a.items=[a.items,p],a=p;if(c==="tuple"&&!y){const o=g(f,m);o.$id=m,a.items.push(o)}else if(c==="tuple"&&y){const o=h[0],l={$id:m,type:"array",items:g(f,m),maxItems:o,minItems:o};o<0&&(delete l.maxItems,delete l.minItems),a.items.push(l)}else if(y){const o=h[0],l={type:"array",$id:m,items:T(String(c)),minItems:o,maxItems:o};o<0&&(delete l.maxItems,delete l.minItems),a.items.push(l)}else Array.isArray(a.items)?a.items.push(Object.assign({$id:m},T(n))):a.items.items.push(Object.assign({$id:m},T(n)));a=s}return s},q=e=>g(e),d=(e,t)=>t===1?e:d(e[0],t-1),b=(e,t,s)=>{const r=[];for(const[i,n]of e.entries()){let m,f,c=[];E.isAbiParameterSchema(n)?(m=n.type,f=n.name,c=n.components):typeof n=="string"?m=n:Array.isArray(n)&&(n[1]&&Array.isArray(n[1])?(m=n[0],c=n[1]):(m="tuple",c=n));const{baseType:y,isArray:h,arraySizes:p}=x(m),a=Array.isArray(t)?t[i]:t[f];if(y==="tuple"&&!h)r.push(b(c,a,s));else if(y==="tuple"&&h){const o=[];for(const l of a)if(p.length>1){const w=d(l,p.length-1),S=[];for(const N of w)S.push(b(c,N,s));o.push(S)}else o.push(b(c,l,s));r.push(o)}else r.push(a)}return s=s??[],s.push(...r),s},_=e=>{if(e>=48&&e<=57)return e-48;if(e>=65&&e<=70)return e-55;if(e>=97&&e<=102)return e-87;throw new Error(`Invalid code point: ${e}`)},z=e=>{if(!u.isHexStrict(e))throw new Error("Invalid hex string");const[t,s]=e.startsWith("-")?[!0,e.slice(1)]:[!1,e],r=BigInt(s);return r>Number.MAX_SAFE_INTEGER?t?-r:r:r<Number.MIN_SAFE_INTEGER?r:t?-1*Number(r):Number(r)},A=e=>{if((typeof e=="number"||typeof e=="bigint")&&e<0)return`-0x${e.toString(16).slice(1)}`;if((typeof e=="number"||typeof e=="bigint")&&e>=0)return`0x${e.toString(16)}`;if(typeof e=="string"&&u.isHexStrict(e)){const[t,s]=e.startsWith("-")?[!0,e.slice(1)]:[!1,e],r=s.split(/^(-)?0(x|X)/).slice(-1)[0];return`${t?"-":""}0x${r.replace(/^0+/,"").toLowerCase()}`}if(typeof e=="string"&&!u.isHexStrict(e))return A(BigInt(e));throw new $.InvalidNumberError(e)},B=(e,t,s="0")=>{if(typeof e=="string"&&!u.isHexStrict(e))return e.padStart(t,s);const r=typeof e=="string"&&u.isHexStrict(e)?e:A(e),[i,n]=r.startsWith("-")?["-0x",r.slice(3)]:["0x",r.slice(2)];return`${i}${n.padStart(t,s)}`};function J(e){let t="0x";for(const s of e){const r=s.toString(16);t+=r.length===1?`0${r}`:r}return t}function O(e){let t;if(e.toLowerCase().startsWith("0x")?t=e.slice(2):t=e,t.length%2!==0)throw new $.InvalidBytesError(`hex string has odd length: ${e}`);const s=new Uint8Array(Math.ceil(t.length/2));for(let r=0;r<s.length;r+=1){const i=parseInt(t.substring(r*2,r*2+2),16);s[r]=i}return s}exports.abiSchemaToJsonSchema=g;exports.codePointToInt=_;exports.ethAbiToJsonSchema=q;exports.fetchArrayElement=d;exports.hexToNumber=z;exports.hexToUint8Array=O;exports.numberToHex=A;exports.padLeft=B;exports.parseBaseType=x;exports.transformJsonDataToAbiFormat=b;exports.uint8ArrayToHexString=J;
|
@@ -0,0 +1,178 @@
|
|
1
|
+
import { InvalidNumberError as N, InvalidBytesError as W } from "../../../web3-errors/lib/esm/errors/utils_errors.js";
|
2
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import { VALID_ETH_BASE_TYPES as z } from "./constants.js";
|
4
|
+
import { isAbiParameterSchema as T } from "./validation/abi.js";
|
5
|
+
import { isHexStrict as u } from "./validation/string.js";
|
6
|
+
import { Web3ValidatorError as A } from "./errors.js";
|
7
|
+
const _ = ["hex", "number", "blockNumber", "blockNumberOrTag", "filter", "bloom"], d = (e) => {
|
8
|
+
let t = e.replace(/ /, ""), s, r = !1, i = [];
|
9
|
+
if (e.includes("[") && (t = t.slice(0, t.indexOf("[")), i = [...e.matchAll(/(?:\[(\d*)\])/g)].map((n) => parseInt(n[1], 10)).map((n) => Number.isNaN(n) ? -1 : n), r = i.length > 0), z.includes(t))
|
10
|
+
return { baseType: t, isArray: r, baseTypeSize: s, arraySizes: i };
|
11
|
+
if (t.startsWith("int"))
|
12
|
+
s = parseInt(t.substring(3), 10), t = "int";
|
13
|
+
else if (t.startsWith("uint"))
|
14
|
+
s = parseInt(e.substring(4), 10), t = "uint";
|
15
|
+
else if (t.startsWith("bytes"))
|
16
|
+
s = parseInt(t.substring(5), 10), t = "bytes";
|
17
|
+
else
|
18
|
+
return { baseType: void 0, isArray: !1, baseTypeSize: void 0, arraySizes: i };
|
19
|
+
return { baseType: t, isArray: r, baseTypeSize: s, arraySizes: i };
|
20
|
+
}, b = (e, t = {}) => {
|
21
|
+
if (Object.keys(t).includes("type"))
|
22
|
+
throw new A([
|
23
|
+
{
|
24
|
+
keyword: "eth",
|
25
|
+
message: 'Either "eth" or "type" can be presented in schema',
|
26
|
+
params: { eth: e },
|
27
|
+
instancePath: "",
|
28
|
+
schemaPath: ""
|
29
|
+
}
|
30
|
+
]);
|
31
|
+
const { baseType: r, baseTypeSize: i } = d(e);
|
32
|
+
if (!r && !_.includes(e))
|
33
|
+
throw new A([
|
34
|
+
{
|
35
|
+
keyword: "eth",
|
36
|
+
message: `Eth data type "${e}" is not valid`,
|
37
|
+
params: { eth: e },
|
38
|
+
instancePath: "",
|
39
|
+
schemaPath: ""
|
40
|
+
}
|
41
|
+
]);
|
42
|
+
if (r) {
|
43
|
+
if (r === "tuple")
|
44
|
+
throw new Error('"tuple" type is not implemented directly.');
|
45
|
+
return { format: `${r}${i ?? ""}`, required: !0 };
|
46
|
+
}
|
47
|
+
return e ? { format: e, required: !0 } : {};
|
48
|
+
}, I = (e, t = "/0") => {
|
49
|
+
const s = {
|
50
|
+
type: "array",
|
51
|
+
items: [],
|
52
|
+
maxItems: e.length,
|
53
|
+
minItems: e.length
|
54
|
+
};
|
55
|
+
for (const [r, i] of e.entries()) {
|
56
|
+
let n, m, c = [];
|
57
|
+
T(i) ? (n = i.type, m = i.name, c = i.components) : typeof i == "string" ? (n = i, m = `${t}/${r}`) : Array.isArray(i) && (i[0] && typeof i[0] == "string" && i[0].startsWith("tuple") && !Array.isArray(i[0]) && i[1] && Array.isArray(i[1]) ? (n = i[0], m = `${t}/${r}`, c = i[1]) : (n = "tuple", m = `${t}/${r}`, c = i));
|
58
|
+
const { baseType: p, isArray: y, arraySizes: h } = d(n);
|
59
|
+
let f, a = s;
|
60
|
+
for (let o = h.length - 1; o > 0; o -= 1)
|
61
|
+
f = {
|
62
|
+
type: "array",
|
63
|
+
items: [],
|
64
|
+
maxItems: h[o],
|
65
|
+
minItems: h[o]
|
66
|
+
}, h[o] < 0 && (delete f.maxItems, delete f.minItems), Array.isArray(a.items) ? a.items.length === 0 ? a.items = f : a.items.push(f) : a.items = [a.items, f], a = f;
|
67
|
+
if (p === "tuple" && !y) {
|
68
|
+
const o = I(c, m);
|
69
|
+
o.$id = m, a.items.push(o);
|
70
|
+
} else if (p === "tuple" && y) {
|
71
|
+
const o = h[0], l = {
|
72
|
+
$id: m,
|
73
|
+
type: "array",
|
74
|
+
items: I(c, m),
|
75
|
+
maxItems: o,
|
76
|
+
minItems: o
|
77
|
+
};
|
78
|
+
o < 0 && (delete l.maxItems, delete l.minItems), a.items.push(l);
|
79
|
+
} else if (y) {
|
80
|
+
const o = h[0], l = {
|
81
|
+
type: "array",
|
82
|
+
$id: m,
|
83
|
+
items: b(String(p)),
|
84
|
+
minItems: o,
|
85
|
+
maxItems: o
|
86
|
+
};
|
87
|
+
o < 0 && (delete l.maxItems, delete l.minItems), a.items.push(l);
|
88
|
+
} else
|
89
|
+
Array.isArray(a.items) ? a.items.push(Object.assign({ $id: m }, b(n))) : a.items.items.push(Object.assign({ $id: m }, b(n)));
|
90
|
+
a = s;
|
91
|
+
}
|
92
|
+
return s;
|
93
|
+
}, L = (e) => I(e), S = (e, t) => t === 1 ? e : S(e[0], t - 1), g = (e, t, s) => {
|
94
|
+
const r = [];
|
95
|
+
for (const [i, n] of e.entries()) {
|
96
|
+
let m, c, p = [];
|
97
|
+
T(n) ? (m = n.type, c = n.name, p = n.components) : typeof n == "string" ? m = n : Array.isArray(n) && (n[1] && Array.isArray(n[1]) ? (m = n[0], p = n[1]) : (m = "tuple", p = n));
|
98
|
+
const { baseType: y, isArray: h, arraySizes: f } = d(m), a = Array.isArray(t) ? t[i] : t[c];
|
99
|
+
if (y === "tuple" && !h)
|
100
|
+
r.push(g(p, a, s));
|
101
|
+
else if (y === "tuple" && h) {
|
102
|
+
const o = [];
|
103
|
+
for (const l of a)
|
104
|
+
if (f.length > 1) {
|
105
|
+
const w = S(l, f.length - 1), x = [];
|
106
|
+
for (const E of w)
|
107
|
+
x.push(g(p, E, s));
|
108
|
+
o.push(x);
|
109
|
+
} else
|
110
|
+
o.push(g(p, l, s));
|
111
|
+
r.push(o);
|
112
|
+
} else
|
113
|
+
r.push(a);
|
114
|
+
}
|
115
|
+
return s = s ?? [], s.push(...r), s;
|
116
|
+
}, j = (e) => {
|
117
|
+
if (e >= 48 && e <= 57)
|
118
|
+
return e - 48;
|
119
|
+
if (e >= 65 && e <= 70)
|
120
|
+
return e - 55;
|
121
|
+
if (e >= 97 && e <= 102)
|
122
|
+
return e - 87;
|
123
|
+
throw new Error(`Invalid code point: ${e}`);
|
124
|
+
}, F = (e) => {
|
125
|
+
if (!u(e))
|
126
|
+
throw new Error("Invalid hex string");
|
127
|
+
const [t, s] = e.startsWith("-") ? [!0, e.slice(1)] : [!1, e], r = BigInt(s);
|
128
|
+
return r > Number.MAX_SAFE_INTEGER ? t ? -r : r : r < Number.MIN_SAFE_INTEGER ? r : t ? -1 * Number(r) : Number(r);
|
129
|
+
}, $ = (e) => {
|
130
|
+
if ((typeof e == "number" || typeof e == "bigint") && e < 0)
|
131
|
+
return `-0x${e.toString(16).slice(1)}`;
|
132
|
+
if ((typeof e == "number" || typeof e == "bigint") && e >= 0)
|
133
|
+
return `0x${e.toString(16)}`;
|
134
|
+
if (typeof e == "string" && u(e)) {
|
135
|
+
const [t, s] = e.startsWith("-") ? [!0, e.slice(1)] : [!1, e], r = s.split(/^(-)?0(x|X)/).slice(-1)[0];
|
136
|
+
return `${t ? "-" : ""}0x${r.replace(/^0+/, "").toLowerCase()}`;
|
137
|
+
}
|
138
|
+
if (typeof e == "string" && !u(e))
|
139
|
+
return $(BigInt(e));
|
140
|
+
throw new N(e);
|
141
|
+
}, J = (e, t, s = "0") => {
|
142
|
+
if (typeof e == "string" && !u(e))
|
143
|
+
return e.padStart(t, s);
|
144
|
+
const r = typeof e == "string" && u(e) ? e : $(e), [i, n] = r.startsWith("-") ? ["-0x", r.slice(3)] : ["0x", r.slice(2)];
|
145
|
+
return `${i}${n.padStart(t, s)}`;
|
146
|
+
};
|
147
|
+
function M(e) {
|
148
|
+
let t = "0x";
|
149
|
+
for (const s of e) {
|
150
|
+
const r = s.toString(16);
|
151
|
+
t += r.length === 1 ? `0${r}` : r;
|
152
|
+
}
|
153
|
+
return t;
|
154
|
+
}
|
155
|
+
function q(e) {
|
156
|
+
let t;
|
157
|
+
if (e.toLowerCase().startsWith("0x") ? t = e.slice(2) : t = e, t.length % 2 !== 0)
|
158
|
+
throw new W(`hex string has odd length: ${e}`);
|
159
|
+
const s = new Uint8Array(Math.ceil(t.length / 2));
|
160
|
+
for (let r = 0; r < s.length; r += 1) {
|
161
|
+
const i = parseInt(t.substring(r * 2, r * 2 + 2), 16);
|
162
|
+
s[r] = i;
|
163
|
+
}
|
164
|
+
return s;
|
165
|
+
}
|
166
|
+
export {
|
167
|
+
I as abiSchemaToJsonSchema,
|
168
|
+
j as codePointToInt,
|
169
|
+
L as ethAbiToJsonSchema,
|
170
|
+
S as fetchArrayElement,
|
171
|
+
F as hexToNumber,
|
172
|
+
q as hexToUint8Array,
|
173
|
+
$ as numberToHex,
|
174
|
+
J as padLeft,
|
175
|
+
d as parseBaseType,
|
176
|
+
g as transformJsonDataToAbiFormat,
|
177
|
+
M as uint8ArrayToHexString
|
178
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=e=>typeof e=="object"&&"type"in e&&"name"in e;exports.isAbiParameterSchema=t;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../../ethereum-cryptography/esm/keccak.cjs"),n=require("../utils.cjs"),f=require("./string.cjs"),a=require("../../../../@noble/hashes/esm/utils.cjs"),o=e=>{if(!/^(0x)?[0-9a-f]{40}$/i.test(e))return!1;const s=e.slice(2),t=a.utf8ToBytes(s.toLowerCase()),i=n.uint8ArrayToHexString(c.keccak256(t)).slice(2);for(let r=0;r<40;r+=1)if(parseInt(i[r],16)>7&&s[r].toUpperCase()!==s[r]||parseInt(i[r],16)<=7&&s[r].toLowerCase()!==s[r])return!1;return!0},u=(e,s=!0)=>{if(typeof e!="string"&&!(e instanceof Uint8Array))return!1;let t;return e instanceof Uint8Array?t=n.uint8ArrayToHexString(e):typeof e=="string"&&!f.isHexStrict(e)?t=e.toLowerCase().startsWith("0x")?e:`0x${e}`:t=e,/^(0x)?[0-9a-f]{40}$/i.test(t)?/^(0x|0X)?[0-9a-f]{40}$/.test(t)||/^(0x|0X)?[0-9A-F]{40}$/.test(t)?!0:s?o(t):!0:!1};exports.checkAddressCheckSum=o;exports.isAddress=u;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { keccak256 as f } from "../../../../ethereum-cryptography/esm/keccak.js";
|
2
|
+
import { uint8ArrayToHexString as i } from "../utils.js";
|
3
|
+
import { isHexStrict as n } from "./string.js";
|
4
|
+
import { utf8ToBytes as a } from "../../../../@noble/hashes/esm/utils.js";
|
5
|
+
const c = (t) => {
|
6
|
+
if (!/^(0x)?[0-9a-f]{40}$/i.test(t))
|
7
|
+
return !1;
|
8
|
+
const s = t.slice(2), r = a(s.toLowerCase()), o = i(f(r)).slice(2);
|
9
|
+
for (let e = 0; e < 40; e += 1)
|
10
|
+
if (parseInt(o[e], 16) > 7 && s[e].toUpperCase() !== s[e] || parseInt(o[e], 16) <= 7 && s[e].toLowerCase() !== s[e])
|
11
|
+
return !1;
|
12
|
+
return !0;
|
13
|
+
}, u = (t, s = !0) => {
|
14
|
+
if (typeof t != "string" && !(t instanceof Uint8Array))
|
15
|
+
return !1;
|
16
|
+
let r;
|
17
|
+
return t instanceof Uint8Array ? r = i(t) : typeof t == "string" && !n(t) ? r = t.toLowerCase().startsWith("0x") ? t : `0x${t}` : r = t, /^(0x)?[0-9a-f]{40}$/i.test(r) ? /^(0x|0X)?[0-9a-f]{40}$/.test(r) || /^(0x|0X)?[0-9A-F]{40}$/.test(r) ? !0 : s ? c(r) : !0 : !1;
|
18
|
+
};
|
19
|
+
export {
|
20
|
+
c as checkAddressCheckSum,
|
21
|
+
u as isAddress
|
22
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../../web3-types/lib/esm/data_format_types.cjs");const c=require("../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../web3-types/lib/esm/web3_base_provider.cjs");const o=require("./numbers.cjs"),r=e=>o.isUInt(e),s=e=>Object.values(c.BlockTags).includes(e),i=e=>s(e)||r(e);exports.isBlockNumber=r;exports.isBlockNumberOrTag=i;exports.isBlockTag=s;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import "../../../../web3-types/lib/esm/data_format_types.js";
|
2
|
+
import { BlockTags as r } from "../../../../web3-types/lib/esm/eth_types.js";
|
3
|
+
import "../../../../web3-types/lib/esm/web3_base_provider.js";
|
4
|
+
import { isUInt as s } from "./numbers.js";
|
5
|
+
const t = (o) => s(o), c = (o) => Object.values(r).includes(o), n = (o) => c(o) || t(o);
|
6
|
+
export {
|
7
|
+
t as isBlockNumber,
|
8
|
+
n as isBlockNumberOrTag,
|
9
|
+
c as isBlockTag
|
10
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../../../../ethereum-cryptography/esm/keccak.cjs"),s=require("../utils.cjs"),u=require("./address.cjs"),A=require("./string.cjs"),n=t=>typeof t!="string"||!/^(0x)?[0-9a-f]{512}$/i.test(t)?!1:!!(/^(0x)?[0-9a-f]{512}$/.test(t)||/^(0x)?[0-9A-F]{512}$/.test(t)),o=(t,e)=>{if(typeof e=="string"&&!A.isHexStrict(e)||!n(t))return!1;const i=typeof e=="string"?s.hexToUint8Array(e):e,f=s.uint8ArrayToHexString(l.keccak256(i)).slice(2);for(let r=0;r<12;r+=4){const c=(parseInt(f.slice(r,r+2),16)<<8)+parseInt(f.slice(r+2,r+4),16)&2047,d=s.codePointToInt(t.charCodeAt(t.length-1-Math.floor(c/4))),a=1<<c%4;if((d&a)!==a)return!1}return!0},I=(t,e)=>{if(!n(t)||!u.isAddress(e))return!1;const i=s.padLeft(e,64);return o(t,i)},g=(t,e)=>!n(t)||!u.isAddress(e)?!1:o(t,e);exports.isBloom=n;exports.isContractAddressInBloom=g;exports.isInBloom=o;exports.isUserEthereumAddressInBloom=I;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { keccak256 as p } from "../../../../ethereum-cryptography/esm/keccak.js";
|
2
|
+
import { hexToUint8Array as l, uint8ArrayToHexString as d, codePointToInt as x, padLeft as h } from "../utils.js";
|
3
|
+
import { isAddress as a } from "./address.js";
|
4
|
+
import { isHexStrict as y } from "./string.js";
|
5
|
+
const n = (t) => typeof t != "string" || !/^(0x)?[0-9a-f]{512}$/i.test(t) ? !1 : !!(/^(0x)?[0-9a-f]{512}$/.test(t) || /^(0x)?[0-9A-F]{512}$/.test(t)), c = (t, r) => {
|
6
|
+
if (typeof r == "string" && !y(r) || !n(t))
|
7
|
+
return !1;
|
8
|
+
const s = typeof r == "string" ? l(r) : r, i = d(p(s)).slice(2);
|
9
|
+
for (let e = 0; e < 12; e += 4) {
|
10
|
+
const f = (
|
11
|
+
// eslint-disable-next-line no-bitwise
|
12
|
+
(parseInt(i.slice(e, e + 2), 16) << 8) + parseInt(i.slice(e + 2, e + 4), 16) & 2047
|
13
|
+
), u = x(t.charCodeAt(t.length - 1 - Math.floor(f / 4))), o = 1 << f % 4;
|
14
|
+
if ((u & o) !== o)
|
15
|
+
return !1;
|
16
|
+
}
|
17
|
+
return !0;
|
18
|
+
}, B = (t, r) => {
|
19
|
+
if (!n(t) || !a(r))
|
20
|
+
return !1;
|
21
|
+
const s = h(r, 64);
|
22
|
+
return c(t, s);
|
23
|
+
}, T = (t, r) => !n(t) || !a(r) ? !1 : c(t, r);
|
24
|
+
export {
|
25
|
+
n as isBloom,
|
26
|
+
T as isContractAddressInBloom,
|
27
|
+
c as isInBloom,
|
28
|
+
B as isUserEthereumAddressInBloom
|
29
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./string.cjs"),i=t=>["number","string","boolean"].includes(typeof t)?typeof t=="boolean"?!0:typeof t=="string"&&!r.isHexStrict(t)?t==="1"||t==="0":typeof t=="string"&&r.isHexStrict(t)?t==="0x1"||t==="0x0":t===1||t===0:!1;exports.isBoolean=i;
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { isHexStrict as t } from "./string.js";
|
2
|
+
const o = (r) => ["number", "string", "boolean"].includes(typeof r) ? typeof r == "boolean" ? !0 : typeof r == "string" && !t(r) ? r === "1" || r === "0" : typeof r == "string" && t(r) ? r === "0x1" || r === "0x0" : r === 1 || r === 0 : !1;
|
3
|
+
export {
|
4
|
+
o as isBoolean
|
5
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../utils.cjs"),n=require("./string.cjs"),y=(r,e={abiType:"bytes"})=>{if(typeof r!="string"&&!Array.isArray(r)&&!(r instanceof Uint8Array)||typeof r=="string"&&n.isHexStrict(r)&&r.startsWith("-")||typeof r=="string"&&!n.isHexStrict(r))return!1;let i;if(typeof r=="string"){if(r.length%2!==0)return!1;i=s.hexToUint8Array(r)}else if(Array.isArray(r)){if(r.some(t=>t<0||t>255||!Number.isInteger(t)))return!1;i=new Uint8Array(r)}else i=r;if(e!=null&&e.abiType){const{baseTypeSize:t}=s.parseBaseType(e.abiType);return t?i.length===t:!0}return e!=null&&e.size?i.length===(e==null?void 0:e.size):!0};exports.isBytes=y;
|