/* 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 type { TypedEventFilter, TypedEvent, TypedListener } from "./common";

interface DeterministicDeployFactoryInterface extends ethers.utils.Interface {
  functions: {
    "deploy(bytes,uint256)": FunctionFragment;
    "deployFungibleToken(bytes,uint256,uint16,address,address,uint256,bool)": FunctionFragment;
    "deployVAnchor(bytes,uint256,uint256,uint256)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "deploy",
    values: [BytesLike, BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "deployFungibleToken",
    values: [
      BytesLike,
      BigNumberish,
      BigNumberish,
      string,
      string,
      BigNumberish,
      boolean
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "deployVAnchor",
    values: [BytesLike, BigNumberish, BigNumberish, BigNumberish]
  ): string;

  decodeFunctionResult(functionFragment: "deploy", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "deployFungibleToken",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "deployVAnchor",
    data: BytesLike
  ): Result;

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

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

export type DeployEvent = TypedEvent<[string] & { addr: string }>;

export class DeterministicDeployFactory 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: DeterministicDeployFactoryInterface;

  functions: {
    deploy(
      bytecode: BytesLike,
      _salt: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    deployFungibleToken(
      bytecode: BytesLike,
      _salt: BigNumberish,
      _feePercentage: BigNumberish,
      _feeRecipient: string,
      _handler: string,
      _limit: BigNumberish,
      _isNativeAllowed: boolean,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    deployVAnchor(
      bytecode: BytesLike,
      _salt: BigNumberish,
      _minimalWithdrawalAmount: BigNumberish,
      _maximumDepositAmount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;
  };

  deploy(
    bytecode: BytesLike,
    _salt: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  deployFungibleToken(
    bytecode: BytesLike,
    _salt: BigNumberish,
    _feePercentage: BigNumberish,
    _feeRecipient: string,
    _handler: string,
    _limit: BigNumberish,
    _isNativeAllowed: boolean,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  deployVAnchor(
    bytecode: BytesLike,
    _salt: BigNumberish,
    _minimalWithdrawalAmount: BigNumberish,
    _maximumDepositAmount: BigNumberish,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  callStatic: {
    deploy(
      bytecode: BytesLike,
      _salt: BigNumberish,
      overrides?: CallOverrides
    ): Promise<string>;

    deployFungibleToken(
      bytecode: BytesLike,
      _salt: BigNumberish,
      _feePercentage: BigNumberish,
      _feeRecipient: string,
      _handler: string,
      _limit: BigNumberish,
      _isNativeAllowed: boolean,
      overrides?: CallOverrides
    ): Promise<void>;

    deployVAnchor(
      bytecode: BytesLike,
      _salt: BigNumberish,
      _minimalWithdrawalAmount: BigNumberish,
      _maximumDepositAmount: BigNumberish,
      overrides?: CallOverrides
    ): Promise<void>;
  };

  filters: {
    "Deploy(address)"(
      addr?: null
    ): TypedEventFilter<[string], { addr: string }>;

    Deploy(addr?: null): TypedEventFilter<[string], { addr: string }>;
  };

  estimateGas: {
    deploy(
      bytecode: BytesLike,
      _salt: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    deployFungibleToken(
      bytecode: BytesLike,
      _salt: BigNumberish,
      _feePercentage: BigNumberish,
      _feeRecipient: string,
      _handler: string,
      _limit: BigNumberish,
      _isNativeAllowed: boolean,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    deployVAnchor(
      bytecode: BytesLike,
      _salt: BigNumberish,
      _minimalWithdrawalAmount: BigNumberish,
      _maximumDepositAmount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    deploy(
      bytecode: BytesLike,
      _salt: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    deployFungibleToken(
      bytecode: BytesLike,
      _salt: BigNumberish,
      _feePercentage: BigNumberish,
      _feeRecipient: string,
      _handler: string,
      _limit: BigNumberish,
      _isNativeAllowed: boolean,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    deployVAnchor(
      bytecode: BytesLike,
      _salt: BigNumberish,
      _minimalWithdrawalAmount: BigNumberish,
      _maximumDepositAmount: BigNumberish,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;
  };
}
