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

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
} from "ethers";
import {
  Contract,
  ContractTransaction,
  Overrides,
  CallOverrides,
} from "@ethersproject/contracts";
import { BytesLike } from "@ethersproject/bytes";
import { Listener, Provider } from "@ethersproject/providers";
import { FunctionFragment, EventFragment, Result } from "@ethersproject/abi";

interface MultiSigWalletFactoryInterface extends ethers.utils.Interface {
  functions: {
    "isInstantiation(address)": FunctionFragment;
    "instantiations(address,uint256)": FunctionFragment;
    "getInstantiationCount(address)": FunctionFragment;
    "create(address[],uint256)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "isInstantiation",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "instantiations",
    values: [string, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getInstantiationCount",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "create",
    values: [string[], BigNumberish]
  ): string;

  decodeFunctionResult(
    functionFragment: "isInstantiation",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "instantiations",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getInstantiationCount",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "create", data: BytesLike): Result;

  events: {
    "ContractInstantiation(address,address)": EventFragment;
  };

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

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

  on(event: EventFilter | string, listener: Listener): this;
  once(event: EventFilter | string, listener: Listener): this;
  addListener(eventName: EventFilter | string, listener: Listener): this;
  removeAllListeners(eventName: EventFilter | string): this;
  removeListener(eventName: any, listener: Listener): this;

  interface: MultiSigWalletFactoryInterface;

  functions: {
    isInstantiation(
      arg0: string,
      overrides?: CallOverrides
    ): Promise<{
      0: boolean;
    }>;

    "isInstantiation(address)"(
      arg0: string,
      overrides?: CallOverrides
    ): Promise<{
      0: boolean;
    }>;

    instantiations(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<{
      0: string;
    }>;

    "instantiations(address,uint256)"(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<{
      0: string;
    }>;

    getInstantiationCount(
      creator: string,
      overrides?: CallOverrides
    ): Promise<{
      0: BigNumber;
    }>;

    "getInstantiationCount(address)"(
      creator: string,
      overrides?: CallOverrides
    ): Promise<{
      0: BigNumber;
    }>;

    create(
      _owners: string[],
      _required: BigNumberish,
      overrides?: Overrides
    ): Promise<ContractTransaction>;

    "create(address[],uint256)"(
      _owners: string[],
      _required: BigNumberish,
      overrides?: Overrides
    ): Promise<ContractTransaction>;
  };

  isInstantiation(arg0: string, overrides?: CallOverrides): Promise<boolean>;

  "isInstantiation(address)"(
    arg0: string,
    overrides?: CallOverrides
  ): Promise<boolean>;

  instantiations(
    arg0: string,
    arg1: BigNumberish,
    overrides?: CallOverrides
  ): Promise<string>;

  "instantiations(address,uint256)"(
    arg0: string,
    arg1: BigNumberish,
    overrides?: CallOverrides
  ): Promise<string>;

  getInstantiationCount(
    creator: string,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  "getInstantiationCount(address)"(
    creator: string,
    overrides?: CallOverrides
  ): Promise<BigNumber>;

  create(
    _owners: string[],
    _required: BigNumberish,
    overrides?: Overrides
  ): Promise<ContractTransaction>;

  "create(address[],uint256)"(
    _owners: string[],
    _required: BigNumberish,
    overrides?: Overrides
  ): Promise<ContractTransaction>;

  callStatic: {
    isInstantiation(arg0: string, overrides?: CallOverrides): Promise<boolean>;

    "isInstantiation(address)"(
      arg0: string,
      overrides?: CallOverrides
    ): Promise<boolean>;

    instantiations(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<string>;

    "instantiations(address,uint256)"(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<string>;

    getInstantiationCount(
      creator: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "getInstantiationCount(address)"(
      creator: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    create(
      _owners: string[],
      _required: BigNumberish,
      overrides?: CallOverrides
    ): Promise<string>;

    "create(address[],uint256)"(
      _owners: string[],
      _required: BigNumberish,
      overrides?: CallOverrides
    ): Promise<string>;
  };

  filters: {
    ContractInstantiation(sender: null, instantiation: null): EventFilter;
  };

  estimateGas: {
    isInstantiation(
      arg0: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "isInstantiation(address)"(
      arg0: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    instantiations(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "instantiations(address,uint256)"(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getInstantiationCount(
      creator: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "getInstantiationCount(address)"(
      creator: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    create(
      _owners: string[],
      _required: BigNumberish,
      overrides?: Overrides
    ): Promise<BigNumber>;

    "create(address[],uint256)"(
      _owners: string[],
      _required: BigNumberish,
      overrides?: Overrides
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    isInstantiation(
      arg0: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "isInstantiation(address)"(
      arg0: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    instantiations(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "instantiations(address,uint256)"(
      arg0: string,
      arg1: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getInstantiationCount(
      creator: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "getInstantiationCount(address)"(
      creator: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    create(
      _owners: string[],
      _required: BigNumberish,
      overrides?: Overrides
    ): Promise<PopulatedTransaction>;

    "create(address[],uint256)"(
      _owners: string[],
      _required: BigNumberish,
      overrides?: Overrides
    ): Promise<PopulatedTransaction>;
  };
}
