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

import { Contract, Signer, utils } from "ethers";
import type { Provider } from "@ethersproject/providers";
import type {
  MultiCallerUpgradeable,
  MultiCallerUpgradeableInterface,
} from "../MultiCallerUpgradeable";

const _abi = [
  {
    type: "function",
    name: "multicall",
    inputs: [
      {
        name: "data",
        type: "bytes[]",
        internalType: "bytes[]",
      },
    ],
    outputs: [
      {
        name: "results",
        type: "bytes[]",
        internalType: "bytes[]",
      },
    ],
    stateMutability: "nonpayable",
  },
  {
    type: "function",
    name: "tryMulticall",
    inputs: [
      {
        name: "data",
        type: "bytes[]",
        internalType: "bytes[]",
      },
    ],
    outputs: [
      {
        name: "results",
        type: "tuple[]",
        internalType: "struct MultiCallerUpgradeable.Result[]",
        components: [
          {
            name: "success",
            type: "bool",
            internalType: "bool",
          },
          {
            name: "returnData",
            type: "bytes",
            internalType: "bytes",
          },
        ],
      },
    ],
    stateMutability: "nonpayable",
  },
] as const;

export class MultiCallerUpgradeable__factory {
  static readonly abi = _abi;
  static createInterface(): MultiCallerUpgradeableInterface {
    return new utils.Interface(_abi) as MultiCallerUpgradeableInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): MultiCallerUpgradeable {
    return new Contract(
      address,
      _abi,
      signerOrProvider
    ) as MultiCallerUpgradeable;
  }
}
