/* 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 MultiTokenManagerBaseInterface extends ethers.utils.Interface {
  functions: {
    "getProposalNonce()": FunctionFragment;
    "getWrappedTokens()": FunctionFragment;
    "initialize(address,address)": FunctionFragment;
    "initialized()": FunctionFragment;
    "isFungible()": FunctionFragment;
    "masterFeeRecipient()": FunctionFragment;
    "proposalNonce()": FunctionFragment;
    "registerNftToken(address,string,bytes32)": FunctionFragment;
    "registerToken(address,string,string,bytes32,uint256,uint16,bool,address)": FunctionFragment;
    "registry()": FunctionFragment;
    "setMasterFeeRecipient(address)": FunctionFragment;
    "setRegistry(address)": FunctionFragment;
    "wrappedTokens(uint256)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "getProposalNonce",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "getWrappedTokens",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "initialize",
    values: [string, string]
  ): string;
  encodeFunctionData(
    functionFragment: "initialized",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "isFungible",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "masterFeeRecipient",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "proposalNonce",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "registerNftToken",
    values: [string, string, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "registerToken",
    values: [
      string,
      string,
      string,
      BytesLike,
      BigNumberish,
      BigNumberish,
      boolean,
      string
    ]
  ): string;
  encodeFunctionData(functionFragment: "registry", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "setMasterFeeRecipient",
    values: [string]
  ): string;
  encodeFunctionData(functionFragment: "setRegistry", values: [string]): string;
  encodeFunctionData(
    functionFragment: "wrappedTokens",
    values: [BigNumberish]
  ): string;

  decodeFunctionResult(
    functionFragment: "getProposalNonce",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getWrappedTokens",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "initialized",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "isFungible", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "masterFeeRecipient",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "proposalNonce",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "registerNftToken",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "registerToken",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "registry", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "setMasterFeeRecipient",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "setRegistry",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "wrappedTokens",
    data: BytesLike
  ): Result;

  events: {};
}

export class MultiTokenManagerBase 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: MultiTokenManagerBaseInterface;

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

    getWrappedTokens(overrides?: CallOverrides): Promise<[string[]]>;

    initialize(
      _registry: string,
      _feeRecipient: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    initialized(overrides?: CallOverrides): Promise<[boolean]>;

    isFungible(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    masterFeeRecipient(overrides?: CallOverrides): Promise<[string]>;

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

    registerNftToken(
      _handler: string,
      _uri: string,
      _salt: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    registerToken(
      _handler: string,
      _name: string,
      _symbol: string,
      _salt: BytesLike,
      _limit: BigNumberish,
      _feePercentage: BigNumberish,
      _isNativeAllowed: boolean,
      _admin: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    registry(overrides?: CallOverrides): Promise<[string]>;

    setMasterFeeRecipient(
      _feeRecipient: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    setRegistry(
      _registry: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    wrappedTokens(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<[string]>;
  };

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

  getWrappedTokens(overrides?: CallOverrides): Promise<string[]>;

  initialize(
    _registry: string,
    _feeRecipient: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  initialized(overrides?: CallOverrides): Promise<boolean>;

  isFungible(
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  masterFeeRecipient(overrides?: CallOverrides): Promise<string>;

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

  registerNftToken(
    _handler: string,
    _uri: string,
    _salt: BytesLike,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  registerToken(
    _handler: string,
    _name: string,
    _symbol: string,
    _salt: BytesLike,
    _limit: BigNumberish,
    _feePercentage: BigNumberish,
    _isNativeAllowed: boolean,
    _admin: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  registry(overrides?: CallOverrides): Promise<string>;

  setMasterFeeRecipient(
    _feeRecipient: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  setRegistry(
    _registry: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

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

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

    getWrappedTokens(overrides?: CallOverrides): Promise<string[]>;

    initialize(
      _registry: string,
      _feeRecipient: string,
      overrides?: CallOverrides
    ): Promise<void>;

    initialized(overrides?: CallOverrides): Promise<boolean>;

    isFungible(overrides?: CallOverrides): Promise<boolean>;

    masterFeeRecipient(overrides?: CallOverrides): Promise<string>;

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

    registerNftToken(
      _handler: string,
      _uri: string,
      _salt: BytesLike,
      overrides?: CallOverrides
    ): Promise<string>;

    registerToken(
      _handler: string,
      _name: string,
      _symbol: string,
      _salt: BytesLike,
      _limit: BigNumberish,
      _feePercentage: BigNumberish,
      _isNativeAllowed: boolean,
      _admin: string,
      overrides?: CallOverrides
    ): Promise<string>;

    registry(overrides?: CallOverrides): Promise<string>;

    setMasterFeeRecipient(
      _feeRecipient: string,
      overrides?: CallOverrides
    ): Promise<void>;

    setRegistry(_registry: string, overrides?: CallOverrides): Promise<void>;

    wrappedTokens(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<string>;
  };

  filters: {};

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

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

    initialize(
      _registry: string,
      _feeRecipient: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

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

    isFungible(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

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

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

    registerNftToken(
      _handler: string,
      _uri: string,
      _salt: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    registerToken(
      _handler: string,
      _name: string,
      _symbol: string,
      _salt: BytesLike,
      _limit: BigNumberish,
      _feePercentage: BigNumberish,
      _isNativeAllowed: boolean,
      _admin: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

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

    setMasterFeeRecipient(
      _feeRecipient: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    setRegistry(
      _registry: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    wrappedTokens(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;
  };

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

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

    initialize(
      _registry: string,
      _feeRecipient: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

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

    isFungible(
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

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

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

    registerNftToken(
      _handler: string,
      _uri: string,
      _salt: BytesLike,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    registerToken(
      _handler: string,
      _name: string,
      _symbol: string,
      _salt: BytesLike,
      _limit: BigNumberish,
      _feePercentage: BigNumberish,
      _isNativeAllowed: boolean,
      _admin: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

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

    setMasterFeeRecipient(
      _feeRecipient: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    setRegistry(
      _registry: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    wrappedTokens(
      arg0: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;
  };
}
