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

export interface IEpochManagerToolshedInterface extends Interface {
  getFunction(
    nameOrSignature:
      | "blockHash"
      | "blockNum"
      | "currentEpoch"
      | "currentEpochBlock"
      | "currentEpochBlockSinceStart"
      | "epochLength"
      | "epochsSince"
      | "epochsSinceUpdate"
      | "isCurrentEpochRun"
      | "runEpoch"
      | "setEpochLength",
  ): FunctionFragment;

  encodeFunctionData(
    functionFragment: "blockHash",
    values: [BigNumberish],
  ): string;
  encodeFunctionData(functionFragment: "blockNum", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "currentEpoch",
    values?: undefined,
  ): string;
  encodeFunctionData(
    functionFragment: "currentEpochBlock",
    values?: undefined,
  ): string;
  encodeFunctionData(
    functionFragment: "currentEpochBlockSinceStart",
    values?: undefined,
  ): string;
  encodeFunctionData(
    functionFragment: "epochLength",
    values?: undefined,
  ): string;
  encodeFunctionData(
    functionFragment: "epochsSince",
    values: [BigNumberish],
  ): string;
  encodeFunctionData(
    functionFragment: "epochsSinceUpdate",
    values?: undefined,
  ): string;
  encodeFunctionData(
    functionFragment: "isCurrentEpochRun",
    values?: undefined,
  ): string;
  encodeFunctionData(functionFragment: "runEpoch", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "setEpochLength",
    values: [BigNumberish],
  ): string;

  decodeFunctionResult(functionFragment: "blockHash", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "blockNum", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "currentEpoch",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "currentEpochBlock",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "currentEpochBlockSinceStart",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "epochLength",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "epochsSince",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "epochsSinceUpdate",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(
    functionFragment: "isCurrentEpochRun",
    data: BytesLike,
  ): Result;
  decodeFunctionResult(functionFragment: "runEpoch", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "setEpochLength",
    data: BytesLike,
  ): Result;
}

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

  interface: IEpochManagerToolshedInterface;

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

  blockHash: TypedContractMethod<[block: BigNumberish], [string], "view">;

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

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

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

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

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

  epochsSince: TypedContractMethod<[epoch: BigNumberish], [bigint], "view">;

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

  isCurrentEpochRun: TypedContractMethod<[], [boolean], "view">;

  runEpoch: TypedContractMethod<[], [void], "nonpayable">;

  setEpochLength: TypedContractMethod<
    [epochLength: BigNumberish],
    [void],
    "nonpayable"
  >;

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

  getFunction(
    nameOrSignature: "blockHash",
  ): TypedContractMethod<[block: BigNumberish], [string], "view">;
  getFunction(
    nameOrSignature: "blockNum",
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "currentEpoch",
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "currentEpochBlock",
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "currentEpochBlockSinceStart",
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "epochLength",
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "epochsSince",
  ): TypedContractMethod<[epoch: BigNumberish], [bigint], "view">;
  getFunction(
    nameOrSignature: "epochsSinceUpdate",
  ): TypedContractMethod<[], [bigint], "view">;
  getFunction(
    nameOrSignature: "isCurrentEpochRun",
  ): TypedContractMethod<[], [boolean], "view">;
  getFunction(
    nameOrSignature: "runEpoch",
  ): TypedContractMethod<[], [void], "nonpayable">;
  getFunction(
    nameOrSignature: "setEpochLength",
  ): TypedContractMethod<[epochLength: BigNumberish], [void], "nonpayable">;

  filters: {};
}
