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

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
  Contract,
  ContractTransaction,
  Overrides,
  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 TestLibIterableMappingInterface extends ethers.utils.Interface {
  functions: {
    "addTransferDefinition(tuple)": FunctionFragment;
    "getTransferDefinitionByIndex(uint256)": FunctionFragment;
    "getTransferDefinitionByName(string)": FunctionFragment;
    "getTransferDefinitions()": FunctionFragment;
    "isEmptyString(string)": FunctionFragment;
    "length()": FunctionFragment;
    "nameExists(string)": FunctionFragment;
    "removeTransferDefinition(string)": FunctionFragment;
    "stringEqual(string,string)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "addTransferDefinition",
    values: [
      {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: BytesLike;
      }
    ]
  ): string;
  encodeFunctionData(
    functionFragment: "getTransferDefinitionByIndex",
    values: [BigNumberish]
  ): string;
  encodeFunctionData(
    functionFragment: "getTransferDefinitionByName",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "getTransferDefinitions",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "isEmptyString",
    values: [string]
  ): string;
  encodeFunctionData(functionFragment: "length", values?: undefined): string;
  encodeFunctionData(functionFragment: "nameExists", values: [string]): string;
  encodeFunctionData(
    functionFragment: "removeTransferDefinition",
    values: [string]
  ): string;
  encodeFunctionData(
    functionFragment: "stringEqual",
    values: [string, string]
  ): string;

  decodeFunctionResult(
    functionFragment: "addTransferDefinition",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getTransferDefinitionByIndex",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getTransferDefinitionByName",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "getTransferDefinitions",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "isEmptyString",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "length", data: BytesLike): Result;
  decodeFunctionResult(functionFragment: "nameExists", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "removeTransferDefinition",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "stringEqual",
    data: BytesLike
  ): Result;

  events: {};
}

export class TestLibIterableMapping 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: TestLibIterableMappingInterface;

  functions: {
    addTransferDefinition(
      transfer: {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: BytesLike;
      },
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    "addTransferDefinition((string,address,string,string,bytes))"(
      transfer: {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: BytesLike;
      },
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    getTransferDefinitionByIndex(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<
      [
        [string, string, string, string, string] & {
          name: string;
          definition: string;
          stateEncoding: string;
          resolverEncoding: string;
          encodedCancel: string;
        }
      ]
    >;

    "getTransferDefinitionByIndex(uint256)"(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<
      [
        [string, string, string, string, string] & {
          name: string;
          definition: string;
          stateEncoding: string;
          resolverEncoding: string;
          encodedCancel: string;
        }
      ]
    >;

    getTransferDefinitionByName(
      name: string,
      overrides?: CallOverrides
    ): Promise<
      [
        [string, string, string, string, string] & {
          name: string;
          definition: string;
          stateEncoding: string;
          resolverEncoding: string;
          encodedCancel: string;
        }
      ]
    >;

    "getTransferDefinitionByName(string)"(
      name: string,
      overrides?: CallOverrides
    ): Promise<
      [
        [string, string, string, string, string] & {
          name: string;
          definition: string;
          stateEncoding: string;
          resolverEncoding: string;
          encodedCancel: string;
        }
      ]
    >;

    getTransferDefinitions(
      overrides?: CallOverrides
    ): Promise<
      [
        ([string, string, string, string, string] & {
          name: string;
          definition: string;
          stateEncoding: string;
          resolverEncoding: string;
          encodedCancel: string;
        })[]
      ]
    >;

    "getTransferDefinitions()"(
      overrides?: CallOverrides
    ): Promise<
      [
        ([string, string, string, string, string] & {
          name: string;
          definition: string;
          stateEncoding: string;
          resolverEncoding: string;
          encodedCancel: string;
        })[]
      ]
    >;

    isEmptyString(s: string, overrides?: CallOverrides): Promise<[boolean]>;

    "isEmptyString(string)"(
      s: string,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

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

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

    nameExists(name: string, overrides?: CallOverrides): Promise<[boolean]>;

    "nameExists(string)"(
      name: string,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

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

    "removeTransferDefinition(string)"(
      name: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<ContractTransaction>;

    stringEqual(
      s: string,
      t: string,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    "stringEqual(string,string)"(
      s: string,
      t: string,
      overrides?: CallOverrides
    ): Promise<[boolean]>;
  };

  addTransferDefinition(
    transfer: {
      name: string;
      definition: string;
      stateEncoding: string;
      resolverEncoding: string;
      encodedCancel: BytesLike;
    },
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  "addTransferDefinition((string,address,string,string,bytes))"(
    transfer: {
      name: string;
      definition: string;
      stateEncoding: string;
      resolverEncoding: string;
      encodedCancel: BytesLike;
    },
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  getTransferDefinitionByIndex(
    index: BigNumberish,
    overrides?: CallOverrides
  ): Promise<
    [string, string, string, string, string] & {
      name: string;
      definition: string;
      stateEncoding: string;
      resolverEncoding: string;
      encodedCancel: string;
    }
  >;

  "getTransferDefinitionByIndex(uint256)"(
    index: BigNumberish,
    overrides?: CallOverrides
  ): Promise<
    [string, string, string, string, string] & {
      name: string;
      definition: string;
      stateEncoding: string;
      resolverEncoding: string;
      encodedCancel: string;
    }
  >;

  getTransferDefinitionByName(
    name: string,
    overrides?: CallOverrides
  ): Promise<
    [string, string, string, string, string] & {
      name: string;
      definition: string;
      stateEncoding: string;
      resolverEncoding: string;
      encodedCancel: string;
    }
  >;

  "getTransferDefinitionByName(string)"(
    name: string,
    overrides?: CallOverrides
  ): Promise<
    [string, string, string, string, string] & {
      name: string;
      definition: string;
      stateEncoding: string;
      resolverEncoding: string;
      encodedCancel: string;
    }
  >;

  getTransferDefinitions(
    overrides?: CallOverrides
  ): Promise<
    ([string, string, string, string, string] & {
      name: string;
      definition: string;
      stateEncoding: string;
      resolverEncoding: string;
      encodedCancel: string;
    })[]
  >;

  "getTransferDefinitions()"(
    overrides?: CallOverrides
  ): Promise<
    ([string, string, string, string, string] & {
      name: string;
      definition: string;
      stateEncoding: string;
      resolverEncoding: string;
      encodedCancel: string;
    })[]
  >;

  isEmptyString(s: string, overrides?: CallOverrides): Promise<boolean>;

  "isEmptyString(string)"(
    s: string,
    overrides?: CallOverrides
  ): Promise<boolean>;

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

  "length()"(overrides?: CallOverrides): Promise<BigNumber>;

  nameExists(name: string, overrides?: CallOverrides): Promise<boolean>;

  "nameExists(string)"(
    name: string,
    overrides?: CallOverrides
  ): Promise<boolean>;

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

  "removeTransferDefinition(string)"(
    name: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<ContractTransaction>;

  stringEqual(
    s: string,
    t: string,
    overrides?: CallOverrides
  ): Promise<boolean>;

  "stringEqual(string,string)"(
    s: string,
    t: string,
    overrides?: CallOverrides
  ): Promise<boolean>;

  callStatic: {
    addTransferDefinition(
      transfer: {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: BytesLike;
      },
      overrides?: CallOverrides
    ): Promise<void>;

    "addTransferDefinition((string,address,string,string,bytes))"(
      transfer: {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: BytesLike;
      },
      overrides?: CallOverrides
    ): Promise<void>;

    getTransferDefinitionByIndex(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<
      [string, string, string, string, string] & {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: string;
      }
    >;

    "getTransferDefinitionByIndex(uint256)"(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<
      [string, string, string, string, string] & {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: string;
      }
    >;

    getTransferDefinitionByName(
      name: string,
      overrides?: CallOverrides
    ): Promise<
      [string, string, string, string, string] & {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: string;
      }
    >;

    "getTransferDefinitionByName(string)"(
      name: string,
      overrides?: CallOverrides
    ): Promise<
      [string, string, string, string, string] & {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: string;
      }
    >;

    getTransferDefinitions(
      overrides?: CallOverrides
    ): Promise<
      ([string, string, string, string, string] & {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: string;
      })[]
    >;

    "getTransferDefinitions()"(
      overrides?: CallOverrides
    ): Promise<
      ([string, string, string, string, string] & {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: string;
      })[]
    >;

    isEmptyString(s: string, overrides?: CallOverrides): Promise<boolean>;

    "isEmptyString(string)"(
      s: string,
      overrides?: CallOverrides
    ): Promise<boolean>;

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

    "length()"(overrides?: CallOverrides): Promise<BigNumber>;

    nameExists(name: string, overrides?: CallOverrides): Promise<boolean>;

    "nameExists(string)"(
      name: string,
      overrides?: CallOverrides
    ): Promise<boolean>;

    removeTransferDefinition(
      name: string,
      overrides?: CallOverrides
    ): Promise<void>;

    "removeTransferDefinition(string)"(
      name: string,
      overrides?: CallOverrides
    ): Promise<void>;

    stringEqual(
      s: string,
      t: string,
      overrides?: CallOverrides
    ): Promise<boolean>;

    "stringEqual(string,string)"(
      s: string,
      t: string,
      overrides?: CallOverrides
    ): Promise<boolean>;
  };

  filters: {};

  estimateGas: {
    addTransferDefinition(
      transfer: {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: BytesLike;
      },
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    "addTransferDefinition((string,address,string,string,bytes))"(
      transfer: {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: BytesLike;
      },
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    getTransferDefinitionByIndex(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "getTransferDefinitionByIndex(uint256)"(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    getTransferDefinitionByName(
      name: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "getTransferDefinitionByName(string)"(
      name: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

    "getTransferDefinitions()"(overrides?: CallOverrides): Promise<BigNumber>;

    isEmptyString(s: string, overrides?: CallOverrides): Promise<BigNumber>;

    "isEmptyString(string)"(
      s: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

    "length()"(overrides?: CallOverrides): Promise<BigNumber>;

    nameExists(name: string, overrides?: CallOverrides): Promise<BigNumber>;

    "nameExists(string)"(
      name: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

    "removeTransferDefinition(string)"(
      name: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<BigNumber>;

    stringEqual(
      s: string,
      t: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "stringEqual(string,string)"(
      s: string,
      t: string,
      overrides?: CallOverrides
    ): Promise<BigNumber>;
  };

  populateTransaction: {
    addTransferDefinition(
      transfer: {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: BytesLike;
      },
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    "addTransferDefinition((string,address,string,string,bytes))"(
      transfer: {
        name: string;
        definition: string;
        stateEncoding: string;
        resolverEncoding: string;
        encodedCancel: BytesLike;
      },
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    getTransferDefinitionByIndex(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "getTransferDefinitionByIndex(uint256)"(
      index: BigNumberish,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    getTransferDefinitionByName(
      name: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "getTransferDefinitionByName(string)"(
      name: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

    "getTransferDefinitions()"(
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    isEmptyString(
      s: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "isEmptyString(string)"(
      s: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

    "length()"(overrides?: CallOverrides): Promise<PopulatedTransaction>;

    nameExists(
      name: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "nameExists(string)"(
      name: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

    "removeTransferDefinition(string)"(
      name: string,
      overrides?: Overrides & { from?: string | Promise<string> }
    ): Promise<PopulatedTransaction>;

    stringEqual(
      s: string,
      t: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "stringEqual(string,string)"(
      s: string,
      t: string,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;
  };
}
