/* 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 DataServiceFeesV1StorageInterface extends Interface {
  getFunction(nameOrSignature: 'claims' | 'claimsLists' | 'feesProvisionTracker'): FunctionFragment

  encodeFunctionData(functionFragment: 'claims', values: [BytesLike]): string
  encodeFunctionData(functionFragment: 'claimsLists', values: [AddressLike]): string
  encodeFunctionData(functionFragment: 'feesProvisionTracker', values: [AddressLike]): string

  decodeFunctionResult(functionFragment: 'claims', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'claimsLists', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'feesProvisionTracker', data: BytesLike): Result
}

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

  interface: DataServiceFeesV1StorageInterface

  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>

  claims: TypedContractMethod<
    [claimId: BytesLike],
    [
      [bigint, bigint, bigint, string] & {
        tokens: bigint
        createdAt: bigint
        releasableAt: bigint
        nextClaim: string
      },
    ],
    'view'
  >

  claimsLists: TypedContractMethod<
    [serviceProvider: AddressLike],
    [
      [string, string, bigint, bigint] & {
        head: string
        tail: string
        nonce: bigint
        count: bigint
      },
    ],
    'view'
  >

  feesProvisionTracker: TypedContractMethod<[serviceProvider: AddressLike], [bigint], 'view'>

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

  getFunction(nameOrSignature: 'claims'): TypedContractMethod<
    [claimId: BytesLike],
    [
      [bigint, bigint, bigint, string] & {
        tokens: bigint
        createdAt: bigint
        releasableAt: bigint
        nextClaim: string
      },
    ],
    'view'
  >
  getFunction(nameOrSignature: 'claimsLists'): TypedContractMethod<
    [serviceProvider: AddressLike],
    [
      [string, string, bigint, bigint] & {
        head: string
        tail: string
        nonce: bigint
        count: bigint
      },
    ],
    'view'
  >
  getFunction(
    nameOrSignature: 'feesProvisionTracker',
  ): TypedContractMethod<[serviceProvider: AddressLike], [bigint], 'view'>

  filters: {}
}
