46 lines
3.5 KiB
TypeScript
46 lines
3.5 KiB
TypeScript
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener } from "ethers";
|
||
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../../common";
|
||
|
export interface InitialProposalInterface extends Interface {
|
||
|
getFunction(nameOrSignature: "emergencyStop" | "executeProposal"): FunctionFragment;
|
||
|
getEvent(nameOrSignatureOrTopic: "MockExecuted"): EventFragment;
|
||
|
encodeFunctionData(functionFragment: "emergencyStop", values?: undefined): string;
|
||
|
encodeFunctionData(functionFragment: "executeProposal", values?: undefined): string;
|
||
|
decodeFunctionResult(functionFragment: "emergencyStop", data: BytesLike): Result;
|
||
|
decodeFunctionResult(functionFragment: "executeProposal", data: BytesLike): Result;
|
||
|
}
|
||
|
export declare namespace MockExecutedEvent {
|
||
|
type InputTuple = [num: BigNumberish];
|
||
|
type OutputTuple = [num: bigint];
|
||
|
interface OutputObject {
|
||
|
num: bigint;
|
||
|
}
|
||
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
||
|
type Filter = TypedDeferredTopicFilter<Event>;
|
||
|
type Log = TypedEventLog<Event>;
|
||
|
type LogDescription = TypedLogDescription<Event>;
|
||
|
}
|
||
|
export interface InitialProposal extends BaseContract {
|
||
|
connect(runner?: ContractRunner | null): InitialProposal;
|
||
|
waitForDeployment(): Promise<this>;
|
||
|
interface: InitialProposalInterface;
|
||
|
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>;
|
||
|
emergencyStop: TypedContractMethod<[], [void], "nonpayable">;
|
||
|
executeProposal: TypedContractMethod<[], [void], "nonpayable">;
|
||
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
||
|
getFunction(nameOrSignature: "emergencyStop"): TypedContractMethod<[], [void], "nonpayable">;
|
||
|
getFunction(nameOrSignature: "executeProposal"): TypedContractMethod<[], [void], "nonpayable">;
|
||
|
getEvent(key: "MockExecuted"): TypedContractEvent<MockExecutedEvent.InputTuple, MockExecutedEvent.OutputTuple, MockExecutedEvent.OutputObject>;
|
||
|
filters: {
|
||
|
"MockExecuted(uint256)": TypedContractEvent<MockExecutedEvent.InputTuple, MockExecutedEvent.OutputTuple, MockExecutedEvent.OutputObject>;
|
||
|
MockExecuted: TypedContractEvent<MockExecutedEvent.InputTuple, MockExecutedEvent.OutputTuple, MockExecutedEvent.OutputObject>;
|
||
|
};
|
||
|
}
|