/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import type {
  BaseContract,
  BytesLike,
  FunctionFragment,
  Result,
  Interface,
  AddressLike,
  ContractRunner,
  ContractMethod,
  Listener,
} from 'ethers'
import type {
  TypedContractEvent,
  TypedDeferredTopicFilter,
  TypedEventLog,
  TypedListener,
  TypedContractMethod,
} from '../../common'

export interface RewardsManagerMockInterface extends Interface {
  getFunction(
    nameOrSignature: 'onSubgraphAllocationUpdate' | 'onSubgraphSignalUpdate' | 'takeRewards' | 'token',
  ): FunctionFragment

  encodeFunctionData(functionFragment: 'onSubgraphAllocationUpdate', values: [BytesLike]): string
  encodeFunctionData(functionFragment: 'onSubgraphSignalUpdate', values: [BytesLike]): string
  encodeFunctionData(functionFragment: 'takeRewards', values: [AddressLike]): string
  encodeFunctionData(functionFragment: 'token', values?: undefined): string

  decodeFunctionResult(functionFragment: 'onSubgraphAllocationUpdate', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'onSubgraphSignalUpdate', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'takeRewards', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'token', data: BytesLike): Result
}

export interface RewardsManagerMock extends BaseContract {
  connect(runner?: ContractRunner | null): RewardsManagerMock
  waitForDeployment(): Promise<this>

  interface: RewardsManagerMockInterface

  queryFilter<TCEvent extends TypedContractEvent>(
    event: TCEvent,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined,
  ): Promise<Array<TypedEventLog<TCEvent>>>
  queryFilter<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined,
  ): Promise<Array<TypedEventLog<TCEvent>>>

  on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>
  on<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    listener: TypedListener<TCEvent>,
  ): Promise<this>

  once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>
  once<TCEvent extends TypedContractEvent>(
    filter: TypedDeferredTopicFilter<TCEvent>,
    listener: TypedListener<TCEvent>,
  ): Promise<this>

  listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>
  listeners(eventName?: string): Promise<Array<Listener>>
  removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>

  onSubgraphAllocationUpdate: TypedContractMethod<[arg0: BytesLike], [bigint], 'nonpayable'>

  onSubgraphSignalUpdate: TypedContractMethod<[subgraphDeploymentID: BytesLike], [bigint], 'nonpayable'>

  takeRewards: TypedContractMethod<[arg0: AddressLike], [bigint], 'nonpayable'>

  token: TypedContractMethod<[], [string], 'view'>

  getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T

  getFunction(
    nameOrSignature: 'onSubgraphAllocationUpdate',
  ): TypedContractMethod<[arg0: BytesLike], [bigint], 'nonpayable'>
  getFunction(
    nameOrSignature: 'onSubgraphSignalUpdate',
  ): TypedContractMethod<[subgraphDeploymentID: BytesLike], [bigint], 'nonpayable'>
  getFunction(nameOrSignature: 'takeRewards'): TypedContractMethod<[arg0: AddressLike], [bigint], 'nonpayable'>
  getFunction(nameOrSignature: 'token'): TypedContractMethod<[], [string], 'view'>

  filters: {}
}
