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

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

const _abi = [
  {
    type: "function",
    name: "assertExists",
    inputs: [
      {
        name: "self",
        type: "tuple",
        internalType: "struct Variable",
        components: [
          {
            name: "ty",
            type: "tuple",
            internalType: "struct Type",
            components: [
              {
                name: "kind",
                type: "TypeKind",
                internalType: "enum TypeKind",
              },
              {
                name: "isArray",
                type: "bool",
                internalType: "bool",
              },
            ],
          },
          {
            name: "data",
            type: "bytes",
            internalType: "bytes",
          },
        ],
      },
    ],
    outputs: [],
    stateMutability: "pure",
  },
  {
    type: "error",
    name: "NotInitialized",
    inputs: [],
  },
  {
    type: "error",
    name: "TypeMismatch",
    inputs: [
      {
        name: "expected",
        type: "string",
        internalType: "string",
      },
      {
        name: "actual",
        type: "string",
        internalType: "string",
      },
    ],
  },
  {
    type: "error",
    name: "UnsafeCast",
    inputs: [
      {
        name: "message",
        type: "string",
        internalType: "string",
      },
    ],
  },
] as const;

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