/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
import { Provider, TransactionRequest } from "@ethersproject/providers";
import type {
  UIDataProvider,
  UIDataProviderInterface,
} from "../UIDataProvider";

const _abi = [
  {
    inputs: [
      {
        internalType: "contract ILensHub",
        name: "hub",
        type: "address",
      },
    ],
    stateMutability: "nonpayable",
    type: "constructor",
  },
  {
    inputs: [
      {
        internalType: "string",
        name: "handle",
        type: "string",
      },
    ],
    name: "getLatestDataByHandle",
    outputs: [
      {
        components: [
          {
            components: [
              {
                internalType: "uint256",
                name: "pubCount",
                type: "uint256",
              },
              {
                internalType: "address",
                name: "followModule",
                type: "address",
              },
              {
                internalType: "address",
                name: "followNFT",
                type: "address",
              },
              {
                internalType: "string",
                name: "handle",
                type: "string",
              },
              {
                internalType: "string",
                name: "imageURI",
                type: "string",
              },
              {
                internalType: "string",
                name: "followNFTURI",
                type: "string",
              },
            ],
            internalType: "struct DataTypes.ProfileStruct",
            name: "profileStruct",
            type: "tuple",
          },
          {
            components: [
              {
                internalType: "uint256",
                name: "profileIdPointed",
                type: "uint256",
              },
              {
                internalType: "uint256",
                name: "pubIdPointed",
                type: "uint256",
              },
              {
                internalType: "string",
                name: "contentURI",
                type: "string",
              },
              {
                internalType: "address",
                name: "referenceModule",
                type: "address",
              },
              {
                internalType: "address",
                name: "collectModule",
                type: "address",
              },
              {
                internalType: "address",
                name: "collectNFT",
                type: "address",
              },
            ],
            internalType: "struct DataTypes.PublicationStruct",
            name: "publicationStruct",
            type: "tuple",
          },
        ],
        internalType: "struct LatestData",
        name: "",
        type: "tuple",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "uint256",
        name: "profileId",
        type: "uint256",
      },
    ],
    name: "getLatestDataByProfile",
    outputs: [
      {
        components: [
          {
            components: [
              {
                internalType: "uint256",
                name: "pubCount",
                type: "uint256",
              },
              {
                internalType: "address",
                name: "followModule",
                type: "address",
              },
              {
                internalType: "address",
                name: "followNFT",
                type: "address",
              },
              {
                internalType: "string",
                name: "handle",
                type: "string",
              },
              {
                internalType: "string",
                name: "imageURI",
                type: "string",
              },
              {
                internalType: "string",
                name: "followNFTURI",
                type: "string",
              },
            ],
            internalType: "struct DataTypes.ProfileStruct",
            name: "profileStruct",
            type: "tuple",
          },
          {
            components: [
              {
                internalType: "uint256",
                name: "profileIdPointed",
                type: "uint256",
              },
              {
                internalType: "uint256",
                name: "pubIdPointed",
                type: "uint256",
              },
              {
                internalType: "string",
                name: "contentURI",
                type: "string",
              },
              {
                internalType: "address",
                name: "referenceModule",
                type: "address",
              },
              {
                internalType: "address",
                name: "collectModule",
                type: "address",
              },
              {
                internalType: "address",
                name: "collectNFT",
                type: "address",
              },
            ],
            internalType: "struct DataTypes.PublicationStruct",
            name: "publicationStruct",
            type: "tuple",
          },
        ],
        internalType: "struct LatestData",
        name: "",
        type: "tuple",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
];

const _bytecode =
  " ";

type UIDataProviderConstructorParams =
  | [signer?: Signer]
  | ConstructorParameters<typeof ContractFactory>;

const isSuperArgs = (
  xs: UIDataProviderConstructorParams
): xs is ConstructorParameters<typeof ContractFactory> => xs.length > 1;

export class UIDataProvider__factory extends ContractFactory {
  constructor(...args: UIDataProviderConstructorParams) {
    if (isSuperArgs(args)) {
      super(...args);
    } else {
      super(_abi, _bytecode, args[0]);
    }
  }

  deploy(
    hub: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<UIDataProvider> {
    return super.deploy(hub, overrides || {}) as Promise<UIDataProvider>;
  }
  getDeployTransaction(
    hub: string,
    overrides?: Overrides & { from?: string | Promise<string> }
  ): TransactionRequest {
    return super.getDeployTransaction(hub, overrides || {});
  }
  attach(address: string): UIDataProvider {
    return super.attach(address) as UIDataProvider;
  }
  connect(signer: Signer): UIDataProvider__factory {
    return super.connect(signer) as UIDataProvider__factory;
  }
  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): UIDataProviderInterface {
    return new utils.Interface(_abi) as UIDataProviderInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): UIDataProvider {
    return new Contract(address, _abi, signerOrProvider) as UIDataProvider;
  }
}
