import { Bytes, HexString, Numbers, TransactionReceipt, Web3ValidationErrorObject } from '@theqrl/web3-types'; import { InvalidValueError, BaseWeb3Error } from '../web3_error_base.js'; export declare class TransactionError extends BaseWeb3Error { receipt?: ReceiptType | undefined; code: number; constructor(message: string, receipt?: ReceiptType | undefined); toJSON(): { receipt: ReceiptType | undefined; name: string; code: number; message: string; innerError: Error | Error[] | undefined; }; } export declare class RevertInstructionError extends BaseWeb3Error { reason: string; signature: string; code: number; constructor(reason: string, signature: string); toJSON(): { reason: string; signature: string; name: string; code: number; message: string; innerError: Error | Error[] | undefined; }; } export declare class TransactionRevertInstructionError extends BaseWeb3Error { reason: string; signature?: string | undefined; receipt?: ReceiptType | undefined; data?: string | undefined; code: number; constructor(reason: string, signature?: string | undefined, receipt?: ReceiptType | undefined, data?: string | undefined); toJSON(): { reason: string; signature: string | undefined; receipt: ReceiptType | undefined; data: string | undefined; name: string; code: number; message: string; innerError: Error | Error[] | undefined; }; } /** * This error is used when a transaction to a smart contract fails and * a custom user error (https://blog.soliditylang.org/2021/04/21/custom-errors/) * is able to be parsed from the revert reason */ export declare class TransactionRevertWithCustomError extends TransactionRevertInstructionError { reason: string; customErrorName: string; customErrorDecodedSignature: string; customErrorArguments: Record; signature?: string | undefined; receipt?: ReceiptType | undefined; data?: string | undefined; code: number; constructor(reason: string, customErrorName: string, customErrorDecodedSignature: string, customErrorArguments: Record, signature?: string | undefined, receipt?: ReceiptType | undefined, data?: string | undefined); toJSON(): { reason: string; customErrorName: string; customErrorDecodedSignature: string; customErrorArguments: Record; signature: string | undefined; receipt: ReceiptType | undefined; data: string | undefined; name: string; code: number; message: string; innerError: Error | Error[] | undefined; }; } export declare class NoContractAddressFoundError extends TransactionError { constructor(receipt: TransactionReceipt); toJSON(): { receipt: TransactionReceipt | undefined; name: string; code: number; message: string; innerError: Error | Error[] | undefined; }; } export declare class ContractCodeNotStoredError extends TransactionError { constructor(receipt: TransactionReceipt); } export declare class TransactionRevertedWithoutReasonError extends TransactionError { constructor(receipt?: ReceiptType); } export declare class TransactionOutOfGasError extends TransactionError { constructor(receipt: TransactionReceipt); } export declare class UndefinedRawTransactionError extends TransactionError { constructor(); } export declare class TransactionNotFound extends TransactionError { constructor(); } export declare class InvalidTransactionWithSender extends InvalidValueError { code: number; constructor(value: unknown); } export declare class InvalidTransactionWithReceiver extends InvalidValueError { code: number; constructor(value: unknown); } export declare class InvalidTransactionCall extends InvalidValueError { code: number; constructor(value: unknown); } export declare class MissingCustomChainError extends InvalidValueError { code: number; constructor(); } export declare class MissingCustomChainIdError extends InvalidValueError { code: number; constructor(); } export declare class ChainIdMismatchError extends InvalidValueError { code: number; constructor(value: { txChainId: unknown; customChainId: unknown; }); } export declare class ChainMismatchError extends InvalidValueError { code: number; constructor(value: { txChain: unknown; baseChain: unknown; }); } export declare class HardforkMismatchError extends InvalidValueError { code: number; constructor(value: { txHardfork: unknown; commonHardfork: unknown; }); } export declare class CommonOrChainAndHardforkError extends InvalidValueError { code: number; constructor(); } export declare class MissingChainOrHardforkError extends InvalidValueError { code: number; constructor(value: { chain: string | undefined; hardfork: string | undefined; }); } export declare class MissingGasInnerError extends BaseWeb3Error { code: number; constructor(); } export declare class MissingGasError extends InvalidValueError { code: number; constructor(value: { gas: Numbers | undefined; maxPriorityFeePerGas: Numbers | undefined; maxFeePerGas: Numbers | undefined; }); } export declare class InvalidGas extends InvalidValueError { code: number; constructor(value: { gas: Numbers | undefined; }); } export declare class InvalidMaxPriorityFeePerGasOrMaxFeePerGas extends InvalidValueError { code: number; constructor(value: { maxPriorityFeePerGas: Numbers | undefined; maxFeePerGas: Numbers | undefined; }); } export declare class InvalidTransactionObjectError extends InvalidValueError { code: number; constructor(value: unknown); } export declare class InvalidNonceOrChainIdError extends InvalidValueError { code: number; constructor(value: { nonce: Numbers | undefined; chainId: Numbers | undefined; }); } export declare class UnableToPopulateNonceError extends InvalidValueError { code: number; constructor(); } export declare class UnsupportedTransactionTypeError extends InvalidValueError { code: number; constructor(value: unknown); } export declare class TransactionDataAndInputError extends InvalidValueError { code: number; constructor(value: { data: HexString | undefined; input: HexString | undefined; }); } export declare class TransactionSendTimeoutError extends BaseWeb3Error { code: number; constructor(value: { numberOfSeconds: number; transactionHash?: Bytes; }); } export declare class TransactionPollingTimeoutError extends BaseWeb3Error { code: number; constructor(value: { numberOfSeconds: number; transactionHash: Bytes; }); } export declare class TransactionBlockTimeoutError extends BaseWeb3Error { code: number; constructor(value: { starterBlockNumber: number; numberOfBlocks: number; transactionHash?: Bytes; }); } export declare class TransactionMissingReceiptOrBlockHashError extends InvalidValueError { code: number; constructor(value: { receipt: TransactionReceipt; blockHash: Bytes; transactionHash: Bytes; }); } export declare class TransactionReceiptMissingBlockNumberError extends InvalidValueError { code: number; constructor(value: { receipt: TransactionReceipt; }); } export declare class TransactionSigningError extends BaseWeb3Error { code: number; constructor(errorDetails: string); } export declare class LocalWalletNotAvailableError extends InvalidValueError { code: number; constructor(); } export declare class InvalidPropertiesForTransactionTypeError extends BaseWeb3Error { code: number; constructor(validationError: Web3ValidationErrorObject[], txType: '0x2'); }