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

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

interface MinimalProxyFactoryInterface extends ethers.utils.Interface {
  functions: {
    "getDeploymentAddress(bytes32,address,address)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "getDeploymentAddress",
    values: [BytesLike, string, string]
  ): string;

  decodeFunctionResult(
    functionFragment: "getDeploymentAddress",
    data: BytesLike
  ): Result;

  events: {
    "ProxyCreated(address)": EventFragment;
  };

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

export type ProxyCreatedEvent = TypedEvent<[string] & { proxy: string }>;

export class MinimalProxyFactory 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: MinimalProxyFactoryInterface;

  functions: {
    "getDeploymentAddress(bytes32,address,address)"(
      _salt: BytesLike,
      _implementation: string,
      _deployer: string,
      overrides?: CallOverrides
    ): Promise<[string]>;

    "getDeploymentAddress(bytes32,address)"(
      _salt: BytesLike,
      _implementation: string,
      overrides?: CallOverrides
    ): Promise<[string]>;
  };

  "getDeploymentAddress(bytes32,address,address)"(
    _salt: BytesLike,
    _implementation: string,
    _deployer: string,
    overrides?: CallOverrides
  ): Promise<string>;

  "getDeploymentAddress(bytes32,address)"(
    _salt: BytesLike,
    _implementation: string,
    overrides?: CallOverrides
  ): Promise<string>;

  callStatic: {
    "getDeploymentAddress(bytes32,address,address)"(
      _salt: BytesLike,
      _implementation: string,
      _deployer: string,
      overrides?: CallOverrides
    ): Promise<string>;

    "getDeploymentAddress(bytes32,address)"(
      _salt: BytesLike,
      _implementation: string,
      overrides?: CallOverrides
    ): Promise<string>;
  };

  filters: {
    "ProxyCreated(address)"(
      proxy?: string | null
    ): TypedEventFilter<[string], { proxy: string }>;

    ProxyCreated(
      proxy?: string | null
    ): TypedEventFilter<[string], { proxy: string }>;
  };

  estimateGas: {
    "getDeploymentAddress(bytes32,address,address)"(
      _salt: BytesLike,
      _implementation: string,
      _deployer: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "getDeploymentAddress(bytes32,address)"(
      _salt: BytesLike,
      _implementation: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    "getDeploymentAddress(bytes32,address,address)"(
      _salt: BytesLike,
      _implementation: string,
      _deployer: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "getDeploymentAddress(bytes32,address)"(
      _salt: BytesLike,
      _implementation: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;
  };
}
