ox 0.1.7 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/_cjs/core/Abi.js +0 -2
- package/_cjs/core/Abi.js.map +1 -1
- package/_cjs/core/AbiConstructor.js +0 -5
- package/_cjs/core/AbiConstructor.js.map +1 -1
- package/_cjs/core/AbiError.js +0 -5
- package/_cjs/core/AbiError.js.map +1 -1
- package/_cjs/core/AbiEvent.js +0 -7
- package/_cjs/core/AbiEvent.js.map +1 -1
- package/_cjs/core/AbiFunction.js +0 -5
- package/_cjs/core/AbiFunction.js.map +1 -1
- package/_cjs/core/AbiItem.js +0 -6
- package/_cjs/core/AbiItem.js.map +1 -1
- package/_cjs/core/AbiParameters.js +0 -5
- package/_cjs/core/AbiParameters.js.map +1 -1
- package/_cjs/core/Address.js +0 -5
- package/_cjs/core/Address.js.map +1 -1
- package/_cjs/core/AesGcm.js +0 -4
- package/_cjs/core/AesGcm.js.map +1 -1
- package/_cjs/core/Authorization.js +0 -11
- package/_cjs/core/Authorization.js.map +1 -1
- package/_cjs/core/Base58.js +0 -6
- package/_cjs/core/Base58.js.map +1 -1
- package/_cjs/core/Base64.js +0 -6
- package/_cjs/core/Base64.js.map +1 -1
- package/_cjs/core/Blobs.js +0 -11
- package/_cjs/core/Blobs.js.map +1 -1
- package/_cjs/core/Block.js +0 -2
- package/_cjs/core/Block.js.map +1 -1
- package/_cjs/core/Bloom.js +0 -2
- package/_cjs/core/Bloom.js.map +1 -1
- package/_cjs/core/Bls.js +0 -3
- package/_cjs/core/Bls.js.map +1 -1
- package/_cjs/core/BlsPoint.js +0 -4
- package/_cjs/core/BlsPoint.js.map +1 -1
- package/_cjs/core/Bytes.js +0 -22
- package/_cjs/core/Bytes.js.map +1 -1
- package/_cjs/core/ContractAddress.js +0 -3
- package/_cjs/core/ContractAddress.js.map +1 -1
- package/_cjs/core/Ens.js +0 -3
- package/_cjs/core/Ens.js.map +1 -1
- package/_cjs/core/Filter.js +0 -2
- package/_cjs/core/Filter.js.map +1 -1
- package/_cjs/core/Hash.js +0 -4
- package/_cjs/core/Hash.js.map +1 -1
- package/_cjs/core/HdKey.js +0 -4
- package/_cjs/core/HdKey.js.map +1 -1
- package/_cjs/core/Hex.js +0 -21
- package/_cjs/core/Hex.js.map +1 -1
- package/_cjs/core/Json.js +0 -2
- package/_cjs/core/Json.js.map +1 -1
- package/_cjs/core/Kzg.js +0 -1
- package/_cjs/core/Kzg.js.map +1 -1
- package/_cjs/core/Log.js +0 -2
- package/_cjs/core/Log.js.map +1 -1
- package/_cjs/core/Mnemonic.js +0 -5
- package/_cjs/core/Mnemonic.js.map +1 -1
- package/_cjs/core/P256.js +0 -3
- package/_cjs/core/P256.js.map +1 -1
- package/_cjs/core/PersonalMessage.js +0 -2
- package/_cjs/core/PersonalMessage.js.map +1 -1
- package/_cjs/core/Provider.js +0 -2
- package/_cjs/core/Provider.js.map +1 -1
- package/_cjs/core/PublicKey.js +0 -6
- package/_cjs/core/PublicKey.js.map +1 -1
- package/_cjs/core/Rlp.js +0 -6
- package/_cjs/core/Rlp.js.map +1 -1
- package/_cjs/core/RpcRequest.js +0 -2
- package/_cjs/core/RpcRequest.js.map +1 -1
- package/_cjs/core/RpcResponse.js +0 -1
- package/_cjs/core/RpcResponse.js.map +1 -1
- package/_cjs/core/RpcTransport.js +0 -1
- package/_cjs/core/RpcTransport.js.map +1 -1
- package/_cjs/core/Secp256k1.js +0 -4
- package/_cjs/core/Secp256k1.js.map +1 -1
- package/_cjs/core/Signature.js +0 -17
- package/_cjs/core/Signature.js.map +1 -1
- package/_cjs/core/Siwe.js +0 -1
- package/_cjs/core/Siwe.js.map +1 -1
- package/_cjs/core/Transaction.js +0 -2
- package/_cjs/core/Transaction.js.map +1 -1
- package/_cjs/core/TransactionEnvelopeEip1559.js +0 -8
- package/_cjs/core/TransactionEnvelopeEip1559.js.map +1 -1
- package/_cjs/core/TransactionEnvelopeEip2930.js +0 -8
- package/_cjs/core/TransactionEnvelopeEip2930.js.map +1 -1
- package/_cjs/core/TransactionEnvelopeEip4844.js +0 -8
- package/_cjs/core/TransactionEnvelopeEip4844.js.map +1 -1
- package/_cjs/core/TransactionEnvelopeEip7702.js +0 -7
- package/_cjs/core/TransactionEnvelopeEip7702.js.map +1 -1
- package/_cjs/core/TransactionEnvelopeLegacy.js +0 -8
- package/_cjs/core/TransactionEnvelopeLegacy.js.map +1 -1
- package/_cjs/core/TransactionReceipt.js +0 -2
- package/_cjs/core/TransactionReceipt.js.map +1 -1
- package/_cjs/core/TransactionRequest.js +0 -1
- package/_cjs/core/TransactionRequest.js.map +1 -1
- package/_cjs/core/TypedData.js +19 -12
- package/_cjs/core/TypedData.js.map +1 -1
- package/_cjs/core/ValidatorData.js +0 -2
- package/_cjs/core/ValidatorData.js.map +1 -1
- package/_cjs/core/Value.js +0 -6
- package/_cjs/core/Value.js.map +1 -1
- package/_cjs/core/WebAuthnP256.js +2 -9
- package/_cjs/core/WebAuthnP256.js.map +1 -1
- package/_cjs/core/WebCryptoP256.js +0 -3
- package/_cjs/core/WebCryptoP256.js.map +1 -1
- package/_cjs/core/Withdrawal.js +0 -2
- package/_cjs/core/Withdrawal.js.map +1 -1
- package/_cjs/core/internal/base58.js +0 -1
- package/_cjs/core/internal/base58.js.map +1 -1
- package/_cjs/core/internal/promise.js +0 -1
- package/_cjs/core/internal/promise.js.map +1 -1
- package/_cjs/core/internal/rpcTransport.js +0 -1
- package/_cjs/core/internal/rpcTransport.js.map +1 -1
- package/_cjs/core/internal/webauthn.js +36 -8
- package/_cjs/core/internal/webauthn.js.map +1 -1
- package/_cjs/version.js +1 -1
- package/_esm/core/Abi.js +0 -6
- package/_esm/core/Abi.js.map +1 -1
- package/_esm/core/AbiConstructor.js +0 -15
- package/_esm/core/AbiConstructor.js.map +1 -1
- package/_esm/core/AbiError.js +0 -14
- package/_esm/core/AbiError.js.map +1 -1
- package/_esm/core/AbiEvent.js +0 -20
- package/_esm/core/AbiEvent.js.map +1 -1
- package/_esm/core/AbiFunction.js +0 -14
- package/_esm/core/AbiFunction.js.map +1 -1
- package/_esm/core/AbiItem.js +0 -16
- package/_esm/core/AbiItem.js.map +1 -1
- package/_esm/core/AbiParameters.js +0 -14
- package/_esm/core/AbiParameters.js.map +1 -1
- package/_esm/core/Address.js +0 -13
- package/_esm/core/Address.js.map +1 -1
- package/_esm/core/AesGcm.js +0 -12
- package/_esm/core/AesGcm.js.map +1 -1
- package/_esm/core/Authorization.js +0 -33
- package/_esm/core/Authorization.js.map +1 -1
- package/_esm/core/Base58.js +0 -18
- package/_esm/core/Base58.js.map +1 -1
- package/_esm/core/Base64.js +0 -18
- package/_esm/core/Base64.js.map +1 -1
- package/_esm/core/Blobs.js +0 -28
- package/_esm/core/Blobs.js.map +1 -1
- package/_esm/core/Block.js +0 -6
- package/_esm/core/Block.js.map +1 -1
- package/_esm/core/Bloom.js +0 -5
- package/_esm/core/Bloom.js.map +1 -1
- package/_esm/core/Bls.js +0 -8
- package/_esm/core/Bls.js.map +1 -1
- package/_esm/core/BlsPoint.js +0 -8
- package/_esm/core/BlsPoint.js.map +1 -1
- package/_esm/core/Bytes.js +0 -53
- package/_esm/core/Bytes.js.map +1 -1
- package/_esm/core/ContractAddress.js +0 -9
- package/_esm/core/ContractAddress.js.map +1 -1
- package/_esm/core/Ens.js +0 -9
- package/_esm/core/Ens.js.map +1 -1
- package/_esm/core/Filter.js +0 -6
- package/_esm/core/Filter.js.map +1 -1
- package/_esm/core/Hash.js +0 -8
- package/_esm/core/Hash.js.map +1 -1
- package/_esm/core/HdKey.js +0 -11
- package/_esm/core/HdKey.js.map +1 -1
- package/_esm/core/Hex.js +0 -45
- package/_esm/core/Hex.js.map +1 -1
- package/_esm/core/Json.js +0 -6
- package/_esm/core/Json.js.map +1 -1
- package/_esm/core/Kzg.js +0 -2
- package/_esm/core/Kzg.js.map +1 -1
- package/_esm/core/Log.js +0 -6
- package/_esm/core/Log.js.map +1 -1
- package/_esm/core/Mnemonic.js +0 -15
- package/_esm/core/Mnemonic.js.map +1 -1
- package/_esm/core/P256.js +0 -7
- package/_esm/core/P256.js.map +1 -1
- package/_esm/core/PersonalMessage.js +0 -4
- package/_esm/core/PersonalMessage.js.map +1 -1
- package/_esm/core/Provider.js +0 -5
- package/_esm/core/Provider.js.map +1 -1
- package/_esm/core/PublicKey.js +0 -18
- package/_esm/core/PublicKey.js.map +1 -1
- package/_esm/core/Rlp.js +0 -18
- package/_esm/core/Rlp.js.map +1 -1
- package/_esm/core/RpcRequest.js +0 -6
- package/_esm/core/RpcRequest.js.map +1 -1
- package/_esm/core/RpcResponse.js +0 -3
- package/_esm/core/RpcResponse.js.map +1 -1
- package/_esm/core/RpcTransport.js +0 -3
- package/_esm/core/RpcTransport.js.map +1 -1
- package/_esm/core/Secp256k1.js +0 -12
- package/_esm/core/Secp256k1.js.map +1 -1
- package/_esm/core/Signature.js +0 -49
- package/_esm/core/Signature.js.map +1 -1
- package/_esm/core/Siwe.js +0 -3
- package/_esm/core/Siwe.js.map +1 -1
- package/_esm/core/Transaction.js +0 -6
- package/_esm/core/Transaction.js.map +1 -1
- package/_esm/core/TransactionEnvelopeEip1559.js +0 -22
- package/_esm/core/TransactionEnvelopeEip1559.js.map +1 -1
- package/_esm/core/TransactionEnvelopeEip2930.js +0 -23
- package/_esm/core/TransactionEnvelopeEip2930.js.map +1 -1
- package/_esm/core/TransactionEnvelopeEip4844.js +0 -24
- package/_esm/core/TransactionEnvelopeEip4844.js.map +1 -1
- package/_esm/core/TransactionEnvelopeEip7702.js +0 -21
- package/_esm/core/TransactionEnvelopeEip7702.js.map +1 -1
- package/_esm/core/TransactionEnvelopeLegacy.js +0 -24
- package/_esm/core/TransactionEnvelopeLegacy.js.map +1 -1
- package/_esm/core/TransactionReceipt.js +0 -6
- package/_esm/core/TransactionReceipt.js.map +1 -1
- package/_esm/core/TransactionRequest.js +0 -3
- package/_esm/core/TransactionRequest.js.map +1 -1
- package/_esm/core/TypedData.js +18 -26
- package/_esm/core/TypedData.js.map +1 -1
- package/_esm/core/ValidatorData.js +0 -4
- package/_esm/core/ValidatorData.js.map +1 -1
- package/_esm/core/Value.js +0 -12
- package/_esm/core/Value.js.map +1 -1
- package/_esm/core/WebAuthnP256.js +2 -23
- package/_esm/core/WebAuthnP256.js.map +1 -1
- package/_esm/core/WebCryptoP256.js +0 -9
- package/_esm/core/WebCryptoP256.js.map +1 -1
- package/_esm/core/Withdrawal.js +0 -6
- package/_esm/core/Withdrawal.js.map +1 -1
- package/_esm/core/internal/base58.js +0 -3
- package/_esm/core/internal/base58.js.map +1 -1
- package/_esm/core/internal/promise.js +0 -3
- package/_esm/core/internal/promise.js.map +1 -1
- package/_esm/core/internal/rpcTransport.js +0 -4
- package/_esm/core/internal/rpcTransport.js.map +1 -1
- package/_esm/core/internal/webauthn.js +40 -8
- package/_esm/core/internal/webauthn.js.map +1 -1
- package/_esm/version.js +1 -1
- package/_types/core/Abi.d.ts +0 -6
- package/_types/core/Abi.d.ts.map +1 -1
- package/_types/core/AbiConstructor.d.ts +0 -15
- package/_types/core/AbiConstructor.d.ts.map +1 -1
- package/_types/core/AbiError.d.ts +1 -16
- package/_types/core/AbiError.d.ts.map +1 -1
- package/_types/core/AbiEvent.d.ts +0 -21
- package/_types/core/AbiEvent.d.ts.map +1 -1
- package/_types/core/AbiFunction.d.ts +0 -15
- package/_types/core/AbiFunction.d.ts.map +1 -1
- package/_types/core/AbiItem.d.ts +0 -18
- package/_types/core/AbiItem.d.ts.map +1 -1
- package/_types/core/AbiParameters.d.ts +0 -15
- package/_types/core/AbiParameters.d.ts.map +1 -1
- package/_types/core/Address.d.ts +0 -15
- package/_types/core/Address.d.ts.map +1 -1
- package/_types/core/AesGcm.d.ts +0 -9
- package/_types/core/AesGcm.d.ts.map +1 -1
- package/_types/core/Authorization.d.ts +0 -33
- package/_types/core/Authorization.d.ts.map +1 -1
- package/_types/core/Base58.d.ts +0 -18
- package/_types/core/Base58.d.ts.map +1 -1
- package/_types/core/Base64.d.ts +0 -18
- package/_types/core/Base64.d.ts.map +1 -1
- package/_types/core/Blobs.d.ts +0 -33
- package/_types/core/Blobs.d.ts.map +1 -1
- package/_types/core/Block.d.ts +0 -6
- package/_types/core/Block.d.ts.map +1 -1
- package/_types/core/Bloom.d.ts +0 -6
- package/_types/core/Bloom.d.ts.map +1 -1
- package/_types/core/Bls.d.ts +0 -9
- package/_types/core/Bls.d.ts.map +1 -1
- package/_types/core/BlsPoint.d.ts +0 -12
- package/_types/core/BlsPoint.d.ts.map +1 -1
- package/_types/core/Bytes.d.ts +0 -66
- package/_types/core/Bytes.d.ts.map +1 -1
- package/_types/core/ContractAddress.d.ts +0 -9
- package/_types/core/ContractAddress.d.ts.map +1 -1
- package/_types/core/Ens.d.ts +0 -9
- package/_types/core/Ens.d.ts.map +1 -1
- package/_types/core/Filter.d.ts +0 -6
- package/_types/core/Filter.d.ts.map +1 -1
- package/_types/core/Hash.d.ts +0 -12
- package/_types/core/Hash.d.ts.map +1 -1
- package/_types/core/HdKey.d.ts +0 -12
- package/_types/core/HdKey.d.ts.map +1 -1
- package/_types/core/Hex.d.ts +0 -63
- package/_types/core/Hex.d.ts.map +1 -1
- package/_types/core/Json.d.ts +0 -6
- package/_types/core/Json.d.ts.map +1 -1
- package/_types/core/Kzg.d.ts +0 -3
- package/_types/core/Kzg.d.ts.map +1 -1
- package/_types/core/Log.d.ts +0 -6
- package/_types/core/Log.d.ts.map +1 -1
- package/_types/core/Mnemonic.d.ts +0 -15
- package/_types/core/Mnemonic.d.ts.map +1 -1
- package/_types/core/P256.d.ts +0 -9
- package/_types/core/P256.d.ts.map +1 -1
- package/_types/core/PersonalMessage.d.ts +0 -6
- package/_types/core/PersonalMessage.d.ts.map +1 -1
- package/_types/core/Provider.d.ts +0 -6
- package/_types/core/Provider.d.ts.map +1 -1
- package/_types/core/PublicKey.d.ts +0 -18
- package/_types/core/PublicKey.d.ts.map +1 -1
- package/_types/core/Rlp.d.ts +1 -18
- package/_types/core/Rlp.d.ts.map +1 -1
- package/_types/core/RpcRequest.d.ts +0 -6
- package/_types/core/RpcRequest.d.ts.map +1 -1
- package/_types/core/RpcResponse.d.ts +0 -3
- package/_types/core/RpcResponse.d.ts.map +1 -1
- package/_types/core/RpcTransport.d.ts +0 -3
- package/_types/core/RpcTransport.d.ts.map +1 -1
- package/_types/core/Secp256k1.d.ts +0 -12
- package/_types/core/Secp256k1.d.ts.map +1 -1
- package/_types/core/Signature.d.ts +0 -51
- package/_types/core/Signature.d.ts.map +1 -1
- package/_types/core/Siwe.d.ts +0 -3
- package/_types/core/Siwe.d.ts.map +1 -1
- package/_types/core/Transaction.d.ts +0 -6
- package/_types/core/Transaction.d.ts.map +1 -1
- package/_types/core/TransactionEnvelopeEip1559.d.ts +0 -24
- package/_types/core/TransactionEnvelopeEip1559.d.ts.map +1 -1
- package/_types/core/TransactionEnvelopeEip2930.d.ts +0 -24
- package/_types/core/TransactionEnvelopeEip2930.d.ts.map +1 -1
- package/_types/core/TransactionEnvelopeEip4844.d.ts +0 -24
- package/_types/core/TransactionEnvelopeEip4844.d.ts.map +1 -1
- package/_types/core/TransactionEnvelopeEip7702.d.ts +0 -21
- package/_types/core/TransactionEnvelopeEip7702.d.ts.map +1 -1
- package/_types/core/TransactionEnvelopeLegacy.d.ts +0 -24
- package/_types/core/TransactionEnvelopeLegacy.d.ts.map +1 -1
- package/_types/core/TransactionReceipt.d.ts +0 -6
- package/_types/core/TransactionReceipt.d.ts.map +1 -1
- package/_types/core/TransactionRequest.d.ts +0 -3
- package/_types/core/TransactionRequest.d.ts.map +1 -1
- package/_types/core/TypedData.d.ts +7 -30
- package/_types/core/TypedData.d.ts.map +1 -1
- package/_types/core/ValidatorData.d.ts +0 -6
- package/_types/core/ValidatorData.d.ts.map +1 -1
- package/_types/core/Value.d.ts +0 -18
- package/_types/core/Value.d.ts.map +1 -1
- package/_types/core/WebAuthnP256.d.ts +1 -25
- package/_types/core/WebAuthnP256.d.ts.map +1 -1
- package/_types/core/WebCryptoP256.d.ts +0 -9
- package/_types/core/WebCryptoP256.d.ts.map +1 -1
- package/_types/core/Withdrawal.d.ts +0 -6
- package/_types/core/Withdrawal.d.ts.map +1 -1
- package/_types/core/internal/base58.d.ts +1 -3
- package/_types/core/internal/base58.d.ts.map +1 -1
- package/_types/core/internal/promise.d.ts +1 -3
- package/_types/core/internal/promise.d.ts.map +1 -1
- package/_types/core/internal/rpcTransport.d.ts +0 -3
- package/_types/core/internal/rpcTransport.d.ts.map +1 -1
- package/_types/core/internal/webauthn.d.ts +6 -2
- package/_types/core/internal/webauthn.d.ts.map +1 -1
- package/_types/version.d.ts +1 -1
- package/core/Abi.ts +0 -8
- package/core/AbiConstructor.ts +0 -20
- package/core/AbiError.ts +1 -20
- package/core/AbiEvent.ts +0 -27
- package/core/AbiFunction.ts +0 -19
- package/core/AbiItem.ts +0 -22
- package/core/AbiParameters.ts +0 -19
- package/core/Address.ts +0 -18
- package/core/AesGcm.ts +0 -16
- package/core/Authorization.ts +0 -44
- package/core/Base58.ts +0 -24
- package/core/Base64.ts +0 -24
- package/core/Blobs.ts +0 -39
- package/core/Block.ts +0 -8
- package/core/Bloom.ts +0 -7
- package/core/Bls.ts +0 -11
- package/core/BlsPoint.ts +0 -12
- package/core/Bytes.ts +0 -75
- package/core/ContractAddress.ts +0 -12
- package/core/Ens.ts +0 -12
- package/core/Filter.ts +0 -8
- package/core/Hash.ts +0 -12
- package/core/HdKey.ts +0 -15
- package/core/Hex.ts +0 -66
- package/core/Json.ts +0 -8
- package/core/Kzg.ts +0 -3
- package/core/Log.ts +0 -8
- package/core/Mnemonic.ts +0 -20
- package/core/P256.ts +0 -10
- package/core/PersonalMessage.ts +0 -7
- package/core/Provider.ts +0 -7
- package/core/PublicKey.ts +0 -24
- package/core/Rlp.ts +0 -23
- package/core/RpcRequest.ts +0 -8
- package/core/RpcResponse.ts +0 -4
- package/core/RpcTransport.ts +0 -4
- package/core/Secp256k1.ts +0 -16
- package/core/Signature.ts +0 -66
- package/core/Siwe.ts +0 -4
- package/core/Transaction.ts +0 -8
- package/core/TransactionEnvelopeEip1559.ts +0 -30
- package/core/TransactionEnvelopeEip2930.ts +0 -31
- package/core/TransactionEnvelopeEip4844.ts +0 -32
- package/core/TransactionEnvelopeEip7702.ts +0 -28
- package/core/TransactionEnvelopeLegacy.ts +0 -32
- package/core/TransactionReceipt.ts +0 -8
- package/core/TransactionRequest.ts +0 -4
- package/core/TypedData.ts +15 -36
- package/core/ValidatorData.ts +0 -7
- package/core/Value.ts +0 -18
- package/core/WebAuthnP256.ts +5 -34
- package/core/WebCryptoP256.ts +0 -12
- package/core/Withdrawal.ts +0 -8
- package/core/internal/base58.ts +0 -3
- package/core/internal/promise.ts +0 -3
- package/core/internal/rpcTransport.ts +0 -5
- package/core/internal/webauthn.ts +58 -17
- package/package.json +1 -1
- package/version.ts +1 -1
package/core/Blobs.ts
CHANGED
|
@@ -141,10 +141,6 @@ export declare namespace commitmentsToVersionedHashes {
|
|
|
141
141
|
type ErrorType = Errors.GlobalErrorType
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
commitmentsToVersionedHashes.parseError = (error: unknown) =>
|
|
145
|
-
/* v8 ignore next */
|
|
146
|
-
error as commitmentsToVersionedHashes.ErrorType
|
|
147
|
-
|
|
148
144
|
/**
|
|
149
145
|
* Transform a Commitment to its Blob Versioned Hash.
|
|
150
146
|
*
|
|
@@ -232,10 +228,6 @@ export declare namespace commitmentToVersionedHash {
|
|
|
232
228
|
type ErrorType = Errors.GlobalErrorType
|
|
233
229
|
}
|
|
234
230
|
|
|
235
|
-
commitmentToVersionedHash.parseError = (error: unknown) =>
|
|
236
|
-
/* v8 ignore next */
|
|
237
|
-
error as commitmentToVersionedHash.ErrorType
|
|
238
|
-
|
|
239
231
|
/**
|
|
240
232
|
* Transforms arbitrary data to {@link ox#Blobs.Blobs}.
|
|
241
233
|
*
|
|
@@ -356,9 +348,6 @@ export declare namespace from {
|
|
|
356
348
|
| Errors.GlobalErrorType
|
|
357
349
|
}
|
|
358
350
|
|
|
359
|
-
/* v8 ignore next */
|
|
360
|
-
from.parseError = (error: unknown) => error as from.ErrorType
|
|
361
|
-
|
|
362
351
|
/**
|
|
363
352
|
* Transforms a list of {@link ox#Blobs.BlobSidecars} to their Blob Versioned Hashes.
|
|
364
353
|
*
|
|
@@ -452,10 +441,6 @@ export declare namespace sidecarsToVersionedHashes {
|
|
|
452
441
|
type ErrorType = commitmentToVersionedHash.ErrorType | Errors.GlobalErrorType
|
|
453
442
|
}
|
|
454
443
|
|
|
455
|
-
sidecarsToVersionedHashes.parseError = (error: unknown) =>
|
|
456
|
-
/* v8 ignore next */
|
|
457
|
-
error as sidecarsToVersionedHashes.ErrorType
|
|
458
|
-
|
|
459
444
|
/**
|
|
460
445
|
* Transforms Ox-shaped {@link ox#Blobs.Blobs} into the originating data.
|
|
461
446
|
*
|
|
@@ -544,9 +529,6 @@ export declare namespace to {
|
|
|
544
529
|
| Errors.GlobalErrorType
|
|
545
530
|
}
|
|
546
531
|
|
|
547
|
-
/* v8 ignore next */
|
|
548
|
-
to.parseError = (error: unknown) => error as to.ErrorType
|
|
549
|
-
|
|
550
532
|
/**
|
|
551
533
|
* Transforms Ox-shaped {@link ox#Blobs.Blobs} into the originating data.
|
|
552
534
|
*
|
|
@@ -570,9 +552,6 @@ export declare namespace toHex {
|
|
|
570
552
|
type ErrorType = to.ErrorType | Errors.GlobalErrorType
|
|
571
553
|
}
|
|
572
554
|
|
|
573
|
-
/* v8 ignore next */
|
|
574
|
-
toHex.parseError = (error: unknown) => error as toHex.ErrorType
|
|
575
|
-
|
|
576
555
|
/**
|
|
577
556
|
* Transforms Ox-shaped {@link ox#Blobs.Blobs} into the originating data.
|
|
578
557
|
*
|
|
@@ -591,9 +570,6 @@ export function toBytes(
|
|
|
591
570
|
return to(blobs, 'Bytes')
|
|
592
571
|
}
|
|
593
572
|
|
|
594
|
-
/* v8 ignore next */
|
|
595
|
-
toBytes.parseError = (error: unknown) => error as toBytes.ErrorType
|
|
596
|
-
|
|
597
573
|
/**
|
|
598
574
|
* Compute commitments from a list of {@link ox#Blobs.Blobs}.
|
|
599
575
|
*
|
|
@@ -675,10 +651,6 @@ export declare namespace toCommitments {
|
|
|
675
651
|
| Errors.GlobalErrorType
|
|
676
652
|
}
|
|
677
653
|
|
|
678
|
-
toCommitments.parseError = (error: unknown) =>
|
|
679
|
-
/* v8 ignore next */
|
|
680
|
-
error as toCommitments.ErrorType
|
|
681
|
-
|
|
682
654
|
export declare namespace toBytes {
|
|
683
655
|
type ReturnType = to.ReturnType<'Bytes'>
|
|
684
656
|
type ErrorType = to.ErrorType | Errors.GlobalErrorType
|
|
@@ -772,9 +744,6 @@ export declare namespace toProofs {
|
|
|
772
744
|
| Errors.GlobalErrorType
|
|
773
745
|
}
|
|
774
746
|
|
|
775
|
-
/* v8 ignore next */
|
|
776
|
-
toProofs.parseError = (error: unknown) => error as toProofs.ErrorType
|
|
777
|
-
|
|
778
747
|
/**
|
|
779
748
|
* Transforms {@link ox#Blobs.Blobs} into a {@link ox#Blobs.BlobSidecars} array.
|
|
780
749
|
*
|
|
@@ -858,10 +827,6 @@ export declare namespace toSidecars {
|
|
|
858
827
|
type ErrorType = Errors.GlobalErrorType
|
|
859
828
|
}
|
|
860
829
|
|
|
861
|
-
toSidecars.parseError = (error: unknown) =>
|
|
862
|
-
/* v8 ignore next */
|
|
863
|
-
error as toSidecars.ErrorType
|
|
864
|
-
|
|
865
830
|
/**
|
|
866
831
|
* Compute Blob Versioned Hashes from a list of {@link ox#Blobs.Blobs}.
|
|
867
832
|
*
|
|
@@ -911,10 +876,6 @@ export declare namespace toVersionedHashes {
|
|
|
911
876
|
| Errors.GlobalErrorType
|
|
912
877
|
}
|
|
913
878
|
|
|
914
|
-
toVersionedHashes.parseError = (error: unknown) =>
|
|
915
|
-
/* v8 ignore next */
|
|
916
|
-
error as toVersionedHashes.ErrorType
|
|
917
|
-
|
|
918
879
|
/** A list of {@link ox#Blobs.BlobSidecar}. */
|
|
919
880
|
export type BlobSidecars<
|
|
920
881
|
type extends Hex.Hex | Bytes.Bytes = Hex.Hex | Bytes.Bytes,
|
package/core/Block.ts
CHANGED
|
@@ -199,10 +199,6 @@ export declare namespace toRpc {
|
|
|
199
199
|
type ErrorType = Errors.GlobalErrorType
|
|
200
200
|
}
|
|
201
201
|
|
|
202
|
-
toRpc.parseError = (error: unknown) =>
|
|
203
|
-
/* v8 ignore next */
|
|
204
|
-
error as toRpc.ErrorType
|
|
205
|
-
|
|
206
202
|
/**
|
|
207
203
|
* Converts a {@link ox#Block.Rpc} to an {@link ox#Block.Block}.
|
|
208
204
|
*
|
|
@@ -311,7 +307,3 @@ export declare namespace fromRpc {
|
|
|
311
307
|
|
|
312
308
|
type ErrorType = Errors.GlobalErrorType
|
|
313
309
|
}
|
|
314
|
-
|
|
315
|
-
fromRpc.parseError = (error: unknown) =>
|
|
316
|
-
/* v8 ignore next */
|
|
317
|
-
error as fromRpc.ErrorType
|
package/core/Bloom.ts
CHANGED
|
@@ -44,10 +44,6 @@ export declare namespace contains {
|
|
|
44
44
|
| Errors.GlobalErrorType
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
contains.parseError = (error: unknown) =>
|
|
48
|
-
/* v8 ignore next */
|
|
49
|
-
error as contains.ErrorType
|
|
50
|
-
|
|
51
47
|
/**
|
|
52
48
|
* Checks if a string is a valid bloom filter value.
|
|
53
49
|
*
|
|
@@ -75,6 +71,3 @@ export declare namespace validate {
|
|
|
75
71
|
| Hex.size.ErrorType
|
|
76
72
|
| Errors.GlobalErrorType
|
|
77
73
|
}
|
|
78
|
-
|
|
79
|
-
/* v8 ignore next */
|
|
80
|
-
validate.parseError = (error: unknown) => error as validate.ErrorType
|
package/core/Bls.ts
CHANGED
|
@@ -70,10 +70,6 @@ export declare namespace aggregate {
|
|
|
70
70
|
type ErrorType = Errors.GlobalErrorType
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
aggregate.parseError = (error: unknown) =>
|
|
74
|
-
/* v8 ignore next */
|
|
75
|
-
error as aggregate.ErrorType
|
|
76
|
-
|
|
77
73
|
/**
|
|
78
74
|
* Computes the BLS12-381 public key from a provided private key.
|
|
79
75
|
*
|
|
@@ -365,10 +361,6 @@ export declare namespace sign {
|
|
|
365
361
|
type ErrorType = Bytes.from.ErrorType | Errors.GlobalErrorType
|
|
366
362
|
}
|
|
367
363
|
|
|
368
|
-
sign.parseError = (error: unknown) =>
|
|
369
|
-
/* v8 ignore next */
|
|
370
|
-
error as sign.ErrorType
|
|
371
|
-
|
|
372
364
|
/**
|
|
373
365
|
* Verifies a payload was signed by the provided public key(s).
|
|
374
366
|
*
|
|
@@ -491,6 +483,3 @@ export declare namespace verify {
|
|
|
491
483
|
|
|
492
484
|
type ErrorType = Errors.GlobalErrorType
|
|
493
485
|
}
|
|
494
|
-
|
|
495
|
-
/* v8 ignore next */
|
|
496
|
-
verify.parseError = (error: unknown) => error as verify.ErrorType
|
package/core/BlsPoint.ts
CHANGED
|
@@ -72,9 +72,6 @@ export declare namespace toBytes {
|
|
|
72
72
|
type ErrorType = Errors.GlobalErrorType
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
/* v8 ignore next */
|
|
76
|
-
toBytes.parseError = (error: unknown) => error as toBytes.ErrorType
|
|
77
|
-
|
|
78
75
|
/**
|
|
79
76
|
* Converts a BLS point to {@link ox#Hex.Hex}.
|
|
80
77
|
*
|
|
@@ -115,9 +112,6 @@ export declare namespace toHex {
|
|
|
115
112
|
type ErrorType = Errors.GlobalErrorType
|
|
116
113
|
}
|
|
117
114
|
|
|
118
|
-
/* v8 ignore next */
|
|
119
|
-
toHex.parseError = (error: unknown) => error as toHex.ErrorType
|
|
120
|
-
|
|
121
115
|
/**
|
|
122
116
|
* Converts {@link ox#Bytes.Bytes} to a BLS point.
|
|
123
117
|
*
|
|
@@ -173,9 +167,6 @@ export declare namespace fromBytes {
|
|
|
173
167
|
type ErrorType = Errors.GlobalErrorType
|
|
174
168
|
}
|
|
175
169
|
|
|
176
|
-
/* v8 ignore next */
|
|
177
|
-
fromBytes.parseError = (error: unknown) => error as fromBytes.ErrorType
|
|
178
|
-
|
|
179
170
|
/**
|
|
180
171
|
* Converts {@link ox#Hex.Hex} to a BLS point.
|
|
181
172
|
*
|
|
@@ -227,6 +218,3 @@ export function fromHex(hex: Hex.Hex, group: 'G1' | 'G2'): BlsPoint<any> {
|
|
|
227
218
|
export declare namespace fromHex {
|
|
228
219
|
type ErrorType = Errors.GlobalErrorType
|
|
229
220
|
}
|
|
230
|
-
|
|
231
|
-
/* v8 ignore next */
|
|
232
|
-
fromHex.parseError = (error: unknown) => error as fromHex.ErrorType
|
package/core/Bytes.ts
CHANGED
|
@@ -39,9 +39,6 @@ export declare namespace assert {
|
|
|
39
39
|
type ErrorType = InvalidBytesTypeError | Errors.GlobalErrorType
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
/* v8 ignore next */
|
|
43
|
-
assert.parseError = (error: unknown) => error as assert.ErrorType
|
|
44
|
-
|
|
45
42
|
/**
|
|
46
43
|
* Concatenates two or more {@link ox#Bytes.Bytes}.
|
|
47
44
|
*
|
|
@@ -78,9 +75,6 @@ export declare namespace concat {
|
|
|
78
75
|
type ErrorType = Errors.GlobalErrorType
|
|
79
76
|
}
|
|
80
77
|
|
|
81
|
-
/* v8 ignore next */
|
|
82
|
-
concat.parseError = (error: unknown) => error as concat.ErrorType
|
|
83
|
-
|
|
84
78
|
/**
|
|
85
79
|
* Instantiates a {@link ox#Bytes.Bytes} value from a `Uint8Array`, a hex string, or an array of unsigned 8-bit integers.
|
|
86
80
|
*
|
|
@@ -124,10 +118,6 @@ export declare namespace from {
|
|
|
124
118
|
| Errors.GlobalErrorType
|
|
125
119
|
}
|
|
126
120
|
|
|
127
|
-
from.parseError = (error: unknown) =>
|
|
128
|
-
/* v8 ignore next */
|
|
129
|
-
error as from.ErrorType
|
|
130
|
-
|
|
131
121
|
/**
|
|
132
122
|
* Converts an array of unsigned 8-bit integers into {@link ox#Bytes.Bytes}.
|
|
133
123
|
*
|
|
@@ -150,10 +140,6 @@ export declare namespace fromArray {
|
|
|
150
140
|
type ErrorType = Errors.GlobalErrorType
|
|
151
141
|
}
|
|
152
142
|
|
|
153
|
-
fromArray.parseError = (error: unknown) =>
|
|
154
|
-
/* v8 ignore next */
|
|
155
|
-
error as fromArray.ErrorType
|
|
156
|
-
|
|
157
143
|
/**
|
|
158
144
|
* Encodes a boolean value into {@link ox#Bytes.Bytes}.
|
|
159
145
|
*
|
|
@@ -200,10 +186,6 @@ export declare namespace fromBoolean {
|
|
|
200
186
|
| Errors.GlobalErrorType
|
|
201
187
|
}
|
|
202
188
|
|
|
203
|
-
fromBoolean.parseError = (error: unknown) =>
|
|
204
|
-
/* v8 ignore next */
|
|
205
|
-
error as fromBoolean.ErrorType
|
|
206
|
-
|
|
207
189
|
/**
|
|
208
190
|
* Encodes a {@link ox#Hex.Hex} value into {@link ox#Bytes.Bytes}.
|
|
209
191
|
*
|
|
@@ -266,9 +248,6 @@ export declare namespace fromHex {
|
|
|
266
248
|
| Errors.GlobalErrorType
|
|
267
249
|
}
|
|
268
250
|
|
|
269
|
-
/* v8 ignore next */
|
|
270
|
-
fromHex.parseError = (error: unknown) => error as fromHex.ErrorType
|
|
271
|
-
|
|
272
251
|
/**
|
|
273
252
|
* Encodes a number value into {@link ox#Bytes.Bytes}.
|
|
274
253
|
*
|
|
@@ -309,10 +288,6 @@ export declare namespace fromNumber {
|
|
|
309
288
|
| Errors.GlobalErrorType
|
|
310
289
|
}
|
|
311
290
|
|
|
312
|
-
fromNumber.parseError = (error: unknown) =>
|
|
313
|
-
/* v8 ignore next */
|
|
314
|
-
error as fromNumber.ErrorType
|
|
315
|
-
|
|
316
291
|
/**
|
|
317
292
|
* Encodes a string into {@link ox#Bytes.Bytes}.
|
|
318
293
|
*
|
|
@@ -362,10 +337,6 @@ export declare namespace fromString {
|
|
|
362
337
|
| Errors.GlobalErrorType
|
|
363
338
|
}
|
|
364
339
|
|
|
365
|
-
fromString.parseError = (error: unknown) =>
|
|
366
|
-
/* v8 ignore next */
|
|
367
|
-
error as fromString.ErrorType
|
|
368
|
-
|
|
369
340
|
/**
|
|
370
341
|
* Checks if two {@link ox#Bytes.Bytes} values are equal.
|
|
371
342
|
*
|
|
@@ -392,9 +363,6 @@ export declare namespace isEqual {
|
|
|
392
363
|
type ErrorType = Errors.GlobalErrorType
|
|
393
364
|
}
|
|
394
365
|
|
|
395
|
-
/* v8 ignore next */
|
|
396
|
-
isEqual.parseError = (error: unknown) => error as isEqual.ErrorType
|
|
397
|
-
|
|
398
366
|
/**
|
|
399
367
|
* Pads a {@link ox#Bytes.Bytes} value to the left with zero bytes until it reaches the given `size` (default: 32 bytes).
|
|
400
368
|
*
|
|
@@ -422,9 +390,6 @@ export declare namespace padLeft {
|
|
|
422
390
|
type ErrorType = internal.pad.ErrorType | Errors.GlobalErrorType
|
|
423
391
|
}
|
|
424
392
|
|
|
425
|
-
/* v8 ignore next */
|
|
426
|
-
padLeft.parseError = (error: unknown) => error as padLeft.ErrorType
|
|
427
|
-
|
|
428
393
|
/**
|
|
429
394
|
* Pads a {@link ox#Bytes.Bytes} value to the right with zero bytes until it reaches the given `size` (default: 32 bytes).
|
|
430
395
|
*
|
|
@@ -452,9 +417,6 @@ export declare namespace padRight {
|
|
|
452
417
|
type ErrorType = internal.pad.ErrorType | Errors.GlobalErrorType
|
|
453
418
|
}
|
|
454
419
|
|
|
455
|
-
/* v8 ignore next */
|
|
456
|
-
padRight.parseError = (error: unknown) => error as padRight.ErrorType
|
|
457
|
-
|
|
458
420
|
/**
|
|
459
421
|
* Generates random {@link ox#Bytes.Bytes} of the specified length.
|
|
460
422
|
*
|
|
@@ -477,9 +439,6 @@ export declare namespace random {
|
|
|
477
439
|
type ErrorType = Errors.GlobalErrorType
|
|
478
440
|
}
|
|
479
441
|
|
|
480
|
-
/* v8 ignore next */
|
|
481
|
-
random.parseError = (error: unknown) => error as random.ErrorType
|
|
482
|
-
|
|
483
442
|
/**
|
|
484
443
|
* Retrieves the size of a {@link ox#Bytes.Bytes} value.
|
|
485
444
|
*
|
|
@@ -502,9 +461,6 @@ export declare namespace size {
|
|
|
502
461
|
export type ErrorType = Errors.GlobalErrorType
|
|
503
462
|
}
|
|
504
463
|
|
|
505
|
-
/* v8 ignore next */
|
|
506
|
-
size.parseError = (error: unknown) => error as size.ErrorType
|
|
507
|
-
|
|
508
464
|
/**
|
|
509
465
|
* Returns a section of a {@link ox#Bytes.Bytes} value given a start/end bytes offset.
|
|
510
466
|
*
|
|
@@ -551,9 +507,6 @@ export declare namespace slice {
|
|
|
551
507
|
| Errors.GlobalErrorType
|
|
552
508
|
}
|
|
553
509
|
|
|
554
|
-
/* v8 ignore next */
|
|
555
|
-
slice.parseError = (error: unknown) => error as slice.ErrorType
|
|
556
|
-
|
|
557
510
|
/**
|
|
558
511
|
* Decodes a {@link ox#Bytes.Bytes} into a bigint.
|
|
559
512
|
*
|
|
@@ -590,10 +543,6 @@ export declare namespace toBigInt {
|
|
|
590
543
|
| Errors.GlobalErrorType
|
|
591
544
|
}
|
|
592
545
|
|
|
593
|
-
toBigInt.parseError = (error: unknown) =>
|
|
594
|
-
/* v8 ignore next */
|
|
595
|
-
error as toBigInt.ErrorType
|
|
596
|
-
|
|
597
546
|
/**
|
|
598
547
|
* Decodes a {@link ox#Bytes.Bytes} into a boolean.
|
|
599
548
|
*
|
|
@@ -636,10 +585,6 @@ export declare namespace toBoolean {
|
|
|
636
585
|
| Errors.GlobalErrorType
|
|
637
586
|
}
|
|
638
587
|
|
|
639
|
-
toBoolean.parseError = (error: unknown) =>
|
|
640
|
-
/* v8 ignore next */
|
|
641
|
-
error as toBoolean.ErrorType
|
|
642
|
-
|
|
643
588
|
/**
|
|
644
589
|
* Encodes a {@link ox#Bytes.Bytes} value into a {@link ox#Hex.Hex} value.
|
|
645
590
|
*
|
|
@@ -668,9 +613,6 @@ export declare namespace toHex {
|
|
|
668
613
|
type ErrorType = Hex.fromBytes.ErrorType | Errors.GlobalErrorType
|
|
669
614
|
}
|
|
670
615
|
|
|
671
|
-
/* v8 ignore next */
|
|
672
|
-
toHex.parseError = (error: unknown) => error as toHex.ErrorType
|
|
673
|
-
|
|
674
616
|
/**
|
|
675
617
|
* Decodes a {@link ox#Bytes.Bytes} into a number.
|
|
676
618
|
*
|
|
@@ -703,10 +645,6 @@ export declare namespace toNumber {
|
|
|
703
645
|
| Errors.GlobalErrorType
|
|
704
646
|
}
|
|
705
647
|
|
|
706
|
-
toNumber.parseError = (error: unknown) =>
|
|
707
|
-
/* v8 ignore next */
|
|
708
|
-
error as toNumber.ErrorType
|
|
709
|
-
|
|
710
648
|
/**
|
|
711
649
|
* Decodes a {@link ox#Bytes.Bytes} into a string.
|
|
712
650
|
*
|
|
@@ -745,10 +683,6 @@ export declare namespace toString {
|
|
|
745
683
|
| Errors.GlobalErrorType
|
|
746
684
|
}
|
|
747
685
|
|
|
748
|
-
toString.parseError = (error: unknown) =>
|
|
749
|
-
/* v8 ignore next */
|
|
750
|
-
error as toString.ErrorType
|
|
751
|
-
|
|
752
686
|
/**
|
|
753
687
|
* Trims leading zeros from a {@link ox#Bytes.Bytes} value.
|
|
754
688
|
*
|
|
@@ -771,9 +705,6 @@ export declare namespace trimLeft {
|
|
|
771
705
|
type ErrorType = internal.trim.ErrorType | Errors.GlobalErrorType
|
|
772
706
|
}
|
|
773
707
|
|
|
774
|
-
/* v8 ignore next */
|
|
775
|
-
trimLeft.parseError = (error: unknown) => error as trimLeft.ErrorType
|
|
776
|
-
|
|
777
708
|
/**
|
|
778
709
|
* Trims trailing zeros from a {@link ox#Bytes.Bytes} value.
|
|
779
710
|
*
|
|
@@ -796,9 +727,6 @@ export declare namespace trimRight {
|
|
|
796
727
|
export type ErrorType = internal.trim.ErrorType | Errors.GlobalErrorType
|
|
797
728
|
}
|
|
798
729
|
|
|
799
|
-
/* v8 ignore next */
|
|
800
|
-
trimRight.parseError = (error: unknown) => error as trimRight.ErrorType
|
|
801
|
-
|
|
802
730
|
/**
|
|
803
731
|
* Checks if the given value is {@link ox#Bytes.Bytes}.
|
|
804
732
|
*
|
|
@@ -829,9 +757,6 @@ export declare namespace validate {
|
|
|
829
757
|
export type ErrorType = Errors.GlobalErrorType
|
|
830
758
|
}
|
|
831
759
|
|
|
832
|
-
/* v8 ignore next */
|
|
833
|
-
validate.parseError = (error: unknown) => error as validate.ErrorType
|
|
834
|
-
|
|
835
760
|
/**
|
|
836
761
|
* Thrown when the bytes value cannot be represented as a boolean.
|
|
837
762
|
*
|
package/core/ContractAddress.ts
CHANGED
|
@@ -55,10 +55,6 @@ export declare namespace from {
|
|
|
55
55
|
| Errors.GlobalErrorType
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
from.parseError = (error: unknown) =>
|
|
59
|
-
/* v8 ignore next */
|
|
60
|
-
error as from.ErrorType
|
|
61
|
-
|
|
62
58
|
/**
|
|
63
59
|
* Computes contract address via [CREATE](https://ethereum.stackexchange.com/questions/68943/create-opcode-what-does-it-really-do/68945#68945) opcode.
|
|
64
60
|
*
|
|
@@ -104,10 +100,6 @@ export declare namespace fromCreate {
|
|
|
104
100
|
| Errors.GlobalErrorType
|
|
105
101
|
}
|
|
106
102
|
|
|
107
|
-
fromCreate.parseError = (error: unknown) =>
|
|
108
|
-
/* v8 ignore next */
|
|
109
|
-
error as fromCreate.ErrorType
|
|
110
|
-
|
|
111
103
|
/**
|
|
112
104
|
* Computes contract address via [CREATE2](https://eips.ethereum.org/EIPS/eip-1014) opcode.
|
|
113
105
|
*
|
|
@@ -175,7 +167,3 @@ export declare namespace fromCreate2 {
|
|
|
175
167
|
| Bytes.fromHex.ErrorType
|
|
176
168
|
| Errors.GlobalErrorType
|
|
177
169
|
}
|
|
178
|
-
|
|
179
|
-
fromCreate2.parseError = (error: unknown) =>
|
|
180
|
-
/* v8 ignore next */
|
|
181
|
-
error as fromCreate2.ErrorType
|
package/core/Ens.ts
CHANGED
|
@@ -37,10 +37,6 @@ export declare namespace labelhash {
|
|
|
37
37
|
| Errors.GlobalErrorType
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
labelhash.parseError = (error: unknown) =>
|
|
41
|
-
/* v8 ignore next */
|
|
42
|
-
error as labelhash.ErrorType
|
|
43
|
-
|
|
44
40
|
/**
|
|
45
41
|
* Hashes ENS name.
|
|
46
42
|
*
|
|
@@ -84,10 +80,6 @@ export declare namespace namehash {
|
|
|
84
80
|
| Errors.GlobalErrorType
|
|
85
81
|
}
|
|
86
82
|
|
|
87
|
-
namehash.parseError = (error: unknown) =>
|
|
88
|
-
/* v8 ignore next */
|
|
89
|
-
error as namehash.ErrorType
|
|
90
|
-
|
|
91
83
|
/**
|
|
92
84
|
* Normalizes ENS name according to [ENSIP-15](https://github.com/ensdomains/docs/blob/9edf9443de4333a0ea7ec658a870672d5d180d53/ens-improvement-proposals/ensip-15-normalization-standard.md).
|
|
93
85
|
*
|
|
@@ -110,7 +102,3 @@ export function normalize(name: string): string {
|
|
|
110
102
|
export declare namespace normalize {
|
|
111
103
|
type ErrorType = Errors.GlobalErrorType
|
|
112
104
|
}
|
|
113
|
-
|
|
114
|
-
normalize.parseError = (error: unknown) =>
|
|
115
|
-
/* v8 ignore next */
|
|
116
|
-
error as normalize.ErrorType
|
package/core/Filter.ts
CHANGED
|
@@ -84,10 +84,6 @@ export declare namespace fromRpc {
|
|
|
84
84
|
type ErrorType = Errors.GlobalErrorType
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
-
fromRpc.parseError = (error: unknown) =>
|
|
88
|
-
/* v8 ignore next */
|
|
89
|
-
error as fromRpc.ErrorType
|
|
90
|
-
|
|
91
87
|
/**
|
|
92
88
|
* Converts a {@link ox#Filter.Filter} to a {@link ox#Filter.Rpc}.
|
|
93
89
|
*
|
|
@@ -138,7 +134,3 @@ export function toRpc(filter: Filter): Rpc {
|
|
|
138
134
|
export declare namespace toRpc {
|
|
139
135
|
type ErrorType = Errors.GlobalErrorType
|
|
140
136
|
}
|
|
141
|
-
|
|
142
|
-
toRpc.parseError = (error: unknown) =>
|
|
143
|
-
/* v8 ignore next */
|
|
144
|
-
error as toRpc.ErrorType
|
package/core/Hash.ts
CHANGED
|
@@ -73,9 +73,6 @@ export declare namespace keccak256 {
|
|
|
73
73
|
| Errors.GlobalErrorType
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
/* v8 ignore next */
|
|
77
|
-
keccak256.parseError = (error: unknown) => error as keccak256.ErrorType
|
|
78
|
-
|
|
79
76
|
/**
|
|
80
77
|
* Calculates the [Ripemd160](https://en.wikipedia.org/wiki/RIPEMD) hash of a {@link ox#Bytes.Bytes} or {@link ox#Hex.Hex} value.
|
|
81
78
|
*
|
|
@@ -124,9 +121,6 @@ export declare namespace ripemd160 {
|
|
|
124
121
|
| Errors.GlobalErrorType
|
|
125
122
|
}
|
|
126
123
|
|
|
127
|
-
/* v8 ignore next */
|
|
128
|
-
ripemd160.parseError = (error: unknown) => error as ripemd160.ErrorType
|
|
129
|
-
|
|
130
124
|
/**
|
|
131
125
|
* Calculates the [Sha256](https://en.wikipedia.org/wiki/SHA-256) hash of a {@link ox#Bytes.Bytes} or {@link ox#Hex.Hex} value.
|
|
132
126
|
*
|
|
@@ -175,9 +169,6 @@ export declare namespace sha256 {
|
|
|
175
169
|
| Errors.GlobalErrorType
|
|
176
170
|
}
|
|
177
171
|
|
|
178
|
-
/* v8 ignore next */
|
|
179
|
-
sha256.parseError = (error: unknown) => error as sha256.ErrorType
|
|
180
|
-
|
|
181
172
|
/**
|
|
182
173
|
* Checks if a string is a valid hash value.
|
|
183
174
|
*
|
|
@@ -205,6 +196,3 @@ export declare namespace validate {
|
|
|
205
196
|
| Hex.size.ErrorType
|
|
206
197
|
| Errors.GlobalErrorType
|
|
207
198
|
}
|
|
208
|
-
|
|
209
|
-
/* v8 ignore next */
|
|
210
|
-
validate.parseError = (error: unknown) => error as validate.ErrorType
|
package/core/HdKey.ts
CHANGED
|
@@ -43,10 +43,6 @@ export declare namespace fromExtendedKey {
|
|
|
43
43
|
type ErrorType = internal.fromScure.ErrorType | Errors.GlobalErrorType
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
fromExtendedKey.parseError = (error: unknown) =>
|
|
47
|
-
/* v8 ignore next */
|
|
48
|
-
error as fromExtendedKey.ErrorType
|
|
49
|
-
|
|
50
46
|
/**
|
|
51
47
|
* Creates a HD Key from a JSON object containing an extended private key (`xpriv`).
|
|
52
48
|
*
|
|
@@ -71,10 +67,6 @@ export declare namespace fromJson {
|
|
|
71
67
|
type ErrorType = internal.fromScure.ErrorType | Errors.GlobalErrorType
|
|
72
68
|
}
|
|
73
69
|
|
|
74
|
-
fromJson.parseError = (error: unknown) =>
|
|
75
|
-
/* v8 ignore next */
|
|
76
|
-
error as fromJson.ErrorType
|
|
77
|
-
|
|
78
70
|
/**
|
|
79
71
|
* Creates a HD Key from a master seed.
|
|
80
72
|
*
|
|
@@ -126,10 +118,6 @@ export declare namespace fromSeed {
|
|
|
126
118
|
| Errors.GlobalErrorType
|
|
127
119
|
}
|
|
128
120
|
|
|
129
|
-
fromSeed.parseError = (error: unknown) =>
|
|
130
|
-
/* v8 ignore next */
|
|
131
|
-
error as fromSeed.ErrorType
|
|
132
|
-
|
|
133
121
|
/**
|
|
134
122
|
* Creates an Ethereum-based BIP-44 HD path.
|
|
135
123
|
*
|
|
@@ -170,6 +158,3 @@ export declare namespace path {
|
|
|
170
158
|
|
|
171
159
|
type ErrorType = Errors.GlobalErrorType
|
|
172
160
|
}
|
|
173
|
-
|
|
174
|
-
/* v8 ignore next */
|
|
175
|
-
path.parseError = (error: unknown) => error as path.ErrorType
|