30 lines
2.3 KiB
TypeScript
30 lines
2.3 KiB
TypeScript
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, ContractRunner, ContractMethod, Listener } from "ethers";
|
||
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../../../common";
|
||
|
export interface IGovernanceInterface extends Interface {
|
||
|
getFunction(nameOrSignature: "setExecutionDelay"): FunctionFragment;
|
||
|
encodeFunctionData(functionFragment: "setExecutionDelay", values: [BigNumberish]): string;
|
||
|
decodeFunctionResult(functionFragment: "setExecutionDelay", data: BytesLike): Result;
|
||
|
}
|
||
|
export interface IGovernance extends BaseContract {
|
||
|
connect(runner?: ContractRunner | null): IGovernance;
|
||
|
waitForDeployment(): Promise<this>;
|
||
|
interface: IGovernanceInterface;
|
||
|
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>;
|
||
|
setExecutionDelay: TypedContractMethod<[
|
||
|
delay: BigNumberish
|
||
|
], [
|
||
|
void
|
||
|
], "nonpayable">;
|
||
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
||
|
getFunction(nameOrSignature: "setExecutionDelay"): TypedContractMethod<[delay: BigNumberish], [void], "nonpayable">;
|
||
|
filters: {};
|
||
|
}
|