/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import {
  Contract,
  ContractFactory,
  ContractTransactionResponse,
  Interface,
} from "ethers";
import type { Signer, ContractDeployTransaction, ContractRunner } from "ethers";
import type { NonPayableOverrides } from "../../../../common";
import type {
  MockFactory,
  MockFactoryInterface,
} from "../../../../@cryptoalgebra/test-utils/contracts/MockFactory";

const _abi = [
  {
    inputs: [],
    stateMutability: "nonpayable",
    type: "constructor",
  },
  {
    inputs: [],
    name: "POOLS_ADMINISTRATOR_ROLE",
    outputs: [
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "role",
        type: "bytes32",
      },
      {
        internalType: "address",
        name: "account",
        type: "address",
      },
    ],
    name: "grantRole",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
      {
        internalType: "bytes32",
        name: "",
        type: "bytes32",
      },
    ],
    name: "hasRole",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "role",
        type: "bytes32",
      },
      {
        internalType: "address",
        name: "account",
        type: "address",
      },
    ],
    name: "hasRoleOrOwner",
    outputs: [
      {
        internalType: "bool",
        name: "",
        type: "bool",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [],
    name: "owner",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    name: "poolByPair",
    outputs: [
      {
        internalType: "address",
        name: "",
        type: "address",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "bytes32",
        name: "role",
        type: "bytes32",
      },
      {
        internalType: "address",
        name: "account",
        type: "address",
      },
    ],
    name: "revokeRole",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
  {
    inputs: [
      {
        internalType: "address",
        name: "token0",
        type: "address",
      },
      {
        internalType: "address",
        name: "token1",
        type: "address",
      },
      {
        internalType: "address",
        name: "pool",
        type: "address",
      },
    ],
    name: "stubPool",
    outputs: [],
    stateMutability: "nonpayable",
    type: "function",
  },
] as const;

const _bytecode =
  "0x608060405234801561001057600080fd5b50600080546001600160a01b03191633179055610453806100326000396000f3fe608060405234801561001057600080fd5b50600436106100885760003560e01c8063d547741f1161005b578063d547741f146101b5578063d9a641e114610219578063e8ae2b691461025a578063f89b66ec1461026d57600080fd5b80632f2ff15d1461008d5780638da5cb5b146100f8578063ac4ab3fb14610142578063b500a48b14610180575b600080fd5b6100f661009b366004610383565b73ffffffffffffffffffffffffffffffffffffffff16600090815260016020818152604080842094845293905291902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169091179055565b005b6000546101189073ffffffffffffffffffffffffffffffffffffffff1681565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020015b60405180910390f35b6101706101503660046103af565b600160209081526000928352604080842090915290825290205460ff1681565b6040519015158152602001610139565b6101a77fb73ce166ead2f8e9add217713a7989e4edfba9625f71dfd2516204bb67ad344281565b604051908152602001610139565b6100f66101c3366004610383565b73ffffffffffffffffffffffffffffffffffffffff1660009081526001602090815260408083209383529290522080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00169055565b6101186102273660046103d9565b600260209081526000928352604080842090915290825290205473ffffffffffffffffffffffffffffffffffffffff1681565b610170610268366004610383565b6102f9565b6100f661027b366004610403565b73ffffffffffffffffffffffffffffffffffffffff928316600081815260026020818152604080842096881684529581528583208054979095167fffffffffffffffffffffffff0000000000000000000000000000000000000000978816811790955590815284822092825291909152919091208054909216179055565b6000805473ffffffffffffffffffffffffffffffffffffffff83811691161480610353575073ffffffffffffffffffffffffffffffffffffffff8216600090815260016020908152604080832086845290915290205460ff165b9392505050565b803573ffffffffffffffffffffffffffffffffffffffff8116811461037e57600080fd5b919050565b6000806040838503121561039657600080fd5b823591506103a66020840161035a565b90509250929050565b600080604083850312156103c257600080fd5b6103cb8361035a565b946020939093013593505050565b600080604083850312156103ec57600080fd5b6103f58361035a565b91506103a66020840161035a565b60008060006060848603121561041857600080fd5b6104218461035a565b925061042f6020850161035a565b915061043d6040850161035a565b9050925092509256fea164736f6c6343000814000a";

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

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

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

  override getDeployTransaction(
    overrides?: NonPayableOverrides & { from?: string }
  ): Promise<ContractDeployTransaction> {
    return super.getDeployTransaction(overrides || {});
  }
  override deploy(overrides?: NonPayableOverrides & { from?: string }) {
    return super.deploy(overrides || {}) as Promise<
      MockFactory & {
        deploymentTransaction(): ContractTransactionResponse;
      }
    >;
  }
  override connect(runner: ContractRunner | null): MockFactory__factory {
    return super.connect(runner) as MockFactory__factory;
  }

  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): MockFactoryInterface {
    return new Interface(_abi) as MockFactoryInterface;
  }
  static connect(address: string, runner?: ContractRunner | null): MockFactory {
    return new Contract(address, _abi, runner) as unknown as MockFactory;
  }
}
