"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SafeCast__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "error",
        name: "SafeCastOverflowedIntDowncast",
        inputs: [
            {
                name: "bits",
                type: "uint8",
                internalType: "uint8",
            },
            {
                name: "value",
                type: "int256",
                internalType: "int256",
            },
        ],
    },
    {
        type: "error",
        name: "SafeCastOverflowedIntToUint",
        inputs: [
            {
                name: "value",
                type: "int256",
                internalType: "int256",
            },
        ],
    },
    {
        type: "error",
        name: "SafeCastOverflowedUintDowncast",
        inputs: [
            {
                name: "bits",
                type: "uint8",
                internalType: "uint8",
            },
            {
                name: "value",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "SafeCastOverflowedUintToInt",
        inputs: [
            {
                name: "value",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
];
const _bytecode = "0x6080806040523460175760399081601c823930815050f35b5f80fdfe5f80fdfea2646970667358221220db73f39a930612a6ad88e97891be35459f1cda61fef5126047ec9c52a62b7cc164736f6c634300081e0033";
const isSuperArgs = (xs) => xs.length > 1;
class SafeCast__factory extends ethers_1.ContractFactory {
    constructor(...args) {
        if (isSuperArgs(args)) {
            super(...args);
        }
        else {
            super(_abi, _bytecode, args[0]);
        }
    }
    deploy(overrides) {
        return super.deploy(overrides || {});
    }
    getDeployTransaction(overrides) {
        return super.getDeployTransaction(overrides || {});
    }
    attach(address) {
        return super.attach(address);
    }
    connect(signer) {
        return super.connect(signer);
    }
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.SafeCast__factory = SafeCast__factory;
SafeCast__factory.bytecode = _bytecode;
SafeCast__factory.abi = _abi;
