@nktkas/hyperliquid 0.32.1 → 0.32.2

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 (1040) hide show
  1. package/esm/_base.js +1 -1
  2. package/esm/_base.js.map +1 -1
  3. package/esm/api/_schemas.d.ts.map +1 -1
  4. package/esm/api/_schemas.js +1 -15
  5. package/esm/api/_schemas.js.map +1 -1
  6. package/esm/api/exchange/_methods/_base/execute.d.ts +1 -1
  7. package/esm/api/exchange/_methods/_base/execute.d.ts.map +1 -1
  8. package/esm/api/exchange/_methods/_base/execute.js.map +1 -1
  9. package/esm/api/exchange/_methods/agentEnableDexAbstraction.d.ts.map +1 -1
  10. package/esm/api/exchange/_methods/agentEnableDexAbstraction.js +10 -1
  11. package/esm/api/exchange/_methods/agentEnableDexAbstraction.js.map +1 -1
  12. package/esm/api/exchange/_methods/agentSetAbstraction.d.ts +7 -37
  13. package/esm/api/exchange/_methods/agentSetAbstraction.d.ts.map +1 -1
  14. package/esm/api/exchange/_methods/agentSetAbstraction.js +8 -9
  15. package/esm/api/exchange/_methods/agentSetAbstraction.js.map +1 -1
  16. package/esm/api/exchange/_methods/approveAgent.d.ts +19 -17
  17. package/esm/api/exchange/_methods/approveAgent.d.ts.map +1 -1
  18. package/esm/api/exchange/_methods/approveAgent.js +13 -16
  19. package/esm/api/exchange/_methods/approveAgent.js.map +1 -1
  20. package/esm/api/exchange/_methods/approveBuilderFee.d.ts +15 -10
  21. package/esm/api/exchange/_methods/approveBuilderFee.d.ts.map +1 -1
  22. package/esm/api/exchange/_methods/approveBuilderFee.js +9 -9
  23. package/esm/api/exchange/_methods/approveBuilderFee.js.map +1 -1
  24. package/esm/api/exchange/_methods/batchModify.d.ts +18 -192
  25. package/esm/api/exchange/_methods/batchModify.d.ts.map +1 -1
  26. package/esm/api/exchange/_methods/batchModify.js +19 -22
  27. package/esm/api/exchange/_methods/batchModify.js.map +1 -1
  28. package/esm/api/exchange/_methods/borrowLend.d.ts +9 -46
  29. package/esm/api/exchange/_methods/borrowLend.d.ts.map +1 -1
  30. package/esm/api/exchange/_methods/borrowLend.js +10 -9
  31. package/esm/api/exchange/_methods/borrowLend.js.map +1 -1
  32. package/esm/api/exchange/_methods/cDeposit.d.ts +14 -10
  33. package/esm/api/exchange/_methods/cDeposit.d.ts.map +1 -1
  34. package/esm/api/exchange/_methods/cDeposit.js +8 -9
  35. package/esm/api/exchange/_methods/cDeposit.js.map +1 -1
  36. package/esm/api/exchange/_methods/cSignerAction.d.ts +13 -61
  37. package/esm/api/exchange/_methods/cSignerAction.d.ts.map +1 -1
  38. package/esm/api/exchange/_methods/cSignerAction.js +11 -13
  39. package/esm/api/exchange/_methods/cSignerAction.js.map +1 -1
  40. package/esm/api/exchange/_methods/cValidatorAction.d.ts +18 -247
  41. package/esm/api/exchange/_methods/cValidatorAction.d.ts.map +1 -1
  42. package/esm/api/exchange/_methods/cValidatorAction.js +15 -18
  43. package/esm/api/exchange/_methods/cValidatorAction.js.map +1 -1
  44. package/esm/api/exchange/_methods/cWithdraw.d.ts +14 -10
  45. package/esm/api/exchange/_methods/cWithdraw.d.ts.map +1 -1
  46. package/esm/api/exchange/_methods/cWithdraw.js +8 -9
  47. package/esm/api/exchange/_methods/cWithdraw.js.map +1 -1
  48. package/esm/api/exchange/_methods/cancel.d.ts +7 -52
  49. package/esm/api/exchange/_methods/cancel.d.ts.map +1 -1
  50. package/esm/api/exchange/_methods/cancel.js +8 -9
  51. package/esm/api/exchange/_methods/cancel.js.map +1 -1
  52. package/esm/api/exchange/_methods/cancelByCloid.d.ts +9 -56
  53. package/esm/api/exchange/_methods/cancelByCloid.d.ts.map +1 -1
  54. package/esm/api/exchange/_methods/cancelByCloid.js +10 -13
  55. package/esm/api/exchange/_methods/cancelByCloid.js.map +1 -1
  56. package/esm/api/exchange/_methods/claimRewards.d.ts.map +1 -1
  57. package/esm/api/exchange/_methods/claimRewards.js +10 -1
  58. package/esm/api/exchange/_methods/claimRewards.js.map +1 -1
  59. package/esm/api/exchange/_methods/convertToMultiSigUser.d.ts +19 -18
  60. package/esm/api/exchange/_methods/convertToMultiSigUser.d.ts.map +1 -1
  61. package/esm/api/exchange/_methods/convertToMultiSigUser.js +13 -17
  62. package/esm/api/exchange/_methods/convertToMultiSigUser.js.map +1 -1
  63. package/esm/api/exchange/_methods/createSubAccount.d.ts +7 -32
  64. package/esm/api/exchange/_methods/createSubAccount.d.ts.map +1 -1
  65. package/esm/api/exchange/_methods/createSubAccount.js +8 -9
  66. package/esm/api/exchange/_methods/createSubAccount.js.map +1 -1
  67. package/esm/api/exchange/_methods/createVault.d.ts +10 -58
  68. package/esm/api/exchange/_methods/createVault.d.ts.map +1 -1
  69. package/esm/api/exchange/_methods/createVault.js +11 -14
  70. package/esm/api/exchange/_methods/createVault.js.map +1 -1
  71. package/esm/api/exchange/_methods/evmUserModify.d.ts +7 -32
  72. package/esm/api/exchange/_methods/evmUserModify.d.ts.map +1 -1
  73. package/esm/api/exchange/_methods/evmUserModify.js +8 -9
  74. package/esm/api/exchange/_methods/evmUserModify.js.map +1 -1
  75. package/esm/api/exchange/_methods/linkStakingUser.d.ts +15 -10
  76. package/esm/api/exchange/_methods/linkStakingUser.d.ts.map +1 -1
  77. package/esm/api/exchange/_methods/linkStakingUser.js +9 -9
  78. package/esm/api/exchange/_methods/linkStakingUser.js.map +1 -1
  79. package/esm/api/exchange/_methods/modify.d.ts +14 -175
  80. package/esm/api/exchange/_methods/modify.d.ts.map +1 -1
  81. package/esm/api/exchange/_methods/modify.js +15 -18
  82. package/esm/api/exchange/_methods/modify.js.map +1 -1
  83. package/esm/api/exchange/_methods/noop.d.ts.map +1 -1
  84. package/esm/api/exchange/_methods/noop.js +10 -1
  85. package/esm/api/exchange/_methods/noop.js.map +1 -1
  86. package/esm/api/exchange/_methods/order.d.ts +19 -212
  87. package/esm/api/exchange/_methods/order.d.ts.map +1 -1
  88. package/esm/api/exchange/_methods/order.js +18 -21
  89. package/esm/api/exchange/_methods/order.js.map +1 -1
  90. package/esm/api/exchange/_methods/perpDeploy.d.ts +39 -740
  91. package/esm/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
  92. package/esm/api/exchange/_methods/perpDeploy.js +21 -20
  93. package/esm/api/exchange/_methods/perpDeploy.js.map +1 -1
  94. package/esm/api/exchange/_methods/registerReferrer.d.ts +7 -32
  95. package/esm/api/exchange/_methods/registerReferrer.d.ts.map +1 -1
  96. package/esm/api/exchange/_methods/registerReferrer.js +8 -9
  97. package/esm/api/exchange/_methods/registerReferrer.js.map +1 -1
  98. package/esm/api/exchange/_methods/reserveRequestWeight.d.ts +7 -32
  99. package/esm/api/exchange/_methods/reserveRequestWeight.d.ts.map +1 -1
  100. package/esm/api/exchange/_methods/reserveRequestWeight.js +8 -9
  101. package/esm/api/exchange/_methods/reserveRequestWeight.js.map +1 -1
  102. package/esm/api/exchange/_methods/scheduleCancel.d.ts +7 -37
  103. package/esm/api/exchange/_methods/scheduleCancel.d.ts.map +1 -1
  104. package/esm/api/exchange/_methods/scheduleCancel.js +5 -5
  105. package/esm/api/exchange/_methods/scheduleCancel.js.map +1 -1
  106. package/esm/api/exchange/_methods/sendAsset.d.ts +16 -14
  107. package/esm/api/exchange/_methods/sendAsset.d.ts.map +1 -1
  108. package/esm/api/exchange/_methods/sendAsset.js +12 -15
  109. package/esm/api/exchange/_methods/sendAsset.js.map +1 -1
  110. package/esm/api/exchange/_methods/sendToEvmWithData.d.ts +21 -19
  111. package/esm/api/exchange/_methods/sendToEvmWithData.d.ts.map +1 -1
  112. package/esm/api/exchange/_methods/sendToEvmWithData.js +15 -18
  113. package/esm/api/exchange/_methods/sendToEvmWithData.js.map +1 -1
  114. package/esm/api/exchange/_methods/setDisplayName.d.ts +7 -35
  115. package/esm/api/exchange/_methods/setDisplayName.d.ts.map +1 -1
  116. package/esm/api/exchange/_methods/setDisplayName.js +8 -9
  117. package/esm/api/exchange/_methods/setDisplayName.js.map +1 -1
  118. package/esm/api/exchange/_methods/setReferrer.d.ts +7 -32
  119. package/esm/api/exchange/_methods/setReferrer.d.ts.map +1 -1
  120. package/esm/api/exchange/_methods/setReferrer.js +8 -9
  121. package/esm/api/exchange/_methods/setReferrer.js.map +1 -1
  122. package/esm/api/exchange/_methods/spotDeploy.d.ts +22 -430
  123. package/esm/api/exchange/_methods/spotDeploy.d.ts.map +1 -1
  124. package/esm/api/exchange/_methods/spotDeploy.js +14 -17
  125. package/esm/api/exchange/_methods/spotDeploy.js.map +1 -1
  126. package/esm/api/exchange/_methods/spotSend.d.ts +16 -14
  127. package/esm/api/exchange/_methods/spotSend.d.ts.map +1 -1
  128. package/esm/api/exchange/_methods/spotSend.js +10 -13
  129. package/esm/api/exchange/_methods/spotSend.js.map +1 -1
  130. package/esm/api/exchange/_methods/spotUser.d.ts +7 -45
  131. package/esm/api/exchange/_methods/spotUser.d.ts.map +1 -1
  132. package/esm/api/exchange/_methods/spotUser.js +8 -9
  133. package/esm/api/exchange/_methods/spotUser.js.map +1 -1
  134. package/esm/api/exchange/_methods/subAccountModify.d.ts +8 -39
  135. package/esm/api/exchange/_methods/subAccountModify.d.ts.map +1 -1
  136. package/esm/api/exchange/_methods/subAccountModify.js +9 -9
  137. package/esm/api/exchange/_methods/subAccountModify.js.map +1 -1
  138. package/esm/api/exchange/_methods/subAccountSpotTransfer.d.ts +10 -58
  139. package/esm/api/exchange/_methods/subAccountSpotTransfer.d.ts.map +1 -1
  140. package/esm/api/exchange/_methods/subAccountSpotTransfer.js +11 -14
  141. package/esm/api/exchange/_methods/subAccountSpotTransfer.js.map +1 -1
  142. package/esm/api/exchange/_methods/subAccountTransfer.d.ts +9 -46
  143. package/esm/api/exchange/_methods/subAccountTransfer.d.ts.map +1 -1
  144. package/esm/api/exchange/_methods/subAccountTransfer.js +10 -9
  145. package/esm/api/exchange/_methods/subAccountTransfer.js.map +1 -1
  146. package/esm/api/exchange/_methods/tokenDelegate.d.ts +16 -10
  147. package/esm/api/exchange/_methods/tokenDelegate.d.ts.map +1 -1
  148. package/esm/api/exchange/_methods/tokenDelegate.js +10 -9
  149. package/esm/api/exchange/_methods/tokenDelegate.js.map +1 -1
  150. package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts +8 -39
  151. package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts.map +1 -1
  152. package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.js +9 -9
  153. package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.js.map +1 -1
  154. package/esm/api/exchange/_methods/twapCancel.d.ts +8 -39
  155. package/esm/api/exchange/_methods/twapCancel.d.ts.map +1 -1
  156. package/esm/api/exchange/_methods/twapCancel.js +9 -9
  157. package/esm/api/exchange/_methods/twapCancel.js.map +1 -1
  158. package/esm/api/exchange/_methods/twapOrder.d.ts +13 -88
  159. package/esm/api/exchange/_methods/twapOrder.d.ts.map +1 -1
  160. package/esm/api/exchange/_methods/twapOrder.js +14 -17
  161. package/esm/api/exchange/_methods/twapOrder.js.map +1 -1
  162. package/esm/api/exchange/_methods/updateIsolatedMargin.d.ts +9 -46
  163. package/esm/api/exchange/_methods/updateIsolatedMargin.d.ts.map +1 -1
  164. package/esm/api/exchange/_methods/updateIsolatedMargin.js +10 -9
  165. package/esm/api/exchange/_methods/updateIsolatedMargin.js.map +1 -1
  166. package/esm/api/exchange/_methods/updateLeverage.d.ts +9 -46
  167. package/esm/api/exchange/_methods/updateLeverage.d.ts.map +1 -1
  168. package/esm/api/exchange/_methods/updateLeverage.js +10 -9
  169. package/esm/api/exchange/_methods/updateLeverage.js.map +1 -1
  170. package/esm/api/exchange/_methods/usdClassTransfer.d.ts +15 -10
  171. package/esm/api/exchange/_methods/usdClassTransfer.d.ts.map +1 -1
  172. package/esm/api/exchange/_methods/usdClassTransfer.js +9 -9
  173. package/esm/api/exchange/_methods/usdClassTransfer.js.map +1 -1
  174. package/esm/api/exchange/_methods/usdSend.d.ts +15 -10
  175. package/esm/api/exchange/_methods/usdSend.d.ts.map +1 -1
  176. package/esm/api/exchange/_methods/usdSend.js +9 -9
  177. package/esm/api/exchange/_methods/usdSend.js.map +1 -1
  178. package/esm/api/exchange/_methods/userDexAbstraction.d.ts +15 -10
  179. package/esm/api/exchange/_methods/userDexAbstraction.d.ts.map +1 -1
  180. package/esm/api/exchange/_methods/userDexAbstraction.js +9 -9
  181. package/esm/api/exchange/_methods/userDexAbstraction.js.map +1 -1
  182. package/esm/api/exchange/_methods/userPortfolioMargin.d.ts +15 -10
  183. package/esm/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -1
  184. package/esm/api/exchange/_methods/userPortfolioMargin.js +9 -9
  185. package/esm/api/exchange/_methods/userPortfolioMargin.js.map +1 -1
  186. package/esm/api/exchange/_methods/userSetAbstraction.d.ts +15 -10
  187. package/esm/api/exchange/_methods/userSetAbstraction.d.ts.map +1 -1
  188. package/esm/api/exchange/_methods/userSetAbstraction.js +9 -9
  189. package/esm/api/exchange/_methods/userSetAbstraction.js.map +1 -1
  190. package/esm/api/exchange/_methods/validatorL1Stream.d.ts +7 -32
  191. package/esm/api/exchange/_methods/validatorL1Stream.d.ts.map +1 -1
  192. package/esm/api/exchange/_methods/validatorL1Stream.js +8 -9
  193. package/esm/api/exchange/_methods/validatorL1Stream.js.map +1 -1
  194. package/esm/api/exchange/_methods/vaultDistribute.d.ts +8 -42
  195. package/esm/api/exchange/_methods/vaultDistribute.d.ts.map +1 -1
  196. package/esm/api/exchange/_methods/vaultDistribute.js +9 -9
  197. package/esm/api/exchange/_methods/vaultDistribute.js.map +1 -1
  198. package/esm/api/exchange/_methods/vaultModify.d.ts +9 -50
  199. package/esm/api/exchange/_methods/vaultModify.d.ts.map +1 -1
  200. package/esm/api/exchange/_methods/vaultModify.js +10 -13
  201. package/esm/api/exchange/_methods/vaultModify.js.map +1 -1
  202. package/esm/api/exchange/_methods/vaultTransfer.d.ts +9 -46
  203. package/esm/api/exchange/_methods/vaultTransfer.d.ts.map +1 -1
  204. package/esm/api/exchange/_methods/vaultTransfer.js +10 -9
  205. package/esm/api/exchange/_methods/vaultTransfer.js.map +1 -1
  206. package/esm/api/exchange/_methods/withdraw3.d.ts +15 -10
  207. package/esm/api/exchange/_methods/withdraw3.d.ts.map +1 -1
  208. package/esm/api/exchange/_methods/withdraw3.js +9 -9
  209. package/esm/api/exchange/_methods/withdraw3.js.map +1 -1
  210. package/esm/api/exchange/mod.d.ts +1 -1
  211. package/esm/api/exchange/mod.d.ts.map +1 -1
  212. package/esm/api/info/_methods/activeAssetData.d.ts +4 -4
  213. package/esm/api/info/_methods/activeAssetData.js +4 -4
  214. package/esm/api/info/_methods/alignedQuoteTokenInfo.d.ts +3 -4
  215. package/esm/api/info/_methods/alignedQuoteTokenInfo.d.ts.map +1 -1
  216. package/esm/api/info/_methods/alignedQuoteTokenInfo.js +3 -4
  217. package/esm/api/info/_methods/alignedQuoteTokenInfo.js.map +1 -1
  218. package/esm/api/info/_methods/approvedBuilders.d.ts +3 -4
  219. package/esm/api/info/_methods/approvedBuilders.d.ts.map +1 -1
  220. package/esm/api/info/_methods/approvedBuilders.js +3 -4
  221. package/esm/api/info/_methods/approvedBuilders.js.map +1 -1
  222. package/esm/api/info/_methods/blockDetails.d.ts +3 -4
  223. package/esm/api/info/_methods/blockDetails.d.ts.map +1 -1
  224. package/esm/api/info/_methods/blockDetails.js +3 -4
  225. package/esm/api/info/_methods/blockDetails.js.map +1 -1
  226. package/esm/api/info/_methods/borrowLendReserveState.d.ts +3 -4
  227. package/esm/api/info/_methods/borrowLendReserveState.d.ts.map +1 -1
  228. package/esm/api/info/_methods/borrowLendReserveState.js +3 -4
  229. package/esm/api/info/_methods/borrowLendReserveState.js.map +1 -1
  230. package/esm/api/info/_methods/borrowLendUserState.d.ts +3 -4
  231. package/esm/api/info/_methods/borrowLendUserState.d.ts.map +1 -1
  232. package/esm/api/info/_methods/borrowLendUserState.js +3 -4
  233. package/esm/api/info/_methods/borrowLendUserState.js.map +1 -1
  234. package/esm/api/info/_methods/candleSnapshot.d.ts +5 -8
  235. package/esm/api/info/_methods/candleSnapshot.d.ts.map +1 -1
  236. package/esm/api/info/_methods/candleSnapshot.js +5 -8
  237. package/esm/api/info/_methods/candleSnapshot.js.map +1 -1
  238. package/esm/api/info/_methods/clearinghouseState.d.ts +3 -4
  239. package/esm/api/info/_methods/clearinghouseState.d.ts.map +1 -1
  240. package/esm/api/info/_methods/clearinghouseState.js +3 -4
  241. package/esm/api/info/_methods/clearinghouseState.js.map +1 -1
  242. package/esm/api/info/_methods/delegations.d.ts +3 -4
  243. package/esm/api/info/_methods/delegations.d.ts.map +1 -1
  244. package/esm/api/info/_methods/delegations.js +3 -4
  245. package/esm/api/info/_methods/delegations.js.map +1 -1
  246. package/esm/api/info/_methods/delegatorHistory.d.ts +3 -4
  247. package/esm/api/info/_methods/delegatorHistory.d.ts.map +1 -1
  248. package/esm/api/info/_methods/delegatorHistory.js +3 -4
  249. package/esm/api/info/_methods/delegatorHistory.js.map +1 -1
  250. package/esm/api/info/_methods/delegatorRewards.d.ts +3 -4
  251. package/esm/api/info/_methods/delegatorRewards.d.ts.map +1 -1
  252. package/esm/api/info/_methods/delegatorRewards.js +3 -4
  253. package/esm/api/info/_methods/delegatorRewards.js.map +1 -1
  254. package/esm/api/info/_methods/delegatorSummary.d.ts +3 -4
  255. package/esm/api/info/_methods/delegatorSummary.d.ts.map +1 -1
  256. package/esm/api/info/_methods/delegatorSummary.js +3 -4
  257. package/esm/api/info/_methods/delegatorSummary.js.map +1 -1
  258. package/esm/api/info/_methods/extraAgents.d.ts +3 -4
  259. package/esm/api/info/_methods/extraAgents.d.ts.map +1 -1
  260. package/esm/api/info/_methods/extraAgents.js +3 -4
  261. package/esm/api/info/_methods/extraAgents.js.map +1 -1
  262. package/esm/api/info/_methods/frontendOpenOrders.d.ts +3 -4
  263. package/esm/api/info/_methods/frontendOpenOrders.d.ts.map +1 -1
  264. package/esm/api/info/_methods/frontendOpenOrders.js +3 -4
  265. package/esm/api/info/_methods/frontendOpenOrders.js.map +1 -1
  266. package/esm/api/info/_methods/fundingHistory.d.ts +4 -7
  267. package/esm/api/info/_methods/fundingHistory.d.ts.map +1 -1
  268. package/esm/api/info/_methods/fundingHistory.js +4 -7
  269. package/esm/api/info/_methods/fundingHistory.js.map +1 -1
  270. package/esm/api/info/_methods/historicalOrders.d.ts +3 -4
  271. package/esm/api/info/_methods/historicalOrders.d.ts.map +1 -1
  272. package/esm/api/info/_methods/historicalOrders.js +3 -4
  273. package/esm/api/info/_methods/historicalOrders.js.map +1 -1
  274. package/esm/api/info/_methods/isVip.d.ts +3 -4
  275. package/esm/api/info/_methods/isVip.d.ts.map +1 -1
  276. package/esm/api/info/_methods/isVip.js +3 -4
  277. package/esm/api/info/_methods/isVip.js.map +1 -1
  278. package/esm/api/info/_methods/l2Book.d.ts +4 -4
  279. package/esm/api/info/_methods/l2Book.js +4 -4
  280. package/esm/api/info/_methods/leadingVaults.d.ts +3 -4
  281. package/esm/api/info/_methods/leadingVaults.d.ts.map +1 -1
  282. package/esm/api/info/_methods/leadingVaults.js +3 -4
  283. package/esm/api/info/_methods/leadingVaults.js.map +1 -1
  284. package/esm/api/info/_methods/legalCheck.d.ts +3 -4
  285. package/esm/api/info/_methods/legalCheck.d.ts.map +1 -1
  286. package/esm/api/info/_methods/legalCheck.js +3 -4
  287. package/esm/api/info/_methods/legalCheck.js.map +1 -1
  288. package/esm/api/info/_methods/marginTable.d.ts +3 -4
  289. package/esm/api/info/_methods/marginTable.d.ts.map +1 -1
  290. package/esm/api/info/_methods/marginTable.js +3 -4
  291. package/esm/api/info/_methods/marginTable.js.map +1 -1
  292. package/esm/api/info/_methods/maxBuilderFee.d.ts +4 -4
  293. package/esm/api/info/_methods/maxBuilderFee.js +4 -4
  294. package/esm/api/info/_methods/openOrders.d.ts +3 -4
  295. package/esm/api/info/_methods/openOrders.d.ts.map +1 -1
  296. package/esm/api/info/_methods/openOrders.js +3 -4
  297. package/esm/api/info/_methods/openOrders.js.map +1 -1
  298. package/esm/api/info/_methods/orderStatus.d.ts +4 -4
  299. package/esm/api/info/_methods/orderStatus.js +4 -4
  300. package/esm/api/info/_methods/outcomeMeta.d.ts +3 -1
  301. package/esm/api/info/_methods/outcomeMeta.d.ts.map +1 -1
  302. package/esm/api/info/_methods/outcomeMeta.js.map +1 -1
  303. package/esm/api/info/_methods/perpAnnotation.d.ts +7 -1
  304. package/esm/api/info/_methods/perpAnnotation.d.ts.map +1 -1
  305. package/esm/api/info/_methods/perpAnnotation.js +3 -1
  306. package/esm/api/info/_methods/perpAnnotation.js.map +1 -1
  307. package/esm/api/info/_methods/perpConciseAnnotations.d.ts +52 -0
  308. package/esm/api/info/_methods/perpConciseAnnotations.d.ts.map +1 -0
  309. package/esm/api/info/_methods/perpConciseAnnotations.js +47 -0
  310. package/esm/api/info/_methods/perpConciseAnnotations.js.map +1 -0
  311. package/esm/api/info/_methods/perpDexLimits.d.ts +3 -4
  312. package/esm/api/info/_methods/perpDexLimits.d.ts.map +1 -1
  313. package/esm/api/info/_methods/perpDexLimits.js +3 -4
  314. package/esm/api/info/_methods/perpDexLimits.js.map +1 -1
  315. package/esm/api/info/_methods/perpDexStatus.d.ts +3 -1
  316. package/esm/api/info/_methods/perpDexStatus.d.ts.map +1 -1
  317. package/esm/api/info/_methods/perpDexStatus.js +3 -1
  318. package/esm/api/info/_methods/perpDexStatus.js.map +1 -1
  319. package/esm/api/info/_methods/portfolio.d.ts +3 -4
  320. package/esm/api/info/_methods/portfolio.d.ts.map +1 -1
  321. package/esm/api/info/_methods/portfolio.js +3 -4
  322. package/esm/api/info/_methods/portfolio.js.map +1 -1
  323. package/esm/api/info/_methods/preTransferCheck.d.ts +4 -4
  324. package/esm/api/info/_methods/preTransferCheck.js +4 -4
  325. package/esm/api/info/_methods/recentTrades.d.ts +3 -4
  326. package/esm/api/info/_methods/recentTrades.d.ts.map +1 -1
  327. package/esm/api/info/_methods/recentTrades.js +3 -4
  328. package/esm/api/info/_methods/recentTrades.js.map +1 -1
  329. package/esm/api/info/_methods/referral.d.ts +3 -4
  330. package/esm/api/info/_methods/referral.d.ts.map +1 -1
  331. package/esm/api/info/_methods/referral.js +3 -4
  332. package/esm/api/info/_methods/referral.js.map +1 -1
  333. package/esm/api/info/_methods/spotClearinghouseState.d.ts +3 -4
  334. package/esm/api/info/_methods/spotClearinghouseState.d.ts.map +1 -1
  335. package/esm/api/info/_methods/spotClearinghouseState.js +3 -4
  336. package/esm/api/info/_methods/spotClearinghouseState.js.map +1 -1
  337. package/esm/api/info/_methods/spotDeployState.d.ts +3 -4
  338. package/esm/api/info/_methods/spotDeployState.d.ts.map +1 -1
  339. package/esm/api/info/_methods/spotDeployState.js +3 -4
  340. package/esm/api/info/_methods/spotDeployState.js.map +1 -1
  341. package/esm/api/info/_methods/subAccounts.d.ts +3 -4
  342. package/esm/api/info/_methods/subAccounts.d.ts.map +1 -1
  343. package/esm/api/info/_methods/subAccounts.js +3 -4
  344. package/esm/api/info/_methods/subAccounts.js.map +1 -1
  345. package/esm/api/info/_methods/subAccounts2.d.ts +3 -4
  346. package/esm/api/info/_methods/subAccounts2.d.ts.map +1 -1
  347. package/esm/api/info/_methods/subAccounts2.js +3 -4
  348. package/esm/api/info/_methods/subAccounts2.js.map +1 -1
  349. package/esm/api/info/_methods/tokenDetails.d.ts +3 -4
  350. package/esm/api/info/_methods/tokenDetails.d.ts.map +1 -1
  351. package/esm/api/info/_methods/tokenDetails.js +3 -4
  352. package/esm/api/info/_methods/tokenDetails.js.map +1 -1
  353. package/esm/api/info/_methods/twapHistory.d.ts +3 -4
  354. package/esm/api/info/_methods/twapHistory.d.ts.map +1 -1
  355. package/esm/api/info/_methods/twapHistory.js +3 -4
  356. package/esm/api/info/_methods/twapHistory.js.map +1 -1
  357. package/esm/api/info/_methods/txDetails.d.ts +3 -4
  358. package/esm/api/info/_methods/txDetails.d.ts.map +1 -1
  359. package/esm/api/info/_methods/txDetails.js +3 -4
  360. package/esm/api/info/_methods/txDetails.js.map +1 -1
  361. package/esm/api/info/_methods/userAbstraction.d.ts +3 -4
  362. package/esm/api/info/_methods/userAbstraction.d.ts.map +1 -1
  363. package/esm/api/info/_methods/userAbstraction.js +3 -4
  364. package/esm/api/info/_methods/userAbstraction.js.map +1 -1
  365. package/esm/api/info/_methods/userBorrowLendInterest.d.ts +4 -7
  366. package/esm/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -1
  367. package/esm/api/info/_methods/userBorrowLendInterest.js +4 -7
  368. package/esm/api/info/_methods/userBorrowLendInterest.js.map +1 -1
  369. package/esm/api/info/_methods/userDetails.d.ts +3 -4
  370. package/esm/api/info/_methods/userDetails.d.ts.map +1 -1
  371. package/esm/api/info/_methods/userDetails.js +3 -4
  372. package/esm/api/info/_methods/userDetails.js.map +1 -1
  373. package/esm/api/info/_methods/userDexAbstraction.d.ts +3 -4
  374. package/esm/api/info/_methods/userDexAbstraction.d.ts.map +1 -1
  375. package/esm/api/info/_methods/userDexAbstraction.js +3 -4
  376. package/esm/api/info/_methods/userDexAbstraction.js.map +1 -1
  377. package/esm/api/info/_methods/userFees.d.ts +3 -4
  378. package/esm/api/info/_methods/userFees.d.ts.map +1 -1
  379. package/esm/api/info/_methods/userFees.js +3 -4
  380. package/esm/api/info/_methods/userFees.js.map +1 -1
  381. package/esm/api/info/_methods/userFills.d.ts +3 -4
  382. package/esm/api/info/_methods/userFills.d.ts.map +1 -1
  383. package/esm/api/info/_methods/userFills.js +3 -4
  384. package/esm/api/info/_methods/userFills.js.map +1 -1
  385. package/esm/api/info/_methods/userFillsByTime.d.ts +4 -7
  386. package/esm/api/info/_methods/userFillsByTime.d.ts.map +1 -1
  387. package/esm/api/info/_methods/userFillsByTime.js +4 -7
  388. package/esm/api/info/_methods/userFillsByTime.js.map +1 -1
  389. package/esm/api/info/_methods/userFunding.d.ts +3 -4
  390. package/esm/api/info/_methods/userFunding.d.ts.map +1 -1
  391. package/esm/api/info/_methods/userFunding.js +3 -4
  392. package/esm/api/info/_methods/userFunding.js.map +1 -1
  393. package/esm/api/info/_methods/userNonFundingLedgerUpdates.d.ts +17 -5
  394. package/esm/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
  395. package/esm/api/info/_methods/userNonFundingLedgerUpdates.js +3 -4
  396. package/esm/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
  397. package/esm/api/info/_methods/userRateLimit.d.ts +3 -4
  398. package/esm/api/info/_methods/userRateLimit.d.ts.map +1 -1
  399. package/esm/api/info/_methods/userRateLimit.js +3 -4
  400. package/esm/api/info/_methods/userRateLimit.js.map +1 -1
  401. package/esm/api/info/_methods/userRole.d.ts +3 -4
  402. package/esm/api/info/_methods/userRole.d.ts.map +1 -1
  403. package/esm/api/info/_methods/userRole.js +3 -4
  404. package/esm/api/info/_methods/userRole.js.map +1 -1
  405. package/esm/api/info/_methods/userToMultiSigSigners.d.ts +3 -4
  406. package/esm/api/info/_methods/userToMultiSigSigners.d.ts.map +1 -1
  407. package/esm/api/info/_methods/userToMultiSigSigners.js +3 -4
  408. package/esm/api/info/_methods/userToMultiSigSigners.js.map +1 -1
  409. package/esm/api/info/_methods/userTwapSliceFills.d.ts +3 -4
  410. package/esm/api/info/_methods/userTwapSliceFills.d.ts.map +1 -1
  411. package/esm/api/info/_methods/userTwapSliceFills.js +3 -4
  412. package/esm/api/info/_methods/userTwapSliceFills.js.map +1 -1
  413. package/esm/api/info/_methods/userTwapSliceFillsByTime.d.ts +4 -7
  414. package/esm/api/info/_methods/userTwapSliceFillsByTime.d.ts.map +1 -1
  415. package/esm/api/info/_methods/userTwapSliceFillsByTime.js +4 -7
  416. package/esm/api/info/_methods/userTwapSliceFillsByTime.js.map +1 -1
  417. package/esm/api/info/_methods/userVaultEquities.d.ts +3 -4
  418. package/esm/api/info/_methods/userVaultEquities.d.ts.map +1 -1
  419. package/esm/api/info/_methods/userVaultEquities.js +3 -4
  420. package/esm/api/info/_methods/userVaultEquities.js.map +1 -1
  421. package/esm/api/info/_methods/vaultDetails.d.ts +3 -4
  422. package/esm/api/info/_methods/vaultDetails.d.ts.map +1 -1
  423. package/esm/api/info/_methods/vaultDetails.js +3 -4
  424. package/esm/api/info/_methods/vaultDetails.js.map +1 -1
  425. package/esm/api/info/_methods/webData2.d.ts +3 -4
  426. package/esm/api/info/_methods/webData2.d.ts.map +1 -1
  427. package/esm/api/info/_methods/webData2.js +3 -4
  428. package/esm/api/info/_methods/webData2.js.map +1 -1
  429. package/esm/api/info/client.d.ts +24 -0
  430. package/esm/api/info/client.d.ts.map +1 -1
  431. package/esm/api/info/client.js +25 -0
  432. package/esm/api/info/client.js.map +1 -1
  433. package/esm/api/info/mod.d.ts +1 -0
  434. package/esm/api/info/mod.d.ts.map +1 -1
  435. package/esm/api/info/mod.js +1 -0
  436. package/esm/api/info/mod.js.map +1 -1
  437. package/esm/api/subscription/_methods/l2Book.d.ts +19 -33
  438. package/esm/api/subscription/_methods/l2Book.d.ts.map +1 -1
  439. package/esm/api/subscription/_methods/l2Book.js +2 -3
  440. package/esm/api/subscription/_methods/l2Book.js.map +1 -1
  441. package/esm/api/subscription/_methods/spotState.d.ts +1 -1
  442. package/esm/api/subscription/_methods/spotState.js +2 -2
  443. package/esm/api/subscription/_methods/spotState.js.map +1 -1
  444. package/esm/api/subscription/_methods/userFundings.d.ts +1 -1
  445. package/esm/api/subscription/_methods/userFundings.d.ts.map +1 -1
  446. package/esm/signing/_abstractWallet.d.ts.map +1 -1
  447. package/esm/signing/_abstractWallet.js +11 -1
  448. package/esm/signing/_abstractWallet.js.map +1 -1
  449. package/esm/transport/websocket/_postRequest.d.ts.map +1 -1
  450. package/esm/transport/websocket/_postRequest.js +9 -0
  451. package/esm/transport/websocket/_postRequest.js.map +1 -1
  452. package/esm/utils/_format.d.ts +1 -0
  453. package/esm/utils/_format.d.ts.map +1 -1
  454. package/esm/utils/_format.js +1 -1
  455. package/esm/utils/_format.js.map +1 -1
  456. package/esm/utils/mod.d.ts +1 -1
  457. package/esm/utils/mod.d.ts.map +1 -1
  458. package/esm/utils/mod.js +1 -1
  459. package/esm/utils/mod.js.map +1 -1
  460. package/package.json +2 -2
  461. package/script/_base.js +1 -1
  462. package/script/_base.js.map +1 -1
  463. package/script/api/_schemas.d.ts.map +1 -1
  464. package/script/api/_schemas.js +3 -17
  465. package/script/api/_schemas.js.map +1 -1
  466. package/script/api/exchange/_methods/_base/execute.d.ts +1 -1
  467. package/script/api/exchange/_methods/_base/execute.d.ts.map +1 -1
  468. package/script/api/exchange/_methods/_base/execute.js.map +1 -1
  469. package/script/api/exchange/_methods/agentEnableDexAbstraction.d.ts.map +1 -1
  470. package/script/api/exchange/_methods/agentEnableDexAbstraction.js +10 -1
  471. package/script/api/exchange/_methods/agentEnableDexAbstraction.js.map +1 -1
  472. package/script/api/exchange/_methods/agentSetAbstraction.d.ts +7 -37
  473. package/script/api/exchange/_methods/agentSetAbstraction.d.ts.map +1 -1
  474. package/script/api/exchange/_methods/agentSetAbstraction.js +8 -9
  475. package/script/api/exchange/_methods/agentSetAbstraction.js.map +1 -1
  476. package/script/api/exchange/_methods/approveAgent.d.ts +19 -17
  477. package/script/api/exchange/_methods/approveAgent.d.ts.map +1 -1
  478. package/script/api/exchange/_methods/approveAgent.js +13 -16
  479. package/script/api/exchange/_methods/approveAgent.js.map +1 -1
  480. package/script/api/exchange/_methods/approveBuilderFee.d.ts +15 -10
  481. package/script/api/exchange/_methods/approveBuilderFee.d.ts.map +1 -1
  482. package/script/api/exchange/_methods/approveBuilderFee.js +9 -9
  483. package/script/api/exchange/_methods/approveBuilderFee.js.map +1 -1
  484. package/script/api/exchange/_methods/batchModify.d.ts +18 -192
  485. package/script/api/exchange/_methods/batchModify.d.ts.map +1 -1
  486. package/script/api/exchange/_methods/batchModify.js +19 -22
  487. package/script/api/exchange/_methods/batchModify.js.map +1 -1
  488. package/script/api/exchange/_methods/borrowLend.d.ts +9 -46
  489. package/script/api/exchange/_methods/borrowLend.d.ts.map +1 -1
  490. package/script/api/exchange/_methods/borrowLend.js +10 -9
  491. package/script/api/exchange/_methods/borrowLend.js.map +1 -1
  492. package/script/api/exchange/_methods/cDeposit.d.ts +14 -10
  493. package/script/api/exchange/_methods/cDeposit.d.ts.map +1 -1
  494. package/script/api/exchange/_methods/cDeposit.js +8 -9
  495. package/script/api/exchange/_methods/cDeposit.js.map +1 -1
  496. package/script/api/exchange/_methods/cSignerAction.d.ts +13 -61
  497. package/script/api/exchange/_methods/cSignerAction.d.ts.map +1 -1
  498. package/script/api/exchange/_methods/cSignerAction.js +11 -13
  499. package/script/api/exchange/_methods/cSignerAction.js.map +1 -1
  500. package/script/api/exchange/_methods/cValidatorAction.d.ts +18 -247
  501. package/script/api/exchange/_methods/cValidatorAction.d.ts.map +1 -1
  502. package/script/api/exchange/_methods/cValidatorAction.js +15 -18
  503. package/script/api/exchange/_methods/cValidatorAction.js.map +1 -1
  504. package/script/api/exchange/_methods/cWithdraw.d.ts +14 -10
  505. package/script/api/exchange/_methods/cWithdraw.d.ts.map +1 -1
  506. package/script/api/exchange/_methods/cWithdraw.js +8 -9
  507. package/script/api/exchange/_methods/cWithdraw.js.map +1 -1
  508. package/script/api/exchange/_methods/cancel.d.ts +7 -52
  509. package/script/api/exchange/_methods/cancel.d.ts.map +1 -1
  510. package/script/api/exchange/_methods/cancel.js +8 -9
  511. package/script/api/exchange/_methods/cancel.js.map +1 -1
  512. package/script/api/exchange/_methods/cancelByCloid.d.ts +9 -56
  513. package/script/api/exchange/_methods/cancelByCloid.d.ts.map +1 -1
  514. package/script/api/exchange/_methods/cancelByCloid.js +10 -13
  515. package/script/api/exchange/_methods/cancelByCloid.js.map +1 -1
  516. package/script/api/exchange/_methods/claimRewards.d.ts.map +1 -1
  517. package/script/api/exchange/_methods/claimRewards.js +10 -1
  518. package/script/api/exchange/_methods/claimRewards.js.map +1 -1
  519. package/script/api/exchange/_methods/convertToMultiSigUser.d.ts +19 -18
  520. package/script/api/exchange/_methods/convertToMultiSigUser.d.ts.map +1 -1
  521. package/script/api/exchange/_methods/convertToMultiSigUser.js +13 -17
  522. package/script/api/exchange/_methods/convertToMultiSigUser.js.map +1 -1
  523. package/script/api/exchange/_methods/createSubAccount.d.ts +7 -32
  524. package/script/api/exchange/_methods/createSubAccount.d.ts.map +1 -1
  525. package/script/api/exchange/_methods/createSubAccount.js +8 -9
  526. package/script/api/exchange/_methods/createSubAccount.js.map +1 -1
  527. package/script/api/exchange/_methods/createVault.d.ts +10 -58
  528. package/script/api/exchange/_methods/createVault.d.ts.map +1 -1
  529. package/script/api/exchange/_methods/createVault.js +11 -14
  530. package/script/api/exchange/_methods/createVault.js.map +1 -1
  531. package/script/api/exchange/_methods/evmUserModify.d.ts +7 -32
  532. package/script/api/exchange/_methods/evmUserModify.d.ts.map +1 -1
  533. package/script/api/exchange/_methods/evmUserModify.js +8 -9
  534. package/script/api/exchange/_methods/evmUserModify.js.map +1 -1
  535. package/script/api/exchange/_methods/linkStakingUser.d.ts +15 -10
  536. package/script/api/exchange/_methods/linkStakingUser.d.ts.map +1 -1
  537. package/script/api/exchange/_methods/linkStakingUser.js +9 -9
  538. package/script/api/exchange/_methods/linkStakingUser.js.map +1 -1
  539. package/script/api/exchange/_methods/modify.d.ts +14 -175
  540. package/script/api/exchange/_methods/modify.d.ts.map +1 -1
  541. package/script/api/exchange/_methods/modify.js +15 -18
  542. package/script/api/exchange/_methods/modify.js.map +1 -1
  543. package/script/api/exchange/_methods/noop.d.ts.map +1 -1
  544. package/script/api/exchange/_methods/noop.js +10 -1
  545. package/script/api/exchange/_methods/noop.js.map +1 -1
  546. package/script/api/exchange/_methods/order.d.ts +19 -212
  547. package/script/api/exchange/_methods/order.d.ts.map +1 -1
  548. package/script/api/exchange/_methods/order.js +18 -21
  549. package/script/api/exchange/_methods/order.js.map +1 -1
  550. package/script/api/exchange/_methods/perpDeploy.d.ts +39 -740
  551. package/script/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
  552. package/script/api/exchange/_methods/perpDeploy.js +21 -20
  553. package/script/api/exchange/_methods/perpDeploy.js.map +1 -1
  554. package/script/api/exchange/_methods/registerReferrer.d.ts +7 -32
  555. package/script/api/exchange/_methods/registerReferrer.d.ts.map +1 -1
  556. package/script/api/exchange/_methods/registerReferrer.js +8 -9
  557. package/script/api/exchange/_methods/registerReferrer.js.map +1 -1
  558. package/script/api/exchange/_methods/reserveRequestWeight.d.ts +7 -32
  559. package/script/api/exchange/_methods/reserveRequestWeight.d.ts.map +1 -1
  560. package/script/api/exchange/_methods/reserveRequestWeight.js +8 -9
  561. package/script/api/exchange/_methods/reserveRequestWeight.js.map +1 -1
  562. package/script/api/exchange/_methods/scheduleCancel.d.ts +7 -37
  563. package/script/api/exchange/_methods/scheduleCancel.d.ts.map +1 -1
  564. package/script/api/exchange/_methods/scheduleCancel.js +5 -5
  565. package/script/api/exchange/_methods/scheduleCancel.js.map +1 -1
  566. package/script/api/exchange/_methods/sendAsset.d.ts +16 -14
  567. package/script/api/exchange/_methods/sendAsset.d.ts.map +1 -1
  568. package/script/api/exchange/_methods/sendAsset.js +12 -15
  569. package/script/api/exchange/_methods/sendAsset.js.map +1 -1
  570. package/script/api/exchange/_methods/sendToEvmWithData.d.ts +21 -19
  571. package/script/api/exchange/_methods/sendToEvmWithData.d.ts.map +1 -1
  572. package/script/api/exchange/_methods/sendToEvmWithData.js +15 -18
  573. package/script/api/exchange/_methods/sendToEvmWithData.js.map +1 -1
  574. package/script/api/exchange/_methods/setDisplayName.d.ts +7 -35
  575. package/script/api/exchange/_methods/setDisplayName.d.ts.map +1 -1
  576. package/script/api/exchange/_methods/setDisplayName.js +8 -9
  577. package/script/api/exchange/_methods/setDisplayName.js.map +1 -1
  578. package/script/api/exchange/_methods/setReferrer.d.ts +7 -32
  579. package/script/api/exchange/_methods/setReferrer.d.ts.map +1 -1
  580. package/script/api/exchange/_methods/setReferrer.js +8 -9
  581. package/script/api/exchange/_methods/setReferrer.js.map +1 -1
  582. package/script/api/exchange/_methods/spotDeploy.d.ts +22 -430
  583. package/script/api/exchange/_methods/spotDeploy.d.ts.map +1 -1
  584. package/script/api/exchange/_methods/spotDeploy.js +14 -17
  585. package/script/api/exchange/_methods/spotDeploy.js.map +1 -1
  586. package/script/api/exchange/_methods/spotSend.d.ts +16 -14
  587. package/script/api/exchange/_methods/spotSend.d.ts.map +1 -1
  588. package/script/api/exchange/_methods/spotSend.js +10 -13
  589. package/script/api/exchange/_methods/spotSend.js.map +1 -1
  590. package/script/api/exchange/_methods/spotUser.d.ts +7 -45
  591. package/script/api/exchange/_methods/spotUser.d.ts.map +1 -1
  592. package/script/api/exchange/_methods/spotUser.js +8 -9
  593. package/script/api/exchange/_methods/spotUser.js.map +1 -1
  594. package/script/api/exchange/_methods/subAccountModify.d.ts +8 -39
  595. package/script/api/exchange/_methods/subAccountModify.d.ts.map +1 -1
  596. package/script/api/exchange/_methods/subAccountModify.js +9 -9
  597. package/script/api/exchange/_methods/subAccountModify.js.map +1 -1
  598. package/script/api/exchange/_methods/subAccountSpotTransfer.d.ts +10 -58
  599. package/script/api/exchange/_methods/subAccountSpotTransfer.d.ts.map +1 -1
  600. package/script/api/exchange/_methods/subAccountSpotTransfer.js +11 -14
  601. package/script/api/exchange/_methods/subAccountSpotTransfer.js.map +1 -1
  602. package/script/api/exchange/_methods/subAccountTransfer.d.ts +9 -46
  603. package/script/api/exchange/_methods/subAccountTransfer.d.ts.map +1 -1
  604. package/script/api/exchange/_methods/subAccountTransfer.js +10 -9
  605. package/script/api/exchange/_methods/subAccountTransfer.js.map +1 -1
  606. package/script/api/exchange/_methods/tokenDelegate.d.ts +16 -10
  607. package/script/api/exchange/_methods/tokenDelegate.d.ts.map +1 -1
  608. package/script/api/exchange/_methods/tokenDelegate.js +10 -9
  609. package/script/api/exchange/_methods/tokenDelegate.js.map +1 -1
  610. package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts +8 -39
  611. package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts.map +1 -1
  612. package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.js +9 -9
  613. package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.js.map +1 -1
  614. package/script/api/exchange/_methods/twapCancel.d.ts +8 -39
  615. package/script/api/exchange/_methods/twapCancel.d.ts.map +1 -1
  616. package/script/api/exchange/_methods/twapCancel.js +9 -9
  617. package/script/api/exchange/_methods/twapCancel.js.map +1 -1
  618. package/script/api/exchange/_methods/twapOrder.d.ts +13 -88
  619. package/script/api/exchange/_methods/twapOrder.d.ts.map +1 -1
  620. package/script/api/exchange/_methods/twapOrder.js +14 -17
  621. package/script/api/exchange/_methods/twapOrder.js.map +1 -1
  622. package/script/api/exchange/_methods/updateIsolatedMargin.d.ts +9 -46
  623. package/script/api/exchange/_methods/updateIsolatedMargin.d.ts.map +1 -1
  624. package/script/api/exchange/_methods/updateIsolatedMargin.js +10 -9
  625. package/script/api/exchange/_methods/updateIsolatedMargin.js.map +1 -1
  626. package/script/api/exchange/_methods/updateLeverage.d.ts +9 -46
  627. package/script/api/exchange/_methods/updateLeverage.d.ts.map +1 -1
  628. package/script/api/exchange/_methods/updateLeverage.js +10 -9
  629. package/script/api/exchange/_methods/updateLeverage.js.map +1 -1
  630. package/script/api/exchange/_methods/usdClassTransfer.d.ts +15 -10
  631. package/script/api/exchange/_methods/usdClassTransfer.d.ts.map +1 -1
  632. package/script/api/exchange/_methods/usdClassTransfer.js +9 -9
  633. package/script/api/exchange/_methods/usdClassTransfer.js.map +1 -1
  634. package/script/api/exchange/_methods/usdSend.d.ts +15 -10
  635. package/script/api/exchange/_methods/usdSend.d.ts.map +1 -1
  636. package/script/api/exchange/_methods/usdSend.js +9 -9
  637. package/script/api/exchange/_methods/usdSend.js.map +1 -1
  638. package/script/api/exchange/_methods/userDexAbstraction.d.ts +15 -10
  639. package/script/api/exchange/_methods/userDexAbstraction.d.ts.map +1 -1
  640. package/script/api/exchange/_methods/userDexAbstraction.js +9 -9
  641. package/script/api/exchange/_methods/userDexAbstraction.js.map +1 -1
  642. package/script/api/exchange/_methods/userPortfolioMargin.d.ts +15 -10
  643. package/script/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -1
  644. package/script/api/exchange/_methods/userPortfolioMargin.js +9 -9
  645. package/script/api/exchange/_methods/userPortfolioMargin.js.map +1 -1
  646. package/script/api/exchange/_methods/userSetAbstraction.d.ts +15 -10
  647. package/script/api/exchange/_methods/userSetAbstraction.d.ts.map +1 -1
  648. package/script/api/exchange/_methods/userSetAbstraction.js +9 -9
  649. package/script/api/exchange/_methods/userSetAbstraction.js.map +1 -1
  650. package/script/api/exchange/_methods/validatorL1Stream.d.ts +7 -32
  651. package/script/api/exchange/_methods/validatorL1Stream.d.ts.map +1 -1
  652. package/script/api/exchange/_methods/validatorL1Stream.js +8 -9
  653. package/script/api/exchange/_methods/validatorL1Stream.js.map +1 -1
  654. package/script/api/exchange/_methods/vaultDistribute.d.ts +8 -42
  655. package/script/api/exchange/_methods/vaultDistribute.d.ts.map +1 -1
  656. package/script/api/exchange/_methods/vaultDistribute.js +9 -9
  657. package/script/api/exchange/_methods/vaultDistribute.js.map +1 -1
  658. package/script/api/exchange/_methods/vaultModify.d.ts +9 -50
  659. package/script/api/exchange/_methods/vaultModify.d.ts.map +1 -1
  660. package/script/api/exchange/_methods/vaultModify.js +10 -13
  661. package/script/api/exchange/_methods/vaultModify.js.map +1 -1
  662. package/script/api/exchange/_methods/vaultTransfer.d.ts +9 -46
  663. package/script/api/exchange/_methods/vaultTransfer.d.ts.map +1 -1
  664. package/script/api/exchange/_methods/vaultTransfer.js +10 -9
  665. package/script/api/exchange/_methods/vaultTransfer.js.map +1 -1
  666. package/script/api/exchange/_methods/withdraw3.d.ts +15 -10
  667. package/script/api/exchange/_methods/withdraw3.d.ts.map +1 -1
  668. package/script/api/exchange/_methods/withdraw3.js +9 -9
  669. package/script/api/exchange/_methods/withdraw3.js.map +1 -1
  670. package/script/api/exchange/mod.d.ts +1 -1
  671. package/script/api/exchange/mod.d.ts.map +1 -1
  672. package/script/api/info/_methods/activeAssetData.d.ts +4 -4
  673. package/script/api/info/_methods/activeAssetData.js +4 -4
  674. package/script/api/info/_methods/alignedQuoteTokenInfo.d.ts +3 -4
  675. package/script/api/info/_methods/alignedQuoteTokenInfo.d.ts.map +1 -1
  676. package/script/api/info/_methods/alignedQuoteTokenInfo.js +3 -4
  677. package/script/api/info/_methods/alignedQuoteTokenInfo.js.map +1 -1
  678. package/script/api/info/_methods/approvedBuilders.d.ts +3 -4
  679. package/script/api/info/_methods/approvedBuilders.d.ts.map +1 -1
  680. package/script/api/info/_methods/approvedBuilders.js +3 -4
  681. package/script/api/info/_methods/approvedBuilders.js.map +1 -1
  682. package/script/api/info/_methods/blockDetails.d.ts +3 -4
  683. package/script/api/info/_methods/blockDetails.d.ts.map +1 -1
  684. package/script/api/info/_methods/blockDetails.js +3 -4
  685. package/script/api/info/_methods/blockDetails.js.map +1 -1
  686. package/script/api/info/_methods/borrowLendReserveState.d.ts +3 -4
  687. package/script/api/info/_methods/borrowLendReserveState.d.ts.map +1 -1
  688. package/script/api/info/_methods/borrowLendReserveState.js +3 -4
  689. package/script/api/info/_methods/borrowLendReserveState.js.map +1 -1
  690. package/script/api/info/_methods/borrowLendUserState.d.ts +3 -4
  691. package/script/api/info/_methods/borrowLendUserState.d.ts.map +1 -1
  692. package/script/api/info/_methods/borrowLendUserState.js +3 -4
  693. package/script/api/info/_methods/borrowLendUserState.js.map +1 -1
  694. package/script/api/info/_methods/candleSnapshot.d.ts +5 -8
  695. package/script/api/info/_methods/candleSnapshot.d.ts.map +1 -1
  696. package/script/api/info/_methods/candleSnapshot.js +5 -8
  697. package/script/api/info/_methods/candleSnapshot.js.map +1 -1
  698. package/script/api/info/_methods/clearinghouseState.d.ts +3 -4
  699. package/script/api/info/_methods/clearinghouseState.d.ts.map +1 -1
  700. package/script/api/info/_methods/clearinghouseState.js +3 -4
  701. package/script/api/info/_methods/clearinghouseState.js.map +1 -1
  702. package/script/api/info/_methods/delegations.d.ts +3 -4
  703. package/script/api/info/_methods/delegations.d.ts.map +1 -1
  704. package/script/api/info/_methods/delegations.js +3 -4
  705. package/script/api/info/_methods/delegations.js.map +1 -1
  706. package/script/api/info/_methods/delegatorHistory.d.ts +3 -4
  707. package/script/api/info/_methods/delegatorHistory.d.ts.map +1 -1
  708. package/script/api/info/_methods/delegatorHistory.js +3 -4
  709. package/script/api/info/_methods/delegatorHistory.js.map +1 -1
  710. package/script/api/info/_methods/delegatorRewards.d.ts +3 -4
  711. package/script/api/info/_methods/delegatorRewards.d.ts.map +1 -1
  712. package/script/api/info/_methods/delegatorRewards.js +3 -4
  713. package/script/api/info/_methods/delegatorRewards.js.map +1 -1
  714. package/script/api/info/_methods/delegatorSummary.d.ts +3 -4
  715. package/script/api/info/_methods/delegatorSummary.d.ts.map +1 -1
  716. package/script/api/info/_methods/delegatorSummary.js +3 -4
  717. package/script/api/info/_methods/delegatorSummary.js.map +1 -1
  718. package/script/api/info/_methods/extraAgents.d.ts +3 -4
  719. package/script/api/info/_methods/extraAgents.d.ts.map +1 -1
  720. package/script/api/info/_methods/extraAgents.js +3 -4
  721. package/script/api/info/_methods/extraAgents.js.map +1 -1
  722. package/script/api/info/_methods/frontendOpenOrders.d.ts +3 -4
  723. package/script/api/info/_methods/frontendOpenOrders.d.ts.map +1 -1
  724. package/script/api/info/_methods/frontendOpenOrders.js +3 -4
  725. package/script/api/info/_methods/frontendOpenOrders.js.map +1 -1
  726. package/script/api/info/_methods/fundingHistory.d.ts +4 -7
  727. package/script/api/info/_methods/fundingHistory.d.ts.map +1 -1
  728. package/script/api/info/_methods/fundingHistory.js +4 -7
  729. package/script/api/info/_methods/fundingHistory.js.map +1 -1
  730. package/script/api/info/_methods/historicalOrders.d.ts +3 -4
  731. package/script/api/info/_methods/historicalOrders.d.ts.map +1 -1
  732. package/script/api/info/_methods/historicalOrders.js +3 -4
  733. package/script/api/info/_methods/historicalOrders.js.map +1 -1
  734. package/script/api/info/_methods/isVip.d.ts +3 -4
  735. package/script/api/info/_methods/isVip.d.ts.map +1 -1
  736. package/script/api/info/_methods/isVip.js +3 -4
  737. package/script/api/info/_methods/isVip.js.map +1 -1
  738. package/script/api/info/_methods/l2Book.d.ts +4 -4
  739. package/script/api/info/_methods/l2Book.js +4 -4
  740. package/script/api/info/_methods/leadingVaults.d.ts +3 -4
  741. package/script/api/info/_methods/leadingVaults.d.ts.map +1 -1
  742. package/script/api/info/_methods/leadingVaults.js +3 -4
  743. package/script/api/info/_methods/leadingVaults.js.map +1 -1
  744. package/script/api/info/_methods/legalCheck.d.ts +3 -4
  745. package/script/api/info/_methods/legalCheck.d.ts.map +1 -1
  746. package/script/api/info/_methods/legalCheck.js +3 -4
  747. package/script/api/info/_methods/legalCheck.js.map +1 -1
  748. package/script/api/info/_methods/marginTable.d.ts +3 -4
  749. package/script/api/info/_methods/marginTable.d.ts.map +1 -1
  750. package/script/api/info/_methods/marginTable.js +3 -4
  751. package/script/api/info/_methods/marginTable.js.map +1 -1
  752. package/script/api/info/_methods/maxBuilderFee.d.ts +4 -4
  753. package/script/api/info/_methods/maxBuilderFee.js +4 -4
  754. package/script/api/info/_methods/openOrders.d.ts +3 -4
  755. package/script/api/info/_methods/openOrders.d.ts.map +1 -1
  756. package/script/api/info/_methods/openOrders.js +3 -4
  757. package/script/api/info/_methods/openOrders.js.map +1 -1
  758. package/script/api/info/_methods/orderStatus.d.ts +4 -4
  759. package/script/api/info/_methods/orderStatus.js +4 -4
  760. package/script/api/info/_methods/outcomeMeta.d.ts +3 -1
  761. package/script/api/info/_methods/outcomeMeta.d.ts.map +1 -1
  762. package/script/api/info/_methods/outcomeMeta.js.map +1 -1
  763. package/script/api/info/_methods/perpAnnotation.d.ts +7 -1
  764. package/script/api/info/_methods/perpAnnotation.d.ts.map +1 -1
  765. package/script/api/info/_methods/perpAnnotation.js +3 -1
  766. package/script/api/info/_methods/perpAnnotation.js.map +1 -1
  767. package/script/api/info/_methods/perpConciseAnnotations.d.ts +52 -0
  768. package/script/api/info/_methods/perpConciseAnnotations.d.ts.map +1 -0
  769. package/script/api/info/_methods/perpConciseAnnotations.js +84 -0
  770. package/script/api/info/_methods/perpConciseAnnotations.js.map +1 -0
  771. package/script/api/info/_methods/perpDexLimits.d.ts +3 -4
  772. package/script/api/info/_methods/perpDexLimits.d.ts.map +1 -1
  773. package/script/api/info/_methods/perpDexLimits.js +3 -4
  774. package/script/api/info/_methods/perpDexLimits.js.map +1 -1
  775. package/script/api/info/_methods/perpDexStatus.d.ts +3 -1
  776. package/script/api/info/_methods/perpDexStatus.d.ts.map +1 -1
  777. package/script/api/info/_methods/perpDexStatus.js +3 -1
  778. package/script/api/info/_methods/perpDexStatus.js.map +1 -1
  779. package/script/api/info/_methods/portfolio.d.ts +3 -4
  780. package/script/api/info/_methods/portfolio.d.ts.map +1 -1
  781. package/script/api/info/_methods/portfolio.js +3 -4
  782. package/script/api/info/_methods/portfolio.js.map +1 -1
  783. package/script/api/info/_methods/preTransferCheck.d.ts +4 -4
  784. package/script/api/info/_methods/preTransferCheck.js +4 -4
  785. package/script/api/info/_methods/recentTrades.d.ts +3 -4
  786. package/script/api/info/_methods/recentTrades.d.ts.map +1 -1
  787. package/script/api/info/_methods/recentTrades.js +3 -4
  788. package/script/api/info/_methods/recentTrades.js.map +1 -1
  789. package/script/api/info/_methods/referral.d.ts +3 -4
  790. package/script/api/info/_methods/referral.d.ts.map +1 -1
  791. package/script/api/info/_methods/referral.js +3 -4
  792. package/script/api/info/_methods/referral.js.map +1 -1
  793. package/script/api/info/_methods/spotClearinghouseState.d.ts +3 -4
  794. package/script/api/info/_methods/spotClearinghouseState.d.ts.map +1 -1
  795. package/script/api/info/_methods/spotClearinghouseState.js +3 -4
  796. package/script/api/info/_methods/spotClearinghouseState.js.map +1 -1
  797. package/script/api/info/_methods/spotDeployState.d.ts +3 -4
  798. package/script/api/info/_methods/spotDeployState.d.ts.map +1 -1
  799. package/script/api/info/_methods/spotDeployState.js +3 -4
  800. package/script/api/info/_methods/spotDeployState.js.map +1 -1
  801. package/script/api/info/_methods/subAccounts.d.ts +3 -4
  802. package/script/api/info/_methods/subAccounts.d.ts.map +1 -1
  803. package/script/api/info/_methods/subAccounts.js +3 -4
  804. package/script/api/info/_methods/subAccounts.js.map +1 -1
  805. package/script/api/info/_methods/subAccounts2.d.ts +3 -4
  806. package/script/api/info/_methods/subAccounts2.d.ts.map +1 -1
  807. package/script/api/info/_methods/subAccounts2.js +3 -4
  808. package/script/api/info/_methods/subAccounts2.js.map +1 -1
  809. package/script/api/info/_methods/tokenDetails.d.ts +3 -4
  810. package/script/api/info/_methods/tokenDetails.d.ts.map +1 -1
  811. package/script/api/info/_methods/tokenDetails.js +3 -4
  812. package/script/api/info/_methods/tokenDetails.js.map +1 -1
  813. package/script/api/info/_methods/twapHistory.d.ts +3 -4
  814. package/script/api/info/_methods/twapHistory.d.ts.map +1 -1
  815. package/script/api/info/_methods/twapHistory.js +3 -4
  816. package/script/api/info/_methods/twapHistory.js.map +1 -1
  817. package/script/api/info/_methods/txDetails.d.ts +3 -4
  818. package/script/api/info/_methods/txDetails.d.ts.map +1 -1
  819. package/script/api/info/_methods/txDetails.js +3 -4
  820. package/script/api/info/_methods/txDetails.js.map +1 -1
  821. package/script/api/info/_methods/userAbstraction.d.ts +3 -4
  822. package/script/api/info/_methods/userAbstraction.d.ts.map +1 -1
  823. package/script/api/info/_methods/userAbstraction.js +3 -4
  824. package/script/api/info/_methods/userAbstraction.js.map +1 -1
  825. package/script/api/info/_methods/userBorrowLendInterest.d.ts +4 -7
  826. package/script/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -1
  827. package/script/api/info/_methods/userBorrowLendInterest.js +4 -7
  828. package/script/api/info/_methods/userBorrowLendInterest.js.map +1 -1
  829. package/script/api/info/_methods/userDetails.d.ts +3 -4
  830. package/script/api/info/_methods/userDetails.d.ts.map +1 -1
  831. package/script/api/info/_methods/userDetails.js +3 -4
  832. package/script/api/info/_methods/userDetails.js.map +1 -1
  833. package/script/api/info/_methods/userDexAbstraction.d.ts +3 -4
  834. package/script/api/info/_methods/userDexAbstraction.d.ts.map +1 -1
  835. package/script/api/info/_methods/userDexAbstraction.js +3 -4
  836. package/script/api/info/_methods/userDexAbstraction.js.map +1 -1
  837. package/script/api/info/_methods/userFees.d.ts +3 -4
  838. package/script/api/info/_methods/userFees.d.ts.map +1 -1
  839. package/script/api/info/_methods/userFees.js +3 -4
  840. package/script/api/info/_methods/userFees.js.map +1 -1
  841. package/script/api/info/_methods/userFills.d.ts +3 -4
  842. package/script/api/info/_methods/userFills.d.ts.map +1 -1
  843. package/script/api/info/_methods/userFills.js +3 -4
  844. package/script/api/info/_methods/userFills.js.map +1 -1
  845. package/script/api/info/_methods/userFillsByTime.d.ts +4 -7
  846. package/script/api/info/_methods/userFillsByTime.d.ts.map +1 -1
  847. package/script/api/info/_methods/userFillsByTime.js +4 -7
  848. package/script/api/info/_methods/userFillsByTime.js.map +1 -1
  849. package/script/api/info/_methods/userFunding.d.ts +3 -4
  850. package/script/api/info/_methods/userFunding.d.ts.map +1 -1
  851. package/script/api/info/_methods/userFunding.js +3 -4
  852. package/script/api/info/_methods/userFunding.js.map +1 -1
  853. package/script/api/info/_methods/userNonFundingLedgerUpdates.d.ts +17 -5
  854. package/script/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
  855. package/script/api/info/_methods/userNonFundingLedgerUpdates.js +3 -4
  856. package/script/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
  857. package/script/api/info/_methods/userRateLimit.d.ts +3 -4
  858. package/script/api/info/_methods/userRateLimit.d.ts.map +1 -1
  859. package/script/api/info/_methods/userRateLimit.js +3 -4
  860. package/script/api/info/_methods/userRateLimit.js.map +1 -1
  861. package/script/api/info/_methods/userRole.d.ts +3 -4
  862. package/script/api/info/_methods/userRole.d.ts.map +1 -1
  863. package/script/api/info/_methods/userRole.js +3 -4
  864. package/script/api/info/_methods/userRole.js.map +1 -1
  865. package/script/api/info/_methods/userToMultiSigSigners.d.ts +3 -4
  866. package/script/api/info/_methods/userToMultiSigSigners.d.ts.map +1 -1
  867. package/script/api/info/_methods/userToMultiSigSigners.js +3 -4
  868. package/script/api/info/_methods/userToMultiSigSigners.js.map +1 -1
  869. package/script/api/info/_methods/userTwapSliceFills.d.ts +3 -4
  870. package/script/api/info/_methods/userTwapSliceFills.d.ts.map +1 -1
  871. package/script/api/info/_methods/userTwapSliceFills.js +3 -4
  872. package/script/api/info/_methods/userTwapSliceFills.js.map +1 -1
  873. package/script/api/info/_methods/userTwapSliceFillsByTime.d.ts +4 -7
  874. package/script/api/info/_methods/userTwapSliceFillsByTime.d.ts.map +1 -1
  875. package/script/api/info/_methods/userTwapSliceFillsByTime.js +4 -7
  876. package/script/api/info/_methods/userTwapSliceFillsByTime.js.map +1 -1
  877. package/script/api/info/_methods/userVaultEquities.d.ts +3 -4
  878. package/script/api/info/_methods/userVaultEquities.d.ts.map +1 -1
  879. package/script/api/info/_methods/userVaultEquities.js +3 -4
  880. package/script/api/info/_methods/userVaultEquities.js.map +1 -1
  881. package/script/api/info/_methods/vaultDetails.d.ts +3 -4
  882. package/script/api/info/_methods/vaultDetails.d.ts.map +1 -1
  883. package/script/api/info/_methods/vaultDetails.js +3 -4
  884. package/script/api/info/_methods/vaultDetails.js.map +1 -1
  885. package/script/api/info/_methods/webData2.d.ts +3 -4
  886. package/script/api/info/_methods/webData2.d.ts.map +1 -1
  887. package/script/api/info/_methods/webData2.js +3 -4
  888. package/script/api/info/_methods/webData2.js.map +1 -1
  889. package/script/api/info/client.d.ts +24 -0
  890. package/script/api/info/client.d.ts.map +1 -1
  891. package/script/api/info/client.js +25 -0
  892. package/script/api/info/client.js.map +1 -1
  893. package/script/api/info/mod.d.ts +1 -0
  894. package/script/api/info/mod.d.ts.map +1 -1
  895. package/script/api/info/mod.js +1 -0
  896. package/script/api/info/mod.js.map +1 -1
  897. package/script/api/subscription/_methods/l2Book.d.ts +19 -33
  898. package/script/api/subscription/_methods/l2Book.d.ts.map +1 -1
  899. package/script/api/subscription/_methods/l2Book.js +2 -3
  900. package/script/api/subscription/_methods/l2Book.js.map +1 -1
  901. package/script/api/subscription/_methods/spotState.d.ts +1 -1
  902. package/script/api/subscription/_methods/spotState.js +2 -2
  903. package/script/api/subscription/_methods/spotState.js.map +1 -1
  904. package/script/api/subscription/_methods/userFundings.d.ts +1 -1
  905. package/script/api/subscription/_methods/userFundings.d.ts.map +1 -1
  906. package/script/signing/_abstractWallet.d.ts.map +1 -1
  907. package/script/signing/_abstractWallet.js +11 -1
  908. package/script/signing/_abstractWallet.js.map +1 -1
  909. package/script/transport/websocket/_postRequest.d.ts.map +1 -1
  910. package/script/transport/websocket/_postRequest.js +9 -0
  911. package/script/transport/websocket/_postRequest.js.map +1 -1
  912. package/script/utils/_format.d.ts +1 -0
  913. package/script/utils/_format.d.ts.map +1 -1
  914. package/script/utils/_format.js +1 -0
  915. package/script/utils/_format.js.map +1 -1
  916. package/script/utils/mod.d.ts +1 -1
  917. package/script/utils/mod.d.ts.map +1 -1
  918. package/script/utils/mod.js +4 -1
  919. package/script/utils/mod.js.map +1 -1
  920. package/src/_base.ts +1 -1
  921. package/src/api/_schemas.ts +1 -16
  922. package/src/api/exchange/_methods/_base/execute.ts +3 -1
  923. package/src/api/exchange/_methods/agentEnableDexAbstraction.ts +8 -1
  924. package/src/api/exchange/_methods/agentSetAbstraction.ts +9 -13
  925. package/src/api/exchange/_methods/approveAgent.ts +14 -22
  926. package/src/api/exchange/_methods/approveBuilderFee.ts +10 -15
  927. package/src/api/exchange/_methods/batchModify.ts +20 -26
  928. package/src/api/exchange/_methods/borrowLend.ts +11 -13
  929. package/src/api/exchange/_methods/cDeposit.ts +9 -15
  930. package/src/api/exchange/_methods/cSignerAction.ts +14 -16
  931. package/src/api/exchange/_methods/cValidatorAction.ts +18 -21
  932. package/src/api/exchange/_methods/cWithdraw.ts +9 -15
  933. package/src/api/exchange/_methods/cancel.ts +9 -13
  934. package/src/api/exchange/_methods/cancelByCloid.ts +11 -17
  935. package/src/api/exchange/_methods/claimRewards.ts +8 -1
  936. package/src/api/exchange/_methods/convertToMultiSigUser.ts +14 -23
  937. package/src/api/exchange/_methods/createSubAccount.ts +9 -13
  938. package/src/api/exchange/_methods/createVault.ts +12 -18
  939. package/src/api/exchange/_methods/evmUserModify.ts +9 -13
  940. package/src/api/exchange/_methods/linkStakingUser.ts +10 -15
  941. package/src/api/exchange/_methods/modify.ts +16 -22
  942. package/src/api/exchange/_methods/noop.ts +8 -1
  943. package/src/api/exchange/_methods/order.ts +21 -27
  944. package/src/api/exchange/_methods/perpDeploy.ts +24 -23
  945. package/src/api/exchange/_methods/registerReferrer.ts +9 -13
  946. package/src/api/exchange/_methods/reserveRequestWeight.ts +9 -13
  947. package/src/api/exchange/_methods/scheduleCancel.ts +9 -13
  948. package/src/api/exchange/_methods/sendAsset.ts +13 -21
  949. package/src/api/exchange/_methods/sendToEvmWithData.ts +16 -24
  950. package/src/api/exchange/_methods/setDisplayName.ts +9 -13
  951. package/src/api/exchange/_methods/setReferrer.ts +9 -13
  952. package/src/api/exchange/_methods/spotDeploy.ts +17 -20
  953. package/src/api/exchange/_methods/spotSend.ts +11 -19
  954. package/src/api/exchange/_methods/spotUser.ts +9 -13
  955. package/src/api/exchange/_methods/subAccountModify.ts +10 -13
  956. package/src/api/exchange/_methods/subAccountSpotTransfer.ts +12 -18
  957. package/src/api/exchange/_methods/subAccountTransfer.ts +11 -13
  958. package/src/api/exchange/_methods/tokenDelegate.ts +11 -15
  959. package/src/api/exchange/_methods/topUpIsolatedOnlyMargin.ts +10 -13
  960. package/src/api/exchange/_methods/twapCancel.ts +10 -13
  961. package/src/api/exchange/_methods/twapOrder.ts +15 -21
  962. package/src/api/exchange/_methods/updateIsolatedMargin.ts +11 -13
  963. package/src/api/exchange/_methods/updateLeverage.ts +11 -13
  964. package/src/api/exchange/_methods/usdClassTransfer.ts +10 -15
  965. package/src/api/exchange/_methods/usdSend.ts +10 -15
  966. package/src/api/exchange/_methods/userDexAbstraction.ts +10 -15
  967. package/src/api/exchange/_methods/userPortfolioMargin.ts +10 -15
  968. package/src/api/exchange/_methods/userSetAbstraction.ts +10 -15
  969. package/src/api/exchange/_methods/validatorL1Stream.ts +9 -13
  970. package/src/api/exchange/_methods/vaultDistribute.ts +10 -13
  971. package/src/api/exchange/_methods/vaultModify.ts +11 -17
  972. package/src/api/exchange/_methods/vaultTransfer.ts +11 -13
  973. package/src/api/exchange/_methods/withdraw3.ts +10 -15
  974. package/src/api/exchange/mod.ts +1 -1
  975. package/src/api/info/_methods/activeAssetData.ts +4 -4
  976. package/src/api/info/_methods/alignedQuoteTokenInfo.ts +3 -4
  977. package/src/api/info/_methods/approvedBuilders.ts +3 -4
  978. package/src/api/info/_methods/blockDetails.ts +3 -4
  979. package/src/api/info/_methods/borrowLendReserveState.ts +3 -4
  980. package/src/api/info/_methods/borrowLendUserState.ts +3 -4
  981. package/src/api/info/_methods/candleSnapshot.ts +5 -8
  982. package/src/api/info/_methods/clearinghouseState.ts +3 -4
  983. package/src/api/info/_methods/delegations.ts +3 -4
  984. package/src/api/info/_methods/delegatorHistory.ts +3 -4
  985. package/src/api/info/_methods/delegatorRewards.ts +3 -4
  986. package/src/api/info/_methods/delegatorSummary.ts +3 -4
  987. package/src/api/info/_methods/extraAgents.ts +3 -4
  988. package/src/api/info/_methods/frontendOpenOrders.ts +3 -4
  989. package/src/api/info/_methods/fundingHistory.ts +4 -7
  990. package/src/api/info/_methods/historicalOrders.ts +3 -4
  991. package/src/api/info/_methods/isVip.ts +3 -4
  992. package/src/api/info/_methods/l2Book.ts +4 -4
  993. package/src/api/info/_methods/leadingVaults.ts +3 -4
  994. package/src/api/info/_methods/legalCheck.ts +3 -4
  995. package/src/api/info/_methods/marginTable.ts +3 -4
  996. package/src/api/info/_methods/maxBuilderFee.ts +4 -4
  997. package/src/api/info/_methods/openOrders.ts +3 -4
  998. package/src/api/info/_methods/orderStatus.ts +4 -4
  999. package/src/api/info/_methods/outcomeMeta.ts +3 -1
  1000. package/src/api/info/_methods/perpAnnotation.ts +7 -1
  1001. package/src/api/info/_methods/perpConciseAnnotations.ts +74 -0
  1002. package/src/api/info/_methods/perpDexLimits.ts +3 -4
  1003. package/src/api/info/_methods/perpDexStatus.ts +3 -1
  1004. package/src/api/info/_methods/portfolio.ts +3 -4
  1005. package/src/api/info/_methods/preTransferCheck.ts +4 -4
  1006. package/src/api/info/_methods/recentTrades.ts +3 -4
  1007. package/src/api/info/_methods/referral.ts +3 -4
  1008. package/src/api/info/_methods/spotClearinghouseState.ts +3 -4
  1009. package/src/api/info/_methods/spotDeployState.ts +3 -4
  1010. package/src/api/info/_methods/subAccounts.ts +3 -4
  1011. package/src/api/info/_methods/subAccounts2.ts +3 -4
  1012. package/src/api/info/_methods/tokenDetails.ts +3 -4
  1013. package/src/api/info/_methods/twapHistory.ts +3 -4
  1014. package/src/api/info/_methods/txDetails.ts +3 -4
  1015. package/src/api/info/_methods/userAbstraction.ts +3 -4
  1016. package/src/api/info/_methods/userBorrowLendInterest.ts +4 -7
  1017. package/src/api/info/_methods/userDetails.ts +3 -4
  1018. package/src/api/info/_methods/userDexAbstraction.ts +3 -4
  1019. package/src/api/info/_methods/userFees.ts +3 -4
  1020. package/src/api/info/_methods/userFills.ts +3 -4
  1021. package/src/api/info/_methods/userFillsByTime.ts +4 -7
  1022. package/src/api/info/_methods/userFunding.ts +3 -4
  1023. package/src/api/info/_methods/userNonFundingLedgerUpdates.ts +18 -5
  1024. package/src/api/info/_methods/userRateLimit.ts +3 -4
  1025. package/src/api/info/_methods/userRole.ts +3 -4
  1026. package/src/api/info/_methods/userToMultiSigSigners.ts +3 -4
  1027. package/src/api/info/_methods/userTwapSliceFills.ts +3 -4
  1028. package/src/api/info/_methods/userTwapSliceFillsByTime.ts +4 -7
  1029. package/src/api/info/_methods/userVaultEquities.ts +3 -4
  1030. package/src/api/info/_methods/vaultDetails.ts +3 -4
  1031. package/src/api/info/_methods/webData2.ts +3 -4
  1032. package/src/api/info/client.ts +29 -0
  1033. package/src/api/info/mod.ts +1 -0
  1034. package/src/api/subscription/_methods/l2Book.ts +19 -32
  1035. package/src/api/subscription/_methods/spotState.ts +2 -2
  1036. package/src/api/subscription/_methods/userFundings.ts +1 -1
  1037. package/src/signing/_abstractWallet.ts +11 -3
  1038. package/src/transport/websocket/_postRequest.ts +16 -0
  1039. package/src/utils/_format.ts +1 -1
  1040. package/src/utils/mod.ts +1 -1
@@ -81,16 +81,13 @@ import { parse } from "../../../_base.js";
81
81
  import type { ExcludeErrorResponse } from "./_base/errors.js";
82
82
  import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
83
83
 
84
- /** Schema for user-provided action parameters (excludes system fields). */
85
- const TwapOrderParameters = /* @__PURE__ */ (() => {
86
- return v.omit(
87
- v.object(TwapOrderRequest.entries.action.entries),
88
- ["type"],
89
- );
84
+ /** Schema for action fields (excludes request-level system fields). */
85
+ const TwapOrderActionSchema = /* @__PURE__ */ (() => {
86
+ return v.object(TwapOrderRequest.entries.action.entries);
90
87
  })();
91
88
 
92
89
  /** Action parameters for the {@linkcode twapOrder} function. */
93
- export type TwapOrderParameters = v.InferInput<typeof TwapOrderParameters>;
90
+ export type TwapOrderParameters = Omit<v.InferInput<typeof TwapOrderActionSchema>, "type">;
94
91
 
95
92
  /** Request options for the {@linkcode twapOrder} function. */
96
93
  export type TwapOrderOptions = ExtractRequestOptions<v.InferInput<typeof TwapOrderRequest>>;
@@ -119,19 +116,16 @@ export type TwapOrderSuccessResponse = ExcludeErrorResponse<TwapOrderResponse>;
119
116
  * const wallet = privateKeyToAccount("0x..."); // viem or ethers
120
117
  * const transport = new HttpTransport(); // or `WebSocketTransport`
121
118
  *
122
- * const data = await twapOrder(
123
- * { transport, wallet },
124
- * {
125
- * twap: {
126
- * a: 0,
127
- * b: true,
128
- * s: "1",
129
- * r: false,
130
- * m: 10,
131
- * t: true,
132
- * },
119
+ * const data = await twapOrder({ transport, wallet }, {
120
+ * twap: {
121
+ * a: 0,
122
+ * b: true,
123
+ * s: "1",
124
+ * r: false,
125
+ * m: 10,
126
+ * t: true,
133
127
  * },
134
- * );
128
+ * });
135
129
  * ```
136
130
  *
137
131
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-a-twap-order
@@ -141,6 +135,6 @@ export function twapOrder(
141
135
  params: TwapOrderParameters,
142
136
  opts?: TwapOrderOptions,
143
137
  ): Promise<TwapOrderSuccessResponse> {
144
- const action = parse(TwapOrderParameters, params);
145
- return executeL1Action(config, { type: "twapOrder", ...action }, opts);
138
+ const action = parse(TwapOrderActionSchema, { type: "twapOrder", ...params });
139
+ return executeL1Action(config, action, opts);
146
140
  }
@@ -50,16 +50,13 @@ import { parse } from "../../../_base.js";
50
50
  import type { ExcludeErrorResponse } from "./_base/errors.js";
51
51
  import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
52
52
 
53
- /** Schema for user-provided action parameters (excludes system fields). */
54
- const UpdateIsolatedMarginParameters = /* @__PURE__ */ (() => {
55
- return v.omit(
56
- v.object(UpdateIsolatedMarginRequest.entries.action.entries),
57
- ["type"],
58
- );
53
+ /** Schema for action fields (excludes request-level system fields). */
54
+ const UpdateIsolatedMarginActionSchema = /* @__PURE__ */ (() => {
55
+ return v.object(UpdateIsolatedMarginRequest.entries.action.entries);
59
56
  })();
60
57
 
61
58
  /** Action parameters for the {@linkcode updateIsolatedMargin} function. */
62
- export type UpdateIsolatedMarginParameters = v.InferInput<typeof UpdateIsolatedMarginParameters>;
59
+ export type UpdateIsolatedMarginParameters = Omit<v.InferInput<typeof UpdateIsolatedMarginActionSchema>, "type">;
63
60
 
64
61
  /** Request options for the {@linkcode updateIsolatedMargin} function. */
65
62
  export type UpdateIsolatedMarginOptions = ExtractRequestOptions<v.InferInput<typeof UpdateIsolatedMarginRequest>>;
@@ -88,10 +85,11 @@ export type UpdateIsolatedMarginSuccessResponse = ExcludeErrorResponse<UpdateIso
88
85
  * const wallet = privateKeyToAccount("0x..."); // viem or ethers
89
86
  * const transport = new HttpTransport(); // or `WebSocketTransport`
90
87
  *
91
- * await updateIsolatedMargin(
92
- * { transport, wallet },
93
- * { asset: 0, isBuy: true, ntli: 1 * 1e6 },
94
- * );
88
+ * await updateIsolatedMargin({ transport, wallet }, {
89
+ * asset: 0,
90
+ * isBuy: true,
91
+ * ntli: 1 * 1e6,
92
+ * });
95
93
  * ```
96
94
  *
97
95
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-isolated-margin
@@ -101,6 +99,6 @@ export function updateIsolatedMargin(
101
99
  params: UpdateIsolatedMarginParameters,
102
100
  opts?: UpdateIsolatedMarginOptions,
103
101
  ): Promise<UpdateIsolatedMarginSuccessResponse> {
104
- const action = parse(UpdateIsolatedMarginParameters, params);
105
- return executeL1Action(config, { type: "updateIsolatedMargin", ...action }, opts);
102
+ const action = parse(UpdateIsolatedMarginActionSchema, { type: "updateIsolatedMargin", ...params });
103
+ return executeL1Action(config, action, opts);
106
104
  }
@@ -50,16 +50,13 @@ import { parse } from "../../../_base.js";
50
50
  import type { ExcludeErrorResponse } from "./_base/errors.js";
51
51
  import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
52
52
 
53
- /** Schema for user-provided action parameters (excludes system fields). */
54
- const UpdateLeverageParameters = /* @__PURE__ */ (() => {
55
- return v.omit(
56
- v.object(UpdateLeverageRequest.entries.action.entries),
57
- ["type"],
58
- );
53
+ /** Schema for action fields (excludes request-level system fields). */
54
+ const UpdateLeverageActionSchema = /* @__PURE__ */ (() => {
55
+ return v.object(UpdateLeverageRequest.entries.action.entries);
59
56
  })();
60
57
 
61
58
  /** Action parameters for the {@linkcode updateLeverage} function. */
62
- export type UpdateLeverageParameters = v.InferInput<typeof UpdateLeverageParameters>;
59
+ export type UpdateLeverageParameters = Omit<v.InferInput<typeof UpdateLeverageActionSchema>, "type">;
63
60
 
64
61
  /** Request options for the {@linkcode updateLeverage} function. */
65
62
  export type UpdateLeverageOptions = ExtractRequestOptions<v.InferInput<typeof UpdateLeverageRequest>>;
@@ -88,10 +85,11 @@ export type UpdateLeverageSuccessResponse = ExcludeErrorResponse<UpdateLeverageR
88
85
  * const wallet = privateKeyToAccount("0x..."); // viem or ethers
89
86
  * const transport = new HttpTransport(); // or `WebSocketTransport`
90
87
  *
91
- * await updateLeverage(
92
- * { transport, wallet },
93
- * { asset: 0, isCross: true, leverage: 5 },
94
- * );
88
+ * await updateLeverage({ transport, wallet }, {
89
+ * asset: 0,
90
+ * isCross: true,
91
+ * leverage: 5,
92
+ * });
95
93
  * ```
96
94
  *
97
95
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-leverage
@@ -101,6 +99,6 @@ export function updateLeverage(
101
99
  params: UpdateLeverageParameters,
102
100
  opts?: UpdateLeverageOptions,
103
101
  ): Promise<UpdateLeverageSuccessResponse> {
104
- const action = parse(UpdateLeverageParameters, params);
105
- return executeL1Action(config, { type: "updateLeverage", ...action }, opts);
102
+ const action = parse(UpdateLeverageActionSchema, { type: "updateLeverage", ...params });
103
+ return executeL1Action(config, action, opts);
106
104
  }
@@ -55,16 +55,16 @@ import { parse } from "../../../_base.js";
55
55
  import type { ExcludeErrorResponse } from "./_base/errors.js";
56
56
  import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
57
57
 
58
- /** Schema for user-provided action parameters (excludes system fields). */
59
- const UsdClassTransferParameters = /* @__PURE__ */ (() => {
58
+ /** Schema for action fields (excludes request-level system fields). */
59
+ const UsdClassTransferActionSchema = /* @__PURE__ */ (() => {
60
60
  return v.omit(
61
61
  v.object(UsdClassTransferRequest.entries.action.entries),
62
- ["type", "signatureChainId", "hyperliquidChain", "nonce"],
62
+ ["signatureChainId", "hyperliquidChain", "nonce"],
63
63
  );
64
64
  })();
65
65
 
66
66
  /** Action parameters for the {@linkcode usdClassTransfer} function. */
67
- export type UsdClassTransferParameters = v.InferInput<typeof UsdClassTransferParameters>;
67
+ export type UsdClassTransferParameters = Omit<v.InferInput<typeof UsdClassTransferActionSchema>, "type">;
68
68
 
69
69
  /** Request options for the {@linkcode usdClassTransfer} function. */
70
70
  export type UsdClassTransferOptions = ExtractRequestOptions<v.InferInput<typeof UsdClassTransferRequest>>;
@@ -103,10 +103,10 @@ export const UsdClassTransferTypes = {
103
103
  * const wallet = privateKeyToAccount("0x..."); // viem or ethers
104
104
  * const transport = new HttpTransport(); // or `WebSocketTransport`
105
105
  *
106
- * await usdClassTransfer(
107
- * { transport, wallet },
108
- * { amount: "1", toPerp: true },
109
- * );
106
+ * await usdClassTransfer({ transport, wallet }, {
107
+ * amount: "1",
108
+ * toPerp: true,
109
+ * });
110
110
  * ```
111
111
  *
112
112
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#transfer-from-spot-account-to-perp-account-and-vice-versa
@@ -116,11 +116,6 @@ export function usdClassTransfer(
116
116
  params: UsdClassTransferParameters,
117
117
  opts?: UsdClassTransferOptions,
118
118
  ): Promise<UsdClassTransferSuccessResponse> {
119
- const action = parse(UsdClassTransferParameters, params);
120
- return executeUserSignedAction(
121
- config,
122
- { type: "usdClassTransfer", ...action },
123
- UsdClassTransferTypes,
124
- opts,
125
- );
119
+ const action = parse(UsdClassTransferActionSchema, { type: "usdClassTransfer", ...params });
120
+ return executeUserSignedAction(config, action, UsdClassTransferTypes, opts);
126
121
  }
@@ -55,16 +55,16 @@ import { parse } from "../../../_base.js";
55
55
  import type { ExcludeErrorResponse } from "./_base/errors.js";
56
56
  import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
57
57
 
58
- /** Schema for user-provided action parameters (excludes system fields). */
59
- const UsdSendParameters = /* @__PURE__ */ (() => {
58
+ /** Schema for action fields (excludes request-level system fields). */
59
+ const UsdSendActionSchema = /* @__PURE__ */ (() => {
60
60
  return v.omit(
61
61
  v.object(UsdSendRequest.entries.action.entries),
62
- ["type", "signatureChainId", "hyperliquidChain", "time"],
62
+ ["signatureChainId", "hyperliquidChain", "time"],
63
63
  );
64
64
  })();
65
65
 
66
66
  /** Action parameters for the {@linkcode usdSend} function. */
67
- export type UsdSendParameters = v.InferInput<typeof UsdSendParameters>;
67
+ export type UsdSendParameters = Omit<v.InferInput<typeof UsdSendActionSchema>, "type">;
68
68
 
69
69
  /** Request options for the {@linkcode usdSend} function. */
70
70
  export type UsdSendOptions = ExtractRequestOptions<v.InferInput<typeof UsdSendRequest>>;
@@ -103,10 +103,10 @@ export const UsdSendTypes = {
103
103
  * const wallet = privateKeyToAccount("0x..."); // viem or ethers
104
104
  * const transport = new HttpTransport(); // or `WebSocketTransport`
105
105
  *
106
- * await usdSend(
107
- * { transport, wallet },
108
- * { destination: "0x...", amount: "1" },
109
- * );
106
+ * await usdSend({ transport, wallet }, {
107
+ * destination: "0x...",
108
+ * amount: "1",
109
+ * });
110
110
  * ```
111
111
  *
112
112
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#core-usdc-transfer
@@ -116,11 +116,6 @@ export function usdSend(
116
116
  params: UsdSendParameters,
117
117
  opts?: UsdSendOptions,
118
118
  ): Promise<UsdSendSuccessResponse> {
119
- const action = parse(UsdSendParameters, params);
120
- return executeUserSignedAction(
121
- config,
122
- { type: "usdSend", ...action },
123
- UsdSendTypes,
124
- opts,
125
- );
119
+ const action = parse(UsdSendActionSchema, { type: "usdSend", ...params });
120
+ return executeUserSignedAction(config, action, UsdSendTypes, opts);
126
121
  }
@@ -55,16 +55,16 @@ import { parse } from "../../../_base.js";
55
55
  import type { ExcludeErrorResponse } from "./_base/errors.js";
56
56
  import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
57
57
 
58
- /** Schema for user-provided action parameters (excludes system fields). */
59
- const UserDexAbstractionParameters = /* @__PURE__ */ (() => {
58
+ /** Schema for action fields (excludes request-level system fields). */
59
+ const UserDexAbstractionActionSchema = /* @__PURE__ */ (() => {
60
60
  return v.omit(
61
61
  v.object(UserDexAbstractionRequest.entries.action.entries),
62
- ["type", "signatureChainId", "hyperliquidChain", "nonce"],
62
+ ["signatureChainId", "hyperliquidChain", "nonce"],
63
63
  );
64
64
  })();
65
65
 
66
66
  /** Action parameters for the {@linkcode userDexAbstraction} function. */
67
- export type UserDexAbstractionParameters = v.InferInput<typeof UserDexAbstractionParameters>;
67
+ export type UserDexAbstractionParameters = Omit<v.InferInput<typeof UserDexAbstractionActionSchema>, "type">;
68
68
 
69
69
  /** Request options for the {@linkcode userDexAbstraction} function. */
70
70
  export type UserDexAbstractionOptions = ExtractRequestOptions<
@@ -105,10 +105,10 @@ export const UserDexAbstractionTypes = {
105
105
  * const wallet = privateKeyToAccount("0x..."); // viem or ethers
106
106
  * const transport = new HttpTransport(); // or `WebSocketTransport`
107
107
  *
108
- * await userDexAbstraction(
109
- * { transport, wallet },
110
- * { user: "0x...", enabled: true },
111
- * );
108
+ * await userDexAbstraction({ transport, wallet }, {
109
+ * user: "0x...",
110
+ * enabled: true,
111
+ * });
112
112
  * ```
113
113
  *
114
114
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#enable-hip-3-dex-abstraction
@@ -120,11 +120,6 @@ export function userDexAbstraction(
120
120
  params: UserDexAbstractionParameters,
121
121
  opts?: UserDexAbstractionOptions,
122
122
  ): Promise<UserDexAbstractionSuccessResponse> {
123
- const action = parse(UserDexAbstractionParameters, params);
124
- return executeUserSignedAction(
125
- config,
126
- { type: "userDexAbstraction", ...action },
127
- UserDexAbstractionTypes,
128
- opts,
129
- );
123
+ const action = parse(UserDexAbstractionActionSchema, { type: "userDexAbstraction", ...params });
124
+ return executeUserSignedAction(config, action, UserDexAbstractionTypes, opts);
130
125
  }
@@ -55,16 +55,16 @@ import { parse } from "../../../_base.js";
55
55
  import type { ExcludeErrorResponse } from "./_base/errors.js";
56
56
  import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
57
57
 
58
- /** Schema for user-provided action parameters (excludes system fields). */
59
- const UserPortfolioMarginParameters = /* @__PURE__ */ (() => {
58
+ /** Schema for action fields (excludes request-level system fields). */
59
+ const UserPortfolioMarginActionSchema = /* @__PURE__ */ (() => {
60
60
  return v.omit(
61
61
  v.object(UserPortfolioMarginRequest.entries.action.entries),
62
- ["type", "signatureChainId", "hyperliquidChain", "nonce"],
62
+ ["signatureChainId", "hyperliquidChain", "nonce"],
63
63
  );
64
64
  })();
65
65
 
66
66
  /** Action parameters for the {@linkcode userPortfolioMargin} function. */
67
- export type UserPortfolioMarginParameters = v.InferInput<typeof UserPortfolioMarginParameters>;
67
+ export type UserPortfolioMarginParameters = Omit<v.InferInput<typeof UserPortfolioMarginActionSchema>, "type">;
68
68
 
69
69
  /** Request options for the {@linkcode userPortfolioMargin} function. */
70
70
  export type UserPortfolioMarginOptions = ExtractRequestOptions<v.InferInput<typeof UserPortfolioMarginRequest>>;
@@ -103,10 +103,10 @@ export const UserPortfolioMarginTypes = {
103
103
  * const wallet = privateKeyToAccount("0x..."); // viem or ethers
104
104
  * const transport = new HttpTransport(); // or `WebSocketTransport`
105
105
  *
106
- * await userPortfolioMargin(
107
- * { transport, wallet },
108
- * { user: "0x...", enabled: true },
109
- * );
106
+ * await userPortfolioMargin({ transport, wallet }, {
107
+ * user: "0x...",
108
+ * enabled: true,
109
+ * });
110
110
  * ```
111
111
  *
112
112
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin
@@ -116,11 +116,6 @@ export function userPortfolioMargin(
116
116
  params: UserPortfolioMarginParameters,
117
117
  opts?: UserPortfolioMarginOptions,
118
118
  ): Promise<UserPortfolioMarginSuccessResponse> {
119
- const action = parse(UserPortfolioMarginParameters, params);
120
- return executeUserSignedAction(
121
- config,
122
- { type: "userPortfolioMargin", ...action },
123
- UserPortfolioMarginTypes,
124
- opts,
125
- );
119
+ const action = parse(UserPortfolioMarginActionSchema, { type: "userPortfolioMargin", ...params });
120
+ return executeUserSignedAction(config, action, UserPortfolioMarginTypes, opts);
126
121
  }
@@ -55,16 +55,16 @@ import { parse } from "../../../_base.js";
55
55
  import type { ExcludeErrorResponse } from "./_base/errors.js";
56
56
  import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
57
57
 
58
- /** Schema for user-provided action parameters (excludes system fields). */
59
- const UserSetAbstractionParameters = /* @__PURE__ */ (() => {
58
+ /** Schema for action fields (excludes request-level system fields). */
59
+ const UserSetAbstractionActionSchema = /* @__PURE__ */ (() => {
60
60
  return v.omit(
61
61
  v.object(UserSetAbstractionRequest.entries.action.entries),
62
- ["type", "signatureChainId", "hyperliquidChain", "nonce"],
62
+ ["signatureChainId", "hyperliquidChain", "nonce"],
63
63
  );
64
64
  })();
65
65
 
66
66
  /** Action parameters for the {@linkcode userSetAbstraction} function. */
67
- export type UserSetAbstractionParameters = v.InferInput<typeof UserSetAbstractionParameters>;
67
+ export type UserSetAbstractionParameters = Omit<v.InferInput<typeof UserSetAbstractionActionSchema>, "type">;
68
68
 
69
69
  /** Request options for the {@linkcode userSetAbstraction} function. */
70
70
  export type UserSetAbstractionOptions = ExtractRequestOptions<v.InferInput<typeof UserSetAbstractionRequest>>;
@@ -103,10 +103,10 @@ export const UserSetAbstractionTypes = {
103
103
  * const wallet = privateKeyToAccount("0x..."); // viem or ethers
104
104
  * const transport = new HttpTransport(); // or `WebSocketTransport`
105
105
  *
106
- * await userSetAbstraction(
107
- * { transport, wallet },
108
- * { user: "0x...", abstraction: "dexAbstraction" },
109
- * );
106
+ * await userSetAbstraction({ transport, wallet }, {
107
+ * user: "0x...",
108
+ * abstraction: "dexAbstraction",
109
+ * });
110
110
  * ```
111
111
  *
112
112
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#set-user-abstraction
@@ -116,11 +116,6 @@ export function userSetAbstraction(
116
116
  params: UserSetAbstractionParameters,
117
117
  opts?: UserSetAbstractionOptions,
118
118
  ): Promise<UserSetAbstractionSuccessResponse> {
119
- const action = parse(UserSetAbstractionParameters, params);
120
- return executeUserSignedAction(
121
- config,
122
- { type: "userSetAbstraction", ...action },
123
- UserSetAbstractionTypes,
124
- opts,
125
- );
119
+ const action = parse(UserSetAbstractionActionSchema, { type: "userSetAbstraction", ...params });
120
+ return executeUserSignedAction(config, action, UserSetAbstractionTypes, opts);
126
121
  }
@@ -44,16 +44,13 @@ import { parse } from "../../../_base.js";
44
44
  import type { ExcludeErrorResponse } from "./_base/errors.js";
45
45
  import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
46
46
 
47
- /** Schema for user-provided action parameters (excludes system fields). */
48
- const ValidatorL1StreamParameters = /* @__PURE__ */ (() => {
49
- return v.omit(
50
- v.object(ValidatorL1StreamRequest.entries.action.entries),
51
- ["type"],
52
- );
47
+ /** Schema for action fields (excludes request-level system fields). */
48
+ const ValidatorL1StreamActionSchema = /* @__PURE__ */ (() => {
49
+ return v.object(ValidatorL1StreamRequest.entries.action.entries);
53
50
  })();
54
51
 
55
52
  /** Action parameters for the {@linkcode validatorL1Stream} function. */
56
- export type ValidatorL1StreamParameters = v.InferInput<typeof ValidatorL1StreamParameters>;
53
+ export type ValidatorL1StreamParameters = Omit<v.InferInput<typeof ValidatorL1StreamActionSchema>, "type">;
57
54
 
58
55
  /** Request options for the {@linkcode validatorL1Stream} function. */
59
56
  export type ValidatorL1StreamOptions = ExtractRequestOptions<v.InferInput<typeof ValidatorL1StreamRequest>>;
@@ -82,10 +79,9 @@ export type ValidatorL1StreamSuccessResponse = ExcludeErrorResponse<ValidatorL1S
82
79
  * const wallet = privateKeyToAccount("0x..."); // viem or ethers
83
80
  * const transport = new HttpTransport(); // or `WebSocketTransport`
84
81
  *
85
- * await validatorL1Stream(
86
- * { transport, wallet },
87
- * { riskFreeRate: "0.05" },
88
- * );
82
+ * await validatorL1Stream({ transport, wallet }, {
83
+ * riskFreeRate: "0.05",
84
+ * });
89
85
  * ```
90
86
  *
91
87
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#validator-vote-on-risk-free-rate-for-aligned-quote-asset
@@ -95,6 +91,6 @@ export function validatorL1Stream(
95
91
  params: ValidatorL1StreamParameters,
96
92
  opts?: ValidatorL1StreamOptions,
97
93
  ): Promise<ValidatorL1StreamSuccessResponse> {
98
- const action = parse(ValidatorL1StreamParameters, params);
99
- return executeL1Action(config, { type: "validatorL1Stream", ...action }, opts);
94
+ const action = parse(ValidatorL1StreamActionSchema, { type: "validatorL1Stream", ...params });
95
+ return executeL1Action(config, action, opts);
100
96
  }
@@ -49,16 +49,13 @@ import { parse } from "../../../_base.js";
49
49
  import type { ExcludeErrorResponse } from "./_base/errors.js";
50
50
  import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
51
51
 
52
- /** Schema for user-provided action parameters (excludes system fields). */
53
- const VaultDistributeParameters = /* @__PURE__ */ (() => {
54
- return v.omit(
55
- v.object(VaultDistributeRequest.entries.action.entries),
56
- ["type"],
57
- );
52
+ /** Schema for action fields (excludes request-level system fields). */
53
+ const VaultDistributeActionSchema = /* @__PURE__ */ (() => {
54
+ return v.object(VaultDistributeRequest.entries.action.entries);
58
55
  })();
59
56
 
60
57
  /** Action parameters for the {@linkcode vaultDistribute} function. */
61
- export type VaultDistributeParameters = v.InferInput<typeof VaultDistributeParameters>;
58
+ export type VaultDistributeParameters = Omit<v.InferInput<typeof VaultDistributeActionSchema>, "type">;
62
59
 
63
60
  /** Request options for the {@linkcode vaultDistribute} function. */
64
61
  export type VaultDistributeOptions = ExtractRequestOptions<v.InferInput<typeof VaultDistributeRequest>>;
@@ -87,10 +84,10 @@ export type VaultDistributeSuccessResponse = ExcludeErrorResponse<VaultDistribut
87
84
  * const wallet = privateKeyToAccount("0x..."); // viem or ethers
88
85
  * const transport = new HttpTransport(); // or `WebSocketTransport`
89
86
  *
90
- * await vaultDistribute(
91
- * { transport, wallet },
92
- * { vaultAddress: "0x...", usd: 10 * 1e6 },
93
- * );
87
+ * await vaultDistribute({ transport, wallet }, {
88
+ * vaultAddress: "0x...",
89
+ * usd: 10 * 1e6,
90
+ * });
94
91
  * ```
95
92
  *
96
93
  * @see null
@@ -100,6 +97,6 @@ export function vaultDistribute(
100
97
  params: VaultDistributeParameters,
101
98
  opts?: VaultDistributeOptions,
102
99
  ): Promise<VaultDistributeSuccessResponse> {
103
- const action = parse(VaultDistributeParameters, params);
104
- return executeL1Action(config, { type: "vaultDistribute", ...action }, opts);
100
+ const action = parse(VaultDistributeActionSchema, { type: "vaultDistribute", ...params });
101
+ return executeL1Action(config, action, opts);
105
102
  }
@@ -48,16 +48,13 @@ import { parse } from "../../../_base.js";
48
48
  import type { ExcludeErrorResponse } from "./_base/errors.js";
49
49
  import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
50
50
 
51
- /** Schema for user-provided action parameters (excludes system fields). */
52
- const VaultModifyParameters = /* @__PURE__ */ (() => {
53
- return v.omit(
54
- v.object(VaultModifyRequest.entries.action.entries),
55
- ["type"],
56
- );
51
+ /** Schema for action fields (excludes request-level system fields). */
52
+ const VaultModifyActionSchema = /* @__PURE__ */ (() => {
53
+ return v.object(VaultModifyRequest.entries.action.entries);
57
54
  })();
58
55
 
59
56
  /** Action parameters for the {@linkcode vaultModify} function. */
60
- export type VaultModifyParameters = v.InferInput<typeof VaultModifyParameters>;
57
+ export type VaultModifyParameters = Omit<v.InferInput<typeof VaultModifyActionSchema>, "type">;
61
58
 
62
59
  /** Request options for the {@linkcode vaultModify} function. */
63
60
  export type VaultModifyOptions = ExtractRequestOptions<v.InferInput<typeof VaultModifyRequest>>;
@@ -86,14 +83,11 @@ export type VaultModifySuccessResponse = ExcludeErrorResponse<VaultModifyRespons
86
83
  * const wallet = privateKeyToAccount("0x..."); // viem or ethers
87
84
  * const transport = new HttpTransport(); // or `WebSocketTransport`
88
85
  *
89
- * await vaultModify(
90
- * { transport, wallet },
91
- * {
92
- * vaultAddress: "0x...",
93
- * allowDeposits: true,
94
- * alwaysCloseOnWithdraw: false,
95
- * },
96
- * );
86
+ * await vaultModify({ transport, wallet }, {
87
+ * vaultAddress: "0x...",
88
+ * allowDeposits: true,
89
+ * alwaysCloseOnWithdraw: false,
90
+ * });
97
91
  * ```
98
92
  *
99
93
  * @see null
@@ -103,6 +97,6 @@ export function vaultModify(
103
97
  params: VaultModifyParameters,
104
98
  opts?: VaultModifyOptions,
105
99
  ): Promise<VaultModifySuccessResponse> {
106
- const action = parse(VaultModifyParameters, params);
107
- return executeL1Action(config, { type: "vaultModify", ...action }, opts);
100
+ const action = parse(VaultModifyActionSchema, { type: "vaultModify", ...params });
101
+ return executeL1Action(config, action, opts);
108
102
  }
@@ -48,16 +48,13 @@ import { parse } from "../../../_base.js";
48
48
  import type { ExcludeErrorResponse } from "./_base/errors.js";
49
49
  import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
50
50
 
51
- /** Schema for user-provided action parameters (excludes system fields). */
52
- const VaultTransferParameters = /* @__PURE__ */ (() => {
53
- return v.omit(
54
- v.object(VaultTransferRequest.entries.action.entries),
55
- ["type"],
56
- );
51
+ /** Schema for action fields (excludes request-level system fields). */
52
+ const VaultTransferActionSchema = /* @__PURE__ */ (() => {
53
+ return v.object(VaultTransferRequest.entries.action.entries);
57
54
  })();
58
55
 
59
56
  /** Action parameters for the {@linkcode vaultTransfer} function. */
60
- export type VaultTransferParameters = v.InferInput<typeof VaultTransferParameters>;
57
+ export type VaultTransferParameters = Omit<v.InferInput<typeof VaultTransferActionSchema>, "type">;
61
58
 
62
59
  /** Request options for the {@linkcode vaultTransfer} function. */
63
60
  export type VaultTransferOptions = ExtractRequestOptions<v.InferInput<typeof VaultTransferRequest>>;
@@ -86,10 +83,11 @@ export type VaultTransferSuccessResponse = ExcludeErrorResponse<VaultTransferRes
86
83
  * const wallet = privateKeyToAccount("0x..."); // viem or ethers
87
84
  * const transport = new HttpTransport(); // or `WebSocketTransport`
88
85
  *
89
- * await vaultTransfer(
90
- * { transport, wallet },
91
- * { vaultAddress: "0x...", isDeposit: true, usd: 10 * 1e6 },
92
- * );
86
+ * await vaultTransfer({ transport, wallet }, {
87
+ * vaultAddress: "0x...",
88
+ * isDeposit: true,
89
+ * usd: 10 * 1e6,
90
+ * });
93
91
  * ```
94
92
  *
95
93
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#deposit-or-withdraw-from-a-vault
@@ -99,6 +97,6 @@ export function vaultTransfer(
99
97
  params: VaultTransferParameters,
100
98
  opts?: VaultTransferOptions,
101
99
  ): Promise<VaultTransferSuccessResponse> {
102
- const action = parse(VaultTransferParameters, params);
103
- return executeL1Action(config, { type: "vaultTransfer", ...action }, opts);
100
+ const action = parse(VaultTransferActionSchema, { type: "vaultTransfer", ...params });
101
+ return executeL1Action(config, action, opts);
104
102
  }
@@ -55,16 +55,16 @@ import { parse } from "../../../_base.js";
55
55
  import type { ExcludeErrorResponse } from "./_base/errors.js";
56
56
  import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
57
57
 
58
- /** Schema for user-provided action parameters (excludes system fields). */
59
- const Withdraw3Parameters = /* @__PURE__ */ (() => {
58
+ /** Schema for action fields (excludes request-level system fields). */
59
+ const Withdraw3ActionSchema = /* @__PURE__ */ (() => {
60
60
  return v.omit(
61
61
  v.object(Withdraw3Request.entries.action.entries),
62
- ["type", "signatureChainId", "hyperliquidChain", "time"],
62
+ ["signatureChainId", "hyperliquidChain", "time"],
63
63
  );
64
64
  })();
65
65
 
66
66
  /** Action parameters for the {@linkcode withdraw3} function. */
67
- export type Withdraw3Parameters = v.InferInput<typeof Withdraw3Parameters>;
67
+ export type Withdraw3Parameters = Omit<v.InferInput<typeof Withdraw3ActionSchema>, "type">;
68
68
 
69
69
  /** Request options for the {@linkcode withdraw3} function. */
70
70
  export type Withdraw3Options = ExtractRequestOptions<v.InferInput<typeof Withdraw3Request>>;
@@ -103,10 +103,10 @@ export const Withdraw3Types = {
103
103
  * const wallet = privateKeyToAccount("0x..."); // viem or ethers
104
104
  * const transport = new HttpTransport(); // or `WebSocketTransport`
105
105
  *
106
- * await withdraw3(
107
- * { transport, wallet },
108
- * { destination: "0x...", amount: "1" },
109
- * );
106
+ * await withdraw3({ transport, wallet }, {
107
+ * destination: "0x...",
108
+ * amount: "1",
109
+ * });
110
110
  * ```
111
111
  *
112
112
  * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#initiate-a-withdrawal-request
@@ -116,11 +116,6 @@ export function withdraw3(
116
116
  params: Withdraw3Parameters,
117
117
  opts?: Withdraw3Options,
118
118
  ): Promise<Withdraw3SuccessResponse> {
119
- const action = parse(Withdraw3Parameters, params);
120
- return executeUserSignedAction(
121
- config,
122
- { type: "withdraw3", ...action },
123
- Withdraw3Types,
124
- opts,
125
- );
119
+ const action = parse(Withdraw3ActionSchema, { type: "withdraw3", ...params });
120
+ return executeUserSignedAction(config, action, Withdraw3Types, opts);
126
121
  }