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

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
  Contract,
  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 StableSwapInterface extends ethers.utils.Interface {
  functions: {
    "amplificationParameter()": FunctionFragment;
    "getAmplificationParameter()": FunctionFragment;
    "onSwapGivenIn(uint256,uint256[],uint256,uint256)": FunctionFragment;
    "onSwapGivenOut(uint256,uint256[],uint256,uint256)": FunctionFragment;
    "updateAmplificationParameter(uint256)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "amplificationParameter",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getAmplificationParameter",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "onSwapGivenIn",
    values: [BigNumberish, BigNumberish[], BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "onSwapGivenOut",
    values: [BigNumberish, BigNumberish[], BigNumberish, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "updateAmplificationParameter",
    values: [BigNumberish]
  ): string;

  decodeFunctionResult(
    functionFragment: "amplificationParameter",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getAmplificationParameter",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "onSwapGivenIn",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "onSwapGivenOut",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "updateAmplificationParameter",
    data: BytesLike
  ): Result;

  events: {};
}

export class StableSwap extends Contract {
  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: StableSwapInterface;

  functions: {
    amplificationParameter(overrides?: CallOverrides): Promise<[BigNumber]>;

    "amplificationParameter()"(overrides?: CallOverrides): Promise<[BigNumber]>;

    getAmplificationParameter(overrides?: CallOverrides): Promise<[BigNumber]>;

    "getAmplificationParameter()"(
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    onSwapGivenIn(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    "onSwapGivenIn(uint256,uint256[],uint256,uint256)"(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    onSwapGivenOut(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    "onSwapGivenOut(uint256,uint256[],uint256,uint256)"(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

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

    "updateAmplificationParameter(uint256)"(
      _amplificationParameter: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;
  };

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

  "amplificationParameter()"(overrides?: CallOverrides): Promise<BigNumber>;

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

  "getAmplificationParameter()"(overrides?: CallOverrides): Promise<BigNumber>;

  onSwapGivenIn(
    amount: BigNumberish,
    balances: BigNumberish[],
    indexIn: BigNumberish,
    indexOut: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  "onSwapGivenIn(uint256,uint256[],uint256,uint256)"(
    amount: BigNumberish,
    balances: BigNumberish[],
    indexIn: BigNumberish,
    indexOut: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  onSwapGivenOut(
    amount: BigNumberish,
    balances: BigNumberish[],
    indexIn: BigNumberish,
    indexOut: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  "onSwapGivenOut(uint256,uint256[],uint256,uint256)"(
    amount: BigNumberish,
    balances: BigNumberish[],
    indexIn: BigNumberish,
    indexOut: BigNumberish,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

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

  "updateAmplificationParameter(uint256)"(
    _amplificationParameter: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  callStatic: {
    amplificationParameter(overrides?: CallOverrides): Promise<BigNumber>;

    "amplificationParameter()"(overrides?: CallOverrides): Promise<BigNumber>;

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

    "getAmplificationParameter()"(
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    onSwapGivenIn(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "onSwapGivenIn(uint256,uint256[],uint256,uint256)"(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    onSwapGivenOut(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "onSwapGivenOut(uint256,uint256[],uint256,uint256)"(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    updateAmplificationParameter(
      _amplificationParameter: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    "updateAmplificationParameter(uint256)"(
      _amplificationParameter: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;
  };

  filters: {};

  estimateGas: {
    amplificationParameter(overrides?: CallOverrides): Promise<BigNumber>;

    "amplificationParameter()"(overrides?: CallOverrides): Promise<BigNumber>;

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

    "getAmplificationParameter()"(
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    onSwapGivenIn(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "onSwapGivenIn(uint256,uint256[],uint256,uint256)"(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    onSwapGivenOut(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "onSwapGivenOut(uint256,uint256[],uint256,uint256)"(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

    "updateAmplificationParameter(uint256)"(
      _amplificationParameter: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    amplificationParameter(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "amplificationParameter()"(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

    "getAmplificationParameter()"(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    onSwapGivenIn(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "onSwapGivenIn(uint256,uint256[],uint256,uint256)"(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    onSwapGivenOut(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "onSwapGivenOut(uint256,uint256[],uint256,uint256)"(
      amount: BigNumberish,
      balances: BigNumberish[],
      indexIn: BigNumberish,
      indexOut: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

    "updateAmplificationParameter(uint256)"(
      _amplificationParameter: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;
  };
}
