"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.HyperCoreLib__factory = void 0;
/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
const ethers_1 = require("ethers");
const _abi = [
    {
        type: "function",
        name: "BASE_ASSET_BRIDGE_ADDRESS",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "BASE_ASSET_BRIDGE_ADDRESS_UINT256",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint256",
                internalType: "uint256",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "CANCEL_BY_CLOID_HEADER",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bytes4",
                internalType: "bytes4",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "CORE_USER_EXISTS_PRECOMPILE_ADDRESS",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "CORE_WRITER_PRECOMPILE_ADDRESS",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "LIMIT_ORDER_HEADER",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bytes4",
                internalType: "bytes4",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "SPOT_BALANCE_PRECOMPILE_ADDRESS",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "SPOT_PX_PRECOMPILE_ADDRESS",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "SPOT_SEND_HEADER",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "bytes4",
                internalType: "bytes4",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "TOKEN_INFO_PRECOMPILE_ADDRESS",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "USDC_CORE_DEPOSIT_WALLET_ADDRESS",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "USDC_CORE_INDEX",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "uint64",
                internalType: "uint64",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "error",
        name: "CoreUserExistsPrecompileCallFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidTif",
        inputs: [],
    },
    {
        type: "error",
        name: "LimitPxIsZero",
        inputs: [],
    },
    {
        type: "error",
        name: "OrderSizeIsZero",
        inputs: [],
    },
    {
        type: "error",
        name: "SpotBalancePrecompileCallFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "SpotPxPrecompileCallFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "TokenInfoPrecompileCallFailed",
        inputs: [],
    },
];
const _bytecode = "0x60808060405234601957610223908161001e823930815050f35b5f80fdfe6080806040526004361015610012575f80fd5b5f3560e01c90816303e41b77146101d65750806308675a5d146101bf57806319dd39d3146101a85780631f8164d91461018c5780632a1c9abf1461016f5780634b3cf0af14610146578063a5bb0fa714610129578063ab46016514610100578063d4dc6a2c146100e9578063d58daedf146100d0578063eff7f2fd146100bb5763f5f793a0146100a0575f80fd5b5f3660031901126100b75760206040516108108152f35b5f80fd5b5f3660031901126100b75760206040515f8152f35b5f3660031901126100b75760206040516001609d1b8152f35b5f3660031901126100b75760206040516108018152f35b5f3660031901126100b75760206040517333333333333333333333333333333333333333338152f35b5f3660031901126100b757604051630100000b60e01b8152602090f35b5f3660031901126100b7576020604051736b9e773128f453f5c2c60935ee2de2cbc5390a248152f35b5f3660031901126100b757604051630100000160e01b8152602090f35b5f3660031901126100b7576040516280000360e11b8152602090f35b5f3660031901126100b757602060405161080c8152f35b5f3660031901126100b75760206040516108088152f35b5f3660031901126100b757806001609d1b60209252f3fea26469706673582212205d6d9c345f132177945d9108df209204c706720ab819d5b3ac3e99e1c9eac3d364736f6c634300081e0033";
const isSuperArgs = (xs) => xs.length > 1;
class HyperCoreLib__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.HyperCoreLib__factory = HyperCoreLib__factory;
HyperCoreLib__factory.bytecode = _bytecode;
HyperCoreLib__factory.abi = _abi;
