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 RealityEthInterface extends Interface { getFunction(nameOrSignature: "DOMAIN_SEPARATOR_TYPEHASH" | "INVALIDATED" | "TRANSACTION_TYPEHASH" | "addProposal" | "addProposalWithNonce" | "answerExpiration" | "avatar" | "buildQuestion" | "executeProposal" | "executeProposalWithIndex" | "executedProposalTransactions" | "generateTransactionHashData" | "getChainId" | "getGuard" | "getQuestionId" | "getTransactionHash" | "guard" | "markProposalAsInvalid" | "markProposalAsInvalidByHash" | "markProposalWithExpiredAnswerAsInvalid" | "minimumBond" | "oracle" | "owner" | "questionArbitrator" | "questionCooldown" | "questionIds" | "questionTimeout" | "renounceOwnership" | "setAnswerExpiration" | "setArbitrator" | "setAvatar" | "setGuard" | "setMinimumBond" | "setQuestionCooldown" | "setQuestionTimeout" | "setTarget" | "setTemplate" | "setUp" | "target" | "template" | "transferOwnership"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "AvatarSet" | "ChangedGuard" | "OwnershipTransferred" | "ProposalQuestionCreated" | "RealityModuleSetup" | "TargetSet"): EventFragment; encodeFunctionData(functionFragment: "DOMAIN_SEPARATOR_TYPEHASH", values?: undefined): string; encodeFunctionData(functionFragment: "INVALIDATED", values?: undefined): string; encodeFunctionData(functionFragment: "TRANSACTION_TYPEHASH", values?: undefined): string; encodeFunctionData(functionFragment: "addProposal", values: [string, BytesLike[]]): string; encodeFunctionData(functionFragment: "addProposalWithNonce", values: [string, BytesLike[], BigNumberish]): string; encodeFunctionData(functionFragment: "answerExpiration", values?: undefined): string; encodeFunctionData(functionFragment: "avatar", values?: undefined): string; encodeFunctionData(functionFragment: "buildQuestion", values: [string, BytesLike[]]): string; encodeFunctionData(functionFragment: "executeProposal", values: [ string, BytesLike[], AddressLike, BigNumberish, BytesLike, BigNumberish ]): string; encodeFunctionData(functionFragment: "executeProposalWithIndex", values: [ string, BytesLike[], AddressLike, BigNumberish, BytesLike, BigNumberish, BigNumberish ]): string; encodeFunctionData(functionFragment: "executedProposalTransactions", values: [BytesLike, BytesLike]): string; encodeFunctionData(functionFragment: "generateTransactionHashData", values: [AddressLike, BigNumberish, BytesLike, BigNumberish, BigNumberish]): string; encodeFunctionData(functionFragment: "getChainId", values?: undefined): string; encodeFunctionData(functionFragment: "getGuard", values?: undefined): string; encodeFunctionData(functionFragment: "getQuestionId", values: [string, BigNumberish]): string; encodeFunctionData(functionFragment: "getTransactionHash", values: [AddressLike, BigNumberish, BytesLike, BigNumberish, BigNumberish]): string; encodeFunctionData(functionFragment: "guard", values?: undefined): string; encodeFunctionData(functionFragment: "markProposalAsInvalid", values: [string, BytesLike[]]): string; encodeFunctionData(functionFragment: "markProposalAsInvalidByHash", values: [BytesLike]): string; encodeFunctionData(functionFragment: "markProposalWithExpiredAnswerAsInvalid", values: [BytesLike]): string; encodeFunctionData(functionFragment: "minimumBond", values?: undefined): string; encodeFunctionData(functionFragment: "oracle", values?: undefined): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData(functionFragment: "questionArbitrator", values?: undefined): string; encodeFunctionData(functionFragment: "questionCooldown", values?: undefined): string; encodeFunctionData(functionFragment: "questionIds", values: [BytesLike]): string; encodeFunctionData(functionFragment: "questionTimeout", values?: undefined): string; encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string; encodeFunctionData(functionFragment: "setAnswerExpiration", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "setArbitrator", values: [AddressLike]): string; encodeFunctionData(functionFragment: "setAvatar", values: [AddressLike]): string; encodeFunctionData(functionFragment: "setGuard", values: [AddressLike]): string; encodeFunctionData(functionFragment: "setMinimumBond", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "setQuestionCooldown", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "setQuestionTimeout", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "setTarget", values: [AddressLike]): string; encodeFunctionData(functionFragment: "setTemplate", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "setUp", values: [BytesLike]): string; encodeFunctionData(functionFragment: "target", values?: undefined): string; encodeFunctionData(functionFragment: "template", values?: undefined): string; encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string; decodeFunctionResult(functionFragment: "DOMAIN_SEPARATOR_TYPEHASH", data: BytesLike): Result; decodeFunctionResult(functionFragment: "INVALIDATED", data: BytesLike): Result; decodeFunctionResult(functionFragment: "TRANSACTION_TYPEHASH", data: BytesLike): Result; decodeFunctionResult(functionFragment: "addProposal", data: BytesLike): Result; decodeFunctionResult(functionFragment: "addProposalWithNonce", data: BytesLike): Result; decodeFunctionResult(functionFragment: "answerExpiration", data: BytesLike): Result; decodeFunctionResult(functionFragment: "avatar", data: BytesLike): Result; decodeFunctionResult(functionFragment: "buildQuestion", data: BytesLike): Result; decodeFunctionResult(functionFragment: "executeProposal", data: BytesLike): Result; decodeFunctionResult(functionFragment: "executeProposalWithIndex", data: BytesLike): Result; decodeFunctionResult(functionFragment: "executedProposalTransactions", data: BytesLike): Result; decodeFunctionResult(functionFragment: "generateTransactionHashData", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getChainId", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getGuard", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getQuestionId", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getTransactionHash", data: BytesLike): Result; decodeFunctionResult(functionFragment: "guard", data: BytesLike): Result; decodeFunctionResult(functionFragment: "markProposalAsInvalid", data: BytesLike): Result; decodeFunctionResult(functionFragment: "markProposalAsInvalidByHash", data: BytesLike): Result; decodeFunctionResult(functionFragment: "markProposalWithExpiredAnswerAsInvalid", data: BytesLike): Result; decodeFunctionResult(functionFragment: "minimumBond", data: BytesLike): Result; decodeFunctionResult(functionFragment: "oracle", data: BytesLike): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "questionArbitrator", data: BytesLike): Result; decodeFunctionResult(functionFragment: "questionCooldown", data: BytesLike): Result; decodeFunctionResult(functionFragment: "questionIds", data: BytesLike): Result; decodeFunctionResult(functionFragment: "questionTimeout", data: BytesLike): Result; decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setAnswerExpiration", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setArbitrator", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setAvatar", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setGuard", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setMinimumBond", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setQuestionCooldown", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setQuestionTimeout", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setTarget", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setTemplate", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setUp", data: BytesLike): Result; decodeFunctionResult(functionFragment: "target", data: BytesLike): Result; decodeFunctionResult(functionFragment: "template", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result; } export declare namespace AvatarSetEvent { type InputTuple = [ previousAvatar: AddressLike, newAvatar: AddressLike ]; type OutputTuple = [previousAvatar: string, newAvatar: string]; interface OutputObject { previousAvatar: string; newAvatar: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace ChangedGuardEvent { type InputTuple = [guard: AddressLike]; type OutputTuple = [guard: string]; interface OutputObject { guard: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace OwnershipTransferredEvent { type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; type OutputTuple = [previousOwner: string, newOwner: string]; interface OutputObject { previousOwner: string; newOwner: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace ProposalQuestionCreatedEvent { type InputTuple = [questionId: BytesLike, proposalId: string]; type OutputTuple = [questionId: string, proposalId: string]; interface OutputObject { questionId: string; proposalId: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace RealityModuleSetupEvent { type InputTuple = [ initiator: AddressLike, owner: AddressLike, avatar: AddressLike, target: AddressLike ]; type OutputTuple = [ initiator: string, owner: string, avatar: string, target: string ]; interface OutputObject { initiator: string; owner: string; avatar: string; target: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace TargetSetEvent { type InputTuple = [ previousTarget: AddressLike, newTarget: AddressLike ]; type OutputTuple = [previousTarget: string, newTarget: string]; interface OutputObject { previousTarget: string; newTarget: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface RealityEth extends BaseContract { connect(runner?: ContractRunner | null): RealityEth; waitForDeployment(): Promise; interface: RealityEthInterface; queryFilter(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; queryFilter(filter: TypedDeferredTopicFilter, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise>>; on(event: TCEvent, listener: TypedListener): Promise; on(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; once(event: TCEvent, listener: TypedListener): Promise; once(filter: TypedDeferredTopicFilter, listener: TypedListener): Promise; listeners(event: TCEvent): Promise>>; listeners(eventName?: string): Promise>; removeAllListeners(event?: TCEvent): Promise; DOMAIN_SEPARATOR_TYPEHASH: TypedContractMethod<[], [string], "view">; INVALIDATED: TypedContractMethod<[], [string], "view">; TRANSACTION_TYPEHASH: TypedContractMethod<[], [string], "view">; addProposal: TypedContractMethod<[ proposalId: string, txHashes: BytesLike[] ], [ void ], "nonpayable">; addProposalWithNonce: TypedContractMethod<[ proposalId: string, txHashes: BytesLike[], nonce: BigNumberish ], [ void ], "nonpayable">; answerExpiration: TypedContractMethod<[], [bigint], "view">; avatar: TypedContractMethod<[], [string], "view">; buildQuestion: TypedContractMethod<[ proposalId: string, txHashes: BytesLike[] ], [ string ], "view">; executeProposal: TypedContractMethod<[ proposalId: string, txHashes: BytesLike[], to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish ], [ void ], "nonpayable">; executeProposalWithIndex: TypedContractMethod<[ proposalId: string, txHashes: BytesLike[], to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish, txIndex: BigNumberish ], [ void ], "nonpayable">; executedProposalTransactions: TypedContractMethod<[ arg0: BytesLike, arg1: BytesLike ], [ boolean ], "view">; generateTransactionHashData: TypedContractMethod<[ to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish, nonce: BigNumberish ], [ string ], "view">; getChainId: TypedContractMethod<[], [bigint], "view">; getGuard: TypedContractMethod<[], [string], "view">; getQuestionId: TypedContractMethod<[ question: string, nonce: BigNumberish ], [ string ], "view">; getTransactionHash: TypedContractMethod<[ to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish, nonce: BigNumberish ], [ string ], "view">; guard: TypedContractMethod<[], [string], "view">; markProposalAsInvalid: TypedContractMethod<[ proposalId: string, txHashes: BytesLike[] ], [ void ], "nonpayable">; markProposalAsInvalidByHash: TypedContractMethod<[ questionHash: BytesLike ], [ void ], "nonpayable">; markProposalWithExpiredAnswerAsInvalid: TypedContractMethod<[ questionHash: BytesLike ], [ void ], "nonpayable">; minimumBond: TypedContractMethod<[], [bigint], "view">; oracle: TypedContractMethod<[], [string], "view">; owner: TypedContractMethod<[], [string], "view">; questionArbitrator: TypedContractMethod<[], [string], "view">; questionCooldown: TypedContractMethod<[], [bigint], "view">; questionIds: TypedContractMethod<[arg0: BytesLike], [string], "view">; questionTimeout: TypedContractMethod<[], [bigint], "view">; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; setAnswerExpiration: TypedContractMethod<[ expiration: BigNumberish ], [ void ], "nonpayable">; setArbitrator: TypedContractMethod<[ arbitrator: AddressLike ], [ void ], "nonpayable">; setAvatar: TypedContractMethod<[_avatar: AddressLike], [void], "nonpayable">; setGuard: TypedContractMethod<[_guard: AddressLike], [void], "nonpayable">; setMinimumBond: TypedContractMethod<[ bond: BigNumberish ], [ void ], "nonpayable">; setQuestionCooldown: TypedContractMethod<[ cooldown: BigNumberish ], [ void ], "nonpayable">; setQuestionTimeout: TypedContractMethod<[ timeout: BigNumberish ], [ void ], "nonpayable">; setTarget: TypedContractMethod<[_target: AddressLike], [void], "nonpayable">; setTemplate: TypedContractMethod<[ templateId: BigNumberish ], [ void ], "nonpayable">; setUp: TypedContractMethod<[initParams: BytesLike], [void], "nonpayable">; template: TypedContractMethod<[], [bigint], "view">; transferOwnership: TypedContractMethod<[ newOwner: AddressLike ], [ void ], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "DOMAIN_SEPARATOR_TYPEHASH"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "INVALIDATED"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "TRANSACTION_TYPEHASH"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "addProposal"): TypedContractMethod<[ proposalId: string, txHashes: BytesLike[] ], [ void ], "nonpayable">; getFunction(nameOrSignature: "addProposalWithNonce"): TypedContractMethod<[ proposalId: string, txHashes: BytesLike[], nonce: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "answerExpiration"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "avatar"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "buildQuestion"): TypedContractMethod<[ proposalId: string, txHashes: BytesLike[] ], [ string ], "view">; getFunction(nameOrSignature: "executeProposal"): TypedContractMethod<[ proposalId: string, txHashes: BytesLike[], to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "executeProposalWithIndex"): TypedContractMethod<[ proposalId: string, txHashes: BytesLike[], to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish, txIndex: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "executedProposalTransactions"): TypedContractMethod<[arg0: BytesLike, arg1: BytesLike], [boolean], "view">; getFunction(nameOrSignature: "generateTransactionHashData"): TypedContractMethod<[ to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish, nonce: BigNumberish ], [ string ], "view">; getFunction(nameOrSignature: "getChainId"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "getGuard"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "getQuestionId"): TypedContractMethod<[ question: string, nonce: BigNumberish ], [ string ], "view">; getFunction(nameOrSignature: "getTransactionHash"): TypedContractMethod<[ to: AddressLike, value: BigNumberish, data: BytesLike, operation: BigNumberish, nonce: BigNumberish ], [ string ], "view">; getFunction(nameOrSignature: "guard"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "markProposalAsInvalid"): TypedContractMethod<[ proposalId: string, txHashes: BytesLike[] ], [ void ], "nonpayable">; getFunction(nameOrSignature: "markProposalAsInvalidByHash"): TypedContractMethod<[questionHash: BytesLike], [void], "nonpayable">; getFunction(nameOrSignature: "markProposalWithExpiredAnswerAsInvalid"): TypedContractMethod<[questionHash: BytesLike], [void], "nonpayable">; getFunction(nameOrSignature: "minimumBond"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "oracle"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "questionArbitrator"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "questionCooldown"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "questionIds"): TypedContractMethod<[arg0: BytesLike], [string], "view">; getFunction(nameOrSignature: "questionTimeout"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">; getFunction(nameOrSignature: "setAnswerExpiration"): TypedContractMethod<[expiration: BigNumberish], [void], "nonpayable">; getFunction(nameOrSignature: "setArbitrator"): TypedContractMethod<[arbitrator: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "setAvatar"): TypedContractMethod<[_avatar: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "setGuard"): TypedContractMethod<[_guard: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "setMinimumBond"): TypedContractMethod<[bond: BigNumberish], [void], "nonpayable">; getFunction(nameOrSignature: "setQuestionCooldown"): TypedContractMethod<[cooldown: BigNumberish], [void], "nonpayable">; getFunction(nameOrSignature: "setQuestionTimeout"): TypedContractMethod<[timeout: BigNumberish], [void], "nonpayable">; getFunction(nameOrSignature: "setTarget"): TypedContractMethod<[_target: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "setTemplate"): TypedContractMethod<[templateId: BigNumberish], [void], "nonpayable">; getFunction(nameOrSignature: "setUp"): TypedContractMethod<[initParams: BytesLike], [void], "nonpayable">; getFunction(nameOrSignature: "target"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "template"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getEvent(key: "AvatarSet"): TypedContractEvent; getEvent(key: "ChangedGuard"): TypedContractEvent; getEvent(key: "OwnershipTransferred"): TypedContractEvent; getEvent(key: "ProposalQuestionCreated"): TypedContractEvent; getEvent(key: "RealityModuleSetup"): TypedContractEvent; getEvent(key: "TargetSet"): TypedContractEvent; filters: { "AvatarSet(address,address)": TypedContractEvent; AvatarSet: TypedContractEvent; "ChangedGuard(address)": TypedContractEvent; ChangedGuard: TypedContractEvent; "OwnershipTransferred(address,address)": TypedContractEvent; OwnershipTransferred: TypedContractEvent; "ProposalQuestionCreated(bytes32,string)": TypedContractEvent; ProposalQuestionCreated: TypedContractEvent; "RealityModuleSetup(address,address,address,address)": TypedContractEvent; RealityModuleSetup: TypedContractEvent; "TargetSet(address,address)": TypedContractEvent; TargetSet: TypedContractEvent; }; }