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 AbstractBlocklockReceiverInterface extends Interface { getFunction(nameOrSignature: "acceptOwnership" | "blocklock" | "createSubscriptionAndFundNative" | "fundContractNative" | "getBalance" | "isInFlight" | "owner" | "pendingRequestExists" | "receiveBlocklock" | "setBlocklock" | "setSubId" | "subscriptionId" | "topUpSubscriptionNative" | "transferOwnership" | "updateSubscription" | "withdrawNative"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "Funded" | "NewSubscriptionId" | "OwnershipTransferRequested" | "OwnershipTransferred" | "Received" | "Withdrawn"): EventFragment; encodeFunctionData(functionFragment: "acceptOwnership", values?: undefined): string; encodeFunctionData(functionFragment: "blocklock", values?: undefined): string; encodeFunctionData(functionFragment: "createSubscriptionAndFundNative", values?: undefined): string; encodeFunctionData(functionFragment: "fundContractNative", values?: undefined): string; encodeFunctionData(functionFragment: "getBalance", values?: undefined): string; encodeFunctionData(functionFragment: "isInFlight", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData(functionFragment: "pendingRequestExists", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "receiveBlocklock", values: [BigNumberish, BytesLike]): string; encodeFunctionData(functionFragment: "setBlocklock", values: [AddressLike]): string; encodeFunctionData(functionFragment: "setSubId", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "subscriptionId", values?: undefined): string; encodeFunctionData(functionFragment: "topUpSubscriptionNative", values?: undefined): string; encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string; encodeFunctionData(functionFragment: "updateSubscription", values: [AddressLike[]]): string; encodeFunctionData(functionFragment: "withdrawNative", values: [BigNumberish, AddressLike]): string; decodeFunctionResult(functionFragment: "acceptOwnership", data: BytesLike): Result; decodeFunctionResult(functionFragment: "blocklock", data: BytesLike): Result; decodeFunctionResult(functionFragment: "createSubscriptionAndFundNative", data: BytesLike): Result; decodeFunctionResult(functionFragment: "fundContractNative", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getBalance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isInFlight", data: BytesLike): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "pendingRequestExists", data: BytesLike): Result; decodeFunctionResult(functionFragment: "receiveBlocklock", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setBlocklock", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setSubId", data: BytesLike): Result; decodeFunctionResult(functionFragment: "subscriptionId", data: BytesLike): Result; decodeFunctionResult(functionFragment: "topUpSubscriptionNative", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result; decodeFunctionResult(functionFragment: "updateSubscription", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdrawNative", data: BytesLike): Result; } export declare namespace FundedEvent { type InputTuple = [sender: AddressLike, amount: BigNumberish]; type OutputTuple = [sender: string, amount: bigint]; interface OutputObject { sender: string; amount: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace NewSubscriptionIdEvent { type InputTuple = [subscriptionId: BigNumberish]; type OutputTuple = [subscriptionId: bigint]; interface OutputObject { subscriptionId: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace OwnershipTransferRequestedEvent { type InputTuple = [from: AddressLike, to: AddressLike]; type OutputTuple = [from: string, to: string]; interface OutputObject { from: string; to: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace OwnershipTransferredEvent { type InputTuple = [from: AddressLike, to: AddressLike]; type OutputTuple = [from: string, to: string]; interface OutputObject { from: string; to: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace ReceivedEvent { type InputTuple = [arg0: AddressLike, arg1: BigNumberish]; type OutputTuple = [arg0: string, arg1: bigint]; interface OutputObject { arg0: string; arg1: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace WithdrawnEvent { type InputTuple = [recipient: AddressLike, amount: BigNumberish]; type OutputTuple = [recipient: string, amount: bigint]; interface OutputObject { recipient: string; amount: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface AbstractBlocklockReceiver extends BaseContract { connect(runner?: ContractRunner | null): AbstractBlocklockReceiver; waitForDeployment(): Promise; interface: AbstractBlocklockReceiverInterface; 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; acceptOwnership: TypedContractMethod<[], [void], "nonpayable">; blocklock: TypedContractMethod<[], [string], "view">; createSubscriptionAndFundNative: TypedContractMethod<[], [void], "payable">; fundContractNative: TypedContractMethod<[], [void], "payable">; getBalance: TypedContractMethod<[], [bigint], "view">; isInFlight: TypedContractMethod<[requestId: BigNumberish], [boolean], "view">; owner: TypedContractMethod<[], [string], "view">; pendingRequestExists: TypedContractMethod<[ subId: BigNumberish ], [ boolean ], "view">; receiveBlocklock: TypedContractMethod<[ requestId: BigNumberish, decryptionKey: BytesLike ], [ void ], "nonpayable">; setBlocklock: TypedContractMethod<[ _blocklock: AddressLike ], [ void ], "nonpayable">; setSubId: TypedContractMethod<[subId: BigNumberish], [void], "nonpayable">; subscriptionId: TypedContractMethod<[], [bigint], "view">; topUpSubscriptionNative: TypedContractMethod<[], [void], "payable">; transferOwnership: TypedContractMethod<[ to: AddressLike ], [ void ], "nonpayable">; updateSubscription: TypedContractMethod<[ consumers: AddressLike[] ], [ void ], "nonpayable">; withdrawNative: TypedContractMethod<[ amount: BigNumberish, recipient: AddressLike ], [ void ], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "acceptOwnership"): TypedContractMethod<[], [void], "nonpayable">; getFunction(nameOrSignature: "blocklock"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "createSubscriptionAndFundNative"): TypedContractMethod<[], [void], "payable">; getFunction(nameOrSignature: "fundContractNative"): TypedContractMethod<[], [void], "payable">; getFunction(nameOrSignature: "getBalance"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "isInFlight"): TypedContractMethod<[requestId: BigNumberish], [boolean], "view">; getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "pendingRequestExists"): TypedContractMethod<[subId: BigNumberish], [boolean], "view">; getFunction(nameOrSignature: "receiveBlocklock"): TypedContractMethod<[ requestId: BigNumberish, decryptionKey: BytesLike ], [ void ], "nonpayable">; getFunction(nameOrSignature: "setBlocklock"): TypedContractMethod<[_blocklock: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "setSubId"): TypedContractMethod<[subId: BigNumberish], [void], "nonpayable">; getFunction(nameOrSignature: "subscriptionId"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "topUpSubscriptionNative"): TypedContractMethod<[], [void], "payable">; getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[to: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "updateSubscription"): TypedContractMethod<[consumers: AddressLike[]], [void], "nonpayable">; getFunction(nameOrSignature: "withdrawNative"): TypedContractMethod<[ amount: BigNumberish, recipient: AddressLike ], [ void ], "nonpayable">; getEvent(key: "Funded"): TypedContractEvent; getEvent(key: "NewSubscriptionId"): TypedContractEvent; getEvent(key: "OwnershipTransferRequested"): TypedContractEvent; getEvent(key: "OwnershipTransferred"): TypedContractEvent; getEvent(key: "Received"): TypedContractEvent; getEvent(key: "Withdrawn"): TypedContractEvent; filters: { "Funded(address,uint256)": TypedContractEvent; Funded: TypedContractEvent; "NewSubscriptionId(uint256)": TypedContractEvent; NewSubscriptionId: TypedContractEvent; "OwnershipTransferRequested(address,address)": TypedContractEvent; OwnershipTransferRequested: TypedContractEvent; "OwnershipTransferred(address,address)": TypedContractEvent; OwnershipTransferred: TypedContractEvent; "Received(address,uint256)": TypedContractEvent; Received: TypedContractEvent; "Withdrawn(address,uint256)": TypedContractEvent; Withdrawn: TypedContractEvent; }; }