@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
@@ -13,11 +13,11 @@ export declare const UsdClassTransferRequest: v.SchemaWithPipe<readonly [v.Objec
13
13
  /** HyperLiquid network type. */
14
14
  readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.PicklistSchema<["Mainnet", "Testnet"], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>;
15
15
  /** Amount to transfer (1 = $1). */
16
- readonly amount: 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 to transfer (1 = $1).">]>;
16
+ readonly amount: 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 to transfer (1 = $1).">]>;
17
17
  /** `true` for Spot to Perp, `false` for Perp to Spot. */
18
18
  readonly toPerp: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "`true` for Spot to Perp, `false` for Perp to Spot.">]>;
19
19
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
20
- readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
20
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
21
21
  }, undefined>, v.DescriptionAction<{
22
22
  type: "usdClassTransfer";
23
23
  signatureChainId: `0x${string}`;
@@ -27,7 +27,7 @@ export declare const UsdClassTransferRequest: v.SchemaWithPipe<readonly [v.Objec
27
27
  nonce: number;
28
28
  }, "Action to perform.">]>;
29
29
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
30
- readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
30
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
31
31
  /** ECDSA signature components. */
32
32
  readonly signature: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
33
33
  readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "First 32-byte component.">]>;
@@ -102,11 +102,11 @@ declare const UsdClassTransferParameters: Omit<v.ObjectSchema<{
102
102
  /** HyperLiquid network type. */
103
103
  readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.PicklistSchema<["Mainnet", "Testnet"], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>;
104
104
  /** Amount to transfer (1 = $1). */
105
- readonly amount: 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 to transfer (1 = $1).">]>;
105
+ readonly amount: 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 to transfer (1 = $1).">]>;
106
106
  /** `true` for Spot to Perp, `false` for Perp to Spot. */
107
107
  readonly toPerp: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "`true` for Spot to Perp, `false` for Perp to Spot.">]>;
108
108
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
109
- readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
109
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
110
110
  }, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
111
111
  readonly entries: Omit<{
112
112
  /** Type of action. */
@@ -116,11 +116,11 @@ declare const UsdClassTransferParameters: Omit<v.ObjectSchema<{
116
116
  /** HyperLiquid network type. */
117
117
  readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.PicklistSchema<["Mainnet", "Testnet"], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>;
118
118
  /** Amount to transfer (1 = $1). */
119
- readonly amount: 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 to transfer (1 = $1).">]>;
119
+ readonly amount: 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 to transfer (1 = $1).">]>;
120
120
  /** `true` for Spot to Perp, `false` for Perp to Spot. */
121
121
  readonly toPerp: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "`true` for Spot to Perp, `false` for Perp to Spot.">]>;
122
122
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
123
- readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
123
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
124
124
  }, "type" | "nonce" | "signatureChainId" | "hyperliquidChain">;
125
125
  readonly "~standard": v.StandardProps<{
126
126
  amount: string | number;
@@ -15,9 +15,9 @@ export declare const UsdSendRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<{
15
15
  /** Destination address. */
16
16
  readonly destination: 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}`, "Destination address.">]>;
17
17
  /** Amount to send (1 = $1). */
18
- readonly amount: 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 to send (1 = $1).">]>;
18
+ readonly amount: 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 to send (1 = $1).">]>;
19
19
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
20
- 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
20
+ 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
21
21
  }, undefined>, v.DescriptionAction<{
22
22
  type: "usdSend";
23
23
  signatureChainId: `0x${string}`;
@@ -27,7 +27,7 @@ export declare const UsdSendRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<{
27
27
  time: number;
28
28
  }, "Action to perform.">]>;
29
29
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
30
- readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
30
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
31
31
  /** ECDSA signature components. */
32
32
  readonly signature: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
33
33
  readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "First 32-byte component.">]>;
@@ -104,9 +104,9 @@ declare const UsdSendParameters: Omit<v.ObjectSchema<{
104
104
  /** Destination address. */
105
105
  readonly destination: 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}`, "Destination address.">]>;
106
106
  /** Amount to send (1 = $1). */
107
- readonly amount: 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 to send (1 = $1).">]>;
107
+ readonly amount: 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 to send (1 = $1).">]>;
108
108
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
109
- 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
109
+ 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
110
110
  }, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
111
111
  readonly entries: Omit<{
112
112
  /** Type of action. */
@@ -118,29 +118,29 @@ declare const UsdSendParameters: Omit<v.ObjectSchema<{
118
118
  /** Destination address. */
119
119
  readonly destination: 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}`, "Destination address.">]>;
120
120
  /** Amount to send (1 = $1). */
121
- readonly amount: 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 to send (1 = $1).">]>;
121
+ readonly amount: 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 to send (1 = $1).">]>;
122
122
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
123
- 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
123
+ 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
124
124
  }, "type" | "time" | "signatureChainId" | "hyperliquidChain">;
125
125
  readonly "~standard": v.StandardProps<{
126
- destination: string;
127
126
  amount: string | number;
127
+ destination: string;
128
128
  }, {
129
- destination: `0x${string}`;
130
129
  amount: string;
130
+ destination: `0x${string}`;
131
131
  }>;
132
132
  readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
133
- destination: `0x${string}`;
134
133
  amount: string;
134
+ destination: `0x${string}`;
135
135
  }, v.StringIssue | v.ObjectIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.LengthIssue<`0x${string}`, 42>>;
136
136
  readonly "~types"?: {
137
137
  readonly input: {
138
- destination: string;
139
138
  amount: string | number;
139
+ destination: string;
140
140
  };
141
141
  readonly output: {
142
- destination: `0x${string}`;
143
142
  amount: string;
143
+ destination: `0x${string}`;
144
144
  };
145
145
  readonly issue: v.StringIssue | v.ObjectIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.LengthIssue<`0x${string}`, 42>;
146
146
  } | undefined;
@@ -17,7 +17,7 @@ export declare const UserDexAbstractionRequest: v.SchemaWithPipe<readonly [v.Obj
17
17
  /** Whether to enable or disable HIP-3 DEX abstraction. */
18
18
  readonly enabled: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether to enable or disable HIP-3 DEX abstraction.">]>;
19
19
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
20
- readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
20
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
21
21
  }, undefined>, v.DescriptionAction<{
22
22
  type: "userDexAbstraction";
23
23
  signatureChainId: `0x${string}`;
@@ -27,7 +27,7 @@ export declare const UserDexAbstractionRequest: v.SchemaWithPipe<readonly [v.Obj
27
27
  nonce: number;
28
28
  }, "Action to perform.">]>;
29
29
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
30
- readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
30
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
31
31
  /** ECDSA signature components. */
32
32
  readonly signature: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
33
33
  readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "First 32-byte component.">]>;
@@ -106,7 +106,7 @@ declare const UserDexAbstractionParameters: Omit<v.ObjectSchema<{
106
106
  /** Whether to enable or disable HIP-3 DEX abstraction. */
107
107
  readonly enabled: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether to enable or disable HIP-3 DEX abstraction.">]>;
108
108
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
109
- readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
109
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
110
110
  }, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
111
111
  readonly entries: Omit<{
112
112
  /** Type of action. */
@@ -120,7 +120,7 @@ declare const UserDexAbstractionParameters: Omit<v.ObjectSchema<{
120
120
  /** Whether to enable or disable HIP-3 DEX abstraction. */
121
121
  readonly enabled: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether to enable or disable HIP-3 DEX abstraction.">]>;
122
122
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
123
- readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
123
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
124
124
  }, "type" | "nonce" | "signatureChainId" | "hyperliquidChain">;
125
125
  readonly "~standard": v.StandardProps<{
126
126
  user: string;
@@ -0,0 +1,193 @@
1
+ import * as v from "valibot";
2
+ /**
3
+ * Enable/disable user portfolio margin.
4
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin
5
+ */
6
+ export declare const UserPortfolioMarginRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<{
7
+ /** Action to perform. */
8
+ readonly action: v.SchemaWithPipe<readonly [v.ObjectSchema<{
9
+ /** Type of action. */
10
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"userPortfolioMargin", undefined>, v.DescriptionAction<"userPortfolioMargin", "Type of action.">]>;
11
+ /** Chain ID in hex format for EIP-712 signing. */
12
+ readonly signatureChainId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Chain ID in hex format for EIP-712 signing.">]>;
13
+ /** HyperLiquid network type. */
14
+ readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.PicklistSchema<["Mainnet", "Testnet"], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>;
15
+ /** User address. */
16
+ 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.">]>;
17
+ /** Whether to enable or disable user portfolio margin. */
18
+ readonly enabled: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether to enable or disable user portfolio margin.">]>;
19
+ /** Nonce (timestamp in ms) used to prevent replay attacks. */
20
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
21
+ }, undefined>, v.DescriptionAction<{
22
+ type: "userPortfolioMargin";
23
+ signatureChainId: `0x${string}`;
24
+ hyperliquidChain: "Testnet" | "Mainnet";
25
+ user: `0x${string}`;
26
+ enabled: boolean;
27
+ nonce: number;
28
+ }, "Action to perform.">]>;
29
+ /** Nonce (timestamp in ms) used to prevent replay attacks. */
30
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
31
+ /** ECDSA signature components. */
32
+ readonly signature: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
33
+ readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "First 32-byte component.">]>;
34
+ readonly s: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "Second 32-byte component.">]>;
35
+ readonly v: v.SchemaWithPipe<readonly [v.PicklistSchema<[27, 28], undefined>, v.DescriptionAction<27 | 28, "Recovery identifier.">]>;
36
+ }, undefined>, v.DescriptionAction<{
37
+ r: `0x${string}`;
38
+ s: `0x${string}`;
39
+ v: 27 | 28;
40
+ }, "ECDSA signature components.">]>, v.DescriptionAction<{
41
+ r: `0x${string}`;
42
+ s: `0x${string}`;
43
+ v: 27 | 28;
44
+ }, "ECDSA signature components.">]>;
45
+ }, undefined>, v.DescriptionAction<{
46
+ action: {
47
+ type: "userPortfolioMargin";
48
+ signatureChainId: `0x${string}`;
49
+ hyperliquidChain: "Testnet" | "Mainnet";
50
+ user: `0x${string}`;
51
+ enabled: boolean;
52
+ nonce: number;
53
+ };
54
+ nonce: number;
55
+ signature: {
56
+ r: `0x${string}`;
57
+ s: `0x${string}`;
58
+ v: 27 | 28;
59
+ };
60
+ }, "Enable/disable user portfolio margin.">]>;
61
+ export type UserPortfolioMarginRequest = v.InferOutput<typeof UserPortfolioMarginRequest>;
62
+ /**
63
+ * Successful response without specific data or error response.
64
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin
65
+ */
66
+ export declare const UserPortfolioMarginResponse: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
67
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"ok", undefined>, v.DescriptionAction<"ok", "Successful status.">]>;
68
+ readonly response: v.SchemaWithPipe<readonly [v.ObjectSchema<{
69
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"default", undefined>, v.DescriptionAction<"default", "Type of response.">]>;
70
+ }, undefined>, v.DescriptionAction<{
71
+ type: "default";
72
+ }, "Response details.">]>;
73
+ }, undefined>, v.DescriptionAction<{
74
+ status: "ok";
75
+ response: {
76
+ type: "default";
77
+ };
78
+ }, "Successful response without specific data.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
79
+ readonly status: v.SchemaWithPipe<readonly [v.LiteralSchema<"err", undefined>, v.DescriptionAction<"err", "Error status.">]>;
80
+ readonly response: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Error message.">]>;
81
+ }, undefined>, v.DescriptionAction<{
82
+ status: "err";
83
+ response: string;
84
+ }, "Error response for failed operations.">]>], undefined>, v.DescriptionAction<{
85
+ status: "err";
86
+ response: string;
87
+ } | {
88
+ status: "ok";
89
+ response: {
90
+ type: "default";
91
+ };
92
+ }, "Successful response without specific data or error response.">]>;
93
+ export type UserPortfolioMarginResponse = v.InferOutput<typeof UserPortfolioMarginResponse>;
94
+ import { type ExchangeConfig, type ExtractRequestOptions } from "./_base/execute.js";
95
+ import type { ExcludeErrorResponse } from "./_base/errors.js";
96
+ /** Schema for user-provided action parameters (excludes system fields). */
97
+ declare const UserPortfolioMarginParameters: Omit<v.ObjectSchema<{
98
+ /** Type of action. */
99
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"userPortfolioMargin", undefined>, v.DescriptionAction<"userPortfolioMargin", "Type of action.">]>;
100
+ /** Chain ID in hex format for EIP-712 signing. */
101
+ readonly signatureChainId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Chain ID in hex format for EIP-712 signing.">]>;
102
+ /** HyperLiquid network type. */
103
+ readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.PicklistSchema<["Mainnet", "Testnet"], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>;
104
+ /** User address. */
105
+ 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.">]>;
106
+ /** Whether to enable or disable user portfolio margin. */
107
+ readonly enabled: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether to enable or disable user portfolio margin.">]>;
108
+ /** Nonce (timestamp in ms) used to prevent replay attacks. */
109
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
110
+ }, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
111
+ readonly entries: Omit<{
112
+ /** Type of action. */
113
+ readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"userPortfolioMargin", undefined>, v.DescriptionAction<"userPortfolioMargin", "Type of action.">]>;
114
+ /** Chain ID in hex format for EIP-712 signing. */
115
+ readonly signatureChainId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Chain ID in hex format for EIP-712 signing.">]>;
116
+ /** HyperLiquid network type. */
117
+ readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.PicklistSchema<["Mainnet", "Testnet"], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network type.">]>;
118
+ /** User address. */
119
+ 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.">]>;
120
+ /** Whether to enable or disable user portfolio margin. */
121
+ readonly enabled: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether to enable or disable user portfolio margin.">]>;
122
+ /** Nonce (timestamp in ms) used to prevent replay attacks. */
123
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
124
+ }, "type" | "nonce" | "signatureChainId" | "hyperliquidChain">;
125
+ readonly "~standard": v.StandardProps<{
126
+ user: string;
127
+ enabled: boolean;
128
+ }, {
129
+ user: `0x${string}`;
130
+ enabled: boolean;
131
+ }>;
132
+ readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
133
+ user: `0x${string}`;
134
+ enabled: boolean;
135
+ }, v.StringIssue | v.ObjectIssue | v.RegexIssue<string> | v.LengthIssue<`0x${string}`, 42> | v.BooleanIssue>;
136
+ readonly "~types"?: {
137
+ readonly input: {
138
+ user: string;
139
+ enabled: boolean;
140
+ };
141
+ readonly output: {
142
+ user: `0x${string}`;
143
+ enabled: boolean;
144
+ };
145
+ readonly issue: v.StringIssue | v.ObjectIssue | v.RegexIssue<string> | v.LengthIssue<`0x${string}`, 42> | v.BooleanIssue;
146
+ } | undefined;
147
+ };
148
+ /** Action parameters for the {@linkcode userPortfolioMargin} function. */
149
+ export type UserPortfolioMarginParameters = v.InferInput<typeof UserPortfolioMarginParameters>;
150
+ /** Request options for the {@linkcode userPortfolioMargin} function. */
151
+ export type UserPortfolioMarginOptions = ExtractRequestOptions<v.InferInput<typeof UserPortfolioMarginRequest>>;
152
+ /** Successful variant of {@linkcode UserPortfolioMarginResponse} without errors. */
153
+ export type UserPortfolioMarginSuccessResponse = ExcludeErrorResponse<UserPortfolioMarginResponse>;
154
+ /** EIP-712 types for the {@linkcode UserPortfolioMargin} function. */
155
+ export declare const UserPortfolioMarginTypes: {
156
+ "HyperliquidTransaction:UserPortfolioMargin": {
157
+ name: string;
158
+ type: string;
159
+ }[];
160
+ };
161
+ /**
162
+ * Enable/disable user portfolio margin.
163
+ *
164
+ * @param config - General configuration for Exchange API requests.
165
+ * @param params - Parameters specific to the API request.
166
+ * @param opts - Request execution options.
167
+ *
168
+ * @returns Successful response without specific data.
169
+ *
170
+ * @throws {ValiError} When the request parameters fail validation (before sending).
171
+ * @throws {TransportError} When the transport layer throws an error.
172
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
173
+ *
174
+ * @example
175
+ * ```ts
176
+ * import { HttpTransport } from "@nktkas/hyperliquid";
177
+ * import { userPortfolioMargin } from "@nktkas/hyperliquid/api/exchange";
178
+ * import { privateKeyToAccount } from "npm:viem/accounts";
179
+ *
180
+ * const wallet = privateKeyToAccount("0x..."); // viem or ethers
181
+ * const transport = new HttpTransport(); // or `WebSocketTransport`
182
+ *
183
+ * await userPortfolioMargin(
184
+ * { transport, wallet },
185
+ * { user: "0x...", enabled: true },
186
+ * );
187
+ * ```
188
+ *
189
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin
190
+ */
191
+ export declare function userPortfolioMargin(config: ExchangeConfig, params: UserPortfolioMarginParameters, opts?: UserPortfolioMarginOptions): Promise<UserPortfolioMarginSuccessResponse>;
192
+ export {};
193
+ //# sourceMappingURL=userPortfolioMargin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userPortfolioMargin.d.ts","sourceRoot":"","sources":["../../../../../src/src/api/exchange/_methods/userPortfolioMargin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAS7B;;;GAGG;AACH,eAAO,MAAM,0BAA0B;IAGjC,yBAAyB;;QAGrB,sBAAsB;;QAKtB,kDAAkD;;QAKlD,gCAAgC;;QAKhC,oBAAoB;;QAKpB,0DAA0D;;QAK1D,8DAA8D;;;;;;;;;;IAQlE,8DAA8D;;IAK9D,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6CAQpC,CAAC;AACL,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE1F;;;GAGG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;oEAKpC,CAAC;AACL,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAM5F,OAAO,EAAE,KAAK,cAAc,EAA2B,KAAK,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC9G,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,2EAA2E;AAC3E,QAAA,MAAM,6BAA6B;IArEzB,sBAAsB;;IAKtB,kDAAkD;;IAKlD,gCAAgC;;IAKhC,oBAAoB;;IAKpB,0DAA0D;;IAK1D,8DAA8D;;;;QAzB9D,sBAAsB;;QAKtB,kDAAkD;;QAKlD,gCAAgC;;QAKhC,oBAAoB;;QAKpB,0DAA0D;;QAK1D,8DAA8D;;;;;;;;;;;;;;;;;;;;;;;;;CAiDpE,CAAC;AACL,0EAA0E;AAC1E,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAE/F,wEAAwE;AACxE,MAAM,MAAM,0BAA0B,GAAG,qBAAqB,CAAC,CAAC,CAAC,UAAU,CAAC,OAAO,0BAA0B,CAAC,CAAC,CAAC;AAEhH,oFAAoF;AACpF,MAAM,MAAM,kCAAkC,GAAG,oBAAoB,CAAC,2BAA2B,CAAC,CAAC;AAEnG,sEAAsE;AACtE,eAAO,MAAM,wBAAwB;;;;;CAOpC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,6BAA6B,EACrC,IAAI,CAAC,EAAE,0BAA0B,GAChC,OAAO,CAAC,kCAAkC,CAAC,CAQ7C"}
@@ -0,0 +1,92 @@
1
+ import * as v from "valibot";
2
+ // ============================================================
3
+ // API Schemas
4
+ // ============================================================
5
+ import { Address, Hex, UnsignedInteger } from "../../_schemas.js";
6
+ import { ErrorResponse, HyperliquidChainSchema, SignatureSchema, SuccessResponse } from "./_base/commonSchemas.js";
7
+ /**
8
+ * Enable/disable user portfolio margin.
9
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin
10
+ */
11
+ export const UserPortfolioMarginRequest = /* @__PURE__ */ (() => {
12
+ return v.pipe(v.object({
13
+ /** Action to perform. */
14
+ action: v.pipe(v.object({
15
+ /** Type of action. */
16
+ type: v.pipe(v.literal("userPortfolioMargin"), v.description("Type of action.")),
17
+ /** Chain ID in hex format for EIP-712 signing. */
18
+ signatureChainId: v.pipe(Hex, v.description("Chain ID in hex format for EIP-712 signing.")),
19
+ /** HyperLiquid network type. */
20
+ hyperliquidChain: v.pipe(HyperliquidChainSchema, v.description("HyperLiquid network type.")),
21
+ /** User address. */
22
+ user: v.pipe(Address, v.description("User address.")),
23
+ /** Whether to enable or disable user portfolio margin. */
24
+ enabled: v.pipe(v.boolean(), v.description("Whether to enable or disable user portfolio margin.")),
25
+ /** Nonce (timestamp in ms) used to prevent replay attacks. */
26
+ nonce: v.pipe(UnsignedInteger, v.description("Nonce (timestamp in ms) used to prevent replay attacks.")),
27
+ }), v.description("Action to perform.")),
28
+ /** Nonce (timestamp in ms) used to prevent replay attacks. */
29
+ nonce: v.pipe(UnsignedInteger, v.description("Nonce (timestamp in ms) used to prevent replay attacks.")),
30
+ /** ECDSA signature components. */
31
+ signature: v.pipe(SignatureSchema, v.description("ECDSA signature components.")),
32
+ }), v.description("Enable/disable user portfolio margin."));
33
+ })();
34
+ /**
35
+ * Successful response without specific data or error response.
36
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin
37
+ */
38
+ export const UserPortfolioMarginResponse = /* @__PURE__ */ (() => {
39
+ return v.pipe(v.union([SuccessResponse, ErrorResponse]), v.description("Successful response without specific data or error response."));
40
+ })();
41
+ // ============================================================
42
+ // Execution Logic
43
+ // ============================================================
44
+ import { executeUserSignedAction } from "./_base/execute.js";
45
+ /** Schema for user-provided action parameters (excludes system fields). */
46
+ const UserPortfolioMarginParameters = /* @__PURE__ */ (() => {
47
+ return v.omit(v.object(UserPortfolioMarginRequest.entries.action.entries), ["type", "signatureChainId", "hyperliquidChain", "nonce"]);
48
+ })();
49
+ /** EIP-712 types for the {@linkcode UserPortfolioMargin} function. */
50
+ export const UserPortfolioMarginTypes = {
51
+ "HyperliquidTransaction:UserPortfolioMargin": [
52
+ { name: "hyperliquidChain", type: "string" },
53
+ { name: "user", type: "address" },
54
+ { name: "enabled", type: "bool" },
55
+ { name: "nonce", type: "uint64" },
56
+ ],
57
+ };
58
+ /**
59
+ * Enable/disable user portfolio margin.
60
+ *
61
+ * @param config - General configuration for Exchange API requests.
62
+ * @param params - Parameters specific to the API request.
63
+ * @param opts - Request execution options.
64
+ *
65
+ * @returns Successful response without specific data.
66
+ *
67
+ * @throws {ValiError} When the request parameters fail validation (before sending).
68
+ * @throws {TransportError} When the transport layer throws an error.
69
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
70
+ *
71
+ * @example
72
+ * ```ts
73
+ * import { HttpTransport } from "@nktkas/hyperliquid";
74
+ * import { userPortfolioMargin } from "@nktkas/hyperliquid/api/exchange";
75
+ * import { privateKeyToAccount } from "npm:viem/accounts";
76
+ *
77
+ * const wallet = privateKeyToAccount("0x..."); // viem or ethers
78
+ * const transport = new HttpTransport(); // or `WebSocketTransport`
79
+ *
80
+ * await userPortfolioMargin(
81
+ * { transport, wallet },
82
+ * { user: "0x...", enabled: true },
83
+ * );
84
+ * ```
85
+ *
86
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin
87
+ */
88
+ export function userPortfolioMargin(config, params, opts) {
89
+ const action = v.parse(UserPortfolioMarginParameters, params);
90
+ return executeUserSignedAction(config, { type: "userPortfolioMargin", ...action }, UserPortfolioMarginTypes, opts);
91
+ }
92
+ //# sourceMappingURL=userPortfolioMargin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userPortfolioMargin.js","sourceRoot":"","sources":["../../../../../src/src/api/exchange/_methods/userPortfolioMargin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,+DAA+D;AAC/D,cAAc;AACd,+DAA+D;AAE/D,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEnH;;;GAGG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IAC9D,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC;QACP,yBAAyB;QACzB,MAAM,EAAE,CAAC,CAAC,IAAI,CACZ,CAAC,CAAC,MAAM,CAAC;YACP,sBAAsB;YACtB,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,CAAC,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAChC,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CACjC;YACD,kDAAkD;YAClD,gBAAgB,EAAE,CAAC,CAAC,IAAI,CACtB,GAAG,EACH,CAAC,CAAC,WAAW,CAAC,6CAA6C,CAAC,CAC7D;YACD,gCAAgC;YAChC,gBAAgB,EAAE,CAAC,CAAC,IAAI,CACtB,sBAAsB,EACtB,CAAC,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAC3C;YACD,oBAAoB;YACpB,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,OAAO,EACP,CAAC,CAAC,WAAW,CAAC,eAAe,CAAC,CAC/B;YACD,0DAA0D;YAC1D,OAAO,EAAE,CAAC,CAAC,IAAI,CACb,CAAC,CAAC,OAAO,EAAE,EACX,CAAC,CAAC,WAAW,CAAC,qDAAqD,CAAC,CACrE;YACD,8DAA8D;YAC9D,KAAK,EAAE,CAAC,CAAC,IAAI,CACX,eAAe,EACf,CAAC,CAAC,WAAW,CAAC,yDAAyD,CAAC,CACzE;SACF,CAAC,EACF,CAAC,CAAC,WAAW,CAAC,oBAAoB,CAAC,CACpC;QACD,8DAA8D;QAC9D,KAAK,EAAE,CAAC,CAAC,IAAI,CACX,eAAe,EACf,CAAC,CAAC,WAAW,CAAC,yDAAyD,CAAC,CACzE;QACD,kCAAkC;QAClC,SAAS,EAAE,CAAC,CAAC,IAAI,CACf,eAAe,EACf,CAAC,CAAC,WAAW,CAAC,6BAA6B,CAAC,CAC7C;KACF,CAAC,EACF,CAAC,CAAC,WAAW,CAAC,uCAAuC,CAAC,CACvD,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAGL;;;GAGG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IAC/D,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,KAAK,CAAC,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC,EACzC,CAAC,CAAC,WAAW,CAAC,8DAA8D,CAAC,CAC9E,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAGL,+DAA+D;AAC/D,kBAAkB;AAClB,+DAA+D;AAE/D,OAAO,EAAuB,uBAAuB,EAA8B,MAAM,oBAAoB,CAAC;AAG9G,2EAA2E;AAC3E,MAAM,6BAA6B,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IAC1D,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC,0BAA0B,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAC3D,CAAC,MAAM,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,OAAO,CAAC,CAC1D,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAUL,sEAAsE;AACtE,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,4CAA4C,EAAE;QAC5C,EAAE,IAAI,EAAE,kBAAkB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC5C,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE;QACjC,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,EAAE;QACjC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE;KAClC;CACF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,UAAU,mBAAmB,CACjC,MAAsB,EACtB,MAAqC,EACrC,IAAiC;IAEjC,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;IAC9D,OAAO,uBAAuB,CAC5B,MAAM,EACN,EAAE,IAAI,EAAE,qBAAqB,EAAE,GAAG,MAAM,EAAE,EAC1C,wBAAwB,EACxB,IAAI,CACL,CAAC;AACJ,CAAC"}
@@ -9,13 +9,13 @@ export declare const ValidatorL1StreamRequest: v.SchemaWithPipe<readonly [v.Obje
9
9
  /** Type of action. */
10
10
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"validatorL1Stream", undefined>, v.DescriptionAction<"validatorL1Stream", "Type of action.">]>;
11
11
  /** Risk-free rate as a decimal string (e.g., "0.05" for 5%). */
12
- readonly riskFreeRate: 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, "Risk-free rate as a decimal string (e.g., \"0.05\" for 5%).">]>;
12
+ readonly riskFreeRate: 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, "Risk-free rate as a decimal string (e.g., \"0.05\" for 5%).">]>;
13
13
  }, undefined>, v.DescriptionAction<{
14
14
  type: "validatorL1Stream";
15
15
  riskFreeRate: string;
16
16
  }, "Action to perform.">]>;
17
17
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
18
- readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
18
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
19
19
  /** ECDSA signature components. */
20
20
  readonly signature: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
21
21
  readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "First 32-byte component.">]>;
@@ -31,7 +31,7 @@ export declare const ValidatorL1StreamRequest: v.SchemaWithPipe<readonly [v.Obje
31
31
  v: 27 | 28;
32
32
  }, "ECDSA signature components.">]>;
33
33
  /** Expiration time of the action. */
34
- readonly expiresAfter: v.SchemaWithPipe<readonly [v.OptionalSchema<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 | undefined, "Expiration time of the action.">]>;
34
+ readonly expiresAfter: v.SchemaWithPipe<readonly [v.OptionalSchema<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 | undefined, "Expiration time of the action.">]>;
35
35
  }, undefined>, v.DescriptionAction<{
36
36
  action: {
37
37
  type: "validatorL1Stream";
@@ -85,13 +85,13 @@ declare const ValidatorL1StreamParameters: Omit<v.ObjectSchema<{
85
85
  /** Type of action. */
86
86
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"validatorL1Stream", undefined>, v.DescriptionAction<"validatorL1Stream", "Type of action.">]>;
87
87
  /** Risk-free rate as a decimal string (e.g., "0.05" for 5%). */
88
- readonly riskFreeRate: 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, "Risk-free rate as a decimal string (e.g., \"0.05\" for 5%).">]>;
88
+ readonly riskFreeRate: 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, "Risk-free rate as a decimal string (e.g., \"0.05\" for 5%).">]>;
89
89
  }, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
90
90
  readonly entries: Omit<{
91
91
  /** Type of action. */
92
92
  readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"validatorL1Stream", undefined>, v.DescriptionAction<"validatorL1Stream", "Type of action.">]>;
93
93
  /** Risk-free rate as a decimal string (e.g., "0.05" for 5%). */
94
- readonly riskFreeRate: 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, "Risk-free rate as a decimal string (e.g., \"0.05\" for 5%).">]>;
94
+ readonly riskFreeRate: 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, "Risk-free rate as a decimal string (e.g., \"0.05\" for 5%).">]>;
95
95
  }, "type">;
96
96
  readonly "~standard": v.StandardProps<{
97
97
  riskFreeRate: string | number;
@@ -11,14 +11,14 @@ export declare const VaultDistributeRequest: v.SchemaWithPipe<readonly [v.Object
11
11
  * Amount to distribute (float * 1e6).
12
12
  * Set to 0 to close the vault.
13
13
  */
14
- readonly usd: 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, string>]>;
14
+ readonly usd: 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, string>]>;
15
15
  }, undefined>, v.DescriptionAction<{
16
16
  type: "vaultDistribute";
17
17
  vaultAddress: `0x${string}`;
18
18
  usd: number;
19
19
  }, "Action to perform.">]>;
20
20
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
21
- readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
21
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
22
22
  /** ECDSA signature components. */
23
23
  readonly signature: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
24
24
  readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "First 32-byte component.">]>;
@@ -34,7 +34,7 @@ export declare const VaultDistributeRequest: v.SchemaWithPipe<readonly [v.Object
34
34
  v: 27 | 28;
35
35
  }, "ECDSA signature components.">]>;
36
36
  /** Expiration time of the action. */
37
- readonly expiresAfter: v.SchemaWithPipe<readonly [v.OptionalSchema<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 | undefined, "Expiration time of the action.">]>;
37
+ readonly expiresAfter: v.SchemaWithPipe<readonly [v.OptionalSchema<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 | undefined, "Expiration time of the action.">]>;
38
38
  }, undefined>, v.DescriptionAction<{
39
39
  action: {
40
40
  type: "vaultDistribute";
@@ -91,7 +91,7 @@ declare const VaultDistributeParameters: Omit<v.ObjectSchema<{
91
91
  * Amount to distribute (float * 1e6).
92
92
  * Set to 0 to close the vault.
93
93
  */
94
- readonly usd: 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, string>]>;
94
+ readonly usd: 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, string>]>;
95
95
  }, undefined>, "entries" | "~types" | "~run" | "~standard"> & {
96
96
  readonly entries: Omit<{
97
97
  /** Type of action. */
@@ -102,7 +102,7 @@ declare const VaultDistributeParameters: Omit<v.ObjectSchema<{
102
102
  * Amount to distribute (float * 1e6).
103
103
  * Set to 0 to close the vault.
104
104
  */
105
- readonly usd: 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, string>]>;
105
+ readonly usd: 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, string>]>;
106
106
  }, "type">;
107
107
  readonly "~standard": v.StandardProps<{
108
108
  vaultAddress: string;
@@ -18,7 +18,7 @@ export declare const VaultModifyRequest: v.SchemaWithPipe<readonly [v.ObjectSche
18
18
  alwaysCloseOnWithdraw: boolean | null;
19
19
  }, "Action to perform.">]>;
20
20
  /** Nonce (timestamp in ms) used to prevent replay attacks. */
21
- readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
21
+ readonly nonce: 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, "Nonce (timestamp in ms) used to prevent replay attacks.">]>;
22
22
  /** ECDSA signature components. */
23
23
  readonly signature: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
24
24
  readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>, v.DescriptionAction<`0x${string}`, "First 32-byte component.">]>;
@@ -34,7 +34,7 @@ export declare const VaultModifyRequest: v.SchemaWithPipe<readonly [v.ObjectSche
34
34
  v: 27 | 28;
35
35
  }, "ECDSA signature components.">]>;
36
36
  /** Expiration time of the action. */
37
- readonly expiresAfter: v.SchemaWithPipe<readonly [v.OptionalSchema<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 | undefined, "Expiration time of the action.">]>;
37
+ readonly expiresAfter: v.SchemaWithPipe<readonly [v.OptionalSchema<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 | undefined, "Expiration time of the action.">]>;
38
38
  }, undefined>, v.DescriptionAction<{
39
39
  action: {
40
40
  type: "vaultModify";