@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 @@
|
|
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 e=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");const t=require("./schemas.cjs"),i=require("../../../web3-utils/lib/esm/formatter.cjs");class c extends e.Web3Subscription{_buildSubscriptionParams(){return["logs",this.args]}formatSubscriptionResult(r){return i.format(t.logSchema,r,super.returnFormat)}}class a extends e.Web3Subscription{_buildSubscriptionParams(){return["newPendingTransactions"]}formatSubscriptionResult(r){return i.format({format:"string"},r,super.returnFormat)}}class b extends e.Web3Subscription{_buildSubscriptionParams(){return["newHeads"]}formatSubscriptionResult(r){return i.format(t.blockHeaderSchema,r,super.returnFormat)}}class p extends e.Web3Subscription{_buildSubscriptionParams(){return["syncing"]}_processSubscriptionResult(r){if(typeof r=="boolean")this.emit("changed",r);else{const u=Object.fromEntries(Object.entries(r.status).map(([n,o])=>[n.charAt(0).toLowerCase()+n.substring(1),o]));this.emit("changed",r.syncing),this.emit("data",i.format(t.syncSchema,u,super.returnFormat))}}}exports.LogsSubscription=c;exports.NewHeadsSubscription=b;exports.NewPendingTransactionsSubscription=a;exports.SyncingSubscription=p;
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import "../../../web3-core/lib/esm/web3_config.js";
|
2
|
+
import "../../../web3-core/lib/esm/web3_request_manager.js";
|
3
|
+
import "../../../web3-core/lib/esm/web3_subscription_manager.js";
|
4
|
+
import { Web3Subscription as t } from "../../../web3-core/lib/esm/web3_subscriptions.js";
|
5
|
+
import "../../../web3-core/lib/esm/web3_context.js";
|
6
|
+
import "../../../web3-core/lib/esm/web3_batch_request.js";
|
7
|
+
import "../../../web3-types/lib/esm/data_format_types.js";
|
8
|
+
import "../../../web3-types/lib/esm/eth_types.js";
|
9
|
+
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
10
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
11
|
+
import "../../../web3-eth-iban/lib/esm/iban.js";
|
12
|
+
import "../../../web3-validator/lib/esm/formats.js";
|
13
|
+
import "../../../web3-validator/lib/esm/default_validator.js";
|
14
|
+
import "../../../web3-core/lib/esm/web3_promi_event.js";
|
15
|
+
import { logSchema as m, blockHeaderSchema as p, syncSchema as a } from "./schemas.js";
|
16
|
+
import { format as i } from "../../../web3-utils/lib/esm/formatter.js";
|
17
|
+
class H extends t {
|
18
|
+
_buildSubscriptionParams() {
|
19
|
+
return ["logs", this.args];
|
20
|
+
}
|
21
|
+
formatSubscriptionResult(r) {
|
22
|
+
return i(m, r, super.returnFormat);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
class j extends t {
|
26
|
+
// eslint-disable-next-line
|
27
|
+
_buildSubscriptionParams() {
|
28
|
+
return ["newPendingTransactions"];
|
29
|
+
}
|
30
|
+
formatSubscriptionResult(r) {
|
31
|
+
return i({ format: "string" }, r, super.returnFormat);
|
32
|
+
}
|
33
|
+
}
|
34
|
+
class L extends t {
|
35
|
+
// eslint-disable-next-line
|
36
|
+
_buildSubscriptionParams() {
|
37
|
+
return ["newHeads"];
|
38
|
+
}
|
39
|
+
formatSubscriptionResult(r) {
|
40
|
+
return i(p, r, super.returnFormat);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
class N extends t {
|
44
|
+
// eslint-disable-next-line
|
45
|
+
_buildSubscriptionParams() {
|
46
|
+
return ["syncing"];
|
47
|
+
}
|
48
|
+
_processSubscriptionResult(r) {
|
49
|
+
if (typeof r == "boolean")
|
50
|
+
this.emit("changed", r);
|
51
|
+
else {
|
52
|
+
const o = Object.fromEntries(Object.entries(r.status).map(([e, n]) => [
|
53
|
+
e.charAt(0).toLowerCase() + e.substring(1),
|
54
|
+
n
|
55
|
+
]));
|
56
|
+
this.emit("changed", r.syncing), this.emit("data", i(a, o, super.returnFormat));
|
57
|
+
}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
export {
|
61
|
+
H as LogsSubscription,
|
62
|
+
L as NewHeadsSubscription,
|
63
|
+
j as NewPendingTransactionsSubscription,
|
64
|
+
N as SyncingSubscription
|
65
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const t=require("../utils.cjs"),i=require("../../../../web3-utils/lib/esm/hash.cjs"),s=r=>{if(typeof r!="string"&&!t.isAbiErrorFragment(r))throw new o.AbiError("Invalid parameter value in encodeErrorSignature");let e;return r&&(typeof r=="function"||typeof r=="object")?e=t.jsonInterfaceMethodToString(r):e=r,i.sha3Raw(e)};exports.encodeErrorSignature=s;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { AbiError as o } from "../../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import { isAbiErrorFragment as t, jsonInterfaceMethodToString as i } from "../utils.js";
|
4
|
+
import { sha3Raw as p } from "../../../../web3-utils/lib/esm/hash.js";
|
5
|
+
const d = (r) => {
|
6
|
+
if (typeof r != "string" && !t(r))
|
7
|
+
throw new o("Invalid parameter value in encodeErrorSignature");
|
8
|
+
let e;
|
9
|
+
return r && (typeof r == "function" || typeof r == "object") ? e = i(r) : e = r, p(e);
|
10
|
+
};
|
11
|
+
export {
|
12
|
+
d as encodeErrorSignature
|
13
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const t=require("../utils.cjs"),i=require("../../../../web3-utils/lib/esm/hash.cjs"),o=e=>{if(typeof e!="string"&&!t.isAbiEventFragment(e))throw new n.AbiError("Invalid parameter value in encodeEventSignature");let r;return e&&(typeof e=="function"||typeof e=="object")?r=t.jsonInterfaceMethodToString(e):r=e,i.sha3Raw(r)};exports.encodeEventSignature=o;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { AbiError as t } from "../../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import { isAbiEventFragment as o, jsonInterfaceMethodToString as i } from "../utils.js";
|
4
|
+
import { sha3Raw as p } from "../../../../web3-utils/lib/esm/hash.js";
|
5
|
+
const v = (r) => {
|
6
|
+
if (typeof r != "string" && !o(r))
|
7
|
+
throw new t("Invalid parameter value in encodeEventSignature");
|
8
|
+
let e;
|
9
|
+
return r && (typeof r == "function" || typeof r == "object") ? e = i(r) : e = r, p(e);
|
10
|
+
};
|
11
|
+
export {
|
12
|
+
v as encodeEventSignature
|
13
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const t=require("../utils.cjs"),l=require("./parameters_api.cjs"),u=require("../../../../web3-utils/lib/esm/hash.cjs"),o=e=>{if(typeof e!="string"&&!t.isAbiFunctionFragment(e))throw new i.AbiError("Invalid parameter value in encodeFunctionSignature");let r;return e&&(typeof e=="function"||typeof e=="object")?r=t.jsonInterfaceMethodToString(e):r=e,u.sha3Raw(r).slice(0,10)},c=(e,r)=>{var n;if(!t.isAbiFunctionFragment(e))throw new i.AbiError("Invalid parameter value in encodeFunctionCall");return`${o(e)}${l.encodeParameters((n=e.inputs)!==null&&n!==void 0?n:[],r??[]).replace("0x","")}`};exports.encodeFunctionCall=c;exports.encodeFunctionSignature=o;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { AbiError as t } from "../../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import { isAbiFunctionFragment as i, jsonInterfaceMethodToString as n } from "../utils.js";
|
4
|
+
import { encodeParameters as l } from "./parameters_api.js";
|
5
|
+
import { sha3Raw as p } from "../../../../web3-utils/lib/esm/hash.js";
|
6
|
+
const a = (e) => {
|
7
|
+
if (typeof e != "string" && !i(e))
|
8
|
+
throw new t("Invalid parameter value in encodeFunctionSignature");
|
9
|
+
let r;
|
10
|
+
return e && (typeof e == "function" || typeof e == "object") ? r = n(e) : r = e, p(r).slice(0, 10);
|
11
|
+
}, s = (e, r) => {
|
12
|
+
var o;
|
13
|
+
if (!i(e))
|
14
|
+
throw new t("Invalid parameter value in encodeFunctionCall");
|
15
|
+
return `${a(e)}${l((o = e.inputs) !== null && o !== void 0 ? o : [], r ?? []).replace("0x", "")}`;
|
16
|
+
};
|
17
|
+
export {
|
18
|
+
s as encodeFunctionCall,
|
19
|
+
a as encodeFunctionSignature
|
20
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const _=require("./parameters_api.cjs"),I=["bool","string","int","uint","address","fixed","ufixed"],x=(o,s)=>o==="string"?s:_.decodeParameter(o,s),h=(o,s,r)=>{const c=Array.isArray(r)?r:[r],d={},i={};for(const[e,t]of o.entries())t.indexed?d[e]=t:i[e]=t;const f=s?_.decodeParametersWith(Object.values(i),s,!0):{__length__:0},a=c.length-Object.keys(d).length,g=Object.values(d).map((e,t)=>I.some(m=>e.type.startsWith(m))?x(e.type,c[t+a]):c[t+a]),n={__length__:0};let u=0,l=0;for(const[e,t]of o.entries())n[e]=t.type==="string"?"":void 0,d[e]&&(n[e]=g[u],u+=1),i[e]&&(n[e]=f[String(l)],l+=1),t.name&&(n[t.name]=n[e]),n.__length__+=1;return n};exports.decodeLog=h;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import { decodeParametersWith as m, decodeParameter as x } from "./parameters_api.js";
|
2
|
+
const I = ["bool", "string", "int", "uint", "address", "fixed", "ufixed"], h = (o, s) => o === "string" ? s : x(o, s), y = (o, s, r) => {
|
3
|
+
const c = Array.isArray(r) ? r : [r], d = {}, i = {};
|
4
|
+
for (const [e, t] of o.entries())
|
5
|
+
t.indexed ? d[e] = t : i[e] = t;
|
6
|
+
const u = s ? m(Object.values(i), s, !0) : { __length__: 0 }, a = c.length - Object.keys(d).length, l = Object.values(d).map((e, t) => I.some((g) => e.type.startsWith(g)) ? h(e.type, c[t + a]) : c[t + a]), n = { __length__: 0 };
|
7
|
+
let f = 0, _ = 0;
|
8
|
+
for (const [e, t] of o.entries())
|
9
|
+
n[e] = t.type === "string" ? "" : void 0, d[e] && (n[e] = l[f], f += 1), i[e] && (n[e] = u[String(_)], _ += 1), t.name && (n[t.name] = n[e]), n.__length__ += 1;
|
10
|
+
return n;
|
11
|
+
};
|
12
|
+
export {
|
13
|
+
y as decodeLog
|
14
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const i=require("../coders/decode.cjs"),s=require("../coders/encode.cjs"),a=(r,e)=>s.encodeParameters(r,e),u=(r,e)=>a([r],[e]),n=(r,e,d)=>{try{if(r.length>0&&(!e||e==="0x"||e==="0X"))throw new o.AbiError("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");return i.decodeParameters(r,`0x${e.replace(/0x/i,"")}`,d)}catch(t){throw new o.AbiError(`Parameter decoding error: ${t.message}`,{internalErr:t})}},c=(r,e)=>n(r,e,!1),m=(r,e)=>c([r],e)[0];exports.decodeParameter=m;exports.decodeParameters=c;exports.decodeParametersWith=n;exports.encodeParameter=u;exports.encodeParameters=a;
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { AbiError as o } from "../../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import { decodeParameters as n } from "../coders/decode.js";
|
4
|
+
import { encodeParameters as c } from "../coders/encode.js";
|
5
|
+
const d = (r, e) => c(r, e), l = (r, e) => d([r], [e]), s = (r, e, a) => {
|
6
|
+
try {
|
7
|
+
if (r.length > 0 && (!e || e === "0x" || e === "0X"))
|
8
|
+
throw new o("Returned values aren't valid, did it run Out of Gas? You might also see this error if you are not using the correct ABI for the contract you are retrieving data from, requesting data from a block number that does not exist, or querying a node which is not fully synced.");
|
9
|
+
return n(r, `0x${e.replace(/0x/i, "")}`, a);
|
10
|
+
} catch (t) {
|
11
|
+
throw new o(`Parameter decoding error: ${t.message}`, {
|
12
|
+
internalErr: t
|
13
|
+
});
|
14
|
+
}
|
15
|
+
}, i = (r, e) => s(r, e, !1), P = (r, e) => i([r], e)[0];
|
16
|
+
export {
|
17
|
+
P as decodeParameter,
|
18
|
+
i as decodeParameters,
|
19
|
+
s as decodeParametersWith,
|
20
|
+
l as encodeParameter,
|
21
|
+
d as encodeParameters
|
22
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../../web3-validator/lib/esm/formats.cjs");const i=require("../../../../../web3-validator/lib/esm/utils.cjs");require("../../../../../web3-validator/lib/esm/default_validator.cjs");const a=require("../../../../../web3-validator/lib/esm/validation/address.cjs");require("../../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../../web3-types/lib/esm/web3_base_provider.cjs");const s=require("../utils.cjs"),l=require("../../../../../web3-utils/lib/esm/converters.cjs"),c=20,u=s.WORD_SIZE-c;function y(t,e){if(typeof e!="string")throw new o.AbiError("address type expects string as input type",{value:e,name:t.name,type:t.type});let r=e.toLowerCase();if(r.startsWith("0x")||(r=`0x${r}`),!a.isAddress(r))throw new o.AbiError("provided input is not valid address",{value:e,name:t.name,type:t.type});const d=i.hexToUint8Array(r),n=s.alloc(s.WORD_SIZE);return n.set(d,u),{dynamic:!1,encoded:n}}function S(t,e){const r=e.subarray(u,s.WORD_SIZE);if(r.length!==c)throw new o.AbiError("Invalid decoding input, not enough bytes to decode address",{bytes:e});const d=i.uint8ArrayToHexString(r);return{result:l.toChecksumAddress(d),encoded:e.subarray(s.WORD_SIZE),consumed:s.WORD_SIZE}}exports.decodeAddress=S;exports.encodeAddress=y;
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { AbiError as d } from "../../../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
+
import "../../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import "../../../../../web3-validator/lib/esm/formats.js";
|
4
|
+
import { hexToUint8Array as m, uint8ArrayToHexString as c } from "../../../../../web3-validator/lib/esm/utils.js";
|
5
|
+
import "../../../../../web3-validator/lib/esm/default_validator.js";
|
6
|
+
import { isAddress as p } from "../../../../../web3-validator/lib/esm/validation/address.js";
|
7
|
+
import "../../../../../web3-types/lib/esm/data_format_types.js";
|
8
|
+
import "../../../../../web3-types/lib/esm/eth_types.js";
|
9
|
+
import "../../../../../web3-types/lib/esm/web3_base_provider.js";
|
10
|
+
import { alloc as u, WORD_SIZE as o } from "../utils.js";
|
11
|
+
import { toChecksumAddress as f } from "../../../../../web3-utils/lib/esm/converters.js";
|
12
|
+
const i = 20, a = o - i;
|
13
|
+
function T(r, e) {
|
14
|
+
if (typeof e != "string")
|
15
|
+
throw new d("address type expects string as input type", {
|
16
|
+
value: e,
|
17
|
+
name: r.name,
|
18
|
+
type: r.type
|
19
|
+
});
|
20
|
+
let t = e.toLowerCase();
|
21
|
+
if (t.startsWith("0x") || (t = `0x${t}`), !p(t))
|
22
|
+
throw new d("provided input is not valid address", {
|
23
|
+
value: e,
|
24
|
+
name: r.name,
|
25
|
+
type: r.type
|
26
|
+
});
|
27
|
+
const s = m(t), n = u(o);
|
28
|
+
return n.set(s, a), {
|
29
|
+
dynamic: !1,
|
30
|
+
encoded: n
|
31
|
+
};
|
32
|
+
}
|
33
|
+
function _(r, e) {
|
34
|
+
const t = e.subarray(a, o);
|
35
|
+
if (t.length !== i)
|
36
|
+
throw new d("Invalid decoding input, not enough bytes to decode address", { bytes: e });
|
37
|
+
const s = c(t);
|
38
|
+
return {
|
39
|
+
result: f(s),
|
40
|
+
encoded: e.subarray(o),
|
41
|
+
consumed: o
|
42
|
+
};
|
43
|
+
}
|
44
|
+
export {
|
45
|
+
_ as decodeAddress,
|
46
|
+
T as encodeAddress
|
47
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../../../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const y=require("./index.cjs"),s=require("../utils.cjs"),l=require("./number.cjs"),A=require("./utils.cjs"),g=require("../../../../../web3-utils/lib/esm/uint8array.cjs");function f(u,n){if(!Array.isArray(n))throw new b.AbiError("Expected value to be array",{abi:u,values:n});const{size:a,param:d}=s.extractArrayType(u),c=n.map(r=>y.encodeParamFromAbiParameter(d,r)),e=a===-1,o=c.length>0&&c[0].dynamic;if(!e&&n.length!==a)throw new b.AbiError("Given arguments count doesn't match array length",{arrayLength:a,argumentsLength:n.length});if(e||o){const r=A.encodeDynamicParams(c);if(e){const m=l.encodeNumber({type:"uint256",name:""},c.length).encoded;return{dynamic:!0,encoded:c.length>0?g.uint8ArrayConcat(m,r):m}}return{dynamic:!0,encoded:r}}return{dynamic:!1,encoded:g.uint8ArrayConcat(...c.map(r=>r.encoded))}}function p(u,n){let{size:a,param:d}=s.extractArrayType(u);const c=a===-1;let e=0;const o=[];let r=n;if(c){const t=l.decodeNumber({type:"uint32",name:""},n);a=Number(t.result),e=t.consumed,r=t.encoded}if(s.isDynamic(d)){for(let t=0;t<a;t+=1){const i=l.decodeNumber({type:"uint32",name:""},r.subarray(t*s.WORD_SIZE));e+=i.consumed;const h=y.decodeParamFromAbiParameter(d,r.subarray(Number(i.result)));e+=h.consumed,o.push(h.result)}return{result:o,encoded:r.subarray(e),consumed:e}}for(let t=0;t<a;t+=1){const i=y.decodeParamFromAbiParameter(d,n.subarray(e));e+=i.consumed,o.push(i.result)}return{result:o,encoded:n.subarray(e),consumed:e}}exports.decodeArray=p;exports.encodeArray=f;
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { AbiError as y } from "../../../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
+
import "../../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import { encodeParamFromAbiParameter as g, decodeParamFromAbiParameter as l } from "./index.js";
|
4
|
+
import { extractArrayType as p, isDynamic as b, WORD_SIZE as A } from "../utils.js";
|
5
|
+
import { encodeNumber as P, decodeNumber as h } from "./number.js";
|
6
|
+
import { encodeDynamicParams as R } from "./utils.js";
|
7
|
+
import { uint8ArrayConcat as f } from "../../../../../web3-utils/lib/esm/uint8array.js";
|
8
|
+
function L(i, n) {
|
9
|
+
if (!Array.isArray(n))
|
10
|
+
throw new y("Expected value to be array", { abi: i, values: n });
|
11
|
+
const { size: a, param: m } = p(i), o = n.map((r) => g(m, r)), e = a === -1, c = o.length > 0 && o[0].dynamic;
|
12
|
+
if (!e && n.length !== a)
|
13
|
+
throw new y("Given arguments count doesn't match array length", {
|
14
|
+
arrayLength: a,
|
15
|
+
argumentsLength: n.length
|
16
|
+
});
|
17
|
+
if (e || c) {
|
18
|
+
const r = R(o);
|
19
|
+
if (e) {
|
20
|
+
const s = P({ type: "uint256", name: "" }, o.length).encoded;
|
21
|
+
return {
|
22
|
+
dynamic: !0,
|
23
|
+
encoded: o.length > 0 ? f(s, r) : s
|
24
|
+
};
|
25
|
+
}
|
26
|
+
return {
|
27
|
+
dynamic: !0,
|
28
|
+
encoded: r
|
29
|
+
};
|
30
|
+
}
|
31
|
+
return {
|
32
|
+
dynamic: !1,
|
33
|
+
encoded: f(...o.map((r) => r.encoded))
|
34
|
+
};
|
35
|
+
}
|
36
|
+
function z(i, n) {
|
37
|
+
let { size: a, param: m } = p(i);
|
38
|
+
const o = a === -1;
|
39
|
+
let e = 0;
|
40
|
+
const c = [];
|
41
|
+
let r = n;
|
42
|
+
if (o) {
|
43
|
+
const t = h({ type: "uint32", name: "" }, n);
|
44
|
+
a = Number(t.result), e = t.consumed, r = t.encoded;
|
45
|
+
}
|
46
|
+
if (b(m)) {
|
47
|
+
for (let t = 0; t < a; t += 1) {
|
48
|
+
const d = h({ type: "uint32", name: "" }, r.subarray(t * A));
|
49
|
+
e += d.consumed;
|
50
|
+
const u = l(m, r.subarray(Number(d.result)));
|
51
|
+
e += u.consumed, c.push(u.result);
|
52
|
+
}
|
53
|
+
return {
|
54
|
+
result: c,
|
55
|
+
encoded: r.subarray(e),
|
56
|
+
consumed: e
|
57
|
+
};
|
58
|
+
}
|
59
|
+
for (let t = 0; t < a; t += 1) {
|
60
|
+
const d = l(m, n.subarray(e));
|
61
|
+
e += d.consumed, c.push(d.result);
|
62
|
+
}
|
63
|
+
return {
|
64
|
+
result: c,
|
65
|
+
encoded: n.subarray(e),
|
66
|
+
consumed: e
|
67
|
+
};
|
68
|
+
}
|
69
|
+
export {
|
70
|
+
z as decodeArray,
|
71
|
+
L as encodeArray
|
72
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../../../../web3-errors/lib/esm/errors/generic_errors.cjs"),l=require("../../../../../web3-errors/lib/esm/errors/utils_errors.cjs");require("../../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const n=require("../utils.cjs"),u=require("./number.cjs"),c=require("../../../../../web3-utils/lib/esm/converters.cjs");function d(o,r){let e;try{e=c.toBool(r)}catch(i){if(i instanceof l.InvalidBooleanError)throw new t.AbiError("provided input is not valid boolean value",{type:o.type,value:r,name:o.name})}return u.encodeNumber({type:"uint8",name:""},Number(e))}function a(o,r){const e=u.decodeNumber({type:"uint8",name:""},r);if(e.result>1||e.result<0)throw new t.AbiError("Invalid boolean value encoded",{boolBytes:r.subarray(0,n.WORD_SIZE),numberResult:e});return{result:e.result===BigInt(1),encoded:e.encoded,consumed:n.WORD_SIZE}}exports.decodeBool=a;exports.encodeBoolean=d;
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { AbiError as t } from "../../../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
+
import { InvalidBooleanError as i } from "../../../../../web3-errors/lib/esm/errors/utils_errors.js";
|
3
|
+
import "../../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
4
|
+
import { WORD_SIZE as n } from "../utils.js";
|
5
|
+
import { encodeNumber as l, decodeNumber as m } from "./number.js";
|
6
|
+
import { toBool as a } from "../../../../../web3-utils/lib/esm/converters.js";
|
7
|
+
function v(r, o) {
|
8
|
+
let e;
|
9
|
+
try {
|
10
|
+
e = a(o);
|
11
|
+
} catch (u) {
|
12
|
+
if (u instanceof i)
|
13
|
+
throw new t("provided input is not valid boolean value", {
|
14
|
+
type: r.type,
|
15
|
+
value: o,
|
16
|
+
name: r.name
|
17
|
+
});
|
18
|
+
}
|
19
|
+
return l({ type: "uint8", name: "" }, Number(e));
|
20
|
+
}
|
21
|
+
function y(r, o) {
|
22
|
+
const e = m({ type: "uint8", name: "" }, o);
|
23
|
+
if (e.result > 1 || e.result < 0)
|
24
|
+
throw new t("Invalid boolean value encoded", {
|
25
|
+
boolBytes: o.subarray(0, n),
|
26
|
+
numberResult: e
|
27
|
+
});
|
28
|
+
return {
|
29
|
+
result: e.result === BigInt(1),
|
30
|
+
encoded: e.encoded,
|
31
|
+
consumed: n
|
32
|
+
};
|
33
|
+
}
|
34
|
+
export {
|
35
|
+
y as decodeBool,
|
36
|
+
v as encodeBoolean
|
37
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("../../../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../../web3-validator/lib/esm/formats.cjs");require("../../../../../web3-validator/lib/esm/default_validator.cjs");require("../../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../../web3-types/lib/esm/web3_base_provider.cjs");const b=require("../../../../../web3-validator/lib/esm/validation/bytes.cjs"),r=require("../utils.cjs"),y=require("./number.cjs"),l=require("../../../../../web3-utils/lib/esm/converters.cjs"),a=32;function h(n,e){if(typeof e=="string"&&e.length%2!==0&&(e+="0"),!b.isBytes(e))throw new u.AbiError("provided input is not valid bytes value",{type:n.type,value:e,name:n.name});const o=l.bytesToUint8Array(e),[,t]=n.type.split("bytes");if(t){if(Number(t)>a||Number(t)<1)throw new u.AbiError("invalid bytes type. Static byte type can have between 1 and 32 bytes",{type:n.type});if(Number(t)<o.length)throw new u.AbiError("provided input size is different than type size",{type:n.type,value:e,name:n.name});const c=r.alloc(r.WORD_SIZE);return c.set(o),{dynamic:!1,encoded:c}}const i=Math.ceil(o.length/r.WORD_SIZE),s=r.alloc(r.WORD_SIZE+i*r.WORD_SIZE);return s.set(y.encodeNumber({type:"uint32",name:""},o.length).encoded),s.set(o,r.WORD_SIZE),{dynamic:!0,encoded:s}}function m(n,e){const[,o]=n.type.split("bytes");let t=Number(o),i=e,s=1,c=0;if(!t){const d=y.decodeNumber({type:"uint32",name:""},i);t=Number(d.result),c+=d.consumed,i=d.encoded,s=Math.ceil(t/r.WORD_SIZE)}if(t>e.length)throw new u.AbiError("there is not enough data to decode",{type:n.type,encoded:e,size:t});return{result:l.bytesToHex(i.subarray(0,t)),encoded:i.subarray(s*r.WORD_SIZE),consumed:c+s*r.WORD_SIZE}}exports.decodeBytes=m;exports.encodeBytes=h;
|
@@ -0,0 +1,66 @@
|
|
1
|
+
import { AbiError as y } from "../../../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
+
import "../../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import "../../../../../web3-validator/lib/esm/formats.js";
|
4
|
+
import "../../../../../web3-validator/lib/esm/default_validator.js";
|
5
|
+
import "../../../../../web3-types/lib/esm/data_format_types.js";
|
6
|
+
import "../../../../../web3-types/lib/esm/eth_types.js";
|
7
|
+
import "../../../../../web3-types/lib/esm/web3_base_provider.js";
|
8
|
+
import { isBytes as l } from "../../../../../web3-validator/lib/esm/validation/bytes.js";
|
9
|
+
import { alloc as m, WORD_SIZE as o } from "../utils.js";
|
10
|
+
import { encodeNumber as p, decodeNumber as u } from "./number.js";
|
11
|
+
import { bytesToUint8Array as a, bytesToHex as b } from "../../../../../web3-utils/lib/esm/converters.js";
|
12
|
+
const f = 32;
|
13
|
+
function C(n, e) {
|
14
|
+
if (typeof e == "string" && e.length % 2 !== 0 && (e += "0"), !l(e))
|
15
|
+
throw new y("provided input is not valid bytes value", {
|
16
|
+
type: n.type,
|
17
|
+
value: e,
|
18
|
+
name: n.name
|
19
|
+
});
|
20
|
+
const r = a(e), [, t] = n.type.split("bytes");
|
21
|
+
if (t) {
|
22
|
+
if (Number(t) > f || Number(t) < 1)
|
23
|
+
throw new y("invalid bytes type. Static byte type can have between 1 and 32 bytes", {
|
24
|
+
type: n.type
|
25
|
+
});
|
26
|
+
if (Number(t) < r.length)
|
27
|
+
throw new y("provided input size is different than type size", {
|
28
|
+
type: n.type,
|
29
|
+
value: e,
|
30
|
+
name: n.name
|
31
|
+
});
|
32
|
+
const d = m(o);
|
33
|
+
return d.set(r), {
|
34
|
+
dynamic: !1,
|
35
|
+
encoded: d
|
36
|
+
};
|
37
|
+
}
|
38
|
+
const s = Math.ceil(r.length / o), i = m(o + s * o);
|
39
|
+
return i.set(p({ type: "uint32", name: "" }, r.length).encoded), i.set(r, o), {
|
40
|
+
dynamic: !0,
|
41
|
+
encoded: i
|
42
|
+
};
|
43
|
+
}
|
44
|
+
function E(n, e) {
|
45
|
+
const [, r] = n.type.split("bytes");
|
46
|
+
let t = Number(r), s = e, i = 1, d = 0;
|
47
|
+
if (!t) {
|
48
|
+
const c = u({ type: "uint32", name: "" }, s);
|
49
|
+
t = Number(c.result), d += c.consumed, s = c.encoded, i = Math.ceil(t / o);
|
50
|
+
}
|
51
|
+
if (t > e.length)
|
52
|
+
throw new y("there is not enough data to decode", {
|
53
|
+
type: n.type,
|
54
|
+
encoded: e,
|
55
|
+
size: t
|
56
|
+
});
|
57
|
+
return {
|
58
|
+
result: b(s.subarray(0, t)),
|
59
|
+
encoded: s.subarray(i * o),
|
60
|
+
consumed: d + i * o
|
61
|
+
};
|
62
|
+
}
|
63
|
+
export {
|
64
|
+
E as decodeBytes,
|
65
|
+
C as encodeBytes
|
66
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./address.cjs"),r=require("./bool.cjs"),o=require("./bytes.cjs"),n=require("./number.cjs"),c=require("./string.cjs"),i=require("./tuple.cjs"),s=require("./array.cjs");function u(e,d){if(e.type==="string")return c.encodeString(e,d);if(e.type==="bool")return r.encodeBoolean(e,d);if(e.type==="address")return t.encodeAddress(e,d);if(e.type==="tuple")return i.encodeTuple(e,d);if(e.type.endsWith("]"))return s.encodeArray(e,d);if(e.type.startsWith("bytes"))return o.encodeBytes(e,d);if(e.type.startsWith("uint")||e.type.startsWith("int"))return n.encodeNumber(e,d);throw new Error("Unsupported")}function y(e,d){if(e.type==="string")return c.decodeString(e,d);if(e.type==="bool")return r.decodeBool(e,d);if(e.type==="address")return t.decodeAddress(e,d);if(e.type==="tuple")return i.decodeTuple(e,d);if(e.type.endsWith("]"))return s.decodeArray(e,d);if(e.type.startsWith("bytes"))return o.decodeBytes(e,d);if(e.type.startsWith("uint")||e.type.startsWith("int"))return n.decodeNumber(e,d);throw new Error("Unsupported")}exports.decodeAddress=t.decodeAddress;exports.encodeAddress=t.encodeAddress;exports.decodeBool=r.decodeBool;exports.encodeBoolean=r.encodeBoolean;exports.decodeBytes=o.decodeBytes;exports.encodeBytes=o.encodeBytes;exports.decodeNumber=n.decodeNumber;exports.encodeNumber=n.encodeNumber;exports.decodeString=c.decodeString;exports.encodeString=c.encodeString;exports.decodeTuple=i.decodeTuple;exports.encodeTuple=i.encodeTuple;exports.decodeArray=s.decodeArray;exports.encodeArray=s.encodeArray;exports.decodeParamFromAbiParameter=y;exports.encodeParamFromAbiParameter=u;
|
@@ -0,0 +1,59 @@
|
|
1
|
+
import { encodeAddress as r, decodeAddress as o } from "./address.js";
|
2
|
+
import { encodeBoolean as i, decodeBool as n } from "./bool.js";
|
3
|
+
import { encodeBytes as d, decodeBytes as s } from "./bytes.js";
|
4
|
+
import { encodeNumber as f, decodeNumber as u } from "./number.js";
|
5
|
+
import { encodeString as c, decodeString as y } from "./string.js";
|
6
|
+
import { encodeTuple as h, decodeTuple as W } from "./tuple.js";
|
7
|
+
import { encodeArray as A, decodeArray as g } from "./array.js";
|
8
|
+
function F(e, t) {
|
9
|
+
if (e.type === "string")
|
10
|
+
return c(e, t);
|
11
|
+
if (e.type === "bool")
|
12
|
+
return i(e, t);
|
13
|
+
if (e.type === "address")
|
14
|
+
return r(e, t);
|
15
|
+
if (e.type === "tuple")
|
16
|
+
return h(e, t);
|
17
|
+
if (e.type.endsWith("]"))
|
18
|
+
return A(e, t);
|
19
|
+
if (e.type.startsWith("bytes"))
|
20
|
+
return d(e, t);
|
21
|
+
if (e.type.startsWith("uint") || e.type.startsWith("int"))
|
22
|
+
return f(e, t);
|
23
|
+
throw new Error("Unsupported");
|
24
|
+
}
|
25
|
+
function N(e, t) {
|
26
|
+
if (e.type === "string")
|
27
|
+
return y(e, t);
|
28
|
+
if (e.type === "bool")
|
29
|
+
return n(e, t);
|
30
|
+
if (e.type === "address")
|
31
|
+
return o(e, t);
|
32
|
+
if (e.type === "tuple")
|
33
|
+
return W(e, t);
|
34
|
+
if (e.type.endsWith("]"))
|
35
|
+
return g(e, t);
|
36
|
+
if (e.type.startsWith("bytes"))
|
37
|
+
return s(e, t);
|
38
|
+
if (e.type.startsWith("uint") || e.type.startsWith("int"))
|
39
|
+
return u(e, t);
|
40
|
+
throw new Error("Unsupported");
|
41
|
+
}
|
42
|
+
export {
|
43
|
+
o as decodeAddress,
|
44
|
+
g as decodeArray,
|
45
|
+
n as decodeBool,
|
46
|
+
s as decodeBytes,
|
47
|
+
u as decodeNumber,
|
48
|
+
N as decodeParamFromAbiParameter,
|
49
|
+
y as decodeString,
|
50
|
+
W as decodeTuple,
|
51
|
+
r as encodeAddress,
|
52
|
+
A as encodeArray,
|
53
|
+
i as encodeBoolean,
|
54
|
+
d as encodeBytes,
|
55
|
+
f as encodeNumber,
|
56
|
+
F as encodeParamFromAbiParameter,
|
57
|
+
c as encodeString,
|
58
|
+
h as encodeTuple
|
59
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../../web3-validator/lib/esm/formats.cjs");const m=require("../../../../../web3-validator/lib/esm/utils.cjs");require("../../../../../web3-validator/lib/esm/default_validator.cjs");require("../../../../../web3-types/lib/esm/data_format_types.cjs");require("../../../../../web3-types/lib/esm/eth_types.cjs");require("../../../../../web3-types/lib/esm/web3_base_provider.cjs");const u=require("../utils.cjs"),s=require("./numbersLimits.cjs"),c=require("../../../../../web3-utils/lib/esm/converters.cjs"),l=require("../../../../../web3-utils/lib/esm/string_manipulation.cjs"),d=BigInt(1)<<BigInt(256);function y(e,i=u.WORD_SIZE){let r;return e<0?r=(d+e).toString(16):r=e.toString(16),r=l.padLeft(r,i*2),m.hexToUint8Array(r)}function a(e,i){const r=m.uint8ArrayToHexString(e),t=BigInt(r);return t<=i?t:t-d}function g(e,i){let r;try{r=c.toBigInt(i)}catch{throw new n.AbiError("provided input is not number value",{type:e.type,value:i,name:e.name})}const t=s.numberLimits.get(e.type);if(!t)throw new n.AbiError("provided abi contains invalid number datatype",{type:e.type});if(r<t.min)throw new n.AbiError("provided input is less then minimum for given type",{type:e.type,value:i,name:e.name,minimum:t.min.toString()});if(r>t.max)throw new n.AbiError("provided input is greater then maximum for given type",{type:e.type,value:i,name:e.name,maximum:t.max.toString()});return{dynamic:!1,encoded:y(r)}}function b(e,i){if(i.length<u.WORD_SIZE)throw new n.AbiError("Not enough bytes left to decode",{param:e,bytesLeft:i.length});const r=i.subarray(0,u.WORD_SIZE),t=s.numberLimits.get(e.type);if(!t)throw new n.AbiError("provided abi contains invalid number datatype",{type:e.type});const o=a(r,t.max);if(o<t.min)throw new n.AbiError("decoded value is less then minimum for given type",{type:e.type,value:o,name:e.name,minimum:t.min.toString()});if(o>t.max)throw new n.AbiError("decoded value is greater then maximum for given type",{type:e.type,value:o,name:e.name,maximum:t.max.toString()});return{result:o,encoded:i.subarray(u.WORD_SIZE),consumed:u.WORD_SIZE}}exports.decodeNumber=b;exports.encodeNumber=g;
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import { AbiError as o } from "../../../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
+
import "../../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import "../../../../../web3-validator/lib/esm/formats.js";
|
4
|
+
import { hexToUint8Array as y, uint8ArrayToHexString as p } from "../../../../../web3-validator/lib/esm/utils.js";
|
5
|
+
import "../../../../../web3-validator/lib/esm/default_validator.js";
|
6
|
+
import "../../../../../web3-types/lib/esm/data_format_types.js";
|
7
|
+
import "../../../../../web3-types/lib/esm/eth_types.js";
|
8
|
+
import "../../../../../web3-types/lib/esm/web3_base_provider.js";
|
9
|
+
import { WORD_SIZE as m } from "../utils.js";
|
10
|
+
import { numberLimits as u } from "./numbersLimits.js";
|
11
|
+
import { toBigInt as s } from "../../../../../web3-utils/lib/esm/converters.js";
|
12
|
+
import { padLeft as a } from "../../../../../web3-utils/lib/esm/string_manipulation.js";
|
13
|
+
const d = BigInt(1) << BigInt(256);
|
14
|
+
function f(e, i = m) {
|
15
|
+
let n;
|
16
|
+
return e < 0 ? n = (d + e).toString(16) : n = e.toString(16), n = a(n, i * 2), y(n);
|
17
|
+
}
|
18
|
+
function l(e, i) {
|
19
|
+
const n = p(e), t = BigInt(n);
|
20
|
+
return t <= i ? t : t - d;
|
21
|
+
}
|
22
|
+
function L(e, i) {
|
23
|
+
let n;
|
24
|
+
try {
|
25
|
+
n = s(i);
|
26
|
+
} catch {
|
27
|
+
throw new o("provided input is not number value", {
|
28
|
+
type: e.type,
|
29
|
+
value: i,
|
30
|
+
name: e.name
|
31
|
+
});
|
32
|
+
}
|
33
|
+
const t = u.get(e.type);
|
34
|
+
if (!t)
|
35
|
+
throw new o("provided abi contains invalid number datatype", { type: e.type });
|
36
|
+
if (n < t.min)
|
37
|
+
throw new o("provided input is less then minimum for given type", {
|
38
|
+
type: e.type,
|
39
|
+
value: i,
|
40
|
+
name: e.name,
|
41
|
+
minimum: t.min.toString()
|
42
|
+
});
|
43
|
+
if (n > t.max)
|
44
|
+
throw new o("provided input is greater then maximum for given type", {
|
45
|
+
type: e.type,
|
46
|
+
value: i,
|
47
|
+
name: e.name,
|
48
|
+
maximum: t.max.toString()
|
49
|
+
});
|
50
|
+
return {
|
51
|
+
dynamic: !1,
|
52
|
+
encoded: f(n)
|
53
|
+
};
|
54
|
+
}
|
55
|
+
function N(e, i) {
|
56
|
+
if (i.length < m)
|
57
|
+
throw new o("Not enough bytes left to decode", { param: e, bytesLeft: i.length });
|
58
|
+
const n = i.subarray(0, m), t = u.get(e.type);
|
59
|
+
if (!t)
|
60
|
+
throw new o("provided abi contains invalid number datatype", { type: e.type });
|
61
|
+
const r = l(n, t.max);
|
62
|
+
if (r < t.min)
|
63
|
+
throw new o("decoded value is less then minimum for given type", {
|
64
|
+
type: e.type,
|
65
|
+
value: r,
|
66
|
+
name: e.name,
|
67
|
+
minimum: t.min.toString()
|
68
|
+
});
|
69
|
+
if (r > t.max)
|
70
|
+
throw new o("decoded value is greater then maximum for given type", {
|
71
|
+
type: e.type,
|
72
|
+
value: r,
|
73
|
+
name: e.name,
|
74
|
+
maximum: t.max.toString()
|
75
|
+
});
|
76
|
+
return {
|
77
|
+
result: r,
|
78
|
+
encoded: i.subarray(m),
|
79
|
+
consumed: m
|
80
|
+
};
|
81
|
+
}
|
82
|
+
export {
|
83
|
+
N as decodeNumber,
|
84
|
+
L as encodeNumber
|
85
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=new Map;let n=BigInt(256);for(let i=8;i<=256;i+=8)t.set(`uint${i}`,{min:BigInt(0),max:n-BigInt(1)}),t.set(`int${i}`,{min:-n/BigInt(2),max:n/BigInt(2)-BigInt(1)}),n*=BigInt(256);t.set("int",t.get("int256"));t.set("uint",t.get("uint256"));exports.numberLimits=t;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
const t = /* @__PURE__ */ new Map();
|
2
|
+
let n = BigInt(256);
|
3
|
+
for (let i = 8; i <= 256; i += 8)
|
4
|
+
t.set(`uint${i}`, {
|
5
|
+
min: BigInt(0),
|
6
|
+
max: n - BigInt(1)
|
7
|
+
}), t.set(`int${i}`, {
|
8
|
+
min: -n / BigInt(2),
|
9
|
+
max: n / BigInt(2) - BigInt(1)
|
10
|
+
}), n *= BigInt(256);
|
11
|
+
t.set("int", t.get("int256"));
|
12
|
+
t.set("uint", t.get("uint256"));
|
13
|
+
export {
|
14
|
+
t as numberLimits
|
15
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const t=require("./bytes.cjs"),n=require("../../../../../web3-utils/lib/esm/converters.cjs");function c(o,e){if(typeof e!="string")throw new s.AbiError("invalid input, should be string",{input:e});const r=n.utf8ToBytes(e);return t.encodeBytes({type:"bytes",name:""},r)}function d(o,e){const r=t.decodeBytes({type:"bytes",name:""},e);return{result:n.hexToUtf8(r.result),encoded:r.encoded,consumed:r.consumed}}exports.decodeString=d;exports.encodeString=c;
|