@metamask-previews/perps-controller 13.1.0-preview-8c2a2eeb2 → 13.1.0-preview-4f4c98e
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -1
- package/dist/{PerpsController-method-action-types.d.mts → PerpsController-method-action-types.d.ts} +2 -2
- package/dist/PerpsController-method-action-types.d.ts.map +1 -0
- package/dist/{PerpsController-method-action-types.mjs → PerpsController-method-action-types.js} +1 -1
- package/dist/PerpsController-method-action-types.js.map +1 -0
- package/dist/{PerpsController.d.mts → PerpsController.d.ts} +17 -17
- package/dist/PerpsController.d.ts.map +1 -0
- package/dist/{PerpsController.mjs → PerpsController.js} +33 -31
- package/dist/PerpsController.js.map +1 -0
- package/dist/aggregation/{SubscriptionMultiplexer.d.cts → SubscriptionMultiplexer.d.ts} +2 -2
- package/dist/aggregation/SubscriptionMultiplexer.d.ts.map +1 -0
- package/dist/aggregation/{SubscriptionMultiplexer.mjs → SubscriptionMultiplexer.js} +3 -3
- package/dist/aggregation/SubscriptionMultiplexer.js.map +1 -0
- package/dist/aggregation/index.d.ts +6 -0
- package/dist/aggregation/index.d.ts.map +1 -0
- package/dist/aggregation/index.js +5 -0
- package/dist/aggregation/index.js.map +1 -0
- package/dist/constants/{chartConfig.d.mts → chartConfig.d.ts} +34 -34
- package/dist/constants/chartConfig.d.ts.map +1 -0
- package/dist/constants/{chartConfig.mjs → chartConfig.js} +1 -1
- package/dist/constants/chartConfig.js.map +1 -0
- package/dist/constants/eventNames.d.ts +555 -0
- package/dist/constants/eventNames.d.ts.map +1 -0
- package/dist/constants/{eventNames.mjs → eventNames.js} +1 -1
- package/dist/constants/eventNames.js.map +1 -0
- package/dist/constants/{hyperLiquidConfig.d.cts → hyperLiquidConfig.d.ts} +12 -12
- package/dist/constants/hyperLiquidConfig.d.ts.map +1 -0
- package/dist/constants/{hyperLiquidConfig.mjs → hyperLiquidConfig.js} +4 -4
- package/dist/constants/hyperLiquidConfig.js.map +1 -0
- package/dist/constants/index.d.ts +12 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/index.js +12 -0
- package/dist/constants/index.js.map +1 -0
- package/dist/constants/{myxConfig.d.mts → myxConfig.d.ts} +9 -8
- package/dist/constants/myxConfig.d.ts.map +1 -0
- package/dist/constants/{myxConfig.mjs → myxConfig.js} +2 -2
- package/dist/constants/myxConfig.js.map +1 -0
- package/dist/constants/{orderTypes.d.cts → orderTypes.d.ts} +7 -7
- package/dist/constants/orderTypes.d.ts.map +1 -0
- package/dist/constants/{orderTypes.mjs → orderTypes.js} +1 -1
- package/dist/constants/orderTypes.js.map +1 -0
- package/dist/constants/{performanceMetrics.d.cts → performanceMetrics.d.ts} +1 -1
- package/dist/constants/performanceMetrics.d.ts.map +1 -0
- package/dist/constants/{performanceMetrics.mjs → performanceMetrics.js} +1 -1
- package/dist/constants/performanceMetrics.js.map +1 -0
- package/dist/constants/{perpsConfig.d.mts → perpsConfig.d.ts} +56 -56
- package/dist/constants/perpsConfig.d.ts.map +1 -0
- package/dist/constants/{perpsConfig.mjs → perpsConfig.js} +1 -1
- package/dist/constants/perpsConfig.js.map +1 -0
- package/dist/constants/{transactionsHistoryConfig.d.cts → transactionsHistoryConfig.d.ts} +1 -1
- package/dist/constants/transactionsHistoryConfig.d.ts.map +1 -0
- package/dist/constants/{transactionsHistoryConfig.mjs → transactionsHistoryConfig.js} +1 -1
- package/dist/constants/transactionsHistoryConfig.js.map +1 -0
- package/dist/{index.d.mts → index.d.ts} +64 -64
- package/dist/index.d.ts.map +1 -0
- package/dist/{index.mjs → index.js} +41 -41
- package/dist/index.js.map +1 -0
- package/dist/perpsErrorCodes.d.ts +104 -0
- package/dist/perpsErrorCodes.d.ts.map +1 -0
- package/dist/{perpsErrorCodes.mjs → perpsErrorCodes.js} +1 -1
- package/dist/perpsErrorCodes.js.map +1 -0
- package/dist/providers/{AggregatedPerpsProvider.d.cts → AggregatedPerpsProvider.d.ts} +5 -5
- package/dist/providers/AggregatedPerpsProvider.d.ts.map +1 -0
- package/dist/providers/{AggregatedPerpsProvider.mjs → AggregatedPerpsProvider.js} +5 -5
- package/dist/providers/AggregatedPerpsProvider.js.map +1 -0
- package/dist/providers/{HyperLiquidProvider.d.mts → HyperLiquidProvider.d.ts} +7 -7
- package/dist/providers/HyperLiquidProvider.d.ts.map +1 -0
- package/dist/providers/{HyperLiquidProvider.mjs → HyperLiquidProvider.js} +48 -50
- package/dist/providers/HyperLiquidProvider.js.map +1 -0
- package/dist/routing/{ProviderRouter.d.mts → ProviderRouter.d.ts} +2 -2
- package/dist/routing/ProviderRouter.d.ts.map +1 -0
- package/dist/routing/{ProviderRouter.mjs → ProviderRouter.js} +1 -1
- package/dist/routing/ProviderRouter.js.map +1 -0
- package/dist/routing/index.d.ts +6 -0
- package/dist/routing/index.d.ts.map +1 -0
- package/dist/routing/index.js +5 -0
- package/dist/routing/index.js.map +1 -0
- package/dist/{selectors.d.mts → selectors.d.ts} +97 -97
- package/dist/selectors.d.ts.map +1 -0
- package/dist/{selectors.mjs → selectors.js} +4 -4
- package/dist/selectors.js.map +1 -0
- package/dist/services/{AccountService.d.cts → AccountService.d.ts} +4 -4
- package/dist/services/AccountService.d.ts.map +1 -0
- package/dist/services/{AccountService.mjs → AccountService.js} +9 -9
- package/dist/services/AccountService.js.map +1 -0
- package/dist/services/{AggregatedOrderBookConnection.d.cts → AggregatedOrderBookConnection.d.ts} +2 -2
- package/dist/services/AggregatedOrderBookConnection.d.ts.map +1 -0
- package/dist/services/{AggregatedOrderBookConnection.mjs → AggregatedOrderBookConnection.js} +3 -3
- package/dist/services/AggregatedOrderBookConnection.js.map +1 -0
- package/dist/services/{DataLakeService.d.cts → DataLakeService.d.ts} +4 -4
- package/dist/services/DataLakeService.d.ts.map +1 -0
- package/dist/services/{DataLakeService.mjs → DataLakeService.js} +7 -7
- package/dist/services/DataLakeService.js.map +1 -0
- package/dist/services/{DepositService.d.cts → DepositService.d.ts} +4 -4
- package/dist/services/DepositService.d.ts.map +1 -0
- package/dist/services/{DepositService.mjs → DepositService.js} +7 -7
- package/dist/services/DepositService.js.map +1 -0
- package/dist/services/{DexDiscoveryCacheManager.d.cts → DexDiscoveryCacheManager.d.ts} +2 -2
- package/dist/services/DexDiscoveryCacheManager.d.ts.map +1 -0
- package/dist/services/{DexDiscoveryCacheManager.mjs → DexDiscoveryCacheManager.js} +2 -2
- package/dist/services/DexDiscoveryCacheManager.js.map +1 -0
- package/dist/services/{EligibilityService.d.cts → EligibilityService.d.ts} +2 -2
- package/dist/services/EligibilityService.d.ts.map +1 -0
- package/dist/services/{EligibilityService.mjs → EligibilityService.js} +3 -3
- package/dist/services/EligibilityService.js.map +1 -0
- package/dist/services/{FeatureFlagConfigurationService.d.cts → FeatureFlagConfigurationService.d.ts} +3 -3
- package/dist/services/FeatureFlagConfigurationService.d.ts.map +1 -0
- package/dist/services/{FeatureFlagConfigurationService.mjs → FeatureFlagConfigurationService.js} +7 -7
- package/dist/services/FeatureFlagConfigurationService.js.map +1 -0
- package/dist/services/{HyperLiquidClientService.d.cts → HyperLiquidClientService.d.ts} +10 -10
- package/dist/services/HyperLiquidClientService.d.ts.map +1 -0
- package/dist/services/{HyperLiquidClientService.mjs → HyperLiquidClientService.js} +11 -11
- package/dist/services/HyperLiquidClientService.js.map +1 -0
- package/dist/services/{HyperLiquidSubscriptionService.d.cts → HyperLiquidSubscriptionService.d.ts} +6 -6
- package/dist/services/HyperLiquidSubscriptionService.d.ts.map +1 -0
- package/dist/services/{HyperLiquidSubscriptionService.mjs → HyperLiquidSubscriptionService.js} +12 -12
- package/dist/services/HyperLiquidSubscriptionService.js.map +1 -0
- package/dist/services/{HyperLiquidWalletService.d.cts → HyperLiquidWalletService.d.ts} +4 -4
- package/dist/services/HyperLiquidWalletService.d.ts.map +1 -0
- package/dist/services/{HyperLiquidWalletService.mjs → HyperLiquidWalletService.js} +5 -5
- package/dist/services/HyperLiquidWalletService.js.map +1 -0
- package/dist/services/{MarketDataService.d.cts → MarketDataService.d.ts} +5 -5
- package/dist/services/MarketDataService.d.ts.map +1 -0
- package/dist/services/{MarketDataService.mjs → MarketDataService.js} +9 -9
- package/dist/services/MarketDataService.js.map +1 -0
- package/dist/services/{RewardsIntegrationService.d.cts → RewardsIntegrationService.d.ts} +3 -3
- package/dist/services/RewardsIntegrationService.d.ts.map +1 -0
- package/dist/services/{RewardsIntegrationService.mjs → RewardsIntegrationService.js} +6 -6
- package/dist/services/RewardsIntegrationService.js.map +1 -0
- package/dist/services/{ServiceContext.d.cts → ServiceContext.d.ts} +3 -3
- package/dist/services/ServiceContext.d.ts.map +1 -0
- package/dist/services/ServiceContext.js +2 -0
- package/dist/services/ServiceContext.js.map +1 -0
- package/dist/services/{TerminalMarketService.d.cts → TerminalMarketService.d.ts} +2 -2
- package/dist/services/TerminalMarketService.d.ts.map +1 -0
- package/dist/services/{TerminalMarketService.mjs → TerminalMarketService.js} +9 -9
- package/dist/services/TerminalMarketService.js.map +1 -0
- package/dist/services/{TradingReadinessCache.d.mts → TradingReadinessCache.d.ts} +1 -1
- package/dist/services/TradingReadinessCache.d.ts.map +1 -0
- package/dist/services/{TradingReadinessCache.mjs → TradingReadinessCache.js} +1 -1
- package/dist/services/TradingReadinessCache.js.map +1 -0
- package/dist/services/{TradingService.d.cts → TradingService.d.ts} +4 -4
- package/dist/services/TradingService.d.ts.map +1 -0
- package/dist/services/{TradingService.mjs → TradingService.js} +10 -10
- package/dist/services/TradingService.js.map +1 -0
- package/dist/types/{config.d.cts → config.d.ts} +2 -2
- package/dist/types/config.d.ts.map +1 -0
- package/dist/types/config.js +2 -0
- package/dist/types/config.js.map +1 -0
- package/dist/types/{hyperliquid-types.d.cts → hyperliquid-types.d.ts} +6 -6
- package/dist/types/hyperliquid-types.d.ts.map +1 -0
- package/dist/types/{hyperliquid-types.mjs → hyperliquid-types.js} +1 -1
- package/dist/types/hyperliquid-types.js.map +1 -0
- package/dist/types/{index.d.cts → index.d.ts} +41 -41
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/{index.mjs → index.js} +3 -3
- package/dist/types/index.js.map +1 -0
- package/dist/types/{messenger.d.mts → messenger.d.ts} +11 -11
- package/dist/types/messenger.d.ts.map +1 -0
- package/dist/types/messenger.js +2 -0
- package/dist/types/messenger.js.map +1 -0
- package/dist/types/{myx-types.d.mts → myx-types.d.ts} +16 -16
- package/dist/types/myx-types.d.ts.map +1 -0
- package/dist/types/{myx-types.mjs → myx-types.js} +3 -3
- package/dist/types/myx-types.js.map +1 -0
- package/dist/types/{perps-types.d.cts → perps-types.d.ts} +4 -4
- package/dist/types/perps-types.d.ts.map +1 -0
- package/dist/types/perps-types.js +2 -0
- package/dist/types/perps-types.js.map +1 -0
- package/dist/types/{token.d.cts → token.d.ts} +2 -2
- package/dist/types/token.d.ts.map +1 -0
- package/dist/types/token.js +2 -0
- package/dist/types/token.js.map +1 -0
- package/dist/types/{transactionTypes.d.cts → transactionTypes.d.ts} +1 -1
- package/dist/types/transactionTypes.d.ts.map +1 -0
- package/dist/types/{transactionTypes.mjs → transactionTypes.js} +2 -2
- package/dist/types/transactionTypes.js.map +1 -0
- package/dist/utils/{accountUtils.d.cts → accountUtils.d.ts} +4 -4
- package/dist/utils/accountUtils.d.ts.map +1 -0
- package/dist/utils/{accountUtils.mjs → accountUtils.js} +2 -2
- package/dist/utils/accountUtils.js.map +1 -0
- package/dist/utils/{capabilitySymbols.d.mts → capabilitySymbols.d.ts} +1 -1
- package/dist/utils/capabilitySymbols.d.ts.map +1 -0
- package/dist/utils/{capabilitySymbols.mjs → capabilitySymbols.js} +1 -1
- package/dist/utils/capabilitySymbols.js.map +1 -0
- package/dist/utils/{coalescePerpsRestRequest.d.cts → coalescePerpsRestRequest.d.ts} +1 -1
- package/dist/utils/coalescePerpsRestRequest.d.ts.map +1 -0
- package/dist/utils/{coalescePerpsRestRequest.mjs → coalescePerpsRestRequest.js} +2 -2
- package/dist/utils/coalescePerpsRestRequest.js.map +1 -0
- package/dist/utils/{errorUtils.d.mts → errorUtils.d.ts} +1 -1
- package/dist/utils/errorUtils.d.ts.map +1 -0
- package/dist/utils/{errorUtils.mjs → errorUtils.js} +3 -3
- package/dist/utils/errorUtils.js.map +1 -0
- package/dist/utils/{hyperLiquidAbstraction.d.cts → hyperLiquidAbstraction.d.ts} +2 -2
- package/dist/utils/hyperLiquidAbstraction.d.ts.map +1 -0
- package/dist/utils/{hyperLiquidAbstraction.mjs → hyperLiquidAbstraction.js} +1 -1
- package/dist/utils/hyperLiquidAbstraction.js.map +1 -0
- package/dist/utils/{hyperLiquidAdapter.d.cts → hyperLiquidAdapter.d.ts} +4 -4
- package/dist/utils/hyperLiquidAdapter.d.ts.map +1 -0
- package/dist/utils/{hyperLiquidAdapter.mjs → hyperLiquidAdapter.js} +9 -9
- package/dist/utils/hyperLiquidAdapter.js.map +1 -0
- package/dist/utils/{hyperLiquidOrderBookProcessor.d.mts → hyperLiquidOrderBookProcessor.d.ts} +3 -3
- package/dist/utils/hyperLiquidOrderBookProcessor.d.ts.map +1 -0
- package/dist/utils/{hyperLiquidOrderBookProcessor.mjs → hyperLiquidOrderBookProcessor.js} +1 -1
- package/dist/utils/hyperLiquidOrderBookProcessor.js.map +1 -0
- package/dist/utils/{hyperLiquidValidation.d.cts → hyperLiquidValidation.d.ts} +4 -4
- package/dist/utils/hyperLiquidValidation.d.ts.map +1 -0
- package/dist/utils/{hyperLiquidValidation.mjs → hyperLiquidValidation.js} +6 -6
- package/dist/utils/hyperLiquidValidation.js.map +1 -0
- package/dist/utils/{idUtils.d.cts → idUtils.d.ts} +1 -1
- package/dist/utils/idUtils.d.ts.map +1 -0
- package/dist/utils/{idUtils.mjs → idUtils.js} +2 -2
- package/dist/utils/idUtils.js.map +1 -0
- package/dist/utils/index.d.ts +28 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/{index.mjs → index.js} +21 -21
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/{marketDataTransform.d.cts → marketDataTransform.d.ts} +3 -3
- package/dist/utils/marketDataTransform.d.ts.map +1 -0
- package/dist/utils/{marketDataTransform.mjs → marketDataTransform.js} +5 -5
- package/dist/utils/marketDataTransform.js.map +1 -0
- package/dist/utils/{marketSearch.d.cts → marketSearch.d.ts} +2 -2
- package/dist/utils/marketSearch.d.ts.map +1 -0
- package/dist/utils/{marketSearch.mjs → marketSearch.js} +1 -1
- package/dist/utils/marketSearch.js.map +1 -0
- package/dist/utils/{marketUtils.d.cts → marketUtils.d.ts} +3 -3
- package/dist/utils/marketUtils.d.ts.map +1 -0
- package/dist/utils/{marketUtils.mjs → marketUtils.js} +2 -2
- package/dist/utils/marketUtils.js.map +1 -0
- package/dist/utils/{myxAdapter.d.cts → myxAdapter.d.ts} +3 -3
- package/dist/utils/myxAdapter.d.ts.map +1 -0
- package/dist/utils/{myxAdapter.mjs → myxAdapter.js} +3 -3
- package/dist/utils/myxAdapter.js.map +1 -0
- package/dist/utils/{orderCalculations.d.cts → orderCalculations.d.ts} +4 -4
- package/dist/utils/orderCalculations.d.ts.map +1 -0
- package/dist/utils/{orderCalculations.mjs → orderCalculations.js} +6 -6
- package/dist/utils/orderCalculations.js.map +1 -0
- package/dist/utils/{orderTypes.d.mts → orderTypes.d.ts} +3 -3
- package/dist/utils/orderTypes.d.ts.map +1 -0
- package/dist/utils/{orderTypes.mjs → orderTypes.js} +1 -1
- package/dist/utils/orderTypes.js.map +1 -0
- package/dist/utils/{perpsConnectionAttemptContext.d.mts → perpsConnectionAttemptContext.d.ts} +1 -1
- package/dist/utils/perpsConnectionAttemptContext.d.ts.map +1 -0
- package/dist/utils/{perpsConnectionAttemptContext.mjs → perpsConnectionAttemptContext.js} +1 -1
- package/dist/utils/perpsConnectionAttemptContext.js.map +1 -0
- package/dist/utils/{perpsDiskPersistence.d.cts → perpsDiskPersistence.d.ts} +2 -2
- package/dist/utils/perpsDiskPersistence.d.ts.map +1 -0
- package/dist/utils/{perpsDiskPersistence.mjs → perpsDiskPersistence.js} +2 -2
- package/dist/utils/perpsDiskPersistence.js.map +1 -0
- package/dist/utils/{perpsFormatters.d.cts → perpsFormatters.d.ts} +1 -1
- package/dist/utils/perpsFormatters.d.ts.map +1 -0
- package/dist/utils/{perpsFormatters.mjs → perpsFormatters.js} +2 -2
- package/dist/utils/perpsFormatters.js.map +1 -0
- package/dist/utils/{rewardsUtils.d.cts → rewardsUtils.d.ts} +4 -4
- package/dist/utils/rewardsUtils.d.ts.map +1 -0
- package/dist/utils/{rewardsUtils.mjs → rewardsUtils.js} +4 -4
- package/dist/utils/rewardsUtils.js.map +1 -0
- package/dist/utils/{significantFigures.d.cts → significantFigures.d.ts} +1 -1
- package/dist/utils/significantFigures.d.ts.map +1 -0
- package/dist/utils/{significantFigures.mjs → significantFigures.js} +2 -2
- package/dist/utils/significantFigures.js.map +1 -0
- package/dist/utils/{sortMarkets.d.cts → sortMarkets.d.ts} +2 -2
- package/dist/utils/sortMarkets.d.ts.map +1 -0
- package/dist/utils/{sortMarkets.mjs → sortMarkets.js} +2 -2
- package/dist/utils/sortMarkets.js.map +1 -0
- package/dist/utils/{standaloneInfoClient.d.cts → standaloneInfoClient.d.ts} +3 -3
- package/dist/utils/standaloneInfoClient.d.ts.map +1 -0
- package/dist/utils/{standaloneInfoClient.mjs → standaloneInfoClient.js} +3 -3
- package/dist/utils/standaloneInfoClient.js.map +1 -0
- package/dist/utils/{stringParseUtils.d.cts → stringParseUtils.d.ts} +1 -1
- package/dist/utils/stringParseUtils.d.ts.map +1 -0
- package/dist/utils/{stringParseUtils.mjs → stringParseUtils.js} +1 -1
- package/dist/utils/stringParseUtils.js.map +1 -0
- package/dist/utils/{transferData.d.cts → transferData.d.ts} +1 -1
- package/dist/utils/transferData.d.ts.map +1 -0
- package/dist/utils/{transferData.mjs → transferData.js} +3 -3
- package/dist/utils/transferData.js.map +1 -0
- package/dist/utils/{wait.d.cts → wait.d.ts} +1 -1
- package/dist/utils/wait.d.ts.map +1 -0
- package/dist/utils/{wait.mjs → wait.js} +1 -1
- package/dist/utils/wait.js.map +1 -0
- package/package.json +20 -48
- package/dist/PerpsController-method-action-types.cjs +0 -7
- package/dist/PerpsController-method-action-types.cjs.map +0 -1
- package/dist/PerpsController-method-action-types.d.cts +0 -1163
- package/dist/PerpsController-method-action-types.d.cts.map +0 -1
- package/dist/PerpsController-method-action-types.d.mts.map +0 -1
- package/dist/PerpsController-method-action-types.mjs.map +0 -1
- package/dist/PerpsController.cjs +0 -5063
- package/dist/PerpsController.cjs.map +0 -1
- package/dist/PerpsController.d.cts +0 -1274
- package/dist/PerpsController.d.cts.map +0 -1
- package/dist/PerpsController.d.mts.map +0 -1
- package/dist/PerpsController.mjs.map +0 -1
- package/dist/aggregation/SubscriptionMultiplexer.cjs +0 -441
- package/dist/aggregation/SubscriptionMultiplexer.cjs.map +0 -1
- package/dist/aggregation/SubscriptionMultiplexer.d.cts.map +0 -1
- package/dist/aggregation/SubscriptionMultiplexer.d.mts +0 -171
- package/dist/aggregation/SubscriptionMultiplexer.d.mts.map +0 -1
- package/dist/aggregation/SubscriptionMultiplexer.mjs.map +0 -1
- package/dist/aggregation/index.cjs +0 -9
- package/dist/aggregation/index.cjs.map +0 -1
- package/dist/aggregation/index.d.cts +0 -6
- package/dist/aggregation/index.d.cts.map +0 -1
- package/dist/aggregation/index.d.mts +0 -6
- package/dist/aggregation/index.d.mts.map +0 -1
- package/dist/aggregation/index.mjs +0 -5
- package/dist/aggregation/index.mjs.map +0 -1
- package/dist/constants/chartConfig.cjs +0 -239
- package/dist/constants/chartConfig.cjs.map +0 -1
- package/dist/constants/chartConfig.d.cts +0 -228
- package/dist/constants/chartConfig.d.cts.map +0 -1
- package/dist/constants/chartConfig.d.mts.map +0 -1
- package/dist/constants/chartConfig.mjs.map +0 -1
- package/dist/constants/eventNames.cjs +0 -650
- package/dist/constants/eventNames.cjs.map +0 -1
- package/dist/constants/eventNames.d.cts +0 -555
- package/dist/constants/eventNames.d.cts.map +0 -1
- package/dist/constants/eventNames.d.mts +0 -555
- package/dist/constants/eventNames.d.mts.map +0 -1
- package/dist/constants/eventNames.mjs.map +0 -1
- package/dist/constants/hyperLiquidConfig.cjs +0 -607
- package/dist/constants/hyperLiquidConfig.cjs.map +0 -1
- package/dist/constants/hyperLiquidConfig.d.cts.map +0 -1
- package/dist/constants/hyperLiquidConfig.d.mts +0 -280
- package/dist/constants/hyperLiquidConfig.d.mts.map +0 -1
- package/dist/constants/hyperLiquidConfig.mjs.map +0 -1
- package/dist/constants/index.cjs +0 -28
- package/dist/constants/index.cjs.map +0 -1
- package/dist/constants/index.d.cts +0 -12
- package/dist/constants/index.d.cts.map +0 -1
- package/dist/constants/index.d.mts +0 -12
- package/dist/constants/index.d.mts.map +0 -1
- package/dist/constants/index.mjs +0 -12
- package/dist/constants/index.mjs.map +0 -1
- package/dist/constants/myxConfig.cjs +0 -253
- package/dist/constants/myxConfig.cjs.map +0 -1
- package/dist/constants/myxConfig.d.cts +0 -145
- package/dist/constants/myxConfig.d.cts.map +0 -1
- package/dist/constants/myxConfig.d.mts.map +0 -1
- package/dist/constants/myxConfig.mjs.map +0 -1
- package/dist/constants/orderTypes.cjs +0 -31
- package/dist/constants/orderTypes.cjs.map +0 -1
- package/dist/constants/orderTypes.d.cts.map +0 -1
- package/dist/constants/orderTypes.d.mts +0 -19
- package/dist/constants/orderTypes.d.mts.map +0 -1
- package/dist/constants/orderTypes.mjs.map +0 -1
- package/dist/constants/performanceMetrics.cjs +0 -63
- package/dist/constants/performanceMetrics.cjs.map +0 -1
- package/dist/constants/performanceMetrics.d.cts.map +0 -1
- package/dist/constants/performanceMetrics.d.mts +0 -46
- package/dist/constants/performanceMetrics.d.mts.map +0 -1
- package/dist/constants/performanceMetrics.mjs.map +0 -1
- package/dist/constants/perpsConfig.cjs +0 -553
- package/dist/constants/perpsConfig.cjs.map +0 -1
- package/dist/constants/perpsConfig.d.cts +0 -474
- package/dist/constants/perpsConfig.d.cts.map +0 -1
- package/dist/constants/perpsConfig.d.mts.map +0 -1
- package/dist/constants/perpsConfig.mjs.map +0 -1
- package/dist/constants/transactionsHistoryConfig.cjs +0 -38
- package/dist/constants/transactionsHistoryConfig.cjs.map +0 -1
- package/dist/constants/transactionsHistoryConfig.d.cts.map +0 -1
- package/dist/constants/transactionsHistoryConfig.d.mts +0 -35
- package/dist/constants/transactionsHistoryConfig.d.mts.map +0 -1
- package/dist/constants/transactionsHistoryConfig.mjs.map +0 -1
- package/dist/index.cjs +0 -344
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -92
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/perpsErrorCodes.cjs +0 -127
- package/dist/perpsErrorCodes.cjs.map +0 -1
- package/dist/perpsErrorCodes.d.cts +0 -104
- package/dist/perpsErrorCodes.d.cts.map +0 -1
- package/dist/perpsErrorCodes.d.mts +0 -104
- package/dist/perpsErrorCodes.d.mts.map +0 -1
- package/dist/perpsErrorCodes.mjs.map +0 -1
- package/dist/providers/AggregatedPerpsProvider.cjs +0 -689
- package/dist/providers/AggregatedPerpsProvider.cjs.map +0 -1
- package/dist/providers/AggregatedPerpsProvider.d.cts.map +0 -1
- package/dist/providers/AggregatedPerpsProvider.d.mts +0 -232
- package/dist/providers/AggregatedPerpsProvider.d.mts.map +0 -1
- package/dist/providers/AggregatedPerpsProvider.mjs.map +0 -1
- package/dist/providers/HyperLiquidProvider.cjs +0 -10416
- package/dist/providers/HyperLiquidProvider.cjs.map +0 -1
- package/dist/providers/HyperLiquidProvider.d.cts +0 -625
- package/dist/providers/HyperLiquidProvider.d.cts.map +0 -1
- package/dist/providers/HyperLiquidProvider.d.mts.map +0 -1
- package/dist/providers/HyperLiquidProvider.mjs.map +0 -1
- package/dist/routing/ProviderRouter.cjs +0 -154
- package/dist/routing/ProviderRouter.cjs.map +0 -1
- package/dist/routing/ProviderRouter.d.cts +0 -112
- package/dist/routing/ProviderRouter.d.cts.map +0 -1
- package/dist/routing/ProviderRouter.d.mts.map +0 -1
- package/dist/routing/ProviderRouter.mjs.map +0 -1
- package/dist/routing/index.cjs +0 -9
- package/dist/routing/index.cjs.map +0 -1
- package/dist/routing/index.d.cts +0 -6
- package/dist/routing/index.d.cts.map +0 -1
- package/dist/routing/index.d.mts +0 -6
- package/dist/routing/index.d.mts.map +0 -1
- package/dist/routing/index.mjs +0 -5
- package/dist/routing/index.mjs.map +0 -1
- package/dist/selectors.cjs +0 -264
- package/dist/selectors.cjs.map +0 -1
- package/dist/selectors.d.cts +0 -336
- package/dist/selectors.d.cts.map +0 -1
- package/dist/selectors.d.mts.map +0 -1
- package/dist/selectors.mjs.map +0 -1
- package/dist/services/AccountService.cjs +0 -324
- package/dist/services/AccountService.cjs.map +0 -1
- package/dist/services/AccountService.d.cts.map +0 -1
- package/dist/services/AccountService.d.mts +0 -56
- package/dist/services/AccountService.d.mts.map +0 -1
- package/dist/services/AccountService.mjs.map +0 -1
- package/dist/services/AggregatedOrderBookConnection.cjs +0 -405
- package/dist/services/AggregatedOrderBookConnection.cjs.map +0 -1
- package/dist/services/AggregatedOrderBookConnection.d.cts.map +0 -1
- package/dist/services/AggregatedOrderBookConnection.d.mts +0 -106
- package/dist/services/AggregatedOrderBookConnection.d.mts.map +0 -1
- package/dist/services/AggregatedOrderBookConnection.mjs.map +0 -1
- package/dist/services/DataLakeService.cjs +0 -233
- package/dist/services/DataLakeService.cjs.map +0 -1
- package/dist/services/DataLakeService.d.cts.map +0 -1
- package/dist/services/DataLakeService.d.mts +0 -51
- package/dist/services/DataLakeService.d.mts.map +0 -1
- package/dist/services/DataLakeService.mjs.map +0 -1
- package/dist/services/DepositService.cjs +0 -99
- package/dist/services/DepositService.cjs.map +0 -1
- package/dist/services/DepositService.d.cts.map +0 -1
- package/dist/services/DepositService.d.mts +0 -39
- package/dist/services/DepositService.d.mts.map +0 -1
- package/dist/services/DepositService.mjs.map +0 -1
- package/dist/services/DexDiscoveryCacheManager.cjs +0 -147
- package/dist/services/DexDiscoveryCacheManager.cjs.map +0 -1
- package/dist/services/DexDiscoveryCacheManager.d.cts.map +0 -1
- package/dist/services/DexDiscoveryCacheManager.d.mts +0 -52
- package/dist/services/DexDiscoveryCacheManager.d.mts.map +0 -1
- package/dist/services/DexDiscoveryCacheManager.mjs.map +0 -1
- package/dist/services/EligibilityService.cjs +0 -78
- package/dist/services/EligibilityService.cjs.map +0 -1
- package/dist/services/EligibilityService.d.cts.map +0 -1
- package/dist/services/EligibilityService.d.mts +0 -28
- package/dist/services/EligibilityService.d.mts.map +0 -1
- package/dist/services/EligibilityService.mjs.map +0 -1
- package/dist/services/FeatureFlagConfigurationService.cjs +0 -257
- package/dist/services/FeatureFlagConfigurationService.cjs.map +0 -1
- package/dist/services/FeatureFlagConfigurationService.d.cts.map +0 -1
- package/dist/services/FeatureFlagConfigurationService.d.mts +0 -73
- package/dist/services/FeatureFlagConfigurationService.d.mts.map +0 -1
- package/dist/services/FeatureFlagConfigurationService.mjs.map +0 -1
- package/dist/services/HyperLiquidClientService.cjs +0 -1045
- package/dist/services/HyperLiquidClientService.cjs.map +0 -1
- package/dist/services/HyperLiquidClientService.d.cts.map +0 -1
- package/dist/services/HyperLiquidClientService.d.mts +0 -239
- package/dist/services/HyperLiquidClientService.d.mts.map +0 -1
- package/dist/services/HyperLiquidClientService.mjs.map +0 -1
- package/dist/services/HyperLiquidSubscriptionService.cjs +0 -3196
- package/dist/services/HyperLiquidSubscriptionService.cjs.map +0 -1
- package/dist/services/HyperLiquidSubscriptionService.d.cts.map +0 -1
- package/dist/services/HyperLiquidSubscriptionService.d.mts +0 -227
- package/dist/services/HyperLiquidSubscriptionService.d.mts.map +0 -1
- package/dist/services/HyperLiquidSubscriptionService.mjs.map +0 -1
- package/dist/services/HyperLiquidWalletService.cjs +0 -186
- package/dist/services/HyperLiquidWalletService.cjs.map +0 -1
- package/dist/services/HyperLiquidWalletService.d.cts.map +0 -1
- package/dist/services/HyperLiquidWalletService.d.mts +0 -84
- package/dist/services/HyperLiquidWalletService.d.mts.map +0 -1
- package/dist/services/HyperLiquidWalletService.mjs.map +0 -1
- package/dist/services/MarketDataService.cjs +0 -1138
- package/dist/services/MarketDataService.cjs.map +0 -1
- package/dist/services/MarketDataService.d.cts.map +0 -1
- package/dist/services/MarketDataService.d.mts +0 -334
- package/dist/services/MarketDataService.d.mts.map +0 -1
- package/dist/services/MarketDataService.mjs.map +0 -1
- package/dist/services/RewardsIntegrationService.cjs +0 -391
- package/dist/services/RewardsIntegrationService.cjs.map +0 -1
- package/dist/services/RewardsIntegrationService.d.cts.map +0 -1
- package/dist/services/RewardsIntegrationService.d.mts +0 -84
- package/dist/services/RewardsIntegrationService.d.mts.map +0 -1
- package/dist/services/RewardsIntegrationService.mjs.map +0 -1
- package/dist/services/ServiceContext.cjs +0 -3
- package/dist/services/ServiceContext.cjs.map +0 -1
- package/dist/services/ServiceContext.d.cts.map +0 -1
- package/dist/services/ServiceContext.d.mts +0 -102
- package/dist/services/ServiceContext.d.mts.map +0 -1
- package/dist/services/ServiceContext.mjs +0 -2
- package/dist/services/ServiceContext.mjs.map +0 -1
- package/dist/services/TerminalMarketService.cjs +0 -623
- package/dist/services/TerminalMarketService.cjs.map +0 -1
- package/dist/services/TerminalMarketService.d.cts.map +0 -1
- package/dist/services/TerminalMarketService.d.mts +0 -45
- package/dist/services/TerminalMarketService.d.mts.map +0 -1
- package/dist/services/TerminalMarketService.mjs.map +0 -1
- package/dist/services/TradingReadinessCache.cjs +0 -329
- package/dist/services/TradingReadinessCache.cjs.map +0 -1
- package/dist/services/TradingReadinessCache.d.cts +0 -204
- package/dist/services/TradingReadinessCache.d.cts.map +0 -1
- package/dist/services/TradingReadinessCache.d.mts.map +0 -1
- package/dist/services/TradingReadinessCache.mjs.map +0 -1
- package/dist/services/TradingService.cjs +0 -1865
- package/dist/services/TradingService.cjs.map +0 -1
- package/dist/services/TradingService.d.cts.map +0 -1
- package/dist/services/TradingService.d.mts +0 -201
- package/dist/services/TradingService.d.mts.map +0 -1
- package/dist/services/TradingService.mjs.map +0 -1
- package/dist/types/config.cjs +0 -3
- package/dist/types/config.cjs.map +0 -1
- package/dist/types/config.d.cts.map +0 -1
- package/dist/types/config.d.mts +0 -49
- package/dist/types/config.d.mts.map +0 -1
- package/dist/types/config.mjs +0 -2
- package/dist/types/config.mjs.map +0 -1
- package/dist/types/hyperliquid-types.cjs +0 -45
- package/dist/types/hyperliquid-types.cjs.map +0 -1
- package/dist/types/hyperliquid-types.d.cts.map +0 -1
- package/dist/types/hyperliquid-types.d.mts +0 -67
- package/dist/types/hyperliquid-types.d.mts.map +0 -1
- package/dist/types/hyperliquid-types.mjs.map +0 -1
- package/dist/types/index.cjs +0 -151
- package/dist/types/index.cjs.map +0 -1
- package/dist/types/index.d.cts.map +0 -1
- package/dist/types/index.d.mts +0 -1951
- package/dist/types/index.d.mts.map +0 -1
- package/dist/types/index.mjs.map +0 -1
- package/dist/types/messenger.cjs +0 -3
- package/dist/types/messenger.cjs.map +0 -1
- package/dist/types/messenger.d.cts +0 -30
- package/dist/types/messenger.d.cts.map +0 -1
- package/dist/types/messenger.d.mts.map +0 -1
- package/dist/types/messenger.mjs +0 -2
- package/dist/types/messenger.mjs.map +0 -1
- package/dist/types/myx-types.cjs +0 -41
- package/dist/types/myx-types.cjs.map +0 -1
- package/dist/types/myx-types.d.cts +0 -94
- package/dist/types/myx-types.d.cts.map +0 -1
- package/dist/types/myx-types.d.mts.map +0 -1
- package/dist/types/myx-types.mjs.map +0 -1
- package/dist/types/perps-types.cjs +0 -7
- package/dist/types/perps-types.cjs.map +0 -1
- package/dist/types/perps-types.d.cts.map +0 -1
- package/dist/types/perps-types.d.mts +0 -184
- package/dist/types/perps-types.d.mts.map +0 -1
- package/dist/types/perps-types.mjs +0 -5
- package/dist/types/perps-types.mjs.map +0 -1
- package/dist/types/token.cjs +0 -3
- package/dist/types/token.cjs.map +0 -1
- package/dist/types/token.d.cts.map +0 -1
- package/dist/types/token.d.mts +0 -25
- package/dist/types/token.d.mts.map +0 -1
- package/dist/types/token.mjs +0 -2
- package/dist/types/token.mjs.map +0 -1
- package/dist/types/transactionTypes.cjs +0 -29
- package/dist/types/transactionTypes.cjs.map +0 -1
- package/dist/types/transactionTypes.d.cts.map +0 -1
- package/dist/types/transactionTypes.d.mts +0 -60
- package/dist/types/transactionTypes.d.mts.map +0 -1
- package/dist/types/transactionTypes.mjs.map +0 -1
- package/dist/utils/accountUtils.cjs +0 -236
- package/dist/utils/accountUtils.cjs.map +0 -1
- package/dist/utils/accountUtils.d.cts.map +0 -1
- package/dist/utils/accountUtils.d.mts +0 -72
- package/dist/utils/accountUtils.d.mts.map +0 -1
- package/dist/utils/accountUtils.mjs.map +0 -1
- package/dist/utils/capabilitySymbols.cjs +0 -25
- package/dist/utils/capabilitySymbols.cjs.map +0 -1
- package/dist/utils/capabilitySymbols.d.cts +0 -15
- package/dist/utils/capabilitySymbols.d.cts.map +0 -1
- package/dist/utils/capabilitySymbols.d.mts.map +0 -1
- package/dist/utils/capabilitySymbols.mjs.map +0 -1
- package/dist/utils/coalescePerpsRestRequest.cjs +0 -71
- package/dist/utils/coalescePerpsRestRequest.cjs.map +0 -1
- package/dist/utils/coalescePerpsRestRequest.d.cts.map +0 -1
- package/dist/utils/coalescePerpsRestRequest.d.mts +0 -32
- package/dist/utils/coalescePerpsRestRequest.d.mts.map +0 -1
- package/dist/utils/coalescePerpsRestRequest.mjs.map +0 -1
- package/dist/utils/errorUtils.cjs +0 -104
- package/dist/utils/errorUtils.cjs.map +0 -1
- package/dist/utils/errorUtils.d.cts +0 -50
- package/dist/utils/errorUtils.d.cts.map +0 -1
- package/dist/utils/errorUtils.d.mts.map +0 -1
- package/dist/utils/errorUtils.mjs.map +0 -1
- package/dist/utils/hyperLiquidAbstraction.cjs +0 -23
- package/dist/utils/hyperLiquidAbstraction.cjs.map +0 -1
- package/dist/utils/hyperLiquidAbstraction.d.cts.map +0 -1
- package/dist/utils/hyperLiquidAbstraction.d.mts +0 -11
- package/dist/utils/hyperLiquidAbstraction.d.mts.map +0 -1
- package/dist/utils/hyperLiquidAbstraction.mjs.map +0 -1
- package/dist/utils/hyperLiquidAdapter.cjs +0 -512
- package/dist/utils/hyperLiquidAdapter.cjs.map +0 -1
- package/dist/utils/hyperLiquidAdapter.d.cts.map +0 -1
- package/dist/utils/hyperLiquidAdapter.d.mts +0 -77
- package/dist/utils/hyperLiquidAdapter.d.mts.map +0 -1
- package/dist/utils/hyperLiquidAdapter.mjs.map +0 -1
- package/dist/utils/hyperLiquidOrderBookProcessor.cjs +0 -83
- package/dist/utils/hyperLiquidOrderBookProcessor.cjs.map +0 -1
- package/dist/utils/hyperLiquidOrderBookProcessor.d.cts +0 -55
- package/dist/utils/hyperLiquidOrderBookProcessor.d.cts.map +0 -1
- package/dist/utils/hyperLiquidOrderBookProcessor.d.mts.map +0 -1
- package/dist/utils/hyperLiquidOrderBookProcessor.mjs.map +0 -1
- package/dist/utils/hyperLiquidValidation.cjs +0 -799
- package/dist/utils/hyperLiquidValidation.cjs.map +0 -1
- package/dist/utils/hyperLiquidValidation.d.cts.map +0 -1
- package/dist/utils/hyperLiquidValidation.d.mts +0 -192
- package/dist/utils/hyperLiquidValidation.d.mts.map +0 -1
- package/dist/utils/hyperLiquidValidation.mjs.map +0 -1
- package/dist/utils/idUtils.cjs +0 -18
- package/dist/utils/idUtils.cjs.map +0 -1
- package/dist/utils/idUtils.d.cts.map +0 -1
- package/dist/utils/idUtils.d.mts +0 -6
- package/dist/utils/idUtils.d.mts.map +0 -1
- package/dist/utils/idUtils.mjs.map +0 -1
- package/dist/utils/index.cjs +0 -65
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.d.cts +0 -28
- package/dist/utils/index.d.cts.map +0 -1
- package/dist/utils/index.d.mts +0 -28
- package/dist/utils/index.d.mts.map +0 -1
- package/dist/utils/index.mjs.map +0 -1
- package/dist/utils/marketDataTransform.cjs +0 -250
- package/dist/utils/marketDataTransform.cjs.map +0 -1
- package/dist/utils/marketDataTransform.d.cts.map +0 -1
- package/dist/utils/marketDataTransform.d.mts +0 -71
- package/dist/utils/marketDataTransform.d.mts.map +0 -1
- package/dist/utils/marketDataTransform.mjs.map +0 -1
- package/dist/utils/marketSearch.cjs +0 -111
- package/dist/utils/marketSearch.cjs.map +0 -1
- package/dist/utils/marketSearch.d.cts.map +0 -1
- package/dist/utils/marketSearch.d.mts +0 -48
- package/dist/utils/marketSearch.d.mts.map +0 -1
- package/dist/utils/marketSearch.mjs.map +0 -1
- package/dist/utils/marketUtils.cjs +0 -266
- package/dist/utils/marketUtils.cjs.map +0 -1
- package/dist/utils/marketUtils.d.cts.map +0 -1
- package/dist/utils/marketUtils.d.mts +0 -73
- package/dist/utils/marketUtils.d.mts.map +0 -1
- package/dist/utils/marketUtils.mjs.map +0 -1
- package/dist/utils/myxAdapter.cjs +0 -569
- package/dist/utils/myxAdapter.cjs.map +0 -1
- package/dist/utils/myxAdapter.d.cts.map +0 -1
- package/dist/utils/myxAdapter.d.mts +0 -168
- package/dist/utils/myxAdapter.d.mts.map +0 -1
- package/dist/utils/myxAdapter.mjs.map +0 -1
- package/dist/utils/orderCalculations.cjs +0 -823
- package/dist/utils/orderCalculations.cjs.map +0 -1
- package/dist/utils/orderCalculations.d.cts.map +0 -1
- package/dist/utils/orderCalculations.d.mts +0 -298
- package/dist/utils/orderCalculations.d.mts.map +0 -1
- package/dist/utils/orderCalculations.mjs.map +0 -1
- package/dist/utils/orderTypes.cjs +0 -301
- package/dist/utils/orderTypes.cjs.map +0 -1
- package/dist/utils/orderTypes.d.cts +0 -166
- package/dist/utils/orderTypes.d.cts.map +0 -1
- package/dist/utils/orderTypes.d.mts.map +0 -1
- package/dist/utils/orderTypes.mjs.map +0 -1
- package/dist/utils/perpsConnectionAttemptContext.cjs +0 -20
- package/dist/utils/perpsConnectionAttemptContext.cjs.map +0 -1
- package/dist/utils/perpsConnectionAttemptContext.d.cts +0 -7
- package/dist/utils/perpsConnectionAttemptContext.d.cts.map +0 -1
- package/dist/utils/perpsConnectionAttemptContext.d.mts.map +0 -1
- package/dist/utils/perpsConnectionAttemptContext.mjs.map +0 -1
- package/dist/utils/perpsDiskPersistence.cjs +0 -259
- package/dist/utils/perpsDiskPersistence.cjs.map +0 -1
- package/dist/utils/perpsDiskPersistence.d.cts.map +0 -1
- package/dist/utils/perpsDiskPersistence.d.mts +0 -112
- package/dist/utils/perpsDiskPersistence.d.mts.map +0 -1
- package/dist/utils/perpsDiskPersistence.mjs.map +0 -1
- package/dist/utils/perpsFormatters.cjs +0 -509
- package/dist/utils/perpsFormatters.cjs.map +0 -1
- package/dist/utils/perpsFormatters.d.cts.map +0 -1
- package/dist/utils/perpsFormatters.d.mts +0 -204
- package/dist/utils/perpsFormatters.d.mts.map +0 -1
- package/dist/utils/perpsFormatters.mjs.map +0 -1
- package/dist/utils/rewardsUtils.cjs +0 -98
- package/dist/utils/rewardsUtils.cjs.map +0 -1
- package/dist/utils/rewardsUtils.d.cts.map +0 -1
- package/dist/utils/rewardsUtils.d.mts +0 -33
- package/dist/utils/rewardsUtils.d.mts.map +0 -1
- package/dist/utils/rewardsUtils.mjs.map +0 -1
- package/dist/utils/significantFigures.cjs +0 -88
- package/dist/utils/significantFigures.cjs.map +0 -1
- package/dist/utils/significantFigures.d.cts.map +0 -1
- package/dist/utils/significantFigures.d.mts +0 -25
- package/dist/utils/significantFigures.d.mts.map +0 -1
- package/dist/utils/significantFigures.mjs.map +0 -1
- package/dist/utils/sortMarkets.cjs +0 -93
- package/dist/utils/sortMarkets.cjs.map +0 -1
- package/dist/utils/sortMarkets.d.cts.map +0 -1
- package/dist/utils/sortMarkets.d.mts +0 -25
- package/dist/utils/sortMarkets.d.mts.map +0 -1
- package/dist/utils/sortMarkets.mjs.map +0 -1
- package/dist/utils/standaloneInfoClient.cjs +0 -70
- package/dist/utils/standaloneInfoClient.cjs.map +0 -1
- package/dist/utils/standaloneInfoClient.d.cts.map +0 -1
- package/dist/utils/standaloneInfoClient.d.mts +0 -37
- package/dist/utils/standaloneInfoClient.d.mts.map +0 -1
- package/dist/utils/standaloneInfoClient.mjs.map +0 -1
- package/dist/utils/stringParseUtils.cjs +0 -34
- package/dist/utils/stringParseUtils.cjs.map +0 -1
- package/dist/utils/stringParseUtils.d.cts.map +0 -1
- package/dist/utils/stringParseUtils.d.mts +0 -11
- package/dist/utils/stringParseUtils.d.mts.map +0 -1
- package/dist/utils/stringParseUtils.mjs.map +0 -1
- package/dist/utils/transferData.cjs +0 -33
- package/dist/utils/transferData.cjs.map +0 -1
- package/dist/utils/transferData.d.cts.map +0 -1
- package/dist/utils/transferData.d.mts +0 -9
- package/dist/utils/transferData.d.mts.map +0 -1
- package/dist/utils/transferData.mjs.map +0 -1
- package/dist/utils/wait.cjs +0 -6
- package/dist/utils/wait.cjs.map +0 -1
- package/dist/utils/wait.d.cts.map +0 -1
- package/dist/utils/wait.d.mts +0 -2
- package/dist/utils/wait.d.mts.map +0 -1
- package/dist/utils/wait.mjs.map +0 -1
|
@@ -1,607 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HIP3_MARGIN_CONFIG = exports.MAINNET_HIP3_CONFIG = exports.TESTNET_HIP3_CONFIG = exports.getHyperLiquidAssetName = exports.HYPERLIQUID_ASSET_NAMES = 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.HYPERLIQUID_ORDER_CAPABILITIES = 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 = 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.TOKEN_DECIMALS = exports.USDC_DECIMALS = exports.USDC_NAME = exports.USDC_SYMBOL = exports.canonicalizeHyperLiquidDexes = 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 = void 0;
|
|
4
|
-
exports.PROGRESS_BAR_COMPLETION_DELAY_MS = exports.WITHDRAWAL_PROGRESS_STAGES = exports.INITIAL_AMOUNT_UI_PROGRESS = void 0;
|
|
5
|
-
const index_js_1 = require("../types/index.cjs");
|
|
6
|
-
const orderTypes_js_1 = require("../utils/orderTypes.cjs");
|
|
7
|
-
const perpsConfig_js_1 = require("./perpsConfig.cjs");
|
|
8
|
-
// Network constants
|
|
9
|
-
exports.ARBITRUM_MAINNET_CHAIN_ID_HEX = '0xa4b1';
|
|
10
|
-
exports.ARBITRUM_MAINNET_CHAIN_ID = '42161';
|
|
11
|
-
exports.ARBITRUM_TESTNET_CHAIN_ID = '421614';
|
|
12
|
-
exports.ARBITRUM_MAINNET_CAIP_CHAIN_ID = `eip155:${exports.ARBITRUM_MAINNET_CHAIN_ID}`;
|
|
13
|
-
exports.ARBITRUM_TESTNET_CAIP_CHAIN_ID = `eip155:${exports.ARBITRUM_TESTNET_CHAIN_ID}`;
|
|
14
|
-
// Hyperliquid chain constants
|
|
15
|
-
exports.HYPERLIQUID_MAINNET_CHAIN_ID = '0x3e7'; // 999 in decimal
|
|
16
|
-
exports.HYPERLIQUID_TESTNET_CHAIN_ID = '0x3e6'; // 998 in decimal (assumed)
|
|
17
|
-
exports.HYPERLIQUID_MAINNET_CAIP_CHAIN_ID = 'eip155:999';
|
|
18
|
-
exports.HYPERLIQUID_TESTNET_CAIP_CHAIN_ID = 'eip155:998';
|
|
19
|
-
exports.HYPERLIQUID_NETWORK_NAME = 'Hyperliquid';
|
|
20
|
-
/**
|
|
21
|
-
* Return the canonical snapshot identity: main first, then unique DEX ids.
|
|
22
|
-
*
|
|
23
|
-
* @param dexes - DEX identifiers to canonicalize.
|
|
24
|
-
* @returns The canonical DEX identifiers.
|
|
25
|
-
*/
|
|
26
|
-
function canonicalizeHyperLiquidDexes(dexes) {
|
|
27
|
-
const additionalDexes = new Set(dexes);
|
|
28
|
-
additionalDexes.delete('main');
|
|
29
|
-
return ['main', ...Array.from(additionalDexes).sort()];
|
|
30
|
-
}
|
|
31
|
-
exports.canonicalizeHyperLiquidDexes = canonicalizeHyperLiquidDexes;
|
|
32
|
-
// Token constants
|
|
33
|
-
exports.USDC_SYMBOL = 'USDC';
|
|
34
|
-
exports.USDC_NAME = 'USD Coin';
|
|
35
|
-
exports.USDC_DECIMALS = 6;
|
|
36
|
-
exports.TOKEN_DECIMALS = 18;
|
|
37
|
-
// Network constants
|
|
38
|
-
exports.ARBITRUM_SEPOLIA_CHAIN_ID = '0x66eee'; // 421614 in decimal
|
|
39
|
-
// USDC token addresses
|
|
40
|
-
exports.USDC_ETHEREUM_MAINNET_ADDRESS = '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48';
|
|
41
|
-
exports.USDC_ARBITRUM_MAINNET_ADDRESS = '0xaf88d065e77c8cC2239327C5EDb3A432268e5831';
|
|
42
|
-
exports.USDC_ARBITRUM_TESTNET_ADDRESS = '0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d';
|
|
43
|
-
// USDC token icon URL using MetaMask's official Token Icons API
|
|
44
|
-
// Format: https://static.cx.metamask.io/api/v1/tokenIcons/{chainId}/{contractAddress}.png
|
|
45
|
-
// This URL follows the same pattern used throughout MetaMask (bridges, swaps, etc.)
|
|
46
|
-
exports.USDC_TOKEN_ICON_URL = `https://static.cx.metamask.io/api/v1/tokenIcons/1/${exports.USDC_ETHEREUM_MAINNET_ADDRESS}.png`;
|
|
47
|
-
// WebSocket endpoints
|
|
48
|
-
exports.HYPERLIQUID_ENDPOINTS = {
|
|
49
|
-
mainnet: 'wss://api.hyperliquid.xyz/ws',
|
|
50
|
-
testnet: 'wss://api.hyperliquid-testnet.xyz/ws',
|
|
51
|
-
};
|
|
52
|
-
// Asset icons base URL (HyperLiquid CDN - fallback source)
|
|
53
|
-
exports.HYPERLIQUID_ASSET_ICONS_BASE_URL = 'https://app.hyperliquid.xyz/coins/';
|
|
54
|
-
// MetaMask-hosted Perps asset icons (primary source)
|
|
55
|
-
// Assets uploaded to: https://github.com/MetaMask/contract-metadata/tree/master/icons/eip155:999
|
|
56
|
-
// HIP-3 assets use format: hip3:dex_SYMBOL.svg (e.g., hip3:xyz_AAPL.svg)
|
|
57
|
-
// Regular assets use format: SYMBOL.svg (e.g., BTC.svg)
|
|
58
|
-
exports.METAMASK_PERPS_ICONS_BASE_URL = 'https://raw.githubusercontent.com/MetaMask/contract-metadata/master/icons/eip155:999/';
|
|
59
|
-
// Asset configurations for multichain abstraction
|
|
60
|
-
exports.HYPERLIQUID_ASSET_CONFIGS = {
|
|
61
|
-
usdc: {
|
|
62
|
-
mainnet: `${exports.ARBITRUM_MAINNET_CAIP_CHAIN_ID}/erc20:0xaf88d065e77c8cC2239327C5EDb3A432268e5831/default`,
|
|
63
|
-
testnet: `${exports.ARBITRUM_TESTNET_CAIP_CHAIN_ID}/erc20:0x75faf114eafb1BDbe2F0316DF893fd58CE46AA4d/default`,
|
|
64
|
-
},
|
|
65
|
-
};
|
|
66
|
-
// HyperLiquid bridge contract addresses for direct USDC deposits
|
|
67
|
-
// These are the official bridge contracts where USDC must be sent to credit user's HyperLiquid account
|
|
68
|
-
exports.HYPERLIQUID_BRIDGE_CONTRACTS = {
|
|
69
|
-
mainnet: {
|
|
70
|
-
chainId: exports.ARBITRUM_MAINNET_CAIP_CHAIN_ID,
|
|
71
|
-
contractAddress: '0x2df1c51e09aecf9cacb7bc98cb1742757f163df7',
|
|
72
|
-
},
|
|
73
|
-
testnet: {
|
|
74
|
-
chainId: exports.ARBITRUM_TESTNET_CAIP_CHAIN_ID,
|
|
75
|
-
contractAddress: '0x08cfc1B6b2dCF36A1480b99353A354AA8AC56f89',
|
|
76
|
-
},
|
|
77
|
-
};
|
|
78
|
-
// SDK transport configuration
|
|
79
|
-
exports.HYPERLIQUID_TRANSPORT_CONFIG = {
|
|
80
|
-
timeout: 10000,
|
|
81
|
-
keepAlive: { interval: 30000 },
|
|
82
|
-
reconnect: {
|
|
83
|
-
maxRetries: 5,
|
|
84
|
-
connectionTimeout: 10000,
|
|
85
|
-
},
|
|
86
|
-
};
|
|
87
|
-
// Trading configuration constants
|
|
88
|
-
exports.TRADING_DEFAULTS = {
|
|
89
|
-
leverage: 3, // 3x default leverage
|
|
90
|
-
marginPercent: 10, // 10% fixed margin default
|
|
91
|
-
takeProfitPercent: 0.3, // 30% take profit
|
|
92
|
-
stopLossPercent: 0.1, // 10% stop loss
|
|
93
|
-
amount: {
|
|
94
|
-
mainnet: 10, // $10 minimum order size
|
|
95
|
-
testnet: 10, // $10 minimum order size
|
|
96
|
-
},
|
|
97
|
-
};
|
|
98
|
-
// Fee configuration
|
|
99
|
-
// Note: These are base rates (Tier 0, no discounts)
|
|
100
|
-
// Actual fees will be calculated based on user's volume tier and staking
|
|
101
|
-
exports.FEE_RATES = {
|
|
102
|
-
taker: 0.00045, // 0.045% - Market orders and aggressive limit orders
|
|
103
|
-
maker: 0.00015, // 0.015% - Limit orders that add liquidity
|
|
104
|
-
};
|
|
105
|
-
/**
|
|
106
|
-
* HIP-3 dynamic fee calculation configuration
|
|
107
|
-
*
|
|
108
|
-
* HIP-3 (builder-deployed) perpetual markets have variable fees based on:
|
|
109
|
-
* 1. deployerFeeScale - Per-DEX fee multiplier (fetched from perpDexs API)
|
|
110
|
-
* 2. growthMode - Per-asset 90% fee reduction (fetched from meta API)
|
|
111
|
-
*
|
|
112
|
-
* Fee Formula (from HyperLiquid docs):
|
|
113
|
-
* - scaleIfHip3 = deployerFeeScale < 1 ? deployerFeeScale + 1 : deployerFeeScale * 2
|
|
114
|
-
* - growthModeScale = growthMode ? 0.1 : 1
|
|
115
|
-
* - finalRate = baseRate * scaleIfHip3 * growthModeScale
|
|
116
|
-
*
|
|
117
|
-
* Example: For xyz:TSLA with deployerFeeScale=1.0 and growthMode="enabled":
|
|
118
|
-
* - scaleIfHip3 = 1.0 * 2 = 2.0
|
|
119
|
-
* - growthModeScale = 0.1 (90% reduction)
|
|
120
|
-
* - Final multiplier = 2.0 * 0.1 = 0.2 (effectively 80% off standard 2x HIP-3 fees)
|
|
121
|
-
*
|
|
122
|
-
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees#fee-formula-for-developers
|
|
123
|
-
* @see parseAssetName() in HyperLiquidProvider for HIP-3 asset detection
|
|
124
|
-
*/
|
|
125
|
-
exports.HIP3_FEE_CONFIG = {
|
|
126
|
-
/**
|
|
127
|
-
* Growth Mode multiplier - 90% fee reduction for assets in growth phase
|
|
128
|
-
* This is a protocol constant from HyperLiquid's fee formula
|
|
129
|
-
*/
|
|
130
|
-
GrowthModeScale: 0.1,
|
|
131
|
-
/**
|
|
132
|
-
* Default deployerFeeScale when API is unavailable
|
|
133
|
-
* Most HIP-3 DEXs use 1.0, which results in 2x base fees
|
|
134
|
-
*/
|
|
135
|
-
DefaultDeployerFeeScale: 1.0,
|
|
136
|
-
/**
|
|
137
|
-
* Cache TTL for perpDexs data (5 minutes)
|
|
138
|
-
* Fee scales rarely change, so longer cache is acceptable
|
|
139
|
-
*/
|
|
140
|
-
PerpDexsCacheTtlMs: 5 * 60 * 1000,
|
|
141
|
-
/**
|
|
142
|
-
* @deprecated Use dynamic calculation via calculateHip3FeeMultiplier()
|
|
143
|
-
* Kept for backwards compatibility during migration
|
|
144
|
-
*/
|
|
145
|
-
FeeMultiplier: 2,
|
|
146
|
-
};
|
|
147
|
-
const BUILDER_FEE_MAX_FEE_DECIMAL = 0.001;
|
|
148
|
-
// Builder fee configuration
|
|
149
|
-
exports.BUILDER_FEE_CONFIG = {
|
|
150
|
-
// Test builder wallet
|
|
151
|
-
TestnetBuilder: '0x724e57771ba749650875bd8adb2e29a85d0cacfa',
|
|
152
|
-
// Production builder wallet
|
|
153
|
-
MainnetBuilder: '0xe95a5e31904e005066614247d309e00d8ad753aa',
|
|
154
|
-
// Fee in decimal (10 bp = 0.1%)
|
|
155
|
-
MaxFeeDecimal: BUILDER_FEE_MAX_FEE_DECIMAL,
|
|
156
|
-
MaxFeeTenthsBps: BUILDER_FEE_MAX_FEE_DECIMAL * 100000,
|
|
157
|
-
MaxFeeRate: `${(BUILDER_FEE_MAX_FEE_DECIMAL * 100)
|
|
158
|
-
.toFixed(4)
|
|
159
|
-
.replace(/\.?0+$/u, '')}%`,
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* Strategies that HyperLiquid can execute for its routed perp markets.
|
|
163
|
-
* Providers own this declaration so clients never infer support from a
|
|
164
|
-
* provider name.
|
|
165
|
-
*/
|
|
166
|
-
exports.HYPERLIQUID_ORDER_CAPABILITIES = Object.freeze({
|
|
167
|
-
status: 'ready',
|
|
168
|
-
providerId: perpsConfig_js_1.PROVIDER_CONFIG.DefaultProvider,
|
|
169
|
-
supportedStrategies: Object.freeze([...orderTypes_js_1.STRATEGY_ORDER_TYPES]),
|
|
170
|
-
});
|
|
171
|
-
// Referral code configuration
|
|
172
|
-
exports.REFERRAL_CONFIG = {
|
|
173
|
-
// Production referral code
|
|
174
|
-
MainnetCode: 'MMCSI',
|
|
175
|
-
// Development/testnet referral code
|
|
176
|
-
TestnetCode: 'MMCSITEST',
|
|
177
|
-
};
|
|
178
|
-
// Deposit constants
|
|
179
|
-
exports.DEPOSIT_CONFIG = {
|
|
180
|
-
EstimatedGasLimit: 100000, // Estimated gas limit for bridge deposit
|
|
181
|
-
DefaultSlippage: 1, // 1% default slippage for bridge quotes
|
|
182
|
-
BridgeQuoteTimeout: 1000, // 1 second timeout for bridge quotes
|
|
183
|
-
RefreshRate: 30000, // 30 seconds quote refresh rate
|
|
184
|
-
EstimatedTime: {
|
|
185
|
-
DirectDeposit: '3-5 seconds', // Direct USDC deposit on Arbitrum
|
|
186
|
-
SameChainSwap: '30-60 seconds', // Swap on same chain before deposit
|
|
187
|
-
},
|
|
188
|
-
};
|
|
189
|
-
// Withdrawal constants (HyperLiquid-specific)
|
|
190
|
-
exports.HYPERLIQUID_WITHDRAWAL_MINUTES = 5; // HyperLiquid withdrawal processing time in minutes
|
|
191
|
-
// Configuration helpers
|
|
192
|
-
function getWebSocketEndpoint(isTestnet) {
|
|
193
|
-
return isTestnet
|
|
194
|
-
? exports.HYPERLIQUID_ENDPOINTS.testnet
|
|
195
|
-
: exports.HYPERLIQUID_ENDPOINTS.mainnet;
|
|
196
|
-
}
|
|
197
|
-
exports.getWebSocketEndpoint = getWebSocketEndpoint;
|
|
198
|
-
function getChainId(isTestnet) {
|
|
199
|
-
return isTestnet ? exports.ARBITRUM_TESTNET_CHAIN_ID : exports.ARBITRUM_MAINNET_CHAIN_ID;
|
|
200
|
-
}
|
|
201
|
-
exports.getChainId = getChainId;
|
|
202
|
-
function getCaipChainId(isTestnet) {
|
|
203
|
-
const network = isTestnet ? 'testnet' : 'mainnet';
|
|
204
|
-
return exports.HYPERLIQUID_BRIDGE_CONTRACTS[network].chainId;
|
|
205
|
-
}
|
|
206
|
-
exports.getCaipChainId = getCaipChainId;
|
|
207
|
-
function getBridgeInfo(isTestnet) {
|
|
208
|
-
const network = isTestnet ? 'testnet' : 'mainnet';
|
|
209
|
-
return exports.HYPERLIQUID_BRIDGE_CONTRACTS[network];
|
|
210
|
-
}
|
|
211
|
-
exports.getBridgeInfo = getBridgeInfo;
|
|
212
|
-
function getSupportedAssets(isTestnet) {
|
|
213
|
-
const network = isTestnet ? 'testnet' : 'mainnet';
|
|
214
|
-
return Object.values(exports.HYPERLIQUID_ASSET_CONFIGS).map((config) => config[network]);
|
|
215
|
-
}
|
|
216
|
-
exports.getSupportedAssets = getSupportedAssets;
|
|
217
|
-
// CAIP asset namespace constants
|
|
218
|
-
exports.CAIP_ASSET_NAMESPACES = {
|
|
219
|
-
Erc20: 'erc20',
|
|
220
|
-
};
|
|
221
|
-
/**
|
|
222
|
-
* HyperLiquid protocol-specific configuration
|
|
223
|
-
* Contains constants specific to HyperLiquid's perps exchange
|
|
224
|
-
*/
|
|
225
|
-
exports.HYPERLIQUID_CONFIG = {
|
|
226
|
-
// Exchange name used in predicted funding data
|
|
227
|
-
// HyperLiquid uses 'HlPerp' as their perps exchange identifier
|
|
228
|
-
ExchangeName: 'HlPerp',
|
|
229
|
-
// Maximum allowed deviation of the market (mid) price from the oracle (reference)
|
|
230
|
-
// price before HyperLiquid rejects orders. HyperLiquid enforces "Order price cannot
|
|
231
|
-
// be more than 95% away from the reference price", which makes markets — most often
|
|
232
|
-
// HIP-3 builder-deployed ones — temporarily untradable when the mid price drifts past
|
|
233
|
-
// this limit. Expressed as a decimal fraction (0.95 = 95%).
|
|
234
|
-
// Protocol rule, not a UI warning threshold (see VALIDATION_THRESHOLDS.PriceDeviation).
|
|
235
|
-
OraclePriceDeviationLimit: 0.95,
|
|
236
|
-
};
|
|
237
|
-
/**
|
|
238
|
-
* HIP-3 multi-DEX asset ID calculation constants
|
|
239
|
-
* Per HIP-3-IMPLEMENTATION.md:
|
|
240
|
-
* - Main DEX: assetId = index (0, 1, 2, ...)
|
|
241
|
-
* - HIP-3 DEX: assetId = BASE_ASSET_ID + (perpDexIndex × DEX_MULTIPLIER) + index
|
|
242
|
-
*
|
|
243
|
-
* This formula enables proper order routing across multiple DEXs:
|
|
244
|
-
* - Main DEX (perpDexIndex=0): Uses index directly (BTC=0, ETH=1, SOL=2, etc.)
|
|
245
|
-
* - xyz DEX (perpDexIndex=1): 100000 + (1 × 10000) + index = 110000-110999
|
|
246
|
-
* - abc DEX (perpDexIndex=2): 100000 + (2 × 10000) + index = 120000-120999
|
|
247
|
-
*
|
|
248
|
-
* Supports up to 10 HIP-3 DEXs with 10000 assets each.
|
|
249
|
-
*/
|
|
250
|
-
exports.HIP3_ASSET_ID_CONFIG = {
|
|
251
|
-
// Base offset for HIP-3 asset IDs (100000)
|
|
252
|
-
// Ensures HIP-3 asset IDs don't conflict with main DEX indices
|
|
253
|
-
BaseAssetId: 100000,
|
|
254
|
-
// Multiplier for DEX index in asset ID calculation (10000)
|
|
255
|
-
// Allocates 10000 asset ID slots per DEX (0-9999)
|
|
256
|
-
DexMultiplier: 10000,
|
|
257
|
-
};
|
|
258
|
-
/**
|
|
259
|
-
* Basis points conversion constant
|
|
260
|
-
* 1 basis point (bp) = 0.01% = 0.0001 as decimal
|
|
261
|
-
* Used for fee discount calculations (e.g., 6500 bps = 65%)
|
|
262
|
-
*/
|
|
263
|
-
exports.BASIS_POINTS_DIVISOR = 10000;
|
|
264
|
-
/**
|
|
265
|
-
* Offset added to spot market pair index to derive the spot asset ID
|
|
266
|
-
* used in HyperLiquid order routing.
|
|
267
|
-
* Per HyperLiquid protocol: spotAssetId = SPOT_ASSET_ID_OFFSET + pairIndex
|
|
268
|
-
*/
|
|
269
|
-
exports.SPOT_ASSET_ID_OFFSET = 10000;
|
|
270
|
-
/**
|
|
271
|
-
* HIP-3 asset market type classifications (PRODUCTION DEFAULT)
|
|
272
|
-
*
|
|
273
|
-
* This is the production default configuration, can be overridden via feature flag
|
|
274
|
-
* (remoteFeatureFlags.perpsAssetMarketTypes) for dynamic control.
|
|
275
|
-
*
|
|
276
|
-
* Maps asset symbols (e.g., "xyz:TSLA") to their market type for badge display.
|
|
277
|
-
*
|
|
278
|
-
* Market type determines the badge shown in the UI:
|
|
279
|
-
* - 'stock': Individual stocks (TSLA, NVDA, AAPL, etc.)
|
|
280
|
-
* - 'pre-ipo': Pre-IPO assets not yet publicly listed
|
|
281
|
-
* - 'index': Market indices (SP500, JP225, VIX, etc.)
|
|
282
|
-
* - 'etf': Exchange-traded funds (EWY, EWJ, USAR, etc.)
|
|
283
|
-
* - 'commodity': Commodities (GOLD, SILVER, CL, etc.)
|
|
284
|
-
* - 'forex': Forex pairs (EUR, JPY, DXY)
|
|
285
|
-
* - 'crypto': Explicitly categorized crypto assets
|
|
286
|
-
* - undefined: No badge for unmapped assets
|
|
287
|
-
*
|
|
288
|
-
* Format: 'dex:SYMBOL' → MarketType
|
|
289
|
-
* This allows flexible per-asset classification.
|
|
290
|
-
* Assets not listed here will have no market type (undefined).
|
|
291
|
-
*/
|
|
292
|
-
exports.HIP3_ASSET_MARKET_TYPES = {
|
|
293
|
-
// xyz DEX - Stocks (US)
|
|
294
|
-
'xyz:TSLA': index_js_1.MarketCategory.Stock,
|
|
295
|
-
'xyz:NVDA': index_js_1.MarketCategory.Stock,
|
|
296
|
-
'xyz:INTC': index_js_1.MarketCategory.Stock,
|
|
297
|
-
'xyz:MU': index_js_1.MarketCategory.Stock,
|
|
298
|
-
'xyz:CRCL': index_js_1.MarketCategory.Stock,
|
|
299
|
-
'xyz:HOOD': index_js_1.MarketCategory.Stock,
|
|
300
|
-
'xyz:SNDK': index_js_1.MarketCategory.Stock,
|
|
301
|
-
'xyz:GOOGL': index_js_1.MarketCategory.Stock,
|
|
302
|
-
'xyz:COIN': index_js_1.MarketCategory.Stock,
|
|
303
|
-
'xyz:ORCL': index_js_1.MarketCategory.Stock,
|
|
304
|
-
'xyz:AMZN': index_js_1.MarketCategory.Stock,
|
|
305
|
-
'xyz:PLTR': index_js_1.MarketCategory.Stock,
|
|
306
|
-
'xyz:AAPL': index_js_1.MarketCategory.Stock,
|
|
307
|
-
'xyz:META': index_js_1.MarketCategory.Stock,
|
|
308
|
-
'xyz:AMD': index_js_1.MarketCategory.Stock,
|
|
309
|
-
'xyz:MSFT': index_js_1.MarketCategory.Stock,
|
|
310
|
-
'xyz:BABA': index_js_1.MarketCategory.Stock,
|
|
311
|
-
'xyz:RIVN': index_js_1.MarketCategory.Stock,
|
|
312
|
-
'xyz:NFLX': index_js_1.MarketCategory.Stock,
|
|
313
|
-
'xyz:COST': index_js_1.MarketCategory.Stock,
|
|
314
|
-
'xyz:LLY': index_js_1.MarketCategory.Stock,
|
|
315
|
-
'xyz:TSM': index_js_1.MarketCategory.Stock,
|
|
316
|
-
'xyz:MSTR': index_js_1.MarketCategory.Stock,
|
|
317
|
-
'xyz:CRWV': index_js_1.MarketCategory.Stock,
|
|
318
|
-
'xyz:GME': index_js_1.MarketCategory.Stock,
|
|
319
|
-
'xyz:HIMS': index_js_1.MarketCategory.Stock,
|
|
320
|
-
'xyz:USAR': index_js_1.MarketCategory.Stock,
|
|
321
|
-
'xyz:DKNG': index_js_1.MarketCategory.Stock,
|
|
322
|
-
'xyz:BIRD': index_js_1.MarketCategory.Stock,
|
|
323
|
-
'xyz:RKLB': index_js_1.MarketCategory.Stock,
|
|
324
|
-
'xyz:MRVL': index_js_1.MarketCategory.Stock,
|
|
325
|
-
'xyz:ZM': index_js_1.MarketCategory.Stock,
|
|
326
|
-
'xyz:EBAY': index_js_1.MarketCategory.Stock,
|
|
327
|
-
'xyz:PURRDAT': index_js_1.MarketCategory.Stock,
|
|
328
|
-
'xyz:ARM': index_js_1.MarketCategory.Stock,
|
|
329
|
-
'xyz:BX': index_js_1.MarketCategory.Stock,
|
|
330
|
-
'xyz:LITE': index_js_1.MarketCategory.Stock,
|
|
331
|
-
'xyz:CBRS': index_js_1.MarketCategory.Stock,
|
|
332
|
-
'xyz:SPCX': index_js_1.MarketCategory.Stock,
|
|
333
|
-
// xyz DEX - Stocks (Korea)
|
|
334
|
-
'xyz:SKHX': index_js_1.MarketCategory.Stock,
|
|
335
|
-
'xyz:SMSN': index_js_1.MarketCategory.Stock,
|
|
336
|
-
'xyz:HYUNDAI': index_js_1.MarketCategory.Stock,
|
|
337
|
-
// xyz DEX - Stocks (Japan)
|
|
338
|
-
'xyz:SOFTBANK': index_js_1.MarketCategory.Stock,
|
|
339
|
-
'xyz:KIOXIA': index_js_1.MarketCategory.Stock,
|
|
340
|
-
// xyz DEX - Pre-IPO
|
|
341
|
-
'xyz:IPOP': index_js_1.MarketCategory.PreIpo,
|
|
342
|
-
// xyz DEX - Indices
|
|
343
|
-
'xyz:SP500': index_js_1.MarketCategory.Index,
|
|
344
|
-
'xyz:XYZ100': index_js_1.MarketCategory.Index,
|
|
345
|
-
'xyz:JP225': index_js_1.MarketCategory.Index,
|
|
346
|
-
'xyz:KR200': index_js_1.MarketCategory.Index,
|
|
347
|
-
'xyz:VIX': index_js_1.MarketCategory.Index,
|
|
348
|
-
// xyz DEX - ETFs
|
|
349
|
-
'xyz:EWY': index_js_1.MarketCategory.Etf,
|
|
350
|
-
'xyz:EWJ': index_js_1.MarketCategory.Etf,
|
|
351
|
-
'xyz:EWT': index_js_1.MarketCategory.Etf,
|
|
352
|
-
'xyz:EWZ': index_js_1.MarketCategory.Etf,
|
|
353
|
-
'xyz:URNM': index_js_1.MarketCategory.Etf,
|
|
354
|
-
'xyz:DRAM': index_js_1.MarketCategory.Etf,
|
|
355
|
-
'xyz:XLE': index_js_1.MarketCategory.Etf,
|
|
356
|
-
// xyz DEX - Commodities
|
|
357
|
-
'xyz:GOLD': index_js_1.MarketCategory.Commodity,
|
|
358
|
-
'xyz:SILVER': index_js_1.MarketCategory.Commodity,
|
|
359
|
-
'xyz:CL': index_js_1.MarketCategory.Commodity,
|
|
360
|
-
'xyz:WTIOIL': index_js_1.MarketCategory.Commodity,
|
|
361
|
-
'xyz:COPPER': index_js_1.MarketCategory.Commodity,
|
|
362
|
-
'xyz:ALUMINIUM': index_js_1.MarketCategory.Commodity,
|
|
363
|
-
'xyz:URANIUM': index_js_1.MarketCategory.Commodity,
|
|
364
|
-
'xyz:NATGAS': index_js_1.MarketCategory.Commodity,
|
|
365
|
-
'xyz:PLATINUM': index_js_1.MarketCategory.Commodity,
|
|
366
|
-
'xyz:PALLADIUM': index_js_1.MarketCategory.Commodity,
|
|
367
|
-
'xyz:BRENTOIL': index_js_1.MarketCategory.Commodity,
|
|
368
|
-
// xyz DEX - Forex
|
|
369
|
-
'xyz:EUR': index_js_1.MarketCategory.Forex,
|
|
370
|
-
'xyz:JPY': index_js_1.MarketCategory.Forex,
|
|
371
|
-
'xyz:GBP': index_js_1.MarketCategory.Forex,
|
|
372
|
-
'xyz:DXY': index_js_1.MarketCategory.Forex,
|
|
373
|
-
};
|
|
374
|
-
/**
|
|
375
|
-
* Human-readable market names keyed by HyperLiquid asset symbol.
|
|
376
|
-
*
|
|
377
|
-
* HyperLiquid does NOT expose a human-readable name per market: the `meta`
|
|
378
|
-
* universe only returns the ticker (`BTC`, `xyz:TSLA`), and `perpDexs` only
|
|
379
|
-
* exposes a `fullName` for the DEX/venue, not the individual asset. This map is
|
|
380
|
-
* therefore maintained client-side so that clients (mobile, extension) can:
|
|
381
|
-
* - match markets by full name in search ("Bitcoin", "Apple", "Gold"), and
|
|
382
|
-
* - display the full name alongside / instead of the ticker.
|
|
383
|
-
*
|
|
384
|
-
* Keys follow the same convention as {@link HIP3_ASSET_MARKET_TYPES}: bare
|
|
385
|
-
* `SYMBOL` for main-DEX crypto and `dex:SYMBOL` for HIP-3 markets. Use
|
|
386
|
-
* {@link getHyperLiquidAssetName} to resolve a name with a safe fallback to the
|
|
387
|
-
* ticker for unmapped assets.
|
|
388
|
-
*
|
|
389
|
-
* This list is intentionally curated (not exhaustive): unmapped assets simply
|
|
390
|
-
* fall back to their ticker, which matches prior behavior. Add entries as needed.
|
|
391
|
-
*/
|
|
392
|
-
exports.HYPERLIQUID_ASSET_NAMES = {
|
|
393
|
-
// Main DEX - Crypto majors
|
|
394
|
-
BTC: 'Bitcoin',
|
|
395
|
-
ETH: 'Ethereum',
|
|
396
|
-
SOL: 'Solana',
|
|
397
|
-
XRP: 'XRP',
|
|
398
|
-
BNB: 'BNB',
|
|
399
|
-
DOGE: 'Dogecoin',
|
|
400
|
-
ADA: 'Cardano',
|
|
401
|
-
AVAX: 'Avalanche',
|
|
402
|
-
LINK: 'Chainlink',
|
|
403
|
-
LTC: 'Litecoin',
|
|
404
|
-
DOT: 'Polkadot',
|
|
405
|
-
BCH: 'Bitcoin Cash',
|
|
406
|
-
TRX: 'TRON',
|
|
407
|
-
MATIC: 'Polygon',
|
|
408
|
-
ARB: 'Arbitrum',
|
|
409
|
-
OP: 'Optimism',
|
|
410
|
-
SUI: 'Sui',
|
|
411
|
-
APT: 'Aptos',
|
|
412
|
-
ATOM: 'Cosmos',
|
|
413
|
-
NEAR: 'NEAR Protocol',
|
|
414
|
-
INJ: 'Injective',
|
|
415
|
-
TIA: 'Celestia',
|
|
416
|
-
SEI: 'Sei',
|
|
417
|
-
UNI: 'Uniswap',
|
|
418
|
-
AAVE: 'Aave',
|
|
419
|
-
MKR: 'Maker',
|
|
420
|
-
CRV: 'Curve DAO',
|
|
421
|
-
LDO: 'Lido DAO',
|
|
422
|
-
PEPE: 'Pepe',
|
|
423
|
-
WIF: 'dogwifhat',
|
|
424
|
-
BONK: 'Bonk',
|
|
425
|
-
SHIB: 'Shiba Inu',
|
|
426
|
-
ETC: 'Ethereum Classic',
|
|
427
|
-
FIL: 'Filecoin',
|
|
428
|
-
HBAR: 'Hedera',
|
|
429
|
-
ICP: 'Internet Computer',
|
|
430
|
-
STX: 'Stacks',
|
|
431
|
-
RUNE: 'THORChain',
|
|
432
|
-
TON: 'Toncoin',
|
|
433
|
-
KAS: 'Kaspa',
|
|
434
|
-
FET: 'Fetch.ai',
|
|
435
|
-
ENA: 'Ethena',
|
|
436
|
-
JUP: 'Jupiter',
|
|
437
|
-
PYTH: 'Pyth Network',
|
|
438
|
-
JTO: 'Jito',
|
|
439
|
-
STRK: 'Starknet',
|
|
440
|
-
BLUR: 'Blur',
|
|
441
|
-
GMX: 'GMX',
|
|
442
|
-
DYDX: 'dYdX',
|
|
443
|
-
HYPE: 'Hyperliquid',
|
|
444
|
-
// xyz DEX - Stocks (US)
|
|
445
|
-
'xyz:TSLA': 'Tesla',
|
|
446
|
-
'xyz:NVDA': 'NVIDIA',
|
|
447
|
-
'xyz:INTC': 'Intel',
|
|
448
|
-
'xyz:MU': 'Micron Technology',
|
|
449
|
-
'xyz:CRCL': 'Circle',
|
|
450
|
-
'xyz:HOOD': 'Robinhood',
|
|
451
|
-
'xyz:SNDK': 'SanDisk',
|
|
452
|
-
'xyz:GOOGL': 'Alphabet (Google)',
|
|
453
|
-
'xyz:COIN': 'Coinbase',
|
|
454
|
-
'xyz:ORCL': 'Oracle',
|
|
455
|
-
'xyz:AMZN': 'Amazon',
|
|
456
|
-
'xyz:PLTR': 'Palantir',
|
|
457
|
-
'xyz:AAPL': 'Apple',
|
|
458
|
-
'xyz:META': 'Meta Platforms',
|
|
459
|
-
'xyz:AMD': 'AMD',
|
|
460
|
-
'xyz:MSFT': 'Microsoft',
|
|
461
|
-
'xyz:BABA': 'Alibaba',
|
|
462
|
-
'xyz:RIVN': 'Rivian',
|
|
463
|
-
'xyz:NFLX': 'Netflix',
|
|
464
|
-
'xyz:COST': 'Costco',
|
|
465
|
-
'xyz:LLY': 'Eli Lilly',
|
|
466
|
-
'xyz:TSM': 'Taiwan Semiconductor',
|
|
467
|
-
'xyz:MSTR': 'Strategy (MicroStrategy)',
|
|
468
|
-
'xyz:CRWV': 'CoreWeave',
|
|
469
|
-
'xyz:GME': 'GameStop',
|
|
470
|
-
'xyz:HIMS': 'Hims & Hers',
|
|
471
|
-
'xyz:USAR': 'USA Rare Earth',
|
|
472
|
-
'xyz:DKNG': 'DraftKings',
|
|
473
|
-
'xyz:RKLB': 'Rocket Lab',
|
|
474
|
-
'xyz:MRVL': 'Marvell',
|
|
475
|
-
'xyz:ZM': 'Zoom',
|
|
476
|
-
'xyz:EBAY': 'eBay',
|
|
477
|
-
'xyz:ARM': 'Arm Holdings',
|
|
478
|
-
'xyz:BX': 'Blackstone',
|
|
479
|
-
'xyz:LITE': 'Lumentum',
|
|
480
|
-
// xyz DEX - Stocks (Korea)
|
|
481
|
-
'xyz:SKHX': 'SK Hynix',
|
|
482
|
-
'xyz:SMSN': 'Samsung Electronics',
|
|
483
|
-
'xyz:HYUNDAI': 'Hyundai Motor',
|
|
484
|
-
// xyz DEX - Stocks (Japan)
|
|
485
|
-
'xyz:SOFTBANK': 'SoftBank Group',
|
|
486
|
-
'xyz:KIOXIA': 'Kioxia',
|
|
487
|
-
// xyz DEX - Pre-IPO
|
|
488
|
-
'xyz:SPCX': 'SpaceX',
|
|
489
|
-
'xyz:CBRS': 'Cerebras',
|
|
490
|
-
'xyz:IPOP': 'Quantinuum',
|
|
491
|
-
// xyz DEX - Indices
|
|
492
|
-
'xyz:SP500': 'S&P 500',
|
|
493
|
-
'xyz:JP225': 'Nikkei 225',
|
|
494
|
-
'xyz:KR200': 'KOSPI 200',
|
|
495
|
-
'xyz:VIX': 'CBOE Volatility Index',
|
|
496
|
-
// xyz DEX - ETFs
|
|
497
|
-
'xyz:EWY': 'iShares MSCI South Korea ETF',
|
|
498
|
-
'xyz:EWJ': 'iShares MSCI Japan ETF',
|
|
499
|
-
'xyz:EWT': 'iShares MSCI Taiwan ETF',
|
|
500
|
-
'xyz:EWZ': 'iShares MSCI Brazil ETF',
|
|
501
|
-
'xyz:URNM': 'Sprott Uranium Miners ETF',
|
|
502
|
-
'xyz:XLE': 'Energy Select Sector SPDR Fund',
|
|
503
|
-
// xyz DEX - Commodities
|
|
504
|
-
'xyz:GOLD': 'Gold',
|
|
505
|
-
'xyz:SILVER': 'Silver',
|
|
506
|
-
'xyz:CL': 'Crude Oil',
|
|
507
|
-
'xyz:WTIOIL': 'WTI Crude Oil',
|
|
508
|
-
'xyz:COPPER': 'Copper',
|
|
509
|
-
'xyz:ALUMINIUM': 'Aluminium',
|
|
510
|
-
'xyz:URANIUM': 'Uranium',
|
|
511
|
-
'xyz:NATGAS': 'Natural Gas',
|
|
512
|
-
'xyz:PLATINUM': 'Platinum',
|
|
513
|
-
'xyz:PALLADIUM': 'Palladium',
|
|
514
|
-
'xyz:BRENTOIL': 'Brent Crude Oil',
|
|
515
|
-
// xyz DEX - Forex
|
|
516
|
-
'xyz:EUR': 'Euro',
|
|
517
|
-
'xyz:JPY': 'Japanese Yen',
|
|
518
|
-
'xyz:GBP': 'British Pound',
|
|
519
|
-
'xyz:DXY': 'US Dollar Index',
|
|
520
|
-
};
|
|
521
|
-
/**
|
|
522
|
-
* Resolve the human-readable name for a HyperLiquid market.
|
|
523
|
-
*
|
|
524
|
-
* Falls back to the ticker symbol when the asset is not present in
|
|
525
|
-
* {@link HYPERLIQUID_ASSET_NAMES}, so callers always receive a displayable
|
|
526
|
-
* string and unmapped assets keep their prior behavior.
|
|
527
|
-
*
|
|
528
|
-
* @param symbol - HyperLiquid asset symbol (bare `SYMBOL` for main-DEX crypto,
|
|
529
|
-
* `dex:SYMBOL` for HIP-3 markets).
|
|
530
|
-
* @param names - Name map to look up against (defaults to the bundled
|
|
531
|
-
* {@link HYPERLIQUID_ASSET_NAMES}); injectable for testing/overrides.
|
|
532
|
-
* @returns The human-readable name, or the symbol itself when unmapped.
|
|
533
|
-
*/
|
|
534
|
-
function getHyperLiquidAssetName(symbol, names = exports.HYPERLIQUID_ASSET_NAMES) {
|
|
535
|
-
return names[symbol] ?? symbol;
|
|
536
|
-
}
|
|
537
|
-
exports.getHyperLiquidAssetName = getHyperLiquidAssetName;
|
|
538
|
-
/**
|
|
539
|
-
* Testnet-specific HIP-3 DEX configuration
|
|
540
|
-
*
|
|
541
|
-
* On testnet, there are many HIP-3 DEXs (test deployments from various builders).
|
|
542
|
-
* Subscribing to all of them causes connection/subscription overload and instability.
|
|
543
|
-
* This configuration limits which DEXs are discovered and subscribed to on testnet.
|
|
544
|
-
*/
|
|
545
|
-
exports.TESTNET_HIP3_CONFIG = {
|
|
546
|
-
/**
|
|
547
|
-
* Allowed DEX names for testnet
|
|
548
|
-
* Empty array = main DEX only (no HIP-3 DEXs)
|
|
549
|
-
* Add specific DEX names to test with particular HIP-3 DEXs: ['testdex1', 'testdex2']
|
|
550
|
-
*/
|
|
551
|
-
EnabledDexs: ['xyz'],
|
|
552
|
-
/**
|
|
553
|
-
* Set to true to enable full HIP-3 discovery on testnet (not recommended)
|
|
554
|
-
* When false, only DEXs in ENABLED_DEXS are used
|
|
555
|
-
*/
|
|
556
|
-
AutoDiscoverAll: false,
|
|
557
|
-
};
|
|
558
|
-
/**
|
|
559
|
-
* Mainnet-specific HIP-3 DEX configuration
|
|
560
|
-
*
|
|
561
|
-
* On mainnet, DEX filtering is dynamically determined from the allowlist markets
|
|
562
|
-
* feature flag. This avoids hardcoding DEX names and ensures consistency with
|
|
563
|
-
* the market filtering logic.
|
|
564
|
-
*
|
|
565
|
-
* When AutoDiscoverAll is false and no allowlist is provided, only the main DEX is used.
|
|
566
|
-
* When an allowlist is provided, DEXs are extracted from the allowlist patterns.
|
|
567
|
-
*/
|
|
568
|
-
exports.MAINNET_HIP3_CONFIG = {
|
|
569
|
-
/**
|
|
570
|
-
* Set to true to enable full HIP-3 discovery on mainnet
|
|
571
|
-
* When false, DEXs are filtered based on the allowlist markets feature flag
|
|
572
|
-
* (recommended for production to reduce subscription overhead)
|
|
573
|
-
*/
|
|
574
|
-
AutoDiscoverAll: false,
|
|
575
|
-
};
|
|
576
|
-
/**
|
|
577
|
-
* HIP-3 margin management configuration
|
|
578
|
-
* Controls margin buffers and auto-rebalance behavior for HIP-3 DEXes with isolated margin
|
|
579
|
-
*
|
|
580
|
-
* Background: HyperLiquid validates spendableBalance >= totalRequiredMargin BEFORE reallocating
|
|
581
|
-
* existing locked margin. This requires temporary over-funding when increasing positions,
|
|
582
|
-
* followed by automatic cleanup to minimize locked capital.
|
|
583
|
-
*/
|
|
584
|
-
exports.HIP3_MARGIN_CONFIG = {
|
|
585
|
-
/**
|
|
586
|
-
* Margin buffer multiplier for fees and slippage (0.3% = multiply by 1.003)
|
|
587
|
-
* Covers HyperLiquid's max taker fee (0.035%) with comfortable margin
|
|
588
|
-
*/
|
|
589
|
-
BufferMultiplier: 1.003,
|
|
590
|
-
/**
|
|
591
|
-
* Desired buffer to keep on HIP-3 DEX after auto-rebalance (USDC amount)
|
|
592
|
-
* Small buffer allows quick follow-up orders without transfers
|
|
593
|
-
*/
|
|
594
|
-
RebalanceDesiredBuffer: 0.1,
|
|
595
|
-
/**
|
|
596
|
-
* Minimum excess threshold to trigger auto-rebalance (USDC amount)
|
|
597
|
-
* Prevents unnecessary transfers for tiny amounts
|
|
598
|
-
*/
|
|
599
|
-
RebalanceMinThreshold: 0.1,
|
|
600
|
-
};
|
|
601
|
-
// Progress bar constants
|
|
602
|
-
exports.INITIAL_AMOUNT_UI_PROGRESS = 10;
|
|
603
|
-
exports.WITHDRAWAL_PROGRESS_STAGES = [
|
|
604
|
-
25, 35, 45, 55, 65, 75, 85, 90, 95, 98,
|
|
605
|
-
];
|
|
606
|
-
exports.PROGRESS_BAR_COMPLETION_DELAY_MS = 500;
|
|
607
|
-
//# sourceMappingURL=hyperLiquidConfig.cjs.map
|