var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { utils, Contract, ContractFactory } from "ethers";
var _abi = [
    {
        inputs: [
            {
                internalType: "uint128",
                name: "a",
                type: "uint128",
            },
            {
                internalType: "uint128",
                name: "b",
                type: "uint128",
            },
        ],
        name: "add",
        outputs: [
            {
                internalType: "uint128",
                name: "r",
                type: "uint128",
            },
        ],
        stateMutability: "pure",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint128",
                name: "a",
                type: "uint128",
            },
            {
                internalType: "uint128",
                name: "b",
                type: "uint128",
            },
        ],
        name: "mul",
        outputs: [
            {
                internalType: "uint128",
                name: "r",
                type: "uint128",
            },
        ],
        stateMutability: "pure",
        type: "function",
    },
    {
        inputs: [
            {
                internalType: "uint128",
                name: "a",
                type: "uint128",
            },
            {
                internalType: "uint128",
                name: "b",
                type: "uint128",
            },
        ],
        name: "sub",
        outputs: [
            {
                internalType: "uint128",
                name: "r",
                type: "uint128",
            },
        ],
        stateMutability: "pure",
        type: "function",
    },
];
var _bytecode = "0x60806040523480156100115760006000fd5b50610017565b61036a806100266000396000f3fe60806040523480156100115760006000fd5b50600436106100465760003560e01c8063a6fd00851461004c578063e856528a1461007c578063feb99390146100ac57610046565b60006000fd5b610066600480360381019061006191906101f4565b6100dc565b604051610073919061022a565b60405180910390f35b610096600480360381019061009191906101f4565b61010e565b6040516100a3919061022a565b60405180910390f35b6100c660048036038101906100c191906101f4565b610140565b6040516100d3919061022a565b60405180910390f35b600061010382846fffffffffffffffffffffffffffffffff1661017290919063ffffffff16565b905080505b92915050565b600061013582846fffffffffffffffffffffffffffffffff1661018d90919063ffffffff16565b905080505b92915050565b600061016782846fffffffffffffffffffffffffffffffff166101a890919063ffffffff16565b905080505b92915050565b60008183610180919061027f565b9050610187565b92915050565b6000818361019b91906102b9565b90506101a2565b92915050565b600081836101b691906102f8565b90506101bd565b9291505056610333565b6000813590506fffffffffffffffffffffffffffffffff8116811415156101ee5760006000fd5b5b919050565b60006000604083850312156102095760006000fd5b610212836101c7565b9150610220602084016101c7565b90505b9250929050565b60006020820190506fffffffffffffffffffffffffffffffff831682525b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b565b60006fffffffffffffffffffffffffffffffff8083168185169150818110156102ab576102aa61024e565b5b818103925050505b92915050565b60006fffffffffffffffffffffffffffffffff808316818516818304811182151516156102e9576102e861024e565b5b80820293505050505b92915050565b60006fffffffffffffffffffffffffffffffff8083168185168083038211156103245761032361024e565b5b80820193505050505b92915050565bfea264697066735822122097ed4b9b241ef3d3adf2d4dc4683131eb6cd116b6cf8290724f034562485b7aa64736f6c634300080b0033";
var isSuperArgs = function (xs) { return xs.length > 1; };
var SafeMath128Testable__factory = /** @class */ (function (_super) {
    __extends(SafeMath128Testable__factory, _super);
    function SafeMath128Testable__factory() {
        var args = [];
        for (var _i = 0; _i < arguments.length; _i++) {
            args[_i] = arguments[_i];
        }
        var _this = this;
        if (isSuperArgs(args)) {
            _this = _super.apply(this, args) || this;
        }
        else {
            _this = _super.call(this, _abi, _bytecode, args[0]) || this;
        }
        return _this;
    }
    SafeMath128Testable__factory.prototype.deploy = function (overrides) {
        return _super.prototype.deploy.call(this, overrides || {});
    };
    SafeMath128Testable__factory.prototype.getDeployTransaction = function (overrides) {
        return _super.prototype.getDeployTransaction.call(this, overrides || {});
    };
    SafeMath128Testable__factory.prototype.attach = function (address) {
        return _super.prototype.attach.call(this, address);
    };
    SafeMath128Testable__factory.prototype.connect = function (signer) {
        return _super.prototype.connect.call(this, signer);
    };
    SafeMath128Testable__factory.createInterface = function () {
        return new utils.Interface(_abi);
    };
    SafeMath128Testable__factory.connect = function (address, signerOrProvider) {
        return new Contract(address, _abi, signerOrProvider);
    };
    SafeMath128Testable__factory.bytecode = _bytecode;
    SafeMath128Testable__factory.abi = _abi;
    return SafeMath128Testable__factory;
}(ContractFactory));
export { SafeMath128Testable__factory };
