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 BlocklockFeeCollectorInterface extends Interface { getFunction(nameOrSignature: "MAX_CONSUMERS" | "acceptSubscriptionOwnerTransfer" | "addConsumer" | "calculateRequestPriceNative" | "cancelSubscription" | "createSubscription" | "disable" | "enable" | "estimateRequestPriceNative" | "fundSubscriptionWithNative" | "getActiveSubscriptionIds" | "getSubscription" | "ownerCancelSubscription" | "pendingRequestExists" | "removeConsumer" | "requestSubscriptionOwnerTransfer" | "s_config" | "s_configured" | "s_currentSubNonce" | "s_disabled" | "s_totalNativeBalance" | "s_withdrawableDirectFundingFeeNative" | "s_withdrawableSubscriptionFeeNative" | "setConfig" | "withdrawDirectFundingFeesNative" | "withdrawSubscriptionFeesNative"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "ConfigSet" | "Disabled" | "Enabled" | "L1GasFee" | "SubscriptionCanceled" | "SubscriptionConsumerAdded" | "SubscriptionConsumerRemoved" | "SubscriptionCreated" | "SubscriptionFundedWithNative" | "SubscriptionOwnerTransferRequested" | "SubscriptionOwnerTransferred"): EventFragment; encodeFunctionData(functionFragment: "MAX_CONSUMERS", values?: undefined): string; encodeFunctionData(functionFragment: "acceptSubscriptionOwnerTransfer", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "addConsumer", values: [BigNumberish, AddressLike]): string; encodeFunctionData(functionFragment: "calculateRequestPriceNative", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "cancelSubscription", values: [BigNumberish, AddressLike]): string; encodeFunctionData(functionFragment: "createSubscription", values?: undefined): string; encodeFunctionData(functionFragment: "disable", values?: undefined): string; encodeFunctionData(functionFragment: "enable", values?: undefined): string; encodeFunctionData(functionFragment: "estimateRequestPriceNative", values: [BigNumberish, BigNumberish]): string; encodeFunctionData(functionFragment: "fundSubscriptionWithNative", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "getActiveSubscriptionIds", values: [BigNumberish, BigNumberish]): string; encodeFunctionData(functionFragment: "getSubscription", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "ownerCancelSubscription", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "pendingRequestExists", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "removeConsumer", values: [BigNumberish, AddressLike]): string; encodeFunctionData(functionFragment: "requestSubscriptionOwnerTransfer", values: [BigNumberish, AddressLike]): string; encodeFunctionData(functionFragment: "s_config", values?: undefined): string; encodeFunctionData(functionFragment: "s_configured", values?: undefined): string; encodeFunctionData(functionFragment: "s_currentSubNonce", values?: undefined): string; encodeFunctionData(functionFragment: "s_disabled", values?: undefined): string; encodeFunctionData(functionFragment: "s_totalNativeBalance", values?: undefined): string; encodeFunctionData(functionFragment: "s_withdrawableDirectFundingFeeNative", values?: undefined): string; encodeFunctionData(functionFragment: "s_withdrawableSubscriptionFeeNative", values?: undefined): string; encodeFunctionData(functionFragment: "setConfig", values: [ BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish, BigNumberish ]): string; encodeFunctionData(functionFragment: "withdrawDirectFundingFeesNative", values: [AddressLike]): string; encodeFunctionData(functionFragment: "withdrawSubscriptionFeesNative", values: [AddressLike]): string; decodeFunctionResult(functionFragment: "MAX_CONSUMERS", data: BytesLike): Result; decodeFunctionResult(functionFragment: "acceptSubscriptionOwnerTransfer", data: BytesLike): Result; decodeFunctionResult(functionFragment: "addConsumer", data: BytesLike): Result; decodeFunctionResult(functionFragment: "calculateRequestPriceNative", data: BytesLike): Result; decodeFunctionResult(functionFragment: "cancelSubscription", data: BytesLike): Result; decodeFunctionResult(functionFragment: "createSubscription", data: BytesLike): Result; decodeFunctionResult(functionFragment: "disable", data: BytesLike): Result; decodeFunctionResult(functionFragment: "enable", data: BytesLike): Result; decodeFunctionResult(functionFragment: "estimateRequestPriceNative", data: BytesLike): Result; decodeFunctionResult(functionFragment: "fundSubscriptionWithNative", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getActiveSubscriptionIds", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getSubscription", data: BytesLike): Result; decodeFunctionResult(functionFragment: "ownerCancelSubscription", data: BytesLike): Result; decodeFunctionResult(functionFragment: "pendingRequestExists", data: BytesLike): Result; decodeFunctionResult(functionFragment: "removeConsumer", data: BytesLike): Result; decodeFunctionResult(functionFragment: "requestSubscriptionOwnerTransfer", data: BytesLike): Result; decodeFunctionResult(functionFragment: "s_config", data: BytesLike): Result; decodeFunctionResult(functionFragment: "s_configured", data: BytesLike): Result; decodeFunctionResult(functionFragment: "s_currentSubNonce", data: BytesLike): Result; decodeFunctionResult(functionFragment: "s_disabled", data: BytesLike): Result; decodeFunctionResult(functionFragment: "s_totalNativeBalance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "s_withdrawableDirectFundingFeeNative", data: BytesLike): Result; decodeFunctionResult(functionFragment: "s_withdrawableSubscriptionFeeNative", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setConfig", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdrawDirectFundingFeesNative", data: BytesLike): Result; decodeFunctionResult(functionFragment: "withdrawSubscriptionFeesNative", data: BytesLike): Result; } export declare namespace ConfigSetEvent { type InputTuple = [ maxGasLimit: BigNumberish, gasAfterPaymentCalculation: BigNumberish, fulfillmentFlatFeeNativePPM: BigNumberish, weiPerUnitGas: BigNumberish, blsPairingCheckOverhead: BigNumberish, nativePremiumPercentage: BigNumberish, gasForCallExactCheck: BigNumberish ]; type OutputTuple = [ maxGasLimit: bigint, gasAfterPaymentCalculation: bigint, fulfillmentFlatFeeNativePPM: bigint, weiPerUnitGas: bigint, blsPairingCheckOverhead: bigint, nativePremiumPercentage: bigint, gasForCallExactCheck: bigint ]; interface OutputObject { maxGasLimit: bigint; gasAfterPaymentCalculation: bigint; fulfillmentFlatFeeNativePPM: bigint; weiPerUnitGas: bigint; blsPairingCheckOverhead: bigint; nativePremiumPercentage: bigint; gasForCallExactCheck: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace DisabledEvent { type InputTuple = []; type OutputTuple = []; interface OutputObject { } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace EnabledEvent { type InputTuple = []; type OutputTuple = []; interface OutputObject { } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace L1GasFeeEvent { type InputTuple = [fee: BigNumberish]; type OutputTuple = [fee: bigint]; interface OutputObject { fee: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace SubscriptionCanceledEvent { type InputTuple = [ subId: BigNumberish, to: AddressLike, amountNative: BigNumberish ]; type OutputTuple = [subId: bigint, to: string, amountNative: bigint]; interface OutputObject { subId: bigint; to: string; amountNative: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace SubscriptionConsumerAddedEvent { type InputTuple = [subId: BigNumberish, consumer: AddressLike]; type OutputTuple = [subId: bigint, consumer: string]; interface OutputObject { subId: bigint; consumer: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace SubscriptionConsumerRemovedEvent { type InputTuple = [subId: BigNumberish, consumer: AddressLike]; type OutputTuple = [subId: bigint, consumer: string]; interface OutputObject { subId: bigint; consumer: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace SubscriptionCreatedEvent { type InputTuple = [subId: BigNumberish, owner: AddressLike]; type OutputTuple = [subId: bigint, owner: string]; interface OutputObject { subId: bigint; owner: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace SubscriptionFundedWithNativeEvent { type InputTuple = [ subId: BigNumberish, oldNativeBalance: BigNumberish, newNativeBalance: BigNumberish ]; type OutputTuple = [ subId: bigint, oldNativeBalance: bigint, newNativeBalance: bigint ]; interface OutputObject { subId: bigint; oldNativeBalance: bigint; newNativeBalance: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace SubscriptionOwnerTransferRequestedEvent { type InputTuple = [ subId: BigNumberish, from: AddressLike, to: AddressLike ]; type OutputTuple = [subId: bigint, from: string, to: string]; interface OutputObject { subId: bigint; from: string; to: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace SubscriptionOwnerTransferredEvent { type InputTuple = [ subId: BigNumberish, from: AddressLike, to: AddressLike ]; type OutputTuple = [subId: bigint, from: string, to: string]; interface OutputObject { subId: bigint; from: string; to: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface BlocklockFeeCollector extends BaseContract { connect(runner?: ContractRunner | null): BlocklockFeeCollector; waitForDeployment(): Promise; interface: BlocklockFeeCollectorInterface; 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; MAX_CONSUMERS: TypedContractMethod<[], [bigint], "view">; acceptSubscriptionOwnerTransfer: TypedContractMethod<[ subId: BigNumberish ], [ void ], "nonpayable">; addConsumer: TypedContractMethod<[ subId: BigNumberish, consumer: AddressLike ], [ void ], "nonpayable">; calculateRequestPriceNative: TypedContractMethod<[ _callbackGasLimit: BigNumberish ], [ bigint ], "view">; cancelSubscription: TypedContractMethod<[ subId: BigNumberish, to: AddressLike ], [ void ], "nonpayable">; createSubscription: TypedContractMethod<[], [bigint], "nonpayable">; disable: TypedContractMethod<[], [void], "nonpayable">; enable: TypedContractMethod<[], [void], "nonpayable">; estimateRequestPriceNative: TypedContractMethod<[ _callbackGasLimit: BigNumberish, _requestGasPriceWei: BigNumberish ], [ bigint ], "view">; 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; subOwner: string; consumers: string[]; } ], "view">; ownerCancelSubscription: TypedContractMethod<[ subId: BigNumberish ], [ void ], "nonpayable">; pendingRequestExists: TypedContractMethod<[ subId: BigNumberish ], [ boolean ], "view">; removeConsumer: TypedContractMethod<[ subId: BigNumberish, consumer: AddressLike ], [ void ], "nonpayable">; requestSubscriptionOwnerTransfer: TypedContractMethod<[ subId: BigNumberish, newOwner: AddressLike ], [ void ], "nonpayable">; s_config: TypedContractMethod<[ ], [ [ bigint, bigint, bigint, bigint, bigint, bigint, bigint ] & { maxGasLimit: bigint; gasAfterPaymentCalculation: bigint; fulfillmentFlatFeeNativePPM: bigint; weiPerUnitGas: bigint; blsPairingCheckOverhead: bigint; nativePremiumPercentage: bigint; gasForCallExactCheck: bigint; } ], "view">; s_configured: TypedContractMethod<[], [boolean], "view">; s_currentSubNonce: TypedContractMethod<[], [bigint], "view">; s_disabled: TypedContractMethod<[], [boolean], "view">; s_totalNativeBalance: TypedContractMethod<[], [bigint], "view">; s_withdrawableDirectFundingFeeNative: TypedContractMethod<[ ], [ bigint ], "view">; s_withdrawableSubscriptionFeeNative: TypedContractMethod<[ ], [ bigint ], "view">; setConfig: TypedContractMethod<[ maxGasLimit: BigNumberish, gasAfterPaymentCalculation: BigNumberish, fulfillmentFlatFeeNativePPM: BigNumberish, weiPerUnitGas: BigNumberish, blsPairingCheckOverhead: BigNumberish, nativePremiumPercentage: BigNumberish, gasForCallExactCheck: BigNumberish ], [ void ], "nonpayable">; withdrawDirectFundingFeesNative: TypedContractMethod<[ recipient: AddressLike ], [ void ], "nonpayable">; withdrawSubscriptionFeesNative: TypedContractMethod<[ recipient: AddressLike ], [ void ], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "MAX_CONSUMERS"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "acceptSubscriptionOwnerTransfer"): TypedContractMethod<[subId: BigNumberish], [void], "nonpayable">; getFunction(nameOrSignature: "addConsumer"): TypedContractMethod<[ subId: BigNumberish, consumer: AddressLike ], [ void ], "nonpayable">; getFunction(nameOrSignature: "calculateRequestPriceNative"): TypedContractMethod<[_callbackGasLimit: BigNumberish], [bigint], "view">; getFunction(nameOrSignature: "cancelSubscription"): TypedContractMethod<[ subId: BigNumberish, to: AddressLike ], [ void ], "nonpayable">; getFunction(nameOrSignature: "createSubscription"): TypedContractMethod<[], [bigint], "nonpayable">; getFunction(nameOrSignature: "disable"): TypedContractMethod<[], [void], "nonpayable">; getFunction(nameOrSignature: "enable"): TypedContractMethod<[], [void], "nonpayable">; getFunction(nameOrSignature: "estimateRequestPriceNative"): TypedContractMethod<[ _callbackGasLimit: BigNumberish, _requestGasPriceWei: BigNumberish ], [ bigint ], "view">; 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; subOwner: string; consumers: string[]; } ], "view">; getFunction(nameOrSignature: "ownerCancelSubscription"): TypedContractMethod<[subId: BigNumberish], [void], "nonpayable">; 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">; getFunction(nameOrSignature: "s_config"): TypedContractMethod<[ ], [ [ bigint, bigint, bigint, bigint, bigint, bigint, bigint ] & { maxGasLimit: bigint; gasAfterPaymentCalculation: bigint; fulfillmentFlatFeeNativePPM: bigint; weiPerUnitGas: bigint; blsPairingCheckOverhead: bigint; nativePremiumPercentage: bigint; gasForCallExactCheck: bigint; } ], "view">; getFunction(nameOrSignature: "s_configured"): TypedContractMethod<[], [boolean], "view">; getFunction(nameOrSignature: "s_currentSubNonce"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "s_disabled"): TypedContractMethod<[], [boolean], "view">; getFunction(nameOrSignature: "s_totalNativeBalance"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "s_withdrawableDirectFundingFeeNative"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "s_withdrawableSubscriptionFeeNative"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "setConfig"): TypedContractMethod<[ maxGasLimit: BigNumberish, gasAfterPaymentCalculation: BigNumberish, fulfillmentFlatFeeNativePPM: BigNumberish, weiPerUnitGas: BigNumberish, blsPairingCheckOverhead: BigNumberish, nativePremiumPercentage: BigNumberish, gasForCallExactCheck: BigNumberish ], [ void ], "nonpayable">; getFunction(nameOrSignature: "withdrawDirectFundingFeesNative"): TypedContractMethod<[recipient: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "withdrawSubscriptionFeesNative"): TypedContractMethod<[recipient: AddressLike], [void], "nonpayable">; getEvent(key: "ConfigSet"): TypedContractEvent; getEvent(key: "Disabled"): TypedContractEvent; getEvent(key: "Enabled"): TypedContractEvent; getEvent(key: "L1GasFee"): TypedContractEvent; getEvent(key: "SubscriptionCanceled"): TypedContractEvent; getEvent(key: "SubscriptionConsumerAdded"): TypedContractEvent; getEvent(key: "SubscriptionConsumerRemoved"): TypedContractEvent; getEvent(key: "SubscriptionCreated"): TypedContractEvent; getEvent(key: "SubscriptionFundedWithNative"): TypedContractEvent; getEvent(key: "SubscriptionOwnerTransferRequested"): TypedContractEvent; getEvent(key: "SubscriptionOwnerTransferred"): TypedContractEvent; filters: { "ConfigSet(uint32,uint32,uint32,uint32,uint32,uint8,uint32)": TypedContractEvent; ConfigSet: TypedContractEvent; "Disabled()": TypedContractEvent; Disabled: TypedContractEvent; "Enabled()": TypedContractEvent; Enabled: TypedContractEvent; "L1GasFee(uint256)": TypedContractEvent; L1GasFee: TypedContractEvent; "SubscriptionCanceled(uint256,address,uint256)": TypedContractEvent; SubscriptionCanceled: TypedContractEvent; "SubscriptionConsumerAdded(uint256,address)": TypedContractEvent; SubscriptionConsumerAdded: TypedContractEvent; "SubscriptionConsumerRemoved(uint256,address)": TypedContractEvent; SubscriptionConsumerRemoved: TypedContractEvent; "SubscriptionCreated(uint256,address)": TypedContractEvent; SubscriptionCreated: TypedContractEvent; "SubscriptionFundedWithNative(uint256,uint256,uint256)": TypedContractEvent; SubscriptionFundedWithNative: TypedContractEvent; "SubscriptionOwnerTransferRequested(uint256,address,address)": TypedContractEvent; SubscriptionOwnerTransferRequested: TypedContractEvent; "SubscriptionOwnerTransferred(uint256,address,address)": TypedContractEvent; SubscriptionOwnerTransferred: TypedContractEvent; }; }