import { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers"; import { FunctionFragment, Result, EventFragment } from "@ethersproject/abi"; import { Listener, Provider } from "@ethersproject/providers"; import { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "./common"; export interface AccountControllerMockInterface extends utils.Interface { functions: { "accountImplementation()": FunctionFragment; "accountRegistry()": FunctionFragment; "computeAccountAddress(bytes32)": FunctionFragment; "deployAccount(bytes32)": FunctionFragment; "executeAccountTransaction(address,address,uint256,bytes)": FunctionFragment; "setAccountImplementation(address)": FunctionFragment; "setAccountRegistry(address)": FunctionFragment; "upgradeAccount(address)": FunctionFragment; }; encodeFunctionData(functionFragment: "accountImplementation", values?: undefined): string; encodeFunctionData(functionFragment: "accountRegistry", values?: undefined): string; encodeFunctionData(functionFragment: "computeAccountAddress", values: [BytesLike]): string; encodeFunctionData(functionFragment: "deployAccount", values: [BytesLike]): string; encodeFunctionData(functionFragment: "executeAccountTransaction", values: [string, string, BigNumberish, BytesLike]): string; encodeFunctionData(functionFragment: "setAccountImplementation", values: [string]): string; encodeFunctionData(functionFragment: "setAccountRegistry", values: [string]): string; encodeFunctionData(functionFragment: "upgradeAccount", values: [string]): string; decodeFunctionResult(functionFragment: "accountImplementation", data: BytesLike): Result; decodeFunctionResult(functionFragment: "accountRegistry", data: BytesLike): Result; decodeFunctionResult(functionFragment: "computeAccountAddress", data: BytesLike): Result; decodeFunctionResult(functionFragment: "deployAccount", data: BytesLike): Result; decodeFunctionResult(functionFragment: "executeAccountTransaction", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setAccountImplementation", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setAccountRegistry", data: BytesLike): Result; decodeFunctionResult(functionFragment: "upgradeAccount", data: BytesLike): Result; events: { "AccountDeployed(address,address)": EventFragment; "AccountImplementationUpdated(address)": EventFragment; "AccountRegistryUpdated(address)": EventFragment; "AccountTransactionExecuted(address,address,uint256,bytes,bytes)": EventFragment; "AccountUpgraded(address,address)": EventFragment; }; getEvent(nameOrSignatureOrTopic: "AccountDeployed"): EventFragment; getEvent(nameOrSignatureOrTopic: "AccountImplementationUpdated"): EventFragment; getEvent(nameOrSignatureOrTopic: "AccountRegistryUpdated"): EventFragment; getEvent(nameOrSignatureOrTopic: "AccountTransactionExecuted"): EventFragment; getEvent(nameOrSignatureOrTopic: "AccountUpgraded"): EventFragment; } export declare type AccountDeployedEvent = TypedEvent<[ string, string ], { account: string; accountImplementation: string; }>; export declare type AccountDeployedEventFilter = TypedEventFilter; export declare type AccountImplementationUpdatedEvent = TypedEvent<[ string ], { accountImplementation: string; }>; export declare type AccountImplementationUpdatedEventFilter = TypedEventFilter; export declare type AccountRegistryUpdatedEvent = TypedEvent<[ string ], { accountRegistry: string; }>; export declare type AccountRegistryUpdatedEventFilter = TypedEventFilter; export declare type AccountTransactionExecutedEvent = TypedEvent<[ string, string, BigNumber, string, string ], { account: string; to: string; value: BigNumber; data: string; response: string; }>; export declare type AccountTransactionExecutedEventFilter = TypedEventFilter; export declare type AccountUpgradedEvent = TypedEvent<[ string, string ], { account: string; accountImplementation: string; }>; export declare type AccountUpgradedEventFilter = TypedEventFilter; export interface AccountControllerMock extends BaseContract { connect(signerOrProvider: Signer | Provider | string): this; attach(addressOrName: string): this; deployed(): Promise; interface: AccountControllerMockInterface; queryFilter(event: TypedEventFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>; listeners(eventFilter?: TypedEventFilter): Array>; listeners(eventName?: string): Array; removeAllListeners(eventFilter: TypedEventFilter): this; removeAllListeners(eventName?: string): this; off: OnEvent; on: OnEvent; once: OnEvent; removeListener: OnEvent; functions: { accountImplementation(overrides?: CallOverrides): Promise<[string]>; accountRegistry(overrides?: CallOverrides): Promise<[string]>; computeAccountAddress(salt: BytesLike, overrides?: CallOverrides): Promise<[string]>; deployAccount(salt: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; executeAccountTransaction(account: string, to: string, value: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; setAccountImplementation(accountImplementation_: string, overrides?: Overrides & { from?: string | Promise; }): Promise; setAccountRegistry(accountRegistry_: string, overrides?: Overrides & { from?: string | Promise; }): Promise; upgradeAccount(account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; }; accountImplementation(overrides?: CallOverrides): Promise; accountRegistry(overrides?: CallOverrides): Promise; computeAccountAddress(salt: BytesLike, overrides?: CallOverrides): Promise; deployAccount(salt: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; executeAccountTransaction(account: string, to: string, value: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; setAccountImplementation(accountImplementation_: string, overrides?: Overrides & { from?: string | Promise; }): Promise; setAccountRegistry(accountRegistry_: string, overrides?: Overrides & { from?: string | Promise; }): Promise; upgradeAccount(account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; callStatic: { accountImplementation(overrides?: CallOverrides): Promise; accountRegistry(overrides?: CallOverrides): Promise; computeAccountAddress(salt: BytesLike, overrides?: CallOverrides): Promise; deployAccount(salt: BytesLike, overrides?: CallOverrides): Promise; executeAccountTransaction(account: string, to: string, value: BigNumberish, data: BytesLike, overrides?: CallOverrides): Promise; setAccountImplementation(accountImplementation_: string, overrides?: CallOverrides): Promise; setAccountRegistry(accountRegistry_: string, overrides?: CallOverrides): Promise; upgradeAccount(account: string, overrides?: CallOverrides): Promise; }; filters: { "AccountDeployed(address,address)"(account?: null, accountImplementation?: null): AccountDeployedEventFilter; AccountDeployed(account?: null, accountImplementation?: null): AccountDeployedEventFilter; "AccountImplementationUpdated(address)"(accountImplementation?: null): AccountImplementationUpdatedEventFilter; AccountImplementationUpdated(accountImplementation?: null): AccountImplementationUpdatedEventFilter; "AccountRegistryUpdated(address)"(accountRegistry?: null): AccountRegistryUpdatedEventFilter; AccountRegistryUpdated(accountRegistry?: null): AccountRegistryUpdatedEventFilter; "AccountTransactionExecuted(address,address,uint256,bytes,bytes)"(account?: null, to?: null, value?: null, data?: null, response?: null): AccountTransactionExecutedEventFilter; AccountTransactionExecuted(account?: null, to?: null, value?: null, data?: null, response?: null): AccountTransactionExecutedEventFilter; "AccountUpgraded(address,address)"(account?: null, accountImplementation?: null): AccountUpgradedEventFilter; AccountUpgraded(account?: null, accountImplementation?: null): AccountUpgradedEventFilter; }; estimateGas: { accountImplementation(overrides?: CallOverrides): Promise; accountRegistry(overrides?: CallOverrides): Promise; computeAccountAddress(salt: BytesLike, overrides?: CallOverrides): Promise; deployAccount(salt: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; executeAccountTransaction(account: string, to: string, value: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; setAccountImplementation(accountImplementation_: string, overrides?: Overrides & { from?: string | Promise; }): Promise; setAccountRegistry(accountRegistry_: string, overrides?: Overrides & { from?: string | Promise; }): Promise; upgradeAccount(account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; }; populateTransaction: { accountImplementation(overrides?: CallOverrides): Promise; accountRegistry(overrides?: CallOverrides): Promise; computeAccountAddress(salt: BytesLike, overrides?: CallOverrides): Promise; deployAccount(salt: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; executeAccountTransaction(account: string, to: string, value: BigNumberish, data: BytesLike, overrides?: Overrides & { from?: string | Promise; }): Promise; setAccountImplementation(accountImplementation_: string, overrides?: Overrides & { from?: string | Promise; }): Promise; setAccountRegistry(accountRegistry_: string, overrides?: Overrides & { from?: string | Promise; }): Promise; upgradeAccount(account: string, overrides?: Overrides & { from?: string | Promise; }): Promise; }; }