"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getMultipleStatus = void 0;
const network_1 = __importDefault(require("@ledgerhq/live-network/network"));
const mock_1 = require("./mock");
const isIntegrationTestEnv_1 = require("./utils/isIntegrationTestEnv");
const _1 = require(".");
const getMultipleStatus = async (statusList) => {
    if ((0, isIntegrationTestEnv_1.isIntegrationTestEnv)())
        return (0, mock_1.mockGetStatus)(statusList);
    const headers = (0, _1.getSwapUserIP)();
    const res = await (0, network_1.default)({
        method: "POST",
        url: `${(0, _1.getSwapAPIBaseURL)()}/swap/status`,
        data: statusList,
        ...(headers !== undefined ? { headers } : {}),
    });
    return res.data;
};
exports.getMultipleStatus = getMultipleStatus;
//# sourceMappingURL=getStatus.js.map