@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.
Files changed (891) hide show
  1. package/CHANGELOG.md +35 -1
  2. package/README.md +17 -0
  3. package/dist/PerpsController-method-action-types.d.ts +1235 -0
  4. package/dist/PerpsController-method-action-types.d.ts.map +1 -0
  5. package/dist/PerpsController-method-action-types.js +6 -0
  6. package/dist/PerpsController-method-action-types.js.map +1 -0
  7. package/dist/PerpsController.d.ts +1313 -0
  8. package/dist/PerpsController.d.ts.map +1 -0
  9. package/dist/PerpsController.js +5331 -0
  10. package/dist/PerpsController.js.map +1 -0
  11. package/dist/aggregation/SubscriptionMultiplexer.d.ts +171 -0
  12. package/dist/aggregation/SubscriptionMultiplexer.d.ts.map +1 -0
  13. package/dist/aggregation/SubscriptionMultiplexer.js +451 -0
  14. package/dist/aggregation/SubscriptionMultiplexer.js.map +1 -0
  15. package/dist/aggregation/index.d.ts +6 -0
  16. package/dist/aggregation/index.d.ts.map +1 -0
  17. package/dist/aggregation/index.js +5 -0
  18. package/dist/aggregation/index.js.map +1 -0
  19. package/dist/constants/chartConfig.d.ts +228 -0
  20. package/dist/constants/chartConfig.d.ts.map +1 -0
  21. package/dist/constants/chartConfig.js +233 -0
  22. package/dist/constants/chartConfig.js.map +1 -0
  23. package/dist/constants/eventNames.d.ts +565 -0
  24. package/dist/constants/eventNames.d.ts.map +1 -0
  25. package/dist/constants/eventNames.js +657 -0
  26. package/dist/constants/eventNames.js.map +1 -0
  27. package/dist/constants/hyperLiquidConfig.d.ts +280 -0
  28. package/dist/constants/hyperLiquidConfig.d.ts.map +1 -0
  29. package/dist/constants/hyperLiquidConfig.js +596 -0
  30. package/dist/constants/hyperLiquidConfig.js.map +1 -0
  31. package/dist/constants/index.d.ts +12 -0
  32. package/dist/constants/index.d.ts.map +1 -0
  33. package/dist/constants/index.js +12 -0
  34. package/dist/constants/index.js.map +1 -0
  35. package/dist/constants/lighterConfig.d.ts +204 -0
  36. package/dist/constants/lighterConfig.d.ts.map +1 -0
  37. package/dist/constants/lighterConfig.js +317 -0
  38. package/dist/constants/lighterConfig.js.map +1 -0
  39. package/dist/constants/orderTypes.d.ts +19 -0
  40. package/dist/constants/orderTypes.d.ts.map +1 -0
  41. package/dist/constants/orderTypes.js +27 -0
  42. package/dist/constants/orderTypes.js.map +1 -0
  43. package/dist/constants/performanceMetrics.d.ts +46 -0
  44. package/dist/constants/performanceMetrics.d.ts.map +1 -0
  45. package/dist/constants/performanceMetrics.js +60 -0
  46. package/dist/constants/performanceMetrics.js.map +1 -0
  47. package/dist/constants/perpsConfig.d.ts +480 -0
  48. package/dist/constants/perpsConfig.d.ts.map +1 -0
  49. package/dist/constants/perpsConfig.js +555 -0
  50. package/dist/constants/perpsConfig.js.map +1 -0
  51. package/dist/constants/transactionsHistoryConfig.d.ts +35 -0
  52. package/dist/constants/transactionsHistoryConfig.d.ts.map +1 -0
  53. package/dist/constants/transactionsHistoryConfig.js +35 -0
  54. package/dist/constants/transactionsHistoryConfig.js.map +1 -0
  55. package/dist/index.d.ts +95 -0
  56. package/dist/index.d.ts.map +1 -0
  57. package/dist/index.js +80 -0
  58. package/dist/index.js.map +1 -0
  59. package/dist/perpsErrorCodes.d.ts +113 -0
  60. package/dist/perpsErrorCodes.d.ts.map +1 -0
  61. package/dist/perpsErrorCodes.js +133 -0
  62. package/dist/perpsErrorCodes.js.map +1 -0
  63. package/dist/providers/AggregatedPerpsProvider.d.ts +277 -0
  64. package/dist/providers/AggregatedPerpsProvider.d.ts.map +1 -0
  65. package/dist/providers/AggregatedPerpsProvider.js +827 -0
  66. package/dist/providers/AggregatedPerpsProvider.js.map +1 -0
  67. package/dist/providers/HyperLiquidProvider.d.ts +656 -0
  68. package/dist/providers/HyperLiquidProvider.d.ts.map +1 -0
  69. package/dist/providers/HyperLiquidProvider.js +11308 -0
  70. package/dist/providers/HyperLiquidProvider.js.map +1 -0
  71. package/dist/providers/LighterProvider.d.ts +179 -0
  72. package/dist/providers/LighterProvider.d.ts.map +1 -0
  73. package/dist/providers/LighterProvider.js +6599 -0
  74. package/dist/providers/LighterProvider.js.map +1 -0
  75. package/dist/routing/ProviderRouter.d.ts +112 -0
  76. package/dist/routing/ProviderRouter.d.ts.map +1 -0
  77. package/dist/routing/ProviderRouter.js +137 -0
  78. package/dist/routing/ProviderRouter.js.map +1 -0
  79. package/dist/routing/index.d.ts +6 -0
  80. package/dist/routing/index.d.ts.map +1 -0
  81. package/dist/routing/index.js +5 -0
  82. package/dist/routing/index.js.map +1 -0
  83. package/dist/selectors.d.ts +336 -0
  84. package/dist/selectors.d.ts.map +1 -0
  85. package/dist/selectors.js +249 -0
  86. package/dist/selectors.js.map +1 -0
  87. package/dist/services/AccountService.d.ts +56 -0
  88. package/dist/services/AccountService.d.ts.map +1 -0
  89. package/dist/services/AccountService.js +307 -0
  90. package/dist/services/AccountService.js.map +1 -0
  91. package/dist/services/AggregatedOrderBookConnection.d.ts +106 -0
  92. package/dist/services/AggregatedOrderBookConnection.d.ts.map +1 -0
  93. package/dist/services/AggregatedOrderBookConnection.js +388 -0
  94. package/dist/services/AggregatedOrderBookConnection.js.map +1 -0
  95. package/dist/services/DataLakeService.d.ts +51 -0
  96. package/dist/services/DataLakeService.d.ts.map +1 -0
  97. package/dist/services/DataLakeService.js +215 -0
  98. package/dist/services/DataLakeService.js.map +1 -0
  99. package/dist/services/DepositService.d.ts +39 -0
  100. package/dist/services/DepositService.d.ts.map +1 -0
  101. package/dist/services/DepositService.js +88 -0
  102. package/dist/services/DepositService.js.map +1 -0
  103. package/dist/services/DexDiscoveryCacheManager.d.ts +52 -0
  104. package/dist/services/DexDiscoveryCacheManager.d.ts.map +1 -0
  105. package/dist/services/DexDiscoveryCacheManager.js +130 -0
  106. package/dist/services/DexDiscoveryCacheManager.js.map +1 -0
  107. package/dist/services/EligibilityService.d.ts +28 -0
  108. package/dist/services/EligibilityService.d.ts.map +1 -0
  109. package/dist/services/EligibilityService.js +61 -0
  110. package/dist/services/EligibilityService.js.map +1 -0
  111. package/dist/services/FeatureFlagConfigurationService.d.ts +73 -0
  112. package/dist/services/FeatureFlagConfigurationService.d.ts.map +1 -0
  113. package/dist/services/FeatureFlagConfigurationService.js +266 -0
  114. package/dist/services/FeatureFlagConfigurationService.js.map +1 -0
  115. package/dist/services/HyperLiquidClientService.d.ts +252 -0
  116. package/dist/services/HyperLiquidClientService.d.ts.map +1 -0
  117. package/dist/services/HyperLiquidClientService.js +1152 -0
  118. package/dist/services/HyperLiquidClientService.js.map +1 -0
  119. package/dist/services/HyperLiquidSubscriptionService.d.ts +265 -0
  120. package/dist/services/HyperLiquidSubscriptionService.d.ts.map +1 -0
  121. package/dist/services/HyperLiquidSubscriptionService.js +3874 -0
  122. package/dist/services/HyperLiquidSubscriptionService.js.map +1 -0
  123. package/dist/services/HyperLiquidWalletService.d.ts +84 -0
  124. package/dist/services/HyperLiquidWalletService.d.ts.map +1 -0
  125. package/dist/services/HyperLiquidWalletService.js +168 -0
  126. package/dist/services/HyperLiquidWalletService.js.map +1 -0
  127. package/dist/services/LighterClientService.d.ts +200 -0
  128. package/dist/services/LighterClientService.d.ts.map +1 -0
  129. package/dist/services/LighterClientService.js +634 -0
  130. package/dist/services/LighterClientService.js.map +1 -0
  131. package/dist/services/LighterWalletService.d.ts +51 -0
  132. package/dist/services/LighterWalletService.d.ts.map +1 -0
  133. package/dist/services/LighterWalletService.js +92 -0
  134. package/dist/services/LighterWalletService.js.map +1 -0
  135. package/dist/services/MarketDataService.d.ts +350 -0
  136. package/dist/services/MarketDataService.d.ts.map +1 -0
  137. package/dist/services/MarketDataService.js +1165 -0
  138. package/dist/services/MarketDataService.js.map +1 -0
  139. package/dist/services/RewardsIntegrationService.d.ts +84 -0
  140. package/dist/services/RewardsIntegrationService.d.ts.map +1 -0
  141. package/dist/services/RewardsIntegrationService.js +380 -0
  142. package/dist/services/RewardsIntegrationService.js.map +1 -0
  143. package/dist/services/ServiceContext.d.ts +102 -0
  144. package/dist/services/ServiceContext.d.ts.map +1 -0
  145. package/dist/services/ServiceContext.js +2 -0
  146. package/dist/services/ServiceContext.js.map +1 -0
  147. package/dist/services/TerminalMarketService.d.ts +45 -0
  148. package/dist/services/TerminalMarketService.d.ts.map +1 -0
  149. package/dist/services/TerminalMarketService.js +640 -0
  150. package/dist/services/TerminalMarketService.js.map +1 -0
  151. package/dist/services/TradingReadinessCache.d.ts +204 -0
  152. package/dist/services/TradingReadinessCache.d.ts.map +1 -0
  153. package/dist/services/TradingReadinessCache.js +313 -0
  154. package/dist/services/TradingReadinessCache.js.map +1 -0
  155. package/dist/services/TradingService.d.ts +201 -0
  156. package/dist/services/TradingService.d.ts.map +1 -0
  157. package/dist/services/TradingService.js +1967 -0
  158. package/dist/services/TradingService.js.map +1 -0
  159. package/dist/types/config.d.ts +49 -0
  160. package/dist/types/config.d.ts.map +1 -0
  161. package/dist/types/config.js +2 -0
  162. package/dist/types/config.js.map +1 -0
  163. package/dist/types/hyperliquid-types.d.ts +67 -0
  164. package/dist/types/hyperliquid-types.d.ts.map +1 -0
  165. package/dist/types/hyperliquid-types.js +41 -0
  166. package/dist/types/hyperliquid-types.js.map +1 -0
  167. package/dist/types/index.d.ts +2192 -0
  168. package/dist/types/index.d.ts.map +1 -0
  169. package/dist/types/index.js +133 -0
  170. package/dist/types/index.js.map +1 -0
  171. package/dist/types/lighter-types.d.ts +772 -0
  172. package/dist/types/lighter-types.d.ts.map +1 -0
  173. package/dist/types/lighter-types.js +10 -0
  174. package/dist/types/lighter-types.js.map +1 -0
  175. package/dist/types/messenger.d.ts +30 -0
  176. package/dist/types/messenger.d.ts.map +1 -0
  177. package/dist/types/messenger.js +2 -0
  178. package/dist/types/messenger.js.map +1 -0
  179. package/dist/types/perps-types.d.ts +184 -0
  180. package/dist/types/perps-types.d.ts.map +1 -0
  181. package/dist/types/perps-types.js +2 -0
  182. package/dist/types/perps-types.js.map +1 -0
  183. package/dist/types/token.d.ts +25 -0
  184. package/dist/types/token.d.ts.map +1 -0
  185. package/dist/types/token.js +2 -0
  186. package/dist/types/token.js.map +1 -0
  187. package/dist/types/transactionTypes.d.ts +60 -0
  188. package/dist/types/transactionTypes.d.ts.map +1 -0
  189. package/dist/types/transactionTypes.js +24 -0
  190. package/dist/types/transactionTypes.js.map +1 -0
  191. package/dist/utils/accountUtils.d.ts +72 -0
  192. package/dist/utils/accountUtils.d.ts.map +1 -0
  193. package/dist/utils/accountUtils.js +223 -0
  194. package/dist/utils/accountUtils.js.map +1 -0
  195. package/dist/utils/capabilitySymbols.d.ts +15 -0
  196. package/dist/utils/capabilitySymbols.d.ts.map +1 -0
  197. package/dist/utils/capabilitySymbols.js +21 -0
  198. package/dist/utils/capabilitySymbols.js.map +1 -0
  199. package/dist/utils/coalescePerpsRestRequest.d.ts +32 -0
  200. package/dist/utils/coalescePerpsRestRequest.d.ts.map +1 -0
  201. package/dist/utils/coalescePerpsRestRequest.js +66 -0
  202. package/dist/utils/coalescePerpsRestRequest.js.map +1 -0
  203. package/dist/utils/errorUtils.d.ts +50 -0
  204. package/dist/utils/errorUtils.d.ts.map +1 -0
  205. package/dist/utils/errorUtils.js +96 -0
  206. package/dist/utils/errorUtils.js.map +1 -0
  207. package/dist/utils/hyperLiquidAbstraction.d.ts +11 -0
  208. package/dist/utils/hyperLiquidAbstraction.d.ts.map +1 -0
  209. package/dist/utils/hyperLiquidAbstraction.js +19 -0
  210. package/dist/utils/hyperLiquidAbstraction.js.map +1 -0
  211. package/dist/utils/hyperLiquidAdapter.d.ts +77 -0
  212. package/dist/utils/hyperLiquidAdapter.d.ts.map +1 -0
  213. package/dist/utils/hyperLiquidAdapter.js +495 -0
  214. package/dist/utils/hyperLiquidAdapter.js.map +1 -0
  215. package/dist/utils/hyperLiquidOrderBookProcessor.d.ts +55 -0
  216. package/dist/utils/hyperLiquidOrderBookProcessor.d.ts.map +1 -0
  217. package/dist/utils/hyperLiquidOrderBookProcessor.js +78 -0
  218. package/dist/utils/hyperLiquidOrderBookProcessor.js.map +1 -0
  219. package/dist/utils/hyperLiquidPositionPreview.d.ts +124 -0
  220. package/dist/utils/hyperLiquidPositionPreview.d.ts.map +1 -0
  221. package/dist/utils/hyperLiquidPositionPreview.js +347 -0
  222. package/dist/utils/hyperLiquidPositionPreview.js.map +1 -0
  223. package/dist/utils/hyperLiquidValidation.d.ts +192 -0
  224. package/dist/utils/hyperLiquidValidation.d.ts.map +1 -0
  225. package/dist/utils/hyperLiquidValidation.js +786 -0
  226. package/dist/utils/hyperLiquidValidation.js.map +1 -0
  227. package/dist/utils/idUtils.d.ts +6 -0
  228. package/dist/utils/idUtils.d.ts.map +1 -0
  229. package/dist/utils/idUtils.js +10 -0
  230. package/dist/utils/idUtils.js.map +1 -0
  231. package/dist/utils/index.d.ts +29 -0
  232. package/dist/utils/index.d.ts.map +1 -0
  233. package/dist/utils/index.js +34 -0
  234. package/dist/utils/index.js.map +1 -0
  235. package/dist/utils/lighterAdapter.d.ts +117 -0
  236. package/dist/utils/lighterAdapter.d.ts.map +1 -0
  237. package/dist/utils/lighterAdapter.js +562 -0
  238. package/dist/utils/lighterAdapter.js.map +1 -0
  239. package/dist/utils/marketDataTransform.d.ts +71 -0
  240. package/dist/utils/marketDataTransform.d.ts.map +1 -0
  241. package/dist/utils/marketDataTransform.js +243 -0
  242. package/dist/utils/marketDataTransform.js.map +1 -0
  243. package/dist/utils/marketSearch.d.ts +48 -0
  244. package/dist/utils/marketSearch.d.ts.map +1 -0
  245. package/dist/utils/marketSearch.js +106 -0
  246. package/dist/utils/marketSearch.js.map +1 -0
  247. package/dist/utils/marketUtils.d.ts +73 -0
  248. package/dist/utils/marketUtils.d.ts.map +1 -0
  249. package/dist/utils/marketUtils.js +248 -0
  250. package/dist/utils/marketUtils.js.map +1 -0
  251. package/dist/utils/orderCalculations.d.ts +306 -0
  252. package/dist/utils/orderCalculations.d.ts.map +1 -0
  253. package/dist/utils/orderCalculations.js +833 -0
  254. package/dist/utils/orderCalculations.js.map +1 -0
  255. package/dist/utils/orderTypes.d.ts +166 -0
  256. package/dist/utils/orderTypes.d.ts.map +1 -0
  257. package/dist/utils/orderTypes.js +287 -0
  258. package/dist/utils/orderTypes.js.map +1 -0
  259. package/dist/utils/perpsConnectionAttemptContext.d.ts +7 -0
  260. package/dist/utils/perpsConnectionAttemptContext.d.ts.map +1 -0
  261. package/dist/utils/perpsConnectionAttemptContext.js +15 -0
  262. package/dist/utils/perpsConnectionAttemptContext.js.map +1 -0
  263. package/dist/utils/perpsDiskPersistence.d.ts +112 -0
  264. package/dist/utils/perpsDiskPersistence.d.ts.map +1 -0
  265. package/dist/utils/perpsDiskPersistence.js +251 -0
  266. package/dist/utils/perpsDiskPersistence.js.map +1 -0
  267. package/dist/utils/perpsFormatters.d.ts +204 -0
  268. package/dist/utils/perpsFormatters.d.ts.map +1 -0
  269. package/dist/utils/perpsFormatters.js +500 -0
  270. package/dist/utils/perpsFormatters.js.map +1 -0
  271. package/dist/utils/rewardsUtils.d.ts +33 -0
  272. package/dist/utils/rewardsUtils.d.ts.map +1 -0
  273. package/dist/utils/rewardsUtils.js +92 -0
  274. package/dist/utils/rewardsUtils.js.map +1 -0
  275. package/dist/utils/significantFigures.d.ts +25 -0
  276. package/dist/utils/significantFigures.d.ts.map +1 -0
  277. package/dist/utils/significantFigures.js +82 -0
  278. package/dist/utils/significantFigures.js.map +1 -0
  279. package/dist/utils/sortMarkets.d.ts +25 -0
  280. package/dist/utils/sortMarkets.d.ts.map +1 -0
  281. package/dist/utils/sortMarkets.js +88 -0
  282. package/dist/utils/sortMarkets.js.map +1 -0
  283. package/dist/utils/standaloneInfoClient.d.ts +37 -0
  284. package/dist/utils/standaloneInfoClient.d.ts.map +1 -0
  285. package/dist/utils/standaloneInfoClient.js +64 -0
  286. package/dist/utils/standaloneInfoClient.js.map +1 -0
  287. package/dist/utils/stringParseUtils.d.ts +11 -0
  288. package/dist/utils/stringParseUtils.d.ts.map +1 -0
  289. package/dist/utils/stringParseUtils.js +28 -0
  290. package/dist/utils/stringParseUtils.js.map +1 -0
  291. package/dist/utils/transferData.d.ts +9 -0
  292. package/dist/utils/transferData.d.ts.map +1 -0
  293. package/dist/utils/transferData.js +29 -0
  294. package/dist/utils/transferData.js.map +1 -0
  295. package/dist/utils/wait.d.ts +2 -0
  296. package/dist/utils/wait.d.ts.map +1 -0
  297. package/dist/utils/wait.js +2 -0
  298. package/dist/utils/wait.js.map +1 -0
  299. package/package.json +33 -61
  300. package/dist/PerpsController-method-action-types.cjs +0 -7
  301. package/dist/PerpsController-method-action-types.cjs.map +0 -1
  302. package/dist/PerpsController-method-action-types.d.cts +0 -1235
  303. package/dist/PerpsController-method-action-types.d.cts.map +0 -1
  304. package/dist/PerpsController-method-action-types.d.mts +0 -1235
  305. package/dist/PerpsController-method-action-types.d.mts.map +0 -1
  306. package/dist/PerpsController-method-action-types.mjs +0 -6
  307. package/dist/PerpsController-method-action-types.mjs.map +0 -1
  308. package/dist/PerpsController.cjs +0 -5154
  309. package/dist/PerpsController.cjs.map +0 -1
  310. package/dist/PerpsController.d.cts +0 -1313
  311. package/dist/PerpsController.d.cts.map +0 -1
  312. package/dist/PerpsController.d.mts +0 -1313
  313. package/dist/PerpsController.d.mts.map +0 -1
  314. package/dist/PerpsController.mjs +0 -5142
  315. package/dist/PerpsController.mjs.map +0 -1
  316. package/dist/aggregation/SubscriptionMultiplexer.cjs +0 -441
  317. package/dist/aggregation/SubscriptionMultiplexer.cjs.map +0 -1
  318. package/dist/aggregation/SubscriptionMultiplexer.d.cts +0 -171
  319. package/dist/aggregation/SubscriptionMultiplexer.d.cts.map +0 -1
  320. package/dist/aggregation/SubscriptionMultiplexer.d.mts +0 -171
  321. package/dist/aggregation/SubscriptionMultiplexer.d.mts.map +0 -1
  322. package/dist/aggregation/SubscriptionMultiplexer.mjs +0 -437
  323. package/dist/aggregation/SubscriptionMultiplexer.mjs.map +0 -1
  324. package/dist/aggregation/index.cjs +0 -9
  325. package/dist/aggregation/index.cjs.map +0 -1
  326. package/dist/aggregation/index.d.cts +0 -6
  327. package/dist/aggregation/index.d.cts.map +0 -1
  328. package/dist/aggregation/index.d.mts +0 -6
  329. package/dist/aggregation/index.d.mts.map +0 -1
  330. package/dist/aggregation/index.mjs +0 -5
  331. package/dist/aggregation/index.mjs.map +0 -1
  332. package/dist/constants/chartConfig.cjs +0 -239
  333. package/dist/constants/chartConfig.cjs.map +0 -1
  334. package/dist/constants/chartConfig.d.cts +0 -228
  335. package/dist/constants/chartConfig.d.cts.map +0 -1
  336. package/dist/constants/chartConfig.d.mts +0 -228
  337. package/dist/constants/chartConfig.d.mts.map +0 -1
  338. package/dist/constants/chartConfig.mjs +0 -233
  339. package/dist/constants/chartConfig.mjs.map +0 -1
  340. package/dist/constants/eventNames.cjs +0 -660
  341. package/dist/constants/eventNames.cjs.map +0 -1
  342. package/dist/constants/eventNames.d.cts +0 -565
  343. package/dist/constants/eventNames.d.cts.map +0 -1
  344. package/dist/constants/eventNames.d.mts +0 -565
  345. package/dist/constants/eventNames.d.mts.map +0 -1
  346. package/dist/constants/eventNames.mjs +0 -657
  347. package/dist/constants/eventNames.mjs.map +0 -1
  348. package/dist/constants/hyperLiquidConfig.cjs +0 -607
  349. package/dist/constants/hyperLiquidConfig.cjs.map +0 -1
  350. package/dist/constants/hyperLiquidConfig.d.cts +0 -280
  351. package/dist/constants/hyperLiquidConfig.d.cts.map +0 -1
  352. package/dist/constants/hyperLiquidConfig.d.mts +0 -280
  353. package/dist/constants/hyperLiquidConfig.d.mts.map +0 -1
  354. package/dist/constants/hyperLiquidConfig.mjs +0 -596
  355. package/dist/constants/hyperLiquidConfig.mjs.map +0 -1
  356. package/dist/constants/index.cjs +0 -28
  357. package/dist/constants/index.cjs.map +0 -1
  358. package/dist/constants/index.d.cts +0 -12
  359. package/dist/constants/index.d.cts.map +0 -1
  360. package/dist/constants/index.d.mts +0 -12
  361. package/dist/constants/index.d.mts.map +0 -1
  362. package/dist/constants/index.mjs +0 -12
  363. package/dist/constants/index.mjs.map +0 -1
  364. package/dist/constants/lighterConfig.cjs +0 -328
  365. package/dist/constants/lighterConfig.cjs.map +0 -1
  366. package/dist/constants/lighterConfig.d.cts +0 -204
  367. package/dist/constants/lighterConfig.d.cts.map +0 -1
  368. package/dist/constants/lighterConfig.d.mts +0 -204
  369. package/dist/constants/lighterConfig.d.mts.map +0 -1
  370. package/dist/constants/lighterConfig.mjs +0 -317
  371. package/dist/constants/lighterConfig.mjs.map +0 -1
  372. package/dist/constants/orderTypes.cjs +0 -31
  373. package/dist/constants/orderTypes.cjs.map +0 -1
  374. package/dist/constants/orderTypes.d.cts +0 -19
  375. package/dist/constants/orderTypes.d.cts.map +0 -1
  376. package/dist/constants/orderTypes.d.mts +0 -19
  377. package/dist/constants/orderTypes.d.mts.map +0 -1
  378. package/dist/constants/orderTypes.mjs +0 -27
  379. package/dist/constants/orderTypes.mjs.map +0 -1
  380. package/dist/constants/performanceMetrics.cjs +0 -63
  381. package/dist/constants/performanceMetrics.cjs.map +0 -1
  382. package/dist/constants/performanceMetrics.d.cts +0 -46
  383. package/dist/constants/performanceMetrics.d.cts.map +0 -1
  384. package/dist/constants/performanceMetrics.d.mts +0 -46
  385. package/dist/constants/performanceMetrics.d.mts.map +0 -1
  386. package/dist/constants/performanceMetrics.mjs +0 -60
  387. package/dist/constants/performanceMetrics.mjs.map +0 -1
  388. package/dist/constants/perpsConfig.cjs +0 -560
  389. package/dist/constants/perpsConfig.cjs.map +0 -1
  390. package/dist/constants/perpsConfig.d.cts +0 -480
  391. package/dist/constants/perpsConfig.d.cts.map +0 -1
  392. package/dist/constants/perpsConfig.d.mts +0 -480
  393. package/dist/constants/perpsConfig.d.mts.map +0 -1
  394. package/dist/constants/perpsConfig.mjs +0 -555
  395. package/dist/constants/perpsConfig.mjs.map +0 -1
  396. package/dist/constants/transactionsHistoryConfig.cjs +0 -38
  397. package/dist/constants/transactionsHistoryConfig.cjs.map +0 -1
  398. package/dist/constants/transactionsHistoryConfig.d.cts +0 -35
  399. package/dist/constants/transactionsHistoryConfig.d.cts.map +0 -1
  400. package/dist/constants/transactionsHistoryConfig.d.mts +0 -35
  401. package/dist/constants/transactionsHistoryConfig.d.mts.map +0 -1
  402. package/dist/constants/transactionsHistoryConfig.mjs +0 -35
  403. package/dist/constants/transactionsHistoryConfig.mjs.map +0 -1
  404. package/dist/index.cjs +0 -334
  405. package/dist/index.cjs.map +0 -1
  406. package/dist/index.d.cts +0 -95
  407. package/dist/index.d.cts.map +0 -1
  408. package/dist/index.d.mts +0 -95
  409. package/dist/index.d.mts.map +0 -1
  410. package/dist/index.mjs +0 -80
  411. package/dist/index.mjs.map +0 -1
  412. package/dist/perpsErrorCodes.cjs +0 -128
  413. package/dist/perpsErrorCodes.cjs.map +0 -1
  414. package/dist/perpsErrorCodes.d.cts +0 -105
  415. package/dist/perpsErrorCodes.d.cts.map +0 -1
  416. package/dist/perpsErrorCodes.d.mts +0 -105
  417. package/dist/perpsErrorCodes.d.mts.map +0 -1
  418. package/dist/perpsErrorCodes.mjs +0 -125
  419. package/dist/perpsErrorCodes.mjs.map +0 -1
  420. package/dist/providers/AggregatedPerpsProvider.cjs +0 -810
  421. package/dist/providers/AggregatedPerpsProvider.cjs.map +0 -1
  422. package/dist/providers/AggregatedPerpsProvider.d.cts +0 -277
  423. package/dist/providers/AggregatedPerpsProvider.d.cts.map +0 -1
  424. package/dist/providers/AggregatedPerpsProvider.d.mts +0 -277
  425. package/dist/providers/AggregatedPerpsProvider.d.mts.map +0 -1
  426. package/dist/providers/AggregatedPerpsProvider.mjs +0 -805
  427. package/dist/providers/AggregatedPerpsProvider.mjs.map +0 -1
  428. package/dist/providers/HyperLiquidProvider.cjs +0 -10963
  429. package/dist/providers/HyperLiquidProvider.cjs.map +0 -1
  430. package/dist/providers/HyperLiquidProvider.d.cts +0 -656
  431. package/dist/providers/HyperLiquidProvider.d.cts.map +0 -1
  432. package/dist/providers/HyperLiquidProvider.d.mts +0 -656
  433. package/dist/providers/HyperLiquidProvider.d.mts.map +0 -1
  434. package/dist/providers/HyperLiquidProvider.mjs +0 -10959
  435. package/dist/providers/HyperLiquidProvider.mjs.map +0 -1
  436. package/dist/providers/LighterProvider.cjs +0 -6575
  437. package/dist/providers/LighterProvider.cjs.map +0 -1
  438. package/dist/providers/LighterProvider.d.cts +0 -179
  439. package/dist/providers/LighterProvider.d.cts.map +0 -1
  440. package/dist/providers/LighterProvider.d.mts +0 -179
  441. package/dist/providers/LighterProvider.d.mts.map +0 -1
  442. package/dist/providers/LighterProvider.mjs +0 -6571
  443. package/dist/providers/LighterProvider.mjs.map +0 -1
  444. package/dist/routing/ProviderRouter.cjs +0 -154
  445. package/dist/routing/ProviderRouter.cjs.map +0 -1
  446. package/dist/routing/ProviderRouter.d.cts +0 -112
  447. package/dist/routing/ProviderRouter.d.cts.map +0 -1
  448. package/dist/routing/ProviderRouter.d.mts +0 -112
  449. package/dist/routing/ProviderRouter.d.mts.map +0 -1
  450. package/dist/routing/ProviderRouter.mjs +0 -150
  451. package/dist/routing/ProviderRouter.mjs.map +0 -1
  452. package/dist/routing/index.cjs +0 -9
  453. package/dist/routing/index.cjs.map +0 -1
  454. package/dist/routing/index.d.cts +0 -6
  455. package/dist/routing/index.d.cts.map +0 -1
  456. package/dist/routing/index.d.mts +0 -6
  457. package/dist/routing/index.d.mts.map +0 -1
  458. package/dist/routing/index.mjs +0 -5
  459. package/dist/routing/index.mjs.map +0 -1
  460. package/dist/selectors.cjs +0 -264
  461. package/dist/selectors.cjs.map +0 -1
  462. package/dist/selectors.d.cts +0 -336
  463. package/dist/selectors.d.cts.map +0 -1
  464. package/dist/selectors.d.mts +0 -336
  465. package/dist/selectors.d.mts.map +0 -1
  466. package/dist/selectors.mjs +0 -249
  467. package/dist/selectors.mjs.map +0 -1
  468. package/dist/services/AccountService.cjs +0 -324
  469. package/dist/services/AccountService.cjs.map +0 -1
  470. package/dist/services/AccountService.d.cts +0 -56
  471. package/dist/services/AccountService.d.cts.map +0 -1
  472. package/dist/services/AccountService.d.mts +0 -56
  473. package/dist/services/AccountService.d.mts.map +0 -1
  474. package/dist/services/AccountService.mjs +0 -320
  475. package/dist/services/AccountService.mjs.map +0 -1
  476. package/dist/services/AggregatedOrderBookConnection.cjs +0 -405
  477. package/dist/services/AggregatedOrderBookConnection.cjs.map +0 -1
  478. package/dist/services/AggregatedOrderBookConnection.d.cts +0 -106
  479. package/dist/services/AggregatedOrderBookConnection.d.cts.map +0 -1
  480. package/dist/services/AggregatedOrderBookConnection.d.mts +0 -106
  481. package/dist/services/AggregatedOrderBookConnection.d.mts.map +0 -1
  482. package/dist/services/AggregatedOrderBookConnection.mjs +0 -400
  483. package/dist/services/AggregatedOrderBookConnection.mjs.map +0 -1
  484. package/dist/services/DataLakeService.cjs +0 -233
  485. package/dist/services/DataLakeService.cjs.map +0 -1
  486. package/dist/services/DataLakeService.d.cts +0 -51
  487. package/dist/services/DataLakeService.d.cts.map +0 -1
  488. package/dist/services/DataLakeService.d.mts +0 -51
  489. package/dist/services/DataLakeService.d.mts.map +0 -1
  490. package/dist/services/DataLakeService.mjs +0 -229
  491. package/dist/services/DataLakeService.mjs.map +0 -1
  492. package/dist/services/DepositService.cjs +0 -105
  493. package/dist/services/DepositService.cjs.map +0 -1
  494. package/dist/services/DepositService.d.cts +0 -39
  495. package/dist/services/DepositService.d.cts.map +0 -1
  496. package/dist/services/DepositService.d.mts +0 -39
  497. package/dist/services/DepositService.d.mts.map +0 -1
  498. package/dist/services/DepositService.mjs +0 -101
  499. package/dist/services/DepositService.mjs.map +0 -1
  500. package/dist/services/DexDiscoveryCacheManager.cjs +0 -147
  501. package/dist/services/DexDiscoveryCacheManager.cjs.map +0 -1
  502. package/dist/services/DexDiscoveryCacheManager.d.cts +0 -52
  503. package/dist/services/DexDiscoveryCacheManager.d.cts.map +0 -1
  504. package/dist/services/DexDiscoveryCacheManager.d.mts +0 -52
  505. package/dist/services/DexDiscoveryCacheManager.d.mts.map +0 -1
  506. package/dist/services/DexDiscoveryCacheManager.mjs +0 -143
  507. package/dist/services/DexDiscoveryCacheManager.mjs.map +0 -1
  508. package/dist/services/EligibilityService.cjs +0 -78
  509. package/dist/services/EligibilityService.cjs.map +0 -1
  510. package/dist/services/EligibilityService.d.cts +0 -28
  511. package/dist/services/EligibilityService.d.cts.map +0 -1
  512. package/dist/services/EligibilityService.d.mts +0 -28
  513. package/dist/services/EligibilityService.d.mts.map +0 -1
  514. package/dist/services/EligibilityService.mjs +0 -74
  515. package/dist/services/EligibilityService.mjs.map +0 -1
  516. package/dist/services/FeatureFlagConfigurationService.cjs +0 -257
  517. package/dist/services/FeatureFlagConfigurationService.cjs.map +0 -1
  518. package/dist/services/FeatureFlagConfigurationService.d.cts +0 -73
  519. package/dist/services/FeatureFlagConfigurationService.d.cts.map +0 -1
  520. package/dist/services/FeatureFlagConfigurationService.d.mts +0 -73
  521. package/dist/services/FeatureFlagConfigurationService.d.mts.map +0 -1
  522. package/dist/services/FeatureFlagConfigurationService.mjs +0 -253
  523. package/dist/services/FeatureFlagConfigurationService.mjs.map +0 -1
  524. package/dist/services/HyperLiquidClientService.cjs +0 -1114
  525. package/dist/services/HyperLiquidClientService.cjs.map +0 -1
  526. package/dist/services/HyperLiquidClientService.d.cts +0 -252
  527. package/dist/services/HyperLiquidClientService.d.cts.map +0 -1
  528. package/dist/services/HyperLiquidClientService.d.mts +0 -252
  529. package/dist/services/HyperLiquidClientService.d.mts.map +0 -1
  530. package/dist/services/HyperLiquidClientService.mjs +0 -1109
  531. package/dist/services/HyperLiquidClientService.mjs.map +0 -1
  532. package/dist/services/HyperLiquidSubscriptionService.cjs +0 -3594
  533. package/dist/services/HyperLiquidSubscriptionService.cjs.map +0 -1
  534. package/dist/services/HyperLiquidSubscriptionService.d.cts +0 -265
  535. package/dist/services/HyperLiquidSubscriptionService.d.cts.map +0 -1
  536. package/dist/services/HyperLiquidSubscriptionService.d.mts +0 -265
  537. package/dist/services/HyperLiquidSubscriptionService.d.mts.map +0 -1
  538. package/dist/services/HyperLiquidSubscriptionService.mjs +0 -3590
  539. package/dist/services/HyperLiquidSubscriptionService.mjs.map +0 -1
  540. package/dist/services/HyperLiquidWalletService.cjs +0 -186
  541. package/dist/services/HyperLiquidWalletService.cjs.map +0 -1
  542. package/dist/services/HyperLiquidWalletService.d.cts +0 -84
  543. package/dist/services/HyperLiquidWalletService.d.cts.map +0 -1
  544. package/dist/services/HyperLiquidWalletService.d.mts +0 -84
  545. package/dist/services/HyperLiquidWalletService.d.mts.map +0 -1
  546. package/dist/services/HyperLiquidWalletService.mjs +0 -182
  547. package/dist/services/HyperLiquidWalletService.mjs.map +0 -1
  548. package/dist/services/LighterClientService.cjs +0 -643
  549. package/dist/services/LighterClientService.cjs.map +0 -1
  550. package/dist/services/LighterClientService.d.cts +0 -200
  551. package/dist/services/LighterClientService.d.cts.map +0 -1
  552. package/dist/services/LighterClientService.d.mts +0 -200
  553. package/dist/services/LighterClientService.d.mts.map +0 -1
  554. package/dist/services/LighterClientService.mjs +0 -637
  555. package/dist/services/LighterClientService.mjs.map +0 -1
  556. package/dist/services/LighterWalletService.cjs +0 -109
  557. package/dist/services/LighterWalletService.cjs.map +0 -1
  558. package/dist/services/LighterWalletService.d.cts +0 -51
  559. package/dist/services/LighterWalletService.d.cts.map +0 -1
  560. package/dist/services/LighterWalletService.d.mts +0 -51
  561. package/dist/services/LighterWalletService.d.mts.map +0 -1
  562. package/dist/services/LighterWalletService.mjs +0 -105
  563. package/dist/services/LighterWalletService.mjs.map +0 -1
  564. package/dist/services/MarketDataService.cjs +0 -1171
  565. package/dist/services/MarketDataService.cjs.map +0 -1
  566. package/dist/services/MarketDataService.d.cts +0 -350
  567. package/dist/services/MarketDataService.d.cts.map +0 -1
  568. package/dist/services/MarketDataService.d.mts +0 -350
  569. package/dist/services/MarketDataService.d.mts.map +0 -1
  570. package/dist/services/MarketDataService.mjs +0 -1167
  571. package/dist/services/MarketDataService.mjs.map +0 -1
  572. package/dist/services/RewardsIntegrationService.cjs +0 -391
  573. package/dist/services/RewardsIntegrationService.cjs.map +0 -1
  574. package/dist/services/RewardsIntegrationService.d.cts +0 -84
  575. package/dist/services/RewardsIntegrationService.d.cts.map +0 -1
  576. package/dist/services/RewardsIntegrationService.d.mts +0 -84
  577. package/dist/services/RewardsIntegrationService.d.mts.map +0 -1
  578. package/dist/services/RewardsIntegrationService.mjs +0 -387
  579. package/dist/services/RewardsIntegrationService.mjs.map +0 -1
  580. package/dist/services/ServiceContext.cjs +0 -3
  581. package/dist/services/ServiceContext.cjs.map +0 -1
  582. package/dist/services/ServiceContext.d.cts +0 -102
  583. package/dist/services/ServiceContext.d.cts.map +0 -1
  584. package/dist/services/ServiceContext.d.mts +0 -102
  585. package/dist/services/ServiceContext.d.mts.map +0 -1
  586. package/dist/services/ServiceContext.mjs +0 -2
  587. package/dist/services/ServiceContext.mjs.map +0 -1
  588. package/dist/services/TerminalMarketService.cjs +0 -623
  589. package/dist/services/TerminalMarketService.cjs.map +0 -1
  590. package/dist/services/TerminalMarketService.d.cts +0 -45
  591. package/dist/services/TerminalMarketService.d.cts.map +0 -1
  592. package/dist/services/TerminalMarketService.d.mts +0 -45
  593. package/dist/services/TerminalMarketService.d.mts.map +0 -1
  594. package/dist/services/TerminalMarketService.mjs +0 -619
  595. package/dist/services/TerminalMarketService.mjs.map +0 -1
  596. package/dist/services/TradingReadinessCache.cjs +0 -329
  597. package/dist/services/TradingReadinessCache.cjs.map +0 -1
  598. package/dist/services/TradingReadinessCache.d.cts +0 -204
  599. package/dist/services/TradingReadinessCache.d.cts.map +0 -1
  600. package/dist/services/TradingReadinessCache.d.mts +0 -204
  601. package/dist/services/TradingReadinessCache.d.mts.map +0 -1
  602. package/dist/services/TradingReadinessCache.mjs +0 -326
  603. package/dist/services/TradingReadinessCache.mjs.map +0 -1
  604. package/dist/services/TradingService.cjs +0 -1895
  605. package/dist/services/TradingService.cjs.map +0 -1
  606. package/dist/services/TradingService.d.cts +0 -201
  607. package/dist/services/TradingService.d.cts.map +0 -1
  608. package/dist/services/TradingService.d.mts +0 -201
  609. package/dist/services/TradingService.d.mts.map +0 -1
  610. package/dist/services/TradingService.mjs +0 -1891
  611. package/dist/services/TradingService.mjs.map +0 -1
  612. package/dist/types/config.cjs +0 -3
  613. package/dist/types/config.cjs.map +0 -1
  614. package/dist/types/config.d.cts +0 -49
  615. package/dist/types/config.d.cts.map +0 -1
  616. package/dist/types/config.d.mts +0 -49
  617. package/dist/types/config.d.mts.map +0 -1
  618. package/dist/types/config.mjs +0 -2
  619. package/dist/types/config.mjs.map +0 -1
  620. package/dist/types/hyperliquid-types.cjs +0 -45
  621. package/dist/types/hyperliquid-types.cjs.map +0 -1
  622. package/dist/types/hyperliquid-types.d.cts +0 -67
  623. package/dist/types/hyperliquid-types.d.cts.map +0 -1
  624. package/dist/types/hyperliquid-types.d.mts +0 -67
  625. package/dist/types/hyperliquid-types.d.mts.map +0 -1
  626. package/dist/types/hyperliquid-types.mjs +0 -41
  627. package/dist/types/hyperliquid-types.mjs.map +0 -1
  628. package/dist/types/index.cjs +0 -151
  629. package/dist/types/index.cjs.map +0 -1
  630. package/dist/types/index.d.cts +0 -2183
  631. package/dist/types/index.d.cts.map +0 -1
  632. package/dist/types/index.d.mts +0 -2183
  633. package/dist/types/index.d.mts.map +0 -1
  634. package/dist/types/index.mjs +0 -133
  635. package/dist/types/index.mjs.map +0 -1
  636. package/dist/types/lighter-types.cjs +0 -11
  637. package/dist/types/lighter-types.cjs.map +0 -1
  638. package/dist/types/lighter-types.d.cts +0 -763
  639. package/dist/types/lighter-types.d.cts.map +0 -1
  640. package/dist/types/lighter-types.d.mts +0 -763
  641. package/dist/types/lighter-types.d.mts.map +0 -1
  642. package/dist/types/lighter-types.mjs +0 -10
  643. package/dist/types/lighter-types.mjs.map +0 -1
  644. package/dist/types/messenger.cjs +0 -3
  645. package/dist/types/messenger.cjs.map +0 -1
  646. package/dist/types/messenger.d.cts +0 -30
  647. package/dist/types/messenger.d.cts.map +0 -1
  648. package/dist/types/messenger.d.mts +0 -30
  649. package/dist/types/messenger.d.mts.map +0 -1
  650. package/dist/types/messenger.mjs +0 -2
  651. package/dist/types/messenger.mjs.map +0 -1
  652. package/dist/types/perps-types.cjs +0 -7
  653. package/dist/types/perps-types.cjs.map +0 -1
  654. package/dist/types/perps-types.d.cts +0 -184
  655. package/dist/types/perps-types.d.cts.map +0 -1
  656. package/dist/types/perps-types.d.mts +0 -184
  657. package/dist/types/perps-types.d.mts.map +0 -1
  658. package/dist/types/perps-types.mjs +0 -5
  659. package/dist/types/perps-types.mjs.map +0 -1
  660. package/dist/types/token.cjs +0 -3
  661. package/dist/types/token.cjs.map +0 -1
  662. package/dist/types/token.d.cts +0 -25
  663. package/dist/types/token.d.cts.map +0 -1
  664. package/dist/types/token.d.mts +0 -25
  665. package/dist/types/token.d.mts.map +0 -1
  666. package/dist/types/token.mjs +0 -2
  667. package/dist/types/token.mjs.map +0 -1
  668. package/dist/types/transactionTypes.cjs +0 -29
  669. package/dist/types/transactionTypes.cjs.map +0 -1
  670. package/dist/types/transactionTypes.d.cts +0 -60
  671. package/dist/types/transactionTypes.d.cts.map +0 -1
  672. package/dist/types/transactionTypes.d.mts +0 -60
  673. package/dist/types/transactionTypes.d.mts.map +0 -1
  674. package/dist/types/transactionTypes.mjs +0 -24
  675. package/dist/types/transactionTypes.mjs.map +0 -1
  676. package/dist/utils/accountUtils.cjs +0 -236
  677. package/dist/utils/accountUtils.cjs.map +0 -1
  678. package/dist/utils/accountUtils.d.cts +0 -72
  679. package/dist/utils/accountUtils.d.cts.map +0 -1
  680. package/dist/utils/accountUtils.d.mts +0 -72
  681. package/dist/utils/accountUtils.d.mts.map +0 -1
  682. package/dist/utils/accountUtils.mjs +0 -223
  683. package/dist/utils/accountUtils.mjs.map +0 -1
  684. package/dist/utils/capabilitySymbols.cjs +0 -25
  685. package/dist/utils/capabilitySymbols.cjs.map +0 -1
  686. package/dist/utils/capabilitySymbols.d.cts +0 -15
  687. package/dist/utils/capabilitySymbols.d.cts.map +0 -1
  688. package/dist/utils/capabilitySymbols.d.mts +0 -15
  689. package/dist/utils/capabilitySymbols.d.mts.map +0 -1
  690. package/dist/utils/capabilitySymbols.mjs +0 -21
  691. package/dist/utils/capabilitySymbols.mjs.map +0 -1
  692. package/dist/utils/coalescePerpsRestRequest.cjs +0 -71
  693. package/dist/utils/coalescePerpsRestRequest.cjs.map +0 -1
  694. package/dist/utils/coalescePerpsRestRequest.d.cts +0 -32
  695. package/dist/utils/coalescePerpsRestRequest.d.cts.map +0 -1
  696. package/dist/utils/coalescePerpsRestRequest.d.mts +0 -32
  697. package/dist/utils/coalescePerpsRestRequest.d.mts.map +0 -1
  698. package/dist/utils/coalescePerpsRestRequest.mjs +0 -66
  699. package/dist/utils/coalescePerpsRestRequest.mjs.map +0 -1
  700. package/dist/utils/errorUtils.cjs +0 -104
  701. package/dist/utils/errorUtils.cjs.map +0 -1
  702. package/dist/utils/errorUtils.d.cts +0 -50
  703. package/dist/utils/errorUtils.d.cts.map +0 -1
  704. package/dist/utils/errorUtils.d.mts +0 -50
  705. package/dist/utils/errorUtils.d.mts.map +0 -1
  706. package/dist/utils/errorUtils.mjs +0 -96
  707. package/dist/utils/errorUtils.mjs.map +0 -1
  708. package/dist/utils/hyperLiquidAbstraction.cjs +0 -23
  709. package/dist/utils/hyperLiquidAbstraction.cjs.map +0 -1
  710. package/dist/utils/hyperLiquidAbstraction.d.cts +0 -11
  711. package/dist/utils/hyperLiquidAbstraction.d.cts.map +0 -1
  712. package/dist/utils/hyperLiquidAbstraction.d.mts +0 -11
  713. package/dist/utils/hyperLiquidAbstraction.d.mts.map +0 -1
  714. package/dist/utils/hyperLiquidAbstraction.mjs +0 -19
  715. package/dist/utils/hyperLiquidAbstraction.mjs.map +0 -1
  716. package/dist/utils/hyperLiquidAdapter.cjs +0 -512
  717. package/dist/utils/hyperLiquidAdapter.cjs.map +0 -1
  718. package/dist/utils/hyperLiquidAdapter.d.cts +0 -77
  719. package/dist/utils/hyperLiquidAdapter.d.cts.map +0 -1
  720. package/dist/utils/hyperLiquidAdapter.d.mts +0 -77
  721. package/dist/utils/hyperLiquidAdapter.d.mts.map +0 -1
  722. package/dist/utils/hyperLiquidAdapter.mjs +0 -494
  723. package/dist/utils/hyperLiquidAdapter.mjs.map +0 -1
  724. package/dist/utils/hyperLiquidOrderBookProcessor.cjs +0 -83
  725. package/dist/utils/hyperLiquidOrderBookProcessor.cjs.map +0 -1
  726. package/dist/utils/hyperLiquidOrderBookProcessor.d.cts +0 -55
  727. package/dist/utils/hyperLiquidOrderBookProcessor.d.cts.map +0 -1
  728. package/dist/utils/hyperLiquidOrderBookProcessor.d.mts +0 -55
  729. package/dist/utils/hyperLiquidOrderBookProcessor.d.mts.map +0 -1
  730. package/dist/utils/hyperLiquidOrderBookProcessor.mjs +0 -78
  731. package/dist/utils/hyperLiquidOrderBookProcessor.mjs.map +0 -1
  732. package/dist/utils/hyperLiquidPositionPreview.cjs +0 -355
  733. package/dist/utils/hyperLiquidPositionPreview.cjs.map +0 -1
  734. package/dist/utils/hyperLiquidPositionPreview.d.cts +0 -124
  735. package/dist/utils/hyperLiquidPositionPreview.d.cts.map +0 -1
  736. package/dist/utils/hyperLiquidPositionPreview.d.mts +0 -124
  737. package/dist/utils/hyperLiquidPositionPreview.d.mts.map +0 -1
  738. package/dist/utils/hyperLiquidPositionPreview.mjs +0 -347
  739. package/dist/utils/hyperLiquidPositionPreview.mjs.map +0 -1
  740. package/dist/utils/hyperLiquidValidation.cjs +0 -799
  741. package/dist/utils/hyperLiquidValidation.cjs.map +0 -1
  742. package/dist/utils/hyperLiquidValidation.d.cts +0 -192
  743. package/dist/utils/hyperLiquidValidation.d.cts.map +0 -1
  744. package/dist/utils/hyperLiquidValidation.d.mts +0 -192
  745. package/dist/utils/hyperLiquidValidation.d.mts.map +0 -1
  746. package/dist/utils/hyperLiquidValidation.mjs +0 -786
  747. package/dist/utils/hyperLiquidValidation.mjs.map +0 -1
  748. package/dist/utils/idUtils.cjs +0 -18
  749. package/dist/utils/idUtils.cjs.map +0 -1
  750. package/dist/utils/idUtils.d.cts +0 -6
  751. package/dist/utils/idUtils.d.cts.map +0 -1
  752. package/dist/utils/idUtils.d.mts +0 -6
  753. package/dist/utils/idUtils.d.mts.map +0 -1
  754. package/dist/utils/idUtils.mjs +0 -10
  755. package/dist/utils/idUtils.mjs.map +0 -1
  756. package/dist/utils/index.cjs +0 -66
  757. package/dist/utils/index.cjs.map +0 -1
  758. package/dist/utils/index.d.cts +0 -29
  759. package/dist/utils/index.d.cts.map +0 -1
  760. package/dist/utils/index.d.mts +0 -29
  761. package/dist/utils/index.d.mts.map +0 -1
  762. package/dist/utils/index.mjs +0 -34
  763. package/dist/utils/index.mjs.map +0 -1
  764. package/dist/utils/lighterAdapter.cjs +0 -575
  765. package/dist/utils/lighterAdapter.cjs.map +0 -1
  766. package/dist/utils/lighterAdapter.d.cts +0 -117
  767. package/dist/utils/lighterAdapter.d.cts.map +0 -1
  768. package/dist/utils/lighterAdapter.d.mts +0 -117
  769. package/dist/utils/lighterAdapter.d.mts.map +0 -1
  770. package/dist/utils/lighterAdapter.mjs +0 -562
  771. package/dist/utils/lighterAdapter.mjs.map +0 -1
  772. package/dist/utils/marketDataTransform.cjs +0 -250
  773. package/dist/utils/marketDataTransform.cjs.map +0 -1
  774. package/dist/utils/marketDataTransform.d.cts +0 -71
  775. package/dist/utils/marketDataTransform.d.cts.map +0 -1
  776. package/dist/utils/marketDataTransform.d.mts +0 -71
  777. package/dist/utils/marketDataTransform.d.mts.map +0 -1
  778. package/dist/utils/marketDataTransform.mjs +0 -243
  779. package/dist/utils/marketDataTransform.mjs.map +0 -1
  780. package/dist/utils/marketSearch.cjs +0 -111
  781. package/dist/utils/marketSearch.cjs.map +0 -1
  782. package/dist/utils/marketSearch.d.cts +0 -48
  783. package/dist/utils/marketSearch.d.cts.map +0 -1
  784. package/dist/utils/marketSearch.d.mts +0 -48
  785. package/dist/utils/marketSearch.d.mts.map +0 -1
  786. package/dist/utils/marketSearch.mjs +0 -106
  787. package/dist/utils/marketSearch.mjs.map +0 -1
  788. package/dist/utils/marketUtils.cjs +0 -266
  789. package/dist/utils/marketUtils.cjs.map +0 -1
  790. package/dist/utils/marketUtils.d.cts +0 -73
  791. package/dist/utils/marketUtils.d.cts.map +0 -1
  792. package/dist/utils/marketUtils.d.mts +0 -73
  793. package/dist/utils/marketUtils.d.mts.map +0 -1
  794. package/dist/utils/marketUtils.mjs +0 -248
  795. package/dist/utils/marketUtils.mjs.map +0 -1
  796. package/dist/utils/orderCalculations.cjs +0 -849
  797. package/dist/utils/orderCalculations.cjs.map +0 -1
  798. package/dist/utils/orderCalculations.d.cts +0 -306
  799. package/dist/utils/orderCalculations.d.cts.map +0 -1
  800. package/dist/utils/orderCalculations.d.mts +0 -306
  801. package/dist/utils/orderCalculations.d.mts.map +0 -1
  802. package/dist/utils/orderCalculations.mjs +0 -833
  803. package/dist/utils/orderCalculations.mjs.map +0 -1
  804. package/dist/utils/orderTypes.cjs +0 -301
  805. package/dist/utils/orderTypes.cjs.map +0 -1
  806. package/dist/utils/orderTypes.d.cts +0 -166
  807. package/dist/utils/orderTypes.d.cts.map +0 -1
  808. package/dist/utils/orderTypes.d.mts +0 -166
  809. package/dist/utils/orderTypes.d.mts.map +0 -1
  810. package/dist/utils/orderTypes.mjs +0 -287
  811. package/dist/utils/orderTypes.mjs.map +0 -1
  812. package/dist/utils/perpsConnectionAttemptContext.cjs +0 -20
  813. package/dist/utils/perpsConnectionAttemptContext.cjs.map +0 -1
  814. package/dist/utils/perpsConnectionAttemptContext.d.cts +0 -7
  815. package/dist/utils/perpsConnectionAttemptContext.d.cts.map +0 -1
  816. package/dist/utils/perpsConnectionAttemptContext.d.mts +0 -7
  817. package/dist/utils/perpsConnectionAttemptContext.d.mts.map +0 -1
  818. package/dist/utils/perpsConnectionAttemptContext.mjs +0 -15
  819. package/dist/utils/perpsConnectionAttemptContext.mjs.map +0 -1
  820. package/dist/utils/perpsDiskPersistence.cjs +0 -259
  821. package/dist/utils/perpsDiskPersistence.cjs.map +0 -1
  822. package/dist/utils/perpsDiskPersistence.d.cts +0 -112
  823. package/dist/utils/perpsDiskPersistence.d.cts.map +0 -1
  824. package/dist/utils/perpsDiskPersistence.d.mts +0 -112
  825. package/dist/utils/perpsDiskPersistence.d.mts.map +0 -1
  826. package/dist/utils/perpsDiskPersistence.mjs +0 -251
  827. package/dist/utils/perpsDiskPersistence.mjs.map +0 -1
  828. package/dist/utils/perpsFormatters.cjs +0 -509
  829. package/dist/utils/perpsFormatters.cjs.map +0 -1
  830. package/dist/utils/perpsFormatters.d.cts +0 -204
  831. package/dist/utils/perpsFormatters.d.cts.map +0 -1
  832. package/dist/utils/perpsFormatters.d.mts +0 -204
  833. package/dist/utils/perpsFormatters.d.mts.map +0 -1
  834. package/dist/utils/perpsFormatters.mjs +0 -500
  835. package/dist/utils/perpsFormatters.mjs.map +0 -1
  836. package/dist/utils/rewardsUtils.cjs +0 -98
  837. package/dist/utils/rewardsUtils.cjs.map +0 -1
  838. package/dist/utils/rewardsUtils.d.cts +0 -33
  839. package/dist/utils/rewardsUtils.d.cts.map +0 -1
  840. package/dist/utils/rewardsUtils.d.mts +0 -33
  841. package/dist/utils/rewardsUtils.d.mts.map +0 -1
  842. package/dist/utils/rewardsUtils.mjs +0 -92
  843. package/dist/utils/rewardsUtils.mjs.map +0 -1
  844. package/dist/utils/significantFigures.cjs +0 -88
  845. package/dist/utils/significantFigures.cjs.map +0 -1
  846. package/dist/utils/significantFigures.d.cts +0 -25
  847. package/dist/utils/significantFigures.d.cts.map +0 -1
  848. package/dist/utils/significantFigures.d.mts +0 -25
  849. package/dist/utils/significantFigures.d.mts.map +0 -1
  850. package/dist/utils/significantFigures.mjs +0 -82
  851. package/dist/utils/significantFigures.mjs.map +0 -1
  852. package/dist/utils/sortMarkets.cjs +0 -93
  853. package/dist/utils/sortMarkets.cjs.map +0 -1
  854. package/dist/utils/sortMarkets.d.cts +0 -25
  855. package/dist/utils/sortMarkets.d.cts.map +0 -1
  856. package/dist/utils/sortMarkets.d.mts +0 -25
  857. package/dist/utils/sortMarkets.d.mts.map +0 -1
  858. package/dist/utils/sortMarkets.mjs +0 -88
  859. package/dist/utils/sortMarkets.mjs.map +0 -1
  860. package/dist/utils/standaloneInfoClient.cjs +0 -70
  861. package/dist/utils/standaloneInfoClient.cjs.map +0 -1
  862. package/dist/utils/standaloneInfoClient.d.cts +0 -37
  863. package/dist/utils/standaloneInfoClient.d.cts.map +0 -1
  864. package/dist/utils/standaloneInfoClient.d.mts +0 -37
  865. package/dist/utils/standaloneInfoClient.d.mts.map +0 -1
  866. package/dist/utils/standaloneInfoClient.mjs +0 -64
  867. package/dist/utils/standaloneInfoClient.mjs.map +0 -1
  868. package/dist/utils/stringParseUtils.cjs +0 -34
  869. package/dist/utils/stringParseUtils.cjs.map +0 -1
  870. package/dist/utils/stringParseUtils.d.cts +0 -11
  871. package/dist/utils/stringParseUtils.d.cts.map +0 -1
  872. package/dist/utils/stringParseUtils.d.mts +0 -11
  873. package/dist/utils/stringParseUtils.d.mts.map +0 -1
  874. package/dist/utils/stringParseUtils.mjs +0 -28
  875. package/dist/utils/stringParseUtils.mjs.map +0 -1
  876. package/dist/utils/transferData.cjs +0 -33
  877. package/dist/utils/transferData.cjs.map +0 -1
  878. package/dist/utils/transferData.d.cts +0 -9
  879. package/dist/utils/transferData.d.cts.map +0 -1
  880. package/dist/utils/transferData.d.mts +0 -9
  881. package/dist/utils/transferData.d.mts.map +0 -1
  882. package/dist/utils/transferData.mjs +0 -29
  883. package/dist/utils/transferData.mjs.map +0 -1
  884. package/dist/utils/wait.cjs +0 -6
  885. package/dist/utils/wait.cjs.map +0 -1
  886. package/dist/utils/wait.d.cts +0 -2
  887. package/dist/utils/wait.d.cts.map +0 -1
  888. package/dist/utils/wait.d.mts +0 -2
  889. package/dist/utils/wait.d.mts.map +0 -1
  890. package/dist/utils/wait.mjs +0 -2
  891. package/dist/utils/wait.mjs.map +0 -1
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AAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Lighter Protocol Type Definitions
3
+ *
4
+ * Types for the zkLighter REST API, the Go/WASM signer bridge, and
5
+ * provider configuration. No SDK dependency — shapes are derived from
6
+ * the public API (https://apidocs.lighter.xyz) and the reference
7
+ * WebView bridge (elliottech/lighter-go, `web-wasm` branch).
8
+ */
9
+ export {};
10
+ //# sourceMappingURL=lighter-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lighter-types.js","sourceRoot":"","sources":["../../src/types/lighter-types.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG","sourcesContent":["/**\n * Lighter Protocol Type Definitions\n *\n * Types for the zkLighter REST API, the Go/WASM signer bridge, and\n * provider configuration. No SDK dependency — shapes are derived from\n * the public API (https://apidocs.lighter.xyz) and the reference\n * WebView bridge (elliottech/lighter-go, `web-wasm` branch).\n */\n\n// ============================================================================\n// Network Configuration Types\n// ============================================================================\n\n/**\n * Lighter Network type - mainnet or testnet\n */\nexport type LighterNetwork = 'mainnet' | 'testnet';\n\n/**\n * Lighter endpoint configuration for a single network\n */\nexport type LighterEndpointConfig = {\n http: string;\n ws: string;\n};\n\n/**\n * Lighter endpoints for all networks\n */\nexport type LighterEndpoints = {\n mainnet: LighterEndpointConfig;\n testnet: LighterEndpointConfig;\n};\n\n// ============================================================================\n// Signer Bridge (WASM seam)\n// ============================================================================\n\n/**\n * A single call into the Lighter Go/WASM signer.\n *\n * Mirrors the postMessage protocol of the reference React Native WebView\n * bridge (`{ function, params }`), so a WebView-backed bridge on mobile and\n * an in-process WASM bridge in Node are interchangeable implementations.\n */\nexport type LighterCreateOrderWireParams = [\n marketId: number,\n clientOrderIndex: number,\n baseAmount: string,\n price: string,\n isAsk: number,\n orderType: number,\n timeInForce: number,\n reduceOnly: number,\n triggerPrice: string,\n orderExpiry: number,\n];\n\nexport type LighterGroupedOrderWireParams = [\n ...first: LighterCreateOrderWireParams,\n ...second: LighterCreateOrderWireParams,\n];\n\nexport type LighterCreateClientWireParams = [\n chainId: number,\n accountIndex: number,\n nonce: number,\n apiKeyIndex: number,\n];\n\nexport type LighterSignChangePubKeyWireParams = [\n accountIndex: number,\n l1Signature: string,\n nonce: number,\n apiKeyIndex: number,\n];\n\nexport type LighterSignCreateOrderWireParams = [\n accountIndex: number,\n ...order: LighterCreateOrderWireParams,\n nonce: number,\n];\n\nexport type LighterSignCreateGroupedOrdersWireParams = [\n accountIndex: number,\n groupingType: number,\n orderCount: 2,\n ...orders: LighterGroupedOrderWireParams,\n nonce: number,\n];\n\nexport type LighterSignCancelOrderWireParams = [\n accountIndex: number,\n marketId: number,\n orderId: string,\n nonce: number,\n];\n\nexport type LighterSignUpdateLeverageWireParams = [\n accountIndex: number,\n marketId: number,\n leverageImfHundredths: number,\n marginMode: number,\n nonce: number,\n];\n\nexport type LighterSignUpdateMarginWireParams = [\n accountIndex: number,\n marketId: number,\n amount: number,\n direction: number,\n nonce: number,\n];\n\nexport type LighterSignWithdrawWireParams = [\n accountIndex: number,\n assetIndex: number,\n routeType: number,\n amount: string,\n nonce: number,\n];\n\nexport type LighterCreateAuthTokenWireParams = [\n accountIndex: number,\n apiKeyIndex: number,\n];\n\nexport type LighterSignerOperationDefinition<\n Params extends unknown[],\n Result,\n> = {\n params: Params;\n result: Result;\n};\n\nexport type LighterSignerOperationMap = {\n _createClient: LighterSignerOperationDefinition<\n LighterCreateClientWireParams,\n LighterCreateClientResult\n >;\n _signChangePubKey: LighterSignerOperationDefinition<\n LighterSignChangePubKeyWireParams,\n LighterSignChangePubKeyResult\n >;\n _signCreateOrder: LighterSignerOperationDefinition<\n LighterSignCreateOrderWireParams,\n LighterTxResult\n >;\n _signCreateGroupedOrders: LighterSignerOperationDefinition<\n LighterSignCreateGroupedOrdersWireParams,\n LighterTxResult\n >;\n _signCancelOrder: LighterSignerOperationDefinition<\n LighterSignCancelOrderWireParams,\n LighterTxResult\n >;\n _signUpdateLeverage: LighterSignerOperationDefinition<\n LighterSignUpdateLeverageWireParams,\n LighterTxResult\n >;\n _signUpdateMargin: LighterSignerOperationDefinition<\n LighterSignUpdateMarginWireParams,\n LighterTxResult\n >;\n _signWithdraw: LighterSignerOperationDefinition<\n LighterSignWithdrawWireParams,\n LighterTxResult\n >;\n _createAuthToken: LighterSignerOperationDefinition<\n LighterCreateAuthTokenWireParams,\n LighterCreateAuthTokenResult\n >;\n};\n\nexport type LighterSignerOperation = keyof LighterSignerOperationMap;\n\nexport type LighterWasmCall<\n Operation extends LighterSignerOperation = LighterSignerOperation,\n> = Operation extends LighterSignerOperation\n ? {\n function: Operation;\n params: LighterSignerOperationMap[Operation]['params'];\n }\n : never;\n\nexport type LighterSignerResult<Operation extends LighterSignerOperation> =\n LighterSignerOperationMap[Operation]['result'];\n\n/** Public metadata needed to create or restore a client-owned venue signer. */\nexport type LighterCreateClientParams = {\n chainId: number;\n accountIndex: number;\n apiKeyIndex: number;\n nonce: number;\n};\n\n/**\n * Transport-agnostic seam to the Lighter Go/WASM signer.\n *\n * Implementations:\n * - Mobile: off-screen WebView loading the locally-bundled\n * `wasm-wrapper.standalone.html`, dispatching calls via postMessage.\n * - Node (e2e): in-process `WebAssembly.instantiate` via Go's `wasm_exec.js`.\n */\nexport type LighterSignerBridge = {\n /**\n * Create or restore the client-owned venue signer. The implementation owns\n * key generation and persistence; Core never receives the seed or private\n * key.\n *\n * @param params - Public venue/session metadata required by the signer.\n */\n createClient(\n params: LighterCreateClientParams,\n ): Promise<LighterCreateClientResult>;\n\n /**\n * Execute one WASM signer call and resolve with its result object.\n *\n * @param call - The function name and positional params to invoke.\n */\n execute<Operation extends LighterSignerOperation>(\n call: LighterWasmCall<Operation>,\n ): Promise<LighterSignerResult<Operation>>;\n\n /**\n * Optional subscription to bridge resets (WebView reload / process\n * loss). The provider uses it to invalidate its cached signer session\n * IMMEDIATELY instead of learning about the reset from the next failed\n * trading call.\n *\n * @param listener - Invoked on every reset.\n * @returns Unsubscribe function.\n */\n onReset?(listener: () => void): () => void;\n\n /**\n * Optional hook to re-arm the bridge after a reload (WebView remount).\n */\n reset?(): void;\n};\n\n// ============================================================================\n// WASM signer response shapes (from lighter-go react-native/src/lighterSdk.ts)\n// ============================================================================\n\n/**\n * Response of `_createClient` / `_createClientByPrv`.\n */\nexport type LighterCreateClientResult = {\n success: boolean;\n /** Venue public key, hex (80 chars / 40 bytes, Schnorr over ECgFp5). */\n pk: string;\n pubKeySuccess: boolean;\n /**\n * ChangePubKey plaintext body to be signed with EIP-191 `personal_sign`\n * by the user's L1 (EVM) account.\n */\n body: string;\n error?: string;\n};\n\n/**\n * Response of `_signChangePubKey`.\n */\nexport type LighterSignChangePubKeyResult = {\n /** Serialized L2 transaction JSON (includes the injected `L1Sig`). */\n txInfo: string;\n /**\n * Signed transaction hash (pinned WASM contract: the signing RESULT\n * carries the hash; `txInfo` never does). Required for the durable\n * dispatch ledger's exact-identity reconciliation.\n */\n txHash?: string;\n error?: string;\n};\n\n/**\n * Response of `_createAuthToken`.\n */\nexport type LighterCreateAuthTokenResult = {\n token: string;\n deadline: number;\n error?: string;\n};\n\n/**\n * Response of signing functions returning a full L2 transaction\n * (`_signCreateOrder`, `_signCancelOrder`, ...).\n */\nexport type LighterTxResult = {\n txInfo: string;\n txHash?: string;\n error?: string;\n};\n\n// ============================================================================\n// Auth Configuration\n// ============================================================================\n\n/**\n * Signs an EIP-191 personal message and resolves with the 65-byte signature\n * as a 0x-prefixed hex string. Injected for headless use; when a messenger\n * is available the wallet service routes through\n * `KeyringController:signPersonalMessage` instead.\n */\nexport type LighterPersonalSigner = (message: string) => Promise<string>;\n\n/**\n * Lighter auth/config passed at construction time.\n */\nexport type LighterAuthConfig = {\n /** Whether the Lighter provider is enabled via local override. */\n enabled?: boolean;\n /** Lighter account index (assigned at first deposit). */\n accountIndex?: number;\n /** API key slot to register/use (0-254). */\n apiKeyIndex?: number;\n /** L1 address owning the Lighter account. */\n l1Address?: string;\n /** Headless personal_sign implementation for L1 ChangePubKey approval. */\n personalSigner?: LighterPersonalSigner;\n};\n\n// ============================================================================\n// REST API response shapes (subset used by the POC)\n//\n// The zkLighter wire format is snake_case; LighterClientService converts\n// keys to camelCase at the fetch boundary so these parsed shapes follow\n// package conventions.\n// ============================================================================\n\n/**\n * One market entry from `GET /api/v1/orderBooks`.\n */\nexport type LighterOrderBookMeta = {\n symbol: string;\n marketId: number;\n marketType: string;\n status: string;\n takerFee: string;\n makerFee: string;\n minBaseAmount: string;\n minQuoteAmount: string;\n supportedSizeDecimals: number;\n supportedPriceDecimals: number;\n supportedQuoteDecimals: number;\n};\n\n/**\n * Response of `GET /api/v1/orderBooks`.\n */\nexport type LighterOrderBooksResponse = {\n code: number;\n orderBooks: LighterOrderBookMeta[];\n};\n\n/**\n * Market stats from `GET /api/v1/orderBookDetails`.\n */\nexport type LighterOrderBookDetail = LighterOrderBookMeta & {\n lastTradePrice: number;\n /** Default initial margin fraction, hundredths of a percent (666 = 6.66%). */\n defaultInitialMarginFraction?: number;\n /** Minimum initial margin fraction, hundredths of a percent (400 → 25x max). */\n minInitialMarginFraction?: number;\n /** Maintenance margin fraction, hundredths of a percent (240 = 2.4%). */\n maintenanceMarginFraction?: number;\n dailyTradesCount: number;\n dailyBaseTokenVolume: number;\n dailyQuoteTokenVolume: number;\n dailyPriceLow: number;\n dailyPriceHigh: number;\n dailyPriceChange: number;\n openInterest: number;\n dailyChart: Record<string, number>;\n};\n\n/**\n * Response of `GET /api/v1/orderBookDetails`.\n */\nexport type LighterOrderBookDetailsResponse = {\n code: number;\n orderBookDetails: LighterOrderBookDetail[];\n};\n\n/**\n * One sub-account from `GET /api/v1/accountsByL1Address` or `account`.\n */\nexport type LighterSubAccount = {\n code: number;\n accountType: number;\n index: number;\n l1Address: string;\n cancelAllTime: number;\n totalOrderCount: number;\n pendingOrderCount: number;\n status: number;\n collateral: string;\n availableBalance: string;\n positions?: LighterApiPosition[];\n};\n\n/**\n * Identity fields returned by `GET /api/v1/accountsByL1Address`.\n *\n * Lighter's address-discovery endpoint may leave balance fields empty even\n * though the full `account` endpoint returns validated decimal values. Account\n * discovery only consumes these identity fields; financial reads continue to\n * use {@link LighterSubAccount} and its stricter response validation.\n */\nexport type LighterAccountSummary = Pick<\n LighterSubAccount,\n 'accountType' | 'index' | 'l1Address'\n>;\n\n/**\n * Response of `GET /api/v1/accountsByL1Address`.\n */\nexport type LighterAccountsByL1AddressResponse = {\n code: number;\n message?: string;\n l1Address: string;\n subAccounts: LighterAccountSummary[];\n};\n\n/**\n * Response of `GET /api/v1/account` (`by=index`).\n */\nexport type LighterAccountResponse = {\n code: number;\n message?: string;\n accounts: LighterSubAccount[];\n};\n\n/**\n * One position inside an account payload.\n */\nexport type LighterApiPosition = {\n marketId: number;\n symbol: string;\n initialMarginFraction: string;\n openOrderCount: number;\n /** 1 = long, -1 = short (sign convention per API). */\n sign: number;\n position: string;\n avgEntryPrice: string;\n positionValue: string;\n unrealizedPnl: string;\n realizedPnl: string;\n liquidationPrice: string;\n /** 0 = cross, 1 = isolated. Older captures omit it (venue default cross). */\n marginMode?: number;\n};\n\n/**\n * One API key entry from `GET /api/v1/apikeys`.\n */\nexport type LighterApiKey = {\n accountIndex: number;\n apiKeyIndex: number;\n nonce: number;\n publicKey: string;\n};\n\n/**\n * Response of `GET /api/v1/apikeys`.\n */\nexport type LighterApiKeysResponse = {\n code: number;\n message?: string;\n apiKeys: LighterApiKey[];\n};\n\n/**\n * Response of `GET /api/v1/nextNonce`.\n */\nexport type LighterNextNonceResponse = {\n code: number;\n message?: string;\n nonce: number;\n};\n\n/**\n * Response of `GET /api/v1/tx?by=hash&value=...` (EnrichedTx). Only the\n * identity fields the settlement reconciler verifies are typed; a\n * successful exact-hash match proves the signed payload reached the\n * sequencer.\n */\nexport type LighterTxLookupResponse = {\n code: number;\n message?: string;\n hash: string;\n accountIndex: number;\n apiKeyIndex: number;\n nonce: number;\n status: number;\n};\n\n/**\n * Response of `POST /api/v1/sendTx`.\n */\nexport type LighterSendTxResponse = {\n code: number;\n message?: string;\n txHash: string;\n};\n\n/**\n * One market entry from the `market_stats/all` WebSocket channel\n * (`subscribed/market_stats` snapshot and `update/market_stats` deltas),\n * after snake→camel conversion at the socket boundary.\n */\nexport type LighterWsMarketStat = {\n symbol: string;\n marketId: number;\n indexPrice: string;\n markPrice: string;\n midPrice: string;\n bestAskPrice: string;\n bestBidPrice: string;\n lastTradePrice: string;\n openInterest: string;\n fundingRate: string;\n currentFundingRate?: string;\n dailyQuoteTokenVolume: number;\n dailyPriceChange: number;\n};\n\n/**\n * Envelope of a `market_stats` WebSocket message (post-camelization).\n */\nexport type LighterWsMarketStatsMessage = {\n type: string;\n channel?: string;\n timestamp?: number;\n marketStats?: Record<string, LighterWsMarketStat>;\n};\n\n/**\n * Stats block of a `user_stats/{account_index}` WebSocket message\n * (post-camelization). Live-verified against testnet account 28.\n */\nexport type LighterWsUserStats = {\n collateral: string;\n portfolioValue: string;\n leverage: string;\n availableBalance: string;\n marginUsage: string;\n buyingPower: string;\n};\n\n/**\n * Generic account-channel WebSocket envelope (post-camelization):\n * `user_stats` carries `stats`, `account_all_positions` carries `positions`\n * (same field shape as the REST account payload), `account_all_orders`\n * carries `orders` keyed by market id.\n */\nexport type LighterWsAccountMessage = {\n type: string;\n channel?: string;\n timestamp?: number;\n stats?: LighterWsUserStats;\n positions?: Record<string, LighterApiPosition>;\n orders?: Record<string, LighterApiOrder[]>;\n};\n\n/**\n * Minimal structural WebSocket surface the Lighter stream manager uses.\n * Structural (rather than the DOM/Node `WebSocket` type) so platforms and\n * tests can supply any compatible implementation.\n */\nexport type LighterWebSocketLike = {\n readyState: number;\n send(data: string): void;\n close(): void;\n onopen: (() => void) | null;\n onmessage: ((event: { data: unknown }) => void) | null;\n onclose: (() => void) | null;\n onerror: (() => void) | null;\n};\n\n/**\n * Constructor for {@link LighterWebSocketLike} transports.\n */\nexport type LighterWebSocketCtor = new (url: string) => LighterWebSocketLike;\n\n/**\n * `order_book/{market_id}` WebSocket payload (post-camelization).\n * `subscribed/*` carries a full snapshot; `update/*` carries deltas where\n * `size: \"0.000\"` removes a level.\n */\nexport type LighterWsOrderBookMessage = {\n type: string;\n channel?: string;\n timestamp?: number;\n orderBook?: {\n /** Last nonce represented by this snapshot or delta. */\n nonce?: number;\n /** Previous book nonce required before applying an update. */\n beginNonce?: number;\n bids?: { price: string; size: string }[];\n asks?: { price: string; size: string }[];\n };\n};\n\n/**\n * `candle/{market_id}/{resolution}` WebSocket payload (post-camelization,\n * candle entries keep the compact t/o/h/l/c/v wire keys).\n */\nexport type LighterWsCandleMessage = {\n type: string;\n channel?: string;\n timestamp?: number;\n candles?: LighterCandle[];\n};\n\n/**\n * One trade entry from the `account_all_trades/{account_index}` channel\n * (post-camelization).\n */\nexport type LighterWsTrade = {\n tradeId: number;\n marketId: number;\n size: string;\n price: string;\n askId: number;\n bidId: number;\n askAccountId: number;\n bidAccountId: number;\n isMakerAsk: boolean;\n timestamp: number;\n /** Realized pnl per side — same wire shape as the REST trade payload. */\n askAccountPnl?: string;\n bidAccountPnl?: string;\n /** Fees, present when nonzero; unit unproven — see LighterRestTrade. */\n takerFee?: number | string;\n makerFee?: number | string;\n takerPositionSizeBefore?: string;\n makerPositionSizeBefore?: string;\n takerPositionSignChanged?: boolean;\n makerPositionSignChanged?: boolean;\n};\n\n/**\n * `account_all_trades/{account_index}` WebSocket payload (post-camelization).\n */\nexport type LighterWsTradesMessage = {\n type: string;\n channel?: string;\n timestamp?: number;\n trades?: Record<string, LighterWsTrade[]>;\n};\n\n/**\n * One trade from `GET /api/v1/trades` (post-camelization).\n */\nexport type LighterRestTrade = {\n tradeId: number;\n txHash: string;\n type: string;\n marketId: number;\n size: string;\n price: string;\n usdAmount: string;\n askId: number;\n bidId: number;\n askAccountId: number;\n bidAccountId: number;\n isMakerAsk: boolean;\n timestamp: number;\n /** Realized pnl for the ask-side account, signed USDC. */\n askAccountPnl?: string;\n /** Realized pnl for the bid-side account, signed USDC. */\n bidAccountPnl?: string;\n /**\n * Taker/maker fees, present when nonzero. The official model types them\n * as StrictInt with NO documented unit or scale; until a captured\n * nonzero payload proves one, adapters must treat these as unavailable.\n */\n takerFee?: number | string;\n makerFee?: number | string;\n /** Position size (absolute) of each side before the trade executed. */\n takerPositionSizeBefore: string;\n makerPositionSizeBefore: string;\n /** Whether the side's position sign changed (crossed or left zero). */\n takerPositionSignChanged: boolean;\n makerPositionSignChanged: boolean;\n};\n\n/**\n * Response of `GET /api/v1/trades`.\n */\nexport type LighterTradesResponse = {\n code: number;\n message?: string;\n nextCursor?: string;\n trades: LighterRestTrade[];\n};\n\n/** Query parameters supported by the Lighter trades endpoint. */\nexport type LighterTradesQuery = {\n limit: number;\n cursor?: string;\n from?: number;\n marketId?: number;\n};\n\n/**\n * One entry from `GET /api/v1/positionFunding` (post-camelization).\n */\nexport type LighterPositionFunding = {\n timestamp: number;\n marketId: number;\n fundingId: number;\n change: string;\n rate: string;\n positionSize: string;\n positionSide: string;\n};\n\n/**\n * Response of `GET /api/v1/positionFunding`.\n */\nexport type LighterPositionFundingsResponse = {\n code: number;\n message?: string;\n positionFundings: LighterPositionFunding[];\n};\n\n/**\n * One record from `GET /api/v1/pnl` (post-camelization).\n */\nexport type LighterPnlRecord = {\n timestamp: number;\n tradePnl: number;\n inflow: number;\n outflow: number;\n volume: number;\n};\n\n/**\n * Response of `GET /api/v1/pnl`.\n */\nexport type LighterPnlResponse = {\n code: number;\n message?: string;\n resolution?: string;\n pnl?: LighterPnlRecord[];\n};\n\n/**\n * One candle from `GET /api/v1/candles` (compact wire keys: t/o/h/l/c/v).\n */\nexport type LighterCandle = {\n t: number;\n o: number;\n h: number;\n l: number;\n c: number;\n v: number;\n};\n\n/**\n * Response of `GET /api/v1/candles`.\n */\nexport type LighterCandlesResponse = {\n code: number;\n message?: string;\n /** Resolution echo (e.g. `15m`). */\n r?: string;\n /** Ascending candle series. */\n c?: LighterCandle[];\n};\n\n/**\n * One order from `GET /api/v1/accountActiveOrders`.\n */\nexport type LighterApiOrder = {\n orderIndex: number;\n clientOrderIndex: number;\n marketIndex: number;\n ownerAccountIndex: number;\n initialBaseAmount: string;\n remainingBaseAmount: string;\n price: string;\n isAsk: boolean;\n type: string;\n timeInForce: string;\n reduceOnly: number | boolean;\n status: string;\n orderExpiry: number;\n timestamp: number;\n /**\n * Trigger level for stop-loss/take-profit orders. Note `price` on a\n * trigger order is the ±5% protection EXECUTION price, not this level.\n */\n triggerPrice?: string;\n /** Venue string order id (linkage fields reference this form). */\n orderId?: string;\n /** OCO/linkage: parent order references. */\n parentOrderIndex?: number;\n parentOrderId?: string;\n /** OCO linkage: the sibling this order auto-cancels when it fires. */\n toCancelOrderId0?: string;\n toTriggerOrderId0?: string;\n toTriggerOrderId1?: string;\n};\n\n/**\n * Response of `GET /api/v1/accountActiveOrders`.\n */\nexport type LighterActiveOrdersResponse = {\n code: number;\n message?: string;\n orders: LighterApiOrder[];\n};\n\n/**\n * Response of `GET /api/v1/accountInactiveOrders` (historical order\n * lifecycle: filled / canceled orders, newest first, cursor-paged).\n */\nexport type LighterInactiveOrdersResponse = {\n code: number;\n message?: string;\n nextCursor?: string;\n orders: LighterApiOrder[];\n};\n\n/**\n * One entry of `GET /api/v1/deposit/history` (camelized).\n */\nexport type LighterDepositHistoryItem = {\n id: string;\n assetId: number;\n amount: string;\n timestamp: number;\n status: string;\n l1TxHash: string;\n};\n\n/**\n * Response of `GET /api/v1/deposit/history`.\n */\nexport type LighterDepositHistoryResponse = {\n code: number;\n message?: string;\n deposits: LighterDepositHistoryItem[];\n cursor?: string;\n};\n\n/**\n * One entry of `GET /api/v1/withdraw/history` (camelized).\n */\nexport type LighterWithdrawHistoryItem = {\n id: string;\n assetId: number;\n amount: string;\n timestamp: number;\n status: string;\n type: string;\n l1TxHash: string;\n};\n\n/**\n * Response of `GET /api/v1/withdraw/history`.\n */\nexport type LighterWithdrawHistoryResponse = {\n code: number;\n message?: string;\n withdraws: LighterWithdrawHistoryItem[];\n cursor?: string;\n};\n\nexport type LighterTransferType = 'L2TransferInflow' | 'L2TransferOutflow';\n\n/**\n * One entry of `GET /api/v1/transfer/history` (camelized).\n */\nexport type LighterTransferHistoryItem = {\n id: string;\n assetId: number;\n amount: string;\n fee: string;\n timestamp: number;\n type: LighterTransferType;\n fromL1Address: string;\n toL1Address: string;\n fromAccountIndex: number;\n toAccountIndex: number;\n txHash: string;\n};\n\n/**\n * Response of `GET /api/v1/transfer/history`.\n */\nexport type LighterTransferHistoryResponse = {\n code: number;\n message?: string;\n transfers: LighterTransferHistoryItem[];\n cursor?: string;\n};\n"]}
@@ -0,0 +1,30 @@
1
+ import type { AccountTreeControllerGetAccountsFromSelectedAccountGroupAction, AccountTreeControllerSelectedAccountGroupChangeEvent } from '@metamask/account-tree-controller';
2
+ import type { AccountsControllerGetSelectedAccountAction, AccountsControllerSelectedAccountChangeEvent } from '@metamask/accounts-controller';
3
+ import type { AuthenticatedUserStorageServiceGetNotificationPreferencesAction, AuthenticatedUserStorageServicePutNotificationPreferencesAction } from '@metamask/authenticated-user-storage';
4
+ import type { GeolocationControllerGetGeolocationAction } from '@metamask/geolocation-controller';
5
+ import type { KeyringControllerGetStateAction, KeyringControllerSignPersonalMessageAction, KeyringControllerSignTypedMessageAction } from '@metamask/keyring-controller';
6
+ import type { Messenger } from '@metamask/messenger';
7
+ import type { NetworkControllerGetStateAction, NetworkControllerGetNetworkClientByIdAction, NetworkControllerFindNetworkClientIdByChainIdAction } from '@metamask/network-controller';
8
+ import type { AuthenticationController } from '@metamask/profile-sync-controller';
9
+ import type { RemoteFeatureFlagControllerGetStateAction, RemoteFeatureFlagControllerStateChangeEvent } from '@metamask/remote-feature-flag-controller';
10
+ import type { TransactionControllerAddTransactionAction } from '@metamask/transaction-controller';
11
+ /**
12
+ * Actions from other controllers that PerpsController is allowed to call.
13
+ */
14
+ export type PerpsControllerAllowedActions = GeolocationControllerGetGeolocationAction | NetworkControllerGetStateAction | NetworkControllerGetNetworkClientByIdAction | NetworkControllerFindNetworkClientIdByChainIdAction | KeyringControllerGetStateAction | KeyringControllerSignTypedMessageAction | KeyringControllerSignPersonalMessageAction | TransactionControllerAddTransactionAction | RemoteFeatureFlagControllerGetStateAction | AccountsControllerGetSelectedAccountAction | AccountTreeControllerGetAccountsFromSelectedAccountGroupAction | AuthenticationController.AuthenticationControllerGetBearerTokenAction | AuthenticatedUserStorageServiceGetNotificationPreferencesAction | AuthenticatedUserStorageServicePutNotificationPreferencesAction;
15
+ /**
16
+ * Events from other controllers that PerpsController is allowed to subscribe to.
17
+ */
18
+ export type PerpsControllerAllowedEvents = RemoteFeatureFlagControllerStateChangeEvent | AccountsControllerSelectedAccountChangeEvent | AccountTreeControllerSelectedAccountGroupChangeEvent;
19
+ /**
20
+ * The messenger type used by PerpsController and its services.
21
+ * Defined here (rather than in PerpsController.ts) to avoid circular imports
22
+ * between the controller and service files.
23
+ *
24
+ * The first two type parameters (Actions, Events) are filled in by
25
+ * PerpsController.ts when it unions in its own actions/events.
26
+ * Services use this base type directly since they only need the allowed
27
+ * external actions/events.
28
+ */
29
+ export type PerpsControllerMessengerBase = Messenger<'PerpsController', PerpsControllerAllowedActions, PerpsControllerAllowedEvents>;
30
+ //# sourceMappingURL=messenger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messenger.d.ts","sourceRoot":"","sources":["../../src/types/messenger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8DAA8D,EAC9D,oDAAoD,EACrD,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EACV,0CAA0C,EAC1C,4CAA4C,EAC7C,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EACV,+DAA+D,EAC/D,+DAA+D,EAChE,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,kCAAkC,CAAC;AAClG,OAAO,KAAK,EACV,+BAA+B,EAC/B,0CAA0C,EAC1C,uCAAuC,EACxC,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EACV,+BAA+B,EAC/B,2CAA2C,EAC3C,mDAAmD,EACpD,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mCAAmC,CAAC;AAClF,OAAO,KAAK,EACV,yCAAyC,EACzC,2CAA2C,EAC5C,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAAE,yCAAyC,EAAE,MAAM,kCAAkC,CAAC;AAElG;;GAEG;AACH,MAAM,MAAM,6BAA6B,GACrC,yCAAyC,GACzC,+BAA+B,GAC/B,2CAA2C,GAC3C,mDAAmD,GACnD,+BAA+B,GAC/B,uCAAuC,GACvC,0CAA0C,GAC1C,yCAAyC,GACzC,yCAAyC,GACzC,0CAA0C,GAC1C,8DAA8D,GAC9D,wBAAwB,CAAC,4CAA4C,GACrE,+DAA+D,GAC/D,+DAA+D,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,4BAA4B,GACpC,2CAA2C,GAC3C,4CAA4C,GAC5C,oDAAoD,CAAC;AAEzD;;;;;;;;;GASG;AACH,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAClD,iBAAiB,EACjB,6BAA6B,EAC7B,4BAA4B,CAC7B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=messenger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messenger.js","sourceRoot":"","sources":["../../src/types/messenger.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n AccountTreeControllerGetAccountsFromSelectedAccountGroupAction,\n AccountTreeControllerSelectedAccountGroupChangeEvent,\n} from '@metamask/account-tree-controller';\nimport type {\n AccountsControllerGetSelectedAccountAction,\n AccountsControllerSelectedAccountChangeEvent,\n} from '@metamask/accounts-controller';\nimport type {\n AuthenticatedUserStorageServiceGetNotificationPreferencesAction,\n AuthenticatedUserStorageServicePutNotificationPreferencesAction,\n} from '@metamask/authenticated-user-storage';\nimport type { GeolocationControllerGetGeolocationAction } from '@metamask/geolocation-controller';\nimport type {\n KeyringControllerGetStateAction,\n KeyringControllerSignPersonalMessageAction,\n KeyringControllerSignTypedMessageAction,\n} from '@metamask/keyring-controller';\nimport type { Messenger } from '@metamask/messenger';\nimport type {\n NetworkControllerGetStateAction,\n NetworkControllerGetNetworkClientByIdAction,\n NetworkControllerFindNetworkClientIdByChainIdAction,\n} from '@metamask/network-controller';\nimport type { AuthenticationController } from '@metamask/profile-sync-controller';\nimport type {\n RemoteFeatureFlagControllerGetStateAction,\n RemoteFeatureFlagControllerStateChangeEvent,\n} from '@metamask/remote-feature-flag-controller';\nimport type { TransactionControllerAddTransactionAction } from '@metamask/transaction-controller';\n\n/**\n * Actions from other controllers that PerpsController is allowed to call.\n */\nexport type PerpsControllerAllowedActions =\n | GeolocationControllerGetGeolocationAction\n | NetworkControllerGetStateAction\n | NetworkControllerGetNetworkClientByIdAction\n | NetworkControllerFindNetworkClientIdByChainIdAction\n | KeyringControllerGetStateAction\n | KeyringControllerSignTypedMessageAction\n | KeyringControllerSignPersonalMessageAction\n | TransactionControllerAddTransactionAction\n | RemoteFeatureFlagControllerGetStateAction\n | AccountsControllerGetSelectedAccountAction\n | AccountTreeControllerGetAccountsFromSelectedAccountGroupAction\n | AuthenticationController.AuthenticationControllerGetBearerTokenAction\n | AuthenticatedUserStorageServiceGetNotificationPreferencesAction\n | AuthenticatedUserStorageServicePutNotificationPreferencesAction;\n\n/**\n * Events from other controllers that PerpsController is allowed to subscribe to.\n */\nexport type PerpsControllerAllowedEvents =\n | RemoteFeatureFlagControllerStateChangeEvent\n | AccountsControllerSelectedAccountChangeEvent\n | AccountTreeControllerSelectedAccountGroupChangeEvent;\n\n/**\n * The messenger type used by PerpsController and its services.\n * Defined here (rather than in PerpsController.ts) to avoid circular imports\n * between the controller and service files.\n *\n * The first two type parameters (Actions, Events) are filled in by\n * PerpsController.ts when it unions in its own actions/events.\n * Services use this base type directly since they only need the allowed\n * external actions/events.\n */\nexport type PerpsControllerMessengerBase = Messenger<\n 'PerpsController',\n PerpsControllerAllowedActions,\n PerpsControllerAllowedEvents\n>;\n"]}
@@ -0,0 +1,184 @@
1
+ /**
2
+ * Test result states for SDK validation
3
+ */
4
+ import { CandlePeriod } from '../constants/chartConfig.js';
5
+ /**
6
+ * Order type enumeration (placement type).
7
+ *
8
+ * - `market` / `limit`: immediate placement.
9
+ * - `stop_*` / `take_profit_*`: trigger placement — the order rests off-book until
10
+ * `OrderParams.triggerPrice` is reached, then executes as a market or limit order
11
+ * according to the suffix.
12
+ * - `twap` / `scale` / `chase`: strategy placement — one request expands into an
13
+ * execution schedule rather than a single resting order. See `StrategyOrderType`.
14
+ *
15
+ * Provider-agnostic by design: no protocol vocabulary (HyperLiquid's `tpsl`,
16
+ * `triggerPx`, `isMarket`) appears in the params model.
17
+ */
18
+ export type OrderType = 'market' | 'limit' | 'stop_market' | 'stop_limit' | 'take_profit_market' | 'take_profit_limit' | 'twap' | 'scale' | 'chase';
19
+ /**
20
+ * The subset of `OrderType` values that require a trigger price.
21
+ *
22
+ * Spelled out rather than derived with `Exclude`: every order type added to
23
+ * `OrderType` that is neither `market` nor `limit` would otherwise be pulled in
24
+ * here automatically and start demanding a trigger price it has no concept of.
25
+ */
26
+ export type TriggerOrderType = 'stop_market' | 'stop_limit' | 'take_profit_market' | 'take_profit_limit';
27
+ /**
28
+ * The subset of `OrderType` values that describe an execution *strategy* rather
29
+ * than a single order.
30
+ *
31
+ * - `twap`: slice the size over `OrderParams.twapDuration` minutes. Placed and
32
+ * cancelled through the venue's own TWAP endpoints, not the order book.
33
+ * - `scale`: fan out `OrderParams.scaleNumOrders` limit orders between
34
+ * `OrderParams.scaleMinPrice` and `OrderParams.scaleMaxPrice`, evenly sized
35
+ * unless `OrderParams.scaleSkew` weights them along the ladder.
36
+ * - `chase`: rest a post-only order at the near touch and re-price it as the
37
+ * touch moves, until it fills or the chase window closes.
38
+ *
39
+ * A strategy placement returns a *handle* in `OrderResult.orderId` — a venue
40
+ * TWAP id, or a client-generated group/session id — which is what
41
+ * `CancelOrderParams` takes together with the matching `orderType`.
42
+ */
43
+ export type StrategyOrderType = 'twap' | 'scale' | 'chase';
44
+ /**
45
+ * Every `OrderType` that resolves to a single order the exchange can be handed
46
+ * directly — market, limit, and the four trigger placements.
47
+ *
48
+ * Derived with `Exclude` on purpose, the safe direction: it *shrinks* as
49
+ * `StrategyOrderType` grows, so a strategy added later is kept out of the
50
+ * single-order helpers automatically rather than silently falling through them.
51
+ */
52
+ export type OrdinaryOrderType = Exclude<OrderType, StrategyOrderType>;
53
+ /**
54
+ * Whether a triggered order executes as a market or a limit order.
55
+ */
56
+ export type OrderExecution = 'market' | 'limit';
57
+ /**
58
+ * How an attached TP/SL relates to what it protects.
59
+ *
60
+ * - `none`: the order carries no attached TP/SL.
61
+ * - `order`: the TP/SL belongs to this order and is cancelled with it.
62
+ * - `position`: the TP/SL belongs to the resulting position and covers all of it.
63
+ *
64
+ * Provider-agnostic replacement for the HyperLiquid-shaped `OrderParams.grouping`.
65
+ */
66
+ export type TpslLinkage = 'none' | 'order' | 'position';
67
+ /**
68
+ * Which side of the mark price a trigger order fires on.
69
+ * `stop` protects against adverse moves, `take_profit` realizes gains.
70
+ */
71
+ export type TriggerDirection = 'stop' | 'take_profit';
72
+ export type TestResultStatus = 'idle' | 'loading' | 'success' | 'warning' | 'error';
73
+ /**
74
+ * Test result data structure
75
+ */
76
+ export type TestResult = {
77
+ status: TestResultStatus;
78
+ message: string;
79
+ data?: Record<string, unknown>;
80
+ };
81
+ /**
82
+ * SDK test types
83
+ */
84
+ export type SDKTestType = 'connection' | 'asset-listing' | 'websocket';
85
+ /**
86
+ * Hyperliquid asset interface (basic structure)
87
+ */
88
+ export type HyperliquidAsset = {
89
+ name: string;
90
+ [key: string]: unknown;
91
+ };
92
+ /**
93
+ * Represents a single candlestick data point
94
+ */
95
+ export type CandleStick = {
96
+ time: number;
97
+ open: string;
98
+ high: string;
99
+ low: string;
100
+ close: string;
101
+ volume: string;
102
+ };
103
+ /**
104
+ * Represents historical candlestick data for a specific symbol and interval
105
+ */
106
+ export type CandleData = {
107
+ /** Asset identifier (e.g., 'BTC', 'ETH'). Protocol-agnostic terminology for multi-provider support. */
108
+ symbol: string;
109
+ interval: CandlePeriod;
110
+ candles: CandleStick[];
111
+ };
112
+ export type { HyperLiquidEndpoints, AssetNetworkConfig, HyperLiquidAssetConfigs, BridgeContractConfig, HyperLiquidBridgeContracts, TransportReconnectConfig, TransportKeepAliveConfig, HyperLiquidTransportConfig, TradingAmountConfig, TradingDefaultsConfig, FeeRatesConfig, HyperLiquidNetwork, } from './config.js';
113
+ export type { PerpsToken } from './token.js';
114
+ /**
115
+ * Order form state for the Perps order view
116
+ */
117
+ export type OrderFormState = {
118
+ asset: string;
119
+ direction: 'long' | 'short';
120
+ amount: string;
121
+ leverage: number;
122
+ balancePercent: number;
123
+ takeProfitPrice?: string;
124
+ stopLossPrice?: string;
125
+ limitPrice?: string;
126
+ type: OrderType;
127
+ };
128
+ export type OrderDirection = 'long' | 'short';
129
+ /**
130
+ * Options for reconnecting the Perps connection
131
+ */
132
+ export type ReconnectOptions = {
133
+ /**
134
+ * If true, forces immediate disconnect and cancels all pending operations.
135
+ * Use for user-initiated retry actions.
136
+ * If false (default), waits for pending operations to complete.
137
+ * Use for automatic reconnections like account switches.
138
+ */
139
+ force?: boolean;
140
+ };
141
+ /**
142
+ * Extended asset metadata including Growth Mode fields not in SDK types.
143
+ * The HyperLiquid API returns these fields but the SDK doesn't type them.
144
+ *
145
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees#fee-formula-for-developers
146
+ */
147
+ export type ExtendedAssetMeta = {
148
+ name: string;
149
+ szDecimals: number;
150
+ maxLeverage: number;
151
+ /** Per-asset Growth Mode status - "enabled" means 90% fee reduction */
152
+ growthMode?: 'enabled' | null;
153
+ /** ISO timestamp of last Growth Mode change */
154
+ lastGrowthModeChangeTime?: string;
155
+ };
156
+ /**
157
+ * Extended perp DEX info including fee scale fields not in SDK types.
158
+ * The HyperLiquid API returns these fields but the SDK doesn't type them.
159
+ *
160
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees#fee-formula-for-developers
161
+ */
162
+ export type ExtendedPerpDex = {
163
+ name: string;
164
+ fullName?: string;
165
+ deployer?: string;
166
+ /** DEX-level fee scale (e.g., "1.0" for xyz DEX) - determines HIP-3 multiplier */
167
+ deployerFeeScale?: string;
168
+ /** ISO timestamp of last fee scale change */
169
+ lastDeployerFeeScaleChangeTime?: string;
170
+ };
171
+ /**
172
+ * Unified DEX discovery state — single source of truth for all perpDexs() derivatives.
173
+ * Replaces three separate caches (#cachedAllPerpDexs, #cachedValidatedDexs, #perpDexsCache)
174
+ * to eliminate desync bugs by construction.
175
+ */
176
+ export type DexDiscoveryState = {
177
+ /** perpDexs() API response (raw objects with deployerFeeScale etc.) */
178
+ raw: (ExtendedPerpDex | null)[];
179
+ /** Feature-flag-filtered DEX names (null = main DEX, strings = HIP-3 DEXs) */
180
+ validated: (string | null)[];
181
+ /** When raw was fetched — used for fee-scale TTL checks */
182
+ timestamp: number;
183
+ };
184
+ //# sourceMappingURL=perps-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"perps-types.d.ts","sourceRoot":"","sources":["../../src/types/perps-types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,SAAS,GACjB,QAAQ,GACR,OAAO,GACP,aAAa,GACb,YAAY,GACZ,oBAAoB,GACpB,mBAAmB,GACnB,MAAM,GACN,OAAO,GACP,OAAO,CAAC;AAEZ;;;;;;GAMG;AACH,MAAM,MAAM,gBAAgB,GACxB,aAAa,GACb,YAAY,GACZ,oBAAoB,GACpB,mBAAmB,CAAC;AAExB;;;;;;;;;;;;;;;GAeG;AACH,MAAM,MAAM,iBAAiB,GAA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gB,CAAC,EAAE,MAAM,CAAC;IAC1B,6CAA6C;IAC7C,8BAA8B,CAAC,EAAE,MAAM,CAAC;CACzC,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,uEAAuE;IACvE,GAAG,EAAE,CAAC,eAAe,GAAG,IAAI,CAAC,EAAE,CAAC;IAChC,8EAA8E;IAC9E,SAAS,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC;IAC7B,2DAA2D;IAC3D,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=perps-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"perps-types.js","sourceRoot":"","sources":["../../src/types/perps-types.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Test result states for SDK validation\n */\nimport { CandlePeriod } from '../constants/chartConfig.js';\n\n/**\n * Order type enumeration (placement type).\n *\n * - `market` / `limit`: immediate placement.\n * - `stop_*` / `take_profit_*`: trigger placement — the order rests off-book until\n * `OrderParams.triggerPrice` is reached, then executes as a market or limit order\n * according to the suffix.\n * - `twap` / `scale` / `chase`: strategy placement — one request expands into an\n * execution schedule rather than a single resting order. See `StrategyOrderType`.\n *\n * Provider-agnostic by design: no protocol vocabulary (HyperLiquid's `tpsl`,\n * `triggerPx`, `isMarket`) appears in the params model.\n */\nexport type OrderType =\n | 'market'\n | 'limit'\n | 'stop_market'\n | 'stop_limit'\n | 'take_profit_market'\n | 'take_profit_limit'\n | 'twap'\n | 'scale'\n | 'chase';\n\n/**\n * The subset of `OrderType` values that require a trigger price.\n *\n * Spelled out rather than derived with `Exclude`: every order type added to\n * `OrderType` that is neither `market` nor `limit` would otherwise be pulled in\n * here automatically and start demanding a trigger price it has no concept of.\n */\nexport type TriggerOrderType =\n | 'stop_market'\n | 'stop_limit'\n | 'take_profit_market'\n | 'take_profit_limit';\n\n/**\n * The subset of `OrderType` values that describe an execution *strategy* rather\n * than a single order.\n *\n * - `twap`: slice the size over `OrderParams.twapDuration` minutes. Placed and\n * cancelled through the venue's own TWAP endpoints, not the order book.\n * - `scale`: fan out `OrderParams.scaleNumOrders` limit orders between\n * `OrderParams.scaleMinPrice` and `OrderParams.scaleMaxPrice`, evenly sized\n * unless `OrderParams.scaleSkew` weights them along the ladder.\n * - `chase`: rest a post-only order at the near touch and re-price it as the\n * touch moves, until it fills or the chase window closes.\n *\n * A strategy placement returns a *handle* in `OrderResult.orderId` — a venue\n * TWAP id, or a client-generated group/session id — which is what\n * `CancelOrderParams` takes together with the matching `orderType`.\n */\nexport type StrategyOrderType = 'twap' | 'scale' | 'chase';\n\n/**\n * Every `OrderType` that resolves to a single order the exchange can be handed\n * directly — market, limit, and the four trigger placements.\n *\n * Derived with `Exclude` on purpose, the safe direction: it *shrinks* as\n * `StrategyOrderType` grows, so a strategy added later is kept out of the\n * single-order helpers automatically rather than silently falling through them.\n */\nexport type OrdinaryOrderType = Exclude<OrderType, StrategyOrderType>;\n\n/**\n * Whether a triggered order executes as a market or a limit order.\n */\nexport type OrderExecution = 'market' | 'limit';\n\n/**\n * How an attached TP/SL relates to what it protects.\n *\n * - `none`: the order carries no attached TP/SL.\n * - `order`: the TP/SL belongs to this order and is cancelled with it.\n * - `position`: the TP/SL belongs to the resulting position and covers all of it.\n *\n * Provider-agnostic replacement for the HyperLiquid-shaped `OrderParams.grouping`.\n */\nexport type TpslLinkage = 'none' | 'order' | 'position';\n\n/**\n * Which side of the mark price a trigger order fires on.\n * `stop` protects against adverse moves, `take_profit` realizes gains.\n */\nexport type TriggerDirection = 'stop' | 'take_profit';\n\nexport type TestResultStatus =\n | 'idle'\n | 'loading'\n | 'success'\n | 'warning'\n | 'error';\n\n/**\n * Test result data structure\n */\nexport type TestResult = {\n status: TestResultStatus;\n message: string;\n data?: Record<string, unknown>;\n};\n\n/**\n * SDK test types\n */\nexport type SDKTestType = 'connection' | 'asset-listing' | 'websocket';\n\n/**\n * Hyperliquid asset interface (basic structure)\n */\nexport type HyperliquidAsset = {\n name: string;\n [key: string]: unknown;\n};\n\n/**\n * Represents a single candlestick data point\n */\nexport type CandleStick = {\n time: number;\n open: string;\n high: string;\n low: string;\n close: string;\n volume: string;\n};\n\n/**\n * Represents historical candlestick data for a specific symbol and interval\n */\nexport type CandleData = {\n /** Asset identifier (e.g., 'BTC', 'ETH'). Protocol-agnostic terminology for multi-provider support. */\n symbol: string;\n interval: CandlePeriod;\n candles: CandleStick[];\n};\n\n// Configuration types\nexport type {\n HyperLiquidEndpoints,\n AssetNetworkConfig,\n HyperLiquidAssetConfigs,\n BridgeContractConfig,\n HyperLiquidBridgeContracts,\n TransportReconnectConfig,\n TransportKeepAliveConfig,\n HyperLiquidTransportConfig,\n TradingAmountConfig,\n TradingDefaultsConfig,\n FeeRatesConfig,\n HyperLiquidNetwork,\n} from './config.js';\n\n// Token types\nexport type { PerpsToken } from './token.js';\n\n/**\n * Order form state for the Perps order view\n */\nexport type OrderFormState = {\n asset: string;\n direction: 'long' | 'short';\n amount: string;\n leverage: number;\n balancePercent: number;\n takeProfitPrice?: string;\n stopLossPrice?: string;\n limitPrice?: string;\n type: OrderType;\n};\n\nexport type OrderDirection = 'long' | 'short';\n\n/**\n * Options for reconnecting the Perps connection\n */\nexport type ReconnectOptions = {\n /**\n * If true, forces immediate disconnect and cancels all pending operations.\n * Use for user-initiated retry actions.\n * If false (default), waits for pending operations to complete.\n * Use for automatic reconnections like account switches.\n */\n force?: boolean;\n};\n\n/**\n * Extended asset metadata including Growth Mode fields not in SDK types.\n * The HyperLiquid API returns these fields but the SDK doesn't type them.\n *\n * @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees#fee-formula-for-developers\n */\nexport type ExtendedAssetMeta = {\n name: string;\n szDecimals: number;\n maxLeverage: number;\n /** Per-asset Growth Mode status - \"enabled\" means 90% fee reduction */\n growthMode?: 'enabled' | null;\n /** ISO timestamp of last Growth Mode change */\n lastGrowthModeChangeTime?: string;\n};\n\n/**\n * Extended perp DEX info including fee scale fields not in SDK types.\n * The HyperLiquid API returns these fields but the SDK doesn't type them.\n *\n * @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees#fee-formula-for-developers\n */\nexport type ExtendedPerpDex = {\n name: string;\n fullName?: string;\n deployer?: string;\n /** DEX-level fee scale (e.g., \"1.0\" for xyz DEX) - determines HIP-3 multiplier */\n deployerFeeScale?: string;\n /** ISO timestamp of last fee scale change */\n lastDeployerFeeScaleChangeTime?: string;\n};\n\n/**\n * Unified DEX discovery state — single source of truth for all perpDexs() derivatives.\n * Replaces three separate caches (#cachedAllPerpDexs, #cachedValidatedDexs, #perpDexsCache)\n * to eliminate desync bugs by construction.\n */\nexport type DexDiscoveryState = {\n /** perpDexs() API response (raw objects with deployerFeeScale etc.) */\n raw: (ExtendedPerpDex | null)[];\n /** Feature-flag-filtered DEX names (null = main DEX, strings = HIP-3 DEXs) */\n validated: (string | null)[];\n /** When raw was fetched — used for fee-scale TTL checks */\n timestamp: number;\n};\n"]}
@@ -0,0 +1,25 @@
1
+ import type { Hex, CaipChainId } from '@metamask/utils';
2
+ /**
3
+ * Token interface for Perps trading.
4
+ * Independent from BridgeToken to avoid Mobile-only dependencies.
5
+ * Shape matches BridgeToken for backward compatibility.
6
+ */
7
+ export type PerpsToken = {
8
+ address: string;
9
+ name?: string;
10
+ symbol: string;
11
+ image?: string;
12
+ decimals: number;
13
+ chainId: Hex | CaipChainId;
14
+ balance?: string;
15
+ balanceFiat?: string;
16
+ tokenFiatAmount?: number;
17
+ currencyExchangeRate?: number;
18
+ noFee?: {
19
+ isSource: boolean;
20
+ isDestination: boolean;
21
+ };
22
+ aggregators?: string[];
23
+ metadata?: Record<string, unknown>;
24
+ };
25
+ //# sourceMappingURL=token.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../src/types/token.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAExD;;;;GAIG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,GAAG,GAAG,WAAW,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,KAAK,CAAC,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;IACtD,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.js","sourceRoot":"","sources":["../../src/types/token.ts"],"names":[],"mappings":"","sourcesContent":["import type { Hex, CaipChainId } from '@metamask/utils';\n\n/**\n * Token interface for Perps trading.\n * Independent from BridgeToken to avoid Mobile-only dependencies.\n * Shape matches BridgeToken for backward compatibility.\n */\nexport type PerpsToken = {\n address: string;\n name?: string;\n symbol: string;\n image?: string;\n decimals: number;\n chainId: Hex | CaipChainId;\n balance?: string;\n balanceFiat?: string;\n tokenFiatAmount?: number;\n currencyExchangeRate?: number;\n noFee?: { isSource: boolean; isDestination: boolean };\n aggregators?: string[];\n metadata?: Record<string, unknown>;\n};\n"]}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * Base type with core properties shared between all transaction results
3
+ * All properties are JSON serializable for controller state compatibility
4
+ */
5
+ export type BaseTransactionResult = {
6
+ amount: string;
7
+ asset: string;
8
+ txHash?: string;
9
+ timestamp: number;
10
+ success: boolean;
11
+ };
12
+ /**
13
+ * For transient UI feedback (toasts, progress indicators)
14
+ * Used for immediate success/failure notifications
15
+ * JSON serializable for controller state
16
+ */
17
+ export type LastTransactionResult = {
18
+ amount: string;
19
+ asset: string;
20
+ txHash: string;
21
+ timestamp: number;
22
+ success: boolean;
23
+ error: string;
24
+ [key: string]: string | number | boolean;
25
+ };
26
+ /**
27
+ * For persistent transaction history tracking
28
+ * Used for transaction history display and detailed status tracking
29
+ * JSON serializable for controller state
30
+ */
31
+ export type TransactionStatus = 'pending' | 'bridging' | 'completed' | 'failed';
32
+ export type TransactionRecord = {
33
+ id: string;
34
+ amount: string;
35
+ asset: string;
36
+ txHash?: string;
37
+ timestamp: number;
38
+ success: boolean;
39
+ status: TransactionStatus;
40
+ destination?: string;
41
+ source?: string;
42
+ transactionId?: string;
43
+ withdrawalId?: string;
44
+ depositId?: string;
45
+ };
46
+ /**
47
+ * Type guard to check if a transaction result is a TransactionRecord
48
+ *
49
+ * @param result - The transaction result to check.
50
+ * @returns True if the result is a TransactionRecord with id and status fields.
51
+ */
52
+ export declare function isTransactionRecord(result: LastTransactionResult | TransactionRecord): result is TransactionRecord;
53
+ /**
54
+ * Type guard to check if a transaction result is a LastTransactionResult
55
+ *
56
+ * @param result - The transaction result to check.
57
+ * @returns True if the result is a LastTransactionResult without id or status fields.
58
+ */
59
+ export declare function isLastTransactionResult(result: LastTransactionResult | TransactionRecord): result is LastTransactionResult;
60
+ //# sourceMappingURL=transactionTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionTypes.d.ts","sourceRoot":"","sources":["../../src/types/transactionTypes.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;CAC1C,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,GAAG,QAAQ,CAAC;AAEhF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,qBAAqB,GAAG,iBAAiB,GAChD,MAAM,IAAI,iBAAiB,CAE7B;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,qBAAqB,GAAG,iBAAiB,GAChD,MAAM,IAAI,qBAAqB,CAEjC"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Shared transaction types for Perps deposits and withdrawals
3
+ * Provides a unified structure while maintaining separate use cases
4
+ */
5
+ import { hasProperty } from '@metamask/utils';
6
+ /**
7
+ * Type guard to check if a transaction result is a TransactionRecord
8
+ *
9
+ * @param result - The transaction result to check.
10
+ * @returns True if the result is a TransactionRecord with id and status fields.
11
+ */
12
+ export function isTransactionRecord(result) {
13
+ return hasProperty(result, 'id') && hasProperty(result, 'status');
14
+ }
15
+ /**
16
+ * Type guard to check if a transaction result is a LastTransactionResult
17
+ *
18
+ * @param result - The transaction result to check.
19
+ * @returns True if the result is a LastTransactionResult without id or status fields.
20
+ */
21
+ export function isLastTransactionResult(result) {
22
+ return !hasProperty(result, 'id') || !hasProperty(result, 'status');
23
+ }
24
+ //# sourceMappingURL=transactionTypes.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionTypes.js","sourceRoot":"","sources":["../../src/types/transactionTypes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAoD9C;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CACjC,MAAiD;IAEjD,OAAO,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AACpE,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,uBAAuB,CACrC,MAAiD;IAEjD,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AACtE,CAAC","sourcesContent":["/**\n * Shared transaction types for Perps deposits and withdrawals\n * Provides a unified structure while maintaining separate use cases\n */\nimport { hasProperty } from '@metamask/utils';\n\n/**\n * Base type with core properties shared between all transaction results\n * All properties are JSON serializable for controller state compatibility\n */\nexport type BaseTransactionResult = {\n amount: string;\n asset: string;\n txHash?: string;\n timestamp: number;\n success: boolean; // explicit to avoid regressions\n};\n\n/**\n * For transient UI feedback (toasts, progress indicators)\n * Used for immediate success/failure notifications\n * JSON serializable for controller state\n */\nexport type LastTransactionResult = {\n amount: string;\n asset: string;\n txHash: string;\n timestamp: number;\n success: boolean;\n error: string;\n [key: string]: string | number | boolean;\n};\n\n/**\n * For persistent transaction history tracking\n * Used for transaction history display and detailed status tracking\n * JSON serializable for controller state\n */\nexport type TransactionStatus = 'pending' | 'bridging' | 'completed' | 'failed';\n\nexport type TransactionRecord = {\n id: string;\n amount: string;\n asset: string;\n txHash?: string;\n timestamp: number;\n success: boolean;\n status: TransactionStatus;\n destination?: string; // mainly for withdrawals\n source?: string; // mainly for deposits\n transactionId?: string; // generic - could be withdrawalId or depositId\n // Legacy fields for backward compatibility\n withdrawalId?: string; // for withdrawals\n depositId?: string; // for deposits\n};\n\n/**\n * Type guard to check if a transaction result is a TransactionRecord\n *\n * @param result - The transaction result to check.\n * @returns True if the result is a TransactionRecord with id and status fields.\n */\nexport function isTransactionRecord(\n result: LastTransactionResult | TransactionRecord,\n): result is TransactionRecord {\n return hasProperty(result, 'id') && hasProperty(result, 'status');\n}\n\n/**\n * Type guard to check if a transaction result is a LastTransactionResult\n *\n * @param result - The transaction result to check.\n * @returns True if the result is a LastTransactionResult without id or status fields.\n */\nexport function isLastTransactionResult(\n result: LastTransactionResult | TransactionRecord,\n): result is LastTransactionResult {\n return !hasProperty(result, 'id') || !hasProperty(result, 'status');\n}\n"]}
@@ -0,0 +1,72 @@
1
+ /**
2
+ * Account utilities for Perps components
3
+ * Handles account selection and EVM account filtering
4
+ */
5
+ import type { InternalAccount } from '@metamask/keyring-internal-api';
6
+ import type { SpotClearinghouseStateResponse } from '../types/hyperliquid-types.js';
7
+ import type { AccountState, PerpsInternalAccount } from '../types/index.js';
8
+ export declare function findEvmAccount(accounts: (InternalAccount | PerpsInternalAccount)[]): InternalAccount | PerpsInternalAccount | null;
9
+ export declare function getEvmAccountFromAccountGroup(accounts: (InternalAccount | PerpsInternalAccount)[]): {
10
+ address: string;
11
+ } | undefined;
12
+ export declare function getSelectedEvmAccount(accounts: (InternalAccount | PerpsInternalAccount)[]): {
13
+ address: string;
14
+ } | undefined;
15
+ type SelectedEvmAccountMessenger = {
16
+ call(actionType: 'AccountsController:getSelectedAccount' | 'AccountTreeController:getAccountsFromSelectedAccountGroup'): unknown;
17
+ };
18
+ export declare function getSelectedEvmAccountDetailsFromMessenger(messenger: SelectedEvmAccountMessenger): InternalAccount | PerpsInternalAccount | undefined;
19
+ export declare function getSelectedEvmAccountFromMessenger(messenger: SelectedEvmAccountMessenger): {
20
+ address: string;
21
+ } | undefined;
22
+ export type ReturnOnEquityInput = {
23
+ unrealizedPnl: string | number;
24
+ returnOnEquity: string | number;
25
+ };
26
+ export declare function calculateWeightedReturnOnEquity(accounts: ReturnOnEquityInput[]): string;
27
+ export declare function getSpotBalance(spotState?: SpotClearinghouseStateResponse | null): number;
28
+ export declare function getSpotHold(spotState?: SpotClearinghouseStateResponse | null): number;
29
+ /**
30
+ * Options controlling how `addSpotBalanceToAccountState` folds spot balance
31
+ * into the three-field AccountState contract.
32
+ */
33
+ export type AddSpotBalanceOptions = {
34
+ /**
35
+ * When `true`, free spot USDC contributes to both `spendableBalance` and
36
+ * `withdrawableBalance` in addition to `totalBalance` — appropriate for
37
+ * venues where spot is automatically used as perps collateral (e.g.
38
+ * HyperLiquid Unified/Portfolio mode, where `withdraw3` draws from the
39
+ * unified ledger).
40
+ *
41
+ * When `false`, free spot contributes to `totalBalance` only; spendable
42
+ * and withdrawable stay perps-only — appropriate for venues where spot
43
+ * is a separate ledger the backend cannot auto-draw from (e.g. HL
44
+ * Standard mode). The caller is responsible for translating
45
+ * provider-specific state into this flag.
46
+ *
47
+ * Defaults to `true` for backward compatibility with call sites that
48
+ * haven't yet been wired with provider-specific context.
49
+ */
50
+ foldIntoCollateral?: boolean;
51
+ };
52
+ /**
53
+ * Add spot USDC to the AccountState contract. Caller decides whether the
54
+ * spot balance counts as perps collateral via `options.foldIntoCollateral`
55
+ * — the util stays provider-agnostic.
56
+ *
57
+ * @param accountState - Base AccountState produced by a provider adapter.
58
+ * @param spotState - Raw spot clearinghouse response (HL-shaped); null or missing means no spot balance and the state is returned unchanged.
59
+ * @param options - See {@link AddSpotBalanceOptions}.
60
+ * @returns AccountState with spot folded into `totalBalance` always, and into spendable/withdrawable when `foldIntoCollateral` is true.
61
+ */
62
+ export declare function addSpotBalanceToAccountState(accountState: AccountState, spotState?: SpotClearinghouseStateResponse | null, options?: AddSpotBalanceOptions): AccountState;
63
+ /**
64
+ * Aggregate multiple per-DEX AccountState objects into one by summing numeric fields.
65
+ * ROE is recalculated as (totalUnrealizedPnl / totalMarginUsed) * 100.
66
+ *
67
+ * @param states - The array of per-DEX account states to aggregate.
68
+ * @returns The combined account state with summed balances and recalculated ROE.
69
+ */
70
+ export declare function aggregateAccountStates(states: AccountState[]): AccountState;
71
+ export {};
72
+ //# sourceMappingURL=accountUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountUtils.d.ts","sourceRoot":"","sources":["../../src/utils/accountUtils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAGtE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,KAAK,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAQ5E,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,CAAC,eAAe,GAAG,oBAAoB,CAAC,EAAE,GACnD,eAAe,GAAG,oBAAoB,GAAG,IAAI,CAM/C;AAED,wBAAgB,6BAA6B,CAC3C,QAAQ,EAAE,CAAC,eAAe,GAAG,oBAAoB,CAAC,EAAE,GACnD;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAGjC;AAED,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,CAAC,eAAe,GAAG,oBAAoB,CAAC,EAAE,GACnD;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAEjC;AAED,KA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