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

/* tslint:disable */

/* eslint-disable */
import type { PromiseOrValue } from "../../../common";
import type {
  AccessControlledV5,
  AccessControlledV5Interface,
} from "../../../contracts/Governance/AccessControlledV5";
import type { Provider, TransactionRequest } from "@ethersproject/providers";
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";

const _abi = [
  {
    anonymous: false,
    inputs: [
      {
        indexed: false,
        internalType: "address",
        name: "oldAccessControlManager",
        type: "address",
      },
      {
        indexed: false,
        internalType: "address",
        name: "newAccessControlManager",
        type: "address",
      },
    ],
    name: "NewAccessControlManager",
    type: "event",
  },
  {
    constant: true,
    inputs: [],
    name: "accessControlManager",
    outputs: [
      {
        internalType: "contract IAccessControlManagerV5",
        name: "",
        type: "address",
      },
    ],
    payable: false,
    stateMutability: "view",
    type: "function",
  },
] as const;

const _bytecode =
  "0x6080604052348015600f57600080fd5b5060938061001e6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063b4a0bdf314602d575b600080fd5b6033604f565b604080516001600160a01b039092168252519081900360200190f35b6000546001600160a01b03169056fea265627a7a72315820ee712c88ff0179e47b767f49a8407f290fd6eed631af7c31ce48458a54e5da3364736f6c63430005100032";

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

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

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

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

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