50 lines
3.8 KiB
TypeScript
Vendored
50 lines
3.8 KiB
TypeScript
Vendored
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 MaliciousProposalInterface extends Interface {
|
|
getFunction(nameOrSignature: "deployer" | "emergencyStop" | "executeProposal"): FunctionFragment;
|
|
getEvent(nameOrSignatureOrTopic: "MockExecuted"): EventFragment;
|
|
encodeFunctionData(functionFragment: "deployer", values?: undefined): string;
|
|
encodeFunctionData(functionFragment: "emergencyStop", values?: undefined): string;
|
|
encodeFunctionData(functionFragment: "executeProposal", values?: undefined): string;
|
|
decodeFunctionResult(functionFragment: "deployer", data: BytesLike): Result;
|
|
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 MaliciousProposal extends BaseContract {
|
|
connect(runner?: ContractRunner | null): MaliciousProposal;
|
|
waitForDeployment(): Promise<this>;
|
|
interface: MaliciousProposalInterface;
|
|
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>;
|
|
deployer: TypedContractMethod<[], [string], "view">;
|
|
emergencyStop: TypedContractMethod<[], [void], "nonpayable">;
|
|
executeProposal: TypedContractMethod<[], [void], "nonpayable">;
|
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
getFunction(nameOrSignature: "deployer"): TypedContractMethod<[], [string], "view">;
|
|
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>;
|
|
};
|
|
}
|