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

export interface DirectoryInterface extends Interface {
  getEvent(
    nameOrSignatureOrTopic: "SubgraphServiceDirectoryInitialized",
  ): EventFragment;
}

export namespace SubgraphServiceDirectoryInitializedEvent {
  export type InputTuple = [
    subgraphService: AddressLike,
    disputeManager: AddressLike,
    graphTallyCollector: AddressLike,
    curation: AddressLike,
  ];
  export type OutputTuple = [
    subgraphService: string,
    disputeManager: string,
    graphTallyCollector: string,
    curation: string,
  ];
  export interface OutputObject {
    subgraphService: string;
    disputeManager: string;
    graphTallyCollector: string;
    curation: string;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

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

  interface: DirectoryInterface;

  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>;

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

  getEvent(
    key: "SubgraphServiceDirectoryInitialized",
  ): TypedContractEvent<
    SubgraphServiceDirectoryInitializedEvent.InputTuple,
    SubgraphServiceDirectoryInitializedEvent.OutputTuple,
    SubgraphServiceDirectoryInitializedEvent.OutputObject
  >;

  filters: {
    "SubgraphServiceDirectoryInitialized(address,address,address,address)": TypedContractEvent<
      SubgraphServiceDirectoryInitializedEvent.InputTuple,
      SubgraphServiceDirectoryInitializedEvent.OutputTuple,
      SubgraphServiceDirectoryInitializedEvent.OutputObject
    >;
    SubgraphServiceDirectoryInitialized: TypedContractEvent<
      SubgraphServiceDirectoryInitializedEvent.InputTuple,
      SubgraphServiceDirectoryInitializedEvent.OutputTuple,
      SubgraphServiceDirectoryInitializedEvent.OutputObject
    >;
  };
}
