import { TAddress } from '../../models/TAddress'; import { TAccount } from '../../models/TAccount'; import { ClientEventsStream, TClientEventsStreamData } from '../../clients/ClientEventsStream'; import { ContractBase } from '../../contracts/ContractBase'; import { TxWriter } from '../../txs/TxWriter'; import { ITxLogItem } from '../../txs/receipt/ITxLogItem'; import { Web3Client } from '../../clients/Web3Client'; import { IBlockchainExplorer } from '../../explorer/IBlockchainExplorer'; import { SubjectStream } from '../../class/SubjectStream'; import type { TAbiItem } from '../../types/TAbi'; import type { TEth } from '../../models/TEth'; import type { TOverrideReturns } from '../../utils/types'; export declare namespace MinimalForwarderErrors { interface InvalidShortString { type: 'InvalidShortString'; params: {}; } interface StringTooLong { type: 'StringTooLong'; params: { str: string; }; } type Error = InvalidShortString | StringTooLong; } export declare class MinimalForwarder extends ContractBase { address: TEth.Address; client: Web3Client; explorer: IBlockchainExplorer; constructor(address?: TEth.Address, client?: Web3Client, explorer?: IBlockchainExplorer); Types: TMinimalForwarderTypes; $meta: { class: string; }; $constructor(deployer: TSender): Promise; eip712Domain(): Promise<{ fields: TEth.Hex; name: string; version: string; chainId: bigint; verifyingContract: TAddress; salt: TEth.Hex; extensions: bigint[]; }>; execute(sender: TSender, req: { from: TAddress; to: TAddress; value: bigint; gas: bigint; nonce: bigint; data: TEth.Hex; }, signature: TEth.Hex): Promise; getNonce(from: TAddress): Promise; verify(req: { from: TAddress; to: TAddress; value: bigint; gas: bigint; nonce: bigint; data: TEth.Hex; }, signature: TEth.Hex): Promise; $call(): IMinimalForwarderTxCaller; $signed(): TOverrideReturns>; $data(): IMinimalForwarderTxData; $gas(): TOverrideReturns>; onTransaction(method: TMethod, options: Parameters[0]): SubjectStream<{ tx: TEth.Tx; block: TEth.Block; calldata: { method: TMethod; arguments: TMinimalForwarderTypes['Methods'][TMethod]['arguments']; }; }>; onLog(event: keyof TEvents, cb?: (event: TClientEventsStreamData) => void): ClientEventsStream; getPastLogs(events: TEventName[], options?: TEventLogOptions>): Promise, TEventName>[]>; getPastLogs(event: TEventName, options?: TEventLogOptions>): Promise, TEventName>[]>; onEIP712DomainChanged(fn?: (event: TClientEventsStreamData>) => void): ClientEventsStream>>; extractLogsEIP712DomainChanged(tx: TEth.TxReceipt): ITxLogItem>[]; getPastLogsEIP712DomainChanged(options?: { fromBlock?: number | Date; toBlock?: number | Date; params?: {}; }): Promise>[]>; abi: TAbiItem[]; } type TSender = TAccount & { value?: string | number | bigint; }; type TEventLogOptions = { fromBlock?: number | Date; toBlock?: number | Date; params?: TParams; }; export type TMinimalForwarderTypes = { Events: { EIP712DomainChanged: { outputParams: {}; outputArgs: []; }; }; Methods: { eip712Domain: { method: "eip712Domain"; arguments: []; }; execute: { method: "execute"; arguments: [req: { from: TAddress; to: TAddress; value: bigint; gas: bigint; nonce: bigint; data: TEth.Hex; }, signature: TEth.Hex]; }; getNonce: { method: "getNonce"; arguments: [from: TAddress]; }; verify: { method: "verify"; arguments: [req: { from: TAddress; to: TAddress; value: bigint; gas: bigint; nonce: bigint; data: TEth.Hex; }, signature: TEth.Hex]; }; }; }; interface IMinimalForwarderTxCaller { execute(sender: TSender, req: { from: TAddress; to: TAddress; value: bigint; gas: bigint; nonce: bigint; data: TEth.Hex; }, signature: TEth.Hex): Promise<{ error?: Error & { data?: { type: string; params: any; }; }; result?: any; }>; } interface IMinimalForwarderTxData { execute(sender: TSender, req: { from: TAddress; to: TAddress; value: bigint; gas: bigint; nonce: bigint; data: TEth.Hex; }, signature: TEth.Hex): Promise; } type TEvents = TMinimalForwarderTypes['Events']; type TEventParams = Partial; type TEventArguments = Partial; export {};