@nktkas/hyperliquid 0.30.0 → 0.30.3

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 (514) hide show
  1. package/README.md +83 -19
  2. package/esm/bin/cli.js +10 -0
  3. package/esm/bin/cli.js.map +1 -1
  4. package/esm/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.d.ts +94 -0
  5. package/esm/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.d.ts.map +1 -0
  6. package/esm/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.js +138 -0
  7. package/esm/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.js.map +1 -0
  8. package/esm/src/api/_schemas.d.ts +4 -4
  9. package/esm/src/api/_schemas.d.ts.map +1 -1
  10. package/esm/src/api/_schemas.js +8 -4
  11. package/esm/src/api/_schemas.js.map +1 -1
  12. package/esm/src/api/exchange/_methods/_base/_nonce.d.ts +3 -2
  13. package/esm/src/api/exchange/_methods/_base/_nonce.d.ts.map +1 -1
  14. package/esm/src/api/exchange/_methods/_base/_nonce.js +3 -2
  15. package/esm/src/api/exchange/_methods/_base/_nonce.js.map +1 -1
  16. package/esm/src/api/exchange/_methods/_base/_semaphore.d.ts +7 -6
  17. package/esm/src/api/exchange/_methods/_base/_semaphore.d.ts.map +1 -1
  18. package/esm/src/api/exchange/_methods/_base/_semaphore.js +34 -47
  19. package/esm/src/api/exchange/_methods/_base/_semaphore.js.map +1 -1
  20. package/esm/src/api/exchange/_methods/_base/execute.js +3 -3
  21. package/esm/src/api/exchange/_methods/_base/execute.js.map +1 -1
  22. package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts +2 -2
  23. package/esm/src/api/exchange/_methods/approveAgent.d.ts +24 -13
  24. package/esm/src/api/exchange/_methods/approveAgent.d.ts.map +1 -1
  25. package/esm/src/api/exchange/_methods/approveAgent.js +21 -3
  26. package/esm/src/api/exchange/_methods/approveAgent.js.map +1 -1
  27. package/esm/src/api/exchange/_methods/approveBuilderFee.d.ts +4 -4
  28. package/esm/src/api/exchange/_methods/batchModify.d.ts +29 -29
  29. package/esm/src/api/exchange/_methods/borrowLend.d.ts +173 -0
  30. package/esm/src/api/exchange/_methods/borrowLend.d.ts.map +1 -0
  31. package/esm/src/api/exchange/_methods/borrowLend.js +75 -0
  32. package/esm/src/api/exchange/_methods/borrowLend.js.map +1 -0
  33. package/esm/src/api/exchange/_methods/cDeposit.d.ts +7 -7
  34. package/esm/src/api/exchange/_methods/cSignerAction.d.ts +2 -2
  35. package/esm/src/api/exchange/_methods/cValidatorAction.d.ts +11 -11
  36. package/esm/src/api/exchange/_methods/cWithdraw.d.ts +7 -7
  37. package/esm/src/api/exchange/_methods/cancel.d.ts +8 -8
  38. package/esm/src/api/exchange/_methods/cancelByCloid.d.ts +5 -5
  39. package/esm/src/api/exchange/_methods/claimRewards.d.ts +2 -2
  40. package/esm/src/api/exchange/_methods/convertToMultiSigUser.d.ts +10 -10
  41. package/esm/src/api/exchange/_methods/createSubAccount.d.ts +2 -2
  42. package/esm/src/api/exchange/_methods/createVault.d.ts +8 -8
  43. package/esm/src/api/exchange/_methods/evmUserModify.d.ts +2 -2
  44. package/esm/src/api/exchange/_methods/linkStakingUser.d.ts +4 -4
  45. package/esm/src/api/exchange/_methods/modify.d.ts +19 -19
  46. package/esm/src/api/exchange/_methods/noop.d.ts +2 -2
  47. package/esm/src/api/exchange/_methods/order.d.ts +31 -31
  48. package/esm/src/api/exchange/_methods/order.d.ts.map +1 -1
  49. package/esm/src/api/exchange/_methods/order.js +4 -2
  50. package/esm/src/api/exchange/_methods/order.js.map +1 -1
  51. package/esm/src/api/exchange/_methods/perpDeploy.d.ts +53 -53
  52. package/esm/src/api/exchange/_methods/registerReferrer.d.ts +2 -2
  53. package/esm/src/api/exchange/_methods/reserveRequestWeight.d.ts +5 -5
  54. package/esm/src/api/exchange/_methods/scheduleCancel.d.ts +5 -5
  55. package/esm/src/api/exchange/_methods/sendAsset.d.ts +17 -17
  56. package/esm/src/api/exchange/_methods/setDisplayName.d.ts +2 -2
  57. package/esm/src/api/exchange/_methods/setReferrer.d.ts +2 -2
  58. package/esm/src/api/exchange/_methods/spotDeploy.d.ts +53 -53
  59. package/esm/src/api/exchange/_methods/spotSend.d.ts +12 -12
  60. package/esm/src/api/exchange/_methods/spotUser.d.ts +2 -2
  61. package/esm/src/api/exchange/_methods/subAccountModify.d.ts +2 -2
  62. package/esm/src/api/exchange/_methods/subAccountSpotTransfer.d.ts +5 -5
  63. package/esm/src/api/exchange/_methods/subAccountTransfer.d.ts +5 -5
  64. package/esm/src/api/exchange/_methods/tokenDelegate.d.ts +7 -7
  65. package/esm/src/api/exchange/_methods/twapCancel.d.ts +8 -8
  66. package/esm/src/api/exchange/_methods/twapOrder.d.ts +12 -12
  67. package/esm/src/api/exchange/_methods/updateIsolatedMargin.d.ts +8 -8
  68. package/esm/src/api/exchange/_methods/updateLeverage.d.ts +8 -8
  69. package/esm/src/api/exchange/_methods/usdClassTransfer.d.ts +7 -7
  70. package/esm/src/api/exchange/_methods/usdSend.d.ts +12 -12
  71. package/esm/src/api/exchange/_methods/userDexAbstraction.d.ts +4 -4
  72. package/esm/src/api/exchange/_methods/userPortfolioMargin.d.ts +193 -0
  73. package/esm/src/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -0
  74. package/esm/src/api/exchange/_methods/userPortfolioMargin.js +92 -0
  75. package/esm/src/api/exchange/_methods/userPortfolioMargin.js.map +1 -0
  76. package/esm/src/api/exchange/_methods/validatorL1Stream.d.ts +5 -5
  77. package/esm/src/api/exchange/_methods/vaultDistribute.d.ts +5 -5
  78. package/esm/src/api/exchange/_methods/vaultModify.d.ts +2 -2
  79. package/esm/src/api/exchange/_methods/vaultTransfer.d.ts +5 -5
  80. package/esm/src/api/exchange/_methods/withdraw3.d.ts +12 -12
  81. package/esm/src/api/exchange/client.d.ts +8 -0
  82. package/esm/src/api/exchange/client.d.ts.map +1 -1
  83. package/esm/src/api/exchange/client.js +10 -0
  84. package/esm/src/api/exchange/client.js.map +1 -1
  85. package/esm/src/api/exchange/mod.d.ts +2 -0
  86. package/esm/src/api/exchange/mod.d.ts.map +1 -1
  87. package/esm/src/api/exchange/mod.js +2 -0
  88. package/esm/src/api/exchange/mod.js.map +1 -1
  89. package/esm/src/api/info/_methods/_base/commonSchemas.d.ts +43 -43
  90. package/esm/src/api/info/_methods/activeAssetData.d.ts +6 -6
  91. package/esm/src/api/info/_methods/activeAssetData.js +2 -2
  92. package/esm/src/api/info/_methods/activeAssetData.js.map +1 -1
  93. package/esm/src/api/info/_methods/alignedQuoteTokenInfo.d.ts +5 -5
  94. package/esm/src/api/info/_methods/allBorrowLendReserveStates.d.ts +71 -0
  95. package/esm/src/api/info/_methods/allBorrowLendReserveStates.d.ts.map +1 -0
  96. package/esm/src/api/info/_methods/allBorrowLendReserveStates.js +56 -0
  97. package/esm/src/api/info/_methods/allBorrowLendReserveStates.js.map +1 -0
  98. package/esm/src/api/info/_methods/allMids.d.ts +1 -1
  99. package/esm/src/api/info/_methods/allPerpMetas.d.ts +7 -7
  100. package/esm/src/api/info/_methods/blockDetails.d.ts +6 -6
  101. package/esm/src/api/info/_methods/borrowLendReserveState.d.ts +79 -0
  102. package/esm/src/api/info/_methods/borrowLendReserveState.d.ts.map +1 -0
  103. package/esm/src/api/info/_methods/borrowLendReserveState.js +76 -0
  104. package/esm/src/api/info/_methods/borrowLendReserveState.js.map +1 -0
  105. package/esm/src/api/info/_methods/borrowLendUserState.d.ts +103 -0
  106. package/esm/src/api/info/_methods/borrowLendUserState.d.ts.map +1 -0
  107. package/esm/src/api/info/_methods/borrowLendUserState.js +85 -0
  108. package/esm/src/api/info/_methods/borrowLendUserState.js.map +1 -0
  109. package/esm/src/api/info/_methods/candleSnapshot.d.ts +10 -10
  110. package/esm/src/api/info/_methods/clearinghouseState.d.ts +25 -25
  111. package/esm/src/api/info/_methods/clearinghouseState.js +3 -3
  112. package/esm/src/api/info/_methods/clearinghouseState.js.map +1 -1
  113. package/esm/src/api/info/_methods/delegations.d.ts +2 -2
  114. package/esm/src/api/info/_methods/delegatorHistory.d.ts +4 -4
  115. package/esm/src/api/info/_methods/delegatorRewards.d.ts +2 -2
  116. package/esm/src/api/info/_methods/delegatorSummary.d.ts +4 -4
  117. package/esm/src/api/info/_methods/exchangeStatus.d.ts +1 -1
  118. package/esm/src/api/info/_methods/extraAgents.d.ts +1 -1
  119. package/esm/src/api/info/_methods/frontendOpenOrders.d.ts +6 -6
  120. package/esm/src/api/info/_methods/fundingHistory.d.ts +5 -5
  121. package/esm/src/api/info/_methods/historicalOrders.d.ts +7 -7
  122. package/esm/src/api/info/_methods/l2Book.d.ts +7 -7
  123. package/esm/src/api/info/_methods/marginTable.d.ts +3 -3
  124. package/esm/src/api/info/_methods/maxMarketOrderNtls.d.ts +1 -1
  125. package/esm/src/api/info/_methods/maxMarketOrderNtls.d.ts.map +1 -1
  126. package/esm/src/api/info/_methods/meta.d.ts +7 -7
  127. package/esm/src/api/info/_methods/metaAndAssetCtxs.d.ts +16 -16
  128. package/esm/src/api/info/_methods/openOrders.d.ts +5 -5
  129. package/esm/src/api/info/_methods/orderStatus.d.ts +8 -8
  130. package/esm/src/api/info/_methods/perpDeployAuctionStatus.d.ts +5 -5
  131. package/esm/src/api/info/_methods/perpDexLimits.d.ts +4 -4
  132. package/esm/src/api/info/_methods/perpDexStatus.d.ts +1 -1
  133. package/esm/src/api/info/_methods/perpDexs.d.ts +6 -2
  134. package/esm/src/api/info/_methods/perpDexs.d.ts.map +1 -1
  135. package/esm/src/api/info/_methods/perpDexs.js +3 -1
  136. package/esm/src/api/info/_methods/perpDexs.js.map +1 -1
  137. package/esm/src/api/info/_methods/portfolio.d.ts +24 -24
  138. package/esm/src/api/info/_methods/preTransferCheck.d.ts +1 -1
  139. package/esm/src/api/info/_methods/predictedFundings.d.ts +3 -3
  140. package/esm/src/api/info/_methods/recentTrades.d.ts +4 -4
  141. package/esm/src/api/info/_methods/referral.d.ts +23 -23
  142. package/esm/src/api/info/_methods/spotClearinghouseState.d.ts +6 -6
  143. package/esm/src/api/info/_methods/spotDeployState.d.ts +15 -15
  144. package/esm/src/api/info/_methods/spotMeta.d.ts +43 -7
  145. package/esm/src/api/info/_methods/spotMeta.d.ts.map +1 -1
  146. package/esm/src/api/info/_methods/spotMeta.js +16 -0
  147. package/esm/src/api/info/_methods/spotMeta.js.map +1 -1
  148. package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +52 -14
  149. package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts.map +1 -1
  150. package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts +5 -5
  151. package/esm/src/api/info/_methods/subAccounts.d.ts +31 -31
  152. package/esm/src/api/info/_methods/subAccounts2.d.ts +31 -31
  153. package/esm/src/api/info/_methods/tokenDetails.d.ts +12 -12
  154. package/esm/src/api/info/_methods/twapHistory.d.ts +7 -7
  155. package/esm/src/api/info/_methods/txDetails.d.ts +2 -2
  156. package/esm/src/api/info/_methods/userBorrowLendInterest.d.ts +73 -0
  157. package/esm/src/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -0
  158. package/esm/src/api/info/_methods/userBorrowLendInterest.js +72 -0
  159. package/esm/src/api/info/_methods/userBorrowLendInterest.js.map +1 -0
  160. package/esm/src/api/info/_methods/userDetails.d.ts +2 -2
  161. package/esm/src/api/info/_methods/userFees.d.ts +25 -25
  162. package/esm/src/api/info/_methods/userFills.d.ts +10 -10
  163. package/esm/src/api/info/_methods/userFillsByTime.d.ts +12 -12
  164. package/esm/src/api/info/_methods/userFunding.d.ts +9 -9
  165. package/esm/src/api/info/_methods/userFunding.js +2 -2
  166. package/esm/src/api/info/_methods/userFunding.js.map +1 -1
  167. package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts +93 -36
  168. package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
  169. package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.js +33 -0
  170. package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
  171. package/esm/src/api/info/_methods/userRateLimit.d.ts +4 -4
  172. package/esm/src/api/info/_methods/userToMultiSigSigners.d.ts +1 -1
  173. package/esm/src/api/info/_methods/userTwapSliceFills.d.ts +10 -10
  174. package/esm/src/api/info/_methods/userTwapSliceFillsByTime.d.ts +12 -12
  175. package/esm/src/api/info/_methods/userVaultEquities.d.ts +2 -2
  176. package/esm/src/api/info/_methods/validatorL1Votes.d.ts +1 -1
  177. package/esm/src/api/info/_methods/validatorSummaries.d.ts +9 -9
  178. package/esm/src/api/info/_methods/vaultDetails.d.ts +36 -36
  179. package/esm/src/api/info/_methods/vaultSummaries.d.ts +2 -2
  180. package/esm/src/api/info/_methods/webData2.d.ts +70 -70
  181. package/esm/src/api/info/client.d.ts +16 -0
  182. package/esm/src/api/info/client.d.ts.map +1 -1
  183. package/esm/src/api/info/client.js +20 -0
  184. package/esm/src/api/info/client.js.map +1 -1
  185. package/esm/src/api/info/mod.d.ts +4 -0
  186. package/esm/src/api/info/mod.d.ts.map +1 -1
  187. package/esm/src/api/info/mod.js +4 -0
  188. package/esm/src/api/info/mod.js.map +1 -1
  189. package/esm/src/api/subscription/_methods/activeAssetCtx.d.ts +9 -9
  190. package/esm/src/api/subscription/_methods/activeAssetData.d.ts +6 -6
  191. package/esm/src/api/subscription/_methods/activeSpotAssetCtx.d.ts +7 -7
  192. package/esm/src/api/subscription/_methods/allDexsAssetCtxs.d.ts +9 -9
  193. package/esm/src/api/subscription/_methods/allDexsClearinghouseState.d.ts +25 -25
  194. package/esm/src/api/subscription/_methods/allMids.d.ts +1 -1
  195. package/esm/src/api/subscription/_methods/assetCtxs.d.ts +11 -9
  196. package/esm/src/api/subscription/_methods/assetCtxs.d.ts.map +1 -1
  197. package/esm/src/api/subscription/_methods/assetCtxs.js.map +1 -1
  198. package/esm/src/api/subscription/_methods/bbo.d.ts +7 -7
  199. package/esm/src/api/subscription/_methods/candle.d.ts +8 -8
  200. package/esm/src/api/subscription/_methods/clearinghouseState.d.ts +27 -25
  201. package/esm/src/api/subscription/_methods/clearinghouseState.d.ts.map +1 -1
  202. package/esm/src/api/subscription/_methods/clearinghouseState.js +2 -0
  203. package/esm/src/api/subscription/_methods/clearinghouseState.js.map +1 -1
  204. package/esm/src/api/subscription/_methods/explorerBlock.d.ts +5 -3
  205. package/esm/src/api/subscription/_methods/explorerBlock.d.ts.map +1 -1
  206. package/esm/src/api/subscription/_methods/explorerBlock.js +2 -0
  207. package/esm/src/api/subscription/_methods/explorerBlock.js.map +1 -1
  208. package/esm/src/api/subscription/_methods/explorerTxs.d.ts +4 -2
  209. package/esm/src/api/subscription/_methods/explorerTxs.d.ts.map +1 -1
  210. package/esm/src/api/subscription/_methods/explorerTxs.js +2 -0
  211. package/esm/src/api/subscription/_methods/explorerTxs.js.map +1 -1
  212. package/esm/src/api/subscription/_methods/l2Book.d.ts +9 -9
  213. package/esm/src/api/subscription/_methods/openOrders.d.ts +6 -6
  214. package/esm/src/api/subscription/_methods/orderUpdates.d.ts +6 -6
  215. package/esm/src/api/subscription/_methods/spotAssetCtxs.d.ts +7 -7
  216. package/esm/src/api/subscription/_methods/spotState.d.ts +6 -6
  217. package/esm/src/api/subscription/_methods/trades.d.ts +4 -4
  218. package/esm/src/api/subscription/_methods/twapStates.d.ts +11 -6
  219. package/esm/src/api/subscription/_methods/twapStates.d.ts.map +1 -1
  220. package/esm/src/api/subscription/_methods/twapStates.js +6 -1
  221. package/esm/src/api/subscription/_methods/twapStates.js.map +1 -1
  222. package/esm/src/api/subscription/_methods/userEvents.d.ts +35 -35
  223. package/esm/src/api/subscription/_methods/userFills.d.ts +10 -10
  224. package/esm/src/api/subscription/_methods/userFundings.d.ts +5 -5
  225. package/esm/src/api/subscription/_methods/userHistoricalOrders.d.ts +7 -7
  226. package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts +109 -34
  227. package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
  228. package/esm/src/api/subscription/_methods/userTwapHistory.d.ts +7 -7
  229. package/esm/src/api/subscription/_methods/userTwapSliceFills.d.ts +10 -10
  230. package/esm/src/api/subscription/_methods/webData2.d.ts +70 -70
  231. package/esm/src/api/subscription/_methods/webData3.d.ts +4 -4
  232. package/esm/src/signing/mod.js +1 -1
  233. package/esm/src/signing/mod.js.map +1 -1
  234. package/package.json +2 -2
  235. package/script/bin/cli.js +10 -0
  236. package/script/bin/cli.js.map +1 -1
  237. package/script/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.d.ts +94 -0
  238. package/script/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.d.ts.map +1 -0
  239. package/script/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.js +142 -0
  240. package/script/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.js.map +1 -0
  241. package/script/src/api/_schemas.d.ts +4 -4
  242. package/script/src/api/_schemas.d.ts.map +1 -1
  243. package/script/src/api/_schemas.js +8 -4
  244. package/script/src/api/_schemas.js.map +1 -1
  245. package/script/src/api/exchange/_methods/_base/_nonce.d.ts +3 -2
  246. package/script/src/api/exchange/_methods/_base/_nonce.d.ts.map +1 -1
  247. package/script/src/api/exchange/_methods/_base/_nonce.js +4 -3
  248. package/script/src/api/exchange/_methods/_base/_nonce.js.map +1 -1
  249. package/script/src/api/exchange/_methods/_base/_semaphore.d.ts +7 -6
  250. package/script/src/api/exchange/_methods/_base/_semaphore.d.ts.map +1 -1
  251. package/script/src/api/exchange/_methods/_base/_semaphore.js +35 -50
  252. package/script/src/api/exchange/_methods/_base/_semaphore.js.map +1 -1
  253. package/script/src/api/exchange/_methods/_base/execute.js +2 -2
  254. package/script/src/api/exchange/_methods/_base/execute.js.map +1 -1
  255. package/script/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts +2 -2
  256. package/script/src/api/exchange/_methods/approveAgent.d.ts +24 -13
  257. package/script/src/api/exchange/_methods/approveAgent.d.ts.map +1 -1
  258. package/script/src/api/exchange/_methods/approveAgent.js +21 -3
  259. package/script/src/api/exchange/_methods/approveAgent.js.map +1 -1
  260. package/script/src/api/exchange/_methods/approveBuilderFee.d.ts +4 -4
  261. package/script/src/api/exchange/_methods/batchModify.d.ts +29 -29
  262. package/script/src/api/exchange/_methods/borrowLend.d.ts +173 -0
  263. package/script/src/api/exchange/_methods/borrowLend.d.ts.map +1 -0
  264. package/script/src/api/exchange/_methods/borrowLend.js +112 -0
  265. package/script/src/api/exchange/_methods/borrowLend.js.map +1 -0
  266. package/script/src/api/exchange/_methods/cDeposit.d.ts +7 -7
  267. package/script/src/api/exchange/_methods/cSignerAction.d.ts +2 -2
  268. package/script/src/api/exchange/_methods/cValidatorAction.d.ts +11 -11
  269. package/script/src/api/exchange/_methods/cWithdraw.d.ts +7 -7
  270. package/script/src/api/exchange/_methods/cancel.d.ts +8 -8
  271. package/script/src/api/exchange/_methods/cancelByCloid.d.ts +5 -5
  272. package/script/src/api/exchange/_methods/claimRewards.d.ts +2 -2
  273. package/script/src/api/exchange/_methods/convertToMultiSigUser.d.ts +10 -10
  274. package/script/src/api/exchange/_methods/createSubAccount.d.ts +2 -2
  275. package/script/src/api/exchange/_methods/createVault.d.ts +8 -8
  276. package/script/src/api/exchange/_methods/evmUserModify.d.ts +2 -2
  277. package/script/src/api/exchange/_methods/linkStakingUser.d.ts +4 -4
  278. package/script/src/api/exchange/_methods/modify.d.ts +19 -19
  279. package/script/src/api/exchange/_methods/noop.d.ts +2 -2
  280. package/script/src/api/exchange/_methods/order.d.ts +31 -31
  281. package/script/src/api/exchange/_methods/order.d.ts.map +1 -1
  282. package/script/src/api/exchange/_methods/order.js +4 -2
  283. package/script/src/api/exchange/_methods/order.js.map +1 -1
  284. package/script/src/api/exchange/_methods/perpDeploy.d.ts +53 -53
  285. package/script/src/api/exchange/_methods/registerReferrer.d.ts +2 -2
  286. package/script/src/api/exchange/_methods/reserveRequestWeight.d.ts +5 -5
  287. package/script/src/api/exchange/_methods/scheduleCancel.d.ts +5 -5
  288. package/script/src/api/exchange/_methods/sendAsset.d.ts +17 -17
  289. package/script/src/api/exchange/_methods/setDisplayName.d.ts +2 -2
  290. package/script/src/api/exchange/_methods/setReferrer.d.ts +2 -2
  291. package/script/src/api/exchange/_methods/spotDeploy.d.ts +53 -53
  292. package/script/src/api/exchange/_methods/spotSend.d.ts +12 -12
  293. package/script/src/api/exchange/_methods/spotUser.d.ts +2 -2
  294. package/script/src/api/exchange/_methods/subAccountModify.d.ts +2 -2
  295. package/script/src/api/exchange/_methods/subAccountSpotTransfer.d.ts +5 -5
  296. package/script/src/api/exchange/_methods/subAccountTransfer.d.ts +5 -5
  297. package/script/src/api/exchange/_methods/tokenDelegate.d.ts +7 -7
  298. package/script/src/api/exchange/_methods/twapCancel.d.ts +8 -8
  299. package/script/src/api/exchange/_methods/twapOrder.d.ts +12 -12
  300. package/script/src/api/exchange/_methods/updateIsolatedMargin.d.ts +8 -8
  301. package/script/src/api/exchange/_methods/updateLeverage.d.ts +8 -8
  302. package/script/src/api/exchange/_methods/usdClassTransfer.d.ts +7 -7
  303. package/script/src/api/exchange/_methods/usdSend.d.ts +12 -12
  304. package/script/src/api/exchange/_methods/userDexAbstraction.d.ts +4 -4
  305. package/script/src/api/exchange/_methods/userPortfolioMargin.d.ts +193 -0
  306. package/script/src/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -0
  307. package/script/src/api/exchange/_methods/userPortfolioMargin.js +129 -0
  308. package/script/src/api/exchange/_methods/userPortfolioMargin.js.map +1 -0
  309. package/script/src/api/exchange/_methods/validatorL1Stream.d.ts +5 -5
  310. package/script/src/api/exchange/_methods/vaultDistribute.d.ts +5 -5
  311. package/script/src/api/exchange/_methods/vaultModify.d.ts +2 -2
  312. package/script/src/api/exchange/_methods/vaultTransfer.d.ts +5 -5
  313. package/script/src/api/exchange/_methods/withdraw3.d.ts +12 -12
  314. package/script/src/api/exchange/client.d.ts +8 -0
  315. package/script/src/api/exchange/client.d.ts.map +1 -1
  316. package/script/src/api/exchange/client.js +10 -0
  317. package/script/src/api/exchange/client.js.map +1 -1
  318. package/script/src/api/exchange/mod.d.ts +2 -0
  319. package/script/src/api/exchange/mod.d.ts.map +1 -1
  320. package/script/src/api/exchange/mod.js +2 -0
  321. package/script/src/api/exchange/mod.js.map +1 -1
  322. package/script/src/api/info/_methods/_base/commonSchemas.d.ts +43 -43
  323. package/script/src/api/info/_methods/activeAssetData.d.ts +6 -6
  324. package/script/src/api/info/_methods/activeAssetData.js +1 -1
  325. package/script/src/api/info/_methods/activeAssetData.js.map +1 -1
  326. package/script/src/api/info/_methods/alignedQuoteTokenInfo.d.ts +5 -5
  327. package/script/src/api/info/_methods/allBorrowLendReserveStates.d.ts +71 -0
  328. package/script/src/api/info/_methods/allBorrowLendReserveStates.d.ts.map +1 -0
  329. package/script/src/api/info/_methods/allBorrowLendReserveStates.js +93 -0
  330. package/script/src/api/info/_methods/allBorrowLendReserveStates.js.map +1 -0
  331. package/script/src/api/info/_methods/allMids.d.ts +1 -1
  332. package/script/src/api/info/_methods/allPerpMetas.d.ts +7 -7
  333. package/script/src/api/info/_methods/blockDetails.d.ts +6 -6
  334. package/script/src/api/info/_methods/borrowLendReserveState.d.ts +79 -0
  335. package/script/src/api/info/_methods/borrowLendReserveState.d.ts.map +1 -0
  336. package/script/src/api/info/_methods/borrowLendReserveState.js +113 -0
  337. package/script/src/api/info/_methods/borrowLendReserveState.js.map +1 -0
  338. package/script/src/api/info/_methods/borrowLendUserState.d.ts +103 -0
  339. package/script/src/api/info/_methods/borrowLendUserState.d.ts.map +1 -0
  340. package/script/src/api/info/_methods/borrowLendUserState.js +122 -0
  341. package/script/src/api/info/_methods/borrowLendUserState.js.map +1 -0
  342. package/script/src/api/info/_methods/candleSnapshot.d.ts +10 -10
  343. package/script/src/api/info/_methods/clearinghouseState.d.ts +25 -25
  344. package/script/src/api/info/_methods/clearinghouseState.js +3 -3
  345. package/script/src/api/info/_methods/clearinghouseState.js.map +1 -1
  346. package/script/src/api/info/_methods/delegations.d.ts +2 -2
  347. package/script/src/api/info/_methods/delegatorHistory.d.ts +4 -4
  348. package/script/src/api/info/_methods/delegatorRewards.d.ts +2 -2
  349. package/script/src/api/info/_methods/delegatorSummary.d.ts +4 -4
  350. package/script/src/api/info/_methods/exchangeStatus.d.ts +1 -1
  351. package/script/src/api/info/_methods/extraAgents.d.ts +1 -1
  352. package/script/src/api/info/_methods/frontendOpenOrders.d.ts +6 -6
  353. package/script/src/api/info/_methods/fundingHistory.d.ts +5 -5
  354. package/script/src/api/info/_methods/historicalOrders.d.ts +7 -7
  355. package/script/src/api/info/_methods/l2Book.d.ts +7 -7
  356. package/script/src/api/info/_methods/marginTable.d.ts +3 -3
  357. package/script/src/api/info/_methods/maxMarketOrderNtls.d.ts +1 -1
  358. package/script/src/api/info/_methods/maxMarketOrderNtls.d.ts.map +1 -1
  359. package/script/src/api/info/_methods/meta.d.ts +7 -7
  360. package/script/src/api/info/_methods/metaAndAssetCtxs.d.ts +16 -16
  361. package/script/src/api/info/_methods/openOrders.d.ts +5 -5
  362. package/script/src/api/info/_methods/orderStatus.d.ts +8 -8
  363. package/script/src/api/info/_methods/perpDeployAuctionStatus.d.ts +5 -5
  364. package/script/src/api/info/_methods/perpDexLimits.d.ts +4 -4
  365. package/script/src/api/info/_methods/perpDexStatus.d.ts +1 -1
  366. package/script/src/api/info/_methods/perpDexs.d.ts +6 -2
  367. package/script/src/api/info/_methods/perpDexs.d.ts.map +1 -1
  368. package/script/src/api/info/_methods/perpDexs.js +3 -1
  369. package/script/src/api/info/_methods/perpDexs.js.map +1 -1
  370. package/script/src/api/info/_methods/portfolio.d.ts +24 -24
  371. package/script/src/api/info/_methods/preTransferCheck.d.ts +1 -1
  372. package/script/src/api/info/_methods/predictedFundings.d.ts +3 -3
  373. package/script/src/api/info/_methods/recentTrades.d.ts +4 -4
  374. package/script/src/api/info/_methods/referral.d.ts +23 -23
  375. package/script/src/api/info/_methods/spotClearinghouseState.d.ts +6 -6
  376. package/script/src/api/info/_methods/spotDeployState.d.ts +15 -15
  377. package/script/src/api/info/_methods/spotMeta.d.ts +43 -7
  378. package/script/src/api/info/_methods/spotMeta.d.ts.map +1 -1
  379. package/script/src/api/info/_methods/spotMeta.js +16 -0
  380. package/script/src/api/info/_methods/spotMeta.js.map +1 -1
  381. package/script/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +52 -14
  382. package/script/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts.map +1 -1
  383. package/script/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts +5 -5
  384. package/script/src/api/info/_methods/subAccounts.d.ts +31 -31
  385. package/script/src/api/info/_methods/subAccounts2.d.ts +31 -31
  386. package/script/src/api/info/_methods/tokenDetails.d.ts +12 -12
  387. package/script/src/api/info/_methods/twapHistory.d.ts +7 -7
  388. package/script/src/api/info/_methods/txDetails.d.ts +2 -2
  389. package/script/src/api/info/_methods/userBorrowLendInterest.d.ts +73 -0
  390. package/script/src/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -0
  391. package/script/src/api/info/_methods/userBorrowLendInterest.js +109 -0
  392. package/script/src/api/info/_methods/userBorrowLendInterest.js.map +1 -0
  393. package/script/src/api/info/_methods/userDetails.d.ts +2 -2
  394. package/script/src/api/info/_methods/userFees.d.ts +25 -25
  395. package/script/src/api/info/_methods/userFills.d.ts +10 -10
  396. package/script/src/api/info/_methods/userFillsByTime.d.ts +12 -12
  397. package/script/src/api/info/_methods/userFunding.d.ts +9 -9
  398. package/script/src/api/info/_methods/userFunding.js +2 -2
  399. package/script/src/api/info/_methods/userFunding.js.map +1 -1
  400. package/script/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts +93 -36
  401. package/script/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
  402. package/script/src/api/info/_methods/userNonFundingLedgerUpdates.js +33 -0
  403. package/script/src/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
  404. package/script/src/api/info/_methods/userRateLimit.d.ts +4 -4
  405. package/script/src/api/info/_methods/userToMultiSigSigners.d.ts +1 -1
  406. package/script/src/api/info/_methods/userTwapSliceFills.d.ts +10 -10
  407. package/script/src/api/info/_methods/userTwapSliceFillsByTime.d.ts +12 -12
  408. package/script/src/api/info/_methods/userVaultEquities.d.ts +2 -2
  409. package/script/src/api/info/_methods/validatorL1Votes.d.ts +1 -1
  410. package/script/src/api/info/_methods/validatorSummaries.d.ts +9 -9
  411. package/script/src/api/info/_methods/vaultDetails.d.ts +36 -36
  412. package/script/src/api/info/_methods/vaultSummaries.d.ts +2 -2
  413. package/script/src/api/info/_methods/webData2.d.ts +70 -70
  414. package/script/src/api/info/client.d.ts +16 -0
  415. package/script/src/api/info/client.d.ts.map +1 -1
  416. package/script/src/api/info/client.js +20 -0
  417. package/script/src/api/info/client.js.map +1 -1
  418. package/script/src/api/info/mod.d.ts +4 -0
  419. package/script/src/api/info/mod.d.ts.map +1 -1
  420. package/script/src/api/info/mod.js +4 -0
  421. package/script/src/api/info/mod.js.map +1 -1
  422. package/script/src/api/subscription/_methods/activeAssetCtx.d.ts +9 -9
  423. package/script/src/api/subscription/_methods/activeAssetData.d.ts +6 -6
  424. package/script/src/api/subscription/_methods/activeSpotAssetCtx.d.ts +7 -7
  425. package/script/src/api/subscription/_methods/allDexsAssetCtxs.d.ts +9 -9
  426. package/script/src/api/subscription/_methods/allDexsClearinghouseState.d.ts +25 -25
  427. package/script/src/api/subscription/_methods/allMids.d.ts +1 -1
  428. package/script/src/api/subscription/_methods/assetCtxs.d.ts +11 -9
  429. package/script/src/api/subscription/_methods/assetCtxs.d.ts.map +1 -1
  430. package/script/src/api/subscription/_methods/assetCtxs.js.map +1 -1
  431. package/script/src/api/subscription/_methods/bbo.d.ts +7 -7
  432. package/script/src/api/subscription/_methods/candle.d.ts +8 -8
  433. package/script/src/api/subscription/_methods/clearinghouseState.d.ts +27 -25
  434. package/script/src/api/subscription/_methods/clearinghouseState.d.ts.map +1 -1
  435. package/script/src/api/subscription/_methods/clearinghouseState.js +2 -0
  436. package/script/src/api/subscription/_methods/clearinghouseState.js.map +1 -1
  437. package/script/src/api/subscription/_methods/explorerBlock.d.ts +5 -3
  438. package/script/src/api/subscription/_methods/explorerBlock.d.ts.map +1 -1
  439. package/script/src/api/subscription/_methods/explorerBlock.js +2 -0
  440. package/script/src/api/subscription/_methods/explorerBlock.js.map +1 -1
  441. package/script/src/api/subscription/_methods/explorerTxs.d.ts +4 -2
  442. package/script/src/api/subscription/_methods/explorerTxs.d.ts.map +1 -1
  443. package/script/src/api/subscription/_methods/explorerTxs.js +2 -0
  444. package/script/src/api/subscription/_methods/explorerTxs.js.map +1 -1
  445. package/script/src/api/subscription/_methods/l2Book.d.ts +9 -9
  446. package/script/src/api/subscription/_methods/openOrders.d.ts +6 -6
  447. package/script/src/api/subscription/_methods/orderUpdates.d.ts +6 -6
  448. package/script/src/api/subscription/_methods/spotAssetCtxs.d.ts +7 -7
  449. package/script/src/api/subscription/_methods/spotState.d.ts +6 -6
  450. package/script/src/api/subscription/_methods/trades.d.ts +4 -4
  451. package/script/src/api/subscription/_methods/twapStates.d.ts +11 -6
  452. package/script/src/api/subscription/_methods/twapStates.d.ts.map +1 -1
  453. package/script/src/api/subscription/_methods/twapStates.js +6 -1
  454. package/script/src/api/subscription/_methods/twapStates.js.map +1 -1
  455. package/script/src/api/subscription/_methods/userEvents.d.ts +35 -35
  456. package/script/src/api/subscription/_methods/userFills.d.ts +10 -10
  457. package/script/src/api/subscription/_methods/userFundings.d.ts +5 -5
  458. package/script/src/api/subscription/_methods/userHistoricalOrders.d.ts +7 -7
  459. package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts +109 -34
  460. package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
  461. package/script/src/api/subscription/_methods/userTwapHistory.d.ts +7 -7
  462. package/script/src/api/subscription/_methods/userTwapSliceFills.d.ts +10 -10
  463. package/script/src/api/subscription/_methods/webData2.d.ts +70 -70
  464. package/script/src/api/subscription/_methods/webData3.d.ts +4 -4
  465. package/script/src/signing/mod.js +2 -2
  466. package/script/src/signing/mod.js.map +1 -1
  467. package/src/bin/cli.ts +10 -0
  468. package/src/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.ts +147 -0
  469. package/src/src/api/_schemas.ts +4 -0
  470. package/src/src/api/exchange/_methods/_base/_nonce.ts +3 -2
  471. package/src/src/api/exchange/_methods/_base/_semaphore.ts +34 -59
  472. package/src/src/api/exchange/_methods/_base/execute.ts +3 -3
  473. package/src/src/api/exchange/_methods/approveAgent.ts +25 -5
  474. package/src/src/api/exchange/_methods/borrowLend.ts +133 -0
  475. package/src/src/api/exchange/_methods/order.ts +5 -3
  476. package/src/src/api/exchange/_methods/userPortfolioMargin.ts +156 -0
  477. package/src/src/api/exchange/client.ts +34 -0
  478. package/src/src/api/exchange/mod.ts +2 -0
  479. package/src/src/api/info/_methods/activeAssetData.ts +2 -2
  480. package/src/src/api/info/_methods/allBorrowLendReserveStates.ts +82 -0
  481. package/src/src/api/info/_methods/borrowLendReserveState.ts +131 -0
  482. package/src/src/api/info/_methods/borrowLendUserState.ts +144 -0
  483. package/src/src/api/info/_methods/clearinghouseState.ts +3 -3
  484. package/src/src/api/info/_methods/perpDexs.ts +6 -1
  485. package/src/src/api/info/_methods/spotMeta.ts +41 -0
  486. package/src/src/api/info/_methods/userBorrowLendInterest.ts +122 -0
  487. package/src/src/api/info/_methods/userFunding.ts +2 -2
  488. package/src/src/api/info/_methods/userNonFundingLedgerUpdates.ts +69 -0
  489. package/src/src/api/info/client.ts +60 -0
  490. package/src/src/api/info/mod.ts +4 -0
  491. package/src/src/api/subscription/_methods/assetCtxs.ts +2 -0
  492. package/src/src/api/subscription/_methods/clearinghouseState.ts +2 -0
  493. package/src/src/api/subscription/_methods/explorerBlock.ts +2 -0
  494. package/src/src/api/subscription/_methods/explorerTxs.ts +2 -0
  495. package/src/src/api/subscription/_methods/twapStates.ts +9 -1
  496. package/src/src/signing/mod.ts +1 -1
  497. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts +0 -21
  498. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts.map +0 -1
  499. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.js +0 -292
  500. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.js.map +0 -1
  501. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts +0 -44
  502. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts.map +0 -1
  503. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.js +0 -46
  504. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.js.map +0 -1
  505. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts +0 -21
  506. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts.map +0 -1
  507. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.js +0 -295
  508. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.js.map +0 -1
  509. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts +0 -44
  510. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts.map +0 -1
  511. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.js +0 -62
  512. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.js.map +0 -1
  513. package/src/deps/jsr.io/@std/msgpack/1.0.3/decode.ts +0 -391
  514. package/src/deps/jsr.io/@std/msgpack/1.0.3/mod.ts +0 -47
@@ -14,10 +14,10 @@ export type WebData2Request = v.InferOutput<typeof WebData2Request>;
14
14
  export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
15
15
  readonly clearinghouseState: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
16
16
  readonly marginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
17
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
18
- readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
19
- readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
20
- readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
17
+ readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
18
+ readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
19
+ readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
20
+ readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
21
21
  }, undefined>, v.DescriptionAction<{
22
22
  accountValue: string;
23
23
  totalNtlPos: string;
@@ -25,30 +25,30 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
25
25
  totalMarginUsed: string;
26
26
  }, "Margin summary details.">]>;
27
27
  readonly crossMarginSummary: v.SchemaWithPipe<readonly [v.ObjectSchema<{
28
- readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
29
- readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
30
- readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
31
- readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
28
+ readonly accountValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total account value.">]>;
29
+ readonly totalNtlPos: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total notional position value.">]>;
30
+ readonly totalRawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total raw USD value.">]>;
31
+ readonly totalMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total margin used.">]>;
32
32
  }, undefined>, v.DescriptionAction<{
33
33
  accountValue: string;
34
34
  totalNtlPos: string;
35
35
  totalRawUsd: string;
36
36
  totalMarginUsed: string;
37
37
  }, "Cross-margin summary details.">]>;
38
- readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
39
- readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
38
+ readonly crossMaintenanceMarginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Maintenance margin used for cross-margin positions.">]>;
39
+ readonly withdrawable: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount available for withdrawal.">]>;
40
40
  readonly assetPositions: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
41
41
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"oneWay", undefined>, v.DescriptionAction<"oneWay", "Position type.">]>;
42
42
  readonly position: v.SchemaWithPipe<readonly [v.ObjectSchema<{
43
43
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
44
- readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Signed position size.">]>;
44
+ readonly szi: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Signed position size.">]>;
45
45
  readonly leverage: v.SchemaWithPipe<readonly [v.VariantSchema<"type", [v.ObjectSchema<{
46
46
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"isolated", undefined>, v.DescriptionAction<"isolated", "Leverage type.">]>;
47
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
48
- readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount of USD used (1 = $1).">]>;
47
+ readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
48
+ readonly rawUsd: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount of USD used (1 = $1).">]>;
49
49
  }, undefined>, v.ObjectSchema<{
50
50
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"cross", undefined>, v.DescriptionAction<"cross", "Leverage type.">]>;
51
- readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
51
+ readonly value: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Leverage value used.">]>;
52
52
  }, undefined>], undefined>, v.DescriptionAction<{
53
53
  type: "isolated";
54
54
  value: number;
@@ -57,17 +57,17 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
57
57
  type: "cross";
58
58
  value: number;
59
59
  }, "Leverage details.">]>;
60
- readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Average entry price.">]>;
61
- readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Position value.">]>;
62
- readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
63
- readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Return on equity.">]>;
64
- readonly liquidationPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
65
- readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Margin used.">]>;
66
- readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
60
+ readonly entryPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Average entry price.">]>;
61
+ readonly positionValue: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Position value.">]>;
62
+ readonly unrealizedPnl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Unrealized profit and loss.">]>;
63
+ readonly returnOnEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Return on equity.">]>;
64
+ readonly liquidationPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Liquidation price.">]>;
65
+ readonly marginUsed: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Margin used.">]>;
66
+ readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
67
67
  readonly cumFunding: v.SchemaWithPipe<readonly [v.ObjectSchema<{
68
- readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
69
- readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
70
- readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
68
+ readonly allTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total funding paid or received since account opening.">]>;
69
+ readonly sinceOpen: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the position was opened.">]>;
70
+ readonly sinceChange: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding accumulated since the last change in position size.">]>;
71
71
  }, undefined>, v.DescriptionAction<{
72
72
  allTime: string;
73
73
  sinceOpen: string;
@@ -124,7 +124,7 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
124
124
  };
125
125
  };
126
126
  }[], "Array of asset positions.">]>;
127
- readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when data was retrieved (in ms since epoch).">]>;
127
+ readonly time: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when data was retrieved (in ms since epoch).">]>;
128
128
  }, undefined>, v.DescriptionAction<{
129
129
  marginSummary: {
130
130
  accountValue: string;
@@ -222,18 +222,18 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
222
222
  address: `0x${string}`;
223
223
  name: string;
224
224
  }[], "Array of leading vaults for a user.">]>;
225
- readonly totalVaultEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total equity in vaults.">]>;
225
+ readonly totalVaultEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total equity in vaults.">]>;
226
226
  readonly openOrders: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
227
227
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
228
228
  readonly side: v.SchemaWithPipe<readonly [v.PicklistSchema<["B", "A"], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
229
- readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Limit price.">]>;
230
- readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Size.">]>;
231
- readonly oid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Order ID.">]>;
232
- readonly timestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the order was placed (in ms since epoch).">]>;
233
- readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
229
+ readonly limitPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Limit price.">]>;
230
+ readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Size.">]>;
231
+ readonly oid: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Order ID.">]>;
232
+ readonly timestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Timestamp when the order was placed (in ms since epoch).">]>;
233
+ readonly origSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Original size at order placement.">]>;
234
234
  readonly triggerCondition: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Condition for triggering the order.">]>;
235
235
  readonly isTrigger: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a trigger order.">]>;
236
- readonly triggerPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Trigger price.">]>;
236
+ readonly triggerPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Trigger price.">]>;
237
237
  readonly children: v.SchemaWithPipe<readonly [v.ArraySchema<v.UnknownSchema, undefined>, v.DescriptionAction<unknown[], "Child orders associated with this order.">]>;
238
238
  readonly isPositionTpsl: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is a position TP/SL order.">]>;
239
239
  readonly reduceOnly: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates whether the order is reduce-only.">]>;
@@ -293,14 +293,14 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
293
293
  cloid: `0x${string}` | null;
294
294
  }[], "Array of open orders with additional display information.">]>;
295
295
  readonly agentAddress: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | null, "Agent address if one exists.">]>;
296
- readonly agentValidUntil: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.DescriptionAction<number | null, "Timestamp until which the agent is valid.">]>;
297
- readonly cumLedger: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Cumulative ledger value.">]>;
296
+ readonly agentValidUntil: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.DescriptionAction<number | null, "Timestamp until which the agent is valid.">]>;
297
+ readonly cumLedger: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Cumulative ledger value.">]>;
298
298
  readonly meta: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
299
299
  readonly universe: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
300
- readonly szDecimals: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Minimum decimal places for order sizes.">]>;
300
+ readonly szDecimals: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Minimum decimal places for order sizes.">]>;
301
301
  readonly name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the universe.">]>;
302
- readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
303
- readonly marginTableId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the margin requirements table.">]>;
302
+ readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage.">]>;
303
+ readonly marginTableId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the margin requirements table.">]>;
304
304
  readonly onlyIsolated: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if only isolated margin trading is allowed.">]>;
305
305
  readonly isDelisted: v.SchemaWithPipe<readonly [v.OptionalSchema<v.LiteralSchema<true, undefined>, undefined>, v.DescriptionAction<true | undefined, "Indicates if the universe is delisted.">]>;
306
306
  readonly marginMode: v.SchemaWithPipe<readonly [v.OptionalSchema<v.PicklistSchema<["strictIsolated", "noCross"], undefined>, undefined>, v.DescriptionAction<"strictIsolated" | "noCross" | undefined, "Trading margin mode constraint.">]>;
@@ -317,11 +317,11 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
317
317
  growthMode?: "enabled" | undefined;
318
318
  lastGrowthModeChangeTime?: string | undefined;
319
319
  }[], "Trading universes available for perpetual trading.">]>;
320
- readonly marginTables: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
320
+ readonly marginTables: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
321
321
  readonly description: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Description of the margin table.">]>;
322
322
  readonly marginTiers: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
323
- readonly lowerBound: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Lower position size boundary for this tier.">]>;
324
- readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage for this tier.">]>;
323
+ readonly lowerBound: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Lower position size boundary for this tier.">]>;
324
+ readonly maxLeverage: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.MinValueAction<number, 1, undefined>, v.DescriptionAction<number, "Maximum allowed leverage for this tier.">]>;
325
325
  }, undefined>, undefined>, v.DescriptionAction<{
326
326
  lowerBound: string;
327
327
  maxLeverage: number;
@@ -339,7 +339,7 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
339
339
  maxLeverage: number;
340
340
  }[];
341
341
  }][], "Margin requirement tables for different leverage tiers.">]>;
342
- readonly collateralToken: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Collateral token index.">]>;
342
+ readonly collateralToken: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Collateral token index.">]>;
343
343
  }, undefined>, v.DescriptionAction<{
344
344
  universe: {
345
345
  szDecimals: number;
@@ -382,16 +382,16 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
382
382
  collateralToken: number;
383
383
  }, "Metadata for perpetual assets.">]>;
384
384
  readonly assetCtxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
385
- readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
386
- readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
387
- readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Mark price.">]>;
388
- readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
389
- readonly funding: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding rate.">]>;
390
- readonly openInterest: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total open interest.">]>;
391
- readonly premium: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Premium price.">]>;
392
- readonly oraclePx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Oracle price.">]>;
385
+ readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
386
+ readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
387
+ readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Mark price.">]>;
388
+ readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
389
+ readonly funding: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Funding rate.">]>;
390
+ readonly openInterest: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total open interest.">]>;
391
+ readonly premium: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Premium price.">]>;
392
+ readonly oraclePx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Oracle price.">]>;
393
393
  readonly impactPxs: v.SchemaWithPipe<readonly [v.NullableSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>, v.DescriptionAction<string[] | null, "Array of impact prices.">]>;
394
- readonly dayBaseVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Daily volume in base currency.">]>;
394
+ readonly dayBaseVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Daily volume in base currency.">]>;
395
395
  }, undefined>, v.DescriptionAction<{
396
396
  prevDayPx: string;
397
397
  dayNtlVlm: string;
@@ -415,19 +415,19 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
415
415
  impactPxs: string[] | null;
416
416
  dayBaseVlm: string;
417
417
  }[], "Array of contexts for each perpetual asset.">]>;
418
- readonly serverTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Server timestamp (in ms since epoch).">]>;
418
+ readonly serverTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Server timestamp (in ms since epoch).">]>;
419
419
  readonly isVault: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether this account is a vault.">]>;
420
420
  readonly user: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "User address.">]>;
421
- readonly twapStates: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
421
+ readonly twapStates: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
422
422
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
423
- readonly executedNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Executed notional value.">]>;
424
- readonly executedSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Executed size.">]>;
425
- readonly minutes: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Duration in minutes.">]>;
423
+ readonly executedNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Executed notional value.">]>;
424
+ readonly executedSz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Executed size.">]>;
425
+ readonly minutes: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Duration in minutes.">]>;
426
426
  readonly randomize: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the TWAP randomizes execution.">]>;
427
427
  readonly reduceOnly: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Indicates if the order is reduce-only.">]>;
428
428
  readonly side: v.SchemaWithPipe<readonly [v.PicklistSchema<["B", "A"], undefined>, v.DescriptionAction<"B" | "A", "Order side (\"B\" = Bid/Buy, \"A\" = Ask/Sell).">]>;
429
- readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Order size.">]>;
430
- readonly timestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Start time of the TWAP order (in ms since epoch).">]>;
429
+ readonly sz: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Order size.">]>;
430
+ readonly timestamp: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Start time of the TWAP order (in ms since epoch).">]>;
431
431
  readonly user: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "User address.">]>;
432
432
  }, undefined>, v.DescriptionAction<{
433
433
  coin: string;
@@ -455,10 +455,10 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
455
455
  readonly spotState: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
456
456
  readonly balances: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
457
457
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
458
- readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
459
- readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total balance.">]>;
460
- readonly hold: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount on hold.">]>;
461
- readonly entryNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Entry notional value.">]>;
458
+ readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
459
+ readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total balance.">]>;
460
+ readonly hold: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Amount on hold.">]>;
461
+ readonly entryNtl: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Entry notional value.">]>;
462
462
  }, undefined>, undefined>, v.DescriptionAction<{
463
463
  coin: string;
464
464
  token: number;
@@ -468,8 +468,8 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
468
468
  }[], "Array of available token balances.">]>;
469
469
  readonly evmEscrows: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
470
470
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
471
- readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
472
- readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total balance.">]>;
471
+ readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique identifier for the token.">]>;
472
+ readonly total: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total balance.">]>;
473
473
  }, undefined>, undefined>, undefined>, v.DescriptionAction<{
474
474
  coin: string;
475
475
  token: number;
@@ -503,14 +503,14 @@ export declare const WebData2Event: v.SchemaWithPipe<readonly [v.SchemaWithPipe<
503
503
  }[] | undefined;
504
504
  } | undefined, "Account summary for spot trading.">]>;
505
505
  readonly spotAssetCtxs: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
506
- readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
507
- readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
508
- readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Mark price.">]>;
509
- readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
510
- readonly circulatingSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Circulating supply.">]>;
506
+ readonly prevDayPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Previous day's closing price.">]>;
507
+ readonly dayNtlVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Daily notional volume.">]>;
508
+ readonly markPx: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Mark price.">]>;
509
+ readonly midPx: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, undefined>, v.DescriptionAction<string | null, "Mid price.">]>;
510
+ readonly circulatingSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Circulating supply.">]>;
511
511
  readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Asset symbol.">]>;
512
- readonly totalSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total supply.">]>;
513
- readonly dayBaseVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Daily volume in base currency.">]>;
512
+ readonly totalSupply: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total supply.">]>;
513
+ readonly dayBaseVlm: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Daily volume in base currency.">]>;
514
514
  }, undefined>, v.DescriptionAction<{
515
515
  prevDayPx: string;
516
516
  dayNtlVlm: string;
@@ -17,11 +17,11 @@ export declare const WebData3Event: v.SchemaWithPipe<readonly [v.ObjectSchema<{
17
17
  /** Agent address if one exists. */
18
18
  readonly agentAddress: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, undefined>, v.DescriptionAction<`0x${string}` | null, "Agent address if one exists.">]>;
19
19
  /** Timestamp until which the agent is valid. */
20
- readonly agentValidUntil: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.DescriptionAction<number | null, "Timestamp until which the agent is valid.">]>;
20
+ readonly agentValidUntil: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.DescriptionAction<number | null, "Timestamp until which the agent is valid.">]>;
21
21
  /** Cumulative ledger value. */
22
- readonly cumLedger: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Cumulative ledger value.">]>;
22
+ readonly cumLedger: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Cumulative ledger value.">]>;
23
23
  /** Server timestamp (in ms since epoch). */
24
- readonly serverTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Server timestamp (in ms since epoch).">]>;
24
+ readonly serverTime: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Server timestamp (in ms since epoch).">]>;
25
25
  /** Whether this account is a vault. */
26
26
  readonly isVault: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether this account is a vault.">]>;
27
27
  /** User address. */
@@ -46,7 +46,7 @@ export declare const WebData3Event: v.SchemaWithPipe<readonly [v.ObjectSchema<{
46
46
  /** Array of perpetual DEX states. */
47
47
  readonly perpDexStates: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
48
48
  /** Total equity in vaults. */
49
- readonly totalVaultEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total equity in vaults.">]>;
49
+ readonly totalVaultEquity: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>, v.DescriptionAction<string, "Total equity in vaults.">]>;
50
50
  /** Assets currently at their open interest cap. */
51
51
  readonly perpsAtOpenInterestCap: v.SchemaWithPipe<readonly [v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.DescriptionAction<string[], "Array of perpetuals at open interest caps.">]>, undefined>, v.DescriptionAction<string[] | undefined, "Assets currently at their open interest cap.">]>;
52
52
  /** Array of leading vaults. */
@@ -62,7 +62,7 @@
62
62
  */
63
63
  import { keccak_256 } from "@noble/hashes/sha3.js";
64
64
  import { bytesToHex, concatBytes, hexToBytes } from "@noble/hashes/utils.js";
65
- import { encode as encodeMsgpack } from "../../deps/jsr.io/@std/msgpack/1.0.3/mod.js";
65
+ import { encode as encodeMsgpack } from "../../deps/jsr.io/@std/msgpack/1.0.3/encode.js";
66
66
  import { signTypedData } from "./_abstractWallet.js";
67
67
  export { AbstractWalletError, getWalletAddress, getWalletChainId, } from "./_abstractWallet.js";
68
68
  export { PrivateKeySigner } from "./_privateKeySigner.js";
@@ -1 +1 @@
1
- {"version":3,"file":"mod.js","sourceRoot":"","sources":["../../../src/src/signing/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAC7E,OAAO,EAAE,MAAM,IAAI,aAAa,EAAkB,MAAM,6CAA6C,CAAC;AACtG,OAAO,EAAuC,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1F,OAAO,EAML,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,GAEjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,kBAAkB,CAAC,IASlC;IACC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,GAAG,IAAI,CAAC;IAE3D,YAAY;IACZ,MAAM,WAAW,GAAG,aAAa,CAC/B,gBAAgB,CACd,mBAAmB,CAAC,MAAmB,CAAC,CACzC,CACF,CAAC;IAEF,WAAW;IACX,MAAM,UAAU,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAExC,mBAAmB;IACnB,MAAM,WAAW,GAAG,YAAY,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,CAA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CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nktkas/hyperliquid",
3
- "version": "0.30.0",
3
+ "version": "0.30.3",
4
4
  "description": "Hyperliquid API SDK for all major JS runtimes, written in TypeScript.",
5
5
  "keywords": [
6
6
  "api",
@@ -67,7 +67,7 @@
67
67
  "node": ">=20.19.0"
68
68
  },
69
69
  "dependencies": {
70
- "@nktkas/rews": "^1.2.2",
70
+ "@nktkas/rews": "^1.2.3",
71
71
  "@noble/hashes": "^2.0.1",
72
72
  "micro-eth-signer": "^0.18.1",
73
73
  "valibot": "1.2.0"
package/script/bin/cli.js CHANGED
@@ -191,6 +191,12 @@ Deploy Market:
191
191
  spotDeployState --user <address>
192
192
  spotPairDeployAuctionStatus (no params)
193
193
 
194
+ Earn:
195
+ allBorrowLendReserveStates (no params)
196
+ borrowLendReserveState --token <number>
197
+ borrowLendUserState --user <address>
198
+ userBorrowLendInterest --user <address> --startTime <number> [--endTime <number>]
199
+
194
200
  Other:
195
201
  exchangeStatus (no params)
196
202
 
@@ -226,6 +232,7 @@ Account:
226
232
  setDisplayName --displayName <string>
227
233
  spotUser --optOut <bool>
228
234
  userDexAbstraction --user <address> --enabled <bool>
235
+ userPortfolioMargin --user <address> --enabled <bool>
229
236
 
230
237
  Fund Transfers:
231
238
  sendAsset --destination <address> --token <name:address> --amount <number>
@@ -269,6 +276,9 @@ Validator Actions:
269
276
  cValidatorAction --<action> <json>
270
277
  validatorL1Stream --riskFreeRate <number>
271
278
 
279
+ Earn:
280
+ borrowLend --operation <supply|withdraw> --token <number> --amount <number|null>
281
+
272
282
  Other:
273
283
  convertToMultiSigUser --authorizedUsers <json> --threshold <number>
274
284
 
@@ -1 +1 @@
1
- {"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/bin/cli.ts"],"names":[],"mappings":";;AACA,mCAAmC;;;;;AAEnC;;;;;;;;;;;;;;;;;GAiBG;AAEH,wDAAwD;AACxD,gEAAmC;AACnC,2CAAoE;AACpE,0CAA0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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kIAmOoH,CAAC,CAAC;AACpI,CAAC;AAED,+DAA+D;AAC/D,QAAQ;AACR,+DAA+D;AAE/D,MAAM,OAAO,GAAG,IAAA,uBAAW,EAAC,sBAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE;IACjD,KAAK,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,CAAC;IAC1C,OAAO,EAAE,KAAK;CACf,CAAC,CAAC;AACH,MAAM,IAAI,GAAG,IAAA,yBAAa,EAAC,OAAO,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;AAC1D,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;AAClC,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,MAAM,EAAE,CAAC;IAChD,SAAS,EAAE,CAAC;AACd,CAAC;KAAM,CAAC;IACN,qBAAqB,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC;SAC1C,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;SACrD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;AAC5C,CAAC"}
@@ -0,0 +1,94 @@
1
+ /**
2
+ * A counting semaphore for limiting concurrent access to a resource.
3
+ *
4
+ * @experimental **UNSTABLE**: New API, yet to be vetted.
5
+ *
6
+ * @example Usage
7
+ * ```ts
8
+ * import { Semaphore } from "@std/async/unstable-semaphore";
9
+ *
10
+ * const sem = new Semaphore(2);
11
+ * {
12
+ * using _permit = await sem.acquire();
13
+ * // critical section
14
+ * } // permit is automatically released when exiting the block
15
+ * ```
16
+ */
17
+ export declare class Semaphore {
18
+ #private;
19
+ /**
20
+ * Creates a new semaphore with the specified number of permits.
21
+ *
22
+ * @param max Maximum concurrent permits. Defaults to 1 (mutex).
23
+ * @throws {TypeError} If `max` is not a positive integer.
24
+ */
25
+ constructor(max?: number);
26
+ /**
27
+ * Acquires a permit, waiting if none are available.
28
+ *
29
+ * @example Usage
30
+ * ```ts no-assert
31
+ * import { Semaphore } from "@std/async/unstable-semaphore";
32
+ *
33
+ * const sem = new Semaphore(1);
34
+ * await sem.acquire();
35
+ * try {
36
+ * // critical section
37
+ * } finally {
38
+ * sem.release();
39
+ * }
40
+ * ```
41
+ *
42
+ * @example Using `using` statement
43
+ * ```ts no-assert
44
+ * import { Semaphore } from "@std/async/unstable-semaphore";
45
+ *
46
+ * const sem = new Semaphore(1);
47
+ * {
48
+ * using _permit = await sem.acquire();
49
+ * // critical section
50
+ * } // permit is automatically released when exiting the block
51
+ * ```
52
+ *
53
+ * @returns A promise that resolves to a {@linkcode Disposable} when a permit is acquired.
54
+ */
55
+ acquire(): Promise<Disposable>;
56
+ /**
57
+ * Tries to acquire a permit without waiting.
58
+ *
59
+ * @example Usage
60
+ * ```ts no-assert
61
+ * import { Semaphore } from "@std/async/unstable-semaphore";
62
+ *
63
+ * const sem = new Semaphore(1);
64
+ * const permit = sem.tryAcquire();
65
+ * if (permit) {
66
+ * using _ = permit;
67
+ * // critical section
68
+ * } else {
69
+ * // resource is busy
70
+ * }
71
+ * ```
72
+ *
73
+ * @returns A {@linkcode Disposable} if a permit was acquired, `undefined` otherwise.
74
+ */
75
+ tryAcquire(): Disposable | undefined;
76
+ /**
77
+ * Releases a permit, allowing the next waiter to proceed.
78
+ *
79
+ * @example Usage
80
+ * ```ts no-assert
81
+ * import { Semaphore } from "@std/async/unstable-semaphore";
82
+ *
83
+ * const sem = new Semaphore(1);
84
+ * await sem.acquire();
85
+ * try {
86
+ * // critical section
87
+ * } finally {
88
+ * sem.release();
89
+ * }
90
+ * ```
91
+ */
92
+ release(): void;
93
+ }
94
+ //# sourceMappingURL=unstable_semaphore.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unstable_semaphore.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/async/1.1.0/unstable_semaphore.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,SAAS;;IASpB;;;;;OAKG;gBACS,GAAG,GAAE,MAAU;IAS3B;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC;IAgB9B;;;;;;;;;;;;;;;;;;OAkBG;IACH,UAAU,IAAI,UAAU,GAAG,SAAS;IAQpC;;;;;;;;;;;;;;;OAeG;IACH,OAAO,IAAI,IAAI;CAShB"}