/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
  BaseContract,
  ContractTransaction,
  Overrides,
  CallOverrides,
} from "ethers";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";
import { TypedEventFilter, TypedEvent, TypedListener } from "./commons";

interface RebatePoolMockInterface extends ethers.utils.Interface {
  functions: {
    "add(uint256,uint256)": FunctionFragment;
    "alphaDenominator()": FunctionFragment;
    "alphaNumerator()": FunctionFragment;
    "cobbDouglas(uint256,uint256,uint256,uint256,uint256,uint32,uint32)": FunctionFragment;
    "pop(uint256,uint256)": FunctionFragment;
    "rebatePool()": FunctionFragment;
    "setRebateRatio(uint32,uint32)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "add",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "alphaDenominator",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "alphaNumerator",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "cobbDouglas",
    values: [
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish,
      BigNumberish
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "pop",
    values: [BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "rebatePool",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "setRebateRatio",
    values: [BigNumberish, BigNumberish]
  ): string;

  decodeFunctionResult(functionFragment: "add", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "alphaDenominator",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "alphaNumerator",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "cobbDouglas",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "pop", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "rebatePool", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "setRebateRatio",
    data: BytesLike
  ): Result;

  events: {
    "Redeemed(uint256)": EventFragment;
  };

  getEvent(nameOrSignatureOrTopic: "Redeemed"): EventFragment;
}

export class RebatePoolMock extends BaseContract {
  connect(signerOrProvider: Signer | Provider | string): this;
  attach(addressOrName: string): this;
  deployed(): Promise<this>;

  listeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter?: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): Array<TypedListener<EventArgsArray, EventArgsObject>>;
  off<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  on<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  once<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeListener<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>,
    listener: TypedListener<EventArgsArray, EventArgsObject>
  ): this;
  removeAllListeners<EventArgsArray extends Array<any>, EventArgsObject>(
    eventFilter: TypedEventFilter<EventArgsArray, EventArgsObject>
  ): this;

  listeners(eventName?: string): Array<Listener>;
  off(eventName: string, listener: Listener): this;
  on(eventName: string, listener: Listener): this;
  once(eventName: string, listener: Listener): this;
  removeListener(eventName: string, listener: Listener): this;
  removeAllListeners(eventName?: string): this;

  queryFilter<EventArgsArray extends Array<any>, EventArgsObject>(
    event: TypedEventFilter<EventArgsArray, EventArgsObject>,
    fromBlockOrBlockhash?: string | number | undefined,
    toBlock?: string | number | undefined
  ): Promise<Array<TypedEvent<EventArgsArray & EventArgsObject>>>;

  interface: RebatePoolMockInterface;

  functions: {
    add(
      _indexerFees: BigNumberish,
      _indexerAllocatedStake: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    alphaDenominator(overrides?: CallOverrides): Promise<[number]>;

    alphaNumerator(overrides?: CallOverrides): Promise<[number]>;

    cobbDouglas(
      _totalRewards: BigNumberish,
      _fees: BigNumberish,
      _totalFees: BigNumberish,
      _stake: BigNumberish,
      _totalStake: BigNumberish,
      _alphaNumerator: BigNumberish,
      _alphaDenominator: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    pop(
      _indexerFees: BigNumberish,
      _indexerAllocatedStake: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    rebatePool(
      overrides?: CallOverrides
    ): Promise<
      [BigNumber, BigNumber, BigNumber, number, number, number] & {
        fees: BigNumber;
        effectiveAllocatedStake: BigNumber;
        claimedRewards: BigNumber;
        unclaimedAllocationsCount: number;
        alphaNumerator: number;
        alphaDenominator: number;
      }
    >;

    setRebateRatio(
      _alphaNumerator: BigNumberish,
      _alphaDenominator: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;
  };

  add(
    _indexerFees: BigNumberish,
    _indexerAllocatedStake: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  alphaDenominator(overrides?: CallOverrides): Promise<number>;

  alphaNumerator(overrides?: CallOverrides): Promise<number>;

  cobbDouglas(
    _totalRewards: BigNumberish,
    _fees: BigNumberish,
    _totalFees: BigNumberish,
    _stake: BigNumberish,
    _totalStake: BigNumberish,
    _alphaNumerator: BigNumberish,
    _alphaDenominator: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  pop(
    _indexerFees: BigNumberish,
    _indexerAllocatedStake: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  rebatePool(
    overrides?: CallOverrides
  ): Promise<
    [BigNumber, BigNumber, BigNumber, number, number, number] & {
      fees: BigNumber;
      effectiveAllocatedStake: BigNumber;
      claimedRewards: BigNumber;
      unclaimedAllocationsCount: number;
      alphaNumerator: number;
      alphaDenominator: number;
    }
  >;

  setRebateRatio(
    _alphaNumerator: BigNumberish,
    _alphaDenominator: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  callStatic: {
    add(
      _indexerFees: BigNumberish,
      _indexerAllocatedStake: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    alphaDenominator(overrides?: CallOverrides): Promise<number>;

    alphaNumerator(overrides?: CallOverrides): Promise<number>;

    cobbDouglas(
      _totalRewards: BigNumberish,
      _fees: BigNumberish,
      _totalFees: BigNumberish,
      _stake: BigNumberish,
      _totalStake: BigNumberish,
      _alphaNumerator: BigNumberish,
      _alphaDenominator: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    pop(
      _indexerFees: BigNumberish,
      _indexerAllocatedStake: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    rebatePool(
      overrides?: CallOverrides
    ): Promise<
      [BigNumber, BigNumber, BigNumber, number, number, number] & {
        fees: BigNumber;
        effectiveAllocatedStake: BigNumber;
        claimedRewards: BigNumber;
        unclaimedAllocationsCount: number;
        alphaNumerator: number;
        alphaDenominator: number;
      }
    >;

    setRebateRatio(
      _alphaNumerator: BigNumberish,
      _alphaDenominator: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;
  };

  filters: {
    Redeemed(value?: null): TypedEventFilter<[BigNumber], { value: BigNumber }>;
  };

  estimateGas: {
    add(
      _indexerFees: BigNumberish,
      _indexerAllocatedStake: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    alphaDenominator(overrides?: CallOverrides): Promise<BigNumber>;

    alphaNumerator(overrides?: CallOverrides): Promise<BigNumber>;

    cobbDouglas(
      _totalRewards: BigNumberish,
      _fees: BigNumberish,
      _totalFees: BigNumberish,
      _stake: BigNumberish,
      _totalStake: BigNumberish,
      _alphaNumerator: BigNumberish,
      _alphaDenominator: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    pop(
      _indexerFees: BigNumberish,
      _indexerAllocatedStake: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    rebatePool(overrides?: CallOverrides): Promise<BigNumber>;

    setRebateRatio(
      _alphaNumerator: BigNumberish,
      _alphaDenominator: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    add(
      _indexerFees: BigNumberish,
      _indexerAllocatedStake: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    alphaDenominator(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    alphaNumerator(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    cobbDouglas(
      _totalRewards: BigNumberish,
      _fees: BigNumberish,
      _totalFees: BigNumberish,
      _stake: BigNumberish,
      _totalStake: BigNumberish,
      _alphaNumerator: BigNumberish,
      _alphaDenominator: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    pop(
      _indexerFees: BigNumberish,
      _indexerAllocatedStake: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    rebatePool(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    setRebateRatio(
      _alphaNumerator: BigNumberish,
      _alphaDenominator: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;
  };
}
