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

export interface DisputeManagerV1StorageInterface extends Interface {
  getFunction(
    nameOrSignature:
      | 'arbitrator'
      | 'disputeDeposit'
      | 'disputePeriod'
      | 'disputes'
      | 'fishermanRewardCut'
      | 'maxSlashingCut'
      | 'subgraphService',
  ): FunctionFragment

  encodeFunctionData(functionFragment: 'arbitrator', values?: undefined): string
  encodeFunctionData(functionFragment: 'disputeDeposit', values?: undefined): string
  encodeFunctionData(functionFragment: 'disputePeriod', values?: undefined): string
  encodeFunctionData(functionFragment: 'disputes', values: [BytesLike]): string
  encodeFunctionData(functionFragment: 'fishermanRewardCut', values?: undefined): string
  encodeFunctionData(functionFragment: 'maxSlashingCut', values?: undefined): string
  encodeFunctionData(functionFragment: 'subgraphService', values?: undefined): string

  decodeFunctionResult(functionFragment: 'arbitrator', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'disputeDeposit', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'disputePeriod', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'disputes', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'fishermanRewardCut', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'maxSlashingCut', data: BytesLike): Result
  decodeFunctionResult(functionFragment: 'subgraphService', data: BytesLike): Result
}

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

  interface: DisputeManagerV1StorageInterface

  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>

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

  disputeDeposit: TypedContractMethod<[], [bigint], 'view'>

  disputePeriod: TypedContractMethod<[], [bigint], 'view'>

  disputes: TypedContractMethod<
    [disputeId: BytesLike],
    [
      [string, string, bigint, string, bigint, bigint, bigint, bigint, bigint] & {
        indexer: string
        fisherman: string
        deposit: bigint
        relatedDisputeId: string
        disputeType: bigint
        status: bigint
        createdAt: bigint
        cancellableAt: bigint
        stakeSnapshot: bigint
      },
    ],
    'view'
  >

  fishermanRewardCut: TypedContractMethod<[], [bigint], 'view'>

  maxSlashingCut: TypedContractMethod<[], [bigint], 'view'>

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

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

  getFunction(nameOrSignature: 'arbitrator'): TypedContractMethod<[], [string], 'view'>
  getFunction(nameOrSignature: 'disputeDeposit'): TypedContractMethod<[], [bigint], 'view'>
  getFunction(nameOrSignature: 'disputePeriod'): TypedContractMethod<[], [bigint], 'view'>
  getFunction(nameOrSignature: 'disputes'): TypedContractMethod<
    [disputeId: BytesLike],
    [
      [string, string, bigint, string, bigint, bigint, bigint, bigint, bigint] & {
        indexer: string
        fisherman: string
        deposit: bigint
        relatedDisputeId: string
        disputeType: bigint
        status: bigint
        createdAt: bigint
        cancellableAt: bigint
        stakeSnapshot: bigint
      },
    ],
    'view'
  >
  getFunction(nameOrSignature: 'fishermanRewardCut'): TypedContractMethod<[], [bigint], 'view'>
  getFunction(nameOrSignature: 'maxSlashingCut'): TypedContractMethod<[], [bigint], 'view'>
  getFunction(nameOrSignature: 'subgraphService'): TypedContractMethod<[], [string], 'view'>

  filters: {}
}
