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

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
  Contract,
  ContractTransaction,
  PayableOverrides,
  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 ICMCDepositInterface extends ethers.utils.Interface {
  functions: {
    "depositAlice(address,uint256)": FunctionFragment;
    "getTotalDepositsAlice(address)": FunctionFragment;
    "getTotalDepositsBob(address)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "depositAlice",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getTotalDepositsAlice",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "getTotalDepositsBob",
    values: [string]
  ): string;

  decodeFunctionResult(
    functionFragment: "depositAlice",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getTotalDepositsAlice",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getTotalDepositsBob",
    data: BytesLike
  ): Result;

  events: {
    "AliceDeposited(address,uint256)": EventFragment;
  };

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

export class ICMCDeposit 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: ICMCDepositInterface;

  functions: {
    depositAlice(
      assetId: string,
      amount: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    "depositAlice(address,uint256)"(
      assetId: string,
      amount: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    getTotalDepositsAlice(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    "getTotalDepositsAlice(address)"(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    getTotalDepositsBob(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;

    "getTotalDepositsBob(address)"(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<[BigNumber]>;
  };

  depositAlice(
    assetId: string,
    amount: BigNumberish,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  "depositAlice(address,uint256)"(
    assetId: string,
    amount: BigNumberish,
    overrides?: PayableOverrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  getTotalDepositsAlice(
    assetId: string,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  "getTotalDepositsAlice(address)"(
    assetId: string,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  getTotalDepositsBob(
    assetId: string,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  "getTotalDepositsBob(address)"(
    assetId: string,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  callStatic: {
    depositAlice(
      assetId: string,
      amount: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    "depositAlice(address,uint256)"(
      assetId: string,
      amount: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;

    getTotalDepositsAlice(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "getTotalDepositsAlice(address)"(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getTotalDepositsBob(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "getTotalDepositsBob(address)"(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;
  };

  filters: {
    AliceDeposited(
      assetId: null,
      amount: null
    ): TypedEventFilter<
      [string, BigNumber],
      { assetId: string; amount: BigNumber }
    >;
  };

  estimateGas: {
    depositAlice(
      assetId: string,
      amount: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    "depositAlice(address,uint256)"(
      assetId: string,
      amount: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    getTotalDepositsAlice(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "getTotalDepositsAlice(address)"(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getTotalDepositsBob(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "getTotalDepositsBob(address)"(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    depositAlice(
      assetId: string,
      amount: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    "depositAlice(address,uint256)"(
      assetId: string,
      amount: BigNumberish,
      overrides?: PayableOverrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    getTotalDepositsAlice(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "getTotalDepositsAlice(address)"(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getTotalDepositsBob(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "getTotalDepositsBob(address)"(
      assetId: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;
  };
}
