/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
import type { Provider, TransactionRequest } from "@ethersproject/providers";
import type { PromiseOrValue } from "../../../../common";
import type {
  PolicyForAll,
  PolicyForAllInterface,
} from "../../../../contracts/test/PolicyTestPolicy.sol/PolicyForAll";

const _abi = [
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    name: "canImplementInterfaceForAddress",
    outputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
    ],
    stateMutability: "pure",
    type: "function",
  },
];

const _bytecode =
  "0x608060405234801561001057600080fd5b5060c58061001f6000396000f3fe6080604052348015600f57600080fd5b506004361060285760003560e01c8063249cb3fa14602d575b600080fd5b605f60383660046071565b7fa2ef4600d742022d532d4747cb3547474667d6f13804902513b2ec01c848f4b492915050565b60405190815260200160405180910390f35b60008060408385031215608357600080fd5b82359150602083013573ffffffffffffffffffffffffffffffffffffffff8116811460ad57600080fd5b80915050925092905056fea164736f6c6343000809000a";

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

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

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

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

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