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 class SafeProxyFactory extends ContractBase { address: TEth.Address; client: Web3Client; explorer: IBlockchainExplorer; constructor(address?: TEth.Address, client?: Web3Client, explorer?: IBlockchainExplorer); Types: TSafeProxyFactoryTypes; $meta: { class: string; }; createChainSpecificProxyWithNonce(sender: TSender, _singleton: TAddress, initializer: TEth.Hex, saltNonce: bigint): Promise; createProxyWithCallback(sender: TSender, _singleton: TAddress, initializer: TEth.Hex, saltNonce: bigint, callback: TAddress): Promise; createProxyWithNonce(sender: TSender, _singleton: TAddress, initializer: TEth.Hex, saltNonce: bigint): Promise; getChainId(): Promise; proxyCreationCode(): Promise; $call(): ISafeProxyFactoryTxCaller; $signed(): TOverrideReturns>; $data(): ISafeProxyFactoryTxData; $gas(): TOverrideReturns>; onTransaction(method: TMethod, options: Parameters[0]): SubjectStream<{ tx: TEth.Tx; block: TEth.Block; calldata: { method: TMethod; arguments: TSafeProxyFactoryTypes['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>[]>; onProxyCreation(fn?: (event: TClientEventsStreamData>) => void): ClientEventsStream>>; extractLogsProxyCreation(tx: TEth.TxReceipt): ITxLogItem>[]; getPastLogsProxyCreation(options?: { fromBlock?: number | Date; toBlock?: number | Date; params?: { proxy?: TAddress; }; }): Promise>[]>; abi: TAbiItem[]; } type TSender = TAccount & { value?: string | number | bigint; }; type TEventLogOptions = { fromBlock?: number | Date; toBlock?: number | Date; params?: TParams; }; export type TSafeProxyFactoryTypes = { Events: { ProxyCreation: { outputParams: { proxy: TAddress; singleton: TAddress; }; outputArgs: [proxy: TAddress, singleton: TAddress]; }; }; Methods: { createChainSpecificProxyWithNonce: { method: "createChainSpecificProxyWithNonce"; arguments: [_singleton: TAddress, initializer: TEth.Hex, saltNonce: bigint]; }; createProxyWithCallback: { method: "createProxyWithCallback"; arguments: [_singleton: TAddress, initializer: TEth.Hex, saltNonce: bigint, callback: TAddress]; }; createProxyWithNonce: { method: "createProxyWithNonce"; arguments: [_singleton: TAddress, initializer: TEth.Hex, saltNonce: bigint]; }; getChainId: { method: "getChainId"; arguments: []; }; proxyCreationCode: { method: "proxyCreationCode"; arguments: []; }; }; }; interface ISafeProxyFactoryTxCaller { createChainSpecificProxyWithNonce(sender: TSender, _singleton: TAddress, initializer: TEth.Hex, saltNonce: bigint): Promise<{ error?: Error & { data?: { type: string; params: any; }; }; result?: any; }>; createProxyWithCallback(sender: TSender, _singleton: TAddress, initializer: TEth.Hex, saltNonce: bigint, callback: TAddress): Promise<{ error?: Error & { data?: { type: string; params: any; }; }; result?: any; }>; createProxyWithNonce(sender: TSender, _singleton: TAddress, initializer: TEth.Hex, saltNonce: bigint): Promise<{ error?: Error & { data?: { type: string; params: any; }; }; result?: any; }>; } interface ISafeProxyFactoryTxData { createChainSpecificProxyWithNonce(sender: TSender, _singleton: TAddress, initializer: TEth.Hex, saltNonce: bigint): Promise; createProxyWithCallback(sender: TSender, _singleton: TAddress, initializer: TEth.Hex, saltNonce: bigint, callback: TAddress): Promise; createProxyWithNonce(sender: TSender, _singleton: TAddress, initializer: TEth.Hex, saltNonce: bigint): Promise; } type TEvents = TSafeProxyFactoryTypes['Events']; type TEventParams = Partial; type TEventArguments = Partial; export {};