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/Signature.ts
CHANGED
|
@@ -123,10 +123,6 @@ export declare namespace fromBytes {
|
|
|
123
123
|
type ErrorType = Errors.GlobalErrorType
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
fromBytes.parseError = (error: unknown) =>
|
|
127
|
-
/* v8 ignore next */
|
|
128
|
-
error as fromBytes.ErrorType
|
|
129
|
-
|
|
130
126
|
/**
|
|
131
127
|
* Deserializes a {@link ox#Hex.Hex} signature into a structured {@link ox#Signature.Signature}.
|
|
132
128
|
*
|
|
@@ -177,10 +173,6 @@ export declare namespace fromHex {
|
|
|
177
173
|
| Errors.GlobalErrorType
|
|
178
174
|
}
|
|
179
175
|
|
|
180
|
-
fromHex.parseError = (error: unknown) =>
|
|
181
|
-
/* v8 ignore next */
|
|
182
|
-
error as fromHex.ErrorType
|
|
183
|
-
|
|
184
176
|
/**
|
|
185
177
|
* Extracts a {@link ox#Signature.Signature} from an arbitrary object that may include signature properties.
|
|
186
178
|
*
|
|
@@ -223,10 +215,6 @@ export declare namespace extract {
|
|
|
223
215
|
type ErrorType = Errors.GlobalErrorType
|
|
224
216
|
}
|
|
225
217
|
|
|
226
|
-
extract.parseError = (error: unknown) =>
|
|
227
|
-
/* v8 ignore next */
|
|
228
|
-
error as extract.ErrorType
|
|
229
|
-
|
|
230
218
|
/**
|
|
231
219
|
* Instantiates a typed {@link ox#Signature.Signature} object from a {@link ox#Signature.Signature}, {@link ox#Signature.Legacy}, {@link ox#Bytes.Bytes}, or {@link ox#Hex.Hex}.
|
|
232
220
|
*
|
|
@@ -328,10 +316,6 @@ export declare namespace from {
|
|
|
328
316
|
| Errors.GlobalErrorType
|
|
329
317
|
}
|
|
330
318
|
|
|
331
|
-
from.parseError = (error: unknown) =>
|
|
332
|
-
/* v8 ignore next */
|
|
333
|
-
error as from.ErrorType
|
|
334
|
-
|
|
335
319
|
/**
|
|
336
320
|
* Converts a DER-encoded signature to a {@link ox#Signature.Signature}.
|
|
337
321
|
*
|
|
@@ -358,10 +342,6 @@ export declare namespace fromDerBytes {
|
|
|
358
342
|
type ErrorType = Errors.GlobalErrorType
|
|
359
343
|
}
|
|
360
344
|
|
|
361
|
-
fromDerBytes.parseError = (error: unknown) =>
|
|
362
|
-
/* v8 ignore next */
|
|
363
|
-
error as fromDerBytes.ErrorType
|
|
364
|
-
|
|
365
345
|
/**
|
|
366
346
|
* Converts a DER-encoded signature to a {@link ox#Signature.Signature}.
|
|
367
347
|
*
|
|
@@ -388,10 +368,6 @@ export declare namespace fromDerHex {
|
|
|
388
368
|
type ErrorType = Errors.GlobalErrorType
|
|
389
369
|
}
|
|
390
370
|
|
|
391
|
-
fromDerHex.parseError = (error: unknown) =>
|
|
392
|
-
/* v8 ignore next */
|
|
393
|
-
error as fromDerHex.ErrorType
|
|
394
|
-
|
|
395
371
|
/**
|
|
396
372
|
* Converts a {@link ox#Signature.Legacy} into a {@link ox#Signature.Signature}.
|
|
397
373
|
*
|
|
@@ -418,10 +394,6 @@ export declare namespace fromLegacy {
|
|
|
418
394
|
type ErrorType = vToYParity.ErrorType | Errors.GlobalErrorType
|
|
419
395
|
}
|
|
420
396
|
|
|
421
|
-
fromLegacy.parseError = (error: unknown) =>
|
|
422
|
-
/* v8 ignore next */
|
|
423
|
-
error as fromLegacy.ErrorType
|
|
424
|
-
|
|
425
397
|
/**
|
|
426
398
|
* Converts a {@link ox#Signature.Rpc} into a {@link ox#Signature.Signature}.
|
|
427
399
|
*
|
|
@@ -466,10 +438,6 @@ export declare namespace fromRpc {
|
|
|
466
438
|
type ErrorType = Errors.GlobalErrorType
|
|
467
439
|
}
|
|
468
440
|
|
|
469
|
-
fromRpc.parseError = (error: unknown) =>
|
|
470
|
-
/* v8 ignore next */
|
|
471
|
-
error as fromRpc.ErrorType
|
|
472
|
-
|
|
473
441
|
/**
|
|
474
442
|
* Converts a {@link ox#Signature.Tuple} to a {@link ox#Signature.Signature}.
|
|
475
443
|
*
|
|
@@ -501,10 +469,6 @@ export declare namespace fromTuple {
|
|
|
501
469
|
type ErrorType = from.ErrorType | Errors.GlobalErrorType
|
|
502
470
|
}
|
|
503
471
|
|
|
504
|
-
fromTuple.parseError = (error: unknown) =>
|
|
505
|
-
/* v8 ignore next */
|
|
506
|
-
error as fromTuple.ErrorType
|
|
507
|
-
|
|
508
472
|
/**
|
|
509
473
|
* Serializes a {@link ox#Signature.Signature} to {@link ox#Bytes.Bytes}.
|
|
510
474
|
*
|
|
@@ -534,10 +498,6 @@ export declare namespace toBytes {
|
|
|
534
498
|
| Errors.GlobalErrorType
|
|
535
499
|
}
|
|
536
500
|
|
|
537
|
-
toBytes.parseError = (error: unknown) =>
|
|
538
|
-
/* v8 ignore next */
|
|
539
|
-
error as toBytes.ErrorType
|
|
540
|
-
|
|
541
501
|
/**
|
|
542
502
|
* Serializes a {@link ox#Signature.Signature} to {@link ox#Hex.Hex}.
|
|
543
503
|
*
|
|
@@ -581,10 +541,6 @@ export declare namespace toHex {
|
|
|
581
541
|
| Errors.GlobalErrorType
|
|
582
542
|
}
|
|
583
543
|
|
|
584
|
-
toHex.parseError = (error: unknown) =>
|
|
585
|
-
/* v8 ignore next */
|
|
586
|
-
error as toHex.ErrorType
|
|
587
|
-
|
|
588
544
|
/**
|
|
589
545
|
* Converts a {@link ox#Signature.Signature} to DER-encoded format.
|
|
590
546
|
*
|
|
@@ -613,10 +569,6 @@ export declare namespace toDerBytes {
|
|
|
613
569
|
type ErrorType = Errors.GlobalErrorType
|
|
614
570
|
}
|
|
615
571
|
|
|
616
|
-
toDerBytes.parseError = (error: unknown) =>
|
|
617
|
-
/* v8 ignore next */
|
|
618
|
-
error as toDerBytes.ErrorType
|
|
619
|
-
|
|
620
572
|
/**
|
|
621
573
|
* Converts a {@link ox#Signature.Signature} to DER-encoded format.
|
|
622
574
|
*
|
|
@@ -645,10 +597,6 @@ export declare namespace toDerHex {
|
|
|
645
597
|
type ErrorType = Errors.GlobalErrorType
|
|
646
598
|
}
|
|
647
599
|
|
|
648
|
-
toDerHex.parseError = (error: unknown) =>
|
|
649
|
-
/* v8 ignore next */
|
|
650
|
-
error as toDerHex.ErrorType
|
|
651
|
-
|
|
652
600
|
/**
|
|
653
601
|
* Converts a {@link ox#Signature.Signature} into a {@link ox#Signature.Legacy}.
|
|
654
602
|
*
|
|
@@ -675,10 +623,6 @@ export declare namespace toLegacy {
|
|
|
675
623
|
type ErrorType = yParityToV.ErrorType | Errors.GlobalErrorType
|
|
676
624
|
}
|
|
677
625
|
|
|
678
|
-
toLegacy.parseError = (error: unknown) =>
|
|
679
|
-
/* v8 ignore next */
|
|
680
|
-
error as toLegacy.ErrorType
|
|
681
|
-
|
|
682
626
|
/**
|
|
683
627
|
* Converts a {@link ox#Signature.Signature} into a {@link ox#Signature.Rpc}.
|
|
684
628
|
*
|
|
@@ -709,10 +653,6 @@ export declare namespace toRpc {
|
|
|
709
653
|
type ErrorType = Errors.GlobalErrorType
|
|
710
654
|
}
|
|
711
655
|
|
|
712
|
-
toRpc.parseError = (error: unknown) =>
|
|
713
|
-
/* v8 ignore next */
|
|
714
|
-
error as toRpc.ErrorType
|
|
715
|
-
|
|
716
656
|
/**
|
|
717
657
|
* Converts a {@link ox#Signature.Signature} to a serialized {@link ox#Signature.Tuple} to be used for signatures in Transaction Envelopes, EIP-7702 Authorization Lists, etc.
|
|
718
658
|
*
|
|
@@ -811,9 +751,6 @@ export declare namespace vToYParity {
|
|
|
811
751
|
type ErrorType = InvalidVError | Errors.GlobalErrorType
|
|
812
752
|
}
|
|
813
753
|
|
|
814
|
-
/* v8 ignore next */
|
|
815
|
-
vToYParity.parseError = (error: unknown) => error as vToYParity.ErrorType
|
|
816
|
-
|
|
817
754
|
/**
|
|
818
755
|
* Converts a ECDSA `v` value to a `yParity` value.
|
|
819
756
|
*
|
|
@@ -838,9 +775,6 @@ export declare namespace yParityToV {
|
|
|
838
775
|
type ErrorType = InvalidVError | Errors.GlobalErrorType
|
|
839
776
|
}
|
|
840
777
|
|
|
841
|
-
/* v8 ignore next */
|
|
842
|
-
yParityToV.parseError = (error: unknown) => error as yParityToV.ErrorType
|
|
843
|
-
|
|
844
778
|
/** Thrown when the serialized signature is of an invalid size. */
|
|
845
779
|
export class InvalidSerializedSizeError extends Errors.BaseError {
|
|
846
780
|
override readonly name = 'Signature.InvalidSerializedSizeError'
|
package/core/Siwe.ts
CHANGED
|
@@ -251,10 +251,6 @@ export declare namespace createMessage {
|
|
|
251
251
|
| Errors.GlobalErrorType
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
createMessage.parseError = (error: unknown) =>
|
|
255
|
-
/* v8 ignore next */
|
|
256
|
-
error as createMessage.ErrorType
|
|
257
|
-
|
|
258
254
|
/**
|
|
259
255
|
* Generates random [EIP-4361](https://eips.ethereum.org/EIPS/eip-4361) nonce.
|
|
260
256
|
*
|
package/core/Transaction.ts
CHANGED
|
@@ -326,10 +326,6 @@ export declare namespace fromRpc {
|
|
|
326
326
|
type ErrorType = Signature.extract.ErrorType | Errors.GlobalErrorType
|
|
327
327
|
}
|
|
328
328
|
|
|
329
|
-
fromRpc.parseError = (error: unknown) =>
|
|
330
|
-
/* v8 ignore next */
|
|
331
|
-
error as fromRpc.ErrorType
|
|
332
|
-
|
|
333
329
|
/**
|
|
334
330
|
* Converts an {@link ox#Transaction.Transaction} to an {@link ox#Transaction.Rpc}.
|
|
335
331
|
*
|
|
@@ -423,7 +419,3 @@ export declare namespace toRpc {
|
|
|
423
419
|
|
|
424
420
|
type ErrorType = Signature.extract.ErrorType | Errors.GlobalErrorType
|
|
425
421
|
}
|
|
426
|
-
|
|
427
|
-
toRpc.parseError = (error: unknown) =>
|
|
428
|
-
/* v8 ignore next */
|
|
429
|
-
error as toRpc.ErrorType
|
|
@@ -95,10 +95,6 @@ export declare namespace assert {
|
|
|
95
95
|
| Errors.GlobalErrorType
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
assert.parseError = (error: unknown) =>
|
|
99
|
-
/* v8 ignore next */
|
|
100
|
-
error as assert.ErrorType
|
|
101
|
-
|
|
102
98
|
/**
|
|
103
99
|
* Deserializes a {@link ox#TransactionEnvelopeEip1559.TransactionEnvelopeEip1559} from its serialized form.
|
|
104
100
|
*
|
|
@@ -197,10 +193,6 @@ export declare namespace deserialize {
|
|
|
197
193
|
type ErrorType = Errors.GlobalErrorType
|
|
198
194
|
}
|
|
199
195
|
|
|
200
|
-
deserialize.parseError = (error: unknown) =>
|
|
201
|
-
/* v8 ignore next */
|
|
202
|
-
error as deserialize.ErrorType
|
|
203
|
-
|
|
204
196
|
/**
|
|
205
197
|
* Converts an arbitrary transaction object into an EIP-1559 Transaction Envelope.
|
|
206
198
|
*
|
|
@@ -332,10 +324,6 @@ export declare namespace from {
|
|
|
332
324
|
| Errors.GlobalErrorType
|
|
333
325
|
}
|
|
334
326
|
|
|
335
|
-
from.parseError = (error: unknown) =>
|
|
336
|
-
/* v8 ignore next */
|
|
337
|
-
error as from.ErrorType
|
|
338
|
-
|
|
339
327
|
/**
|
|
340
328
|
* Returns the payload to sign for a {@link ox#TransactionEnvelopeEip1559.TransactionEnvelopeEip1559}.
|
|
341
329
|
*
|
|
@@ -376,10 +364,6 @@ export declare namespace getSignPayload {
|
|
|
376
364
|
type ErrorType = hash.ErrorType | Errors.GlobalErrorType
|
|
377
365
|
}
|
|
378
366
|
|
|
379
|
-
getSignPayload.parseError = (error: unknown) =>
|
|
380
|
-
/* v8 ignore next */
|
|
381
|
-
error as getSignPayload.ErrorType
|
|
382
|
-
|
|
383
367
|
/**
|
|
384
368
|
* Hashes a {@link ox#TransactionEnvelopeEip1559.TransactionEnvelopeEip1559}. This is the "transaction hash".
|
|
385
369
|
*
|
|
@@ -444,10 +428,6 @@ export declare namespace hash {
|
|
|
444
428
|
| Errors.GlobalErrorType
|
|
445
429
|
}
|
|
446
430
|
|
|
447
|
-
hash.parseError = (error: unknown) =>
|
|
448
|
-
/* v8 ignore next */
|
|
449
|
-
error as hash.ErrorType
|
|
450
|
-
|
|
451
431
|
/**
|
|
452
432
|
* Serializes a {@link ox#TransactionEnvelopeEip1559.TransactionEnvelopeEip1559}.
|
|
453
433
|
*
|
|
@@ -552,9 +532,6 @@ export declare namespace serialize {
|
|
|
552
532
|
| Errors.GlobalErrorType
|
|
553
533
|
}
|
|
554
534
|
|
|
555
|
-
/* v8 ignore next */
|
|
556
|
-
serialize.parseError = (error: unknown) => error as serialize.ErrorType
|
|
557
|
-
|
|
558
535
|
/**
|
|
559
536
|
* Converts an {@link ox#TransactionEnvelopeEip1559.TransactionEnvelopeEip1559} to an {@link ox#TransactionEnvelopeEip1559.Rpc}.
|
|
560
537
|
*
|
|
@@ -615,9 +592,6 @@ export declare namespace toRpc {
|
|
|
615
592
|
export type ErrorType = Signature.extract.ErrorType | Errors.GlobalErrorType
|
|
616
593
|
}
|
|
617
594
|
|
|
618
|
-
/* v8 ignore next */
|
|
619
|
-
toRpc.parseError = (error: unknown) => error as toRpc.ErrorType
|
|
620
|
-
|
|
621
595
|
/**
|
|
622
596
|
* Validates a {@link ox#TransactionEnvelopeEip1559.TransactionEnvelopeEip1559}. Returns `true` if the envelope is valid, `false` otherwise.
|
|
623
597
|
*
|
|
@@ -650,7 +624,3 @@ export function validate(
|
|
|
650
624
|
export declare namespace validate {
|
|
651
625
|
type ErrorType = Errors.GlobalErrorType
|
|
652
626
|
}
|
|
653
|
-
|
|
654
|
-
validate.parseError = (error: unknown) =>
|
|
655
|
-
/* v8 ignore next */
|
|
656
|
-
error as validate.ErrorType
|
|
@@ -83,10 +83,6 @@ export declare namespace assert {
|
|
|
83
83
|
| Errors.GlobalErrorType
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
assert.parseError = (error: unknown) =>
|
|
87
|
-
/* v8 ignore next */
|
|
88
|
-
error as assert.ErrorType
|
|
89
|
-
|
|
90
86
|
/**
|
|
91
87
|
* Deserializes a {@link ox#TransactionEnvelopeEip2930.TransactionEnvelopeEip2930} from its serialized form.
|
|
92
88
|
*
|
|
@@ -181,9 +177,6 @@ export declare namespace deserialize {
|
|
|
181
177
|
type ErrorType = Errors.GlobalErrorType
|
|
182
178
|
}
|
|
183
179
|
|
|
184
|
-
/* v8 ignore next */
|
|
185
|
-
deserialize.parseError = (error: unknown) => error as deserialize.ErrorType
|
|
186
|
-
|
|
187
180
|
/**
|
|
188
181
|
* Converts an arbitrary transaction object into an EIP-2930 Transaction Envelope.
|
|
189
182
|
*
|
|
@@ -313,10 +306,6 @@ export declare namespace from {
|
|
|
313
306
|
| Errors.GlobalErrorType
|
|
314
307
|
}
|
|
315
308
|
|
|
316
|
-
from.parseError = (error: unknown) =>
|
|
317
|
-
/* v8 ignore next */
|
|
318
|
-
error as from.ErrorType
|
|
319
|
-
|
|
320
309
|
/**
|
|
321
310
|
* Returns the payload to sign for a {@link ox#TransactionEnvelopeEip2930.TransactionEnvelopeEip2930}.
|
|
322
311
|
*
|
|
@@ -357,10 +346,6 @@ export declare namespace getSignPayload {
|
|
|
357
346
|
type ErrorType = hash.ErrorType | Errors.GlobalErrorType
|
|
358
347
|
}
|
|
359
348
|
|
|
360
|
-
getSignPayload.parseError = (error: unknown) =>
|
|
361
|
-
/* v8 ignore next */
|
|
362
|
-
error as getSignPayload.ErrorType
|
|
363
|
-
|
|
364
349
|
/**
|
|
365
350
|
* Hashes a {@link ox#TransactionEnvelopeEip2930.TransactionEnvelopeEip2930}. This is the "transaction hash".
|
|
366
351
|
*
|
|
@@ -427,10 +412,6 @@ export declare namespace hash {
|
|
|
427
412
|
| Errors.GlobalErrorType
|
|
428
413
|
}
|
|
429
414
|
|
|
430
|
-
hash.parseError = (error: unknown) =>
|
|
431
|
-
/* v8 ignore next */
|
|
432
|
-
error as hash.ErrorType
|
|
433
|
-
|
|
434
415
|
/**
|
|
435
416
|
* Serializes a {@link ox#TransactionEnvelopeEip2930.TransactionEnvelopeEip2930}.
|
|
436
417
|
*
|
|
@@ -522,10 +503,6 @@ export declare namespace serialize {
|
|
|
522
503
|
| Errors.GlobalErrorType
|
|
523
504
|
}
|
|
524
505
|
|
|
525
|
-
serialize.parseError = (error: unknown) =>
|
|
526
|
-
/* v8 ignore next */
|
|
527
|
-
error as serialize.ErrorType
|
|
528
|
-
|
|
529
506
|
/**
|
|
530
507
|
* Converts an {@link ox#TransactionEnvelopeEip2930.TransactionEnvelopeEip2930} to an {@link ox#TransactionEnvelopeEip2930.Rpc}.
|
|
531
508
|
*
|
|
@@ -582,10 +559,6 @@ export declare namespace toRpc {
|
|
|
582
559
|
export type ErrorType = Signature.extract.ErrorType | Errors.GlobalErrorType
|
|
583
560
|
}
|
|
584
561
|
|
|
585
|
-
toRpc.parseError = (error: unknown) =>
|
|
586
|
-
/* v8 ignore next */
|
|
587
|
-
error as toRpc.ErrorType
|
|
588
|
-
|
|
589
562
|
/**
|
|
590
563
|
* Validates a {@link ox#TransactionEnvelopeEip2930.TransactionEnvelopeEip2930}. Returns `true` if the envelope is valid, `false` otherwise.
|
|
591
564
|
*
|
|
@@ -618,7 +591,3 @@ export function validate(
|
|
|
618
591
|
export declare namespace validate {
|
|
619
592
|
type ErrorType = Errors.GlobalErrorType
|
|
620
593
|
}
|
|
621
|
-
|
|
622
|
-
validate.parseError = (error: unknown) =>
|
|
623
|
-
/* v8 ignore next */
|
|
624
|
-
error as validate.ErrorType
|
|
@@ -108,10 +108,6 @@ export declare namespace assert {
|
|
|
108
108
|
| Errors.GlobalErrorType
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
assert.parseError = (error: unknown) =>
|
|
112
|
-
/* v8 ignore next */
|
|
113
|
-
error as assert.ErrorType
|
|
114
|
-
|
|
115
111
|
/**
|
|
116
112
|
* Deserializes a {@link ox#TransactionEnvelopeEip4844.TransactionEnvelopeEip4844} from its serialized form.
|
|
117
113
|
*
|
|
@@ -233,10 +229,6 @@ export declare namespace deserialize {
|
|
|
233
229
|
type ErrorType = Errors.GlobalErrorType
|
|
234
230
|
}
|
|
235
231
|
|
|
236
|
-
deserialize.parseError = (error: unknown) =>
|
|
237
|
-
/* v8 ignore next */
|
|
238
|
-
error as deserialize.ErrorType
|
|
239
|
-
|
|
240
232
|
/**
|
|
241
233
|
* Converts an arbitrary transaction object into an EIP-4844 Transaction Envelope.
|
|
242
234
|
*
|
|
@@ -386,10 +378,6 @@ export declare namespace from {
|
|
|
386
378
|
| Errors.GlobalErrorType
|
|
387
379
|
}
|
|
388
380
|
|
|
389
|
-
from.parseError = (error: unknown) =>
|
|
390
|
-
/* v8 ignore next */
|
|
391
|
-
error as from.ErrorType
|
|
392
|
-
|
|
393
381
|
/**
|
|
394
382
|
* Returns the payload to sign for a {@link ox#TransactionEnvelopeEip4844.TransactionEnvelopeEip4844}.
|
|
395
383
|
*
|
|
@@ -436,10 +424,6 @@ export declare namespace getSignPayload {
|
|
|
436
424
|
type ErrorType = hash.ErrorType | Errors.GlobalErrorType
|
|
437
425
|
}
|
|
438
426
|
|
|
439
|
-
getSignPayload.parseError = (error: unknown) =>
|
|
440
|
-
/* v8 ignore next */
|
|
441
|
-
error as getSignPayload.ErrorType
|
|
442
|
-
|
|
443
427
|
/**
|
|
444
428
|
* Hashes a {@link ox#TransactionEnvelopeEip4844.TransactionEnvelopeEip4844}. This is the "transaction hash".
|
|
445
429
|
*
|
|
@@ -504,10 +488,6 @@ export declare namespace hash {
|
|
|
504
488
|
| Errors.GlobalErrorType
|
|
505
489
|
}
|
|
506
490
|
|
|
507
|
-
hash.parseError = (error: unknown) =>
|
|
508
|
-
/* v8 ignore next */
|
|
509
|
-
error as hash.ErrorType
|
|
510
|
-
|
|
511
491
|
/**
|
|
512
492
|
* Serializes a {@link ox#TransactionEnvelopeEip4844.TransactionEnvelopeEip4844}.
|
|
513
493
|
*
|
|
@@ -650,10 +630,6 @@ export declare namespace serialize {
|
|
|
650
630
|
| Errors.GlobalErrorType
|
|
651
631
|
}
|
|
652
632
|
|
|
653
|
-
serialize.parseError = (error: unknown) =>
|
|
654
|
-
/* v8 ignore next */
|
|
655
|
-
error as serialize.ErrorType
|
|
656
|
-
|
|
657
633
|
/**
|
|
658
634
|
* Converts an {@link ox#TransactionEnvelopeEip4844.TransactionEnvelopeEip4844} to an {@link ox#TransactionEnvelopeEip4844.Rpc}.
|
|
659
635
|
*
|
|
@@ -722,10 +698,6 @@ export declare namespace toRpc {
|
|
|
722
698
|
export type ErrorType = Signature.extract.ErrorType | Errors.GlobalErrorType
|
|
723
699
|
}
|
|
724
700
|
|
|
725
|
-
toRpc.parseError = (error: unknown) =>
|
|
726
|
-
/* v8 ignore next */
|
|
727
|
-
error as toRpc.ErrorType
|
|
728
|
-
|
|
729
701
|
/**
|
|
730
702
|
* Validates a {@link ox#TransactionEnvelopeEip4844.TransactionEnvelopeEip4844}. Returns `true` if the envelope is valid, `false` otherwise.
|
|
731
703
|
*
|
|
@@ -758,7 +730,3 @@ export function validate(
|
|
|
758
730
|
export declare namespace validate {
|
|
759
731
|
type ErrorType = Errors.GlobalErrorType
|
|
760
732
|
}
|
|
761
|
-
|
|
762
|
-
validate.parseError = (error: unknown) =>
|
|
763
|
-
/* v8 ignore next */
|
|
764
|
-
error as validate.ErrorType
|
|
@@ -94,10 +94,6 @@ export declare namespace assert {
|
|
|
94
94
|
| Errors.GlobalErrorType
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
assert.parseError = (error: unknown) =>
|
|
98
|
-
/* v8 ignore next */
|
|
99
|
-
error as assert.ErrorType
|
|
100
|
-
|
|
101
97
|
/**
|
|
102
98
|
* Deserializes a {@link ox#TransactionEnvelopeEip7702.TransactionEnvelopeEip7702} from its serialized form.
|
|
103
99
|
*
|
|
@@ -203,10 +199,6 @@ export declare namespace deserialize {
|
|
|
203
199
|
type ErrorType = Errors.GlobalErrorType
|
|
204
200
|
}
|
|
205
201
|
|
|
206
|
-
deserialize.parseError = (error: unknown) =>
|
|
207
|
-
/* v8 ignore next */
|
|
208
|
-
error as deserialize.ErrorType
|
|
209
|
-
|
|
210
202
|
/**
|
|
211
203
|
* Converts an arbitrary transaction object into an EIP-7702 Transaction Envelope.
|
|
212
204
|
*
|
|
@@ -355,10 +347,6 @@ export declare namespace from {
|
|
|
355
347
|
| Errors.GlobalErrorType
|
|
356
348
|
}
|
|
357
349
|
|
|
358
|
-
from.parseError = (error: unknown) =>
|
|
359
|
-
/* v8 ignore next */
|
|
360
|
-
error as from.ErrorType
|
|
361
|
-
|
|
362
350
|
/**
|
|
363
351
|
* Returns the payload to sign for a {@link ox#TransactionEnvelopeEip7702.TransactionEnvelopeEip7702}.
|
|
364
352
|
*
|
|
@@ -401,10 +389,6 @@ export declare namespace getSignPayload {
|
|
|
401
389
|
type ErrorType = hash.ErrorType | Errors.GlobalErrorType
|
|
402
390
|
}
|
|
403
391
|
|
|
404
|
-
getSignPayload.parseError = (error: unknown) =>
|
|
405
|
-
/* v8 ignore next */
|
|
406
|
-
error as getSignPayload.ErrorType
|
|
407
|
-
|
|
408
392
|
/**
|
|
409
393
|
* Hashes a {@link ox#TransactionEnvelopeEip7702.TransactionEnvelopeEip7702}. This is the "transaction hash".
|
|
410
394
|
*
|
|
@@ -470,10 +454,6 @@ export declare namespace hash {
|
|
|
470
454
|
| Errors.GlobalErrorType
|
|
471
455
|
}
|
|
472
456
|
|
|
473
|
-
hash.parseError = (error: unknown) =>
|
|
474
|
-
/* v8 ignore next */
|
|
475
|
-
error as hash.ErrorType
|
|
476
|
-
|
|
477
457
|
/**
|
|
478
458
|
* Serializes a {@link ox#TransactionEnvelopeEip7702.TransactionEnvelopeEip7702}.
|
|
479
459
|
*
|
|
@@ -596,10 +576,6 @@ export declare namespace serialize {
|
|
|
596
576
|
| Errors.GlobalErrorType
|
|
597
577
|
}
|
|
598
578
|
|
|
599
|
-
serialize.parseError = (error: unknown) =>
|
|
600
|
-
/* v8 ignore next */
|
|
601
|
-
error as serialize.ErrorType
|
|
602
|
-
|
|
603
579
|
/**
|
|
604
580
|
* Validates a {@link ox#TransactionEnvelopeEip7702.TransactionEnvelopeEip7702}. Returns `true` if the envelope is valid, `false` otherwise.
|
|
605
581
|
*
|
|
@@ -633,7 +609,3 @@ export function validate(
|
|
|
633
609
|
export declare namespace validate {
|
|
634
610
|
type ErrorType = Errors.GlobalErrorType
|
|
635
611
|
}
|
|
636
|
-
|
|
637
|
-
validate.parseError = (error: unknown) =>
|
|
638
|
-
/* v8 ignore next */
|
|
639
|
-
error as validate.ErrorType
|
|
@@ -79,10 +79,6 @@ export declare namespace assert {
|
|
|
79
79
|
| Errors.GlobalErrorType
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
assert.parseError = (error: unknown) =>
|
|
83
|
-
/* v8 ignore next */
|
|
84
|
-
error as assert.ErrorType
|
|
85
|
-
|
|
86
82
|
/**
|
|
87
83
|
* Deserializes a {@link ox#TransactionEnvelopeLegacy.TransactionEnvelopeLegacy} from its serialized form.
|
|
88
84
|
*
|
|
@@ -175,10 +171,6 @@ export declare namespace deserialize {
|
|
|
175
171
|
type ErrorType = Errors.GlobalErrorType
|
|
176
172
|
}
|
|
177
173
|
|
|
178
|
-
deserialize.parseError = (error: unknown) =>
|
|
179
|
-
/* v8 ignore next */
|
|
180
|
-
error as deserialize.ErrorType
|
|
181
|
-
|
|
182
174
|
/**
|
|
183
175
|
* Converts an arbitrary transaction object into a legacy Transaction Envelope.
|
|
184
176
|
*
|
|
@@ -319,10 +311,6 @@ export declare namespace from {
|
|
|
319
311
|
| Errors.GlobalErrorType
|
|
320
312
|
}
|
|
321
313
|
|
|
322
|
-
from.parseError = (error: unknown) =>
|
|
323
|
-
/* v8 ignore next */
|
|
324
|
-
error as from.ErrorType
|
|
325
|
-
|
|
326
314
|
/**
|
|
327
315
|
* Returns the payload to sign for a {@link ox#TransactionEnvelopeLegacy.TransactionEnvelopeLegacy}.
|
|
328
316
|
*
|
|
@@ -363,10 +351,6 @@ export declare namespace getSignPayload {
|
|
|
363
351
|
type ErrorType = hash.ErrorType | Errors.GlobalErrorType
|
|
364
352
|
}
|
|
365
353
|
|
|
366
|
-
getSignPayload.parseError = (error: unknown) =>
|
|
367
|
-
/* v8 ignore next */
|
|
368
|
-
error as getSignPayload.ErrorType
|
|
369
|
-
|
|
370
354
|
/**
|
|
371
355
|
* Hashes a {@link ox#TransactionEnvelopeLegacy.TransactionEnvelopeLegacy}. This is the "transaction hash".
|
|
372
356
|
*
|
|
@@ -431,10 +415,6 @@ export declare namespace hash {
|
|
|
431
415
|
| Errors.GlobalErrorType
|
|
432
416
|
}
|
|
433
417
|
|
|
434
|
-
hash.parseError = (error: unknown) =>
|
|
435
|
-
/* v8 ignore next */
|
|
436
|
-
error as hash.ErrorType
|
|
437
|
-
|
|
438
418
|
/**
|
|
439
419
|
* Serializes a {@link ox#TransactionEnvelopeLegacy.TransactionEnvelopeLegacy}.
|
|
440
420
|
*
|
|
@@ -565,10 +545,6 @@ export declare namespace serialize {
|
|
|
565
545
|
| Errors.GlobalErrorType
|
|
566
546
|
}
|
|
567
547
|
|
|
568
|
-
serialize.parseError = (error: unknown) =>
|
|
569
|
-
/* v8 ignore next */
|
|
570
|
-
error as serialize.ErrorType
|
|
571
|
-
|
|
572
548
|
/**
|
|
573
549
|
* Converts an {@link ox#TransactionEnvelopeLegacy.TransactionEnvelopeLegacy} to an {@link ox#TransactionEnvelopeLegacy.Rpc}.
|
|
574
550
|
*
|
|
@@ -632,10 +608,6 @@ export declare namespace toRpc {
|
|
|
632
608
|
export type ErrorType = Signature.extract.ErrorType | Errors.GlobalErrorType
|
|
633
609
|
}
|
|
634
610
|
|
|
635
|
-
toRpc.parseError = (error: unknown) =>
|
|
636
|
-
/* v8 ignore next */
|
|
637
|
-
error as toRpc.ErrorType
|
|
638
|
-
|
|
639
611
|
/**
|
|
640
612
|
* Validates a {@link ox#TransactionEnvelopeLegacy.TransactionEnvelopeLegacy}. Returns `true` if the envelope is valid, `false` otherwise.
|
|
641
613
|
*
|
|
@@ -668,7 +640,3 @@ export function validate(
|
|
|
668
640
|
export declare namespace validate {
|
|
669
641
|
type ErrorType = Errors.GlobalErrorType
|
|
670
642
|
}
|
|
671
|
-
|
|
672
|
-
validate.parseError = (error: unknown) =>
|
|
673
|
-
/* v8 ignore next */
|
|
674
|
-
error as validate.ErrorType
|
|
@@ -249,10 +249,6 @@ export declare namespace fromRpc {
|
|
|
249
249
|
export type ErrorType = Log.fromRpc.ErrorType | Errors.GlobalErrorType
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
fromRpc.parseError = (error: unknown) =>
|
|
253
|
-
/* v8 ignore next */
|
|
254
|
-
error as fromRpc.ErrorType
|
|
255
|
-
|
|
256
252
|
/**
|
|
257
253
|
* Converts a {@link ox#TransactionReceipt.TransactionReceipt} to a {@link ox#TransactionReceipt.Rpc}.
|
|
258
254
|
*
|
|
@@ -335,7 +331,3 @@ export function toRpc(receipt: TransactionReceipt): Rpc {
|
|
|
335
331
|
export declare namespace toRpc {
|
|
336
332
|
export type ErrorType = Hex.fromNumber.ErrorType | Errors.GlobalErrorType
|
|
337
333
|
}
|
|
338
|
-
|
|
339
|
-
toRpc.parseError = (error: unknown) =>
|
|
340
|
-
/* v8 ignore next */
|
|
341
|
-
error as toRpc.ErrorType
|