/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ 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 OptimisticRecipientRegistryInterface extends Interface { getFunction( nameOrSignature: | "addRecipient" | "baseDeposit" | "challengePeriodDuration" | "challengeRequest" | "controller" | "executeRequest" | "getRecipientAddress" | "getRecipientCount" | "maxRecipients" | "owner" | "removeRecipient" | "renounceOwnership" | "setBaseDeposit" | "setChallengePeriodDuration" | "setMaxRecipients" | "transferOwnership" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "OwnershipTransferred" | "RequestResolved" | "RequestSubmitted" ): EventFragment; encodeFunctionData( functionFragment: "addRecipient", values: [AddressLike, string] ): string; encodeFunctionData( functionFragment: "baseDeposit", values?: undefined ): string; encodeFunctionData( functionFragment: "challengePeriodDuration", values?: undefined ): string; encodeFunctionData( functionFragment: "challengeRequest", values: [BytesLike, AddressLike] ): string; encodeFunctionData( functionFragment: "controller", values?: undefined ): string; encodeFunctionData( functionFragment: "executeRequest", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "getRecipientAddress", values: [BigNumberish, BigNumberish, BigNumberish] ): string; encodeFunctionData( functionFragment: "getRecipientCount", values?: undefined ): string; encodeFunctionData( functionFragment: "maxRecipients", values?: undefined ): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData( functionFragment: "removeRecipient", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "renounceOwnership", values?: undefined ): string; encodeFunctionData( functionFragment: "setBaseDeposit", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "setChallengePeriodDuration", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "setMaxRecipients", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "transferOwnership", values: [AddressLike] ): string; decodeFunctionResult( functionFragment: "addRecipient", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "baseDeposit", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "challengePeriodDuration", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "challengeRequest", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "controller", data: BytesLike): Result; decodeFunctionResult( functionFragment: "executeRequest", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getRecipientAddress", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getRecipientCount", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "maxRecipients", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult( functionFragment: "removeRecipient", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "renounceOwnership", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setBaseDeposit", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setChallengePeriodDuration", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setMaxRecipients", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "transferOwnership", data: BytesLike ): Result; } export namespace OwnershipTransferredEvent { export type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike]; export type OutputTuple = [previousOwner: string, newOwner: string]; export interface OutputObject { previousOwner: string; newOwner: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace RequestResolvedEvent { export type InputTuple = [ _recipientId: BytesLike, _type: BigNumberish, _rejected: boolean, _recipientIndex: BigNumberish, _timestamp: BigNumberish ]; export type OutputTuple = [ _recipientId: string, _type: bigint, _rejected: boolean, _recipientIndex: bigint, _timestamp: bigint ]; export interface OutputObject { _recipientId: string; _type: bigint; _rejected: boolean; _recipientIndex: bigint; _timestamp: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace RequestSubmittedEvent { export type InputTuple = [ _recipientId: BytesLike, _type: BigNumberish, _recipient: AddressLike, _metadata: string, _timestamp: BigNumberish ]; export type OutputTuple = [ _recipientId: string, _type: bigint, _recipient: string, _metadata: string, _timestamp: bigint ]; export interface OutputObject { _recipientId: string; _type: bigint; _recipient: string; _metadata: string; _timestamp: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface OptimisticRecipientRegistry extends BaseContract { connect(runner?: ContractRunner | null): OptimisticRecipientRegistry; waitForDeployment(): Promise; interface: OptimisticRecipientRegistryInterface; 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; addRecipient: TypedContractMethod< [_recipient: AddressLike, _metadata: string], [void], "payable" >; baseDeposit: TypedContractMethod<[], [bigint], "view">; challengePeriodDuration: TypedContractMethod<[], [bigint], "view">; challengeRequest: TypedContractMethod< [_recipientId: BytesLike, _beneficiary: AddressLike], [boolean], "nonpayable" >; controller: TypedContractMethod<[], [string], "view">; executeRequest: TypedContractMethod< [_recipientId: BytesLike], [boolean], "nonpayable" >; getRecipientAddress: TypedContractMethod< [_index: BigNumberish, _startTime: BigNumberish, _endTime: BigNumberish], [string], "view" >; getRecipientCount: TypedContractMethod<[], [bigint], "view">; maxRecipients: TypedContractMethod<[], [bigint], "view">; owner: TypedContractMethod<[], [string], "view">; removeRecipient: TypedContractMethod< [_recipientId: BytesLike], [void], "payable" >; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; setBaseDeposit: TypedContractMethod< [_baseDeposit: BigNumberish], [void], "nonpayable" >; setChallengePeriodDuration: TypedContractMethod< [_challengePeriodDuration: BigNumberish], [void], "nonpayable" >; setMaxRecipients: TypedContractMethod< [_maxRecipients: BigNumberish], [boolean], "nonpayable" >; transferOwnership: TypedContractMethod< [newOwner: AddressLike], [void], "nonpayable" >; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "addRecipient" ): TypedContractMethod< [_recipient: AddressLike, _metadata: string], [void], "payable" >; getFunction( nameOrSignature: "baseDeposit" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "challengePeriodDuration" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "challengeRequest" ): TypedContractMethod< [_recipientId: BytesLike, _beneficiary: AddressLike], [boolean], "nonpayable" >; getFunction( nameOrSignature: "controller" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "executeRequest" ): TypedContractMethod<[_recipientId: BytesLike], [boolean], "nonpayable">; getFunction( nameOrSignature: "getRecipientAddress" ): TypedContractMethod< [_index: BigNumberish, _startTime: BigNumberish, _endTime: BigNumberish], [string], "view" >; getFunction( nameOrSignature: "getRecipientCount" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "maxRecipients" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "owner" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "removeRecipient" ): TypedContractMethod<[_recipientId: BytesLike], [void], "payable">; getFunction( nameOrSignature: "renounceOwnership" ): TypedContractMethod<[], [void], "nonpayable">; getFunction( nameOrSignature: "setBaseDeposit" ): TypedContractMethod<[_baseDeposit: BigNumberish], [void], "nonpayable">; getFunction( nameOrSignature: "setChallengePeriodDuration" ): TypedContractMethod< [_challengePeriodDuration: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "setMaxRecipients" ): TypedContractMethod< [_maxRecipients: BigNumberish], [boolean], "nonpayable" >; getFunction( nameOrSignature: "transferOwnership" ): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getEvent( key: "OwnershipTransferred" ): TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; getEvent( key: "RequestResolved" ): TypedContractEvent< RequestResolvedEvent.InputTuple, RequestResolvedEvent.OutputTuple, RequestResolvedEvent.OutputObject >; getEvent( key: "RequestSubmitted" ): TypedContractEvent< RequestSubmittedEvent.InputTuple, RequestSubmittedEvent.OutputTuple, RequestSubmittedEvent.OutputObject >; filters: { "OwnershipTransferred(address,address)": TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; OwnershipTransferred: TypedContractEvent< OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject >; "RequestResolved(bytes32,uint8,bool,uint256,uint256)": TypedContractEvent< RequestResolvedEvent.InputTuple, RequestResolvedEvent.OutputTuple, RequestResolvedEvent.OutputObject >; RequestResolved: TypedContractEvent< RequestResolvedEvent.InputTuple, RequestResolvedEvent.OutputTuple, RequestResolvedEvent.OutputObject >; "RequestSubmitted(bytes32,uint8,address,string,uint256)": TypedContractEvent< RequestSubmittedEvent.InputTuple, RequestSubmittedEvent.OutputTuple, RequestSubmittedEvent.OutputObject >; RequestSubmitted: TypedContractEvent< RequestSubmittedEvent.InputTuple, RequestSubmittedEvent.OutputTuple, RequestSubmittedEvent.OutputObject >; }; }