"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 = [
    {
        inputs: [],
        name: "CoreUserExistsPrecompileCallFailed",
        type: "error",
    },
    {
        inputs: [],
        name: "InvalidTif",
        type: "error",
    },
    {
        inputs: [],
        name: "LimitPxIsZero",
        type: "error",
    },
    {
        inputs: [],
        name: "OrderSizeIsZero",
        type: "error",
    },
    {
        inputs: [],
        name: "SpotBalancePrecompileCallFailed",
        type: "error",
    },
    {
        inputs: [],
        name: "SpotPxPrecompileCallFailed",
        type: "error",
    },
    {
        inputs: [],
        name: "TokenInfoPrecompileCallFailed",
        type: "error",
    },
    {
        inputs: [],
        name: "BASE_ASSET_BRIDGE_ADDRESS",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "BASE_ASSET_BRIDGE_ADDRESS_UINT256",
        outputs: [
            {
                internalType: "uint256",
                name: "",
                type: "uint256",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "CANCEL_BY_CLOID_HEADER",
        outputs: [
            {
                internalType: "bytes4",
                name: "",
                type: "bytes4",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "CORE_USER_EXISTS_PRECOMPILE_ADDRESS",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "CORE_WRITER_PRECOMPILE_ADDRESS",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "LIMIT_ORDER_HEADER",
        outputs: [
            {
                internalType: "bytes4",
                name: "",
                type: "bytes4",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "SPOT_BALANCE_PRECOMPILE_ADDRESS",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "SPOT_PX_PRECOMPILE_ADDRESS",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "SPOT_SEND_HEADER",
        outputs: [
            {
                internalType: "bytes4",
                name: "",
                type: "bytes4",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "TOKEN_INFO_PRECOMPILE_ADDRESS",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "USDC_CORE_DEPOSIT_WALLET_ADDRESS",
        outputs: [
            {
                internalType: "address",
                name: "",
                type: "address",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
    {
        inputs: [],
        name: "USDC_CORE_INDEX",
        outputs: [
            {
                internalType: "uint64",
                name: "",
                type: "uint64",
            },
        ],
        stateMutability: "view",
        type: "function",
    },
];
const _bytecode = "0x608080604052346019576103f4908161001e823930815050f35b5f80fdfe6080806040526004361015610012575f80fd5b5f3560e01c90816303e41b77146103795750806308675a5d1461034457806319dd39d31461030f5780631f8164d9146102bc5780632a1c9abf146102695780634b3cf0af14610222578063a5bb0fa7146101cf578063ab46016514610188578063d4dc6a2c14610153578063d58daedf1461010c578063eff7f2fd146100d95763f5f793a0146100a0575f80fd5b5f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d55760206040516108108152f35b5f80fd5b5f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d55760206040515f8152f35b5f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d55760206040517320000000000000000000000000000000000000008152f35b5f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d55760206040516108018152f35b5f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d55760206040517333333333333333333333333333333333333333338152f35b5f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d55760206040517f0100000b000000000000000000000000000000000000000000000000000000008152f35b5f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d5576020604051736b9e773128f453f5c2c60935ee2de2cbc5390a248152f35b5f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d55760206040517f01000001000000000000000000000000000000000000000000000000000000008152f35b5f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d55760206040517f01000006000000000000000000000000000000000000000000000000000000008152f35b5f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d557602060405161080c8152f35b5f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d55760206040516108088152f35b5f7ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc3601126100d5578073200000000000000000000000000000000000000060209252f3fea26469706673582212201c930c12df6836694415aa6e91a0c7f91e9bd9d6e27cbc36b3bcbd0d34fa9d7f64736f6c634300081e0033";
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;
