/* Autogenerated file. Do not edit manually. */

/* tslint:disable */

/* eslint-disable */
import type {
  XVSVaultErrorReporter,
  XVSVaultErrorReporterInterface,
} from "../../../../../@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultErrorReporter";
import type { PromiseOrValue } from "../../../../../common";
import type { Provider, TransactionRequest } from "@ethersproject/providers";
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";

const _abi = [
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "uint256",
        name: "error",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "info",
        type: "uint256",
      },
      {
        indexed: false,
        internalType: "uint256",
        name: "detail",
        type: "uint256",
      },
    ],
    name: "Failure",
    type: "event",
  },
] as const;

const _bytecode =
  "0x6080604052348015600f57600080fd5b50603e80601d6000396000f3fe6080604052600080fdfea265627a7a72315820126228b8a38b3c2bd55cc8f6840bfd1ba1871d0115a3321ad8987a00e1f93a9164736f6c63430005100032";

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

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

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

  override deploy(
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): Promise<XVSVaultErrorReporter> {
    return super.deploy(overrides || {}) as Promise<XVSVaultErrorReporter>;
  }
  override getDeployTransaction(
    overrides?: Overrides & { from?: PromiseOrValue<string> }
  ): TransactionRequest {
    return super.getDeployTransaction(overrides || {});
  }
  override attach(address: string): XVSVaultErrorReporter {
    return super.attach(address) as XVSVaultErrorReporter;
  }
  override connect(signer: Signer): XVSVaultErrorReporter__factory {
    return super.connect(signer) as XVSVaultErrorReporter__factory;
  }

  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): XVSVaultErrorReporterInterface {
    return new utils.Interface(_abi) as XVSVaultErrorReporterInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): XVSVaultErrorReporter {
    return new Contract(
      address,
      _abi,
      signerOrProvider
    ) as XVSVaultErrorReporter;
  }
}
