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

import {
  ethers,
  EventFilter,
  Signer,
  BigNumber,
  BigNumberish,
  PopulatedTransaction,
  Contract,
  ContractTransaction,
  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 ITransferDefinitionInterface extends ethers.utils.Interface {
  functions: {
    "EncodedCancel()": FunctionFragment;
    "Name()": FunctionFragment;
    "ResolverEncoding()": FunctionFragment;
    "StateEncoding()": FunctionFragment;
    "create(bytes,bytes)": FunctionFragment;
    "getRegistryInformation()": FunctionFragment;
    "resolve(bytes,bytes,bytes)": FunctionFragment;
  };

  encodeFunctionData(
    functionFragment: "EncodedCancel",
    values?: undefined
  ): string;
  encodeFunctionData(functionFragment: "Name", values?: undefined): string;
  encodeFunctionData(
    functionFragment: "ResolverEncoding",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "StateEncoding",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "create",
    values: [BytesLike, BytesLike]
  ): string;
  encodeFunctionData(
    functionFragment: "getRegistryInformation",
    values?: undefined
  ): string;
  encodeFunctionData(
    functionFragment: "resolve",
    values: [BytesLike, BytesLike, BytesLike]
  ): string;

  decodeFunctionResult(
    functionFragment: "EncodedCancel",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "Name", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "ResolverEncoding",
    data: BytesLike
  ): Result;
  decodeFunctionResult(
    functionFragment: "StateEncoding",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "create", data: BytesLike): Result;
  decodeFunctionResult(
    functionFragment: "getRegistryInformation",
    data: BytesLike
  ): Result;
  decodeFunctionResult(functionFragment: "resolve", data: BytesLike): Result;

  events: {};
}

export class ITransferDefinition 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: ITransferDefinitionInterface;

  functions: {
    EncodedCancel(overrides?: CallOverrides): Promise<[string]>;

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

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

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

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

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

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

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

    create(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

    "create(bytes,bytes)"(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      overrides?: CallOverrides
    ): Promise<[boolean]>;

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

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

    resolve(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      arg2: BytesLike,
      overrides?: CallOverrides
    ): Promise<
      [
        [[BigNumber, BigNumber], [string, string]] & {
          amount: [BigNumber, BigNumber];
          to: [string, string];
        }
      ]
    >;

    "resolve(bytes,bytes,bytes)"(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      arg2: BytesLike,
      overrides?: CallOverrides
    ): Promise<
      [
        [[BigNumber, BigNumber], [string, string]] & {
          amount: [BigNumber, BigNumber];
          to: [string, string];
        }
      ]
    >;
  };

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

  "EncodedCancel()"(overrides?: CallOverrides): Promise<string>;

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

  "Name()"(overrides?: CallOverrides): Promise<string>;

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

  "ResolverEncoding()"(overrides?: CallOverrides): Promise<string>;

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

  "StateEncoding()"(overrides?: CallOverrides): Promise<string>;

  create(
    encodedBalance: BytesLike,
    arg1: BytesLike,
    overrides?: CallOverrides
  ): Promise<boolean>;

  "create(bytes,bytes)"(
    encodedBalance: BytesLike,
    arg1: BytesLike,
    overrides?: CallOverrides
  ): Promise<boolean>;

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

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

  resolve(
    encodedBalance: BytesLike,
    arg1: BytesLike,
    arg2: BytesLike,
    overrides?: CallOverrides
  ): Promise<
    [[BigNumber, BigNumber], [string, string]] & {
      amount: [BigNumber, BigNumber];
      to: [string, string];
    }
  >;

  "resolve(bytes,bytes,bytes)"(
    encodedBalance: BytesLike,
    arg1: BytesLike,
    arg2: BytesLike,
    overrides?: CallOverrides
  ): Promise<
    [[BigNumber, BigNumber], [string, string]] & {
      amount: [BigNumber, BigNumber];
      to: [string, string];
    }
  >;

  callStatic: {
    EncodedCancel(overrides?: CallOverrides): Promise<string>;

    "EncodedCancel()"(overrides?: CallOverrides): Promise<string>;

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

    "Name()"(overrides?: CallOverrides): Promise<string>;

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

    "ResolverEncoding()"(overrides?: CallOverrides): Promise<string>;

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

    "StateEncoding()"(overrides?: CallOverrides): Promise<string>;

    create(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      overrides?: CallOverrides
    ): Promise<boolean>;

    "create(bytes,bytes)"(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      overrides?: CallOverrides
    ): Promise<boolean>;

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

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

    resolve(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      arg2: BytesLike,
      overrides?: CallOverrides
    ): Promise<
      [[BigNumber, BigNumber], [string, string]] & {
        amount: [BigNumber, BigNumber];
        to: [string, string];
      }
    >;

    "resolve(bytes,bytes,bytes)"(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      arg2: BytesLike,
      overrides?: CallOverrides
    ): Promise<
      [[BigNumber, BigNumber], [string, string]] & {
        amount: [BigNumber, BigNumber];
        to: [string, string];
      }
    >;
  };

  filters: {};

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

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

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

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

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

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

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

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

    create(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "create(bytes,bytes)"(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

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

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

    resolve(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      arg2: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;

    "resolve(bytes,bytes,bytes)"(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      arg2: BytesLike,
      overrides?: CallOverrides
    ): Promise<BigNumber>;
  };

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

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

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

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

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

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

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

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

    create(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "create(bytes,bytes)"(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

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

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

    resolve(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      arg2: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;

    "resolve(bytes,bytes,bytes)"(
      encodedBalance: BytesLike,
      arg1: BytesLike,
      arg2: BytesLike,
      overrides?: CallOverrides
    ): Promise<PopulatedTransaction>;
  };
}
