"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getDefaultHlTransport = getDefaultHlTransport;
exports.getHlInfoClient = getHlInfoClient;
exports.isHlAccountActive = isHlAccountActive;
const tslib_1 = require("tslib");
const hl = tslib_1.__importStar(require("@nktkas/hyperliquid"));
function getDefaultHlTransport(extraOptions = []) {
    return new hl.HttpTransport(...extraOptions);
}
function getHlInfoClient(transport = getDefaultHlTransport()) {
    return new hl.InfoClient({ transport });
}
async function isHlAccountActive(account) {
    const client = getHlInfoClient();
    const userRole = await client.userRole({ user: account });
    return userRole.role !== "missing";
}
//# sourceMappingURL=HyperLiquidUtils.js.map