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

export interface IProvisionManagerInterface extends Interface {
  getEvent(
    nameOrSignatureOrTopic:
      | "DelegationRatioSet"
      | "ProvisionTokensRangeSet"
      | "ThawingPeriodRangeSet"
      | "VerifierCutRangeSet",
  ): EventFragment;
}

export namespace DelegationRatioSetEvent {
  export type InputTuple = [ratio: BigNumberish];
  export type OutputTuple = [ratio: bigint];
  export interface OutputObject {
    ratio: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace ProvisionTokensRangeSetEvent {
  export type InputTuple = [min: BigNumberish, max: BigNumberish];
  export type OutputTuple = [min: bigint, max: bigint];
  export interface OutputObject {
    min: bigint;
    max: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace ThawingPeriodRangeSetEvent {
  export type InputTuple = [min: BigNumberish, max: BigNumberish];
  export type OutputTuple = [min: bigint, max: bigint];
  export interface OutputObject {
    min: bigint;
    max: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

export namespace VerifierCutRangeSetEvent {
  export type InputTuple = [min: BigNumberish, max: BigNumberish];
  export type OutputTuple = [min: bigint, max: bigint];
  export interface OutputObject {
    min: bigint;
    max: bigint;
  }
  export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
  export type Filter = TypedDeferredTopicFilter<Event>;
  export type Log = TypedEventLog<Event>;
  export type LogDescription = TypedLogDescription<Event>;
}

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

  interface: IProvisionManagerInterface;

  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: "DelegationRatioSet",
  ): TypedContractEvent<
    DelegationRatioSetEvent.InputTuple,
    DelegationRatioSetEvent.OutputTuple,
    DelegationRatioSetEvent.OutputObject
  >;
  getEvent(
    key: "ProvisionTokensRangeSet",
  ): TypedContractEvent<
    ProvisionTokensRangeSetEvent.InputTuple,
    ProvisionTokensRangeSetEvent.OutputTuple,
    ProvisionTokensRangeSetEvent.OutputObject
  >;
  getEvent(
    key: "ThawingPeriodRangeSet",
  ): TypedContractEvent<
    ThawingPeriodRangeSetEvent.InputTuple,
    ThawingPeriodRangeSetEvent.OutputTuple,
    ThawingPeriodRangeSetEvent.OutputObject
  >;
  getEvent(
    key: "VerifierCutRangeSet",
  ): TypedContractEvent<
    VerifierCutRangeSetEvent.InputTuple,
    VerifierCutRangeSetEvent.OutputTuple,
    VerifierCutRangeSetEvent.OutputObject
  >;

  filters: {
    "DelegationRatioSet(uint32)": TypedContractEvent<
      DelegationRatioSetEvent.InputTuple,
      DelegationRatioSetEvent.OutputTuple,
      DelegationRatioSetEvent.OutputObject
    >;
    DelegationRatioSet: TypedContractEvent<
      DelegationRatioSetEvent.InputTuple,
      DelegationRatioSetEvent.OutputTuple,
      DelegationRatioSetEvent.OutputObject
    >;

    "ProvisionTokensRangeSet(uint256,uint256)": TypedContractEvent<
      ProvisionTokensRangeSetEvent.InputTuple,
      ProvisionTokensRangeSetEvent.OutputTuple,
      ProvisionTokensRangeSetEvent.OutputObject
    >;
    ProvisionTokensRangeSet: TypedContractEvent<
      ProvisionTokensRangeSetEvent.InputTuple,
      ProvisionTokensRangeSetEvent.OutputTuple,
      ProvisionTokensRangeSetEvent.OutputObject
    >;

    "ThawingPeriodRangeSet(uint64,uint64)": TypedContractEvent<
      ThawingPeriodRangeSetEvent.InputTuple,
      ThawingPeriodRangeSetEvent.OutputTuple,
      ThawingPeriodRangeSetEvent.OutputObject
    >;
    ThawingPeriodRangeSet: TypedContractEvent<
      ThawingPeriodRangeSetEvent.InputTuple,
      ThawingPeriodRangeSetEvent.OutputTuple,
      ThawingPeriodRangeSetEvent.OutputObject
    >;

    "VerifierCutRangeSet(uint32,uint32)": TypedContractEvent<
      VerifierCutRangeSetEvent.InputTuple,
      VerifierCutRangeSetEvent.OutputTuple,
      VerifierCutRangeSetEvent.OutputObject
    >;
    VerifierCutRangeSet: TypedContractEvent<
      VerifierCutRangeSetEvent.InputTuple,
      VerifierCutRangeSetEvent.OutputTuple,
      VerifierCutRangeSetEvent.OutputObject
    >;
  };
}
