/* Autogenerated file. Do not edit manually. */ /* tslint:disable */ /* eslint-disable */ import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener, } from "ethers"; import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod, } from "./common"; export interface ISubscriptionInterface extends Interface { getFunction( nameOrSignature: | "acceptSubscriptionOwnerTransfer" | "addConsumer" | "cancelSubscription" | "createSubscription" | "fundSubscriptionWithNative" | "getActiveSubscriptionIds" | "getSubscription" | "pendingRequestExists" | "removeConsumer" | "requestSubscriptionOwnerTransfer" ): FunctionFragment; encodeFunctionData( functionFragment: "acceptSubscriptionOwnerTransfer", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "addConsumer", values: [BigNumberish, AddressLike] ): string; encodeFunctionData( functionFragment: "cancelSubscription", values: [BigNumberish, AddressLike] ): string; encodeFunctionData( functionFragment: "createSubscription", values?: undefined ): string; encodeFunctionData( functionFragment: "fundSubscriptionWithNative", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "getActiveSubscriptionIds", values: [BigNumberish, BigNumberish] ): string; encodeFunctionData( functionFragment: "getSubscription", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "pendingRequestExists", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "removeConsumer", values: [BigNumberish, AddressLike] ): string; encodeFunctionData( functionFragment: "requestSubscriptionOwnerTransfer", values: [BigNumberish, AddressLike] ): string; decodeFunctionResult( functionFragment: "acceptSubscriptionOwnerTransfer", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "addConsumer", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "cancelSubscription", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "createSubscription", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "fundSubscriptionWithNative", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getActiveSubscriptionIds", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getSubscription", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "pendingRequestExists", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "removeConsumer", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "requestSubscriptionOwnerTransfer", data: BytesLike ): Result; } export interface ISubscription extends BaseContract { connect(runner?: ContractRunner | null): ISubscription; waitForDeployment(): Promise; interface: ISubscriptionInterface; 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; acceptSubscriptionOwnerTransfer: TypedContractMethod< [subId: BigNumberish], [void], "nonpayable" >; addConsumer: TypedContractMethod< [subId: BigNumberish, consumer: AddressLike], [void], "nonpayable" >; cancelSubscription: TypedContractMethod< [subId: BigNumberish, to: AddressLike], [void], "nonpayable" >; createSubscription: TypedContractMethod<[], [bigint], "nonpayable">; fundSubscriptionWithNative: TypedContractMethod< [subId: BigNumberish], [void], "payable" >; getActiveSubscriptionIds: TypedContractMethod< [startIndex: BigNumberish, maxCount: BigNumberish], [bigint[]], "view" >; getSubscription: TypedContractMethod< [subId: BigNumberish], [ [bigint, bigint, string, string[]] & { nativeBalance: bigint; reqCount: bigint; owner: string; consumers: string[]; } ], "view" >; pendingRequestExists: TypedContractMethod< [subId: BigNumberish], [boolean], "view" >; removeConsumer: TypedContractMethod< [subId: BigNumberish, consumer: AddressLike], [void], "nonpayable" >; requestSubscriptionOwnerTransfer: TypedContractMethod< [subId: BigNumberish, newOwner: AddressLike], [void], "nonpayable" >; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "acceptSubscriptionOwnerTransfer" ): TypedContractMethod<[subId: BigNumberish], [void], "nonpayable">; getFunction( nameOrSignature: "addConsumer" ): TypedContractMethod< [subId: BigNumberish, consumer: AddressLike], [void], "nonpayable" >; getFunction( nameOrSignature: "cancelSubscription" ): TypedContractMethod< [subId: BigNumberish, to: AddressLike], [void], "nonpayable" >; getFunction( nameOrSignature: "createSubscription" ): TypedContractMethod<[], [bigint], "nonpayable">; getFunction( nameOrSignature: "fundSubscriptionWithNative" ): TypedContractMethod<[subId: BigNumberish], [void], "payable">; getFunction( nameOrSignature: "getActiveSubscriptionIds" ): TypedContractMethod< [startIndex: BigNumberish, maxCount: BigNumberish], [bigint[]], "view" >; getFunction( nameOrSignature: "getSubscription" ): TypedContractMethod< [subId: BigNumberish], [ [bigint, bigint, string, string[]] & { nativeBalance: bigint; reqCount: bigint; owner: string; consumers: string[]; } ], "view" >; getFunction( nameOrSignature: "pendingRequestExists" ): TypedContractMethod<[subId: BigNumberish], [boolean], "view">; getFunction( nameOrSignature: "removeConsumer" ): TypedContractMethod< [subId: BigNumberish, consumer: AddressLike], [void], "nonpayable" >; getFunction( nameOrSignature: "requestSubscriptionOwnerTransfer" ): TypedContractMethod< [subId: BigNumberish, newOwner: AddressLike], [void], "nonpayable" >; filters: {}; }