@kleros/vea-contracts
Version:
Smart contracts for Vea
79 lines (78 loc) • 4.91 kB
TypeScript
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../common";
export interface IAMBInterface extends Interface {
getFunction(nameOrSignature: "maxGasPerTx" | "messageSender" | "messageSourceChainId" | "requireToPassMessage"): FunctionFragment;
getEvent(nameOrSignatureOrTopic: "AffirmationCompleted"): EventFragment;
encodeFunctionData(functionFragment: "maxGasPerTx", values?: undefined): string;
encodeFunctionData(functionFragment: "messageSender", values?: undefined): string;
encodeFunctionData(functionFragment: "messageSourceChainId", values?: undefined): string;
encodeFunctionData(functionFragment: "requireToPassMessage", values: [AddressLike, BytesLike, BigNumberish]): string;
decodeFunctionResult(functionFragment: "maxGasPerTx", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "messageSender", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "messageSourceChainId", data: BytesLike): Result;
decodeFunctionResult(functionFragment: "requireToPassMessage", data: BytesLike): Result;
}
export declare namespace AffirmationCompletedEvent {
type InputTuple = [
sender: AddressLike,
executor: AddressLike,
messageId: BytesLike,
status: boolean
];
type OutputTuple = [
sender: string,
executor: string,
messageId: string,
status: boolean
];
interface OutputObject {
sender: string;
executor: string;
messageId: string;
status: boolean;
}
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
type Filter = TypedDeferredTopicFilter<Event>;
type Log = TypedEventLog<Event>;
type LogDescription = TypedLogDescription<Event>;
}
export interface IAMB extends BaseContract {
connect(runner?: ContractRunner | null): IAMB;
waitForDeployment(): Promise<this>;
interface: IAMBInterface;
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>;
maxGasPerTx: TypedContractMethod<[], [bigint], "view">;
messageSender: TypedContractMethod<[], [string], "view">;
messageSourceChainId: TypedContractMethod<[], [string], "view">;
requireToPassMessage: TypedContractMethod<[
_contract: AddressLike,
_data: BytesLike,
_gas: BigNumberish
], [
string
], "nonpayable">;
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
getFunction(nameOrSignature: "maxGasPerTx"): TypedContractMethod<[], [bigint], "view">;
getFunction(nameOrSignature: "messageSender"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "messageSourceChainId"): TypedContractMethod<[], [string], "view">;
getFunction(nameOrSignature: "requireToPassMessage"): TypedContractMethod<[
_contract: AddressLike,
_data: BytesLike,
_gas: BigNumberish
], [
string
], "nonpayable">;
getEvent(key: "AffirmationCompleted"): TypedContractEvent<AffirmationCompletedEvent.InputTuple, AffirmationCompletedEvent.OutputTuple, AffirmationCompletedEvent.OutputObject>;
filters: {
"AffirmationCompleted(address,address,bytes32,bool)": TypedContractEvent<AffirmationCompletedEvent.InputTuple, AffirmationCompletedEvent.OutputTuple, AffirmationCompletedEvent.OutputObject>;
AffirmationCompleted: TypedContractEvent<AffirmationCompletedEvent.InputTuple, AffirmationCompletedEvent.OutputTuple, AffirmationCompletedEvent.OutputObject>;
};
}