/* 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 IRewardsManagerToolshedInterface extends Interface { getFunction( nameOrSignature: | "calcRewards" | "getAccRewardsForSubgraph" | "getAccRewardsPerAllocatedToken" | "getAccRewardsPerSignal" | "getNewRewardsPerSignal" | "getRewards" | "isDenied" | "onSubgraphAllocationUpdate" | "onSubgraphSignalUpdate" | "setDenied" | "setIssuancePerBlock" | "setMinimumSubgraphSignal" | "setSubgraphAvailabilityOracle" | "setSubgraphService" | "subgraphService" | "takeRewards" | "updateAccRewardsPerSignal" ): FunctionFragment; getEvent( nameOrSignatureOrTopic: | "HorizonRewardsAssigned" | "RewardsAssigned" | "RewardsDenied" | "RewardsDenylistUpdated" | "SubgraphServiceSet" ): EventFragment; encodeFunctionData( functionFragment: "calcRewards", values: [BigNumberish, BigNumberish] ): string; encodeFunctionData( functionFragment: "getAccRewardsForSubgraph", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "getAccRewardsPerAllocatedToken", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "getAccRewardsPerSignal", values?: undefined ): string; encodeFunctionData( functionFragment: "getNewRewardsPerSignal", values?: undefined ): string; encodeFunctionData( functionFragment: "getRewards", values: [AddressLike, AddressLike] ): string; encodeFunctionData(functionFragment: "isDenied", values: [BytesLike]): string; encodeFunctionData( functionFragment: "onSubgraphAllocationUpdate", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "onSubgraphSignalUpdate", values: [BytesLike] ): string; encodeFunctionData( functionFragment: "setDenied", values: [BytesLike, boolean] ): string; encodeFunctionData( functionFragment: "setIssuancePerBlock", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "setMinimumSubgraphSignal", values: [BigNumberish] ): string; encodeFunctionData( functionFragment: "setSubgraphAvailabilityOracle", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "setSubgraphService", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "subgraphService", values?: undefined ): string; encodeFunctionData( functionFragment: "takeRewards", values: [AddressLike] ): string; encodeFunctionData( functionFragment: "updateAccRewardsPerSignal", values?: undefined ): string; decodeFunctionResult( functionFragment: "calcRewards", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getAccRewardsForSubgraph", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getAccRewardsPerAllocatedToken", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getAccRewardsPerSignal", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "getNewRewardsPerSignal", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "getRewards", data: BytesLike): Result; decodeFunctionResult(functionFragment: "isDenied", data: BytesLike): Result; decodeFunctionResult( functionFragment: "onSubgraphAllocationUpdate", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "onSubgraphSignalUpdate", data: BytesLike ): Result; decodeFunctionResult(functionFragment: "setDenied", data: BytesLike): Result; decodeFunctionResult( functionFragment: "setIssuancePerBlock", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setMinimumSubgraphSignal", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setSubgraphAvailabilityOracle", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "setSubgraphService", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "subgraphService", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "takeRewards", data: BytesLike ): Result; decodeFunctionResult( functionFragment: "updateAccRewardsPerSignal", data: BytesLike ): Result; } export namespace HorizonRewardsAssignedEvent { export type InputTuple = [ indexer: AddressLike, allocationID: AddressLike, amount: BigNumberish ]; export type OutputTuple = [ indexer: string, allocationID: string, amount: bigint ]; export interface OutputObject { indexer: string; allocationID: string; amount: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace RewardsAssignedEvent { export type InputTuple = [ indexer: AddressLike, allocationID: AddressLike, amount: BigNumberish ]; export type OutputTuple = [ indexer: string, allocationID: string, amount: bigint ]; export interface OutputObject { indexer: string; allocationID: string; amount: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace RewardsDeniedEvent { export type InputTuple = [indexer: AddressLike, allocationID: AddressLike]; export type OutputTuple = [indexer: string, allocationID: string]; export interface OutputObject { indexer: string; allocationID: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace RewardsDenylistUpdatedEvent { export type InputTuple = [ subgraphDeploymentID: BytesLike, sinceBlock: BigNumberish ]; export type OutputTuple = [subgraphDeploymentID: string, sinceBlock: bigint]; export interface OutputObject { subgraphDeploymentID: string; sinceBlock: bigint; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export namespace SubgraphServiceSetEvent { export type InputTuple = [ oldSubgraphService: AddressLike, newSubgraphService: AddressLike ]; export type OutputTuple = [ oldSubgraphService: string, newSubgraphService: string ]; export interface OutputObject { oldSubgraphService: string; newSubgraphService: string; } export type Event = TypedContractEvent; export type Filter = TypedDeferredTopicFilter; export type Log = TypedEventLog; export type LogDescription = TypedLogDescription; } export interface IRewardsManagerToolshed extends BaseContract { connect(runner?: ContractRunner | null): IRewardsManagerToolshed; waitForDeployment(): Promise; interface: IRewardsManagerToolshedInterface; 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; calcRewards: TypedContractMethod< [tokens: BigNumberish, accRewardsPerAllocatedToken: BigNumberish], [bigint], "view" >; getAccRewardsForSubgraph: TypedContractMethod< [subgraphDeploymentID: BytesLike], [bigint], "view" >; getAccRewardsPerAllocatedToken: TypedContractMethod< [subgraphDeploymentID: BytesLike], [[bigint, bigint]], "view" >; getAccRewardsPerSignal: TypedContractMethod<[], [bigint], "view">; getNewRewardsPerSignal: TypedContractMethod<[], [bigint], "view">; getRewards: TypedContractMethod< [rewardsIssuer: AddressLike, allocationID: AddressLike], [bigint], "view" >; isDenied: TypedContractMethod< [subgraphDeploymentID: BytesLike], [boolean], "view" >; onSubgraphAllocationUpdate: TypedContractMethod< [subgraphDeploymentID: BytesLike], [bigint], "nonpayable" >; onSubgraphSignalUpdate: TypedContractMethod< [subgraphDeploymentID: BytesLike], [bigint], "nonpayable" >; setDenied: TypedContractMethod< [subgraphDeploymentID: BytesLike, deny: boolean], [void], "nonpayable" >; setIssuancePerBlock: TypedContractMethod< [issuancePerBlock: BigNumberish], [void], "nonpayable" >; setMinimumSubgraphSignal: TypedContractMethod< [minimumSubgraphSignal: BigNumberish], [void], "nonpayable" >; setSubgraphAvailabilityOracle: TypedContractMethod< [subgraphAvailabilityOracle: AddressLike], [void], "nonpayable" >; setSubgraphService: TypedContractMethod< [subgraphService: AddressLike], [void], "nonpayable" >; subgraphService: TypedContractMethod<[], [string], "view">; takeRewards: TypedContractMethod< [allocationID: AddressLike], [bigint], "nonpayable" >; updateAccRewardsPerSignal: TypedContractMethod<[], [bigint], "nonpayable">; getFunction( key: string | FunctionFragment ): T; getFunction( nameOrSignature: "calcRewards" ): TypedContractMethod< [tokens: BigNumberish, accRewardsPerAllocatedToken: BigNumberish], [bigint], "view" >; getFunction( nameOrSignature: "getAccRewardsForSubgraph" ): TypedContractMethod<[subgraphDeploymentID: BytesLike], [bigint], "view">; getFunction( nameOrSignature: "getAccRewardsPerAllocatedToken" ): TypedContractMethod< [subgraphDeploymentID: BytesLike], [[bigint, bigint]], "view" >; getFunction( nameOrSignature: "getAccRewardsPerSignal" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "getNewRewardsPerSignal" ): TypedContractMethod<[], [bigint], "view">; getFunction( nameOrSignature: "getRewards" ): TypedContractMethod< [rewardsIssuer: AddressLike, allocationID: AddressLike], [bigint], "view" >; getFunction( nameOrSignature: "isDenied" ): TypedContractMethod<[subgraphDeploymentID: BytesLike], [boolean], "view">; getFunction( nameOrSignature: "onSubgraphAllocationUpdate" ): TypedContractMethod< [subgraphDeploymentID: BytesLike], [bigint], "nonpayable" >; getFunction( nameOrSignature: "onSubgraphSignalUpdate" ): TypedContractMethod< [subgraphDeploymentID: BytesLike], [bigint], "nonpayable" >; getFunction( nameOrSignature: "setDenied" ): TypedContractMethod< [subgraphDeploymentID: BytesLike, deny: boolean], [void], "nonpayable" >; getFunction( nameOrSignature: "setIssuancePerBlock" ): TypedContractMethod< [issuancePerBlock: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "setMinimumSubgraphSignal" ): TypedContractMethod< [minimumSubgraphSignal: BigNumberish], [void], "nonpayable" >; getFunction( nameOrSignature: "setSubgraphAvailabilityOracle" ): TypedContractMethod< [subgraphAvailabilityOracle: AddressLike], [void], "nonpayable" >; getFunction( nameOrSignature: "setSubgraphService" ): TypedContractMethod<[subgraphService: AddressLike], [void], "nonpayable">; getFunction( nameOrSignature: "subgraphService" ): TypedContractMethod<[], [string], "view">; getFunction( nameOrSignature: "takeRewards" ): TypedContractMethod<[allocationID: AddressLike], [bigint], "nonpayable">; getFunction( nameOrSignature: "updateAccRewardsPerSignal" ): TypedContractMethod<[], [bigint], "nonpayable">; getEvent( key: "HorizonRewardsAssigned" ): TypedContractEvent< HorizonRewardsAssignedEvent.InputTuple, HorizonRewardsAssignedEvent.OutputTuple, HorizonRewardsAssignedEvent.OutputObject >; getEvent( key: "RewardsAssigned" ): TypedContractEvent< RewardsAssignedEvent.InputTuple, RewardsAssignedEvent.OutputTuple, RewardsAssignedEvent.OutputObject >; getEvent( key: "RewardsDenied" ): TypedContractEvent< RewardsDeniedEvent.InputTuple, RewardsDeniedEvent.OutputTuple, RewardsDeniedEvent.OutputObject >; getEvent( key: "RewardsDenylistUpdated" ): TypedContractEvent< RewardsDenylistUpdatedEvent.InputTuple, RewardsDenylistUpdatedEvent.OutputTuple, RewardsDenylistUpdatedEvent.OutputObject >; getEvent( key: "SubgraphServiceSet" ): TypedContractEvent< SubgraphServiceSetEvent.InputTuple, SubgraphServiceSetEvent.OutputTuple, SubgraphServiceSetEvent.OutputObject >; filters: { "HorizonRewardsAssigned(address,address,uint256)": TypedContractEvent< HorizonRewardsAssignedEvent.InputTuple, HorizonRewardsAssignedEvent.OutputTuple, HorizonRewardsAssignedEvent.OutputObject >; HorizonRewardsAssigned: TypedContractEvent< HorizonRewardsAssignedEvent.InputTuple, HorizonRewardsAssignedEvent.OutputTuple, HorizonRewardsAssignedEvent.OutputObject >; "RewardsAssigned(address,address,uint256)": TypedContractEvent< RewardsAssignedEvent.InputTuple, RewardsAssignedEvent.OutputTuple, RewardsAssignedEvent.OutputObject >; RewardsAssigned: TypedContractEvent< RewardsAssignedEvent.InputTuple, RewardsAssignedEvent.OutputTuple, RewardsAssignedEvent.OutputObject >; "RewardsDenied(address,address)": TypedContractEvent< RewardsDeniedEvent.InputTuple, RewardsDeniedEvent.OutputTuple, RewardsDeniedEvent.OutputObject >; RewardsDenied: TypedContractEvent< RewardsDeniedEvent.InputTuple, RewardsDeniedEvent.OutputTuple, RewardsDeniedEvent.OutputObject >; "RewardsDenylistUpdated(bytes32,uint256)": TypedContractEvent< RewardsDenylistUpdatedEvent.InputTuple, RewardsDenylistUpdatedEvent.OutputTuple, RewardsDenylistUpdatedEvent.OutputObject >; RewardsDenylistUpdated: TypedContractEvent< RewardsDenylistUpdatedEvent.InputTuple, RewardsDenylistUpdatedEvent.OutputTuple, RewardsDenylistUpdatedEvent.OutputObject >; "SubgraphServiceSet(address,address)": TypedContractEvent< SubgraphServiceSetEvent.InputTuple, SubgraphServiceSetEvent.OutputTuple, SubgraphServiceSetEvent.OutputObject >; SubgraphServiceSet: TypedContractEvent< SubgraphServiceSetEvent.InputTuple, SubgraphServiceSetEvent.OutputTuple, SubgraphServiceSetEvent.OutputObject >; }; }