@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,90 @@
|
|
1
|
+
const e = {
|
2
|
+
name: "istanbul",
|
3
|
+
comment: "HF targeted for December 2019 following the Constantinople/Petersburg HF",
|
4
|
+
url: "https://eips.ethereum.org/EIPS/eip-1679",
|
5
|
+
status: "Final",
|
6
|
+
gasConfig: {},
|
7
|
+
gasPrices: {
|
8
|
+
blake2Round: {
|
9
|
+
v: 1,
|
10
|
+
d: "Gas cost per round for the Blake2 F precompile"
|
11
|
+
},
|
12
|
+
ecAdd: {
|
13
|
+
v: 150,
|
14
|
+
d: "Gas costs for curve addition precompile"
|
15
|
+
},
|
16
|
+
ecMul: {
|
17
|
+
v: 6e3,
|
18
|
+
d: "Gas costs for curve multiplication precompile"
|
19
|
+
},
|
20
|
+
ecPairing: {
|
21
|
+
v: 45e3,
|
22
|
+
d: "Base gas costs for curve pairing precompile"
|
23
|
+
},
|
24
|
+
ecPairingWord: {
|
25
|
+
v: 34e3,
|
26
|
+
d: "Gas costs regarding curve pairing precompile input length"
|
27
|
+
},
|
28
|
+
txDataNonZero: {
|
29
|
+
v: 16,
|
30
|
+
d: "Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"
|
31
|
+
},
|
32
|
+
sstoreSentryGasEIP2200: {
|
33
|
+
v: 2300,
|
34
|
+
d: "Minimum gas required to be present for an SSTORE call, not consumed"
|
35
|
+
},
|
36
|
+
sstoreNoopGasEIP2200: {
|
37
|
+
v: 800,
|
38
|
+
d: "Once per SSTORE operation if the value doesn't change"
|
39
|
+
},
|
40
|
+
sstoreDirtyGasEIP2200: {
|
41
|
+
v: 800,
|
42
|
+
d: "Once per SSTORE operation if a dirty value is changed"
|
43
|
+
},
|
44
|
+
sstoreInitGasEIP2200: {
|
45
|
+
v: 2e4,
|
46
|
+
d: "Once per SSTORE operation from clean zero to non-zero"
|
47
|
+
},
|
48
|
+
sstoreInitRefundEIP2200: {
|
49
|
+
v: 19200,
|
50
|
+
d: "Once per SSTORE operation for resetting to the original zero value"
|
51
|
+
},
|
52
|
+
sstoreCleanGasEIP2200: {
|
53
|
+
v: 5e3,
|
54
|
+
d: "Once per SSTORE operation from clean non-zero to something else"
|
55
|
+
},
|
56
|
+
sstoreCleanRefundEIP2200: {
|
57
|
+
v: 4200,
|
58
|
+
d: "Once per SSTORE operation for resetting to the original non-zero value"
|
59
|
+
},
|
60
|
+
sstoreClearRefundEIP2200: {
|
61
|
+
v: 15e3,
|
62
|
+
d: "Once per SSTORE operation for clearing an originally existing storage slot"
|
63
|
+
},
|
64
|
+
balance: {
|
65
|
+
v: 700,
|
66
|
+
d: "Base fee of the BALANCE opcode"
|
67
|
+
},
|
68
|
+
extcodehash: {
|
69
|
+
v: 700,
|
70
|
+
d: "Base fee of the EXTCODEHASH opcode"
|
71
|
+
},
|
72
|
+
chainid: {
|
73
|
+
v: 2,
|
74
|
+
d: "Base fee of the CHAINID opcode"
|
75
|
+
},
|
76
|
+
selfbalance: {
|
77
|
+
v: 5,
|
78
|
+
d: "Base fee of the SELFBALANCE opcode"
|
79
|
+
},
|
80
|
+
sload: {
|
81
|
+
v: 800,
|
82
|
+
d: "Base fee of the SLOAD opcode"
|
83
|
+
}
|
84
|
+
},
|
85
|
+
vm: {},
|
86
|
+
pow: {}
|
87
|
+
};
|
88
|
+
export {
|
89
|
+
e as default
|
90
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"london",comment:"HF targeted for July 2021 following the Berlin fork",url:"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/london.md",status:"Final",eips:[1559,3198,3529,3541]};exports.default=e;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
const e = {
|
2
|
+
name: "london",
|
3
|
+
comment: "HF targeted for July 2021 following the Berlin fork",
|
4
|
+
url: "https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/london.md",
|
5
|
+
status: "Final",
|
6
|
+
eips: [1559, 3198, 3529, 3541]
|
7
|
+
};
|
8
|
+
export {
|
9
|
+
e as default
|
10
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"merge",comment:"Hardfork to upgrade the consensus mechanism to Proof-of-Stake",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/merge.md",status:"Final",consensus:{type:"pos",algorithm:"casper",casper:{}},eips:[3675,4399]};exports.default=e;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
const e = {
|
2
|
+
name: "merge",
|
3
|
+
comment: "Hardfork to upgrade the consensus mechanism to Proof-of-Stake",
|
4
|
+
url: "https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/merge.md",
|
5
|
+
status: "Final",
|
6
|
+
consensus: {
|
7
|
+
type: "pos",
|
8
|
+
algorithm: "casper",
|
9
|
+
casper: {}
|
10
|
+
},
|
11
|
+
eips: [3675, 4399]
|
12
|
+
};
|
13
|
+
export {
|
14
|
+
e as default
|
15
|
+
};
|
package/dist/node_modules/web3-eth-accounts/lib/esm/common/hardforks/mergeForkIdTransition.cjs
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"mergeForkIdTransition",comment:"Pre-merge hardfork to fork off non-upgraded clients",url:"https://eips.ethereum.org/EIPS/eip-3675",status:"Draft",eips:[]};exports.default=e;
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"muirGlacier",comment:"HF to delay the difficulty bomb",url:"https://eips.ethereum.org/EIPS/eip-2384",status:"Final",gasConfig:{},gasPrices:{},vm:{},pow:{difficultyBombDelay:{v:9e6,d:"the amount of blocks to delay the difficulty bomb with"}}};exports.default=e;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
const t = {
|
2
|
+
name: "muirGlacier",
|
3
|
+
comment: "HF to delay the difficulty bomb",
|
4
|
+
url: "https://eips.ethereum.org/EIPS/eip-2384",
|
5
|
+
status: "Final",
|
6
|
+
gasConfig: {},
|
7
|
+
gasPrices: {},
|
8
|
+
vm: {},
|
9
|
+
pow: {
|
10
|
+
difficultyBombDelay: {
|
11
|
+
v: 9e6,
|
12
|
+
d: "the amount of blocks to delay the difficulty bomb with"
|
13
|
+
}
|
14
|
+
}
|
15
|
+
};
|
16
|
+
export {
|
17
|
+
t as default
|
18
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"petersburg",comment:"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople",url:"https://eips.ethereum.org/EIPS/eip-1716",status:"Final",gasConfig:{},gasPrices:{netSstoreNoopGas:{v:null,d:"Removed along EIP-1283"},netSstoreInitGas:{v:null,d:"Removed along EIP-1283"},netSstoreCleanGas:{v:null,d:"Removed along EIP-1283"},netSstoreDirtyGas:{v:null,d:"Removed along EIP-1283"},netSstoreClearRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetClearRefund:{v:null,d:"Removed along EIP-1283"}},vm:{},pow:{}};exports.default=e;
|
@@ -0,0 +1,42 @@
|
|
1
|
+
const e = {
|
2
|
+
name: "petersburg",
|
3
|
+
comment: "Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople",
|
4
|
+
url: "https://eips.ethereum.org/EIPS/eip-1716",
|
5
|
+
status: "Final",
|
6
|
+
gasConfig: {},
|
7
|
+
gasPrices: {
|
8
|
+
netSstoreNoopGas: {
|
9
|
+
v: null,
|
10
|
+
d: "Removed along EIP-1283"
|
11
|
+
},
|
12
|
+
netSstoreInitGas: {
|
13
|
+
v: null,
|
14
|
+
d: "Removed along EIP-1283"
|
15
|
+
},
|
16
|
+
netSstoreCleanGas: {
|
17
|
+
v: null,
|
18
|
+
d: "Removed along EIP-1283"
|
19
|
+
},
|
20
|
+
netSstoreDirtyGas: {
|
21
|
+
v: null,
|
22
|
+
d: "Removed along EIP-1283"
|
23
|
+
},
|
24
|
+
netSstoreClearRefund: {
|
25
|
+
v: null,
|
26
|
+
d: "Removed along EIP-1283"
|
27
|
+
},
|
28
|
+
netSstoreResetRefund: {
|
29
|
+
v: null,
|
30
|
+
d: "Removed along EIP-1283"
|
31
|
+
},
|
32
|
+
netSstoreResetClearRefund: {
|
33
|
+
v: null,
|
34
|
+
d: "Removed along EIP-1283"
|
35
|
+
}
|
36
|
+
},
|
37
|
+
vm: {},
|
38
|
+
pow: {}
|
39
|
+
};
|
40
|
+
export {
|
41
|
+
e as default
|
42
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"shanghai",comment:"Next feature hardfork after the merge hardfork having withdrawals, warm coinbase, push0, limit/meter initcode",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/shanghai.md",status:"Final",eips:[3651,3855,3860,4895]};exports.default=e;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
const e = {
|
2
|
+
name: "shanghai",
|
3
|
+
comment: "Next feature hardfork after the merge hardfork having withdrawals, warm coinbase, push0, limit/meter initcode",
|
4
|
+
url: "https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/shanghai.md",
|
5
|
+
status: "Final",
|
6
|
+
eips: [3651, 3855, 3860, 4895]
|
7
|
+
};
|
8
|
+
export {
|
9
|
+
e as default
|
10
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"spuriousDragon",comment:"HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit",url:"https://eips.ethereum.org/EIPS/eip-607",status:"Final",gasConfig:{},gasPrices:{expByte:{v:50,d:"Times ceil(log256(exponent)) for the EXP instruction"}},vm:{maxCodeSize:{v:24576,d:"Maximum length of contract code"}},pow:{}};exports.default=e;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
const e = {
|
2
|
+
name: "spuriousDragon",
|
3
|
+
comment: "HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit",
|
4
|
+
url: "https://eips.ethereum.org/EIPS/eip-607",
|
5
|
+
status: "Final",
|
6
|
+
gasConfig: {},
|
7
|
+
gasPrices: {
|
8
|
+
expByte: {
|
9
|
+
v: 50,
|
10
|
+
d: "Times ceil(log256(exponent)) for the EXP instruction"
|
11
|
+
}
|
12
|
+
},
|
13
|
+
vm: {
|
14
|
+
maxCodeSize: {
|
15
|
+
v: 24576,
|
16
|
+
d: "Maximum length of contract code"
|
17
|
+
}
|
18
|
+
},
|
19
|
+
pow: {}
|
20
|
+
};
|
21
|
+
export {
|
22
|
+
e as default
|
23
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={name:"tangerineWhistle",comment:"Hardfork with gas cost changes for IO-heavy operations",url:"https://eips.ethereum.org/EIPS/eip-608",status:"Final",gasConfig:{},gasPrices:{sload:{v:200,d:"Once per SLOAD operation"},call:{v:700,d:"Once per CALL operation & message call transaction"},extcodesize:{v:700,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:700,d:"Base fee of the EXTCODECOPY opcode"},balance:{v:400,d:"Base fee of the BALANCE opcode"},delegatecall:{v:700,d:"Base fee of the DELEGATECALL opcode"},callcode:{v:700,d:"Base fee of the CALLCODE opcode"},selfdestruct:{v:5e3,d:"Base fee of the SELFDESTRUCT opcode"}},vm:{},pow:{}};exports.default=e;
|
@@ -0,0 +1,46 @@
|
|
1
|
+
const e = {
|
2
|
+
name: "tangerineWhistle",
|
3
|
+
comment: "Hardfork with gas cost changes for IO-heavy operations",
|
4
|
+
url: "https://eips.ethereum.org/EIPS/eip-608",
|
5
|
+
status: "Final",
|
6
|
+
gasConfig: {},
|
7
|
+
gasPrices: {
|
8
|
+
sload: {
|
9
|
+
v: 200,
|
10
|
+
d: "Once per SLOAD operation"
|
11
|
+
},
|
12
|
+
call: {
|
13
|
+
v: 700,
|
14
|
+
d: "Once per CALL operation & message call transaction"
|
15
|
+
},
|
16
|
+
extcodesize: {
|
17
|
+
v: 700,
|
18
|
+
d: "Base fee of the EXTCODESIZE opcode"
|
19
|
+
},
|
20
|
+
extcodecopy: {
|
21
|
+
v: 700,
|
22
|
+
d: "Base fee of the EXTCODECOPY opcode"
|
23
|
+
},
|
24
|
+
balance: {
|
25
|
+
v: 400,
|
26
|
+
d: "Base fee of the BALANCE opcode"
|
27
|
+
},
|
28
|
+
delegatecall: {
|
29
|
+
v: 700,
|
30
|
+
d: "Base fee of the DELEGATECALL opcode"
|
31
|
+
},
|
32
|
+
callcode: {
|
33
|
+
v: 700,
|
34
|
+
d: "Base fee of the CALLCODE opcode"
|
35
|
+
},
|
36
|
+
selfdestruct: {
|
37
|
+
v: 5e3,
|
38
|
+
d: "Base fee of the SELFDESTRUCT opcode"
|
39
|
+
}
|
40
|
+
},
|
41
|
+
vm: {},
|
42
|
+
pow: {}
|
43
|
+
};
|
44
|
+
export {
|
45
|
+
e as default
|
46
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TypeOutput=void 0;(function(r){r[r.Number=0]="Number",r[r.BigInt=1]="BigInt",r[r.Uint8Array=2]="Uint8Array",r[r.PrefixedHexString=3]="PrefixedHexString"})(exports.TypeOutput||(exports.TypeOutput={}));
|
@@ -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 h=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 L=require("../tx/constants.cjs"),o=require("./enums.cjs"),k=require("./types.cjs"),p=require("../../../../web3-utils/lib/esm/converters.cjs"),I=e=>{if(typeof e!="string")throw new Error(`[stripHexPrefix] input must be type 'string', received ${typeof e}`);return h.isHexPrefixed(e)?e.slice(2):e};function R(e){return!e||e==="0x0"?"0x0000000000000000":h.isHexPrefixed(e)?`0x${I(e).padStart(16,"0")}`:`0x${e.padStart(16,"0")}`}const S=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Received an invalid integer type: ${e}`);return`0x${e.toString(16)}`};function D(e,r=!0){var a,i;const{name:x,config:n,difficulty:E,mixHash:M,gasLimit:N,coinbase:_,baseFeePerGas:G}=e;let{extraData:T,timestamp:d,nonce:m}=e;const v=Number(d),{chainId:B}=n;if(T===""&&(T="0x"),h.isHexPrefixed(d)||(d=S(parseInt(d))),m.length!==18&&(m=R(m)),n.eip155Block!==n.eip158Block)throw new Error("EIP155 block number must equal EIP 158 block number since both are part of SpuriousDragon hardfork and the client only supports activating the full hardfork");const s={name:x,chainId:B,networkId:B,genesis:{timestamp:d,gasLimit:parseInt(N),difficulty:parseInt(E),nonce:m,extraData:T,mixHash:M,coinbase:_,baseFeePerGas:G},hardfork:void 0,hardforks:[],bootstrapNodes:[],consensus:n.clique!==void 0?{type:"poa",algorithm:"clique",clique:{period:(a=n.clique.period)!==null&&a!==void 0?a:n.clique.blockperiodseconds,epoch:(i=n.clique.epoch)!==null&&i!==void 0?i:n.clique.epochlength}}:{type:"pow",algorithm:"ethash",ethash:{}}},l={[o.Hardfork.Homestead]:{name:"homesteadBlock"},[o.Hardfork.Dao]:{name:"daoForkBlock"},[o.Hardfork.TangerineWhistle]:{name:"eip150Block"},[o.Hardfork.SpuriousDragon]:{name:"eip155Block"},[o.Hardfork.Byzantium]:{name:"byzantiumBlock"},[o.Hardfork.Constantinople]:{name:"constantinopleBlock"},[o.Hardfork.Petersburg]:{name:"petersburgBlock"},[o.Hardfork.Istanbul]:{name:"istanbulBlock"},[o.Hardfork.MuirGlacier]:{name:"muirGlacierBlock"},[o.Hardfork.Berlin]:{name:"berlinBlock"},[o.Hardfork.London]:{name:"londonBlock"},[o.Hardfork.MergeForkIdTransition]:{name:"mergeForkBlock",postMerge:r},[o.Hardfork.Shanghai]:{name:"shanghaiTime",postMerge:!0,isTimestamp:!0},[o.Hardfork.ShardingForkDev]:{name:"shardingForkTime",postMerge:!0,isTimestamp:!0}},b=Object.keys(l).reduce((t,f)=>(t[l[f].name]=f,t),{}),F=Object.keys(n).filter(t=>b[t]!==void 0&&n[t]!==void 0&&n[t]!==null);if(s.hardforks=F.map(t=>({name:b[t],block:l[b[t]].isTimestamp===!0||typeof n[t]!="number"?null:n[t],timestamp:l[b[t]].isTimestamp===!0&&typeof n[t]=="number"?n[t]:void 0})).filter(t=>t.block!==null||t.timestamp!==void 0),s.hardforks.sort((t,f)=>{var c,u;return((c=t.block)!==null&&c!==void 0?c:1/0)-((u=f.block)!==null&&u!==void 0?u:1/0)}),s.hardforks.sort((t,f)=>{var c,u;return((c=t.timestamp)!==null&&c!==void 0?c:v)-((u=f.timestamp)!==null&&u!==void 0?u:v)}),n.terminalTotalDifficulty!==void 0){const t={name:o.Hardfork.Merge,ttd:n.terminalTotalDifficulty,block:null},f=s.hardforks.findIndex(c=>{var u;return((u=l[c.name])===null||u===void 0?void 0:u.postMerge)===!0});f!==-1?s.hardforks.splice(f,0,t):s.hardforks.push(t)}const w=s.hardforks.length>0?s.hardforks.slice(-1)[0]:void 0;return s.hardfork=w==null?void 0:w.name,s.hardforks.unshift({name:o.Hardfork.Chainstart,block:0}),s}function O(e,r,a){try{if(["config","difficulty","gasLimit","alloc"].some(i=>!(i in e)))throw new Error("Invalid format, expected geth genesis fields missing");return r!==void 0&&(e.name=r),D(e,a)}catch(i){throw new Error(`Error parsing parameters file: ${i.message}`)}}function A(e){let r=e;if(typeof r!="string")throw new Error(`[padToEven] value must be type 'string', received ${typeof r}`);return r.length%2&&(r=`0${r}`),r}const C=function(e){const r=S(e);return p.hexToBytes(`0x${A(r.slice(2))}`)},g=function(e){if(e==null)return new Uint8Array;if(e instanceof Uint8Array)return e;if(Array.isArray(e))return Uint8Array.from(e);if(typeof e=="string"){if(!h.isHexString(e))throw new Error(`Cannot convert string to Uint8Array. only supports 0x-prefixed hex strings and this string was given: ${e}`);return p.hexToBytes(A(I(e)))}if(typeof e=="number")return g(p.numberToHex(e));if(typeof e=="bigint"){if(e<BigInt(0))throw new Error(`Cannot convert negative bigint to Uint8Array. Given: ${e}`);let r=e.toString(16);return r.length%2&&(r=`0${r}`),g(`0x${r}`)}if(e.toArray)return Uint8Array.from(e.toArray());throw new Error("invalid type")};function y(e){const r=p.bytesToHex(e);return BigInt(r==="0x"?0:r)}function U(e){return g(`0x${e.toString(16)}`)}const q=function(e){return new Uint8Array(e).fill(0)},z=function(e,r,a){const i=q(r);return a?e.length<r?(i.set(e),i):e.subarray(0,r):e.length<r?(i.set(e,r-e.length),i):e.subarray(-r)};function H(e){if(!(e instanceof Uint8Array)){const r=`This method only supports Uint8Array but input was: ${e}`;throw new Error(r)}}const K=function(e,r){return H(e),z(e,r,!1)};function $(e){let r=e[0];for(;e.length>0&&r.toString()==="0";)e=e.slice(1),r=e[0];return e}const P=function(e){return H(e),$(e)},X=e=>`0x${e.toString(16)}`;function Z(e){return P(U(e))}function V(e,r){return e===BigInt(0)||e===BigInt(1)?e:r===void 0?e-BigInt(27):e-(r*BigInt(2)+BigInt(35))}function W(e){return e===BigInt(0)||e===BigInt(1)}const j=function(e,r,a,i,x){const n=V(r,x);if(!W(n))throw new Error("Invalid signature v value");return new L.secp256k1.Signature(y(a),y(i)).addRecoveryBit(Number(n)).recoverPublicKey(e).toRawBytes(!1).slice(1)};function J(e,r){if(e===null)return null;if(e===void 0)return;if(typeof e=="string"&&!h.isHexString(e))throw new Error(`A string must be provided with a 0x-prefix, given: ${e}`);if(typeof e=="number"&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const a=g(e);switch(r){case k.TypeOutput.Uint8Array:return a;case k.TypeOutput.BigInt:return y(a);case k.TypeOutput.Number:{const i=y(a);if(i>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(i)}case k.TypeOutput.PrefixedHexString:return p.bytesToHex(a);default:throw new Error("unknown outputType")}}exports.assertIsUint8Array=H;exports.bigIntToHex=X;exports.bigIntToUint8Array=U;exports.bigIntToUnpaddedUint8Array=Z;exports.ecrecover=j;exports.intToUint8Array=C;exports.padToEven=A;exports.parseGethGenesis=O;exports.setLengthLeft=K;exports.stripHexPrefix=I;exports.stripZeros=$;exports.toType=J;exports.toUint8Array=g;exports.uint8ArrayToBigInt=y;exports.unpadUint8Array=P;exports.zeros=q;
|
@@ -0,0 +1,277 @@
|
|
1
|
+
import "../../../../web3-errors/lib/esm/errors/rpc_errors.js";
|
2
|
+
import "../../../../web3-validator/lib/esm/formats.js";
|
3
|
+
import { isHexString as A, isHexPrefixed as x } from "../../../../web3-validator/lib/esm/validation/string.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 { secp256k1 as F } from "../tx/constants.js";
|
9
|
+
import { Hardfork as o } from "./enums.js";
|
10
|
+
import { TypeOutput as g } from "./types.js";
|
11
|
+
import { hexToBytes as B, numberToHex as R, bytesToHex as v } from "../../../../web3-utils/lib/esm/converters.js";
|
12
|
+
const S = (e) => {
|
13
|
+
if (typeof e != "string")
|
14
|
+
throw new Error(`[stripHexPrefix] input must be type 'string', received ${typeof e}`);
|
15
|
+
return x(e) ? e.slice(2) : e;
|
16
|
+
};
|
17
|
+
function q(e) {
|
18
|
+
return !e || e === "0x0" ? "0x0000000000000000" : x(e) ? `0x${S(e).padStart(16, "0")}` : `0x${e.padStart(16, "0")}`;
|
19
|
+
}
|
20
|
+
const U = function(e) {
|
21
|
+
if (!Number.isSafeInteger(e) || e < 0)
|
22
|
+
throw new Error(`Received an invalid integer type: ${e}`);
|
23
|
+
return `0x${e.toString(16)}`;
|
24
|
+
};
|
25
|
+
function D(e, r = !0) {
|
26
|
+
var a, i;
|
27
|
+
const { name: b, config: n, difficulty: I, mixHash: M, gasLimit: N, coinbase: _, baseFeePerGas: P } = e;
|
28
|
+
let { extraData: k, timestamp: c, nonce: p } = e;
|
29
|
+
const T = Number(c), { chainId: E } = n;
|
30
|
+
if (k === "" && (k = "0x"), x(c) || (c = U(parseInt(c))), p.length !== 18 && (p = q(p)), n.eip155Block !== n.eip158Block)
|
31
|
+
throw new Error("EIP155 block number must equal EIP 158 block number since both are part of SpuriousDragon hardfork and the client only supports activating the full hardfork");
|
32
|
+
const s = {
|
33
|
+
name: b,
|
34
|
+
chainId: E,
|
35
|
+
networkId: E,
|
36
|
+
genesis: {
|
37
|
+
timestamp: c,
|
38
|
+
// eslint-disable-next-line radix
|
39
|
+
gasLimit: parseInt(N),
|
40
|
+
// eslint-disable-next-line radix
|
41
|
+
difficulty: parseInt(I),
|
42
|
+
nonce: p,
|
43
|
+
extraData: k,
|
44
|
+
mixHash: M,
|
45
|
+
coinbase: _,
|
46
|
+
baseFeePerGas: P
|
47
|
+
},
|
48
|
+
hardfork: void 0,
|
49
|
+
hardforks: [],
|
50
|
+
bootstrapNodes: [],
|
51
|
+
consensus: (
|
52
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
53
|
+
n.clique !== void 0 ? {
|
54
|
+
type: "poa",
|
55
|
+
algorithm: "clique",
|
56
|
+
clique: {
|
57
|
+
// The recent geth genesis seems to be using blockperiodseconds
|
58
|
+
// and epochlength for clique specification
|
59
|
+
// see: https://hackmd.io/PqZgMpnkSWCWv5joJoFymQ
|
60
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
|
61
|
+
period: (a = n.clique.period) !== null && a !== void 0 ? a : n.clique.blockperiodseconds,
|
62
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
|
63
|
+
epoch: (i = n.clique.epoch) !== null && i !== void 0 ? i : n.clique.epochlength
|
64
|
+
}
|
65
|
+
} : {
|
66
|
+
type: "pow",
|
67
|
+
algorithm: "ethash",
|
68
|
+
ethash: {}
|
69
|
+
}
|
70
|
+
)
|
71
|
+
}, d = {
|
72
|
+
[o.Homestead]: { name: "homesteadBlock" },
|
73
|
+
[o.Dao]: { name: "daoForkBlock" },
|
74
|
+
[o.TangerineWhistle]: { name: "eip150Block" },
|
75
|
+
[o.SpuriousDragon]: { name: "eip155Block" },
|
76
|
+
[o.Byzantium]: { name: "byzantiumBlock" },
|
77
|
+
[o.Constantinople]: { name: "constantinopleBlock" },
|
78
|
+
[o.Petersburg]: { name: "petersburgBlock" },
|
79
|
+
[o.Istanbul]: { name: "istanbulBlock" },
|
80
|
+
[o.MuirGlacier]: { name: "muirGlacierBlock" },
|
81
|
+
[o.Berlin]: { name: "berlinBlock" },
|
82
|
+
[o.London]: { name: "londonBlock" },
|
83
|
+
[o.MergeForkIdTransition]: {
|
84
|
+
name: "mergeForkBlock",
|
85
|
+
postMerge: r
|
86
|
+
},
|
87
|
+
[o.Shanghai]: { name: "shanghaiTime", postMerge: !0, isTimestamp: !0 },
|
88
|
+
[o.ShardingForkDev]: {
|
89
|
+
name: "shardingForkTime",
|
90
|
+
postMerge: !0,
|
91
|
+
isTimestamp: !0
|
92
|
+
}
|
93
|
+
}, m = Object.keys(d).reduce((t, f) => (t[d[f].name] = f, t), {}), G = Object.keys(n).filter(
|
94
|
+
// eslint-disable-next-line no-null/no-null, @typescript-eslint/no-unsafe-member-access
|
95
|
+
(t) => m[t] !== void 0 && n[t] !== void 0 && n[t] !== null
|
96
|
+
);
|
97
|
+
if (s.hardforks = G.map((t) => ({
|
98
|
+
name: m[t],
|
99
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
100
|
+
block: (
|
101
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
102
|
+
d[m[t]].isTimestamp === !0 || // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
103
|
+
typeof n[t] != "number" ? (
|
104
|
+
// eslint-disable-next-line no-null/no-null
|
105
|
+
null
|
106
|
+
) : (
|
107
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
108
|
+
n[t]
|
109
|
+
)
|
110
|
+
),
|
111
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
112
|
+
timestamp: (
|
113
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
114
|
+
d[m[t]].isTimestamp === !0 && // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
115
|
+
typeof n[t] == "number" ? (
|
116
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
117
|
+
n[t]
|
118
|
+
) : void 0
|
119
|
+
)
|
120
|
+
})).filter((t) => t.block !== null || t.timestamp !== void 0), s.hardforks.sort((t, f) => {
|
121
|
+
var l, u;
|
122
|
+
return ((l = t.block) !== null && l !== void 0 ? l : 1 / 0) - ((u = f.block) !== null && u !== void 0 ? u : 1 / 0);
|
123
|
+
}), s.hardforks.sort((t, f) => {
|
124
|
+
var l, u;
|
125
|
+
return ((l = t.timestamp) !== null && l !== void 0 ? l : T) - ((u = f.timestamp) !== null && u !== void 0 ? u : T);
|
126
|
+
}), n.terminalTotalDifficulty !== void 0) {
|
127
|
+
const t = {
|
128
|
+
name: o.Merge,
|
129
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-unsafe-assignment
|
130
|
+
ttd: n.terminalTotalDifficulty,
|
131
|
+
// eslint-disable-next-line no-null/no-null
|
132
|
+
block: null
|
133
|
+
}, f = s.hardforks.findIndex(
|
134
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
135
|
+
(l) => {
|
136
|
+
var u;
|
137
|
+
return ((u = d[l.name]) === null || u === void 0 ? void 0 : u.postMerge) === !0;
|
138
|
+
}
|
139
|
+
);
|
140
|
+
f !== -1 ? s.hardforks.splice(f, 0, t) : s.hardforks.push(t);
|
141
|
+
}
|
142
|
+
const w = s.hardforks.length > 0 ? s.hardforks.slice(-1)[0] : void 0;
|
143
|
+
return s.hardfork = w == null ? void 0 : w.name, s.hardforks.unshift({ name: o.Chainstart, block: 0 }), s;
|
144
|
+
}
|
145
|
+
function oe(e, r, a) {
|
146
|
+
try {
|
147
|
+
if (["config", "difficulty", "gasLimit", "alloc"].some((i) => !(i in e)))
|
148
|
+
throw new Error("Invalid format, expected geth genesis fields missing");
|
149
|
+
return r !== void 0 && (e.name = r), D(e, a);
|
150
|
+
} catch (i) {
|
151
|
+
throw new Error(`Error parsing parameters file: ${i.message}`);
|
152
|
+
}
|
153
|
+
}
|
154
|
+
function $(e) {
|
155
|
+
let r = e;
|
156
|
+
if (typeof r != "string")
|
157
|
+
throw new Error(`[padToEven] value must be type 'string', received ${typeof r}`);
|
158
|
+
return r.length % 2 && (r = `0${r}`), r;
|
159
|
+
}
|
160
|
+
const ae = function(e) {
|
161
|
+
const r = U(e);
|
162
|
+
return B(`0x${$(r.slice(2))}`);
|
163
|
+
}, h = function(e) {
|
164
|
+
if (e == null)
|
165
|
+
return new Uint8Array();
|
166
|
+
if (e instanceof Uint8Array)
|
167
|
+
return e;
|
168
|
+
if (Array.isArray(e))
|
169
|
+
return Uint8Array.from(e);
|
170
|
+
if (typeof e == "string") {
|
171
|
+
if (!A(e))
|
172
|
+
throw new Error(`Cannot convert string to Uint8Array. only supports 0x-prefixed hex strings and this string was given: ${e}`);
|
173
|
+
return B($(S(e)));
|
174
|
+
}
|
175
|
+
if (typeof e == "number")
|
176
|
+
return h(R(e));
|
177
|
+
if (typeof e == "bigint") {
|
178
|
+
if (e < BigInt(0))
|
179
|
+
throw new Error(`Cannot convert negative bigint to Uint8Array. Given: ${e}`);
|
180
|
+
let r = e.toString(16);
|
181
|
+
return r.length % 2 && (r = `0${r}`), h(`0x${r}`);
|
182
|
+
}
|
183
|
+
if (e.toArray)
|
184
|
+
return Uint8Array.from(e.toArray());
|
185
|
+
throw new Error("invalid type");
|
186
|
+
};
|
187
|
+
function y(e) {
|
188
|
+
const r = v(e);
|
189
|
+
return BigInt(r === "0x" ? 0 : r);
|
190
|
+
}
|
191
|
+
function L(e) {
|
192
|
+
return h(`0x${e.toString(16)}`);
|
193
|
+
}
|
194
|
+
const C = function(e) {
|
195
|
+
return new Uint8Array(e).fill(0);
|
196
|
+
}, z = function(e, r, a) {
|
197
|
+
const i = C(r);
|
198
|
+
return a ? e.length < r ? (i.set(e), i) : e.subarray(0, r) : e.length < r ? (i.set(e, r - e.length), i) : e.subarray(-r);
|
199
|
+
};
|
200
|
+
function H(e) {
|
201
|
+
if (!(e instanceof Uint8Array)) {
|
202
|
+
const r = `This method only supports Uint8Array but input was: ${e}`;
|
203
|
+
throw new Error(r);
|
204
|
+
}
|
205
|
+
}
|
206
|
+
const se = function(e, r) {
|
207
|
+
return H(e), z(e, r, !1);
|
208
|
+
};
|
209
|
+
function K(e) {
|
210
|
+
let r = e[0];
|
211
|
+
for (; e.length > 0 && r.toString() === "0"; )
|
212
|
+
e = e.slice(1), r = e[0];
|
213
|
+
return e;
|
214
|
+
}
|
215
|
+
const O = function(e) {
|
216
|
+
return H(e), K(e);
|
217
|
+
}, ue = (e) => `0x${e.toString(16)}`;
|
218
|
+
function fe(e) {
|
219
|
+
return O(L(e));
|
220
|
+
}
|
221
|
+
function X(e, r) {
|
222
|
+
return e === BigInt(0) || e === BigInt(1) ? e : r === void 0 ? e - BigInt(27) : e - (r * BigInt(2) + BigInt(35));
|
223
|
+
}
|
224
|
+
function V(e) {
|
225
|
+
return e === BigInt(0) || e === BigInt(1);
|
226
|
+
}
|
227
|
+
const le = function(e, r, a, i, b) {
|
228
|
+
const n = X(r, b);
|
229
|
+
if (!V(n))
|
230
|
+
throw new Error("Invalid signature v value");
|
231
|
+
return new F.Signature(y(a), y(i)).addRecoveryBit(Number(n)).recoverPublicKey(e).toRawBytes(!1).slice(1);
|
232
|
+
};
|
233
|
+
function ce(e, r) {
|
234
|
+
if (e === null)
|
235
|
+
return null;
|
236
|
+
if (e === void 0)
|
237
|
+
return;
|
238
|
+
if (typeof e == "string" && !A(e))
|
239
|
+
throw new Error(`A string must be provided with a 0x-prefix, given: ${e}`);
|
240
|
+
if (typeof e == "number" && !Number.isSafeInteger(e))
|
241
|
+
throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");
|
242
|
+
const a = h(e);
|
243
|
+
switch (r) {
|
244
|
+
case g.Uint8Array:
|
245
|
+
return a;
|
246
|
+
case g.BigInt:
|
247
|
+
return y(a);
|
248
|
+
case g.Number: {
|
249
|
+
const i = y(a);
|
250
|
+
if (i > BigInt(Number.MAX_SAFE_INTEGER))
|
251
|
+
throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");
|
252
|
+
return Number(i);
|
253
|
+
}
|
254
|
+
case g.PrefixedHexString:
|
255
|
+
return v(a);
|
256
|
+
default:
|
257
|
+
throw new Error("unknown outputType");
|
258
|
+
}
|
259
|
+
}
|
260
|
+
export {
|
261
|
+
H as assertIsUint8Array,
|
262
|
+
ue as bigIntToHex,
|
263
|
+
L as bigIntToUint8Array,
|
264
|
+
fe as bigIntToUnpaddedUint8Array,
|
265
|
+
le as ecrecover,
|
266
|
+
ae as intToUint8Array,
|
267
|
+
$ as padToEven,
|
268
|
+
oe as parseGethGenesis,
|
269
|
+
se as setLengthLeft,
|
270
|
+
S as stripHexPrefix,
|
271
|
+
K as stripZeros,
|
272
|
+
ce as toType,
|
273
|
+
h as toUint8Array,
|
274
|
+
y as uint8ArrayToBigInt,
|
275
|
+
O as unpadUint8Array,
|
276
|
+
C as zeros
|
277
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={type:"object",required:["crypto","id","version","address"],properties:{crypto:{type:"object",required:["cipher","ciphertext","cipherparams","kdf","kdfparams","mac"],properties:{cipher:{type:"string"},ciphertext:{type:"string"},cipherparams:{type:"object"},kdf:{type:"string"},kdfparams:{type:"object"},salt:{type:"string"},mac:{type:"string"}}},id:{type:"string"},version:{type:"number"},address:{type:"string"}}};exports.keyStoreSchema=e;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
const e = {
|
2
|
+
type: "object",
|
3
|
+
required: ["crypto", "id", "version", "address"],
|
4
|
+
properties: {
|
5
|
+
crypto: {
|
6
|
+
type: "object",
|
7
|
+
required: ["cipher", "ciphertext", "cipherparams", "kdf", "kdfparams", "mac"],
|
8
|
+
properties: {
|
9
|
+
cipher: { type: "string" },
|
10
|
+
ciphertext: { type: "string" },
|
11
|
+
cipherparams: { type: "object" },
|
12
|
+
kdf: { type: "string" },
|
13
|
+
kdfparams: { type: "object" },
|
14
|
+
salt: { type: "string" },
|
15
|
+
mac: { type: "string" }
|
16
|
+
}
|
17
|
+
},
|
18
|
+
id: { type: "string" },
|
19
|
+
version: { type: "number" },
|
20
|
+
address: { type: "string" }
|
21
|
+
}
|
22
|
+
};
|
23
|
+
export {
|
24
|
+
e as keyStoreSchema
|
25
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../ethereum-cryptography/esm/keccak.cjs"),i=require("./constants.cjs"),s=require("../common/utils.cjs"),u=require("../../../../web3-utils/lib/esm/uint8array.cjs"),c=require("../../../../web3-utils/lib/esm/converters.cjs");class t{constructor(e){if(e.length!==20)throw new Error("Invalid address length");this.buf=e}static zero(){return new t(s.zeros(20))}equals(e){return u.uint8ArrayEquals(this.buf,e.buf)}isZero(){return this.equals(t.zero())}toString(){return c.bytesToHex(this.buf)}toArray(){return this.buf}static publicToAddress(e,n=!1){let r=e;if(s.assertIsUint8Array(r),n&&r.length!==64&&(r=i.secp256k1.ProjectivePoint.fromHex(r).toRawBytes(!1).slice(1)),r.length!==64)throw new Error("Expected pubKey to be of length 64");return o.keccak256(r).slice(-20)}}exports.Address=t;
|