UNPKG

baluni-contracts

Version:
124 lines (108 loc) 3.36 kB
/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod, } from "../../common"; export interface IBaluniV1AgentFactoryInterface extends Interface { getFunction( nameOrSignature: "getAgentAddress" | "getOrCreateAgent" | "getRegistry" ): FunctionFragment; encodeFunctionData( functionFragment: "getAgentAddress", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "getOrCreateAgent", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "getRegistry", values?: undefined ): string; decodeFunctionResult( functionFragment: "getAgentAddress", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getOrCreateAgent", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getRegistry", data: BytesLike ): Result; } export interface IBaluniV1AgentFactory extends BaseContract { connect(runner?: ContractRunner | null): IBaluniV1AgentFactory; waitForDeployment(): Promise<this>; interface: IBaluniV1AgentFactoryInterface; queryFilter<TCEvent extends TypedContractEvent>( event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise<Array<TypedEventLog<TCEvent>>>; queryFilter<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined ): Promise<Array<TypedEventLog<TCEvent>>>; on<TCEvent extends TypedContractEvent>( event: TCEvent, listener: TypedListener<TCEvent> ): Promise<this>; on<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent> ): Promise<this>; once<TCEvent extends TypedContractEvent>( event: TCEvent, listener: TypedListener<TCEvent> ): Promise<this>; once<TCEvent extends TypedContractEvent>( filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent> ): Promise<this>; listeners<TCEvent extends TypedContractEvent>( event: TCEvent ): Promise<Array<TypedListener<TCEvent>>>; listeners(eventName?: string): Promise<Array<Listener>>; removeAllListeners<TCEvent extends TypedContractEvent>( event?: TCEvent ): Promise<this>; getAgentAddress: TypedContractMethod<[user: AddressLike], [string], "view">; getOrCreateAgent: TypedContractMethod< [user: AddressLike], [string], "nonpayable" >; getRegistry: TypedContractMethod<[], [string], "view">; getFunction<T extends ContractMethod = ContractMethod>( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "getAgentAddress" ): TypedContractMethod<[user: AddressLike], [string], "view">; getFunction( nameOrSignature: "getOrCreateAgent" ): TypedContractMethod<[user: AddressLike], [string], "nonpayable">; getFunction( nameOrSignature: "getRegistry" ): TypedContractMethod<[], [string], "view">; filters: {}; }