"use strict";
/**
 * PerpsController - Protocol-agnostic perpetuals trading controller
 *
 * This module provides a unified interface for perpetual futures trading
 * across multiple protocols with high-performance real-time data handling.
 *
 * Key Features:
 * - Protocol abstraction (HyperLiquid first, extensible to GMX, dYdX, etc.)
 * - Dual data flow: Redux for persistence, direct callbacks for live data
 * - MetaMask native integration with BaseController pattern
 * - Mobile-optimized with throttling and performance considerations
 *
 * Usage:
 * ```typescript
 * import { usePerpsController } from './controllers';
 *
 * const { placeOrder, getPositions } = usePerpsController();
 * // Live prices hooks removed with Live Market Prices component
 *
 * // Place a market order
 * await placeOrder({
 *   coin: 'ETH',
 *   is_buy: true,
 *   sz: '0.1',
 *   order_type: 'market'
 * });
 * ```
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.HYPERLIQUID_ENDPOINTS = exports.USDC_TOKEN_ICON_URL = exports.USDC_ARBITRUM_TESTNET_ADDRESS = exports.USDC_ARBITRUM_MAINNET_ADDRESS = exports.USDC_ETHEREUM_MAINNET_ADDRESS = exports.ARBITRUM_SEPOLIA_CHAIN_ID = exports.ZERO_BALANCE = exports.ZERO_ADDRESS = exports.TOKEN_DECIMALS = exports.USDC_DECIMALS = exports.USDC_NAME = exports.USDC_SYMBOL = exports.HYPERLIQUID_NETWORK_NAME = exports.HYPERLIQUID_TESTNET_CAIP_CHAIN_ID = exports.HYPERLIQUID_MAINNET_CAIP_CHAIN_ID = exports.HYPERLIQUID_TESTNET_CHAIN_ID = exports.HYPERLIQUID_MAINNET_CHAIN_ID = exports.ARBITRUM_TESTNET_CAIP_CHAIN_ID = exports.ARBITRUM_MAINNET_CAIP_CHAIN_ID = exports.ARBITRUM_TESTNET_CHAIN_ID = exports.ARBITRUM_MAINNET_CHAIN_ID = exports.ARBITRUM_MAINNET_CHAIN_ID_HEX = exports.PERPS_TRANSACTIONS_HISTORY_CONSTANTS = exports.isTPSLOrder = exports.DETAILED_ORDER_TYPES = exports.PERPS_EVENT_VALUE = exports.PERPS_EVENT_PROPERTY = exports.calculateCandleCount = exports.getDefaultCandlePeriodForDuration = exports.getCandlePeriodsForDuration = exports.DEFAULT_CANDLE_PERIOD = exports.CANDLE_PERIODS = exports.DURATION_CANDLE_PERIODS = exports.MAX_CANDLE_COUNT = exports.ChartInterval = exports.TimeDuration = exports.CandlePeriod = exports.isLastTransactionResult = exports.isTransactionRecord = exports.isVersionGatedFeatureFlag = exports.PerpsTraceOperations = exports.PerpsTraceNames = exports.MarketCategory = exports.MARKET_CATEGORIES = exports.PerpsAnalyticsEvent = exports.WebSocketConnectionState = exports.HyperLiquidProvider = exports.InitializationState = exports.getDefaultPerpsControllerState = exports.PerpsController = void 0;
exports.MYX_PRICE_POLLING_INTERVAL_MS = exports.fromMYXCollateral = exports.toMYXSize = exports.fromMYXSize = exports.toMYXPrice = exports.fromMYXPrice = exports.MYX_ASSET_CONFIGS = exports.USDT_BNB_MAINNET = exports.USDT_BNB_TESTNET = exports.MYX_COLLATERAL_DECIMALS = exports.MYX_SIZE_DECIMALS = exports.MYX_PRICE_DECIMALS = exports.getMYXHttpEndpoint = exports.MYX_ENDPOINTS = exports.getMYXChainId = exports.MYX_TESTNET_CAIP_CHAIN_ID = exports.MYX_MAINNET_CAIP_CHAIN_ID = exports.MYX_TESTNET_CHAIN_ID = exports.MYX_MAINNET_CHAIN_ID = exports.PerpsMeasurementName = exports.PROGRESS_BAR_COMPLETION_DELAY_MS = exports.WITHDRAWAL_PROGRESS_STAGES = exports.INITIAL_AMOUNT_UI_PROGRESS = exports.USDH_CONFIG = exports.HIP3_MARGIN_CONFIG = exports.MAINNET_HIP3_CONFIG = exports.TESTNET_HIP3_CONFIG = exports.HIP3_ASSET_MARKET_TYPES = exports.SPOT_ASSET_ID_OFFSET = exports.BASIS_POINTS_DIVISOR = exports.HIP3_ASSET_ID_CONFIG = exports.HYPERLIQUID_CONFIG = exports.CAIP_ASSET_NAMESPACES = exports.getSupportedAssets = exports.getBridgeInfo = exports.getCaipChainId = exports.getChainId = exports.getWebSocketEndpoint = exports.HYPERLIQUID_WITHDRAWAL_MINUTES = exports.DEPOSIT_CONFIG = exports.REFERRAL_CONFIG = exports.BUILDER_FEE_CONFIG = exports.HIP3_FEE_CONFIG = exports.FEE_RATES = exports.TRADING_DEFAULTS = exports.HYPERLIQUID_TRANSPORT_CONFIG = exports.HYPERLIQUID_BRIDGE_CONTRACTS = exports.HYPERLIQUID_ASSET_CONFIGS = exports.METAMASK_PERPS_ICONS_BASE_URL = exports.HYPERLIQUID_ASSET_ICONS_BASE_URL = void 0;
exports.transformMarketData = exports.isMarketTradable = exports.calculateOpenInterestUSD = exports.generateTransactionId = exports.generateOrderId = exports.generateWithdrawalId = exports.generateDepositId = exports.generatePerpsId = exports.validateCoinExists = exports.validateOrderParams = exports.getMaxOrderValue = exports.getSupportedPaths = exports.applyPathFilters = exports.validateBalance = exports.validateAssetSupport = exports.validateDepositParams = exports.validateWithdrawalParams = exports.createErrorResult = exports.processBboData = exports.processL2BookData = exports.isAbortError = exports.ensureError = exports.aggregateAccountStates = exports.calculateWeightedReturnOnEquity = exports.getSelectedEvmAccount = exports.getEvmAccountFromAccountGroup = exports.findEvmAccount = exports.FUNDING_RATE_CONFIG = exports.PROVIDER_CONFIG = exports.MARKET_SORTING_CONFIG = exports.DECIMAL_PRECISION_CONFIG = exports.DATA_LAKE_API_CONFIG = exports.MARGIN_ADJUSTMENT_CONFIG = exports.CLOSE_POSITION_CONFIG = exports.HYPERLIQUID_ORDER_LIMITS = exports.TP_SL_CONFIG = exports.PERFORMANCE_CONFIG = exports.MAX_SLIPPAGE_BOUNDS = exports.ORDER_SLIPPAGE_CONFIG = exports.VALIDATION_THRESHOLDS = exports.WITHDRAWAL_CONSTANTS = exports.PERPS_CONSTANTS = exports.MYX_EXECUTION_FEE_TOKEN = exports.MYX_MINIMUM_ORDER_SIZE_USD = exports.MYX_DEFAULT_SLIPPAGE_BPS = exports.MYX_PROTOCOL_FEE_RATE = exports.MYX_FEE_RATE = exports.MYX_MAX_LEVERAGE = exports.MYX_MAX_RETRIES = exports.MYX_HTTP_TIMEOUT_MS = void 0;
exports.formatHyperLiquidSize = exports.formatHyperLiquidPrice = exports.buildAssetMapping = exports.adaptAccountStateFromSDK = exports.adaptMarketFromSDK = exports.adaptOrderFromSDK = exports.adaptPositionFromSDK = exports.adaptOrderToSDK = exports.wait = exports.generateERC20TransferData = exports.parseCommaSeparatedString = exports.stripQuotes = exports.queryStandaloneOpenOrders = exports.queryStandaloneClearinghouseStates = exports.createStandaloneInfoClient = exports.sortMarkets = exports.parseVolume = exports.roundToSignificantFigures = exports.hasExceededSignificantFigures = exports.countSignificantFigures = exports.handleRewardsError = exports.isCaipAccountId = exports.formatAccountToCaipAccountId = exports.buildOrdersArray = exports.calculateOrderPriceAndSize = exports.calculateFinalPositionSize = exports.getMaxAllowedAmount = exports.calculateMarginRequired = exports.calculatePositionSize = exports.MarketMatchRank = exports.getMarketMatchRank = exports.rankMarketsByQuery = exports.isHip3Market = exports.applyMarketFilters = exports.getMarketTypeFilter = exports.matchesCategory = exports.filterMarketsByQuery = exports.calculate24hHighLow = exports.calculateFundingCountdown = exports.getPerpsDexFromSymbol = exports.getPerpsDisplaySymbol = exports.shouldIncludeMarket = exports.matchesMarketPattern = exports.compileMarketPattern = exports.validateMarketPattern = exports.escapeRegex = exports.MAX_MARKET_PATTERN_LENGTH = exports.withPerpsConnectionAttemptContext = exports.getPerpsConnectionAttemptContext = exports.formatChange = void 0;
exports.TradingReadinessCache = exports.selectOrderBookGrouping = exports.selectMarketFilterPreferences = exports.selectPendingTradeConfiguration = exports.selectTradeConfiguration = exports.selectIsWatchlistMarket = exports.selectWatchlistMarkets = exports.selectHasPlacedFirstOrder = exports.selectIsFirstTimeUser = exports.PERPS_ERROR_CODES = exports.formatFundingRate = exports.formatPercentage = exports.formatPnl = exports.formatPositionSize = exports.formatPerpsFiat = exports.PRICE_RANGES_UNIVERSAL = exports.PRICE_RANGES_MINIMAL_VIEW = exports.formatWithSignificantDigits = exports.PRICE_THRESHOLD = exports.getEnvironment = exports.adaptHyperLiquidLedgerUpdateToUserHistoryItem = exports.parseAssetName = exports.calculateHip3AssetId = void 0;
// Core controller and types
var PerpsController_1 = require("./PerpsController.cjs");
Object.defineProperty(exports, "PerpsController", { enumerable: true, get: function () { return PerpsController_1.PerpsController; } });
Object.defineProperty(exports, "getDefaultPerpsControllerState", { enumerable: true, get: function () { return PerpsController_1.getDefaultPerpsControllerState; } });
Object.defineProperty(exports, "InitializationState", { enumerable: true, get: function () { return PerpsController_1.InitializationState; } });
// Provider interfaces and implementations
var HyperLiquidProvider_1 = require("./providers/HyperLiquidProvider.cjs");
Object.defineProperty(exports, "HyperLiquidProvider", { enumerable: true, get: function () { return HyperLiquidProvider_1.HyperLiquidProvider; } });
// Type definitions (explicit named exports)
var types_1 = require("./types/index.cjs");
Object.defineProperty(exports, "WebSocketConnectionState", { enumerable: true, get: function () { return types_1.WebSocketConnectionState; } });
Object.defineProperty(exports, "PerpsAnalyticsEvent", { enumerable: true, get: function () { return types_1.PerpsAnalyticsEvent; } });
Object.defineProperty(exports, "MARKET_CATEGORIES", { enumerable: true, get: function () { return types_1.MARKET_CATEGORIES; } });
Object.defineProperty(exports, "MarketCategory", { enumerable: true, get: function () { return types_1.MarketCategory; } });
var types_2 = require("./types/index.cjs");
Object.defineProperty(exports, "PerpsTraceNames", { enumerable: true, get: function () { return types_2.PerpsTraceNames; } });
Object.defineProperty(exports, "PerpsTraceOperations", { enumerable: true, get: function () { return types_2.PerpsTraceOperations; } });
Object.defineProperty(exports, "isVersionGatedFeatureFlag", { enumerable: true, get: function () { return types_2.isVersionGatedFeatureFlag; } });
var types_3 = require("./types/index.cjs");
Object.defineProperty(exports, "isTransactionRecord", { enumerable: true, get: function () { return types_3.isTransactionRecord; } });
Object.defineProperty(exports, "isLastTransactionResult", { enumerable: true, get: function () { return types_3.isLastTransactionResult; } });
// Constants (explicit named exports)
var constants_1 = require("./constants/index.cjs");
Object.defineProperty(exports, "CandlePeriod", { enumerable: true, get: function () { return constants_1.CandlePeriod; } });
Object.defineProperty(exports, "TimeDuration", { enumerable: true, get: function () { return constants_1.TimeDuration; } });
Object.defineProperty(exports, "ChartInterval", { enumerable: true, get: function () { return constants_1.ChartInterval; } });
Object.defineProperty(exports, "MAX_CANDLE_COUNT", { enumerable: true, get: function () { return constants_1.MAX_CANDLE_COUNT; } });
Object.defineProperty(exports, "DURATION_CANDLE_PERIODS", { enumerable: true, get: function () { return constants_1.DURATION_CANDLE_PERIODS; } });
Object.defineProperty(exports, "CANDLE_PERIODS", { enumerable: true, get: function () { return constants_1.CANDLE_PERIODS; } });
Object.defineProperty(exports, "DEFAULT_CANDLE_PERIOD", { enumerable: true, get: function () { return constants_1.DEFAULT_CANDLE_PERIOD; } });
Object.defineProperty(exports, "getCandlePeriodsForDuration", { enumerable: true, get: function () { return constants_1.getCandlePeriodsForDuration; } });
Object.defineProperty(exports, "getDefaultCandlePeriodForDuration", { enumerable: true, get: function () { return constants_1.getDefaultCandlePeriodForDuration; } });
Object.defineProperty(exports, "calculateCandleCount", { enumerable: true, get: function () { return constants_1.calculateCandleCount; } });
var constants_2 = require("./constants/index.cjs");
Object.defineProperty(exports, "PERPS_EVENT_PROPERTY", { enumerable: true, get: function () { return constants_2.PERPS_EVENT_PROPERTY; } });
Object.defineProperty(exports, "PERPS_EVENT_VALUE", { enumerable: true, get: function () { return constants_2.PERPS_EVENT_VALUE; } });
var constants_3 = require("./constants/index.cjs");
Object.defineProperty(exports, "DETAILED_ORDER_TYPES", { enumerable: true, get: function () { return constants_3.DETAILED_ORDER_TYPES; } });
Object.defineProperty(exports, "isTPSLOrder", { enumerable: true, get: function () { return constants_3.isTPSLOrder; } });
var constants_4 = require("./constants/index.cjs");
Object.defineProperty(exports, "PERPS_TRANSACTIONS_HISTORY_CONSTANTS", { enumerable: true, get: function () { return constants_4.PERPS_TRANSACTIONS_HISTORY_CONSTANTS; } });
var constants_5 = require("./constants/index.cjs");
Object.defineProperty(exports, "ARBITRUM_MAINNET_CHAIN_ID_HEX", { enumerable: true, get: function () { return constants_5.ARBITRUM_MAINNET_CHAIN_ID_HEX; } });
Object.defineProperty(exports, "ARBITRUM_MAINNET_CHAIN_ID", { enumerable: true, get: function () { return constants_5.ARBITRUM_MAINNET_CHAIN_ID; } });
Object.defineProperty(exports, "ARBITRUM_TESTNET_CHAIN_ID", { enumerable: true, get: function () { return constants_5.ARBITRUM_TESTNET_CHAIN_ID; } });
Object.defineProperty(exports, "ARBITRUM_MAINNET_CAIP_CHAIN_ID", { enumerable: true, get: function () { return constants_5.ARBITRUM_MAINNET_CAIP_CHAIN_ID; } });
Object.defineProperty(exports, "ARBITRUM_TESTNET_CAIP_CHAIN_ID", { enumerable: true, get: function () { return constants_5.ARBITRUM_TESTNET_CAIP_CHAIN_ID; } });
Object.defineProperty(exports, "HYPERLIQUID_MAINNET_CHAIN_ID", { enumerable: true, get: function () { return constants_5.HYPERLIQUID_MAINNET_CHAIN_ID; } });
Object.defineProperty(exports, "HYPERLIQUID_TESTNET_CHAIN_ID", { enumerable: true, get: function () { return constants_5.HYPERLIQUID_TESTNET_CHAIN_ID; } });
Object.defineProperty(exports, "HYPERLIQUID_MAINNET_CAIP_CHAIN_ID", { enumerable: true, get: function () { return constants_5.HYPERLIQUID_MAINNET_CAIP_CHAIN_ID; } });
Object.defineProperty(exports, "HYPERLIQUID_TESTNET_CAIP_CHAIN_ID", { enumerable: true, get: function () { return constants_5.HYPERLIQUID_TESTNET_CAIP_CHAIN_ID; } });
Object.defineProperty(exports, "HYPERLIQUID_NETWORK_NAME", { enumerable: true, get: function () { return constants_5.HYPERLIQUID_NETWORK_NAME; } });
Object.defineProperty(exports, "USDC_SYMBOL", { enumerable: true, get: function () { return constants_5.USDC_SYMBOL; } });
Object.defineProperty(exports, "USDC_NAME", { enumerable: true, get: function () { return constants_5.USDC_NAME; } });
Object.defineProperty(exports, "USDC_DECIMALS", { enumerable: true, get: function () { return constants_5.USDC_DECIMALS; } });
Object.defineProperty(exports, "TOKEN_DECIMALS", { enumerable: true, get: function () { return constants_5.TOKEN_DECIMALS; } });
Object.defineProperty(exports, "ZERO_ADDRESS", { enumerable: true, get: function () { return constants_5.ZERO_ADDRESS; } });
Object.defineProperty(exports, "ZERO_BALANCE", { enumerable: true, get: function () { return constants_5.ZERO_BALANCE; } });
Object.defineProperty(exports, "ARBITRUM_SEPOLIA_CHAIN_ID", { enumerable: true, get: function () { return constants_5.ARBITRUM_SEPOLIA_CHAIN_ID; } });
Object.defineProperty(exports, "USDC_ETHEREUM_MAINNET_ADDRESS", { enumerable: true, get: function () { return constants_5.USDC_ETHEREUM_MAINNET_ADDRESS; } });
Object.defineProperty(exports, "USDC_ARBITRUM_MAINNET_ADDRESS", { enumerable: true, get: function () { return constants_5.USDC_ARBITRUM_MAINNET_ADDRESS; } });
Object.defineProperty(exports, "USDC_ARBITRUM_TESTNET_ADDRESS", { enumerable: true, get: function () { return constants_5.USDC_ARBITRUM_TESTNET_ADDRESS; } });
Object.defineProperty(exports, "USDC_TOKEN_ICON_URL", { enumerable: true, get: function () { return constants_5.USDC_TOKEN_ICON_URL; } });
Object.defineProperty(exports, "HYPERLIQUID_ENDPOINTS", { enumerable: true, get: function () { return constants_5.HYPERLIQUID_ENDPOINTS; } });
Object.defineProperty(exports, "HYPERLIQUID_ASSET_ICONS_BASE_URL", { enumerable: true, get: function () { return constants_5.HYPERLIQUID_ASSET_ICONS_BASE_URL; } });
Object.defineProperty(exports, "METAMASK_PERPS_ICONS_BASE_URL", { enumerable: true, get: function () { return constants_5.METAMASK_PERPS_ICONS_BASE_URL; } });
Object.defineProperty(exports, "HYPERLIQUID_ASSET_CONFIGS", { enumerable: true, get: function () { return constants_5.HYPERLIQUID_ASSET_CONFIGS; } });
Object.defineProperty(exports, "HYPERLIQUID_BRIDGE_CONTRACTS", { enumerable: true, get: function () { return constants_5.HYPERLIQUID_BRIDGE_CONTRACTS; } });
Object.defineProperty(exports, "HYPERLIQUID_TRANSPORT_CONFIG", { enumerable: true, get: function () { return constants_5.HYPERLIQUID_TRANSPORT_CONFIG; } });
Object.defineProperty(exports, "TRADING_DEFAULTS", { enumerable: true, get: function () { return constants_5.TRADING_DEFAULTS; } });
Object.defineProperty(exports, "FEE_RATES", { enumerable: true, get: function () { return constants_5.FEE_RATES; } });
Object.defineProperty(exports, "HIP3_FEE_CONFIG", { enumerable: true, get: function () { return constants_5.HIP3_FEE_CONFIG; } });
Object.defineProperty(exports, "BUILDER_FEE_CONFIG", { enumerable: true, get: function () { return constants_5.BUILDER_FEE_CONFIG; } });
Object.defineProperty(exports, "REFERRAL_CONFIG", { enumerable: true, get: function () { return constants_5.REFERRAL_CONFIG; } });
Object.defineProperty(exports, "DEPOSIT_CONFIG", { enumerable: true, get: function () { return constants_5.DEPOSIT_CONFIG; } });
Object.defineProperty(exports, "HYPERLIQUID_WITHDRAWAL_MINUTES", { enumerable: true, get: function () { return constants_5.HYPERLIQUID_WITHDRAWAL_MINUTES; } });
Object.defineProperty(exports, "getWebSocketEndpoint", { enumerable: true, get: function () { return constants_5.getWebSocketEndpoint; } });
Object.defineProperty(exports, "getChainId", { enumerable: true, get: function () { return constants_5.getChainId; } });
Object.defineProperty(exports, "getCaipChainId", { enumerable: true, get: function () { return constants_5.getCaipChainId; } });
Object.defineProperty(exports, "getBridgeInfo", { enumerable: true, get: function () { return constants_5.getBridgeInfo; } });
Object.defineProperty(exports, "getSupportedAssets", { enumerable: true, get: function () { return constants_5.getSupportedAssets; } });
Object.defineProperty(exports, "CAIP_ASSET_NAMESPACES", { enumerable: true, get: function () { return constants_5.CAIP_ASSET_NAMESPACES; } });
Object.defineProperty(exports, "HYPERLIQUID_CONFIG", { enumerable: true, get: function () { return constants_5.HYPERLIQUID_CONFIG; } });
Object.defineProperty(exports, "HIP3_ASSET_ID_CONFIG", { enumerable: true, get: function () { return constants_5.HIP3_ASSET_ID_CONFIG; } });
Object.defineProperty(exports, "BASIS_POINTS_DIVISOR", { enumerable: true, get: function () { return constants_5.BASIS_POINTS_DIVISOR; } });
Object.defineProperty(exports, "SPOT_ASSET_ID_OFFSET", { enumerable: true, get: function () { return constants_5.SPOT_ASSET_ID_OFFSET; } });
Object.defineProperty(exports, "HIP3_ASSET_MARKET_TYPES", { enumerable: true, get: function () { return constants_5.HIP3_ASSET_MARKET_TYPES; } });
Object.defineProperty(exports, "TESTNET_HIP3_CONFIG", { enumerable: true, get: function () { return constants_5.TESTNET_HIP3_CONFIG; } });
Object.defineProperty(exports, "MAINNET_HIP3_CONFIG", { enumerable: true, get: function () { return constants_5.MAINNET_HIP3_CONFIG; } });
Object.defineProperty(exports, "HIP3_MARGIN_CONFIG", { enumerable: true, get: function () { return constants_5.HIP3_MARGIN_CONFIG; } });
Object.defineProperty(exports, "USDH_CONFIG", { enumerable: true, get: function () { return constants_5.USDH_CONFIG; } });
Object.defineProperty(exports, "INITIAL_AMOUNT_UI_PROGRESS", { enumerable: true, get: function () { return constants_5.INITIAL_AMOUNT_UI_PROGRESS; } });
Object.defineProperty(exports, "WITHDRAWAL_PROGRESS_STAGES", { enumerable: true, get: function () { return constants_5.WITHDRAWAL_PROGRESS_STAGES; } });
Object.defineProperty(exports, "PROGRESS_BAR_COMPLETION_DELAY_MS", { enumerable: true, get: function () { return constants_5.PROGRESS_BAR_COMPLETION_DELAY_MS; } });
var constants_6 = require("./constants/index.cjs");
Object.defineProperty(exports, "PerpsMeasurementName", { enumerable: true, get: function () { return constants_6.PerpsMeasurementName; } });
var constants_7 = require("./constants/index.cjs");
Object.defineProperty(exports, "MYX_MAINNET_CHAIN_ID", { enumerable: true, get: function () { return constants_7.MYX_MAINNET_CHAIN_ID; } });
Object.defineProperty(exports, "MYX_TESTNET_CHAIN_ID", { enumerable: true, get: function () { return constants_7.MYX_TESTNET_CHAIN_ID; } });
Object.defineProperty(exports, "MYX_MAINNET_CAIP_CHAIN_ID", { enumerable: true, get: function () { return constants_7.MYX_MAINNET_CAIP_CHAIN_ID; } });
Object.defineProperty(exports, "MYX_TESTNET_CAIP_CHAIN_ID", { enumerable: true, get: function () { return constants_7.MYX_TESTNET_CAIP_CHAIN_ID; } });
Object.defineProperty(exports, "getMYXChainId", { enumerable: true, get: function () { return constants_7.getMYXChainId; } });
Object.defineProperty(exports, "MYX_ENDPOINTS", { enumerable: true, get: function () { return constants_7.MYX_ENDPOINTS; } });
Object.defineProperty(exports, "getMYXHttpEndpoint", { enumerable: true, get: function () { return constants_7.getMYXHttpEndpoint; } });
Object.defineProperty(exports, "MYX_PRICE_DECIMALS", { enumerable: true, get: function () { return constants_7.MYX_PRICE_DECIMALS; } });
Object.defineProperty(exports, "MYX_SIZE_DECIMALS", { enumerable: true, get: function () { return constants_7.MYX_SIZE_DECIMALS; } });
Object.defineProperty(exports, "MYX_COLLATERAL_DECIMALS", { enumerable: true, get: function () { return constants_7.MYX_COLLATERAL_DECIMALS; } });
Object.defineProperty(exports, "USDT_BNB_TESTNET", { enumerable: true, get: function () { return constants_7.USDT_BNB_TESTNET; } });
Object.defineProperty(exports, "USDT_BNB_MAINNET", { enumerable: true, get: function () { return constants_7.USDT_BNB_MAINNET; } });
Object.defineProperty(exports, "MYX_ASSET_CONFIGS", { enumerable: true, get: function () { return constants_7.MYX_ASSET_CONFIGS; } });
Object.defineProperty(exports, "fromMYXPrice", { enumerable: true, get: function () { return constants_7.fromMYXPrice; } });
Object.defineProperty(exports, "toMYXPrice", { enumerable: true, get: function () { return constants_7.toMYXPrice; } });
Object.defineProperty(exports, "fromMYXSize", { enumerable: true, get: function () { return constants_7.fromMYXSize; } });
Object.defineProperty(exports, "toMYXSize", { enumerable: true, get: function () { return constants_7.toMYXSize; } });
Object.defineProperty(exports, "fromMYXCollateral", { enumerable: true, get: function () { return constants_7.fromMYXCollateral; } });
Object.defineProperty(exports, "MYX_PRICE_POLLING_INTERVAL_MS", { enumerable: true, get: function () { return constants_7.MYX_PRICE_POLLING_INTERVAL_MS; } });
Object.defineProperty(exports, "MYX_HTTP_TIMEOUT_MS", { enumerable: true, get: function () { return constants_7.MYX_HTTP_TIMEOUT_MS; } });
Object.defineProperty(exports, "MYX_MAX_RETRIES", { enumerable: true, get: function () { return constants_7.MYX_MAX_RETRIES; } });
Object.defineProperty(exports, "MYX_MAX_LEVERAGE", { enumerable: true, get: function () { return constants_7.MYX_MAX_LEVERAGE; } });
Object.defineProperty(exports, "MYX_FEE_RATE", { enumerable: true, get: function () { return constants_7.MYX_FEE_RATE; } });
Object.defineProperty(exports, "MYX_PROTOCOL_FEE_RATE", { enumerable: true, get: function () { return constants_7.MYX_PROTOCOL_FEE_RATE; } });
Object.defineProperty(exports, "MYX_DEFAULT_SLIPPAGE_BPS", { enumerable: true, get: function () { return constants_7.MYX_DEFAULT_SLIPPAGE_BPS; } });
Object.defineProperty(exports, "MYX_MINIMUM_ORDER_SIZE_USD", { enumerable: true, get: function () { return constants_7.MYX_MINIMUM_ORDER_SIZE_USD; } });
Object.defineProperty(exports, "MYX_EXECUTION_FEE_TOKEN", { enumerable: true, get: function () { return constants_7.MYX_EXECUTION_FEE_TOKEN; } });
var constants_8 = require("./constants/index.cjs");
Object.defineProperty(exports, "PERPS_CONSTANTS", { enumerable: true, get: function () { return constants_8.PERPS_CONSTANTS; } });
Object.defineProperty(exports, "WITHDRAWAL_CONSTANTS", { enumerable: true, get: function () { return constants_8.WITHDRAWAL_CONSTANTS; } });
Object.defineProperty(exports, "VALIDATION_THRESHOLDS", { enumerable: true, get: function () { return constants_8.VALIDATION_THRESHOLDS; } });
Object.defineProperty(exports, "ORDER_SLIPPAGE_CONFIG", { enumerable: true, get: function () { return constants_8.ORDER_SLIPPAGE_CONFIG; } });
Object.defineProperty(exports, "MAX_SLIPPAGE_BOUNDS", { enumerable: true, get: function () { return constants_8.MAX_SLIPPAGE_BOUNDS; } });
Object.defineProperty(exports, "PERFORMANCE_CONFIG", { enumerable: true, get: function () { return constants_8.PERFORMANCE_CONFIG; } });
Object.defineProperty(exports, "TP_SL_CONFIG", { enumerable: true, get: function () { return constants_8.TP_SL_CONFIG; } });
Object.defineProperty(exports, "HYPERLIQUID_ORDER_LIMITS", { enumerable: true, get: function () { return constants_8.HYPERLIQUID_ORDER_LIMITS; } });
Object.defineProperty(exports, "CLOSE_POSITION_CONFIG", { enumerable: true, get: function () { return constants_8.CLOSE_POSITION_CONFIG; } });
Object.defineProperty(exports, "MARGIN_ADJUSTMENT_CONFIG", { enumerable: true, get: function () { return constants_8.MARGIN_ADJUSTMENT_CONFIG; } });
Object.defineProperty(exports, "DATA_LAKE_API_CONFIG", { enumerable: true, get: function () { return constants_8.DATA_LAKE_API_CONFIG; } });
Object.defineProperty(exports, "DECIMAL_PRECISION_CONFIG", { enumerable: true, get: function () { return constants_8.DECIMAL_PRECISION_CONFIG; } });
Object.defineProperty(exports, "MARKET_SORTING_CONFIG", { enumerable: true, get: function () { return constants_8.MARKET_SORTING_CONFIG; } });
Object.defineProperty(exports, "PROVIDER_CONFIG", { enumerable: true, get: function () { return constants_8.PROVIDER_CONFIG; } });
Object.defineProperty(exports, "FUNDING_RATE_CONFIG", { enumerable: true, get: function () { return constants_8.FUNDING_RATE_CONFIG; } });
// Utilities (explicit named exports)
var utils_1 = require("./utils/index.cjs");
Object.defineProperty(exports, "findEvmAccount", { enumerable: true, get: function () { return utils_1.findEvmAccount; } });
Object.defineProperty(exports, "getEvmAccountFromAccountGroup", { enumerable: true, get: function () { return utils_1.getEvmAccountFromAccountGroup; } });
Object.defineProperty(exports, "getSelectedEvmAccount", { enumerable: true, get: function () { return utils_1.getSelectedEvmAccount; } });
Object.defineProperty(exports, "calculateWeightedReturnOnEquity", { enumerable: true, get: function () { return utils_1.calculateWeightedReturnOnEquity; } });
Object.defineProperty(exports, "aggregateAccountStates", { enumerable: true, get: function () { return utils_1.aggregateAccountStates; } });
var utils_2 = require("./utils/index.cjs");
Object.defineProperty(exports, "ensureError", { enumerable: true, get: function () { return utils_2.ensureError; } });
Object.defineProperty(exports, "isAbortError", { enumerable: true, get: function () { return utils_2.isAbortError; } });
var utils_3 = require("./utils/index.cjs");
Object.defineProperty(exports, "processL2BookData", { enumerable: true, get: function () { return utils_3.processL2BookData; } });
Object.defineProperty(exports, "processBboData", { enumerable: true, get: function () { return utils_3.processBboData; } });
var utils_4 = require("./utils/index.cjs");
Object.defineProperty(exports, "createErrorResult", { enumerable: true, get: function () { return utils_4.createErrorResult; } });
Object.defineProperty(exports, "validateWithdrawalParams", { enumerable: true, get: function () { return utils_4.validateWithdrawalParams; } });
Object.defineProperty(exports, "validateDepositParams", { enumerable: true, get: function () { return utils_4.validateDepositParams; } });
Object.defineProperty(exports, "validateAssetSupport", { enumerable: true, get: function () { return utils_4.validateAssetSupport; } });
Object.defineProperty(exports, "validateBalance", { enumerable: true, get: function () { return utils_4.validateBalance; } });
Object.defineProperty(exports, "applyPathFilters", { enumerable: true, get: function () { return utils_4.applyPathFilters; } });
Object.defineProperty(exports, "getSupportedPaths", { enumerable: true, get: function () { return utils_4.getSupportedPaths; } });
Object.defineProperty(exports, "getMaxOrderValue", { enumerable: true, get: function () { return utils_4.getMaxOrderValue; } });
Object.defineProperty(exports, "validateOrderParams", { enumerable: true, get: function () { return utils_4.validateOrderParams; } });
Object.defineProperty(exports, "validateCoinExists", { enumerable: true, get: function () { return utils_4.validateCoinExists; } });
var utils_5 = require("./utils/index.cjs");
Object.defineProperty(exports, "generatePerpsId", { enumerable: true, get: function () { return utils_5.generatePerpsId; } });
Object.defineProperty(exports, "generateDepositId", { enumerable: true, get: function () { return utils_5.generateDepositId; } });
Object.defineProperty(exports, "generateWithdrawalId", { enumerable: true, get: function () { return utils_5.generateWithdrawalId; } });
Object.defineProperty(exports, "generateOrderId", { enumerable: true, get: function () { return utils_5.generateOrderId; } });
Object.defineProperty(exports, "generateTransactionId", { enumerable: true, get: function () { return utils_5.generateTransactionId; } });
var utils_6 = require("./utils/index.cjs");
Object.defineProperty(exports, "calculateOpenInterestUSD", { enumerable: true, get: function () { return utils_6.calculateOpenInterestUSD; } });
Object.defineProperty(exports, "isMarketTradable", { enumerable: true, get: function () { return utils_6.isMarketTradable; } });
Object.defineProperty(exports, "transformMarketData", { enumerable: true, get: function () { return utils_6.transformMarketData; } });
Object.defineProperty(exports, "formatChange", { enumerable: true, get: function () { return utils_6.formatChange; } });
var perpsConnectionAttemptContext_1 = require("./utils/perpsConnectionAttemptContext.cjs");
Object.defineProperty(exports, "getPerpsConnectionAttemptContext", { enumerable: true, get: function () { return perpsConnectionAttemptContext_1.getPerpsConnectionAttemptContext; } });
Object.defineProperty(exports, "withPerpsConnectionAttemptContext", { enumerable: true, get: function () { return perpsConnectionAttemptContext_1.withPerpsConnectionAttemptContext; } });
var utils_7 = require("./utils/index.cjs");
Object.defineProperty(exports, "MAX_MARKET_PATTERN_LENGTH", { enumerable: true, get: function () { return utils_7.MAX_MARKET_PATTERN_LENGTH; } });
Object.defineProperty(exports, "escapeRegex", { enumerable: true, get: function () { return utils_7.escapeRegex; } });
Object.defineProperty(exports, "validateMarketPattern", { enumerable: true, get: function () { return utils_7.validateMarketPattern; } });
Object.defineProperty(exports, "compileMarketPattern", { enumerable: true, get: function () { return utils_7.compileMarketPattern; } });
Object.defineProperty(exports, "matchesMarketPattern", { enumerable: true, get: function () { return utils_7.matchesMarketPattern; } });
Object.defineProperty(exports, "shouldIncludeMarket", { enumerable: true, get: function () { return utils_7.shouldIncludeMarket; } });
Object.defineProperty(exports, "getPerpsDisplaySymbol", { enumerable: true, get: function () { return utils_7.getPerpsDisplaySymbol; } });
Object.defineProperty(exports, "getPerpsDexFromSymbol", { enumerable: true, get: function () { return utils_7.getPerpsDexFromSymbol; } });
Object.defineProperty(exports, "calculateFundingCountdown", { enumerable: true, get: function () { return utils_7.calculateFundingCountdown; } });
Object.defineProperty(exports, "calculate24hHighLow", { enumerable: true, get: function () { return utils_7.calculate24hHighLow; } });
Object.defineProperty(exports, "filterMarketsByQuery", { enumerable: true, get: function () { return utils_7.filterMarketsByQuery; } });
Object.defineProperty(exports, "matchesCategory", { enumerable: true, get: function () { return utils_7.matchesCategory; } });
Object.defineProperty(exports, "getMarketTypeFilter", { enumerable: true, get: function () { return utils_7.getMarketTypeFilter; } });
Object.defineProperty(exports, "applyMarketFilters", { enumerable: true, get: function () { return utils_7.applyMarketFilters; } });
Object.defineProperty(exports, "isHip3Market", { enumerable: true, get: function () { return utils_7.isHip3Market; } });
Object.defineProperty(exports, "rankMarketsByQuery", { enumerable: true, get: function () { return utils_7.rankMarketsByQuery; } });
Object.defineProperty(exports, "getMarketMatchRank", { enumerable: true, get: function () { return utils_7.getMarketMatchRank; } });
var utils_8 = require("./utils/index.cjs");
Object.defineProperty(exports, "MarketMatchRank", { enumerable: true, get: function () { return utils_8.MarketMatchRank; } });
var utils_9 = require("./utils/index.cjs");
Object.defineProperty(exports, "calculatePositionSize", { enumerable: true, get: function () { return utils_9.calculatePositionSize; } });
Object.defineProperty(exports, "calculateMarginRequired", { enumerable: true, get: function () { return utils_9.calculateMarginRequired; } });
Object.defineProperty(exports, "getMaxAllowedAmount", { enumerable: true, get: function () { return utils_9.getMaxAllowedAmount; } });
Object.defineProperty(exports, "calculateFinalPositionSize", { enumerable: true, get: function () { return utils_9.calculateFinalPositionSize; } });
Object.defineProperty(exports, "calculateOrderPriceAndSize", { enumerable: true, get: function () { return utils_9.calculateOrderPriceAndSize; } });
Object.defineProperty(exports, "buildOrdersArray", { enumerable: true, get: function () { return utils_9.buildOrdersArray; } });
var utils_10 = require("./utils/index.cjs");
Object.defineProperty(exports, "formatAccountToCaipAccountId", { enumerable: true, get: function () { return utils_10.formatAccountToCaipAccountId; } });
Object.defineProperty(exports, "isCaipAccountId", { enumerable: true, get: function () { return utils_10.isCaipAccountId; } });
Object.defineProperty(exports, "handleRewardsError", { enumerable: true, get: function () { return utils_10.handleRewardsError; } });
var utils_11 = require("./utils/index.cjs");
Object.defineProperty(exports, "countSignificantFigures", { enumerable: true, get: function () { return utils_11.countSignificantFigures; } });
Object.defineProperty(exports, "hasExceededSignificantFigures", { enumerable: true, get: function () { return utils_11.hasExceededSignificantFigures; } });
Object.defineProperty(exports, "roundToSignificantFigures", { enumerable: true, get: function () { return utils_11.roundToSignificantFigures; } });
var utils_12 = require("./utils/index.cjs");
Object.defineProperty(exports, "parseVolume", { enumerable: true, get: function () { return utils_12.parseVolume; } });
Object.defineProperty(exports, "sortMarkets", { enumerable: true, get: function () { return utils_12.sortMarkets; } });
var utils_13 = require("./utils/index.cjs");
Object.defineProperty(exports, "createStandaloneInfoClient", { enumerable: true, get: function () { return utils_13.createStandaloneInfoClient; } });
Object.defineProperty(exports, "queryStandaloneClearinghouseStates", { enumerable: true, get: function () { return utils_13.queryStandaloneClearinghouseStates; } });
Object.defineProperty(exports, "queryStandaloneOpenOrders", { enumerable: true, get: function () { return utils_13.queryStandaloneOpenOrders; } });
var utils_14 = require("./utils/index.cjs");
Object.defineProperty(exports, "stripQuotes", { enumerable: true, get: function () { return utils_14.stripQuotes; } });
Object.defineProperty(exports, "parseCommaSeparatedString", { enumerable: true, get: function () { return utils_14.parseCommaSeparatedString; } });
var utils_15 = require("./utils/index.cjs");
Object.defineProperty(exports, "generateERC20TransferData", { enumerable: true, get: function () { return utils_15.generateERC20TransferData; } });
var utils_16 = require("./utils/index.cjs");
Object.defineProperty(exports, "wait", { enumerable: true, get: function () { return utils_16.wait; } });
var utils_17 = require("./utils/index.cjs");
Object.defineProperty(exports, "adaptOrderToSDK", { enumerable: true, get: function () { return utils_17.adaptOrderToSDK; } });
Object.defineProperty(exports, "adaptPositionFromSDK", { enumerable: true, get: function () { return utils_17.adaptPositionFromSDK; } });
Object.defineProperty(exports, "adaptOrderFromSDK", { enumerable: true, get: function () { return utils_17.adaptOrderFromSDK; } });
Object.defineProperty(exports, "adaptMarketFromSDK", { enumerable: true, get: function () { return utils_17.adaptMarketFromSDK; } });
Object.defineProperty(exports, "adaptAccountStateFromSDK", { enumerable: true, get: function () { return utils_17.adaptAccountStateFromSDK; } });
Object.defineProperty(exports, "buildAssetMapping", { enumerable: true, get: function () { return utils_17.buildAssetMapping; } });
Object.defineProperty(exports, "formatHyperLiquidPrice", { enumerable: true, get: function () { return utils_17.formatHyperLiquidPrice; } });
Object.defineProperty(exports, "formatHyperLiquidSize", { enumerable: true, get: function () { return utils_17.formatHyperLiquidSize; } });
Object.defineProperty(exports, "calculateHip3AssetId", { enumerable: true, get: function () { return utils_17.calculateHip3AssetId; } });
Object.defineProperty(exports, "parseAssetName", { enumerable: true, get: function () { return utils_17.parseAssetName; } });
Object.defineProperty(exports, "adaptHyperLiquidLedgerUpdateToUserHistoryItem", { enumerable: true, get: function () { return utils_17.adaptHyperLiquidLedgerUpdateToUserHistoryItem; } });
var utils_18 = require("./utils/index.cjs");
Object.defineProperty(exports, "getEnvironment", { enumerable: true, get: function () { return utils_18.getEnvironment; } });
var utils_19 = require("./utils/index.cjs");
Object.defineProperty(exports, "PRICE_THRESHOLD", { enumerable: true, get: function () { return utils_19.PRICE_THRESHOLD; } });
Object.defineProperty(exports, "formatWithSignificantDigits", { enumerable: true, get: function () { return utils_19.formatWithSignificantDigits; } });
Object.defineProperty(exports, "PRICE_RANGES_MINIMAL_VIEW", { enumerable: true, get: function () { return utils_19.PRICE_RANGES_MINIMAL_VIEW; } });
Object.defineProperty(exports, "PRICE_RANGES_UNIVERSAL", { enumerable: true, get: function () { return utils_19.PRICE_RANGES_UNIVERSAL; } });
Object.defineProperty(exports, "formatPerpsFiat", { enumerable: true, get: function () { return utils_19.formatPerpsFiat; } });
Object.defineProperty(exports, "formatPositionSize", { enumerable: true, get: function () { return utils_19.formatPositionSize; } });
Object.defineProperty(exports, "formatPnl", { enumerable: true, get: function () { return utils_19.formatPnl; } });
Object.defineProperty(exports, "formatPercentage", { enumerable: true, get: function () { return utils_19.formatPercentage; } });
Object.defineProperty(exports, "formatFundingRate", { enumerable: true, get: function () { return utils_19.formatFundingRate; } });
// Error codes (explicit named exports)
var perpsErrorCodes_1 = require("./perpsErrorCodes.cjs");
Object.defineProperty(exports, "PERPS_ERROR_CODES", { enumerable: true, get: function () { return perpsErrorCodes_1.PERPS_ERROR_CODES; } });
// Selectors (explicit named exports)
var selectors_1 = require("./selectors.cjs");
Object.defineProperty(exports, "selectIsFirstTimeUser", { enumerable: true, get: function () { return selectors_1.selectIsFirstTimeUser; } });
Object.defineProperty(exports, "selectHasPlacedFirstOrder", { enumerable: true, get: function () { return selectors_1.selectHasPlacedFirstOrder; } });
Object.defineProperty(exports, "selectWatchlistMarkets", { enumerable: true, get: function () { return selectors_1.selectWatchlistMarkets; } });
Object.defineProperty(exports, "selectIsWatchlistMarket", { enumerable: true, get: function () { return selectors_1.selectIsWatchlistMarket; } });
Object.defineProperty(exports, "selectTradeConfiguration", { enumerable: true, get: function () { return selectors_1.selectTradeConfiguration; } });
Object.defineProperty(exports, "selectPendingTradeConfiguration", { enumerable: true, get: function () { return selectors_1.selectPendingTradeConfiguration; } });
Object.defineProperty(exports, "selectMarketFilterPreferences", { enumerable: true, get: function () { return selectors_1.selectMarketFilterPreferences; } });
Object.defineProperty(exports, "selectOrderBookGrouping", { enumerable: true, get: function () { return selectors_1.selectOrderBookGrouping; } });
// Services (only externally consumed items)
var TradingReadinessCache_1 = require("./services/TradingReadinessCache.cjs");
Object.defineProperty(exports, "TradingReadinessCache", { enumerable: true, get: function () { return TradingReadinessCache_1.TradingReadinessCache; } });
// Removed with Live Market Prices component:
// - usePerpsPrices
//# sourceMappingURL=index.cjs.map