ox 0.1.8 → 0.2.1
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 +21 -15
- 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 +0 -8
- 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 +3 -3
- 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 +20 -29
- 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 +0 -22
- 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 +3 -3
- 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 +0 -24
- 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/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 +17 -38
- package/core/ValidatorData.ts +0 -7
- package/core/Value.ts +0 -18
- package/core/WebAuthnP256.ts +0 -31
- 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 +3 -3
- package/package.json +1 -1
- package/version.ts +1 -1
package/core/Mnemonic.ts
CHANGED
|
@@ -58,10 +58,6 @@ export declare namespace random {
|
|
|
58
58
|
type ErrorType = Errors.GlobalErrorType
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
random.parseError = (error: unknown) =>
|
|
62
|
-
/* v8 ignore next */
|
|
63
|
-
error as random.ErrorType
|
|
64
|
-
|
|
65
61
|
/**
|
|
66
62
|
* Converts a mnemonic to a HD Key.
|
|
67
63
|
*
|
|
@@ -107,10 +103,6 @@ export declare namespace toHdKey {
|
|
|
107
103
|
type ErrorType = Errors.GlobalErrorType
|
|
108
104
|
}
|
|
109
105
|
|
|
110
|
-
toHdKey.parseError = (error: unknown) =>
|
|
111
|
-
/* v8 ignore next */
|
|
112
|
-
error as toHdKey.ErrorType
|
|
113
|
-
|
|
114
106
|
/**
|
|
115
107
|
* Converts a mnemonic to a private key.
|
|
116
108
|
*
|
|
@@ -169,10 +161,6 @@ export declare namespace toPrivateKey {
|
|
|
169
161
|
type ErrorType = Errors.GlobalErrorType
|
|
170
162
|
}
|
|
171
163
|
|
|
172
|
-
toPrivateKey.parseError = (error: unknown) =>
|
|
173
|
-
/* v8 ignore next */
|
|
174
|
-
error as toPrivateKey.ErrorType
|
|
175
|
-
|
|
176
164
|
/**
|
|
177
165
|
* Converts a mnemonic to a master seed.
|
|
178
166
|
*
|
|
@@ -214,10 +202,6 @@ export declare namespace toSeed {
|
|
|
214
202
|
type ErrorType = Errors.GlobalErrorType
|
|
215
203
|
}
|
|
216
204
|
|
|
217
|
-
toSeed.parseError = (error: unknown) =>
|
|
218
|
-
/* v8 ignore next */
|
|
219
|
-
error as toSeed.ErrorType
|
|
220
|
-
|
|
221
205
|
/**
|
|
222
206
|
* Checks if a mnemonic is valid, given a wordlist.
|
|
223
207
|
*
|
|
@@ -243,7 +227,3 @@ export function validate(mnemonic: string, wordlist: string[]): boolean {
|
|
|
243
227
|
export declare namespace validate {
|
|
244
228
|
type ErrorType = Errors.GlobalErrorType
|
|
245
229
|
}
|
|
246
|
-
|
|
247
|
-
validate.parseError = (error: unknown) =>
|
|
248
|
-
/* v8 ignore next */
|
|
249
|
-
error as validate.ErrorType
|
package/core/P256.ts
CHANGED
|
@@ -129,10 +129,6 @@ export declare namespace recoverPublicKey {
|
|
|
129
129
|
| Errors.GlobalErrorType
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
recoverPublicKey.parseError = (error: unknown) =>
|
|
133
|
-
/* v8 ignore next */
|
|
134
|
-
error as recoverPublicKey.ErrorType
|
|
135
|
-
|
|
136
132
|
/**
|
|
137
133
|
* Signs the payload with the provided private key and returns a P256 signature.
|
|
138
134
|
*
|
|
@@ -176,9 +172,6 @@ export declare namespace sign {
|
|
|
176
172
|
type ErrorType = Bytes.fromHex.ErrorType | Errors.GlobalErrorType
|
|
177
173
|
}
|
|
178
174
|
|
|
179
|
-
/* v8 ignore next */
|
|
180
|
-
sign.parseError = (error: unknown) => error as sign.ErrorType
|
|
181
|
-
|
|
182
175
|
/**
|
|
183
176
|
* Verifies a payload was signed by the provided public key.
|
|
184
177
|
*
|
|
@@ -225,6 +218,3 @@ export declare namespace verify {
|
|
|
225
218
|
|
|
226
219
|
type ErrorType = Errors.GlobalErrorType
|
|
227
220
|
}
|
|
228
|
-
|
|
229
|
-
/* v8 ignore next */
|
|
230
|
-
verify.parseError = (error: unknown) => error as verify.ErrorType
|
package/core/PersonalMessage.ts
CHANGED
|
@@ -36,9 +36,6 @@ export declare namespace encode {
|
|
|
36
36
|
| Errors.GlobalErrorType
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
/* v8 ignore next */
|
|
40
|
-
encode.parseError = (error: unknown) => error as encode.ErrorType
|
|
41
|
-
|
|
42
39
|
/**
|
|
43
40
|
* Gets the payload to use for signing an [ERC-191 formatted](https://eips.ethereum.org/EIPS/eip-191#version-0x45-e) personal message.
|
|
44
41
|
*
|
|
@@ -64,7 +61,3 @@ export declare namespace getSignPayload {
|
|
|
64
61
|
| encode.ErrorType
|
|
65
62
|
| Errors.GlobalErrorType
|
|
66
63
|
}
|
|
67
|
-
|
|
68
|
-
/* v8 ignore next */
|
|
69
|
-
getSignPayload.parseError = (error: unknown) =>
|
|
70
|
-
error as getSignPayload.ErrorType
|
package/core/Provider.ts
CHANGED
|
@@ -203,10 +203,6 @@ export declare namespace createEmitter {
|
|
|
203
203
|
type ErrorType = Errors.GlobalErrorType
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
createEmitter.parseError = (error: unknown) =>
|
|
207
|
-
/* v8 ignore next */
|
|
208
|
-
error as createEmitter.ErrorType
|
|
209
|
-
|
|
210
206
|
/**
|
|
211
207
|
* Instantiates an [EIP-1193](https://eips.ethereum.org/EIPS/eip-1193) {@link ox#Provider.Provider}
|
|
212
208
|
* from an arbitrary [EIP-1193 Provider](https://eips.ethereum.org/EIPS/eip-1193) interface.
|
|
@@ -395,9 +391,6 @@ export declare namespace from {
|
|
|
395
391
|
type ErrorType = IsUndefinedError | Errors.GlobalErrorType
|
|
396
392
|
}
|
|
397
393
|
|
|
398
|
-
/* v8 ignore next */
|
|
399
|
-
from.parseError = (error: unknown) => error as from.ErrorType
|
|
400
|
-
|
|
401
394
|
/** Thrown when the provider is undefined. */
|
|
402
395
|
export class IsUndefinedError extends Errors.BaseError {
|
|
403
396
|
override readonly name = 'Provider.IsUndefinedError'
|
package/core/PublicKey.ts
CHANGED
|
@@ -123,10 +123,6 @@ export declare namespace compress {
|
|
|
123
123
|
type ErrorType = Errors.GlobalErrorType
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
compress.parseError = (error: unknown) =>
|
|
127
|
-
/* v8 ignore next */
|
|
128
|
-
error as compress.ErrorType
|
|
129
|
-
|
|
130
126
|
/**
|
|
131
127
|
* Instantiates a typed {@link ox#PublicKey.PublicKey} object from a {@link ox#PublicKey.PublicKey}, {@link ox#Bytes.Bytes}, or {@link ox#Hex.Hex}.
|
|
132
128
|
*
|
|
@@ -217,10 +213,6 @@ export declare namespace from {
|
|
|
217
213
|
type ErrorType = assert.ErrorType | Errors.GlobalErrorType
|
|
218
214
|
}
|
|
219
215
|
|
|
220
|
-
from.parseError = (error: unknown) =>
|
|
221
|
-
/* v8 ignore next */
|
|
222
|
-
error as from.ErrorType
|
|
223
|
-
|
|
224
216
|
/**
|
|
225
217
|
* Deserializes a {@link ox#PublicKey.PublicKey} from a {@link ox#Bytes.Bytes} value.
|
|
226
218
|
*
|
|
@@ -251,10 +243,6 @@ export declare namespace fromBytes {
|
|
|
251
243
|
| Errors.GlobalErrorType
|
|
252
244
|
}
|
|
253
245
|
|
|
254
|
-
fromBytes.parseError = (error: unknown) =>
|
|
255
|
-
/* v8 ignore next */
|
|
256
|
-
error as fromBytes.ErrorType
|
|
257
|
-
|
|
258
246
|
/**
|
|
259
247
|
* Deserializes a {@link ox#PublicKey.PublicKey} from a {@link ox#Hex.Hex} value.
|
|
260
248
|
*
|
|
@@ -327,10 +315,6 @@ export declare namespace fromHex {
|
|
|
327
315
|
type ErrorType = Hex.slice.ErrorType | Errors.GlobalErrorType
|
|
328
316
|
}
|
|
329
317
|
|
|
330
|
-
fromHex.parseError = (error: unknown) =>
|
|
331
|
-
/* v8 ignore next */
|
|
332
|
-
error as fromHex.ErrorType
|
|
333
|
-
|
|
334
318
|
/**
|
|
335
319
|
* Serializes a {@link ox#PublicKey.PublicKey} to {@link ox#Bytes.Bytes}.
|
|
336
320
|
*
|
|
@@ -373,10 +357,6 @@ export declare namespace toBytes {
|
|
|
373
357
|
| Errors.GlobalErrorType
|
|
374
358
|
}
|
|
375
359
|
|
|
376
|
-
toBytes.parseError = (error: unknown) =>
|
|
377
|
-
/* v8 ignore next */
|
|
378
|
-
error as toBytes.ErrorType
|
|
379
|
-
|
|
380
360
|
/**
|
|
381
361
|
* Serializes a {@link ox#PublicKey.PublicKey} to {@link ox#Hex.Hex}.
|
|
382
362
|
*
|
|
@@ -428,10 +408,6 @@ export declare namespace toHex {
|
|
|
428
408
|
type ErrorType = Hex.fromNumber.ErrorType | Errors.GlobalErrorType
|
|
429
409
|
}
|
|
430
410
|
|
|
431
|
-
toHex.parseError = (error: unknown) =>
|
|
432
|
-
/* v8 ignore next */
|
|
433
|
-
error as toHex.ErrorType
|
|
434
|
-
|
|
435
411
|
/**
|
|
436
412
|
* Validates a {@link ox#PublicKey.PublicKey}. Returns `true` if valid, `false` otherwise.
|
|
437
413
|
*
|
package/core/Rlp.ts
CHANGED
|
@@ -27,10 +27,6 @@ export declare namespace toBytes {
|
|
|
27
27
|
type ErrorType = to.ErrorType
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
toBytes.parseError = (error: unknown) =>
|
|
31
|
-
/* v8 ignore next */
|
|
32
|
-
error as toBytes.ErrorType
|
|
33
|
-
|
|
34
30
|
/**
|
|
35
31
|
* Decodes a Recursive-Length Prefix (RLP) value into a {@link ox#Hex.Hex} value.
|
|
36
32
|
*
|
|
@@ -52,10 +48,6 @@ export declare namespace toHex {
|
|
|
52
48
|
type ErrorType = to.ErrorType
|
|
53
49
|
}
|
|
54
50
|
|
|
55
|
-
toHex.parseError = (error: unknown) =>
|
|
56
|
-
/* v8 ignore next */
|
|
57
|
-
error as toHex.ErrorType
|
|
58
|
-
|
|
59
51
|
/////////////////////////////////////////////////////////////////////////////////
|
|
60
52
|
// Internal
|
|
61
53
|
/////////////////////////////////////////////////////////////////////////////////
|
|
@@ -99,9 +91,6 @@ export declare namespace to {
|
|
|
99
91
|
}
|
|
100
92
|
|
|
101
93
|
/** @internal */
|
|
102
|
-
to.parseError = (error: unknown) =>
|
|
103
|
-
/* v8 ignore next */
|
|
104
|
-
error as to.ErrorType
|
|
105
94
|
|
|
106
95
|
/** @internal */
|
|
107
96
|
export function decodeRlpCursor<to extends 'Hex' | 'Bytes' = 'Hex'>(
|
|
@@ -232,10 +221,6 @@ export declare namespace from {
|
|
|
232
221
|
| Errors.GlobalErrorType
|
|
233
222
|
}
|
|
234
223
|
|
|
235
|
-
from.parseError = (error: unknown) =>
|
|
236
|
-
/* v8 ignore next */
|
|
237
|
-
error as from.ErrorType
|
|
238
|
-
|
|
239
224
|
/**
|
|
240
225
|
* Encodes a {@link ox#Bytes.Bytes} value into a Recursive-Length Prefix (RLP) value.
|
|
241
226
|
*
|
|
@@ -269,10 +254,6 @@ export declare namespace fromBytes {
|
|
|
269
254
|
type ErrorType = from.ErrorType | Errors.GlobalErrorType
|
|
270
255
|
}
|
|
271
256
|
|
|
272
|
-
fromBytes.parseError = (error: unknown) =>
|
|
273
|
-
/* v8 ignore next */
|
|
274
|
-
error as fromBytes.ErrorType
|
|
275
|
-
|
|
276
257
|
/**
|
|
277
258
|
* Encodes a {@link ox#Hex.Hex} value into a Recursive-Length Prefix (RLP) value.
|
|
278
259
|
*
|
|
@@ -306,10 +287,6 @@ export declare namespace fromHex {
|
|
|
306
287
|
type ErrorType = from.ErrorType | Errors.GlobalErrorType
|
|
307
288
|
}
|
|
308
289
|
|
|
309
|
-
fromHex.parseError = (error: unknown) =>
|
|
310
|
-
/* v8 ignore next */
|
|
311
|
-
error as fromHex.ErrorType
|
|
312
|
-
|
|
313
290
|
/////////////////////////////////////////////////////////////////////////////////
|
|
314
291
|
// Internal
|
|
315
292
|
/////////////////////////////////////////////////////////////////////////////////
|
package/core/RpcRequest.ts
CHANGED
|
@@ -118,10 +118,6 @@ export declare namespace createStore {
|
|
|
118
118
|
type ErrorType = Errors.GlobalErrorType
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
createStore.parseError = (error: unknown) =>
|
|
122
|
-
/* v8 ignore next */
|
|
123
|
-
error as createStore.ErrorType
|
|
124
|
-
|
|
125
121
|
/**
|
|
126
122
|
* A type-safe interface to build a JSON-RPC request object as per the [JSON-RPC 2.0 specification](https://www.jsonrpc.org/specification#request_object).
|
|
127
123
|
*
|
|
@@ -186,7 +182,3 @@ export declare namespace from {
|
|
|
186
182
|
|
|
187
183
|
type ErrorType = Errors.GlobalErrorType
|
|
188
184
|
}
|
|
189
|
-
|
|
190
|
-
from.parseError = (error: unknown) =>
|
|
191
|
-
/* v8 ignore next */
|
|
192
|
-
error as from.ErrorType
|
package/core/RpcResponse.ts
CHANGED
|
@@ -283,10 +283,6 @@ export declare namespace parse {
|
|
|
283
283
|
| Errors.GlobalErrorType
|
|
284
284
|
}
|
|
285
285
|
|
|
286
|
-
parse.parseError = (error: unknown) =>
|
|
287
|
-
/* v8 ignore next */
|
|
288
|
-
error as parse.ErrorType
|
|
289
|
-
|
|
290
286
|
export type BaseErrorType = BaseError & { name: 'BaseError' }
|
|
291
287
|
|
|
292
288
|
/** Thrown when a JSON-RPC error has occurred. */
|
package/core/RpcTransport.ts
CHANGED
|
@@ -161,10 +161,6 @@ export declare namespace fromHttp {
|
|
|
161
161
|
| Errors.GlobalErrorType
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
fromHttp.parseError = (error: unknown) =>
|
|
165
|
-
/* v8 ignore next */
|
|
166
|
-
error as fromHttp.ErrorType
|
|
167
|
-
|
|
168
164
|
/** Thrown when a HTTP request fails. */
|
|
169
165
|
export class HttpError extends Errors.BaseError {
|
|
170
166
|
override readonly name = 'RpcTransport.HttpError'
|
package/core/Secp256k1.ts
CHANGED
|
@@ -125,10 +125,6 @@ export declare namespace recoverAddress {
|
|
|
125
125
|
| Errors.GlobalErrorType
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
recoverAddress.parseError = (error: unknown) =>
|
|
129
|
-
/* v8 ignore next */
|
|
130
|
-
error as recoverAddress.ErrorType
|
|
131
|
-
|
|
132
128
|
/**
|
|
133
129
|
* Recovers the signing public key from the signed payload and signature.
|
|
134
130
|
*
|
|
@@ -174,10 +170,6 @@ export declare namespace recoverPublicKey {
|
|
|
174
170
|
| Errors.GlobalErrorType
|
|
175
171
|
}
|
|
176
172
|
|
|
177
|
-
recoverPublicKey.parseError = (error: unknown) =>
|
|
178
|
-
/* v8 ignore next */
|
|
179
|
-
error as recoverPublicKey.ErrorType
|
|
180
|
-
|
|
181
173
|
/**
|
|
182
174
|
* Signs the payload with the provided private key.
|
|
183
175
|
*
|
|
@@ -221,10 +213,6 @@ export declare namespace sign {
|
|
|
221
213
|
type ErrorType = Bytes.from.ErrorType | Errors.GlobalErrorType
|
|
222
214
|
}
|
|
223
215
|
|
|
224
|
-
sign.parseError = (error: unknown) =>
|
|
225
|
-
/* v8 ignore next */
|
|
226
|
-
error as sign.ErrorType
|
|
227
|
-
|
|
228
216
|
/**
|
|
229
217
|
* Verifies a payload was signed by the provided address.
|
|
230
218
|
*
|
|
@@ -298,7 +286,3 @@ export declare namespace verify {
|
|
|
298
286
|
|
|
299
287
|
type ErrorType = Errors.GlobalErrorType
|
|
300
288
|
}
|
|
301
|
-
|
|
302
|
-
verify.parseError = (error: unknown) =>
|
|
303
|
-
/* v8 ignore next */
|
|
304
|
-
error as verify.ErrorType
|
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
|