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

import { Contract, Interface, type ContractRunner } from "ethers";
import type {
  ExtensionsContextUpgradeable,
  ExtensionsContextUpgradeableInterface,
} from "../../../../contracts/LenderCommitmentForwarder/extensions/ExtensionsContextUpgradeable";

const _abi = [
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "address",
        name: "extension",
        type: "address",
      },
      {
        indexed: false,
        internalType: "address",
        name: "sender",
        type: "address",
      },
    ],
    name: "ExtensionAdded",
    type: "event",
  },
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "address",
        name: "extension",
        type: "address",
      },
      {
        indexed: false,
        internalType: "address",
        name: "sender",
        type: "address",
      },
    ],
    name: "ExtensionRevoked",
    type: "event",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "extension",
        type: "address",
      },
    ],
    name: "addExtension",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "account",
        type: "address",
      },
      {
        internalType: "address",
        name: "extension",
        type: "address",
      },
    ],
    name: "hasExtension",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "extension",
        type: "address",
      },
    ],
    name: "revokeExtension",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

export class ExtensionsContextUpgradeable__factory {
  static readonly abi = _abi;
  static createInterface(): ExtensionsContextUpgradeableInterface {
    return new Interface(_abi) as ExtensionsContextUpgradeableInterface;
  }
  static connect(
    address: string,
    runner?: ContractRunner | null
  ): ExtensionsContextUpgradeable {
    return new Contract(
      address,
      _abi,
      runner
    ) as unknown as ExtensionsContextUpgradeable;
  }
}
