/* 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 SubgraphServiceV1StorageInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "curationFeesCut"
      | "indexers"
      | "paymentsDestination"
      | "stakeToFeesRatio"
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "curationFeesCut",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "indexers",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "paymentsDestination",
    values: [AddressLike]
  ): string;
  encodeFunctionData(
    functionFragment: "stakeToFeesRatio",
    values?: undefined
  ): string;

  decodeFunctionResult(
    functionFragment: "curationFeesCut",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "indexers", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "paymentsDestination",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "stakeToFeesRatio",
    data: BytesLike
  ): Result;
}

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

  interface: SubgraphServiceV1StorageInterface;

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

  curationFeesCut: TypedContractMethod<[], [bigint], "view">;

  indexers: TypedContractMethod<
    [indexer: AddressLike],
    [
      [bigint, string, string] & {
        registeredAt: bigint;
        url: string;
        geoHash: string;
      }
    ],
    "view"
  >;

  paymentsDestination: TypedContractMethod<
    [indexer: AddressLike],
    [string],
    "view"
  >;

  stakeToFeesRatio: TypedContractMethod<[], [bigint], "view">;

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

  getFunction(
    nameOrSignature: "curationFeesCut"
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "indexers"
  ): TypedContractMethod<
    [indexer: AddressLike],
    [
      [bigint, string, string] & {
        registeredAt: bigint;
        url: string;
        geoHash: string;
      }
    ],
    "view"
  >;
  getFunction(
    nameOrSignature: "paymentsDestination"
  ): TypedContractMethod<[indexer: AddressLike], [string], "view">;
  getFunction(
    nameOrSignature: "stakeToFeesRatio"
  ): TypedContractMethod<[], [bigint], "view">;

  filters: {};
}
