@ozdao/prometheus-framework 0.1.66 → 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/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/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/twofa.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/sections/Comments.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/blogposts.js +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/store/reactions.js +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Image.vue.js +6 -7
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/events.js +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/store/tickets.js +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/store/gallery.js +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.cjs +1 -1
- package/dist/prometheus-framework/src/modules/orders/store/orders.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/departments.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/invites.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/memberships.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/store/organizations.js +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/payments/components/pages/Payments.vue.js +30 -61
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardLeftover.vue.js +20 -21
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/CardProduct.vue.js +28 -33
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/blocks/ImagesThumbnails.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/pages/ProductEdit.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/EditProductInfo.vue.js +6 -41
- package/dist/prometheus-framework/src/modules/products/store/categories.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/categories.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/leftovers.js +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/store/products.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/store/reports.js +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/store/spots.js +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/store/users.js +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/wallet/components/pages/Wallet.vue.js +75 -33
- package/dist/prometheus-framework.cjs.js +29 -30
- package/dist/prometheus-framework.es.js +3953 -3225
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/src/modules/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,283 @@
|
|
1
|
+
import { InvalidAddressError as a } from "../../../web3-errors/lib/esm/errors/utils_errors.js";
|
2
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
3
|
+
import "../../../web3-validator/lib/esm/formats.js";
|
4
|
+
import "../../../web3-validator/lib/esm/default_validator.js";
|
5
|
+
import { isAddress as m } from "../../../web3-validator/lib/esm/validation/address.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 { leftPad as d } from "../../../web3-utils/lib/esm/string_manipulation.js";
|
10
|
+
import { toChecksumAddress as h, hexToNumber as u } from "../../../web3-utils/lib/esm/converters.js";
|
11
|
+
class r {
|
12
|
+
/**
|
13
|
+
* Construct a direct or indirect IBAN that has conversion methods and validity checks.
|
14
|
+
* If the provided string was not of either the length of a direct IBAN (34 or 35),
|
15
|
+
* nor the length of an indirect IBAN (20), an Error will be thrown ('Invalid IBAN was provided').
|
16
|
+
*
|
17
|
+
* @param iban - a Direct or an Indirect IBAN
|
18
|
+
* @returns - Iban instance
|
19
|
+
*
|
20
|
+
* @example
|
21
|
+
* ```ts
|
22
|
+
* const iban = new web3.eth.Iban("XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS");
|
23
|
+
* > Iban { _iban: 'XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS' }
|
24
|
+
* ```
|
25
|
+
*/
|
26
|
+
constructor(t) {
|
27
|
+
if (this.toAddress = () => {
|
28
|
+
if (this.isDirect()) {
|
29
|
+
const i = this._iban.slice(4), e = r._parseInt(i, 36), n = d(e, 40);
|
30
|
+
return h(n);
|
31
|
+
}
|
32
|
+
throw new Error("Iban is indirect and cannot be converted. Must be length of 34 or 35");
|
33
|
+
}, r.isIndirect(t) || r.isDirect(t))
|
34
|
+
this._iban = t;
|
35
|
+
else
|
36
|
+
throw new Error("Invalid IBAN was provided");
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* A static method that checks if an IBAN is Direct.
|
40
|
+
* It actually check the length of the provided variable and, only if it is 34 or 35, it returns true.
|
41
|
+
* Note: this is also available as a method at an Iban instance.
|
42
|
+
* @param iban - an IBAN to be checked
|
43
|
+
* @returns - `true` if the provided `iban` is a Direct IBAN, and `false` otherwise.
|
44
|
+
*
|
45
|
+
* @example
|
46
|
+
* ```ts
|
47
|
+
* web3.eth.Iban.isDirect("XE81ETHXREGGAVOFYORK");
|
48
|
+
* > false
|
49
|
+
* ```
|
50
|
+
*/
|
51
|
+
static isDirect(t) {
|
52
|
+
return t.length === 34 || t.length === 35;
|
53
|
+
}
|
54
|
+
/**
|
55
|
+
* An instance method that checks if iban number is Direct.
|
56
|
+
* It actually check the length of the provided variable and, only if it is 34 or 35, it returns true.
|
57
|
+
* Note: this is also available as a static method.
|
58
|
+
* @param iban - an IBAN to be checked
|
59
|
+
* @returns - `true` if the provided `iban` is a Direct IBAN, and `false` otherwise.
|
60
|
+
*
|
61
|
+
* @example
|
62
|
+
* ```ts
|
63
|
+
* const iban = new web3.eth.Iban("XE81ETHXREGGAVOFYORK");
|
64
|
+
* iban.isDirect();
|
65
|
+
* > false
|
66
|
+
* ```
|
67
|
+
*/
|
68
|
+
isDirect() {
|
69
|
+
return r.isDirect(this._iban);
|
70
|
+
}
|
71
|
+
/**
|
72
|
+
* A static method that checks if an IBAN is Indirect.
|
73
|
+
* It actually check the length of the provided variable and, only if it is 20, it returns true.
|
74
|
+
* Note: this is also available as a method at an Iban instance.
|
75
|
+
* @param iban - an IBAN to be checked
|
76
|
+
* @returns - `true` if the provided `iban` is an Indirect IBAN, and `false` otherwise.
|
77
|
+
*
|
78
|
+
* @example
|
79
|
+
* ```ts
|
80
|
+
* web3.eth.Iban.isIndirect("XE81ETHXREGGAVOFYORK");
|
81
|
+
* > true
|
82
|
+
* ```
|
83
|
+
*/
|
84
|
+
static isIndirect(t) {
|
85
|
+
return t.length === 20;
|
86
|
+
}
|
87
|
+
/**
|
88
|
+
* check if iban number if indirect
|
89
|
+
* It actually check the length of the provided variable and, only if it is 20, it returns true.
|
90
|
+
* Note: this is also available as a static method.
|
91
|
+
* @param iban - an IBAN to be checked
|
92
|
+
* @returns - `true` if the provided `iban` is an Indirect IBAN, and `false` otherwise.
|
93
|
+
*
|
94
|
+
* @example
|
95
|
+
* ```ts
|
96
|
+
* const iban = new web3.eth.Iban("XE81ETHXREGGAVOFYORK");
|
97
|
+
* iban.isIndirect();
|
98
|
+
* > true
|
99
|
+
* ```
|
100
|
+
*/
|
101
|
+
isIndirect() {
|
102
|
+
return r.isIndirect(this._iban);
|
103
|
+
}
|
104
|
+
/**
|
105
|
+
* This method could be used to check if a given string is valid IBAN object.
|
106
|
+
* Note: this is also available as a method at an Iban instance.
|
107
|
+
*
|
108
|
+
* @param iban - a string to be checked if it is in IBAN
|
109
|
+
* @returns - true if it is valid IBAN
|
110
|
+
*
|
111
|
+
* @example
|
112
|
+
* ```ts
|
113
|
+
* web3.eth.Iban.isValid("XE81ETHXREGGAVOFYORK");
|
114
|
+
* > true
|
115
|
+
*
|
116
|
+
* web3.eth.Iban.isValid("XE82ETHXREGGAVOFYORK");
|
117
|
+
* > false // because the checksum is incorrect
|
118
|
+
* ```
|
119
|
+
*/
|
120
|
+
static isValid(t) {
|
121
|
+
return /^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(t) && r._mod9710(r._iso13616Prepare(t)) === 1;
|
122
|
+
}
|
123
|
+
/**
|
124
|
+
* Should be called to check if the early provided IBAN is correct.
|
125
|
+
* Note: this is also available as a static method.
|
126
|
+
*
|
127
|
+
* @example
|
128
|
+
* ```ts
|
129
|
+
* const iban = new web3.eth.Iban("XE81ETHXREGGAVOFYORK");
|
130
|
+
* iban.isValid();
|
131
|
+
* > true
|
132
|
+
*
|
133
|
+
* const iban = new web3.eth.Iban("XE82ETHXREGGAVOFYORK");
|
134
|
+
* iban.isValid();
|
135
|
+
* > false // because the checksum is incorrect
|
136
|
+
* ```
|
137
|
+
*/
|
138
|
+
isValid() {
|
139
|
+
return r.isValid(this._iban);
|
140
|
+
}
|
141
|
+
/**
|
142
|
+
* Convert the passed BBAN to an IBAN for this country specification.
|
143
|
+
* Please note that <i>"generation of the IBAN shall be the exclusive responsibility of the bank/branch servicing the account"</i>.
|
144
|
+
* This method implements the preferred algorithm described in http://en.wikipedia.org/wiki/International_Bank_Account_Number#Generating_IBAN_check_digits
|
145
|
+
*
|
146
|
+
* @param bban - the BBAN to convert to IBAN
|
147
|
+
* @returns an Iban class instance that holds the equivalent IBAN
|
148
|
+
*
|
149
|
+
* @example
|
150
|
+
* ```ts
|
151
|
+
* web3.eth.Iban.fromBban('ETHXREGGAVOFYORK');
|
152
|
+
* > Iban {_iban: "XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS"}
|
153
|
+
* ```
|
154
|
+
*/
|
155
|
+
static fromBban(t) {
|
156
|
+
const i = "XE", n = `0${(98 - this._mod9710(this._iso13616Prepare(`${i}00${t}`))).toString()}`.slice(-2);
|
157
|
+
return new r(`${i}${n}${t}`);
|
158
|
+
}
|
159
|
+
/**
|
160
|
+
* Should be used to create IBAN object for given institution and identifier
|
161
|
+
*
|
162
|
+
* @param options - an object holds the `institution` and the `identifier` which will be composed to create an `Iban` object from.
|
163
|
+
* @returns an Iban class instance that holds the equivalent IBAN
|
164
|
+
*
|
165
|
+
* @example
|
166
|
+
* ```ts
|
167
|
+
* web3.eth.Iban.createIndirect({
|
168
|
+
* institution: "XREG",
|
169
|
+
* identifier: "GAVOFYORK"
|
170
|
+
* });
|
171
|
+
* > Iban {_iban: "XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS"}
|
172
|
+
* ```
|
173
|
+
*/
|
174
|
+
static createIndirect(t) {
|
175
|
+
return r.fromBban(`ETH${t.institution}${t.identifier}`);
|
176
|
+
}
|
177
|
+
/**
|
178
|
+
* This method should be used to create iban object from an Ethereum address.
|
179
|
+
*
|
180
|
+
* @param address - an Ethereum address
|
181
|
+
* @returns an Iban class instance that holds the equivalent IBAN
|
182
|
+
*
|
183
|
+
* @example
|
184
|
+
* ```ts
|
185
|
+
* web3.eth.Iban.fromAddress("0x00c5496aEe77C1bA1f0854206A26DdA82a81D6D8");
|
186
|
+
* > Iban {_iban: "XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS"}
|
187
|
+
* ```
|
188
|
+
*/
|
189
|
+
static fromAddress(t) {
|
190
|
+
if (!m(t))
|
191
|
+
throw new a(t);
|
192
|
+
const e = BigInt(u(t)).toString(36), n = d(e, 15);
|
193
|
+
return r.fromBban(n.toUpperCase());
|
194
|
+
}
|
195
|
+
/**
|
196
|
+
* This method should be used to create IBAN address from an Ethereum address
|
197
|
+
*
|
198
|
+
* @param address - an Ethereum address
|
199
|
+
* @return the equivalent IBAN address
|
200
|
+
*
|
201
|
+
* @example
|
202
|
+
* ```ts
|
203
|
+
* web3.eth.Iban.toIban("0x00c5496aEe77C1bA1f0854206A26DdA82a81D6D8");
|
204
|
+
* > "XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS"
|
205
|
+
* ```
|
206
|
+
*/
|
207
|
+
static toIban(t) {
|
208
|
+
return r.fromAddress(t).toString();
|
209
|
+
}
|
210
|
+
/**
|
211
|
+
* Should be called to get client identifier within institution
|
212
|
+
*
|
213
|
+
* @return the client of the IBAN instance.
|
214
|
+
*
|
215
|
+
* @example
|
216
|
+
* ```ts
|
217
|
+
* const iban = new web3.eth.Iban("XE81ETHXREGGAVOFYORK");
|
218
|
+
* iban.client();
|
219
|
+
* > 'GAVOFYORK'
|
220
|
+
* ```
|
221
|
+
*/
|
222
|
+
client() {
|
223
|
+
return this.isIndirect() ? this._iban.slice(11) : "";
|
224
|
+
}
|
225
|
+
/**
|
226
|
+
* Returns the IBAN checksum of the early provided IBAN
|
227
|
+
*
|
228
|
+
* @example
|
229
|
+
* ```ts
|
230
|
+
* const iban = new web3.eth.Iban("XE81ETHXREGGAVOFYORK");
|
231
|
+
* iban.checksum();
|
232
|
+
* > "81"
|
233
|
+
* ```
|
234
|
+
*
|
235
|
+
*/
|
236
|
+
checksum() {
|
237
|
+
return this._iban.slice(2, 4);
|
238
|
+
}
|
239
|
+
/**
|
240
|
+
* Returns institution identifier from the early provided IBAN
|
241
|
+
*
|
242
|
+
* @example
|
243
|
+
* ```ts
|
244
|
+
* const iban = new web3.eth.Iban("XE81ETHXREGGAVOFYORK");
|
245
|
+
* iban.institution();
|
246
|
+
* > 'XREG'
|
247
|
+
* ```
|
248
|
+
*/
|
249
|
+
institution() {
|
250
|
+
return this.isIndirect() ? this._iban.slice(7, 11) : "";
|
251
|
+
}
|
252
|
+
/**
|
253
|
+
* Simply returns the early provided IBAN
|
254
|
+
*
|
255
|
+
* @example
|
256
|
+
* ```ts
|
257
|
+
* const iban = new web3.eth.Iban('XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS');
|
258
|
+
* iban.toString();
|
259
|
+
* > 'XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS'
|
260
|
+
* ```
|
261
|
+
*/
|
262
|
+
toString() {
|
263
|
+
return this._iban;
|
264
|
+
}
|
265
|
+
}
|
266
|
+
r._iso13616Prepare = (s) => {
|
267
|
+
const t = "A".charCodeAt(0), i = "Z".charCodeAt(0), e = s.toUpperCase();
|
268
|
+
return `${e.slice(4)}${e.slice(0, 4)}`.split("").map((c) => {
|
269
|
+
const o = c.charCodeAt(0);
|
270
|
+
return o >= t && o <= i ? o - t + 10 : c;
|
271
|
+
}).join("");
|
272
|
+
};
|
273
|
+
r._parseInt = (s, t) => [...s].reduce((i, e) => BigInt(parseInt(e, t)) + BigInt(t) * i, BigInt(0));
|
274
|
+
r._mod9710 = (s) => {
|
275
|
+
let t = s, i;
|
276
|
+
for (; t.length > 2; )
|
277
|
+
i = t.slice(0, 9), t = `${(parseInt(i, 10) % 97).toString()}${t.slice(i.length)}`;
|
278
|
+
return parseInt(t, 10) % 97;
|
279
|
+
};
|
280
|
+
r.toAddress = (s) => new r(s).toAddress();
|
281
|
+
export {
|
282
|
+
r as Iban
|
283
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");const f=require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");const n=require("./rpc_method_wrappers.cjs");var t=globalThis&&globalThis.__awaiter||function(d,e,r,i){function h(o){return o instanceof r?o:new r(function(c){c(o)})}return new(r||(r=Promise))(function(o,c){function q(u){try{s(i.next(u))}catch(a){c(a)}}function v(u){try{s(i.throw(u))}catch(a){c(a)}}function s(u){u.done?o(u.value):h(u.value).then(q,v)}s((i=i.apply(d,e||[])).next())})};class g extends f.Web3Context{getAccounts(){return t(this,void 0,void 0,function*(){return n.getAccounts(this.requestManager)})}newAccount(e){return t(this,void 0,void 0,function*(){return n.newAccount(this.requestManager,e)})}unlockAccount(e,r,i){return t(this,void 0,void 0,function*(){return n.unlockAccount(this.requestManager,e,r,i)})}lockAccount(e){return t(this,void 0,void 0,function*(){return n.lockAccount(this.requestManager,e)})}importRawKey(e,r){return t(this,void 0,void 0,function*(){return n.importRawKey(this.requestManager,e,r)})}sendTransaction(e,r){return t(this,void 0,void 0,function*(){return n.sendTransaction(this.requestManager,e,r)})}signTransaction(e,r){return t(this,void 0,void 0,function*(){return n.signTransaction(this.requestManager,e,r)})}sign(e,r,i){return t(this,void 0,void 0,function*(){return n.sign(this.requestManager,e,r,i)})}ecRecover(e,r){return t(this,void 0,void 0,function*(){return n.ecRecover(this.requestManager,e,r)})}}exports.Personal=g;
|
@@ -0,0 +1,265 @@
|
|
1
|
+
import "../../../web3-core/lib/esm/web3_config.js";
|
2
|
+
import "../../../web3-core/lib/esm/web3_request_manager.js";
|
3
|
+
import "../../../web3-core/lib/esm/web3_subscription_manager.js";
|
4
|
+
import "../../../web3-core/lib/esm/web3_subscriptions.js";
|
5
|
+
import { Web3Context as f } from "../../../web3-core/lib/esm/web3_context.js";
|
6
|
+
import "../../../web3-core/lib/esm/web3_batch_request.js";
|
7
|
+
import "../../../web3-types/lib/esm/data_format_types.js";
|
8
|
+
import "../../../web3-types/lib/esm/eth_types.js";
|
9
|
+
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
10
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
11
|
+
import "../../../web3-eth-iban/lib/esm/iban.js";
|
12
|
+
import "../../../web3-validator/lib/esm/formats.js";
|
13
|
+
import "../../../web3-validator/lib/esm/default_validator.js";
|
14
|
+
import "../../../web3-core/lib/esm/web3_promi_event.js";
|
15
|
+
import { getAccounts as v, newAccount as m, unlockAccount as g, lockAccount as l, importRawKey as q, sendTransaction as w, signTransaction as M, sign as A, ecRecover as T } from "./rpc_method_wrappers.js";
|
16
|
+
var i = globalThis && globalThis.__awaiter || function(a, t, n, r) {
|
17
|
+
function d(e) {
|
18
|
+
return e instanceof n ? e : new n(function(u) {
|
19
|
+
u(e);
|
20
|
+
});
|
21
|
+
}
|
22
|
+
return new (n || (n = Promise))(function(e, u) {
|
23
|
+
function h(o) {
|
24
|
+
try {
|
25
|
+
c(r.next(o));
|
26
|
+
} catch (s) {
|
27
|
+
u(s);
|
28
|
+
}
|
29
|
+
}
|
30
|
+
function p(o) {
|
31
|
+
try {
|
32
|
+
c(r.throw(o));
|
33
|
+
} catch (s) {
|
34
|
+
u(s);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
function c(o) {
|
38
|
+
o.done ? e(o.value) : d(o.value).then(h, p);
|
39
|
+
}
|
40
|
+
c((r = r.apply(a, t || [])).next());
|
41
|
+
});
|
42
|
+
};
|
43
|
+
class G extends f {
|
44
|
+
/**
|
45
|
+
*Returns a list of accounts the node controls by using the provider and calling the RPC method personal_listAccounts. Using `web3.eth.accounts.create()` will not add accounts into this list. For that use `web3.eth.personal.newAccount()`.
|
46
|
+
* @returns - An array of addresses controlled by the node.
|
47
|
+
* @example
|
48
|
+
* ```ts
|
49
|
+
* const accounts = await personal.getAccounts();
|
50
|
+
* console.log(accounts);
|
51
|
+
* >
|
52
|
+
* [
|
53
|
+
* '0x79D7BbaC53C9aF700d0B250e9AE789E503Fcd6AE',
|
54
|
+
* '0xe2597eB05CF9a87eB1309e86750C903EC38E527e',
|
55
|
+
* '0x7eD0e85B8E1E925600B4373e6d108F34AB38a401',
|
56
|
+
* '0xE4bEEf667408b99053dC147Ed19592aDa0d77F59',
|
57
|
+
* '0x7AB80aeB6bb488B7f6c41c58e83Ef248eB39c882',
|
58
|
+
* '0x12B1D9d74d73b1C3A245B19C1C5501c653aF1af9',
|
59
|
+
* '0x1a6075A263Ee140e00Dbf8E374Fc5A443d097894',
|
60
|
+
* '0x4FEC0A51024B13030D26E70904B066C6d41157A5',
|
61
|
+
* '0x03095dc4857BB26f3a4550c5651Df8b7f6b6B1Ef',
|
62
|
+
* '0xac0B9b6e8A17991cb172B2ABAF45Fb5eb769E540'
|
63
|
+
* ]
|
64
|
+
* ```
|
65
|
+
*/
|
66
|
+
getAccounts() {
|
67
|
+
return i(this, void 0, void 0, function* () {
|
68
|
+
return v(this.requestManager);
|
69
|
+
});
|
70
|
+
}
|
71
|
+
/**
|
72
|
+
* Creates a new account and returns its address.
|
73
|
+
* **_NOTE:_** This function sends a sensitive information like password. Never call this function over a unsecured Websocket or HTTP provider, as your password will be sent in plain text!
|
74
|
+
* @param password - The password to encrypt the account with.
|
75
|
+
* @returns - The address of the new account.
|
76
|
+
* @example
|
77
|
+
* ```ts
|
78
|
+
* const addr = await web3.eth.personal.newAccount('password');
|
79
|
+
* console.log(addr);
|
80
|
+
* > '0x1234567891011121314151617181920212223456'
|
81
|
+
* ```
|
82
|
+
*/
|
83
|
+
newAccount(t) {
|
84
|
+
return i(this, void 0, void 0, function* () {
|
85
|
+
return m(this.requestManager, t);
|
86
|
+
});
|
87
|
+
}
|
88
|
+
/**
|
89
|
+
* Unlocks an account for a given duration.
|
90
|
+
* @param address - The address of the account to unlock.
|
91
|
+
* @param password - The password of the account to unlock.
|
92
|
+
* @param unlockDuration - The duration in seconds to unlock the account for.
|
93
|
+
* @example
|
94
|
+
* ```ts
|
95
|
+
* await personal.unlockAccount(
|
96
|
+
* "0x0d4aa485ecbc499c70860feb7e5aaeaf5fd8172e",
|
97
|
+
* "123456",
|
98
|
+
* 600
|
99
|
+
* );
|
100
|
+
* ```
|
101
|
+
*/
|
102
|
+
unlockAccount(t, n, r) {
|
103
|
+
return i(this, void 0, void 0, function* () {
|
104
|
+
return g(this.requestManager, t, n, r);
|
105
|
+
});
|
106
|
+
}
|
107
|
+
/**
|
108
|
+
* Locks the given account
|
109
|
+
* @param address - The address of the account to lock.
|
110
|
+
* @returns - `true` if the account was locked, otherwise `false`.
|
111
|
+
* @example
|
112
|
+
* ```ts
|
113
|
+
* await personal.lockAccount(
|
114
|
+
* "0x0d4aa485ecbc499c70860feb7e5aaeaf5fd8172e"
|
115
|
+
* );
|
116
|
+
*/
|
117
|
+
lockAccount(t) {
|
118
|
+
return i(this, void 0, void 0, function* () {
|
119
|
+
return l(this.requestManager, t);
|
120
|
+
});
|
121
|
+
}
|
122
|
+
/**
|
123
|
+
* Imports the given private key into the key store, encrypting it with the passphrase.
|
124
|
+
* @param keyData - An unencrypted private key (hex string).
|
125
|
+
* @param passphrase - The password of the account
|
126
|
+
* @returns - The address of the new account.
|
127
|
+
* @example
|
128
|
+
* ```ts
|
129
|
+
* const accountAddress = await personal.importRawKey(
|
130
|
+
* "abe40cb08850da918ee951b237fa87946499b2d8643e4aa12b0610b050c731f6",
|
131
|
+
* "123456"
|
132
|
+
* );
|
133
|
+
*
|
134
|
+
* console.log(unlockTx);
|
135
|
+
* > 0x8727a8b34ec833154b72b62cac05d69f86eb6556
|
136
|
+
* ```
|
137
|
+
*/
|
138
|
+
importRawKey(t, n) {
|
139
|
+
return i(this, void 0, void 0, function* () {
|
140
|
+
return q(this.requestManager, t, n);
|
141
|
+
});
|
142
|
+
}
|
143
|
+
/**
|
144
|
+
* This method sends a transaction over the management API.
|
145
|
+
* **_NOTE:_** Sending your account password over an unsecured HTTP RPC connection is highly unsecure.
|
146
|
+
* @param tx - The transaction options
|
147
|
+
* @param passphrase - The passphrase of the current account
|
148
|
+
* @returns - The transaction hash
|
149
|
+
* @example
|
150
|
+
* ```ts
|
151
|
+
* const txHash = personal
|
152
|
+
* .sendTransaction({
|
153
|
+
* from: "0x0d4aa485ecbc499c70860feb7e5aaeaf5fd8172e",
|
154
|
+
* gasPrice: "20000000000",
|
155
|
+
* gas: "21000",
|
156
|
+
* to: "0x3535353535353535353535353535353535353535",
|
157
|
+
* value: "1000000",
|
158
|
+
* data: "",
|
159
|
+
* nonce: 0,
|
160
|
+
* },
|
161
|
+
* "123456");
|
162
|
+
*
|
163
|
+
* console.log(txHash);
|
164
|
+
* > 0x9445325c3c5638c9fe425b003b8c32f03e9f99d409555a650a6838ba712bb51b
|
165
|
+
* ```
|
166
|
+
*/
|
167
|
+
sendTransaction(t, n) {
|
168
|
+
return i(this, void 0, void 0, function* () {
|
169
|
+
return w(this.requestManager, t, n);
|
170
|
+
});
|
171
|
+
}
|
172
|
+
/**
|
173
|
+
* Signs a transaction. This account needs to be unlocked.
|
174
|
+
* **_NOTE:_** Sending your account password over an unsecured HTTP RPC connection is highly unsecure.
|
175
|
+
* @param tx - The transaction data to sign. See {@link sendTransaction} for more information.
|
176
|
+
* @param passphrase - The password of the `from` account, to sign the transaction with.
|
177
|
+
* @returns - The RLP encoded transaction. The `raw` property can be used to send the transaction using {@link sendSignedTransaction}.
|
178
|
+
* @example
|
179
|
+
* ```ts
|
180
|
+
* const tx = personal
|
181
|
+
* .signTransaction({
|
182
|
+
* from: "0x0d4aa485ecbc499c70860feb7e5aaeaf5fd8172e",
|
183
|
+
* gasPrice: "20000000000",
|
184
|
+
* gas: "21000",
|
185
|
+
* to: "0x3535353535353535353535353535353535353535",
|
186
|
+
* value: "1000000000000000000",
|
187
|
+
* data: "",
|
188
|
+
* nonce: 0,
|
189
|
+
* },
|
190
|
+
* "123456");
|
191
|
+
*
|
192
|
+
* console.log(tx);
|
193
|
+
*
|
194
|
+
* > {
|
195
|
+
* raw: '0xf86e808504a817c800825208943535353535353535353535353535353535353535880de0b6b3a764000080820a95a0c951c03238fe930e6e69ab9d6af9f29248a514048e44884f0e60c4de40de3526a038b71399bf0c8925749ab79e91ce6cd2fc068c84c18ff6a197b48c4cbef01e00',
|
196
|
+
* tx: {
|
197
|
+
* type: '0x0',
|
198
|
+
* nonce: '0x0',
|
199
|
+
* gasPrice: '0x4a817c800',
|
200
|
+
* maxPriorityFeePerGas: null,
|
201
|
+
* maxFeePerGas: null,
|
202
|
+
* gas: '0x5208',
|
203
|
+
* value: '0xde0b6b3a7640000',
|
204
|
+
* input: '0x',
|
205
|
+
* v: '0xa95',
|
206
|
+
* r: '0xc951c03238fe930e6e69ab9d6af9f29248a514048e44884f0e60c4de40de3526',
|
207
|
+
* s: '0x38b71399bf0c8925749ab79e91ce6cd2fc068c84c18ff6a197b48c4cbef01e00',
|
208
|
+
* to: '0x3535353535353535353535353535353535353535',
|
209
|
+
* hash: '0x65e3df790ab2a32068b13cff970b26445b8995229ae4abbed61bd996f09fce69'
|
210
|
+
* }
|
211
|
+
* }
|
212
|
+
* ```
|
213
|
+
*/
|
214
|
+
signTransaction(t, n) {
|
215
|
+
return i(this, void 0, void 0, function* () {
|
216
|
+
return M(this.requestManager, t, n);
|
217
|
+
});
|
218
|
+
}
|
219
|
+
/**
|
220
|
+
* Calculates an Ethereum specific signature with:
|
221
|
+
* sign(keccak256("\x19Ethereum Signed Message:\n" + dataToSign.length + dataToSign)))
|
222
|
+
* Adding a prefix to the message makes the calculated signature recognisable as an Ethereum specific signature.
|
223
|
+
*
|
224
|
+
* If you have the original message and the signed message, you can discover the signing account address using web3.eth.personal.ecRecover
|
225
|
+
* **_NOTE:_** Sending your account password over an unsecured HTTP RPC connection is highly unsecure.
|
226
|
+
* @param data - The data to sign.
|
227
|
+
* @param address - The address to sign with.
|
228
|
+
* @param passphrase - The passphrase to decrypt the account with.
|
229
|
+
* @returns - The signature.
|
230
|
+
* @example
|
231
|
+
* ```ts
|
232
|
+
* const sig = await personal .sign("Hello world", "0x0D4Aa485ECbC499c70860fEb7e5AaeAf5fd8172E", "123456")
|
233
|
+
* console.log(sig)
|
234
|
+
* > 0x5d21d01b3198ac34d0585a9d76c4d1c8123e5e06746c8962318a1c08ffb207596e6fce4a6f377b7c0fc98c5f646cd73438c80e8a1a95cbec55a84c2889dca0301b
|
235
|
+
* ```
|
236
|
+
*/
|
237
|
+
sign(t, n, r) {
|
238
|
+
return i(this, void 0, void 0, function* () {
|
239
|
+
return A(this.requestManager, t, n, r);
|
240
|
+
});
|
241
|
+
}
|
242
|
+
/**
|
243
|
+
* Recovers the account that signed the data.
|
244
|
+
* @param signedData - Data that was signed. If String it will be converted using {@link utf8ToHex}
|
245
|
+
* @param signature - The signature
|
246
|
+
* @returns - The address of the account that signed the data.
|
247
|
+
* @example
|
248
|
+
* ```ts
|
249
|
+
* const address = await personal.ecRecover(
|
250
|
+
* "Hello world",
|
251
|
+
* "0x5d21d01b3198ac34d0585a9d76c4d1c8123e5e06746c8962318a1c08ffb207596e6fce4a6f377b7c0fc98c5f646cd73438c80e8a1a95cbec55a84c2889dca0301b"
|
252
|
+
* );
|
253
|
+
* console.log(address);
|
254
|
+
* > 0x0d4aa485ecbc499c70860feb7e5aaeaf5fd8172e
|
255
|
+
* ```
|
256
|
+
*/
|
257
|
+
ecRecover(t, n) {
|
258
|
+
return i(this, void 0, void 0, function* () {
|
259
|
+
return T(this.requestManager, t, n);
|
260
|
+
});
|
261
|
+
}
|
262
|
+
}
|
263
|
+
export {
|
264
|
+
G as Personal
|
265
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../setimmediate/setImmediate.cjs");require("../../../web3-eth/lib/esm/web3_eth.cjs");const q=require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-validator/lib/esm/formats.cjs");const T=require("../../../web3-validator/lib/esm/validation/string.cjs"),u=require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-eth-abi/lib/esm/coders/base/number.cjs");require("../../../web3-eth/lib/esm/schemas.cjs");require("../../../web3-eth/lib/esm/constants.cjs");const A=require("../../../web3-eth/lib/esm/utils/format_transaction.cjs");require("../../../web3-eth/lib/esm/rpc_method_wrappers.cjs");require("../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.cjs");require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");require("../../../web3-eth/lib/esm/utils/transaction_builder.cjs");require("../../../web3-rpc-methods/lib/esm/eth_rpc_methods.cjs");require("../../../web3-rpc-methods/lib/esm/net_rpc_methods.cjs");const e=require("../../../web3-rpc-methods/lib/esm/personal_rpc_methods.cjs"),a=require("../../../web3-utils/lib/esm/converters.cjs");var o=globalThis&&globalThis.__awaiter||function(n,t,i,r){function v(s){return s instanceof i?s:new i(function(d){d(s)})}return new(i||(i=Promise))(function(s,d){function g(c){try{l(r.next(c))}catch(f){d(f)}}function m(c){try{l(r.throw(c))}catch(f){d(f)}}function l(c){c.done?s(c.value):v(c.value).then(g,m)}l((r=r.apply(n,t||[])).next())})};const _=n=>o(void 0,void 0,void 0,function*(){return(yield e.getAccounts(n)).map(a.toChecksumAddress)}),y=(n,t)=>o(void 0,void 0,void 0,function*(){u.validator.validate(["string"],[t]);const i=yield e.newAccount(n,t);return a.toChecksumAddress(i)}),w=(n,t,i,r)=>o(void 0,void 0,void 0,function*(){return u.validator.validate(["address","string","uint"],[t,i,r]),e.unlockAccount(n,t,i,r)}),x=(n,t)=>o(void 0,void 0,void 0,function*(){return u.validator.validate(["address"],[t]),e.lockAccount(n,t)}),R=(n,t,i)=>o(void 0,void 0,void 0,function*(){return u.validator.validate(["string","string"],[t,i]),e.importRawKey(n,t,i)}),h=(n,t,i)=>o(void 0,void 0,void 0,function*(){const r=A.formatTransaction(t,q.ETH_DATA_FORMAT);return e.sendTransaction(n,r,i)}),k=(n,t,i)=>o(void 0,void 0,void 0,function*(){const r=A.formatTransaction(t,q.ETH_DATA_FORMAT);return e.signTransaction(n,r,i)}),p=(n,t,i,r)=>o(void 0,void 0,void 0,function*(){u.validator.validate(["string","address","string"],[t,i,r]);const v=T.isHexStrict(t)?t:a.utf8ToHex(t);return e.sign(n,v,i,r)}),H=(n,t,i)=>o(void 0,void 0,void 0,function*(){u.validator.validate(["string","string"],[t,i]);const r=T.isHexStrict(t)?t:a.utf8ToHex(t);return e.ecRecover(n,r,i)});exports.ecRecover=H;exports.getAccounts=_;exports.importRawKey=R;exports.lockAccount=x;exports.newAccount=y;exports.sendTransaction=h;exports.sign=p;exports.signTransaction=k;exports.unlockAccount=w;
|
@@ -0,0 +1,93 @@
|
|
1
|
+
import "../../../setimmediate/setImmediate.js";
|
2
|
+
import "../../../web3-eth/lib/esm/web3_eth.js";
|
3
|
+
import { ETH_DATA_FORMAT as a } from "../../../web3-types/lib/esm/data_format_types.js";
|
4
|
+
import "../../../web3-types/lib/esm/eth_types.js";
|
5
|
+
import "../../../web3-types/lib/esm/web3_base_provider.js";
|
6
|
+
import "../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
7
|
+
import "../../../web3-validator/lib/esm/formats.js";
|
8
|
+
import { isHexStrict as p } from "../../../web3-validator/lib/esm/validation/string.js";
|
9
|
+
import { validator as e } from "../../../web3-validator/lib/esm/default_validator.js";
|
10
|
+
import "../../../web3-eth-abi/lib/esm/coders/base/number.js";
|
11
|
+
import "../../../web3-eth/lib/esm/schemas.js";
|
12
|
+
import "../../../web3-eth/lib/esm/constants.js";
|
13
|
+
import { formatTransaction as f } from "../../../web3-eth/lib/esm/utils/format_transaction.js";
|
14
|
+
import "../../../web3-eth/lib/esm/rpc_method_wrappers.js";
|
15
|
+
import "../../../web3-eth/lib/esm/utils/prepare_transaction_for_signing.js";
|
16
|
+
import "../../../web3-core/lib/esm/web3_config.js";
|
17
|
+
import "../../../web3-core/lib/esm/web3_request_manager.js";
|
18
|
+
import "../../../web3-core/lib/esm/web3_subscription_manager.js";
|
19
|
+
import "../../../web3-core/lib/esm/web3_subscriptions.js";
|
20
|
+
import "../../../web3-core/lib/esm/web3_context.js";
|
21
|
+
import "../../../web3-core/lib/esm/web3_batch_request.js";
|
22
|
+
import "../../../web3-eth-iban/lib/esm/iban.js";
|
23
|
+
import "../../../web3-core/lib/esm/web3_promi_event.js";
|
24
|
+
import "../../../web3-eth/lib/esm/utils/transaction_builder.js";
|
25
|
+
import "../../../web3-rpc-methods/lib/esm/eth_rpc_methods.js";
|
26
|
+
import "../../../web3-rpc-methods/lib/esm/net_rpc_methods.js";
|
27
|
+
import { getAccounts as w, newAccount as $, unlockAccount as x, lockAccount as y, importRawKey as R, sendTransaction as _, signTransaction as h, sign as k, ecRecover as H } from "../../../web3-rpc-methods/lib/esm/personal_rpc_methods.js";
|
28
|
+
import { toChecksumAddress as l, utf8ToHex as A } from "../../../web3-utils/lib/esm/converters.js";
|
29
|
+
var r = globalThis && globalThis.__awaiter || function(i, o, t, n) {
|
30
|
+
function m(s) {
|
31
|
+
return s instanceof t ? s : new t(function(u) {
|
32
|
+
u(s);
|
33
|
+
});
|
34
|
+
}
|
35
|
+
return new (t || (t = Promise))(function(s, u) {
|
36
|
+
function T(c) {
|
37
|
+
try {
|
38
|
+
d(n.next(c));
|
39
|
+
} catch (v) {
|
40
|
+
u(v);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
function g(c) {
|
44
|
+
try {
|
45
|
+
d(n.throw(c));
|
46
|
+
} catch (v) {
|
47
|
+
u(v);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
function d(c) {
|
51
|
+
c.done ? s(c.value) : m(c.value).then(T, g);
|
52
|
+
}
|
53
|
+
d((n = n.apply(i, o || [])).next());
|
54
|
+
});
|
55
|
+
};
|
56
|
+
const io = (i) => r(void 0, void 0, void 0, function* () {
|
57
|
+
return (yield w(i)).map(l);
|
58
|
+
}), no = (i, o) => r(void 0, void 0, void 0, function* () {
|
59
|
+
e.validate(["string"], [o]);
|
60
|
+
const t = yield $(i, o);
|
61
|
+
return l(t);
|
62
|
+
}), ro = (i, o, t, n) => r(void 0, void 0, void 0, function* () {
|
63
|
+
return e.validate(["address", "string", "uint"], [o, t, n]), x(i, o, t, n);
|
64
|
+
}), co = (i, o) => r(void 0, void 0, void 0, function* () {
|
65
|
+
return e.validate(["address"], [o]), y(i, o);
|
66
|
+
}), eo = (i, o, t) => r(void 0, void 0, void 0, function* () {
|
67
|
+
return e.validate(["string", "string"], [o, t]), R(i, o, t);
|
68
|
+
}), so = (i, o, t) => r(void 0, void 0, void 0, function* () {
|
69
|
+
const n = f(o, a);
|
70
|
+
return _(i, n, t);
|
71
|
+
}), uo = (i, o, t) => r(void 0, void 0, void 0, function* () {
|
72
|
+
const n = f(o, a);
|
73
|
+
return h(i, n, t);
|
74
|
+
}), mo = (i, o, t, n) => r(void 0, void 0, void 0, function* () {
|
75
|
+
e.validate(["string", "address", "string"], [o, t, n]);
|
76
|
+
const m = p(o) ? o : A(o);
|
77
|
+
return k(i, m, t, n);
|
78
|
+
}), vo = (i, o, t) => r(void 0, void 0, void 0, function* () {
|
79
|
+
e.validate(["string", "string"], [o, t]);
|
80
|
+
const n = p(o) ? o : A(o);
|
81
|
+
return H(i, n, t);
|
82
|
+
});
|
83
|
+
export {
|
84
|
+
vo as ecRecover,
|
85
|
+
io as getAccounts,
|
86
|
+
eo as importRawKey,
|
87
|
+
co as lockAccount,
|
88
|
+
no as newAccount,
|
89
|
+
so as sendTransaction,
|
90
|
+
mo as sign,
|
91
|
+
uo as signTransaction,
|
92
|
+
ro as unlockAccount
|
93
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../web3-core/lib/esm/web3_config.cjs");require("../../../web3-core/lib/esm/web3_request_manager.cjs");require("../../../web3-core/lib/esm/web3_subscription_manager.cjs");require("../../../web3-core/lib/esm/web3_subscriptions.cjs");const l=require("../../../web3-core/lib/esm/web3_context.cjs");require("../../../web3-core/lib/esm/web3_batch_request.cjs");const f=require("../../../web3-types/lib/esm/data_format_types.cjs");require("../../../web3-types/lib/esm/eth_types.cjs");require("../../../web3-types/lib/esm/web3_base_provider.cjs");require("../../../web3-errors/lib/esm/errors/rpc_errors.cjs");require("../../../web3-eth-iban/lib/esm/iban.cjs");require("../../../web3-validator/lib/esm/formats.cjs");require("../../../web3-validator/lib/esm/default_validator.cjs");require("../../../web3-core/lib/esm/web3_promi_event.cjs");const s=require("./rpc_method_wrappers.cjs");var d=globalThis&&globalThis.__awaiter||function(a,t,i,n){function q(r){return r instanceof i?r:new i(function(u){u(r)})}return new(i||(i=Promise))(function(r,u){function h(e){try{o(n.next(e))}catch(c){u(c)}}function _(e){try{o(n.throw(e))}catch(c){u(c)}}function o(e){e.done?r(e.value):q(e.value).then(h,_)}o((n=n.apply(a,t||[])).next())})};class p extends l.Web3Context{getId(t=f.DEFAULT_RETURN_FORMAT){return d(this,void 0,void 0,function*(){return s.getId(this,t)})}getPeerCount(t=f.DEFAULT_RETURN_FORMAT){return d(this,void 0,void 0,function*(){return s.getPeerCount(this,t)})}isListening(){return d(this,void 0,void 0,function*(){return s.isListening(this)})}}exports.Net=p;
|