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 type DataPointRoyaltyStruct = { gasUsed: BigNumberish; publisher: AddressLike; }; export type DataPointRoyaltyStructOutput = [ gasUsed: bigint, publisher: string ] & { gasUsed: bigint; publisher: string; }; export interface DataPointRegistryInterface extends Interface { getFunction(nameOrSignature: "DPS" | "collectRoyalties" | "getDataPointRoyalty" | "owner" | "registerDataPoint" | "renounceOwnership" | "royaltyBalance" | "royaltyRate" | "setDPS" | "setRoyaltyRate" | "transfer" | "transferOwnership" | "updatePublisherAddress" | "updateRoyaltyRecord"): FunctionFragment; getEvent(nameOrSignatureOrTopic: "DataPointRegistered" | "OwnershipTransferred" | "RoyaltiesCollected" | "RoyaltiesPaid"): EventFragment; encodeFunctionData(functionFragment: "DPS", values?: undefined): string; encodeFunctionData(functionFragment: "collectRoyalties", values: [BigNumberish, AddressLike]): string; encodeFunctionData(functionFragment: "getDataPointRoyalty", values: [BytesLike]): string; encodeFunctionData(functionFragment: "owner", values?: undefined): string; encodeFunctionData(functionFragment: "registerDataPoint", values: [BytesLike, AddressLike]): string; encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string; encodeFunctionData(functionFragment: "royaltyBalance", values: [AddressLike]): string; encodeFunctionData(functionFragment: "royaltyRate", values?: undefined): string; encodeFunctionData(functionFragment: "setDPS", values: [AddressLike]): string; encodeFunctionData(functionFragment: "setRoyaltyRate", values: [BigNumberish]): string; encodeFunctionData(functionFragment: "transfer", values: [AddressLike, BigNumberish, AddressLike]): string; encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string; encodeFunctionData(functionFragment: "updatePublisherAddress", values: [BytesLike, AddressLike]): string; encodeFunctionData(functionFragment: "updateRoyaltyRecord", values: [BytesLike, DataPointRoyaltyStruct]): string; decodeFunctionResult(functionFragment: "DPS", data: BytesLike): Result; decodeFunctionResult(functionFragment: "collectRoyalties", data: BytesLike): Result; decodeFunctionResult(functionFragment: "getDataPointRoyalty", data: BytesLike): Result; decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result; decodeFunctionResult(functionFragment: "registerDataPoint", data: BytesLike): Result; decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result; decodeFunctionResult(functionFragment: "royaltyBalance", data: BytesLike): Result; decodeFunctionResult(functionFragment: "royaltyRate", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setDPS", data: BytesLike): Result; decodeFunctionResult(functionFragment: "setRoyaltyRate", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result; decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result; decodeFunctionResult(functionFragment: "updatePublisherAddress", data: BytesLike): Result; decodeFunctionResult(functionFragment: "updateRoyaltyRecord", data: BytesLike): Result; } export declare namespace DataPointRegisteredEvent { type InputTuple = [ dataPointAddress: BytesLike, publisher: AddressLike ]; type OutputTuple = [dataPointAddress: string, publisher: string]; interface OutputObject { dataPointAddress: string; publisher: 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 RoyaltiesCollectedEvent { type InputTuple = [ publisher: AddressLike, amount: BigNumberish, withdrawTo: AddressLike ]; type OutputTuple = [ publisher: string, amount: bigint, withdrawTo: string ]; interface OutputObject { publisher: string; amount: bigint; withdrawTo: string; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export declare namespace RoyaltiesPaidEvent { type InputTuple = [ dataPointAddress: BytesLike, payer: AddressLike, amount: BigNumberish ]; type OutputTuple = [ dataPointAddress: string, payer: string, amount: bigint ]; interface OutputObject { dataPointAddress: string; payer: string; amount: bigint; } type Event = TypedContractEvent; type Filter = TypedDeferredTopicFilter; type Log = TypedEventLog; type LogDescription = TypedLogDescription; } export interface DataPointRegistry extends BaseContract { connect(runner?: ContractRunner | null): DataPointRegistry; waitForDeployment(): Promise; interface: DataPointRegistryInterface; 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; DPS: TypedContractMethod<[], [string], "view">; collectRoyalties: TypedContractMethod<[ _amount: BigNumberish, _withdrawTo: AddressLike ], [ void ], "nonpayable">; getDataPointRoyalty: TypedContractMethod<[ _dataPointAddress: BytesLike ], [ bigint ], "view">; owner: TypedContractMethod<[], [string], "view">; registerDataPoint: TypedContractMethod<[ _dataPoint: BytesLike, _publisher: AddressLike ], [ string ], "payable">; renounceOwnership: TypedContractMethod<[], [void], "nonpayable">; royaltyBalance: TypedContractMethod<[ _publisher: AddressLike ], [ bigint ], "view">; royaltyRate: TypedContractMethod<[], [bigint], "view">; setDPS: TypedContractMethod<[_dps: AddressLike], [void], "nonpayable">; setRoyaltyRate: TypedContractMethod<[ _royaltyRate: BigNumberish ], [ void ], "nonpayable">; transfer: TypedContractMethod<[ _publisher: AddressLike, _amount: BigNumberish, _to: AddressLike ], [ void ], "nonpayable">; transferOwnership: TypedContractMethod<[ newOwner: AddressLike ], [ void ], "nonpayable">; updatePublisherAddress: TypedContractMethod<[ _dataPointAddress: BytesLike, _newPublisher: AddressLike ], [ void ], "nonpayable">; updateRoyaltyRecord: TypedContractMethod<[ _dataPointAddress: BytesLike, _dataPointRoyalty: DataPointRoyaltyStruct ], [ void ], "nonpayable">; getFunction(key: string | FunctionFragment): T; getFunction(nameOrSignature: "DPS"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "collectRoyalties"): TypedContractMethod<[ _amount: BigNumberish, _withdrawTo: AddressLike ], [ void ], "nonpayable">; getFunction(nameOrSignature: "getDataPointRoyalty"): TypedContractMethod<[_dataPointAddress: BytesLike], [bigint], "view">; getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">; getFunction(nameOrSignature: "registerDataPoint"): TypedContractMethod<[ _dataPoint: BytesLike, _publisher: AddressLike ], [ string ], "payable">; getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">; getFunction(nameOrSignature: "royaltyBalance"): TypedContractMethod<[_publisher: AddressLike], [bigint], "view">; getFunction(nameOrSignature: "royaltyRate"): TypedContractMethod<[], [bigint], "view">; getFunction(nameOrSignature: "setDPS"): TypedContractMethod<[_dps: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "setRoyaltyRate"): TypedContractMethod<[_royaltyRate: BigNumberish], [void], "nonpayable">; getFunction(nameOrSignature: "transfer"): TypedContractMethod<[ _publisher: AddressLike, _amount: BigNumberish, _to: AddressLike ], [ void ], "nonpayable">; getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">; getFunction(nameOrSignature: "updatePublisherAddress"): TypedContractMethod<[ _dataPointAddress: BytesLike, _newPublisher: AddressLike ], [ void ], "nonpayable">; getFunction(nameOrSignature: "updateRoyaltyRecord"): TypedContractMethod<[ _dataPointAddress: BytesLike, _dataPointRoyalty: DataPointRoyaltyStruct ], [ void ], "nonpayable">; getEvent(key: "DataPointRegistered"): TypedContractEvent; getEvent(key: "OwnershipTransferred"): TypedContractEvent; getEvent(key: "RoyaltiesCollected"): TypedContractEvent; getEvent(key: "RoyaltiesPaid"): TypedContractEvent; filters: { "DataPointRegistered(bytes32,address)": TypedContractEvent; DataPointRegistered: TypedContractEvent; "OwnershipTransferred(address,address)": TypedContractEvent; OwnershipTransferred: TypedContractEvent; "RoyaltiesCollected(address,uint256,address)": TypedContractEvent; RoyaltiesCollected: TypedContractEvent; "RoyaltiesPaid(bytes32,address,uint256)": TypedContractEvent; RoyaltiesPaid: TypedContractEvent; }; } //# sourceMappingURL=DataPointRegistry.d.ts.map