@metamask-previews/perps-controller 16.1.0-preview-abca9bcea → 17.0.0-preview-0a30e47
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 +35 -1
- package/README.md +17 -0
- package/dist/PerpsController-method-action-types.d.ts +1235 -0
- package/dist/PerpsController-method-action-types.d.ts.map +1 -0
- package/dist/PerpsController-method-action-types.js +6 -0
- package/dist/PerpsController-method-action-types.js.map +1 -0
- package/dist/PerpsController.d.ts +1313 -0
- package/dist/PerpsController.d.ts.map +1 -0
- package/dist/PerpsController.js +5331 -0
- package/dist/PerpsController.js.map +1 -0
- package/dist/aggregation/SubscriptionMultiplexer.d.ts +171 -0
- package/dist/aggregation/SubscriptionMultiplexer.d.ts.map +1 -0
- package/dist/aggregation/SubscriptionMultiplexer.js +451 -0
- 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.ts +228 -0
- package/dist/constants/chartConfig.d.ts.map +1 -0
- package/dist/constants/chartConfig.js +233 -0
- package/dist/constants/chartConfig.js.map +1 -0
- package/dist/constants/eventNames.d.ts +565 -0
- package/dist/constants/eventNames.d.ts.map +1 -0
- package/dist/constants/eventNames.js +657 -0
- package/dist/constants/eventNames.js.map +1 -0
- package/dist/constants/hyperLiquidConfig.d.ts +280 -0
- package/dist/constants/hyperLiquidConfig.d.ts.map +1 -0
- package/dist/constants/hyperLiquidConfig.js +596 -0
- 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/lighterConfig.d.ts +204 -0
- package/dist/constants/lighterConfig.d.ts.map +1 -0
- package/dist/constants/lighterConfig.js +317 -0
- package/dist/constants/lighterConfig.js.map +1 -0
- package/dist/constants/orderTypes.d.ts +19 -0
- package/dist/constants/orderTypes.d.ts.map +1 -0
- package/dist/constants/orderTypes.js +27 -0
- package/dist/constants/orderTypes.js.map +1 -0
- package/dist/constants/performanceMetrics.d.ts +46 -0
- package/dist/constants/performanceMetrics.d.ts.map +1 -0
- package/dist/constants/performanceMetrics.js +60 -0
- package/dist/constants/performanceMetrics.js.map +1 -0
- package/dist/constants/perpsConfig.d.ts +480 -0
- package/dist/constants/perpsConfig.d.ts.map +1 -0
- package/dist/constants/perpsConfig.js +555 -0
- package/dist/constants/perpsConfig.js.map +1 -0
- package/dist/constants/transactionsHistoryConfig.d.ts +35 -0
- package/dist/constants/transactionsHistoryConfig.d.ts.map +1 -0
- package/dist/constants/transactionsHistoryConfig.js +35 -0
- package/dist/constants/transactionsHistoryConfig.js.map +1 -0
- package/dist/index.d.ts +95 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +80 -0
- package/dist/index.js.map +1 -0
- package/dist/perpsErrorCodes.d.ts +113 -0
- package/dist/perpsErrorCodes.d.ts.map +1 -0
- package/dist/perpsErrorCodes.js +133 -0
- package/dist/perpsErrorCodes.js.map +1 -0
- package/dist/providers/AggregatedPerpsProvider.d.ts +277 -0
- package/dist/providers/AggregatedPerpsProvider.d.ts.map +1 -0
- package/dist/providers/AggregatedPerpsProvider.js +827 -0
- package/dist/providers/AggregatedPerpsProvider.js.map +1 -0
- package/dist/providers/HyperLiquidProvider.d.ts +656 -0
- package/dist/providers/HyperLiquidProvider.d.ts.map +1 -0
- package/dist/providers/HyperLiquidProvider.js +11308 -0
- package/dist/providers/HyperLiquidProvider.js.map +1 -0
- package/dist/providers/LighterProvider.d.ts +179 -0
- package/dist/providers/LighterProvider.d.ts.map +1 -0
- package/dist/providers/LighterProvider.js +6599 -0
- package/dist/providers/LighterProvider.js.map +1 -0
- package/dist/routing/ProviderRouter.d.ts +112 -0
- package/dist/routing/ProviderRouter.d.ts.map +1 -0
- package/dist/routing/ProviderRouter.js +137 -0
- 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.ts +336 -0
- package/dist/selectors.d.ts.map +1 -0
- package/dist/selectors.js +249 -0
- package/dist/selectors.js.map +1 -0
- package/dist/services/AccountService.d.ts +56 -0
- package/dist/services/AccountService.d.ts.map +1 -0
- package/dist/services/AccountService.js +307 -0
- package/dist/services/AccountService.js.map +1 -0
- package/dist/services/AggregatedOrderBookConnection.d.ts +106 -0
- package/dist/services/AggregatedOrderBookConnection.d.ts.map +1 -0
- package/dist/services/AggregatedOrderBookConnection.js +388 -0
- package/dist/services/AggregatedOrderBookConnection.js.map +1 -0
- package/dist/services/DataLakeService.d.ts +51 -0
- package/dist/services/DataLakeService.d.ts.map +1 -0
- package/dist/services/DataLakeService.js +215 -0
- package/dist/services/DataLakeService.js.map +1 -0
- package/dist/services/DepositService.d.ts +39 -0
- package/dist/services/DepositService.d.ts.map +1 -0
- package/dist/services/DepositService.js +88 -0
- package/dist/services/DepositService.js.map +1 -0
- package/dist/services/DexDiscoveryCacheManager.d.ts +52 -0
- package/dist/services/DexDiscoveryCacheManager.d.ts.map +1 -0
- package/dist/services/DexDiscoveryCacheManager.js +130 -0
- package/dist/services/DexDiscoveryCacheManager.js.map +1 -0
- package/dist/services/EligibilityService.d.ts +28 -0
- package/dist/services/EligibilityService.d.ts.map +1 -0
- package/dist/services/EligibilityService.js +61 -0
- package/dist/services/EligibilityService.js.map +1 -0
- package/dist/services/FeatureFlagConfigurationService.d.ts +73 -0
- package/dist/services/FeatureFlagConfigurationService.d.ts.map +1 -0
- package/dist/services/FeatureFlagConfigurationService.js +266 -0
- package/dist/services/FeatureFlagConfigurationService.js.map +1 -0
- package/dist/services/HyperLiquidClientService.d.ts +252 -0
- package/dist/services/HyperLiquidClientService.d.ts.map +1 -0
- package/dist/services/HyperLiquidClientService.js +1152 -0
- package/dist/services/HyperLiquidClientService.js.map +1 -0
- package/dist/services/HyperLiquidSubscriptionService.d.ts +265 -0
- package/dist/services/HyperLiquidSubscriptionService.d.ts.map +1 -0
- package/dist/services/HyperLiquidSubscriptionService.js +3874 -0
- package/dist/services/HyperLiquidSubscriptionService.js.map +1 -0
- package/dist/services/HyperLiquidWalletService.d.ts +84 -0
- package/dist/services/HyperLiquidWalletService.d.ts.map +1 -0
- package/dist/services/HyperLiquidWalletService.js +168 -0
- package/dist/services/HyperLiquidWalletService.js.map +1 -0
- package/dist/services/LighterClientService.d.ts +200 -0
- package/dist/services/LighterClientService.d.ts.map +1 -0
- package/dist/services/LighterClientService.js +634 -0
- package/dist/services/LighterClientService.js.map +1 -0
- package/dist/services/LighterWalletService.d.ts +51 -0
- package/dist/services/LighterWalletService.d.ts.map +1 -0
- package/dist/services/LighterWalletService.js +92 -0
- package/dist/services/LighterWalletService.js.map +1 -0
- package/dist/services/MarketDataService.d.ts +350 -0
- package/dist/services/MarketDataService.d.ts.map +1 -0
- package/dist/services/MarketDataService.js +1165 -0
- package/dist/services/MarketDataService.js.map +1 -0
- package/dist/services/RewardsIntegrationService.d.ts +84 -0
- package/dist/services/RewardsIntegrationService.d.ts.map +1 -0
- package/dist/services/RewardsIntegrationService.js +380 -0
- package/dist/services/RewardsIntegrationService.js.map +1 -0
- package/dist/services/ServiceContext.d.ts +102 -0
- 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.ts +45 -0
- package/dist/services/TerminalMarketService.d.ts.map +1 -0
- package/dist/services/TerminalMarketService.js +640 -0
- package/dist/services/TerminalMarketService.js.map +1 -0
- package/dist/services/TradingReadinessCache.d.ts +204 -0
- package/dist/services/TradingReadinessCache.d.ts.map +1 -0
- package/dist/services/TradingReadinessCache.js +313 -0
- package/dist/services/TradingReadinessCache.js.map +1 -0
- package/dist/services/TradingService.d.ts +201 -0
- package/dist/services/TradingService.d.ts.map +1 -0
- package/dist/services/TradingService.js +1967 -0
- package/dist/services/TradingService.js.map +1 -0
- package/dist/types/config.d.ts +49 -0
- 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.ts +67 -0
- package/dist/types/hyperliquid-types.d.ts.map +1 -0
- package/dist/types/hyperliquid-types.js +41 -0
- package/dist/types/hyperliquid-types.js.map +1 -0
- package/dist/types/index.d.ts +2192 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +133 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/lighter-types.d.ts +772 -0
- package/dist/types/lighter-types.d.ts.map +1 -0
- package/dist/types/lighter-types.js +10 -0
- package/dist/types/lighter-types.js.map +1 -0
- package/dist/types/messenger.d.ts +30 -0
- 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/perps-types.d.ts +184 -0
- 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.ts +25 -0
- 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.ts +60 -0
- package/dist/types/transactionTypes.d.ts.map +1 -0
- package/dist/types/transactionTypes.js +24 -0
- package/dist/types/transactionTypes.js.map +1 -0
- package/dist/utils/accountUtils.d.ts +72 -0
- package/dist/utils/accountUtils.d.ts.map +1 -0
- package/dist/utils/accountUtils.js +223 -0
- package/dist/utils/accountUtils.js.map +1 -0
- package/dist/utils/capabilitySymbols.d.ts +15 -0
- package/dist/utils/capabilitySymbols.d.ts.map +1 -0
- package/dist/utils/capabilitySymbols.js +21 -0
- package/dist/utils/capabilitySymbols.js.map +1 -0
- package/dist/utils/coalescePerpsRestRequest.d.ts +32 -0
- package/dist/utils/coalescePerpsRestRequest.d.ts.map +1 -0
- package/dist/utils/coalescePerpsRestRequest.js +66 -0
- package/dist/utils/coalescePerpsRestRequest.js.map +1 -0
- package/dist/utils/errorUtils.d.ts +50 -0
- package/dist/utils/errorUtils.d.ts.map +1 -0
- package/dist/utils/errorUtils.js +96 -0
- package/dist/utils/errorUtils.js.map +1 -0
- package/dist/utils/hyperLiquidAbstraction.d.ts +11 -0
- package/dist/utils/hyperLiquidAbstraction.d.ts.map +1 -0
- package/dist/utils/hyperLiquidAbstraction.js +19 -0
- package/dist/utils/hyperLiquidAbstraction.js.map +1 -0
- package/dist/utils/hyperLiquidAdapter.d.ts +77 -0
- package/dist/utils/hyperLiquidAdapter.d.ts.map +1 -0
- package/dist/utils/hyperLiquidAdapter.js +495 -0
- package/dist/utils/hyperLiquidAdapter.js.map +1 -0
- package/dist/utils/hyperLiquidOrderBookProcessor.d.ts +55 -0
- package/dist/utils/hyperLiquidOrderBookProcessor.d.ts.map +1 -0
- package/dist/utils/hyperLiquidOrderBookProcessor.js +78 -0
- package/dist/utils/hyperLiquidOrderBookProcessor.js.map +1 -0
- package/dist/utils/hyperLiquidPositionPreview.d.ts +124 -0
- package/dist/utils/hyperLiquidPositionPreview.d.ts.map +1 -0
- package/dist/utils/hyperLiquidPositionPreview.js +347 -0
- package/dist/utils/hyperLiquidPositionPreview.js.map +1 -0
- package/dist/utils/hyperLiquidValidation.d.ts +192 -0
- package/dist/utils/hyperLiquidValidation.d.ts.map +1 -0
- package/dist/utils/hyperLiquidValidation.js +786 -0
- package/dist/utils/hyperLiquidValidation.js.map +1 -0
- package/dist/utils/idUtils.d.ts +6 -0
- package/dist/utils/idUtils.d.ts.map +1 -0
- package/dist/utils/idUtils.js +10 -0
- package/dist/utils/idUtils.js.map +1 -0
- package/dist/utils/index.d.ts +29 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +34 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/lighterAdapter.d.ts +117 -0
- package/dist/utils/lighterAdapter.d.ts.map +1 -0
- package/dist/utils/lighterAdapter.js +562 -0
- package/dist/utils/lighterAdapter.js.map +1 -0
- package/dist/utils/marketDataTransform.d.ts +71 -0
- package/dist/utils/marketDataTransform.d.ts.map +1 -0
- package/dist/utils/marketDataTransform.js +243 -0
- package/dist/utils/marketDataTransform.js.map +1 -0
- package/dist/utils/marketSearch.d.ts +48 -0
- package/dist/utils/marketSearch.d.ts.map +1 -0
- package/dist/utils/marketSearch.js +106 -0
- package/dist/utils/marketSearch.js.map +1 -0
- package/dist/utils/marketUtils.d.ts +73 -0
- package/dist/utils/marketUtils.d.ts.map +1 -0
- package/dist/utils/marketUtils.js +248 -0
- package/dist/utils/marketUtils.js.map +1 -0
- package/dist/utils/orderCalculations.d.ts +306 -0
- package/dist/utils/orderCalculations.d.ts.map +1 -0
- package/dist/utils/orderCalculations.js +833 -0
- package/dist/utils/orderCalculations.js.map +1 -0
- package/dist/utils/orderTypes.d.ts +166 -0
- package/dist/utils/orderTypes.d.ts.map +1 -0
- package/dist/utils/orderTypes.js +287 -0
- package/dist/utils/orderTypes.js.map +1 -0
- package/dist/utils/perpsConnectionAttemptContext.d.ts +7 -0
- package/dist/utils/perpsConnectionAttemptContext.d.ts.map +1 -0
- package/dist/utils/perpsConnectionAttemptContext.js +15 -0
- package/dist/utils/perpsConnectionAttemptContext.js.map +1 -0
- package/dist/utils/perpsDiskPersistence.d.ts +112 -0
- package/dist/utils/perpsDiskPersistence.d.ts.map +1 -0
- package/dist/utils/perpsDiskPersistence.js +251 -0
- package/dist/utils/perpsDiskPersistence.js.map +1 -0
- package/dist/utils/perpsFormatters.d.ts +204 -0
- package/dist/utils/perpsFormatters.d.ts.map +1 -0
- package/dist/utils/perpsFormatters.js +500 -0
- package/dist/utils/perpsFormatters.js.map +1 -0
- package/dist/utils/rewardsUtils.d.ts +33 -0
- package/dist/utils/rewardsUtils.d.ts.map +1 -0
- package/dist/utils/rewardsUtils.js +92 -0
- package/dist/utils/rewardsUtils.js.map +1 -0
- package/dist/utils/significantFigures.d.ts +25 -0
- package/dist/utils/significantFigures.d.ts.map +1 -0
- package/dist/utils/significantFigures.js +82 -0
- package/dist/utils/significantFigures.js.map +1 -0
- package/dist/utils/sortMarkets.d.ts +25 -0
- package/dist/utils/sortMarkets.d.ts.map +1 -0
- package/dist/utils/sortMarkets.js +88 -0
- package/dist/utils/sortMarkets.js.map +1 -0
- package/dist/utils/standaloneInfoClient.d.ts +37 -0
- package/dist/utils/standaloneInfoClient.d.ts.map +1 -0
- package/dist/utils/standaloneInfoClient.js +64 -0
- package/dist/utils/standaloneInfoClient.js.map +1 -0
- package/dist/utils/stringParseUtils.d.ts +11 -0
- package/dist/utils/stringParseUtils.d.ts.map +1 -0
- package/dist/utils/stringParseUtils.js +28 -0
- package/dist/utils/stringParseUtils.js.map +1 -0
- package/dist/utils/transferData.d.ts +9 -0
- package/dist/utils/transferData.d.ts.map +1 -0
- package/dist/utils/transferData.js +29 -0
- package/dist/utils/transferData.js.map +1 -0
- package/dist/utils/wait.d.ts +2 -0
- package/dist/utils/wait.d.ts.map +1 -0
- package/dist/utils/wait.js +2 -0
- package/dist/utils/wait.js.map +1 -0
- package/package.json +33 -61
- 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 -1235
- package/dist/PerpsController-method-action-types.d.cts.map +0 -1
- package/dist/PerpsController-method-action-types.d.mts +0 -1235
- package/dist/PerpsController-method-action-types.d.mts.map +0 -1
- package/dist/PerpsController-method-action-types.mjs +0 -6
- package/dist/PerpsController-method-action-types.mjs.map +0 -1
- package/dist/PerpsController.cjs +0 -5154
- package/dist/PerpsController.cjs.map +0 -1
- package/dist/PerpsController.d.cts +0 -1313
- package/dist/PerpsController.d.cts.map +0 -1
- package/dist/PerpsController.d.mts +0 -1313
- package/dist/PerpsController.d.mts.map +0 -1
- package/dist/PerpsController.mjs +0 -5142
- 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 +0 -171
- 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 +0 -437
- 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 +0 -228
- package/dist/constants/chartConfig.d.mts.map +0 -1
- package/dist/constants/chartConfig.mjs +0 -233
- package/dist/constants/chartConfig.mjs.map +0 -1
- package/dist/constants/eventNames.cjs +0 -660
- package/dist/constants/eventNames.cjs.map +0 -1
- package/dist/constants/eventNames.d.cts +0 -565
- package/dist/constants/eventNames.d.cts.map +0 -1
- package/dist/constants/eventNames.d.mts +0 -565
- package/dist/constants/eventNames.d.mts.map +0 -1
- package/dist/constants/eventNames.mjs +0 -657
- 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 +0 -280
- 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 +0 -596
- 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/lighterConfig.cjs +0 -328
- package/dist/constants/lighterConfig.cjs.map +0 -1
- package/dist/constants/lighterConfig.d.cts +0 -204
- package/dist/constants/lighterConfig.d.cts.map +0 -1
- package/dist/constants/lighterConfig.d.mts +0 -204
- package/dist/constants/lighterConfig.d.mts.map +0 -1
- package/dist/constants/lighterConfig.mjs +0 -317
- package/dist/constants/lighterConfig.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 +0 -19
- 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 +0 -27
- 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 +0 -46
- 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 +0 -60
- package/dist/constants/performanceMetrics.mjs.map +0 -1
- package/dist/constants/perpsConfig.cjs +0 -560
- package/dist/constants/perpsConfig.cjs.map +0 -1
- package/dist/constants/perpsConfig.d.cts +0 -480
- package/dist/constants/perpsConfig.d.cts.map +0 -1
- package/dist/constants/perpsConfig.d.mts +0 -480
- package/dist/constants/perpsConfig.d.mts.map +0 -1
- package/dist/constants/perpsConfig.mjs +0 -555
- 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 +0 -35
- 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 +0 -35
- package/dist/constants/transactionsHistoryConfig.mjs.map +0 -1
- package/dist/index.cjs +0 -334
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.cts +0 -95
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -95
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -80
- package/dist/index.mjs.map +0 -1
- package/dist/perpsErrorCodes.cjs +0 -128
- package/dist/perpsErrorCodes.cjs.map +0 -1
- package/dist/perpsErrorCodes.d.cts +0 -105
- package/dist/perpsErrorCodes.d.cts.map +0 -1
- package/dist/perpsErrorCodes.d.mts +0 -105
- package/dist/perpsErrorCodes.d.mts.map +0 -1
- package/dist/perpsErrorCodes.mjs +0 -125
- package/dist/perpsErrorCodes.mjs.map +0 -1
- package/dist/providers/AggregatedPerpsProvider.cjs +0 -810
- package/dist/providers/AggregatedPerpsProvider.cjs.map +0 -1
- package/dist/providers/AggregatedPerpsProvider.d.cts +0 -277
- package/dist/providers/AggregatedPerpsProvider.d.cts.map +0 -1
- package/dist/providers/AggregatedPerpsProvider.d.mts +0 -277
- package/dist/providers/AggregatedPerpsProvider.d.mts.map +0 -1
- package/dist/providers/AggregatedPerpsProvider.mjs +0 -805
- package/dist/providers/AggregatedPerpsProvider.mjs.map +0 -1
- package/dist/providers/HyperLiquidProvider.cjs +0 -10963
- package/dist/providers/HyperLiquidProvider.cjs.map +0 -1
- package/dist/providers/HyperLiquidProvider.d.cts +0 -656
- package/dist/providers/HyperLiquidProvider.d.cts.map +0 -1
- package/dist/providers/HyperLiquidProvider.d.mts +0 -656
- package/dist/providers/HyperLiquidProvider.d.mts.map +0 -1
- package/dist/providers/HyperLiquidProvider.mjs +0 -10959
- package/dist/providers/HyperLiquidProvider.mjs.map +0 -1
- package/dist/providers/LighterProvider.cjs +0 -6575
- package/dist/providers/LighterProvider.cjs.map +0 -1
- package/dist/providers/LighterProvider.d.cts +0 -179
- package/dist/providers/LighterProvider.d.cts.map +0 -1
- package/dist/providers/LighterProvider.d.mts +0 -179
- package/dist/providers/LighterProvider.d.mts.map +0 -1
- package/dist/providers/LighterProvider.mjs +0 -6571
- package/dist/providers/LighterProvider.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 +0 -112
- package/dist/routing/ProviderRouter.d.mts.map +0 -1
- package/dist/routing/ProviderRouter.mjs +0 -150
- 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 +0 -336
- package/dist/selectors.d.mts.map +0 -1
- package/dist/selectors.mjs +0 -249
- 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 +0 -56
- 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 +0 -320
- 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 +0 -106
- 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 +0 -400
- 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 +0 -51
- 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 +0 -229
- package/dist/services/DataLakeService.mjs.map +0 -1
- package/dist/services/DepositService.cjs +0 -105
- package/dist/services/DepositService.cjs.map +0 -1
- package/dist/services/DepositService.d.cts +0 -39
- 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 +0 -101
- 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 +0 -52
- 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 +0 -143
- 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 +0 -28
- 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 +0 -74
- 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 +0 -73
- 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 +0 -253
- package/dist/services/FeatureFlagConfigurationService.mjs.map +0 -1
- package/dist/services/HyperLiquidClientService.cjs +0 -1114
- package/dist/services/HyperLiquidClientService.cjs.map +0 -1
- package/dist/services/HyperLiquidClientService.d.cts +0 -252
- package/dist/services/HyperLiquidClientService.d.cts.map +0 -1
- package/dist/services/HyperLiquidClientService.d.mts +0 -252
- package/dist/services/HyperLiquidClientService.d.mts.map +0 -1
- package/dist/services/HyperLiquidClientService.mjs +0 -1109
- package/dist/services/HyperLiquidClientService.mjs.map +0 -1
- package/dist/services/HyperLiquidSubscriptionService.cjs +0 -3594
- package/dist/services/HyperLiquidSubscriptionService.cjs.map +0 -1
- package/dist/services/HyperLiquidSubscriptionService.d.cts +0 -265
- package/dist/services/HyperLiquidSubscriptionService.d.cts.map +0 -1
- package/dist/services/HyperLiquidSubscriptionService.d.mts +0 -265
- package/dist/services/HyperLiquidSubscriptionService.d.mts.map +0 -1
- package/dist/services/HyperLiquidSubscriptionService.mjs +0 -3590
- 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 +0 -84
- 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 +0 -182
- package/dist/services/HyperLiquidWalletService.mjs.map +0 -1
- package/dist/services/LighterClientService.cjs +0 -643
- package/dist/services/LighterClientService.cjs.map +0 -1
- package/dist/services/LighterClientService.d.cts +0 -200
- package/dist/services/LighterClientService.d.cts.map +0 -1
- package/dist/services/LighterClientService.d.mts +0 -200
- package/dist/services/LighterClientService.d.mts.map +0 -1
- package/dist/services/LighterClientService.mjs +0 -637
- package/dist/services/LighterClientService.mjs.map +0 -1
- package/dist/services/LighterWalletService.cjs +0 -109
- package/dist/services/LighterWalletService.cjs.map +0 -1
- package/dist/services/LighterWalletService.d.cts +0 -51
- package/dist/services/LighterWalletService.d.cts.map +0 -1
- package/dist/services/LighterWalletService.d.mts +0 -51
- package/dist/services/LighterWalletService.d.mts.map +0 -1
- package/dist/services/LighterWalletService.mjs +0 -105
- package/dist/services/LighterWalletService.mjs.map +0 -1
- package/dist/services/MarketDataService.cjs +0 -1171
- package/dist/services/MarketDataService.cjs.map +0 -1
- package/dist/services/MarketDataService.d.cts +0 -350
- package/dist/services/MarketDataService.d.cts.map +0 -1
- package/dist/services/MarketDataService.d.mts +0 -350
- package/dist/services/MarketDataService.d.mts.map +0 -1
- package/dist/services/MarketDataService.mjs +0 -1167
- 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 +0 -84
- 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 +0 -387
- 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 +0 -102
- 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 +0 -45
- 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 +0 -619
- 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 +0 -204
- package/dist/services/TradingReadinessCache.d.mts.map +0 -1
- package/dist/services/TradingReadinessCache.mjs +0 -326
- package/dist/services/TradingReadinessCache.mjs.map +0 -1
- package/dist/services/TradingService.cjs +0 -1895
- package/dist/services/TradingService.cjs.map +0 -1
- package/dist/services/TradingService.d.cts +0 -201
- 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 +0 -1891
- 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 +0 -49
- 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 +0 -67
- 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 +0 -41
- 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 +0 -2183
- package/dist/types/index.d.cts.map +0 -1
- package/dist/types/index.d.mts +0 -2183
- package/dist/types/index.d.mts.map +0 -1
- package/dist/types/index.mjs +0 -133
- package/dist/types/index.mjs.map +0 -1
- package/dist/types/lighter-types.cjs +0 -11
- package/dist/types/lighter-types.cjs.map +0 -1
- package/dist/types/lighter-types.d.cts +0 -763
- package/dist/types/lighter-types.d.cts.map +0 -1
- package/dist/types/lighter-types.d.mts +0 -763
- package/dist/types/lighter-types.d.mts.map +0 -1
- package/dist/types/lighter-types.mjs +0 -10
- package/dist/types/lighter-types.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 +0 -30
- 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/perps-types.cjs +0 -7
- package/dist/types/perps-types.cjs.map +0 -1
- package/dist/types/perps-types.d.cts +0 -184
- 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 +0 -25
- 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 +0 -60
- 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 +0 -24
- 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 +0 -72
- 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 +0 -223
- 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 +0 -15
- package/dist/utils/capabilitySymbols.d.mts.map +0 -1
- package/dist/utils/capabilitySymbols.mjs +0 -21
- 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 +0 -32
- 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 +0 -66
- 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 +0 -50
- package/dist/utils/errorUtils.d.mts.map +0 -1
- package/dist/utils/errorUtils.mjs +0 -96
- 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 +0 -11
- 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 +0 -19
- 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 +0 -77
- 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 +0 -494
- 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 +0 -55
- package/dist/utils/hyperLiquidOrderBookProcessor.d.mts.map +0 -1
- package/dist/utils/hyperLiquidOrderBookProcessor.mjs +0 -78
- package/dist/utils/hyperLiquidOrderBookProcessor.mjs.map +0 -1
- package/dist/utils/hyperLiquidPositionPreview.cjs +0 -355
- package/dist/utils/hyperLiquidPositionPreview.cjs.map +0 -1
- package/dist/utils/hyperLiquidPositionPreview.d.cts +0 -124
- package/dist/utils/hyperLiquidPositionPreview.d.cts.map +0 -1
- package/dist/utils/hyperLiquidPositionPreview.d.mts +0 -124
- package/dist/utils/hyperLiquidPositionPreview.d.mts.map +0 -1
- package/dist/utils/hyperLiquidPositionPreview.mjs +0 -347
- package/dist/utils/hyperLiquidPositionPreview.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 +0 -192
- 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 +0 -786
- 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 +0 -6
- 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 +0 -10
- package/dist/utils/idUtils.mjs.map +0 -1
- package/dist/utils/index.cjs +0 -66
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.d.cts +0 -29
- package/dist/utils/index.d.cts.map +0 -1
- package/dist/utils/index.d.mts +0 -29
- package/dist/utils/index.d.mts.map +0 -1
- package/dist/utils/index.mjs +0 -34
- package/dist/utils/index.mjs.map +0 -1
- package/dist/utils/lighterAdapter.cjs +0 -575
- package/dist/utils/lighterAdapter.cjs.map +0 -1
- package/dist/utils/lighterAdapter.d.cts +0 -117
- package/dist/utils/lighterAdapter.d.cts.map +0 -1
- package/dist/utils/lighterAdapter.d.mts +0 -117
- package/dist/utils/lighterAdapter.d.mts.map +0 -1
- package/dist/utils/lighterAdapter.mjs +0 -562
- package/dist/utils/lighterAdapter.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 +0 -71
- 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 +0 -243
- 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 +0 -48
- 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 +0 -106
- 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 +0 -73
- 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 +0 -248
- package/dist/utils/marketUtils.mjs.map +0 -1
- package/dist/utils/orderCalculations.cjs +0 -849
- package/dist/utils/orderCalculations.cjs.map +0 -1
- package/dist/utils/orderCalculations.d.cts +0 -306
- package/dist/utils/orderCalculations.d.cts.map +0 -1
- package/dist/utils/orderCalculations.d.mts +0 -306
- package/dist/utils/orderCalculations.d.mts.map +0 -1
- package/dist/utils/orderCalculations.mjs +0 -833
- 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 +0 -166
- package/dist/utils/orderTypes.d.mts.map +0 -1
- package/dist/utils/orderTypes.mjs +0 -287
- 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 +0 -7
- package/dist/utils/perpsConnectionAttemptContext.d.mts.map +0 -1
- package/dist/utils/perpsConnectionAttemptContext.mjs +0 -15
- 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 +0 -112
- 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 +0 -251
- 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 +0 -204
- 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 +0 -500
- 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 +0 -33
- 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 +0 -92
- 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 +0 -25
- 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 +0 -82
- 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 +0 -25
- 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 +0 -88
- 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 +0 -37
- 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 +0 -64
- 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 +0 -11
- 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 +0 -28
- 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 +0 -9
- 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 +0 -29
- 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 +0 -2
- 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 +0 -2
- package/dist/utils/wait.mjs.map +0 -1
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lighter Protocol Configuration Constants
|
|
3
|
-
*
|
|
4
|
-
* Endpoints, chain ids, transaction type codes and signer defaults for the
|
|
5
|
-
* zkLighter integration. Values verified against the public API
|
|
6
|
-
* (https://apidocs.lighter.xyz) and lighter-python `endpoint_profiles.py`.
|
|
7
|
-
*/
|
|
8
|
-
import type { LighterEndpoints, LighterNetwork, LighterOrderBookMeta } from "../types/lighter-types.cjs";
|
|
9
|
-
/**
|
|
10
|
-
* zkLighter L2 chain ids (protocol-level, not EVM chain ids).
|
|
11
|
-
*/
|
|
12
|
-
export declare const LIGHTER_MAINNET_CHAIN_ID = 304;
|
|
13
|
-
export declare const LIGHTER_TESTNET_CHAIN_ID = 300;
|
|
14
|
-
/**
|
|
15
|
-
* Get the zkLighter chain id for a network.
|
|
16
|
-
*
|
|
17
|
-
* @param network - The Lighter network environment (mainnet or testnet).
|
|
18
|
-
* @returns The zkLighter chain id for the specified network.
|
|
19
|
-
*/
|
|
20
|
-
export declare function getLighterChainId(network: LighterNetwork): number;
|
|
21
|
-
/**
|
|
22
|
-
* Lighter REST and WebSocket endpoints
|
|
23
|
-
*/
|
|
24
|
-
export declare const LIGHTER_ENDPOINTS: LighterEndpoints;
|
|
25
|
-
/**
|
|
26
|
-
* Get HTTP endpoint for a network.
|
|
27
|
-
*
|
|
28
|
-
* @param network - The Lighter network environment (mainnet or testnet).
|
|
29
|
-
* @returns The HTTP API base URL for the specified network.
|
|
30
|
-
*/
|
|
31
|
-
export declare function getLighterHttpEndpoint(network: LighterNetwork): string;
|
|
32
|
-
/**
|
|
33
|
-
* Get the WebSocket stream endpoint for a network.
|
|
34
|
-
*
|
|
35
|
-
* @param network - The Lighter network environment (mainnet or testnet).
|
|
36
|
-
* @returns The WebSocket stream URL for the specified network.
|
|
37
|
-
*/
|
|
38
|
-
export declare function getLighterWsEndpoint(network: LighterNetwork): string;
|
|
39
|
-
/** L2 transaction type: Withdraw (funds exit to L1). */
|
|
40
|
-
export declare const LIGHTER_TX_TYPE_WITHDRAW = 13;
|
|
41
|
-
/** L2 transaction type: ModifyOrder (reprice/resize a resting order). */
|
|
42
|
-
export declare const LIGHTER_TX_TYPE_MODIFY_ORDER = 17;
|
|
43
|
-
/** USDC collateral asset index on zkLighter (asset indexing starts at 1). */
|
|
44
|
-
export declare const LIGHTER_USDC_ASSET_INDEX = 1;
|
|
45
|
-
/**
|
|
46
|
-
* Candle resolutions Lighter serves natively (subset of CandlePeriod values).
|
|
47
|
-
*/
|
|
48
|
-
export declare const LIGHTER_SUPPORTED_RESOLUTIONS: ReadonlySet<string>;
|
|
49
|
-
/**
|
|
50
|
-
* Millisecond span per supported resolution (range computation for candles).
|
|
51
|
-
*/
|
|
52
|
-
export declare const LIGHTER_RESOLUTION_MS: Record<string, number>;
|
|
53
|
-
export declare const LIGHTER_TX_TYPE_CHANGE_PUB_KEY = 8;
|
|
54
|
-
export declare const LIGHTER_TX_TYPE_CREATE_ORDER = 14;
|
|
55
|
-
export declare const LIGHTER_TX_TYPE_CANCEL_ORDER = 15;
|
|
56
|
-
export declare const LIGHTER_TX_TYPE_CANCEL_ALL_ORDERS = 16;
|
|
57
|
-
/** Documented Lighter transaction status values. */
|
|
58
|
-
export declare const LIGHTER_TRANSACTION_STATUS: {
|
|
59
|
-
readonly Failed: 0;
|
|
60
|
-
readonly Pending: 1;
|
|
61
|
-
readonly Executed: 2;
|
|
62
|
-
readonly PendingFinal: 3;
|
|
63
|
-
};
|
|
64
|
-
export type LighterTransactionOutcome = 'failed' | 'pending' | 'executed' | 'pending-final';
|
|
65
|
-
/**
|
|
66
|
-
* Decode the venue transaction status without treating undocumented values
|
|
67
|
-
* as terminal.
|
|
68
|
-
*
|
|
69
|
-
* @param status - Raw status from the transaction endpoint.
|
|
70
|
-
* @returns The documented outcome, or null for an unknown value.
|
|
71
|
-
*/
|
|
72
|
-
export declare function getLighterTransactionOutcome(status: unknown): LighterTransactionOutcome | null;
|
|
73
|
-
export declare const LIGHTER_ORDER_TYPE_LIMIT = 0;
|
|
74
|
-
export declare const LIGHTER_ORDER_TYPE_MARKET = 1;
|
|
75
|
-
export declare const LIGHTER_ORDER_TYPE_STOP_LOSS = 2;
|
|
76
|
-
export declare const LIGHTER_ORDER_TYPE_TAKE_PROFIT = 4;
|
|
77
|
-
/** Grouped-orders grouping type: one-cancels-the-other (OCO). */
|
|
78
|
-
export declare const LIGHTER_GROUPING_ONE_CANCELS_THE_OTHER = 2;
|
|
79
|
-
/** L2 transaction type: CreateGroupedOrders (e.g. OCO TP/SL pairs). */
|
|
80
|
-
export declare const LIGHTER_TX_TYPE_CREATE_GROUPED_ORDERS = 28;
|
|
81
|
-
/** L2 transaction type: UpdateMargin (isolated margin add/remove). */
|
|
82
|
-
export declare const LIGHTER_TX_TYPE_UPDATE_MARGIN = 29;
|
|
83
|
-
/** L2 transaction type: UpdateLeverage (per-market IMF + margin mode). */
|
|
84
|
-
export declare const LIGHTER_TX_TYPE_UPDATE_LEVERAGE = 20;
|
|
85
|
-
export declare const LIGHTER_TIME_IN_FORCE_IMMEDIATE_OR_CANCEL = 0;
|
|
86
|
-
export declare const LIGHTER_TIME_IN_FORCE_GOOD_TILL_TIME = 1;
|
|
87
|
-
export declare const LIGHTER_TIME_IN_FORCE_POST_ONLY = 2;
|
|
88
|
-
/** Sentinel for "no expiry" on GTT orders (per lighter SDKs). */
|
|
89
|
-
export declare const LIGHTER_ORDER_EXPIRY_NONE = -1;
|
|
90
|
-
/** Sentinel for "no trigger price". */
|
|
91
|
-
export declare const LIGHTER_NO_TRIGGER_PRICE = 0;
|
|
92
|
-
/**
|
|
93
|
-
* Default API key slot used by the MetaMask integration.
|
|
94
|
-
* Slots 0-2 are commonly used by Lighter's own frontends; a dedicated
|
|
95
|
-
* slot avoids clobbering keys registered by other clients.
|
|
96
|
-
*/
|
|
97
|
-
export declare const LIGHTER_DEFAULT_API_KEY_INDEX = 7;
|
|
98
|
-
/**
|
|
99
|
-
* HTTP request timeout in milliseconds
|
|
100
|
-
*/
|
|
101
|
-
export declare const LIGHTER_HTTP_TIMEOUT_MS = 10000;
|
|
102
|
-
/**
|
|
103
|
-
* Interval for polling REST prices (no WS subscription in the POC)
|
|
104
|
-
*/
|
|
105
|
-
export declare const LIGHTER_PRICE_POLLING_INTERVAL_MS = 5000;
|
|
106
|
-
/**
|
|
107
|
-
* Maximum leverage placeholder until per-market margin fractions are wired.
|
|
108
|
-
*/
|
|
109
|
-
export declare const LIGHTER_MAX_LEVERAGE = 50;
|
|
110
|
-
/**
|
|
111
|
-
* TTL for the authoritative per-market margin-metadata cache used by
|
|
112
|
-
* explicit leverage validation. Without expiry, metadata fetched once
|
|
113
|
-
* (e.g. an older, higher max) would keep validating later-overlimit
|
|
114
|
-
* leverage for the whole session; the venue cap remains the final
|
|
115
|
-
* enforcement either way.
|
|
116
|
-
*/
|
|
117
|
-
export declare const LIGHTER_MARGIN_METADATA_TTL_MS = 60000;
|
|
118
|
-
/**
|
|
119
|
-
* Prefix marking venue-data integrity failures (malformed numeric fields
|
|
120
|
-
* in venue payloads). These must fail closed and surface — never degrade
|
|
121
|
-
* into silently-coerced values or empty reads.
|
|
122
|
-
*/
|
|
123
|
-
export declare const LIGHTER_DATA_INTEGRITY_PREFIX = "Invalid Lighter venue data:";
|
|
124
|
-
/**
|
|
125
|
-
* Parse a numeric string STRICTLY: the entire trimmed string must be a
|
|
126
|
-
* decimal/scientific literal. parseFloat prefix-parses, so '0.1oops'
|
|
127
|
-
* would silently become 0.1.
|
|
128
|
-
*
|
|
129
|
-
* Accepts unknown because venue REST payloads are type-cast without
|
|
130
|
-
* runtime validation: a missing/null/numeric field must yield null (for
|
|
131
|
-
* the caller's explicit error path), never a TypeError that generic
|
|
132
|
-
* catches misclassify as an ordinary read failure.
|
|
133
|
-
*
|
|
134
|
-
* Note: '1e999' matches the literal pattern and parses to Infinity —
|
|
135
|
-
* callers own the finiteness check.
|
|
136
|
-
*
|
|
137
|
-
* @param value - Raw value from params or a venue payload.
|
|
138
|
-
* @returns The parsed number, or null when the value is not a string
|
|
139
|
-
* containing a pure numeric literal.
|
|
140
|
-
*/
|
|
141
|
-
export declare function parseLighterStrictDecimal(value: unknown): number | null;
|
|
142
|
-
/**
|
|
143
|
-
* Convert a human-readable amount to the integer representation expected by
|
|
144
|
-
* the Lighter signer for a given number of supported decimals.
|
|
145
|
-
*
|
|
146
|
-
* @param value - Human-readable amount (e.g. 0.05 SOL, 187.25 USDC).
|
|
147
|
-
* @param decimals - `supportedSizeDecimals` / `supportedPriceDecimals`
|
|
148
|
-
* from the market metadata.
|
|
149
|
-
* @returns Integer wire value (e.g. 0.05 @ 5 decimals -> 5000).
|
|
150
|
-
*/
|
|
151
|
-
export declare function toLighterInteger(value: number, decimals: number): number;
|
|
152
|
-
/**
|
|
153
|
-
* Convert an integer wire value back to a human-readable amount.
|
|
154
|
-
*
|
|
155
|
-
* @param value - Integer wire value.
|
|
156
|
-
* @param decimals - Supported decimals from the market metadata.
|
|
157
|
-
* @returns Human-readable amount.
|
|
158
|
-
*/
|
|
159
|
-
export declare function fromLighterInteger(value: number, decimals: number): number;
|
|
160
|
-
/**
|
|
161
|
-
* Compute the minimum order base size for a market that satisfies both
|
|
162
|
-
* `minBaseAmount` and `minQuoteAmount` at a given price.
|
|
163
|
-
*
|
|
164
|
-
* @param market - Market metadata from `orderBooks`.
|
|
165
|
-
* @param price - Order price (human units).
|
|
166
|
-
* @returns Base size in human units, rounded up to the market's size step.
|
|
167
|
-
*/
|
|
168
|
-
export declare function computeLighterMinOrderSize(market: Pick<LighterOrderBookMeta, 'minBaseAmount' | 'minQuoteAmount' | 'supportedSizeDecimals'>, price: number): number;
|
|
169
|
-
/**
|
|
170
|
-
* L1 bridge facts per network, as reported live by
|
|
171
|
-
* `GET /api/v1/layer1BasicInfo` (contract addresses) and the venue docs
|
|
172
|
-
* (minimums). Mainnet settles against Ethereum L1; testnet runs on a
|
|
173
|
-
* venue-hosted devnet L1 (chain id 123456), so its route is informational.
|
|
174
|
-
*/
|
|
175
|
-
export declare const LIGHTER_BRIDGE_CONFIG: {
|
|
176
|
-
readonly mainnet: {
|
|
177
|
-
/** CAIP-2 chain the bridge contract lives on (Ethereum mainnet). */
|
|
178
|
-
readonly chainId: "eip155:1";
|
|
179
|
-
/** ZkLighter L1 contract (deposits via `deposit`, selector 0x8a857083). */
|
|
180
|
-
readonly bridgeContract: "0x3B4D794a66304F130a4Db8F2551B0070dfCf5ca7";
|
|
181
|
-
/** Canonical Ethereum USDC. */
|
|
182
|
-
readonly usdcContract: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
|
|
183
|
-
/** Venue-documented USDC minimums. */
|
|
184
|
-
readonly minDepositUsdc: "1";
|
|
185
|
-
readonly minWithdrawUsdc: "1";
|
|
186
|
-
};
|
|
187
|
-
readonly testnet: {
|
|
188
|
-
readonly chainId: "eip155:123456";
|
|
189
|
-
readonly bridgeContract: "0xe034801BC49cCDC79FB683022dA0591C86077261";
|
|
190
|
-
readonly usdcContract: "0x57382a12EC72eBb1e717b7BB76c78CdDAfE3A396";
|
|
191
|
-
readonly minDepositUsdc: "1";
|
|
192
|
-
readonly minWithdrawUsdc: "1";
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
/** UpdateLeverage margin-mode codes (types/txtypes constants). */
|
|
196
|
-
export declare const LIGHTER_MARGIN_MODE_CROSS = 0;
|
|
197
|
-
export declare const LIGHTER_MARGIN_MODE_ISOLATED = 1;
|
|
198
|
-
/**
|
|
199
|
-
* Marker prefix for capability-gate errors (unsupported account tier /
|
|
200
|
-
* unverified fee semantics). Callers use it to surface these explicitly
|
|
201
|
-
* instead of degrading them into empty state.
|
|
202
|
-
*/
|
|
203
|
-
export declare const LIGHTER_UNSUPPORTED_CAPABILITY_PREFIX = "Unsupported Lighter capability:";
|
|
204
|
-
//# sourceMappingURL=lighterConfig.d.cts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lighterConfig.d.cts","sourceRoot":"","sources":["../../src/constants/lighterConfig.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lighter Protocol Configuration Constants
|
|
3
|
-
*
|
|
4
|
-
* Endpoints, chain ids, transaction type codes and signer defaults for the
|
|
5
|
-
* zkLighter integration. Values verified against the public API
|
|
6
|
-
* (https://apidocs.lighter.xyz) and lighter-python `endpoint_profiles.py`.
|
|
7
|
-
*/
|
|
8
|
-
import type { LighterEndpoints, LighterNetwork, LighterOrderBookMeta } from "../types/lighter-types.mjs";
|
|
9
|
-
/**
|
|
10
|
-
* zkLighter L2 chain ids (protocol-level, not EVM chain ids).
|
|
11
|
-
*/
|
|
12
|
-
export declare const LIGHTER_MAINNET_CHAIN_ID = 304;
|
|
13
|
-
export declare const LIGHTER_TESTNET_CHAIN_ID = 300;
|
|
14
|
-
/**
|
|
15
|
-
* Get the zkLighter chain id for a network.
|
|
16
|
-
*
|
|
17
|
-
* @param network - The Lighter network environment (mainnet or testnet).
|
|
18
|
-
* @returns The zkLighter chain id for the specified network.
|
|
19
|
-
*/
|
|
20
|
-
export declare function getLighterChainId(network: LighterNetwork): number;
|
|
21
|
-
/**
|
|
22
|
-
* Lighter REST and WebSocket endpoints
|
|
23
|
-
*/
|
|
24
|
-
export declare const LIGHTER_ENDPOINTS: LighterEndpoints;
|
|
25
|
-
/**
|
|
26
|
-
* Get HTTP endpoint for a network.
|
|
27
|
-
*
|
|
28
|
-
* @param network - The Lighter network environment (mainnet or testnet).
|
|
29
|
-
* @returns The HTTP API base URL for the specified network.
|
|
30
|
-
*/
|
|
31
|
-
export declare function getLighterHttpEndpoint(network: LighterNetwork): string;
|
|
32
|
-
/**
|
|
33
|
-
* Get the WebSocket stream endpoint for a network.
|
|
34
|
-
*
|
|
35
|
-
* @param network - The Lighter network environment (mainnet or testnet).
|
|
36
|
-
* @returns The WebSocket stream URL for the specified network.
|
|
37
|
-
*/
|
|
38
|
-
export declare function getLighterWsEndpoint(network: LighterNetwork): string;
|
|
39
|
-
/** L2 transaction type: Withdraw (funds exit to L1). */
|
|
40
|
-
export declare const LIGHTER_TX_TYPE_WITHDRAW = 13;
|
|
41
|
-
/** L2 transaction type: ModifyOrder (reprice/resize a resting order). */
|
|
42
|
-
export declare const LIGHTER_TX_TYPE_MODIFY_ORDER = 17;
|
|
43
|
-
/** USDC collateral asset index on zkLighter (asset indexing starts at 1). */
|
|
44
|
-
export declare const LIGHTER_USDC_ASSET_INDEX = 1;
|
|
45
|
-
/**
|
|
46
|
-
* Candle resolutions Lighter serves natively (subset of CandlePeriod values).
|
|
47
|
-
*/
|
|
48
|
-
export declare const LIGHTER_SUPPORTED_RESOLUTIONS: ReadonlySet<string>;
|
|
49
|
-
/**
|
|
50
|
-
* Millisecond span per supported resolution (range computation for candles).
|
|
51
|
-
*/
|
|
52
|
-
export declare const LIGHTER_RESOLUTION_MS: Record<string, number>;
|
|
53
|
-
export declare const LIGHTER_TX_TYPE_CHANGE_PUB_KEY = 8;
|
|
54
|
-
export declare const LIGHTER_TX_TYPE_CREATE_ORDER = 14;
|
|
55
|
-
export declare const LIGHTER_TX_TYPE_CANCEL_ORDER = 15;
|
|
56
|
-
export declare const LIGHTER_TX_TYPE_CANCEL_ALL_ORDERS = 16;
|
|
57
|
-
/** Documented Lighter transaction status values. */
|
|
58
|
-
export declare const LIGHTER_TRANSACTION_STATUS: {
|
|
59
|
-
readonly Failed: 0;
|
|
60
|
-
readonly Pending: 1;
|
|
61
|
-
readonly Executed: 2;
|
|
62
|
-
readonly PendingFinal: 3;
|
|
63
|
-
};
|
|
64
|
-
export type LighterTransactionOutcome = 'failed' | 'pending' | 'executed' | 'pending-final';
|
|
65
|
-
/**
|
|
66
|
-
* Decode the venue transaction status without treating undocumented values
|
|
67
|
-
* as terminal.
|
|
68
|
-
*
|
|
69
|
-
* @param status - Raw status from the transaction endpoint.
|
|
70
|
-
* @returns The documented outcome, or null for an unknown value.
|
|
71
|
-
*/
|
|
72
|
-
export declare function getLighterTransactionOutcome(status: unknown): LighterTransactionOutcome | null;
|
|
73
|
-
export declare const LIGHTER_ORDER_TYPE_LIMIT = 0;
|
|
74
|
-
export declare const LIGHTER_ORDER_TYPE_MARKET = 1;
|
|
75
|
-
export declare const LIGHTER_ORDER_TYPE_STOP_LOSS = 2;
|
|
76
|
-
export declare const LIGHTER_ORDER_TYPE_TAKE_PROFIT = 4;
|
|
77
|
-
/** Grouped-orders grouping type: one-cancels-the-other (OCO). */
|
|
78
|
-
export declare const LIGHTER_GROUPING_ONE_CANCELS_THE_OTHER = 2;
|
|
79
|
-
/** L2 transaction type: CreateGroupedOrders (e.g. OCO TP/SL pairs). */
|
|
80
|
-
export declare const LIGHTER_TX_TYPE_CREATE_GROUPED_ORDERS = 28;
|
|
81
|
-
/** L2 transaction type: UpdateMargin (isolated margin add/remove). */
|
|
82
|
-
export declare const LIGHTER_TX_TYPE_UPDATE_MARGIN = 29;
|
|
83
|
-
/** L2 transaction type: UpdateLeverage (per-market IMF + margin mode). */
|
|
84
|
-
export declare const LIGHTER_TX_TYPE_UPDATE_LEVERAGE = 20;
|
|
85
|
-
export declare const LIGHTER_TIME_IN_FORCE_IMMEDIATE_OR_CANCEL = 0;
|
|
86
|
-
export declare const LIGHTER_TIME_IN_FORCE_GOOD_TILL_TIME = 1;
|
|
87
|
-
export declare const LIGHTER_TIME_IN_FORCE_POST_ONLY = 2;
|
|
88
|
-
/** Sentinel for "no expiry" on GTT orders (per lighter SDKs). */
|
|
89
|
-
export declare const LIGHTER_ORDER_EXPIRY_NONE = -1;
|
|
90
|
-
/** Sentinel for "no trigger price". */
|
|
91
|
-
export declare const LIGHTER_NO_TRIGGER_PRICE = 0;
|
|
92
|
-
/**
|
|
93
|
-
* Default API key slot used by the MetaMask integration.
|
|
94
|
-
* Slots 0-2 are commonly used by Lighter's own frontends; a dedicated
|
|
95
|
-
* slot avoids clobbering keys registered by other clients.
|
|
96
|
-
*/
|
|
97
|
-
export declare const LIGHTER_DEFAULT_API_KEY_INDEX = 7;
|
|
98
|
-
/**
|
|
99
|
-
* HTTP request timeout in milliseconds
|
|
100
|
-
*/
|
|
101
|
-
export declare const LIGHTER_HTTP_TIMEOUT_MS = 10000;
|
|
102
|
-
/**
|
|
103
|
-
* Interval for polling REST prices (no WS subscription in the POC)
|
|
104
|
-
*/
|
|
105
|
-
export declare const LIGHTER_PRICE_POLLING_INTERVAL_MS = 5000;
|
|
106
|
-
/**
|
|
107
|
-
* Maximum leverage placeholder until per-market margin fractions are wired.
|
|
108
|
-
*/
|
|
109
|
-
export declare const LIGHTER_MAX_LEVERAGE = 50;
|
|
110
|
-
/**
|
|
111
|
-
* TTL for the authoritative per-market margin-metadata cache used by
|
|
112
|
-
* explicit leverage validation. Without expiry, metadata fetched once
|
|
113
|
-
* (e.g. an older, higher max) would keep validating later-overlimit
|
|
114
|
-
* leverage for the whole session; the venue cap remains the final
|
|
115
|
-
* enforcement either way.
|
|
116
|
-
*/
|
|
117
|
-
export declare const LIGHTER_MARGIN_METADATA_TTL_MS = 60000;
|
|
118
|
-
/**
|
|
119
|
-
* Prefix marking venue-data integrity failures (malformed numeric fields
|
|
120
|
-
* in venue payloads). These must fail closed and surface — never degrade
|
|
121
|
-
* into silently-coerced values or empty reads.
|
|
122
|
-
*/
|
|
123
|
-
export declare const LIGHTER_DATA_INTEGRITY_PREFIX = "Invalid Lighter venue data:";
|
|
124
|
-
/**
|
|
125
|
-
* Parse a numeric string STRICTLY: the entire trimmed string must be a
|
|
126
|
-
* decimal/scientific literal. parseFloat prefix-parses, so '0.1oops'
|
|
127
|
-
* would silently become 0.1.
|
|
128
|
-
*
|
|
129
|
-
* Accepts unknown because venue REST payloads are type-cast without
|
|
130
|
-
* runtime validation: a missing/null/numeric field must yield null (for
|
|
131
|
-
* the caller's explicit error path), never a TypeError that generic
|
|
132
|
-
* catches misclassify as an ordinary read failure.
|
|
133
|
-
*
|
|
134
|
-
* Note: '1e999' matches the literal pattern and parses to Infinity —
|
|
135
|
-
* callers own the finiteness check.
|
|
136
|
-
*
|
|
137
|
-
* @param value - Raw value from params or a venue payload.
|
|
138
|
-
* @returns The parsed number, or null when the value is not a string
|
|
139
|
-
* containing a pure numeric literal.
|
|
140
|
-
*/
|
|
141
|
-
export declare function parseLighterStrictDecimal(value: unknown): number | null;
|
|
142
|
-
/**
|
|
143
|
-
* Convert a human-readable amount to the integer representation expected by
|
|
144
|
-
* the Lighter signer for a given number of supported decimals.
|
|
145
|
-
*
|
|
146
|
-
* @param value - Human-readable amount (e.g. 0.05 SOL, 187.25 USDC).
|
|
147
|
-
* @param decimals - `supportedSizeDecimals` / `supportedPriceDecimals`
|
|
148
|
-
* from the market metadata.
|
|
149
|
-
* @returns Integer wire value (e.g. 0.05 @ 5 decimals -> 5000).
|
|
150
|
-
*/
|
|
151
|
-
export declare function toLighterInteger(value: number, decimals: number): number;
|
|
152
|
-
/**
|
|
153
|
-
* Convert an integer wire value back to a human-readable amount.
|
|
154
|
-
*
|
|
155
|
-
* @param value - Integer wire value.
|
|
156
|
-
* @param decimals - Supported decimals from the market metadata.
|
|
157
|
-
* @returns Human-readable amount.
|
|
158
|
-
*/
|
|
159
|
-
export declare function fromLighterInteger(value: number, decimals: number): number;
|
|
160
|
-
/**
|
|
161
|
-
* Compute the minimum order base size for a market that satisfies both
|
|
162
|
-
* `minBaseAmount` and `minQuoteAmount` at a given price.
|
|
163
|
-
*
|
|
164
|
-
* @param market - Market metadata from `orderBooks`.
|
|
165
|
-
* @param price - Order price (human units).
|
|
166
|
-
* @returns Base size in human units, rounded up to the market's size step.
|
|
167
|
-
*/
|
|
168
|
-
export declare function computeLighterMinOrderSize(market: Pick<LighterOrderBookMeta, 'minBaseAmount' | 'minQuoteAmount' | 'supportedSizeDecimals'>, price: number): number;
|
|
169
|
-
/**
|
|
170
|
-
* L1 bridge facts per network, as reported live by
|
|
171
|
-
* `GET /api/v1/layer1BasicInfo` (contract addresses) and the venue docs
|
|
172
|
-
* (minimums). Mainnet settles against Ethereum L1; testnet runs on a
|
|
173
|
-
* venue-hosted devnet L1 (chain id 123456), so its route is informational.
|
|
174
|
-
*/
|
|
175
|
-
export declare const LIGHTER_BRIDGE_CONFIG: {
|
|
176
|
-
readonly mainnet: {
|
|
177
|
-
/** CAIP-2 chain the bridge contract lives on (Ethereum mainnet). */
|
|
178
|
-
readonly chainId: "eip155:1";
|
|
179
|
-
/** ZkLighter L1 contract (deposits via `deposit`, selector 0x8a857083). */
|
|
180
|
-
readonly bridgeContract: "0x3B4D794a66304F130a4Db8F2551B0070dfCf5ca7";
|
|
181
|
-
/** Canonical Ethereum USDC. */
|
|
182
|
-
readonly usdcContract: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48";
|
|
183
|
-
/** Venue-documented USDC minimums. */
|
|
184
|
-
readonly minDepositUsdc: "1";
|
|
185
|
-
readonly minWithdrawUsdc: "1";
|
|
186
|
-
};
|
|
187
|
-
readonly testnet: {
|
|
188
|
-
readonly chainId: "eip155:123456";
|
|
189
|
-
readonly bridgeContract: "0xe034801BC49cCDC79FB683022dA0591C86077261";
|
|
190
|
-
readonly usdcContract: "0x57382a12EC72eBb1e717b7BB76c78CdDAfE3A396";
|
|
191
|
-
readonly minDepositUsdc: "1";
|
|
192
|
-
readonly minWithdrawUsdc: "1";
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
/** UpdateLeverage margin-mode codes (types/txtypes constants). */
|
|
196
|
-
export declare const LIGHTER_MARGIN_MODE_CROSS = 0;
|
|
197
|
-
export declare const LIGHTER_MARGIN_MODE_ISOLATED = 1;
|
|
198
|
-
/**
|
|
199
|
-
* Marker prefix for capability-gate errors (unsupported account tier /
|
|
200
|
-
* unverified fee semantics). Callers use it to surface these explicitly
|
|
201
|
-
* instead of degrading them into empty state.
|
|
202
|
-
*/
|
|
203
|
-
export declare const LIGHTER_UNSUPPORTED_CAPABILITY_PREFIX = "Unsupported Lighter capability:";
|
|
204
|
-
//# sourceMappingURL=lighterConfig.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lighterConfig.d.mts","sourceRoot":"","sources":["../../src/constants/lighterConfig.ts"],"names":[],"mappings":"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"}
|