/* 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 ICurationInterface extends ethers.utils.Interface {
  functions: {
    "burn(bytes32,uint256,uint256)": FunctionFragment;
    "collect(bytes32,uint256)": FunctionFragment;
    "curationTaxPercentage()": FunctionFragment;
    "getCurationPoolSignal(bytes32)": FunctionFragment;
    "getCurationPoolTokens(bytes32)": FunctionFragment;
    "getCuratorSignal(address,bytes32)": FunctionFragment;
    "isCurated(bytes32)": FunctionFragment;
    "mint(bytes32,uint256,uint256)": FunctionFragment;
    "setCurationTaxPercentage(uint32)": FunctionFragment;
    "setDefaultReserveRatio(uint32)": FunctionFragment;
    "setMinimumCurationDeposit(uint256)": FunctionFragment;
    "signalToTokens(bytes32,uint256)": FunctionFragment;
    "tokensToSignal(bytes32,uint256)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "burn",
    values: [BytesLike, BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "collect",
    values: [BytesLike, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "curationTaxPercentage",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getCurationPoolSignal",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getCurationPoolTokens",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getCuratorSignal",
    values: [string, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "isCurated",
    values: [BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "mint",
    values: [BytesLike, BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "setCurationTaxPercentage",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "setDefaultReserveRatio",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "setMinimumCurationDeposit",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "signalToTokens",
    values: [BytesLike, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "tokensToSignal",
    values: [BytesLike, BigNumberish]
  ): string;

  decodeFunctionResult(functionFragment: "burn", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "collect", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "curationTaxPercentage",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCurationPoolSignal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCurationPoolTokens",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getCuratorSignal",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "isCurated", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "mint", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "setCurationTaxPercentage",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setDefaultReserveRatio",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setMinimumCurationDeposit",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "signalToTokens",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "tokensToSignal",
    data: BytesLike
  ): Result;

  events: {};
}

export class ICuration 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: ICurationInterface;

  functions: {
    burn(
      _subgraphDeploymentID: BytesLike,
      _signalIn: BigNumberish,
      _tokensOutMin: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    collect(
      _subgraphDeploymentID: BytesLike,
      _tokens: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

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

    getCurationPoolSignal(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    getCurationPoolTokens(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    getCuratorSignal(
      _curator: string,
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    isCurated(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    mint(
      _subgraphDeploymentID: BytesLike,
      _tokensIn: BigNumberish,
      _signalOutMin: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setCurationTaxPercentage(
      _percentage: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setDefaultReserveRatio(
      _defaultReserveRatio: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setMinimumCurationDeposit(
      _minimumCurationDeposit: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    signalToTokens(
      _subgraphDeploymentID: BytesLike,
      _signalIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    tokensToSignal(
      _subgraphDeploymentID: BytesLike,
      _tokensIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber, BigNumber]>;
  };

  burn(
    _subgraphDeploymentID: BytesLike,
    _signalIn: BigNumberish,
    _tokensOutMin: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  collect(
    _subgraphDeploymentID: BytesLike,
    _tokens: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

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

  getCurationPoolSignal(
    _subgraphDeploymentID: BytesLike,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  getCurationPoolTokens(
    _subgraphDeploymentID: BytesLike,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  getCuratorSignal(
    _curator: string,
    _subgraphDeploymentID: BytesLike,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  isCurated(
    _subgraphDeploymentID: BytesLike,
    overrides?: CallOverrides
  ): Promise<boolean>;

  mint(
    _subgraphDeploymentID: BytesLike,
    _tokensIn: BigNumberish,
    _signalOutMin: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setCurationTaxPercentage(
    _percentage: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setDefaultReserveRatio(
    _defaultReserveRatio: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setMinimumCurationDeposit(
    _minimumCurationDeposit: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  signalToTokens(
    _subgraphDeploymentID: BytesLike,
    _signalIn: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  tokensToSignal(
    _subgraphDeploymentID: BytesLike,
    _tokensIn: BigNumberish,
    overrides?: CallOverrides
  ): Promise<[BigNumber, BigNumber]>;

  callStatic: {
    burn(
      _subgraphDeploymentID: BytesLike,
      _signalIn: BigNumberish,
      _tokensOutMin: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    collect(
      _subgraphDeploymentID: BytesLike,
      _tokens: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

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

    getCurationPoolSignal(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getCurationPoolTokens(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getCuratorSignal(
      _curator: string,
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    isCurated(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<boolean>;

    mint(
      _subgraphDeploymentID: BytesLike,
      _tokensIn: BigNumberish,
      _signalOutMin: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber, BigNumber]>;

    setCurationTaxPercentage(
      _percentage: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    setDefaultReserveRatio(
      _defaultReserveRatio: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    setMinimumCurationDeposit(
      _minimumCurationDeposit: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    signalToTokens(
      _subgraphDeploymentID: BytesLike,
      _signalIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    tokensToSignal(
      _subgraphDeploymentID: BytesLike,
      _tokensIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber, BigNumber]>;
  };

  filters: {};

  estimateGas: {
    burn(
      _subgraphDeploymentID: BytesLike,
      _signalIn: BigNumberish,
      _tokensOutMin: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    collect(
      _subgraphDeploymentID: BytesLike,
      _tokens: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

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

    getCurationPoolSignal(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getCurationPoolTokens(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getCuratorSignal(
      _curator: string,
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    isCurated(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    mint(
      _subgraphDeploymentID: BytesLike,
      _tokensIn: BigNumberish,
      _signalOutMin: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setCurationTaxPercentage(
      _percentage: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setDefaultReserveRatio(
      _defaultReserveRatio: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setMinimumCurationDeposit(
      _minimumCurationDeposit: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    signalToTokens(
      _subgraphDeploymentID: BytesLike,
      _signalIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    tokensToSignal(
      _subgraphDeploymentID: BytesLike,
      _tokensIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    burn(
      _subgraphDeploymentID: BytesLike,
      _signalIn: BigNumberish,
      _tokensOutMin: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    collect(
      _subgraphDeploymentID: BytesLike,
      _tokens: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

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

    getCurationPoolSignal(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getCurationPoolTokens(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getCuratorSignal(
      _curator: string,
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    isCurated(
      _subgraphDeploymentID: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    mint(
      _subgraphDeploymentID: BytesLike,
      _tokensIn: BigNumberish,
      _signalOutMin: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setCurationTaxPercentage(
      _percentage: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setDefaultReserveRatio(
      _defaultReserveRatio: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setMinimumCurationDeposit(
      _minimumCurationDeposit: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    signalToTokens(
      _subgraphDeploymentID: BytesLike,
      _signalIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    tokensToSignal(
      _subgraphDeploymentID: BytesLike,
      _tokensIn: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;
  };
}
