@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,22 @@
|
|
1
|
+
import { AbiError as r } from "../../../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
+
import "../../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import { encodeBytes as n, decodeBytes as s } from "./bytes.js";
|
4
|
+
import { utf8ToBytes as d, hexToUtf8 as i } from "../../../../../web3-utils/lib/esm/converters.js";
|
5
|
+
function u(o, e) {
|
6
|
+
if (typeof e != "string")
|
7
|
+
throw new r("invalid input, should be string", { input: e });
|
8
|
+
const t = d(e);
|
9
|
+
return n({ type: "bytes", name: "" }, t);
|
10
|
+
}
|
11
|
+
function y(o, e) {
|
12
|
+
const t = s({ type: "bytes", name: "" }, e);
|
13
|
+
return {
|
14
|
+
result: i(t.result),
|
15
|
+
encoded: t.encoded,
|
16
|
+
consumed: t.consumed
|
17
|
+
};
|
18
|
+
}
|
19
|
+
export {
|
20
|
+
y as decodeString,
|
21
|
+
u as encodeString
|
22
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const m=require("./index.cjs"),y=require("./utils.cjs"),b=require("../utils.cjs"),p=require("./number.cjs"),A=require("../../../../../web3-utils/lib/esm/uint8array.cjs");function h(i,e){var a,r,c;let d=!1;if(!Array.isArray(e)&&typeof e!="object")throw new f.AbiError("param must be either Array or Object",{param:i,input:e});const n=e,o=[];for(let t=0;t<((r=(a=i.components)===null||a===void 0?void 0:a.length)!==null&&r!==void 0?r:0);t+=1){const u=i.components[t];let s;if(Array.isArray(n)){if(t>=n.length)throw new f.AbiError("input param length missmatch",{param:i,input:e});s=m.encodeParamFromAbiParameter(u,n[t])}else{const l=n[(c=u.name)!==null&&c!==void 0?c:""];if(l==null)throw new f.AbiError("missing input defined in abi",{param:i,input:e,paramName:u.name});s=m.encodeParamFromAbiParameter(u,l)}s.dynamic&&(d=!0),o.push(s)}return d?{dynamic:!0,encoded:y.encodeDynamicParams(o)}:{dynamic:!1,encoded:A.uint8ArrayConcat(...o.map(t=>t.encoded))}}function _(i,e){const a={__length__:0};let r=0;if(!i.components)return{result:a,encoded:e,consumed:r};let c=0;for(const[d,n]of i.components.entries()){let o;if(b.isDynamic(n)){const t=p.decodeNumber({type:"uint32",name:""},e.subarray(r));o=m.decodeParamFromAbiParameter(n,e.subarray(Number(t.result))),r+=t.consumed,c+=o.consumed}else o=m.decodeParamFromAbiParameter(n,e.subarray(r)),r+=o.consumed;a.__length__+=1,a[d]=o.result,n.name&&n.name!==""&&(a[n.name]=o.result)}return{encoded:e.subarray(r+c),result:a,consumed:r+c}}exports.decodeTuple=_;exports.encodeTuple=h;
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { AbiError as l } from "../../../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
+
import "../../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import { encodeParamFromAbiParameter as f, decodeParamFromAbiParameter as p } from "./index.js";
|
4
|
+
import { encodeDynamicParams as y } from "./utils.js";
|
5
|
+
import { isDynamic as h } from "../utils.js";
|
6
|
+
import { decodeNumber as _ } from "./number.js";
|
7
|
+
import { uint8ArrayConcat as b } from "../../../../../web3-utils/lib/esm/uint8array.js";
|
8
|
+
function j(a, e) {
|
9
|
+
var m, n, d;
|
10
|
+
let i = !1;
|
11
|
+
if (!Array.isArray(e) && typeof e != "object")
|
12
|
+
throw new l("param must be either Array or Object", {
|
13
|
+
param: a,
|
14
|
+
input: e
|
15
|
+
});
|
16
|
+
const r = e, o = [];
|
17
|
+
for (let t = 0; t < ((n = (m = a.components) === null || m === void 0 ? void 0 : m.length) !== null && n !== void 0 ? n : 0); t += 1) {
|
18
|
+
const c = a.components[t];
|
19
|
+
let s;
|
20
|
+
if (Array.isArray(r)) {
|
21
|
+
if (t >= r.length)
|
22
|
+
throw new l("input param length missmatch", {
|
23
|
+
param: a,
|
24
|
+
input: e
|
25
|
+
});
|
26
|
+
s = f(c, r[t]);
|
27
|
+
} else {
|
28
|
+
const u = r[(d = c.name) !== null && d !== void 0 ? d : ""];
|
29
|
+
if (u == null)
|
30
|
+
throw new l("missing input defined in abi", {
|
31
|
+
param: a,
|
32
|
+
input: e,
|
33
|
+
paramName: c.name
|
34
|
+
});
|
35
|
+
s = f(c, u);
|
36
|
+
}
|
37
|
+
s.dynamic && (i = !0), o.push(s);
|
38
|
+
}
|
39
|
+
return i ? {
|
40
|
+
dynamic: !0,
|
41
|
+
encoded: y(o)
|
42
|
+
} : {
|
43
|
+
dynamic: !1,
|
44
|
+
encoded: b(...o.map((t) => t.encoded))
|
45
|
+
};
|
46
|
+
}
|
47
|
+
function x(a, e) {
|
48
|
+
const m = {
|
49
|
+
__length__: 0
|
50
|
+
};
|
51
|
+
let n = 0;
|
52
|
+
if (!a.components)
|
53
|
+
return {
|
54
|
+
result: m,
|
55
|
+
encoded: e,
|
56
|
+
consumed: n
|
57
|
+
};
|
58
|
+
let d = 0;
|
59
|
+
for (const [i, r] of a.components.entries()) {
|
60
|
+
let o;
|
61
|
+
if (h(r)) {
|
62
|
+
const t = _({ type: "uint32", name: "" }, e.subarray(n));
|
63
|
+
o = p(r, e.subarray(Number(t.result))), n += t.consumed, d += o.consumed;
|
64
|
+
} else
|
65
|
+
o = p(r, e.subarray(n)), n += o.consumed;
|
66
|
+
m.__length__ += 1, m[i] = o.result, r.name && r.name !== "" && (m[r.name] = o.result);
|
67
|
+
}
|
68
|
+
return {
|
69
|
+
encoded: e.subarray(n + d),
|
70
|
+
result: m,
|
71
|
+
consumed: n + d
|
72
|
+
};
|
73
|
+
}
|
74
|
+
export {
|
75
|
+
x as decodeTuple,
|
76
|
+
j as encodeTuple
|
77
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../utils.cjs"),i=require("./number.cjs"),s=require("../../../../../web3-utils/lib/esm/uint8array.cjs");function d(a){let n=0,c=0;const t=[],o=[];for(const e of a)e.dynamic?n+=r.WORD_SIZE:n+=e.encoded.length;for(const e of a)e.dynamic?(t.push(i.encodeNumber({type:"uint256",name:""},n+c)),o.push(e),c+=e.encoded.length):t.push(e);return s.uint8ArrayConcat(...t.map(e=>e.encoded),...o.map(e=>e.encoded))}exports.encodeDynamicParams=d;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { WORD_SIZE as m } from "../utils.js";
|
2
|
+
import { encodeNumber as r } from "./number.js";
|
3
|
+
import { uint8ArrayConcat as i } from "../../../../../web3-utils/lib/esm/uint8array.js";
|
4
|
+
function p(t) {
|
5
|
+
let n = 0, a = 0;
|
6
|
+
const o = [], c = [];
|
7
|
+
for (const e of t)
|
8
|
+
e.dynamic ? n += m : n += e.encoded.length;
|
9
|
+
for (const e of t)
|
10
|
+
e.dynamic ? (o.push(r({ type: "uint256", name: "" }, n + a)), c.push(e), a += e.encoded.length) : o.push(e);
|
11
|
+
return i(...o.map((e) => e.encoded), ...c.map((e) => e.encoded));
|
12
|
+
}
|
13
|
+
export {
|
14
|
+
p as encodeDynamicParams
|
15
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../../web3-validator/lib/esm/formats.cjs");const o=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 i=require("./base/tuple.cjs"),s=require("./utils.cjs");function a(e,r,n){const t=s.toAbiParams(e),u=o.hexToUint8Array(r);return i.decodeTuple({type:"tuple",name:"",components:t},u).result}exports.decodeParameters=a;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
2
|
+
import "../../../../web3-validator/lib/esm/formats.js";
|
3
|
+
import { hexToUint8Array as m } from "../../../../web3-validator/lib/esm/utils.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 { decodeTuple as p } from "./base/tuple.js";
|
9
|
+
import { toAbiParams as i } from "./utils.js";
|
10
|
+
function A(o, r, a) {
|
11
|
+
const t = i(o), e = m(r);
|
12
|
+
return p({ type: "tuple", name: "", components: t }, e).result;
|
13
|
+
}
|
14
|
+
export {
|
15
|
+
A as decodeParameters
|
16
|
+
};
|
@@ -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 i=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");require("./base/number.cjs");const o=require("./base/tuple.cjs");function c(e,r){if(e.length!==r.length)throw new n.AbiError("Invalid number of values received for given ABI",{expected:e.length,received:r.length});const t=u.toAbiParams(e);return i.uint8ArrayToHexString(o.encodeTuple({type:"tuple",name:"",components:t},r).encoded)}exports.encodeParameters=c;
|
@@ -0,0 +1,23 @@
|
|
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 "../../../../web3-validator/lib/esm/formats.js";
|
4
|
+
import { uint8ArrayToHexString as i } 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 { toAbiParams as n } from "./utils.js";
|
10
|
+
import "./base/number.js";
|
11
|
+
import { encodeTuple as m } from "./base/tuple.js";
|
12
|
+
function A(e, r) {
|
13
|
+
if (e.length !== r.length)
|
14
|
+
throw new t("Invalid number of values received for given ABI", {
|
15
|
+
expected: e.length,
|
16
|
+
received: r.length
|
17
|
+
});
|
18
|
+
const o = n(e);
|
19
|
+
return i(m({ type: "tuple", name: "", components: o }, r).encoded);
|
20
|
+
}
|
21
|
+
export {
|
22
|
+
A as encodeParameters
|
23
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../../../../abitype/dist/index.cjs"),l=require("../../../../web3-errors/lib/esm/errors/generic_errors.cjs");require("../../../../web3-errors/lib/esm/errors/rpc_errors.cjs");const o=require("../utils.cjs"),c=require("../../../../web3-utils/lib/esm/validation.cjs"),b=32;function d(e=0){var t;if(((t=globalThis.Buffer)===null||t===void 0?void 0:t.alloc)!==void 0){const r=globalThis.Buffer.alloc(e);return new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}return new Uint8Array(e)}function a(e){var t,r;return Object.assign(Object.assign({},e),{name:(t=e.name)!==null&&t!==void 0?t:"",components:(r=e.components)===null||r===void 0?void 0:r.map(n=>a(n))})}function u(e){return!c.isNullish(e)&&typeof e=="object"&&!c.isNullish(e.type)&&typeof e.type=="string"}function m(e){return e.map(t=>{var r;if(u(t))return t;if(typeof t=="string")return a(y.parseAbiParameter(t.replace(/tuple/,"")));if(o.isSimplifiedStructFormat(t)){const n=Object.keys(t)[0],i=o.mapStructNameAndType(n);return i.name=(r=i.name)!==null&&r!==void 0?r:"",Object.assign(Object.assign({},i),{components:o.mapStructToCoderFormat(t[n])})}throw new l.AbiError("Invalid abi")})}function f(e){const t=e.type.lastIndexOf("["),r=e.type.substring(0,t),n=e.type.substring(t);let i=-1;if(n!=="[]"&&(i=Number(n.slice(1,-1)),isNaN(i)))throw new l.AbiError("Invalid fixed array size",{size:n});return{param:{type:r,name:"",components:e.components},size:i}}function s(e){var t,r;return e.type==="string"||e.type==="bytes"||e.type.endsWith("[]")?!0:e.type==="tuple"?(r=(t=e.components)===null||t===void 0?void 0:t.some(s))!==null&&r!==void 0?r:!1:e.type.endsWith("]")?s(f(e).param):!1}exports.WORD_SIZE=b;exports.alloc=d;exports.convertExternalAbiParameter=a;exports.extractArrayType=f;exports.isAbiParameter=u;exports.isDynamic=s;exports.toAbiParams=m;
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import { parseAbiParameter as f } from "../../../../abitype/dist/index.js";
|
2
|
+
import { AbiError as a } from "../../../../web3-errors/lib/esm/errors/generic_errors.js";
|
3
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
4
|
+
import { isSimplifiedStructFormat as l, mapStructNameAndType as u, mapStructToCoderFormat as y } from "../utils.js";
|
5
|
+
import { isNullish as i } from "../../../../web3-utils/lib/esm/validation.js";
|
6
|
+
const h = 32;
|
7
|
+
function O(e = 0) {
|
8
|
+
var t;
|
9
|
+
if (((t = globalThis.Buffer) === null || t === void 0 ? void 0 : t.alloc) !== void 0) {
|
10
|
+
const r = globalThis.Buffer.alloc(e);
|
11
|
+
return new Uint8Array(r.buffer, r.byteOffset, r.byteLength);
|
12
|
+
}
|
13
|
+
return new Uint8Array(e);
|
14
|
+
}
|
15
|
+
function c(e) {
|
16
|
+
var t, r;
|
17
|
+
return Object.assign(Object.assign({}, e), { name: (t = e.name) !== null && t !== void 0 ? t : "", components: (r = e.components) === null || r === void 0 ? void 0 : r.map((n) => c(n)) });
|
18
|
+
}
|
19
|
+
function m(e) {
|
20
|
+
return !i(e) && typeof e == "object" && !i(e.type) && typeof e.type == "string";
|
21
|
+
}
|
22
|
+
function S(e) {
|
23
|
+
return e.map((t) => {
|
24
|
+
var r;
|
25
|
+
if (m(t))
|
26
|
+
return t;
|
27
|
+
if (typeof t == "string")
|
28
|
+
return c(f(t.replace(/tuple/, "")));
|
29
|
+
if (l(t)) {
|
30
|
+
const n = Object.keys(t)[0], o = u(n);
|
31
|
+
return o.name = (r = o.name) !== null && r !== void 0 ? r : "", Object.assign(Object.assign({}, o), { components: y(t[n]) });
|
32
|
+
}
|
33
|
+
throw new a("Invalid abi");
|
34
|
+
});
|
35
|
+
}
|
36
|
+
function b(e) {
|
37
|
+
const t = e.type.lastIndexOf("["), r = e.type.substring(0, t), n = e.type.substring(t);
|
38
|
+
let o = -1;
|
39
|
+
if (n !== "[]" && (o = Number(n.slice(1, -1)), isNaN(o)))
|
40
|
+
throw new a("Invalid fixed array size", { size: n });
|
41
|
+
return {
|
42
|
+
param: { type: r, name: "", components: e.components },
|
43
|
+
size: o
|
44
|
+
};
|
45
|
+
}
|
46
|
+
function s(e) {
|
47
|
+
var t, r;
|
48
|
+
return e.type === "string" || e.type === "bytes" || e.type.endsWith("[]") ? !0 : e.type === "tuple" ? (r = (t = e.components) === null || t === void 0 ? void 0 : t.some(s)) !== null && r !== void 0 ? r : !1 : e.type.endsWith("]") ? s(b(e).param) : !1;
|
49
|
+
}
|
50
|
+
export {
|
51
|
+
h as WORD_SIZE,
|
52
|
+
O as alloc,
|
53
|
+
c as convertExternalAbiParameter,
|
54
|
+
b as extractArrayType,
|
55
|
+
m as isAbiParameter,
|
56
|
+
s as isDynamic,
|
57
|
+
S as toAbiParams
|
58
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./api/errors_api.cjs"),d=require("./api/parameters_api.cjs"),u=require("./utils.cjs"),l=(n,e)=>{if(e!=null&&e.data){let t,a,i;try{const o=e.data.slice(0,10),r=n.find(s=>c.encodeErrorSignature(s).startsWith(o));r!=null&&r.inputs&&(t=r.name,a=u.jsonInterfaceMethodToString(r),i=d.decodeParameters([...r.inputs],e.data.substring(10)))}catch(o){console.error(o)}t&&e.setDecodedProperties(t,a,i)}};exports.decodeContractErrorData=l;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { encodeErrorSignature as s } from "./api/errors_api.js";
|
2
|
+
import { decodeParameters as c } from "./api/parameters_api.js";
|
3
|
+
import { jsonInterfaceMethodToString as l } from "./utils.js";
|
4
|
+
const u = (n, t) => {
|
5
|
+
if (t != null && t.data) {
|
6
|
+
let e, i, a;
|
7
|
+
try {
|
8
|
+
const o = t.data.slice(0, 10), r = n.find((d) => s(d).startsWith(o));
|
9
|
+
r != null && r.inputs && (e = r.name, i = l(r), a = c([...r.inputs], t.data.substring(10)));
|
10
|
+
} catch (o) {
|
11
|
+
console.error(o);
|
12
|
+
}
|
13
|
+
e && t.setDecodedProperties(e, i, a);
|
14
|
+
}
|
15
|
+
};
|
16
|
+
export {
|
17
|
+
u as decodeContractErrorData
|
18
|
+
};
|
@@ -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 s=require("../../../web3-utils/lib/esm/validation.cjs"),p=t=>!s.isNullish(t)&&typeof t=="object"&&!s.isNullish(t.type)&&t.type==="error",l=t=>!s.isNullish(t)&&typeof t=="object"&&!s.isNullish(t.type)&&t.type==="event",y=t=>!s.isNullish(t)&&typeof t=="object"&&!s.isNullish(t.type)&&t.type==="function",d=t=>!s.isNullish(t)&&typeof t=="object"&&!s.isNullish(t.type)&&t.type==="constructor",h=t=>typeof t=="object"&&typeof t.components>"u"&&typeof t.name>"u",f=t=>t.includes("[]")?{type:"tuple[]",name:t.slice(0,-2)}:{type:"tuple",name:t},a=t=>{const o=[];for(const e of Object.keys(t)){const n=t[e];typeof n=="object"?o.push(Object.assign(Object.assign({},f(e)),{components:a(n)})):o.push({name:e,type:t[e]})}return o},c=(t,o)=>{const e=[];return o.forEach(n=>{if(typeof n.components=="object"){if(!n.type.startsWith("tuple"))throw new b.AbiError(`Invalid value given "${n.type}". Error: components found but type is not tuple.`);const i=n.type.indexOf("["),u=i>=0?n.type.substring(i):"",r=c(t,n.components);Array.isArray(r)&&t?e.push(`tuple(${r.join(",")})${u}`):t?e.push(`(${r.join()})`):e.push(`(${r.join(",")})${u}`)}else e.push(n.type)}),e},g=t=>{var o,e,n,i;return p(t)||l(t)||y(t)?!((o=t.name)===null||o===void 0)&&o.includes("(")?t.name:`${(e=t.name)!==null&&e!==void 0?e:""}(${c(!1,(n=t.inputs)!==null&&n!==void 0?n:[]).join(",")})`:`(${c(!1,(i=t.inputs)!==null&&i!==void 0?i:[]).join(",")})`};exports.flattenTypes=c;exports.isAbiConstructorFragment=d;exports.isAbiErrorFragment=p;exports.isAbiEventFragment=l;exports.isAbiFunctionFragment=y;exports.isSimplifiedStructFormat=h;exports.jsonInterfaceMethodToString=g;exports.mapStructNameAndType=f;exports.mapStructToCoderFormat=a;
|
@@ -0,0 +1,39 @@
|
|
1
|
+
import { AbiError as f } from "../../../web3-errors/lib/esm/errors/generic_errors.js";
|
2
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import { isNullish as s } from "../../../web3-utils/lib/esm/validation.js";
|
4
|
+
const u = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "error", y = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "event", l = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "function", g = (t) => !s(t) && typeof t == "object" && !s(t.type) && t.type === "constructor", j = (t) => typeof t == "object" && typeof t.components > "u" && typeof t.name > "u", a = (t) => t.includes("[]") ? { type: "tuple[]", name: t.slice(0, -2) } : { type: "tuple", name: t }, b = (t) => {
|
5
|
+
const n = [];
|
6
|
+
for (const e of Object.keys(t)) {
|
7
|
+
const o = t[e];
|
8
|
+
typeof o == "object" ? n.push(Object.assign(Object.assign({}, a(e)), { components: b(o) })) : n.push({
|
9
|
+
name: e,
|
10
|
+
type: t[e]
|
11
|
+
});
|
12
|
+
}
|
13
|
+
return n;
|
14
|
+
}, i = (t, n) => {
|
15
|
+
const e = [];
|
16
|
+
return n.forEach((o) => {
|
17
|
+
if (typeof o.components == "object") {
|
18
|
+
if (!o.type.startsWith("tuple"))
|
19
|
+
throw new f(`Invalid value given "${o.type}". Error: components found but type is not tuple.`);
|
20
|
+
const r = o.type.indexOf("["), c = r >= 0 ? o.type.substring(r) : "", p = i(t, o.components);
|
21
|
+
Array.isArray(p) && t ? e.push(`tuple(${p.join(",")})${c}`) : t ? e.push(`(${p.join()})`) : e.push(`(${p.join(",")})${c}`);
|
22
|
+
} else
|
23
|
+
e.push(o.type);
|
24
|
+
}), e;
|
25
|
+
}, m = (t) => {
|
26
|
+
var n, e, o, r;
|
27
|
+
return u(t) || y(t) || l(t) ? !((n = t.name) === null || n === void 0) && n.includes("(") ? t.name : `${(e = t.name) !== null && e !== void 0 ? e : ""}(${i(!1, (o = t.inputs) !== null && o !== void 0 ? o : []).join(",")})` : `(${i(!1, (r = t.inputs) !== null && r !== void 0 ? r : []).join(",")})`;
|
28
|
+
};
|
29
|
+
export {
|
30
|
+
i as flattenTypes,
|
31
|
+
g as isAbiConstructorFragment,
|
32
|
+
u as isAbiErrorFragment,
|
33
|
+
y as isAbiEventFragment,
|
34
|
+
l as isAbiFunctionFragment,
|
35
|
+
j as isSimplifiedStructFormat,
|
36
|
+
m as jsonInterfaceMethodToString,
|
37
|
+
a as mapStructNameAndType,
|
38
|
+
b as mapStructToCoderFormat
|
39
|
+
};
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../../../ethereum-cryptography/esm/aes.cjs"),N=require("../../../ethereum-cryptography/esm/pbkdf2.cjs"),U=require("../../../ethereum-cryptography/esm/scrypt.cjs"),v=require("../../../web3-errors/lib/esm/errors/account_errors.cjs"),w=require("../../../web3-errors/lib/esm/errors/transaction_errors.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const k=require("../../../web3-validator/lib/esm/validation/string.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 f=require("../../../web3-validator/lib/esm/validation/object.cjs"),S=require("./tx/constants.cjs"),j=require("./schemas.cjs"),D=require("./tx/transactionFactory.cjs"),P=require("../../../web3-utils/lib/esm/random.cjs"),z=require("../../../web3-utils/lib/esm/uuid.cjs"),n=require("../../../web3-utils/lib/esm/converters.cjs"),A=require("../../../web3-utils/lib/esm/uint8array.cjs"),g=require("../../../web3-utils/lib/esm/hash.cjs");var b=globalThis&&globalThis.__awaiter||function(r,s,e,t){function i(c){return c instanceof e?c:new e(function(a){a(c)})}return new(e||(e=Promise))(function(c,a){function y(l){try{o(t.next(l))}catch(d){a(d)}}function u(l){try{o(t.throw(l))}catch(d){a(d)}}function o(l){l.done?c(l.value):i(l.value).then(y,u)}o((t=t.apply(r,s||[])).next())})};const x=(r,s)=>{let e;if(!s&&typeof r=="string"&&k.isHexStrict(r)&&r.length!==66)throw new v.PrivateKeyLengthError;try{e=r instanceof Uint8Array?r:n.bytesToUint8Array(r)}catch{throw new v.InvalidPrivateKeyError}if(!s&&e.byteLength!==32)throw new v.PrivateKeyLengthError;return e},H=r=>{const s=k.isHexStrict(r)?r:n.utf8ToHex(r),e=n.hexToBytes(s),t=n.hexToBytes(n.fromUtf8(`Ethereum Signed Message:
|
2
|
+
${e.byteLength}`)),i=A.uint8ArrayConcat(t,e);return g.sha3Raw(i)},I=(r,s)=>{const e=x(s),t=H(r),i=S.secp256k1.sign(t.substring(2),e),c=i.toCompactRawBytes(),a=i.r.toString(16).padStart(64,"0"),y=i.s.toString(16).padStart(64,"0"),u=i.recovery+27;return{message:r,messageHash:t,v:n.numberToHex(u),r:`0x${a}`,s:`0x${y}`,signature:`${n.bytesToHex(c)}${u.toString(16)}`}},F=(r,s)=>b(void 0,void 0,void 0,function*(){const e=r.sign(n.hexToBytes(s));if(f.isNullish(e.v)||f.isNullish(e.r)||f.isNullish(e.s))throw new w.TransactionSigningError("Signer Error");const t=e.validate(!0);if(t.length>0){let a="Signer Error ";for(const y of t)a+=`${a} ${y}.`;throw new w.TransactionSigningError(a)}const i=n.bytesToHex(e.serialize()),c=g.sha3Raw(i);return{messageHash:n.bytesToHex(e.getMessageToSign(!0)),v:`0x${e.v.toString(16)}`,r:`0x${e.r.toString(16).padStart(64,"0")}`,s:`0x${e.s.toString(16).padStart(64,"0")}`,rawTransaction:i,transactionHash:n.bytesToHex(c)}}),J=r=>{if(f.isNullish(r))throw new w.UndefinedRawTransactionError;const s=D.TransactionFactory.fromSerializedData(n.hexToBytes(r));return n.toChecksumAddress(s.getSenderAddress().toString())},K=(r,s,e,t,i)=>{if(typeof r=="object"){const d=`${r.r}${r.s.slice(2)}${r.v.slice(2)}`;return K(r.messageHash,d,e)}if(typeof s=="string"&&typeof e=="string"&&!f.isNullish(t)){const d=`${e}${t.slice(2)}${s.slice(2)}`;return K(r,d,i)}if(f.isNullish(s))throw new v.InvalidSignatureError("signature string undefined");const c=130,a=e?r:H(r);let y=parseInt(s.substring(c),16);y>26&&(y-=27);const u=S.secp256k1.Signature.fromCompact(s.slice(2,c)).addRecoveryBit(y).recoverPublicKey(a.replace("0x","")).toRawBytes(!1),o=g.sha3Raw(u.subarray(1));return n.toChecksumAddress(`0x${o.slice(-40)}`)},q=r=>{const s=x(r),e=S.secp256k1.getPublicKey(s,!1),i=g.sha3Raw(e.slice(1)).slice(-40);return n.toChecksumAddress(`0x${i}`)},M=(r,s,e)=>b(void 0,void 0,void 0,function*(){var t,i,c,a,y,u,o;const l=x(r);let d;if(e!=null&&e.salt?d=typeof e.salt=="string"?n.hexToBytes(e.salt):e.salt:d=P.randomBytes(32),!(k.isString(s)||s instanceof Uint8Array))throw new v.InvalidPasswordError;const E=typeof s=="string"?n.hexToBytes(n.utf8ToHex(s)):s;let p;if(e!=null&&e.iv){if(p=typeof e.iv=="string"?n.hexToBytes(e.iv):e.iv,p.length!==16)throw new v.IVLengthError}else p=P.randomBytes(16);const m=(t=e==null?void 0:e.kdf)!==null&&t!==void 0?t:"scrypt";let T,h;if(m==="pbkdf2"){if(h={dklen:(i=e==null?void 0:e.dklen)!==null&&i!==void 0?i:32,salt:n.bytesToHex(d).replace("0x",""),c:(c=e==null?void 0:e.c)!==null&&c!==void 0?c:262144,prf:"hmac-sha256"},h.c<1e3)throw new v.PBKDF2IterationsError;T=N.pbkdf2Sync(E,d,h.c,h.dklen,"sha256")}else if(m==="scrypt")h={n:(a=e==null?void 0:e.n)!==null&&a!==void 0?a:8192,r:(y=e==null?void 0:e.r)!==null&&y!==void 0?y:8,p:(u=e==null?void 0:e.p)!==null&&u!==void 0?u:1,dklen:(o=e==null?void 0:e.dklen)!==null&&o!==void 0?o:32,salt:n.bytesToHex(d).replace("0x","")},T=U.scryptSync(E,d,h.n,h.p,h.r,h.dklen);else throw new v.InvalidKdfError;const $=yield C.encrypt(l,T.slice(0,16),p,"aes-128-ctr"),R=n.bytesToHex($).slice(2),L=g.sha3Raw(A.uint8ArrayConcat(T.slice(16,32),$)).replace("0x","");return{version:3,id:z.uuidV4(),address:q(l).toLowerCase().replace("0x",""),crypto:{ciphertext:R,cipherparams:{iv:n.bytesToHex(p).replace("0x","")},cipher:"aes-128-ctr",kdf:m,kdfparams:h,mac:L}}}),B=(r,s)=>{const e=x(r,s);return{address:q(e),privateKey:n.bytesToHex(e),signTransaction:t=>{throw new w.TransactionSigningError("Do not have network access to sign the transaction")},sign:t=>I(typeof t=="string"?t:JSON.stringify(t),e),encrypt:(t,i)=>b(void 0,void 0,void 0,function*(){return M(e,t,i)})}},V=()=>{const r=S.secp256k1.utils.randomPrivateKey();return B(`${n.bytesToHex(r)}`)},X=(r,s,e)=>b(void 0,void 0,void 0,function*(){const t=typeof r=="object"?r:JSON.parse(e?r.toLowerCase():r);if(_.validator.validateJSONSchema(j.keyStoreSchema,t),t.version!==3)throw new v.KeyStoreVersionError;const i=typeof s=="string"?n.hexToBytes(n.utf8ToHex(s)):s;_.validator.validate(["bytes"],[i]);let c;if(t.crypto.kdf==="scrypt"){const o=t.crypto.kdfparams,l=typeof o.salt=="string"?n.hexToBytes(o.salt):o.salt;c=U.scryptSync(i,l,o.n,o.p,o.r,o.dklen)}else if(t.crypto.kdf==="pbkdf2"){const o=t.crypto.kdfparams,l=typeof o.salt=="string"?n.hexToBytes(o.salt):o.salt;c=N.pbkdf2Sync(i,l,o.c,o.dklen,"sha256")}else throw new v.InvalidKdfError;const a=n.hexToBytes(t.crypto.ciphertext);if(g.sha3Raw(A.uint8ArrayConcat(c.slice(16,32),a)).replace("0x","")!==t.crypto.mac)throw new v.KeyDerivationError;const u=yield C.decrypt(n.hexToBytes(t.crypto.ciphertext),c.slice(0,16),n.hexToBytes(t.crypto.cipherparams.iv));return B(u)});exports.create=V;exports.decrypt=X;exports.encrypt=M;exports.hashMessage=H;exports.parseAndValidatePrivateKey=x;exports.privateKeyToAccount=B;exports.privateKeyToAddress=q;exports.recover=K;exports.recoverTransaction=J;exports.sign=I;exports.signTransaction=F;
|
@@ -0,0 +1,219 @@
|
|
1
|
+
import { encrypt as J, decrypt as F } from "../../../ethereum-cryptography/esm/aes.js";
|
2
|
+
import { pbkdf2Sync as B } from "../../../ethereum-cryptography/esm/pbkdf2.js";
|
3
|
+
import { scryptSync as I } from "../../../ethereum-cryptography/esm/scrypt.js";
|
4
|
+
import { InvalidSignatureError as R, InvalidPasswordError as V, IVLengthError as X, PBKDF2IterationsError as q, InvalidKdfError as C, PrivateKeyLengthError as _, InvalidPrivateKeyError as G, KeyStoreVersionError as Q, KeyDerivationError as W } from "../../../web3-errors/lib/esm/errors/account_errors.js";
|
5
|
+
import { UndefinedRawTransactionError as Y, TransactionSigningError as K } from "../../../web3-errors/lib/esm/errors/transaction_errors.js";
|
6
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
7
|
+
import "../../../web3-validator/lib/esm/formats.js";
|
8
|
+
import { isHexStrict as D, isString as Z } from "../../../web3-validator/lib/esm/validation/string.js";
|
9
|
+
import { validator as H } from "../../../web3-validator/lib/esm/default_validator.js";
|
10
|
+
import "../../../web3-types/lib/esm/data_format_types.js";
|
11
|
+
import "../../../web3-types/lib/esm/eth_types.js";
|
12
|
+
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
13
|
+
import { isNullish as p } from "../../../web3-validator/lib/esm/validation/object.js";
|
14
|
+
import { secp256k1 as w } from "./tx/constants.js";
|
15
|
+
import { keyStoreSchema as O } from "./schemas.js";
|
16
|
+
import { TransactionFactory as rr } from "./tx/transactionFactory.js";
|
17
|
+
import { randomBytes as U } from "../../../web3-utils/lib/esm/random.js";
|
18
|
+
import { uuidV4 as tr } from "../../../web3-utils/lib/esm/uuid.js";
|
19
|
+
import { utf8ToHex as k, hexToBytes as y, fromUtf8 as er, numberToHex as nr, bytesToHex as u, toChecksumAddress as $, bytesToUint8Array as ir } from "../../../web3-utils/lib/esm/converters.js";
|
20
|
+
import { uint8ArrayConcat as A } from "../../../web3-utils/lib/esm/uint8array.js";
|
21
|
+
import { sha3Raw as m } from "../../../web3-utils/lib/esm/hash.js";
|
22
|
+
var S = globalThis && globalThis.__awaiter || function(t, n, r, e) {
|
23
|
+
function i(s) {
|
24
|
+
return s instanceof r ? s : new r(function(c) {
|
25
|
+
c(s);
|
26
|
+
});
|
27
|
+
}
|
28
|
+
return new (r || (r = Promise))(function(s, c) {
|
29
|
+
function l(a) {
|
30
|
+
try {
|
31
|
+
o(e.next(a));
|
32
|
+
} catch (d) {
|
33
|
+
c(d);
|
34
|
+
}
|
35
|
+
}
|
36
|
+
function f(a) {
|
37
|
+
try {
|
38
|
+
o(e.throw(a));
|
39
|
+
} catch (d) {
|
40
|
+
c(d);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
function o(a) {
|
44
|
+
a.done ? s(a.value) : i(a.value).then(l, f);
|
45
|
+
}
|
46
|
+
o((e = e.apply(t, n || [])).next());
|
47
|
+
});
|
48
|
+
};
|
49
|
+
const x = (t, n) => {
|
50
|
+
let r;
|
51
|
+
if (!n && typeof t == "string" && D(t) && t.length !== 66)
|
52
|
+
throw new _();
|
53
|
+
try {
|
54
|
+
r = t instanceof Uint8Array ? t : ir(t);
|
55
|
+
} catch {
|
56
|
+
throw new G();
|
57
|
+
}
|
58
|
+
if (!n && r.byteLength !== 32)
|
59
|
+
throw new _();
|
60
|
+
return r;
|
61
|
+
}, L = (t) => {
|
62
|
+
const n = D(t) ? t : k(t), r = y(n), e = y(er(`Ethereum Signed Message:
|
63
|
+
${r.byteLength}`)), i = A(e, r);
|
64
|
+
return m(i);
|
65
|
+
}, or = (t, n) => {
|
66
|
+
const r = x(n), e = L(t), i = w.sign(e.substring(2), r), s = i.toCompactRawBytes(), c = i.r.toString(16).padStart(64, "0"), l = i.s.toString(16).padStart(64, "0"), f = i.recovery + 27;
|
67
|
+
return {
|
68
|
+
message: t,
|
69
|
+
messageHash: e,
|
70
|
+
v: nr(f),
|
71
|
+
r: `0x${c}`,
|
72
|
+
s: `0x${l}`,
|
73
|
+
signature: `${u(s)}${f.toString(16)}`
|
74
|
+
};
|
75
|
+
}, Er = (t, n) => S(void 0, void 0, void 0, function* () {
|
76
|
+
const r = t.sign(y(n));
|
77
|
+
if (p(r.v) || p(r.r) || p(r.s))
|
78
|
+
throw new K("Signer Error");
|
79
|
+
const e = r.validate(!0);
|
80
|
+
if (e.length > 0) {
|
81
|
+
let c = "Signer Error ";
|
82
|
+
for (const l of e)
|
83
|
+
c += `${c} ${l}.`;
|
84
|
+
throw new K(c);
|
85
|
+
}
|
86
|
+
const i = u(r.serialize()), s = m(i);
|
87
|
+
return {
|
88
|
+
messageHash: u(r.getMessageToSign(!0)),
|
89
|
+
v: `0x${r.v.toString(16)}`,
|
90
|
+
r: `0x${r.r.toString(16).padStart(64, "0")}`,
|
91
|
+
s: `0x${r.s.toString(16).padStart(64, "0")}`,
|
92
|
+
rawTransaction: i,
|
93
|
+
transactionHash: u(s)
|
94
|
+
};
|
95
|
+
}), _r = (t) => {
|
96
|
+
if (p(t))
|
97
|
+
throw new Y();
|
98
|
+
const n = rr.fromSerializedData(y(t));
|
99
|
+
return $(n.getSenderAddress().toString());
|
100
|
+
}, P = (t, n, r, e, i) => {
|
101
|
+
if (typeof t == "object") {
|
102
|
+
const d = `${t.r}${t.s.slice(2)}${t.v.slice(2)}`;
|
103
|
+
return P(t.messageHash, d, r);
|
104
|
+
}
|
105
|
+
if (typeof n == "string" && typeof r == "string" && !p(e)) {
|
106
|
+
const d = `${r}${e.slice(2)}${n.slice(2)}`;
|
107
|
+
return P(t, d, i);
|
108
|
+
}
|
109
|
+
if (p(n))
|
110
|
+
throw new R("signature string undefined");
|
111
|
+
const s = 130, c = r ? t : L(t);
|
112
|
+
let l = parseInt(n.substring(s), 16);
|
113
|
+
l > 26 && (l -= 27);
|
114
|
+
const f = w.Signature.fromCompact(n.slice(2, s)).addRecoveryBit(l).recoverPublicKey(c.replace("0x", "")).toRawBytes(!1), o = m(f.subarray(1));
|
115
|
+
return $(`0x${o.slice(-40)}`);
|
116
|
+
}, M = (t) => {
|
117
|
+
const n = x(t), r = w.getPublicKey(n, !1), i = m(r.slice(1)).slice(-40);
|
118
|
+
return $(`0x${i}`);
|
119
|
+
}, sr = (t, n, r) => S(void 0, void 0, void 0, function* () {
|
120
|
+
var e, i, s, c, l, f, o;
|
121
|
+
const a = x(t);
|
122
|
+
let d;
|
123
|
+
if (r != null && r.salt ? d = typeof r.salt == "string" ? y(r.salt) : r.salt : d = U(32), !(Z(n) || n instanceof Uint8Array))
|
124
|
+
throw new V();
|
125
|
+
const T = typeof n == "string" ? y(k(n)) : n;
|
126
|
+
let h;
|
127
|
+
if (r != null && r.iv) {
|
128
|
+
if (h = typeof r.iv == "string" ? y(r.iv) : r.iv, h.length !== 16)
|
129
|
+
throw new X();
|
130
|
+
} else
|
131
|
+
h = U(16);
|
132
|
+
const b = (e = r == null ? void 0 : r.kdf) !== null && e !== void 0 ? e : "scrypt";
|
133
|
+
let g, v;
|
134
|
+
if (b === "pbkdf2") {
|
135
|
+
if (v = {
|
136
|
+
dklen: (i = r == null ? void 0 : r.dklen) !== null && i !== void 0 ? i : 32,
|
137
|
+
salt: u(d).replace("0x", ""),
|
138
|
+
c: (s = r == null ? void 0 : r.c) !== null && s !== void 0 ? s : 262144,
|
139
|
+
prf: "hmac-sha256"
|
140
|
+
}, v.c < 1e3)
|
141
|
+
throw new q();
|
142
|
+
g = B(T, d, v.c, v.dklen, "sha256");
|
143
|
+
} else if (b === "scrypt")
|
144
|
+
v = {
|
145
|
+
n: (c = r == null ? void 0 : r.n) !== null && c !== void 0 ? c : 8192,
|
146
|
+
r: (l = r == null ? void 0 : r.r) !== null && l !== void 0 ? l : 8,
|
147
|
+
p: (f = r == null ? void 0 : r.p) !== null && f !== void 0 ? f : 1,
|
148
|
+
dklen: (o = r == null ? void 0 : r.dklen) !== null && o !== void 0 ? o : 32,
|
149
|
+
salt: u(d).replace("0x", "")
|
150
|
+
}, g = I(T, d, v.n, v.p, v.r, v.dklen);
|
151
|
+
else
|
152
|
+
throw new C();
|
153
|
+
const E = yield J(a, g.slice(0, 16), h, "aes-128-ctr"), j = u(E).slice(2), z = m(A(g.slice(16, 32), E)).replace("0x", "");
|
154
|
+
return {
|
155
|
+
version: 3,
|
156
|
+
id: tr(),
|
157
|
+
address: M(a).toLowerCase().replace("0x", ""),
|
158
|
+
crypto: {
|
159
|
+
ciphertext: j,
|
160
|
+
cipherparams: {
|
161
|
+
iv: u(h).replace("0x", "")
|
162
|
+
},
|
163
|
+
cipher: "aes-128-ctr",
|
164
|
+
kdf: b,
|
165
|
+
kdfparams: v,
|
166
|
+
mac: z
|
167
|
+
}
|
168
|
+
};
|
169
|
+
}), N = (t, n) => {
|
170
|
+
const r = x(t, n);
|
171
|
+
return {
|
172
|
+
address: M(r),
|
173
|
+
privateKey: u(r),
|
174
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
175
|
+
signTransaction: (e) => {
|
176
|
+
throw new K("Do not have network access to sign the transaction");
|
177
|
+
},
|
178
|
+
sign: (e) => or(typeof e == "string" ? e : JSON.stringify(e), r),
|
179
|
+
encrypt: (e, i) => S(void 0, void 0, void 0, function* () {
|
180
|
+
return sr(r, e, i);
|
181
|
+
})
|
182
|
+
};
|
183
|
+
}, Hr = () => {
|
184
|
+
const t = w.utils.randomPrivateKey();
|
185
|
+
return N(`${u(t)}`);
|
186
|
+
}, Ur = (t, n, r) => S(void 0, void 0, void 0, function* () {
|
187
|
+
const e = typeof t == "object" ? t : JSON.parse(r ? t.toLowerCase() : t);
|
188
|
+
if (H.validateJSONSchema(O, e), e.version !== 3)
|
189
|
+
throw new Q();
|
190
|
+
const i = typeof n == "string" ? y(k(n)) : n;
|
191
|
+
H.validate(["bytes"], [i]);
|
192
|
+
let s;
|
193
|
+
if (e.crypto.kdf === "scrypt") {
|
194
|
+
const o = e.crypto.kdfparams, a = typeof o.salt == "string" ? y(o.salt) : o.salt;
|
195
|
+
s = I(i, a, o.n, o.p, o.r, o.dklen);
|
196
|
+
} else if (e.crypto.kdf === "pbkdf2") {
|
197
|
+
const o = e.crypto.kdfparams, a = typeof o.salt == "string" ? y(o.salt) : o.salt;
|
198
|
+
s = B(i, a, o.c, o.dklen, "sha256");
|
199
|
+
} else
|
200
|
+
throw new C();
|
201
|
+
const c = y(e.crypto.ciphertext);
|
202
|
+
if (m(A(s.slice(16, 32), c)).replace("0x", "") !== e.crypto.mac)
|
203
|
+
throw new W();
|
204
|
+
const f = yield F(y(e.crypto.ciphertext), s.slice(0, 16), y(e.crypto.cipherparams.iv));
|
205
|
+
return N(f);
|
206
|
+
});
|
207
|
+
export {
|
208
|
+
Hr as create,
|
209
|
+
Ur as decrypt,
|
210
|
+
sr as encrypt,
|
211
|
+
L as hashMessage,
|
212
|
+
x as parseAndValidatePrivateKey,
|
213
|
+
N as privateKeyToAccount,
|
214
|
+
M as privateKeyToAddress,
|
215
|
+
P as recover,
|
216
|
+
_r as recoverTransaction,
|
217
|
+
or as sign,
|
218
|
+
Er as signTransaction
|
219
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"goerli",chainId:5,networkId:5,defaultHardfork:"merge",consensus:{type:"poa",algorithm:"clique",clique:{period:15,epoch:3e4}},comment:"Cross-client PoA test network",url:"https://github.com/goerli/testnet",genesis:{timestamp:"0x5c51a607",gasLimit:10485760,difficulty:1,nonce:"0x0000000000000000",extraData:"0x22466c6578692069732061207468696e6722202d204166726900000000000000e0a2bd4258d2768837baa26a28fe71dc079f84c70000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"},hardforks:[{name:"chainstart",block:0,forkHash:"0xa3f5ab08"},{name:"homestead",block:0,forkHash:"0xa3f5ab08"},{name:"tangerineWhistle",block:0,forkHash:"0xa3f5ab08"},{name:"spuriousDragon",block:0,forkHash:"0xa3f5ab08"},{name:"byzantium",block:0,forkHash:"0xa3f5ab08"},{name:"constantinople",block:0,forkHash:"0xa3f5ab08"},{name:"petersburg",block:0,forkHash:"0xa3f5ab08"},{name:"istanbul",block:1561651,forkHash:"0xc25efa5c"},{name:"berlin",block:4460644,forkHash:"0x757a1c47"},{name:"london",block:5062605,forkHash:"0xb8c6299d"},{"//_comment":"The forkHash will remain same as mergeForkIdTransition is post merge, terminal block: https://goerli.etherscan.io/block/7382818",name:"merge",ttd:"10790000",block:7382819,forkHash:"0xb8c6299d"},{name:"mergeForkIdTransition",block:null,forkHash:null},{name:"shanghai",block:null,forkHash:null}],bootstrapNodes:[],dnsNetworks:["enrtree://AKA3AM6LPBYEUDMVNU3BSVQJ5AD45Y7YPOHJLEF6W26QOE4VTUDPE@all.goerli.ethdisco.net"]};exports.default=e;
|