"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PrecompileLib__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "error",
        name: "PrecompileLib__AccountMarginSummaryPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__BboPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__CoreUserExistsPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__DelegationsPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__DelegatorSummaryPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__L1BlockNumberPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__MarkPxPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__OraclePxPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__PerpAssetInfoPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__PositionPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__SpotBalancePrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__SpotIndexNotFound",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__SpotInfoPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__SpotPxPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__TokenInfoPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__TokenSupplyPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__VaultEquityPrecompileFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "PrecompileLib__WithdrawablePrecompileFailed",
        inputs: [],
    },
];
const _bytecode = "0x6080806040523460175760399081601c823930815050f35b5f80fdfe5f80fdfea26469706673582212204f9e9350cb8ff9fece3682b2efd1d67744a92dbe5052611dffa6127dca5aabf864736f6c634300081e0033";
const isSuperArgs = (xs) => xs.length > 1;
class PrecompileLib__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.PrecompileLib__factory = PrecompileLib__factory;
PrecompileLib__factory.bytecode = _bytecode;
PrecompileLib__factory.abi = _abi;
