/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
import { Provider, TransactionRequest } from "@ethersproject/providers";
import type { TcpSafeMath, TcpSafeMathInterface } from "../TcpSafeMath";

const _abi = [
  {
    inputs: [],
    name: "ONE",
    outputs: [
      {
        internalType: "uint256",
        name: "",
        type: "uint256",
      },
    ],
    stateMutability: "view",
    type: "function",
  },
];

const _bytecode =
  "0x60ae610055600b82828239805160001a6073141515610047577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f350fe730000000000000000000000000000000000000000301460806040526004361060365760003560e01c8063c2ee3a0814603c576036565b60006000fd5b60426056565b604051604d91906065565b60405180910390f35b670de0b6b3a764000081566077565b60006020820190508282525b92915050565bfea2646970667358221220cded30dd70482997f33a77274e3c968649cbbde36a053831c96ed34b2d345b8a64736f6c634300080b0033";

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

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

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

  deploy(
    overrides?: Overrides & { from?: string | Promise<string> }
  ): Promise<TcpSafeMath> {
    return super.deploy(overrides || {}) as Promise<TcpSafeMath>;
  }
  getDeployTransaction(
    overrides?: Overrides & { from?: string | Promise<string> }
  ): TransactionRequest {
    return super.getDeployTransaction(overrides || {});
  }
  attach(address: string): TcpSafeMath {
    return super.attach(address) as TcpSafeMath;
  }
  connect(signer: Signer): TcpSafeMath__factory {
    return super.connect(signer) as TcpSafeMath__factory;
  }
  static readonly bytecode = _bytecode;
  static readonly abi = _abi;
  static createInterface(): TcpSafeMathInterface {
    return new utils.Interface(_abi) as TcpSafeMathInterface;
  }
  static connect(
    address: string,
    signerOrProvider: Signer | Provider
  ): TcpSafeMath {
    return new Contract(address, _abi, signerOrProvider) as TcpSafeMath;
  }
}
