@hfunlabs/hyperliquid 0.27.1-hfunlabs.1

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 (1600) hide show
  1. package/CONTRIBUTING.md +56 -0
  2. package/LICENSE +21 -0
  3. package/README.md +1134 -0
  4. package/SECURITY.md +7 -0
  5. package/esm/bin/_utils.d.ts +80 -0
  6. package/esm/bin/_utils.d.ts.map +1 -0
  7. package/esm/bin/_utils.js +108 -0
  8. package/esm/bin/_utils.js.map +1 -0
  9. package/esm/bin/cli.d.ts +3 -0
  10. package/esm/bin/cli.d.ts.map +1 -0
  11. package/esm/bin/cli.js +300 -0
  12. package/esm/bin/cli.js.map +1 -0
  13. package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +9 -0
  14. package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.js +3 -0
  16. package/esm/deps/jsr.io/@std/bytes/1.0.6/_types.js.map +1 -0
  17. package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +21 -0
  18. package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
  19. package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.js +33 -0
  20. package/esm/deps/jsr.io/@std/bytes/1.0.6/concat.js.map +1 -0
  21. package/esm/deps/jsr.io/@std/msgpack/1.0.3/_types.d.ts +9 -0
  22. package/esm/deps/jsr.io/@std/msgpack/1.0.3/_types.d.ts.map +1 -0
  23. package/esm/deps/jsr.io/@std/msgpack/1.0.3/_types.js +3 -0
  24. package/esm/deps/jsr.io/@std/msgpack/1.0.3/_types.js.map +1 -0
  25. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts +21 -0
  26. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts.map +1 -0
  27. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.js +292 -0
  28. package/esm/deps/jsr.io/@std/msgpack/1.0.3/decode.js.map +1 -0
  29. package/esm/deps/jsr.io/@std/msgpack/1.0.3/encode.d.ts +39 -0
  30. package/esm/deps/jsr.io/@std/msgpack/1.0.3/encode.d.ts.map +1 -0
  31. package/esm/deps/jsr.io/@std/msgpack/1.0.3/encode.js +238 -0
  32. package/esm/deps/jsr.io/@std/msgpack/1.0.3/encode.js.map +1 -0
  33. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts +44 -0
  34. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts.map +1 -0
  35. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.js +46 -0
  36. package/esm/deps/jsr.io/@std/msgpack/1.0.3/mod.js.map +1 -0
  37. package/esm/package.json +3 -0
  38. package/esm/src/_base.d.ts +5 -0
  39. package/esm/src/_base.d.ts.map +1 -0
  40. package/esm/src/_base.js +8 -0
  41. package/esm/src/_base.js.map +1 -0
  42. package/esm/src/api/_base.d.ts +53 -0
  43. package/esm/src/api/_base.d.ts.map +1 -0
  44. package/esm/src/api/_base.js +67 -0
  45. package/esm/src/api/_base.js.map +1 -0
  46. package/esm/src/api/_common_schemas.d.ts +425 -0
  47. package/esm/src/api/_common_schemas.d.ts.map +1 -0
  48. package/esm/src/api/_common_schemas.js +435 -0
  49. package/esm/src/api/_common_schemas.js.map +1 -0
  50. package/esm/src/api/exchange/_base/_errors.d.ts +16 -0
  51. package/esm/src/api/exchange/_base/_errors.d.ts.map +1 -0
  52. package/esm/src/api/exchange/_base/_errors.js +51 -0
  53. package/esm/src/api/exchange/_base/_errors.js.map +1 -0
  54. package/esm/src/api/exchange/_base/_execute.d.ts +43 -0
  55. package/esm/src/api/exchange/_base/_execute.d.ts.map +1 -0
  56. package/esm/src/api/exchange/_base/_execute.js +181 -0
  57. package/esm/src/api/exchange/_base/_execute.js.map +1 -0
  58. package/esm/src/api/exchange/_base/_nonce.d.ts +5 -0
  59. package/esm/src/api/exchange/_base/_nonce.d.ts.map +1 -0
  60. package/esm/src/api/exchange/_base/_nonce.js +28 -0
  61. package/esm/src/api/exchange/_base/_nonce.js.map +1 -0
  62. package/esm/src/api/exchange/_base/_schemas.d.ts +45 -0
  63. package/esm/src/api/exchange/_base/_schemas.d.ts.map +1 -0
  64. package/esm/src/api/exchange/_base/_schemas.js +35 -0
  65. package/esm/src/api/exchange/_base/_schemas.js.map +1 -0
  66. package/esm/src/api/exchange/_base/_types.d.ts +105 -0
  67. package/esm/src/api/exchange/_base/_types.d.ts.map +1 -0
  68. package/esm/src/api/exchange/_base/_types.js +2 -0
  69. package/esm/src/api/exchange/_base/_types.js.map +1 -0
  70. package/esm/src/api/exchange/_base/mod.d.ts +5 -0
  71. package/esm/src/api/exchange/_base/mod.d.ts.map +1 -0
  72. package/esm/src/api/exchange/_base/mod.js +5 -0
  73. package/esm/src/api/exchange/_base/mod.js.map +1 -0
  74. package/esm/src/api/exchange/agentEnableDexAbstraction.d.ts +106 -0
  75. package/esm/src/api/exchange/agentEnableDexAbstraction.d.ts.map +1 -0
  76. package/esm/src/api/exchange/agentEnableDexAbstraction.js +78 -0
  77. package/esm/src/api/exchange/agentEnableDexAbstraction.js.map +1 -0
  78. package/esm/src/api/exchange/approveAgent.d.ts +136 -0
  79. package/esm/src/api/exchange/approveAgent.d.ts.map +1 -0
  80. package/esm/src/api/exchange/approveAgent.js +99 -0
  81. package/esm/src/api/exchange/approveAgent.js.map +1 -0
  82. package/esm/src/api/exchange/approveBuilderFee.d.ts +136 -0
  83. package/esm/src/api/exchange/approveBuilderFee.d.ts.map +1 -0
  84. package/esm/src/api/exchange/approveBuilderFee.js +99 -0
  85. package/esm/src/api/exchange/approveBuilderFee.js.map +1 -0
  86. package/esm/src/api/exchange/batchModify.d.ts +329 -0
  87. package/esm/src/api/exchange/batchModify.d.ts.map +1 -0
  88. package/esm/src/api/exchange/batchModify.js +109 -0
  89. package/esm/src/api/exchange/batchModify.js.map +1 -0
  90. package/esm/src/api/exchange/cDeposit.d.ts +132 -0
  91. package/esm/src/api/exchange/cDeposit.d.ts.map +1 -0
  92. package/esm/src/api/exchange/cDeposit.js +96 -0
  93. package/esm/src/api/exchange/cDeposit.js.map +1 -0
  94. package/esm/src/api/exchange/cSignerAction.d.ts +127 -0
  95. package/esm/src/api/exchange/cSignerAction.d.ts.map +1 -0
  96. package/esm/src/api/exchange/cSignerAction.js +92 -0
  97. package/esm/src/api/exchange/cSignerAction.js.map +1 -0
  98. package/esm/src/api/exchange/cValidatorAction.d.ts +290 -0
  99. package/esm/src/api/exchange/cValidatorAction.d.ts.map +1 -0
  100. package/esm/src/api/exchange/cValidatorAction.js +168 -0
  101. package/esm/src/api/exchange/cValidatorAction.js.map +1 -0
  102. package/esm/src/api/exchange/cWithdraw.d.ts +132 -0
  103. package/esm/src/api/exchange/cWithdraw.d.ts.map +1 -0
  104. package/esm/src/api/exchange/cWithdraw.js +96 -0
  105. package/esm/src/api/exchange/cWithdraw.js.map +1 -0
  106. package/esm/src/api/exchange/cancel.d.ts +150 -0
  107. package/esm/src/api/exchange/cancel.d.ts.map +1 -0
  108. package/esm/src/api/exchange/cancel.js +115 -0
  109. package/esm/src/api/exchange/cancel.js.map +1 -0
  110. package/esm/src/api/exchange/cancelByCloid.d.ts +145 -0
  111. package/esm/src/api/exchange/cancelByCloid.d.ts.map +1 -0
  112. package/esm/src/api/exchange/cancelByCloid.js +95 -0
  113. package/esm/src/api/exchange/cancelByCloid.js.map +1 -0
  114. package/esm/src/api/exchange/claimRewards.d.ts +97 -0
  115. package/esm/src/api/exchange/claimRewards.d.ts.map +1 -0
  116. package/esm/src/api/exchange/claimRewards.js +69 -0
  117. package/esm/src/api/exchange/claimRewards.js.map +1 -0
  118. package/esm/src/api/exchange/convertToMultiSigUser.d.ts +170 -0
  119. package/esm/src/api/exchange/convertToMultiSigUser.d.ts.map +1 -0
  120. package/esm/src/api/exchange/convertToMultiSigUser.js +129 -0
  121. package/esm/src/api/exchange/convertToMultiSigUser.js.map +1 -0
  122. package/esm/src/api/exchange/createSubAccount.d.ts +117 -0
  123. package/esm/src/api/exchange/createSubAccount.d.ts.map +1 -0
  124. package/esm/src/api/exchange/createSubAccount.js +90 -0
  125. package/esm/src/api/exchange/createSubAccount.js.map +1 -0
  126. package/esm/src/api/exchange/createVault.d.ts +133 -0
  127. package/esm/src/api/exchange/createVault.d.ts.map +1 -0
  128. package/esm/src/api/exchange/createVault.js +102 -0
  129. package/esm/src/api/exchange/createVault.js.map +1 -0
  130. package/esm/src/api/exchange/evmUserModify.d.ts +116 -0
  131. package/esm/src/api/exchange/evmUserModify.d.ts.map +1 -0
  132. package/esm/src/api/exchange/evmUserModify.js +84 -0
  133. package/esm/src/api/exchange/evmUserModify.js.map +1 -0
  134. package/esm/src/api/exchange/linkStakingUser.d.ts +144 -0
  135. package/esm/src/api/exchange/linkStakingUser.d.ts.map +1 -0
  136. package/esm/src/api/exchange/linkStakingUser.js +111 -0
  137. package/esm/src/api/exchange/linkStakingUser.js.map +1 -0
  138. package/esm/src/api/exchange/modify.d.ts +222 -0
  139. package/esm/src/api/exchange/modify.d.ts.map +1 -0
  140. package/esm/src/api/exchange/modify.js +104 -0
  141. package/esm/src/api/exchange/modify.js.map +1 -0
  142. package/esm/src/api/exchange/multiSig.d.ts +4314 -0
  143. package/esm/src/api/exchange/multiSig.d.ts.map +1 -0
  144. package/esm/src/api/exchange/multiSig.js +272 -0
  145. package/esm/src/api/exchange/multiSig.js.map +1 -0
  146. package/esm/src/api/exchange/noop.d.ts +106 -0
  147. package/esm/src/api/exchange/noop.d.ts.map +1 -0
  148. package/esm/src/api/exchange/noop.js +78 -0
  149. package/esm/src/api/exchange/noop.js.map +1 -0
  150. package/esm/src/api/exchange/order.d.ts +354 -0
  151. package/esm/src/api/exchange/order.d.ts.map +1 -0
  152. package/esm/src/api/exchange/order.js +162 -0
  153. package/esm/src/api/exchange/order.js.map +1 -0
  154. package/esm/src/api/exchange/perpDeploy.d.ts +400 -0
  155. package/esm/src/api/exchange/perpDeploy.d.ts.map +1 -0
  156. package/esm/src/api/exchange/perpDeploy.js +208 -0
  157. package/esm/src/api/exchange/perpDeploy.js.map +1 -0
  158. package/esm/src/api/exchange/registerReferrer.d.ts +109 -0
  159. package/esm/src/api/exchange/registerReferrer.d.ts.map +1 -0
  160. package/esm/src/api/exchange/registerReferrer.js +77 -0
  161. package/esm/src/api/exchange/registerReferrer.js.map +1 -0
  162. package/esm/src/api/exchange/reserveRequestWeight.d.ts +116 -0
  163. package/esm/src/api/exchange/reserveRequestWeight.d.ts.map +1 -0
  164. package/esm/src/api/exchange/reserveRequestWeight.js +84 -0
  165. package/esm/src/api/exchange/reserveRequestWeight.js.map +1 -0
  166. package/esm/src/api/exchange/scheduleCancel.d.ts +125 -0
  167. package/esm/src/api/exchange/scheduleCancel.d.ts.map +1 -0
  168. package/esm/src/api/exchange/scheduleCancel.js +71 -0
  169. package/esm/src/api/exchange/scheduleCancel.js.map +1 -0
  170. package/esm/src/api/exchange/sendAsset.d.ts +158 -0
  171. package/esm/src/api/exchange/sendAsset.d.ts.map +1 -0
  172. package/esm/src/api/exchange/sendAsset.js +117 -0
  173. package/esm/src/api/exchange/sendAsset.js.map +1 -0
  174. package/esm/src/api/exchange/setDisplayName.d.ts +113 -0
  175. package/esm/src/api/exchange/setDisplayName.d.ts.map +1 -0
  176. package/esm/src/api/exchange/setDisplayName.js +82 -0
  177. package/esm/src/api/exchange/setDisplayName.js.map +1 -0
  178. package/esm/src/api/exchange/setReferrer.d.ts +109 -0
  179. package/esm/src/api/exchange/setReferrer.d.ts.map +1 -0
  180. package/esm/src/api/exchange/setReferrer.js +77 -0
  181. package/esm/src/api/exchange/setReferrer.js.map +1 -0
  182. package/esm/src/api/exchange/spotDeploy.d.ts +389 -0
  183. package/esm/src/api/exchange/spotDeploy.d.ts.map +1 -0
  184. package/esm/src/api/exchange/spotDeploy.js +196 -0
  185. package/esm/src/api/exchange/spotDeploy.js.map +1 -0
  186. package/esm/src/api/exchange/spotSend.d.ts +144 -0
  187. package/esm/src/api/exchange/spotSend.d.ts.map +1 -0
  188. package/esm/src/api/exchange/spotSend.js +106 -0
  189. package/esm/src/api/exchange/spotSend.js.map +1 -0
  190. package/esm/src/api/exchange/spotUser.d.ts +118 -0
  191. package/esm/src/api/exchange/spotUser.d.ts.map +1 -0
  192. package/esm/src/api/exchange/spotUser.js +80 -0
  193. package/esm/src/api/exchange/spotUser.js.map +1 -0
  194. package/esm/src/api/exchange/subAccountModify.d.ts +113 -0
  195. package/esm/src/api/exchange/subAccountModify.d.ts.map +1 -0
  196. package/esm/src/api/exchange/subAccountModify.js +79 -0
  197. package/esm/src/api/exchange/subAccountModify.js.map +1 -0
  198. package/esm/src/api/exchange/subAccountSpotTransfer.d.ts +126 -0
  199. package/esm/src/api/exchange/subAccountSpotTransfer.d.ts.map +1 -0
  200. package/esm/src/api/exchange/subAccountSpotTransfer.js +88 -0
  201. package/esm/src/api/exchange/subAccountSpotTransfer.js.map +1 -0
  202. package/esm/src/api/exchange/subAccountTransfer.d.ts +117 -0
  203. package/esm/src/api/exchange/subAccountTransfer.d.ts.map +1 -0
  204. package/esm/src/api/exchange/subAccountTransfer.js +81 -0
  205. package/esm/src/api/exchange/subAccountTransfer.js.map +1 -0
  206. package/esm/src/api/exchange/tokenDelegate.d.ts +140 -0
  207. package/esm/src/api/exchange/tokenDelegate.d.ts.map +1 -0
  208. package/esm/src/api/exchange/tokenDelegate.js +102 -0
  209. package/esm/src/api/exchange/tokenDelegate.js.map +1 -0
  210. package/esm/src/api/exchange/twapCancel.d.ts +136 -0
  211. package/esm/src/api/exchange/twapCancel.d.ts.map +1 -0
  212. package/esm/src/api/exchange/twapCancel.js +108 -0
  213. package/esm/src/api/exchange/twapCancel.js.map +1 -0
  214. package/esm/src/api/exchange/twapOrder.d.ts +199 -0
  215. package/esm/src/api/exchange/twapOrder.d.ts.map +1 -0
  216. package/esm/src/api/exchange/twapOrder.js +134 -0
  217. package/esm/src/api/exchange/twapOrder.js.map +1 -0
  218. package/esm/src/api/exchange/updateIsolatedMargin.d.ts +127 -0
  219. package/esm/src/api/exchange/updateIsolatedMargin.d.ts.map +1 -0
  220. package/esm/src/api/exchange/updateIsolatedMargin.js +91 -0
  221. package/esm/src/api/exchange/updateIsolatedMargin.js.map +1 -0
  222. package/esm/src/api/exchange/updateLeverage.d.ts +127 -0
  223. package/esm/src/api/exchange/updateLeverage.d.ts.map +1 -0
  224. package/esm/src/api/exchange/updateLeverage.js +91 -0
  225. package/esm/src/api/exchange/updateLeverage.js.map +1 -0
  226. package/esm/src/api/exchange/usdClassTransfer.d.ts +136 -0
  227. package/esm/src/api/exchange/usdClassTransfer.d.ts.map +1 -0
  228. package/esm/src/api/exchange/usdClassTransfer.js +99 -0
  229. package/esm/src/api/exchange/usdClassTransfer.js.map +1 -0
  230. package/esm/src/api/exchange/usdSend.d.ts +136 -0
  231. package/esm/src/api/exchange/usdSend.d.ts.map +1 -0
  232. package/esm/src/api/exchange/usdSend.js +99 -0
  233. package/esm/src/api/exchange/usdSend.js.map +1 -0
  234. package/esm/src/api/exchange/userDexAbstraction.d.ts +136 -0
  235. package/esm/src/api/exchange/userDexAbstraction.d.ts.map +1 -0
  236. package/esm/src/api/exchange/userDexAbstraction.js +99 -0
  237. package/esm/src/api/exchange/userDexAbstraction.js.map +1 -0
  238. package/esm/src/api/exchange/validatorL1Stream.d.ts +116 -0
  239. package/esm/src/api/exchange/validatorL1Stream.d.ts.map +1 -0
  240. package/esm/src/api/exchange/validatorL1Stream.js +84 -0
  241. package/esm/src/api/exchange/validatorL1Stream.js.map +1 -0
  242. package/esm/src/api/exchange/vaultDistribute.d.ts +117 -0
  243. package/esm/src/api/exchange/vaultDistribute.d.ts.map +1 -0
  244. package/esm/src/api/exchange/vaultDistribute.js +84 -0
  245. package/esm/src/api/exchange/vaultDistribute.js.map +1 -0
  246. package/esm/src/api/exchange/vaultModify.d.ts +121 -0
  247. package/esm/src/api/exchange/vaultModify.d.ts.map +1 -0
  248. package/esm/src/api/exchange/vaultModify.js +85 -0
  249. package/esm/src/api/exchange/vaultModify.js.map +1 -0
  250. package/esm/src/api/exchange/vaultTransfer.d.ts +124 -0
  251. package/esm/src/api/exchange/vaultTransfer.d.ts.map +1 -0
  252. package/esm/src/api/exchange/vaultTransfer.js +88 -0
  253. package/esm/src/api/exchange/vaultTransfer.js.map +1 -0
  254. package/esm/src/api/exchange/withdraw3.d.ts +136 -0
  255. package/esm/src/api/exchange/withdraw3.d.ts.map +1 -0
  256. package/esm/src/api/exchange/withdraw3.js +99 -0
  257. package/esm/src/api/exchange/withdraw3.js.map +1 -0
  258. package/esm/src/api/exchange/~client.d.ts +1381 -0
  259. package/esm/src/api/exchange/~client.d.ts.map +1 -0
  260. package/esm/src/api/exchange/~client.js +1445 -0
  261. package/esm/src/api/exchange/~client.js.map +1 -0
  262. package/esm/src/api/exchange/~mod.d.ts +87 -0
  263. package/esm/src/api/exchange/~mod.d.ts.map +1 -0
  264. package/esm/src/api/exchange/~mod.js +87 -0
  265. package/esm/src/api/exchange/~mod.js.map +1 -0
  266. package/esm/src/api/info/_types.d.ts +7 -0
  267. package/esm/src/api/info/_types.d.ts.map +1 -0
  268. package/esm/src/api/info/_types.js +2 -0
  269. package/esm/src/api/info/_types.js.map +1 -0
  270. package/esm/src/api/info/activeAssetData.d.ts +98 -0
  271. package/esm/src/api/info/activeAssetData.d.ts.map +1 -0
  272. package/esm/src/api/info/activeAssetData.js +88 -0
  273. package/esm/src/api/info/activeAssetData.js.map +1 -0
  274. package/esm/src/api/info/alignedQuoteTokenInfo.d.ts +66 -0
  275. package/esm/src/api/info/alignedQuoteTokenInfo.d.ts.map +1 -0
  276. package/esm/src/api/info/alignedQuoteTokenInfo.js +74 -0
  277. package/esm/src/api/info/alignedQuoteTokenInfo.js.map +1 -0
  278. package/esm/src/api/info/allMids.d.ts +49 -0
  279. package/esm/src/api/info/allMids.d.ts.map +1 -0
  280. package/esm/src/api/info/allMids.js +38 -0
  281. package/esm/src/api/info/allMids.js.map +1 -0
  282. package/esm/src/api/info/allPerpMetas.d.ts +145 -0
  283. package/esm/src/api/info/allPerpMetas.d.ts.map +1 -0
  284. package/esm/src/api/info/allPerpMetas.js +51 -0
  285. package/esm/src/api/info/allPerpMetas.js.map +1 -0
  286. package/esm/src/api/info/blockDetails.d.ts +151 -0
  287. package/esm/src/api/info/blockDetails.d.ts.map +1 -0
  288. package/esm/src/api/info/blockDetails.js +94 -0
  289. package/esm/src/api/info/blockDetails.js.map +1 -0
  290. package/esm/src/api/info/candleSnapshot.d.ts +111 -0
  291. package/esm/src/api/info/candleSnapshot.d.ts.map +1 -0
  292. package/esm/src/api/info/candleSnapshot.js +91 -0
  293. package/esm/src/api/info/candleSnapshot.js.map +1 -0
  294. package/esm/src/api/info/clearinghouseState.d.ts +269 -0
  295. package/esm/src/api/info/clearinghouseState.d.ts.map +1 -0
  296. package/esm/src/api/info/clearinghouseState.js +143 -0
  297. package/esm/src/api/info/clearinghouseState.js.map +1 -0
  298. package/esm/src/api/info/delegations.d.ts +64 -0
  299. package/esm/src/api/info/delegations.d.ts.map +1 -0
  300. package/esm/src/api/info/delegations.js +67 -0
  301. package/esm/src/api/info/delegations.js.map +1 -0
  302. package/esm/src/api/info/delegatorHistory.d.ts +142 -0
  303. package/esm/src/api/info/delegatorHistory.d.ts.map +1 -0
  304. package/esm/src/api/info/delegatorHistory.js +95 -0
  305. package/esm/src/api/info/delegatorHistory.js.map +1 -0
  306. package/esm/src/api/info/delegatorRewards.d.ts +64 -0
  307. package/esm/src/api/info/delegatorRewards.d.ts.map +1 -0
  308. package/esm/src/api/info/delegatorRewards.js +67 -0
  309. package/esm/src/api/info/delegatorRewards.js.map +1 -0
  310. package/esm/src/api/info/delegatorSummary.d.ts +63 -0
  311. package/esm/src/api/info/delegatorSummary.d.ts.map +1 -0
  312. package/esm/src/api/info/delegatorSummary.js +67 -0
  313. package/esm/src/api/info/delegatorSummary.js.map +1 -0
  314. package/esm/src/api/info/exchangeStatus.d.ts +46 -0
  315. package/esm/src/api/info/exchangeStatus.d.ts.map +1 -0
  316. package/esm/src/api/info/exchangeStatus.js +55 -0
  317. package/esm/src/api/info/exchangeStatus.js.map +1 -0
  318. package/esm/src/api/info/extraAgents.d.ts +64 -0
  319. package/esm/src/api/info/extraAgents.d.ts.map +1 -0
  320. package/esm/src/api/info/extraAgents.js +67 -0
  321. package/esm/src/api/info/extraAgents.js.map +1 -0
  322. package/esm/src/api/info/frontendOpenOrders.d.ts +103 -0
  323. package/esm/src/api/info/frontendOpenOrders.d.ts.map +1 -0
  324. package/esm/src/api/info/frontendOpenOrders.js +61 -0
  325. package/esm/src/api/info/frontendOpenOrders.js.map +1 -0
  326. package/esm/src/api/info/fundingHistory.d.ts +74 -0
  327. package/esm/src/api/info/fundingHistory.d.ts.map +1 -0
  328. package/esm/src/api/info/fundingHistory.js +73 -0
  329. package/esm/src/api/info/fundingHistory.js.map +1 -0
  330. package/esm/src/api/info/gossipRootIps.d.ts +39 -0
  331. package/esm/src/api/info/gossipRootIps.d.ts.map +1 -0
  332. package/esm/src/api/info/gossipRootIps.js +50 -0
  333. package/esm/src/api/info/gossipRootIps.js.map +1 -0
  334. package/esm/src/api/info/historicalOrders.d.ts +132 -0
  335. package/esm/src/api/info/historicalOrders.d.ts.map +1 -0
  336. package/esm/src/api/info/historicalOrders.js +68 -0
  337. package/esm/src/api/info/historicalOrders.js.map +1 -0
  338. package/esm/src/api/info/isVip.d.ts +49 -0
  339. package/esm/src/api/info/isVip.d.ts.map +1 -0
  340. package/esm/src/api/info/isVip.js +58 -0
  341. package/esm/src/api/info/isVip.js.map +1 -0
  342. package/esm/src/api/info/l2Book.d.ts +98 -0
  343. package/esm/src/api/info/l2Book.d.ts.map +1 -0
  344. package/esm/src/api/info/l2Book.js +70 -0
  345. package/esm/src/api/info/l2Book.js.map +1 -0
  346. package/esm/src/api/info/leadingVaults.d.ts +60 -0
  347. package/esm/src/api/info/leadingVaults.d.ts.map +1 -0
  348. package/esm/src/api/info/leadingVaults.js +65 -0
  349. package/esm/src/api/info/leadingVaults.js.map +1 -0
  350. package/esm/src/api/info/legalCheck.d.ts +60 -0
  351. package/esm/src/api/info/legalCheck.d.ts.map +1 -0
  352. package/esm/src/api/info/legalCheck.js +65 -0
  353. package/esm/src/api/info/legalCheck.js.map +1 -0
  354. package/esm/src/api/info/liquidatable.d.ts +38 -0
  355. package/esm/src/api/info/liquidatable.d.ts.map +1 -0
  356. package/esm/src/api/info/liquidatable.js +49 -0
  357. package/esm/src/api/info/liquidatable.js.map +1 -0
  358. package/esm/src/api/info/marginTable.d.ts +71 -0
  359. package/esm/src/api/info/marginTable.d.ts.map +1 -0
  360. package/esm/src/api/info/marginTable.js +70 -0
  361. package/esm/src/api/info/marginTable.js.map +1 -0
  362. package/esm/src/api/info/maxBuilderFee.d.ts +52 -0
  363. package/esm/src/api/info/maxBuilderFee.d.ts.map +1 -0
  364. package/esm/src/api/info/maxBuilderFee.js +60 -0
  365. package/esm/src/api/info/maxBuilderFee.js.map +1 -0
  366. package/esm/src/api/info/maxMarketOrderNtls.d.ts +41 -0
  367. package/esm/src/api/info/maxMarketOrderNtls.d.ts.map +1 -0
  368. package/esm/src/api/info/maxMarketOrderNtls.js +53 -0
  369. package/esm/src/api/info/maxMarketOrderNtls.js.map +1 -0
  370. package/esm/src/api/info/meta.d.ts +143 -0
  371. package/esm/src/api/info/meta.d.ts.map +1 -0
  372. package/esm/src/api/info/meta.js +72 -0
  373. package/esm/src/api/info/meta.js.map +1 -0
  374. package/esm/src/api/info/metaAndAssetCtxs.d.ts +204 -0
  375. package/esm/src/api/info/metaAndAssetCtxs.d.ts.map +1 -0
  376. package/esm/src/api/info/metaAndAssetCtxs.js +66 -0
  377. package/esm/src/api/info/metaAndAssetCtxs.js.map +1 -0
  378. package/esm/src/api/info/openOrders.d.ts +82 -0
  379. package/esm/src/api/info/openOrders.d.ts.map +1 -0
  380. package/esm/src/api/info/openOrders.js +61 -0
  381. package/esm/src/api/info/openOrders.js.map +1 -0
  382. package/esm/src/api/info/orderStatus.d.ts +150 -0
  383. package/esm/src/api/info/orderStatus.d.ts.map +1 -0
  384. package/esm/src/api/info/orderStatus.js +83 -0
  385. package/esm/src/api/info/orderStatus.js.map +1 -0
  386. package/esm/src/api/info/perpDeployAuctionStatus.d.ts +56 -0
  387. package/esm/src/api/info/perpDeployAuctionStatus.d.ts.map +1 -0
  388. package/esm/src/api/info/perpDeployAuctionStatus.js +62 -0
  389. package/esm/src/api/info/perpDeployAuctionStatus.js.map +1 -0
  390. package/esm/src/api/info/perpDexLimits.d.ts +63 -0
  391. package/esm/src/api/info/perpDexLimits.d.ts.map +1 -0
  392. package/esm/src/api/info/perpDexLimits.js +67 -0
  393. package/esm/src/api/info/perpDexLimits.js.map +1 -0
  394. package/esm/src/api/info/perpDexs.d.ts +78 -0
  395. package/esm/src/api/info/perpDexs.d.ts.map +1 -0
  396. package/esm/src/api/info/perpDexs.js +75 -0
  397. package/esm/src/api/info/perpDexs.js.map +1 -0
  398. package/esm/src/api/info/perpsAtOpenInterestCap.d.ts +47 -0
  399. package/esm/src/api/info/perpsAtOpenInterestCap.d.ts.map +1 -0
  400. package/esm/src/api/info/perpsAtOpenInterestCap.js +37 -0
  401. package/esm/src/api/info/perpsAtOpenInterestCap.js.map +1 -0
  402. package/esm/src/api/info/portfolio.d.ts +169 -0
  403. package/esm/src/api/info/portfolio.d.ts.map +1 -0
  404. package/esm/src/api/info/portfolio.js +78 -0
  405. package/esm/src/api/info/portfolio.js.map +1 -0
  406. package/esm/src/api/info/preTransferCheck.d.ts +66 -0
  407. package/esm/src/api/info/preTransferCheck.d.ts.map +1 -0
  408. package/esm/src/api/info/preTransferCheck.js +69 -0
  409. package/esm/src/api/info/preTransferCheck.js.map +1 -0
  410. package/esm/src/api/info/predictedFundings.d.ts +66 -0
  411. package/esm/src/api/info/predictedFundings.d.ts.map +1 -0
  412. package/esm/src/api/info/predictedFundings.js +72 -0
  413. package/esm/src/api/info/predictedFundings.js.map +1 -0
  414. package/esm/src/api/info/recentTrades.d.ts +84 -0
  415. package/esm/src/api/info/recentTrades.d.ts.map +1 -0
  416. package/esm/src/api/info/recentTrades.js +77 -0
  417. package/esm/src/api/info/recentTrades.js.map +1 -0
  418. package/esm/src/api/info/referral.d.ts +274 -0
  419. package/esm/src/api/info/referral.d.ts.map +1 -0
  420. package/esm/src/api/info/referral.js +159 -0
  421. package/esm/src/api/info/referral.js.map +1 -0
  422. package/esm/src/api/info/spotClearinghouseState.d.ts +103 -0
  423. package/esm/src/api/info/spotClearinghouseState.d.ts.map +1 -0
  424. package/esm/src/api/info/spotClearinghouseState.js +75 -0
  425. package/esm/src/api/info/spotClearinghouseState.js.map +1 -0
  426. package/esm/src/api/info/spotDeployState.d.ts +162 -0
  427. package/esm/src/api/info/spotDeployState.d.ts.map +1 -0
  428. package/esm/src/api/info/spotDeployState.js +106 -0
  429. package/esm/src/api/info/spotDeployState.js.map +1 -0
  430. package/esm/src/api/info/spotMeta.d.ts +137 -0
  431. package/esm/src/api/info/spotMeta.d.ts.map +1 -0
  432. package/esm/src/api/info/spotMeta.js +93 -0
  433. package/esm/src/api/info/spotMeta.js.map +1 -0
  434. package/esm/src/api/info/spotMetaAndAssetCtxs.d.ts +185 -0
  435. package/esm/src/api/info/spotMetaAndAssetCtxs.d.ts.map +1 -0
  436. package/esm/src/api/info/spotMetaAndAssetCtxs.js +75 -0
  437. package/esm/src/api/info/spotMetaAndAssetCtxs.js.map +1 -0
  438. package/esm/src/api/info/spotPairDeployAuctionStatus.d.ts +56 -0
  439. package/esm/src/api/info/spotPairDeployAuctionStatus.d.ts.map +1 -0
  440. package/esm/src/api/info/spotPairDeployAuctionStatus.js +62 -0
  441. package/esm/src/api/info/spotPairDeployAuctionStatus.js.map +1 -0
  442. package/esm/src/api/info/subAccounts.d.ts +412 -0
  443. package/esm/src/api/info/subAccounts.d.ts.map +1 -0
  444. package/esm/src/api/info/subAccounts.js +73 -0
  445. package/esm/src/api/info/subAccounts.js.map +1 -0
  446. package/esm/src/api/info/subAccounts2.d.ts +498 -0
  447. package/esm/src/api/info/subAccounts2.d.ts.map +1 -0
  448. package/esm/src/api/info/subAccounts2.js +76 -0
  449. package/esm/src/api/info/subAccounts2.js.map +1 -0
  450. package/esm/src/api/info/tokenDetails.d.ts +114 -0
  451. package/esm/src/api/info/tokenDetails.d.ts.map +1 -0
  452. package/esm/src/api/info/tokenDetails.js +98 -0
  453. package/esm/src/api/info/tokenDetails.js.map +1 -0
  454. package/esm/src/api/info/twapHistory.d.ts +132 -0
  455. package/esm/src/api/info/twapHistory.d.ts.map +1 -0
  456. package/esm/src/api/info/twapHistory.js +70 -0
  457. package/esm/src/api/info/twapHistory.js.map +1 -0
  458. package/esm/src/api/info/txDetails.d.ts +102 -0
  459. package/esm/src/api/info/txDetails.d.ts.map +1 -0
  460. package/esm/src/api/info/txDetails.js +79 -0
  461. package/esm/src/api/info/txDetails.js.map +1 -0
  462. package/esm/src/api/info/userDetails.d.ts +106 -0
  463. package/esm/src/api/info/userDetails.d.ts.map +1 -0
  464. package/esm/src/api/info/userDetails.js +64 -0
  465. package/esm/src/api/info/userDetails.js.map +1 -0
  466. package/esm/src/api/info/userDexAbstraction.d.ts +49 -0
  467. package/esm/src/api/info/userDexAbstraction.d.ts.map +1 -0
  468. package/esm/src/api/info/userDexAbstraction.js +58 -0
  469. package/esm/src/api/info/userDexAbstraction.js.map +1 -0
  470. package/esm/src/api/info/userFees.d.ts +269 -0
  471. package/esm/src/api/info/userFees.d.ts.map +1 -0
  472. package/esm/src/api/info/userFees.js +173 -0
  473. package/esm/src/api/info/userFees.js.map +1 -0
  474. package/esm/src/api/info/userFills.d.ts +122 -0
  475. package/esm/src/api/info/userFills.d.ts.map +1 -0
  476. package/esm/src/api/info/userFills.js +61 -0
  477. package/esm/src/api/info/userFills.js.map +1 -0
  478. package/esm/src/api/info/userFillsByTime.d.ts +128 -0
  479. package/esm/src/api/info/userFillsByTime.d.ts.map +1 -0
  480. package/esm/src/api/info/userFillsByTime.js +65 -0
  481. package/esm/src/api/info/userFillsByTime.js.map +1 -0
  482. package/esm/src/api/info/userFunding.d.ts +104 -0
  483. package/esm/src/api/info/userFunding.d.ts.map +1 -0
  484. package/esm/src/api/info/userFunding.js +84 -0
  485. package/esm/src/api/info/userFunding.js.map +1 -0
  486. package/esm/src/api/info/userNonFundingLedgerUpdates.d.ts +711 -0
  487. package/esm/src/api/info/userNonFundingLedgerUpdates.d.ts.map +1 -0
  488. package/esm/src/api/info/userNonFundingLedgerUpdates.js +258 -0
  489. package/esm/src/api/info/userNonFundingLedgerUpdates.js.map +1 -0
  490. package/esm/src/api/info/userRateLimit.d.ts +63 -0
  491. package/esm/src/api/info/userRateLimit.d.ts.map +1 -0
  492. package/esm/src/api/info/userRateLimit.js +67 -0
  493. package/esm/src/api/info/userRateLimit.js.map +1 -0
  494. package/esm/src/api/info/userRole.d.ts +84 -0
  495. package/esm/src/api/info/userRole.d.ts.map +1 -0
  496. package/esm/src/api/info/userRole.js +81 -0
  497. package/esm/src/api/info/userRole.js.map +1 -0
  498. package/esm/src/api/info/userToMultiSigSigners.d.ts +57 -0
  499. package/esm/src/api/info/userToMultiSigSigners.d.ts.map +1 -0
  500. package/esm/src/api/info/userToMultiSigSigners.js +63 -0
  501. package/esm/src/api/info/userToMultiSigSigners.js.map +1 -0
  502. package/esm/src/api/info/userTwapSliceFills.d.ts +124 -0
  503. package/esm/src/api/info/userTwapSliceFills.d.ts.map +1 -0
  504. package/esm/src/api/info/userTwapSliceFills.js +66 -0
  505. package/esm/src/api/info/userTwapSliceFills.js.map +1 -0
  506. package/esm/src/api/info/userTwapSliceFillsByTime.d.ts +133 -0
  507. package/esm/src/api/info/userTwapSliceFillsByTime.d.ts.map +1 -0
  508. package/esm/src/api/info/userTwapSliceFillsByTime.js +72 -0
  509. package/esm/src/api/info/userTwapSliceFillsByTime.js.map +1 -0
  510. package/esm/src/api/info/userVaultEquities.d.ts +64 -0
  511. package/esm/src/api/info/userVaultEquities.d.ts.map +1 -0
  512. package/esm/src/api/info/userVaultEquities.js +67 -0
  513. package/esm/src/api/info/userVaultEquities.js.map +1 -0
  514. package/esm/src/api/info/validatorL1Votes.d.ts +70 -0
  515. package/esm/src/api/info/validatorL1Votes.d.ts.map +1 -0
  516. package/esm/src/api/info/validatorL1Votes.js +67 -0
  517. package/esm/src/api/info/validatorL1Votes.js.map +1 -0
  518. package/esm/src/api/info/validatorSummaries.d.ts +155 -0
  519. package/esm/src/api/info/validatorSummaries.d.ts.map +1 -0
  520. package/esm/src/api/info/validatorSummaries.js +91 -0
  521. package/esm/src/api/info/validatorSummaries.js.map +1 -0
  522. package/esm/src/api/info/vaultDetails.d.ts +359 -0
  523. package/esm/src/api/info/vaultDetails.d.ts.map +1 -0
  524. package/esm/src/api/info/vaultDetails.js +140 -0
  525. package/esm/src/api/info/vaultDetails.js.map +1 -0
  526. package/esm/src/api/info/vaultSummaries.d.ts +104 -0
  527. package/esm/src/api/info/vaultSummaries.d.ts.map +1 -0
  528. package/esm/src/api/info/vaultSummaries.js +82 -0
  529. package/esm/src/api/info/vaultSummaries.js.map +1 -0
  530. package/esm/src/api/info/webData2.d.ts +833 -0
  531. package/esm/src/api/info/webData2.d.ts.map +1 -0
  532. package/esm/src/api/info/webData2.js +59 -0
  533. package/esm/src/api/info/webData2.js.map +1 -0
  534. package/esm/src/api/info/~client.d.ts +1487 -0
  535. package/esm/src/api/info/~client.d.ts.map +1 -0
  536. package/esm/src/api/info/~client.js +1553 -0
  537. package/esm/src/api/info/~client.js.map +1 -0
  538. package/esm/src/api/info/~mod.d.ts +91 -0
  539. package/esm/src/api/info/~mod.d.ts.map +1 -0
  540. package/esm/src/api/info/~mod.js +90 -0
  541. package/esm/src/api/info/~mod.js.map +1 -0
  542. package/esm/src/api/subscription/_types.d.ts +7 -0
  543. package/esm/src/api/subscription/_types.d.ts.map +1 -0
  544. package/esm/src/api/subscription/_types.js +2 -0
  545. package/esm/src/api/subscription/_types.js.map +1 -0
  546. package/esm/src/api/subscription/activeAssetCtx.d.ts +97 -0
  547. package/esm/src/api/subscription/activeAssetCtx.d.ts.map +1 -0
  548. package/esm/src/api/subscription/activeAssetCtx.js +81 -0
  549. package/esm/src/api/subscription/activeAssetCtx.js.map +1 -0
  550. package/esm/src/api/subscription/activeAssetData.d.ts +84 -0
  551. package/esm/src/api/subscription/activeAssetData.d.ts.map +1 -0
  552. package/esm/src/api/subscription/activeAssetData.js +58 -0
  553. package/esm/src/api/subscription/activeAssetData.js.map +1 -0
  554. package/esm/src/api/subscription/activeSpotAssetCtx.d.ts +89 -0
  555. package/esm/src/api/subscription/activeSpotAssetCtx.d.ts.map +1 -0
  556. package/esm/src/api/subscription/activeSpotAssetCtx.js +77 -0
  557. package/esm/src/api/subscription/activeSpotAssetCtx.js.map +1 -0
  558. package/esm/src/api/subscription/allMids.d.ts +58 -0
  559. package/esm/src/api/subscription/allMids.d.ts.map +1 -0
  560. package/esm/src/api/subscription/allMids.js +42 -0
  561. package/esm/src/api/subscription/allMids.js.map +1 -0
  562. package/esm/src/api/subscription/assetCtxs.d.ts +108 -0
  563. package/esm/src/api/subscription/assetCtxs.d.ts.map +1 -0
  564. package/esm/src/api/subscription/assetCtxs.js +65 -0
  565. package/esm/src/api/subscription/assetCtxs.js.map +1 -0
  566. package/esm/src/api/subscription/bbo.d.ts +89 -0
  567. package/esm/src/api/subscription/bbo.d.ts.map +1 -0
  568. package/esm/src/api/subscription/bbo.js +63 -0
  569. package/esm/src/api/subscription/bbo.js.map +1 -0
  570. package/esm/src/api/subscription/candle.d.ts +71 -0
  571. package/esm/src/api/subscription/candle.d.ts.map +1 -0
  572. package/esm/src/api/subscription/candle.js +58 -0
  573. package/esm/src/api/subscription/candle.js.map +1 -0
  574. package/esm/src/api/subscription/clearinghouseState.d.ts +285 -0
  575. package/esm/src/api/subscription/clearinghouseState.d.ts.map +1 -0
  576. package/esm/src/api/subscription/clearinghouseState.js +69 -0
  577. package/esm/src/api/subscription/clearinghouseState.js.map +1 -0
  578. package/esm/src/api/subscription/explorerBlock.d.ts +64 -0
  579. package/esm/src/api/subscription/explorerBlock.d.ts.map +1 -0
  580. package/esm/src/api/subscription/explorerBlock.js +63 -0
  581. package/esm/src/api/subscription/explorerBlock.js.map +1 -0
  582. package/esm/src/api/subscription/explorerTxs.d.ts +83 -0
  583. package/esm/src/api/subscription/explorerTxs.d.ts.map +1 -0
  584. package/esm/src/api/subscription/explorerTxs.js +68 -0
  585. package/esm/src/api/subscription/explorerTxs.js.map +1 -0
  586. package/esm/src/api/subscription/l2Book.d.ts +97 -0
  587. package/esm/src/api/subscription/l2Book.d.ts.map +1 -0
  588. package/esm/src/api/subscription/l2Book.js +75 -0
  589. package/esm/src/api/subscription/l2Book.js.map +1 -0
  590. package/esm/src/api/subscription/notification.d.ts +51 -0
  591. package/esm/src/api/subscription/notification.d.ts.map +1 -0
  592. package/esm/src/api/subscription/notification.js +56 -0
  593. package/esm/src/api/subscription/notification.js.map +1 -0
  594. package/esm/src/api/subscription/openOrders.d.ts +128 -0
  595. package/esm/src/api/subscription/openOrders.d.ts.map +1 -0
  596. package/esm/src/api/subscription/openOrders.js +69 -0
  597. package/esm/src/api/subscription/openOrders.js.map +1 -0
  598. package/esm/src/api/subscription/orderUpdates.d.ts +101 -0
  599. package/esm/src/api/subscription/orderUpdates.d.ts.map +1 -0
  600. package/esm/src/api/subscription/orderUpdates.js +63 -0
  601. package/esm/src/api/subscription/orderUpdates.js.map +1 -0
  602. package/esm/src/api/subscription/spotAssetCtxs.d.ts +67 -0
  603. package/esm/src/api/subscription/spotAssetCtxs.d.ts.map +1 -0
  604. package/esm/src/api/subscription/spotAssetCtxs.js +67 -0
  605. package/esm/src/api/subscription/spotAssetCtxs.js.map +1 -0
  606. package/esm/src/api/subscription/spotState.d.ts +91 -0
  607. package/esm/src/api/subscription/spotState.d.ts.map +1 -0
  608. package/esm/src/api/subscription/spotState.js +64 -0
  609. package/esm/src/api/subscription/spotState.js.map +1 -0
  610. package/esm/src/api/subscription/trades.d.ts +73 -0
  611. package/esm/src/api/subscription/trades.d.ts.map +1 -0
  612. package/esm/src/api/subscription/trades.js +55 -0
  613. package/esm/src/api/subscription/trades.js.map +1 -0
  614. package/esm/src/api/subscription/userEvents.d.ts +876 -0
  615. package/esm/src/api/subscription/userEvents.d.ts.map +1 -0
  616. package/esm/src/api/subscription/userEvents.js +149 -0
  617. package/esm/src/api/subscription/userEvents.js.map +1 -0
  618. package/esm/src/api/subscription/userFills.d.ts +152 -0
  619. package/esm/src/api/subscription/userFills.d.ts.map +1 -0
  620. package/esm/src/api/subscription/userFills.js +69 -0
  621. package/esm/src/api/subscription/userFills.js.map +1 -0
  622. package/esm/src/api/subscription/userFundings.d.ts +91 -0
  623. package/esm/src/api/subscription/userFundings.d.ts.map +1 -0
  624. package/esm/src/api/subscription/userFundings.js +77 -0
  625. package/esm/src/api/subscription/userFundings.js.map +1 -0
  626. package/esm/src/api/subscription/userHistoricalOrders.d.ts +161 -0
  627. package/esm/src/api/subscription/userHistoricalOrders.d.ts.map +1 -0
  628. package/esm/src/api/subscription/userHistoricalOrders.js +72 -0
  629. package/esm/src/api/subscription/userHistoricalOrders.js.map +1 -0
  630. package/esm/src/api/subscription/userNonFundingLedgerUpdates.d.ts +493 -0
  631. package/esm/src/api/subscription/userNonFundingLedgerUpdates.d.ts.map +1 -0
  632. package/esm/src/api/subscription/userNonFundingLedgerUpdates.js +63 -0
  633. package/esm/src/api/subscription/userNonFundingLedgerUpdates.js.map +1 -0
  634. package/esm/src/api/subscription/userTwapHistory.d.ts +161 -0
  635. package/esm/src/api/subscription/userTwapHistory.d.ts.map +1 -0
  636. package/esm/src/api/subscription/userTwapHistory.js +74 -0
  637. package/esm/src/api/subscription/userTwapHistory.js.map +1 -0
  638. package/esm/src/api/subscription/userTwapSliceFills.d.ts +132 -0
  639. package/esm/src/api/subscription/userTwapSliceFills.d.ts.map +1 -0
  640. package/esm/src/api/subscription/userTwapSliceFills.js +68 -0
  641. package/esm/src/api/subscription/userTwapSliceFills.js.map +1 -0
  642. package/esm/src/api/subscription/webData2.d.ts +704 -0
  643. package/esm/src/api/subscription/webData2.d.ts.map +1 -0
  644. package/esm/src/api/subscription/webData2.js +107 -0
  645. package/esm/src/api/subscription/webData2.js.map +1 -0
  646. package/esm/src/api/subscription/webData3.d.ts +541 -0
  647. package/esm/src/api/subscription/webData3.d.ts.map +1 -0
  648. package/esm/src/api/subscription/webData3.js +100 -0
  649. package/esm/src/api/subscription/webData3.js.map +1 -0
  650. package/esm/src/api/subscription/~client.d.ts +598 -0
  651. package/esm/src/api/subscription/~client.d.ts.map +1 -0
  652. package/esm/src/api/subscription/~client.js +626 -0
  653. package/esm/src/api/subscription/~client.js.map +1 -0
  654. package/esm/src/api/subscription/~mod.d.ts +53 -0
  655. package/esm/src/api/subscription/~mod.d.ts.map +1 -0
  656. package/esm/src/api/subscription/~mod.js +52 -0
  657. package/esm/src/api/subscription/~mod.js.map +1 -0
  658. package/esm/src/mod.d.ts +9 -0
  659. package/esm/src/mod.d.ts.map +1 -0
  660. package/esm/src/mod.js +9 -0
  661. package/esm/src/mod.js.map +1 -0
  662. package/esm/src/signing/_signTypedData.d.ts +123 -0
  663. package/esm/src/signing/_signTypedData.d.ts.map +1 -0
  664. package/esm/src/signing/_signTypedData.js +161 -0
  665. package/esm/src/signing/_signTypedData.js.map +1 -0
  666. package/esm/src/signing/mod.d.ts +324 -0
  667. package/esm/src/signing/mod.d.ts.map +1 -0
  668. package/esm/src/signing/mod.js +394 -0
  669. package/esm/src/signing/mod.js.map +1 -0
  670. package/esm/src/transport/_polyfills.d.ts +19 -0
  671. package/esm/src/transport/_polyfills.d.ts.map +1 -0
  672. package/esm/src/transport/_polyfills.js +48 -0
  673. package/esm/src/transport/_polyfills.js.map +1 -0
  674. package/esm/src/transport/base.d.ts +48 -0
  675. package/esm/src/transport/base.d.ts.map +1 -0
  676. package/esm/src/transport/base.js +9 -0
  677. package/esm/src/transport/base.js.map +1 -0
  678. package/esm/src/transport/http/mod.d.ts +94 -0
  679. package/esm/src/transport/http/mod.d.ts.map +1 -0
  680. package/esm/src/transport/http/mod.js +152 -0
  681. package/esm/src/transport/http/mod.js.map +1 -0
  682. package/esm/src/transport/websocket/_hyperliquid_event_target.d.ts +91 -0
  683. package/esm/src/transport/websocket/_hyperliquid_event_target.d.ts.map +1 -0
  684. package/esm/src/transport/websocket/_hyperliquid_event_target.js +54 -0
  685. package/esm/src/transport/websocket/_hyperliquid_event_target.js.map +1 -0
  686. package/esm/src/transport/websocket/_websocket_async_request.d.ts +37 -0
  687. package/esm/src/transport/websocket/_websocket_async_request.d.ts.map +1 -0
  688. package/esm/src/transport/websocket/_websocket_async_request.js +192 -0
  689. package/esm/src/transport/websocket/_websocket_async_request.js.map +1 -0
  690. package/esm/src/transport/websocket/mod.d.ts +123 -0
  691. package/esm/src/transport/websocket/mod.d.ts.map +1 -0
  692. package/esm/src/transport/websocket/mod.js +250 -0
  693. package/esm/src/transport/websocket/mod.js.map +1 -0
  694. package/esm/src/utils/_eip712.d.ts +42 -0
  695. package/esm/src/utils/_eip712.d.ts.map +1 -0
  696. package/esm/src/utils/_eip712.js +175 -0
  697. package/esm/src/utils/_eip712.js.map +1 -0
  698. package/esm/src/utils/_format.d.ts +28 -0
  699. package/esm/src/utils/_format.d.ts.map +1 -0
  700. package/esm/src/utils/_format.js +157 -0
  701. package/esm/src/utils/_format.js.map +1 -0
  702. package/esm/src/utils/_recover.d.ts +89 -0
  703. package/esm/src/utils/_recover.d.ts.map +1 -0
  704. package/esm/src/utils/_recover.js +119 -0
  705. package/esm/src/utils/_recover.js.map +1 -0
  706. package/esm/src/utils/_symbolConverter.d.ts +90 -0
  707. package/esm/src/utils/_symbolConverter.d.ts.map +1 -0
  708. package/esm/src/utils/_symbolConverter.js +172 -0
  709. package/esm/src/utils/_symbolConverter.js.map +1 -0
  710. package/esm/src/utils/mod.d.ts +4 -0
  711. package/esm/src/utils/mod.d.ts.map +1 -0
  712. package/esm/src/utils/mod.js +4 -0
  713. package/esm/src/utils/mod.js.map +1 -0
  714. package/package.json +77 -0
  715. package/script/bin/_utils.d.ts +80 -0
  716. package/script/bin/_utils.d.ts.map +1 -0
  717. package/script/bin/_utils.js +112 -0
  718. package/script/bin/_utils.js.map +1 -0
  719. package/script/bin/cli.d.ts +3 -0
  720. package/script/bin/cli.d.ts.map +1 -0
  721. package/script/bin/cli.js +338 -0
  722. package/script/bin/cli.js.map +1 -0
  723. package/script/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts +9 -0
  724. package/script/deps/jsr.io/@std/bytes/1.0.6/_types.d.ts.map +1 -0
  725. package/script/deps/jsr.io/@std/bytes/1.0.6/_types.js +4 -0
  726. package/script/deps/jsr.io/@std/bytes/1.0.6/_types.js.map +1 -0
  727. package/script/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts +21 -0
  728. package/script/deps/jsr.io/@std/bytes/1.0.6/concat.d.ts.map +1 -0
  729. package/script/deps/jsr.io/@std/bytes/1.0.6/concat.js +36 -0
  730. package/script/deps/jsr.io/@std/bytes/1.0.6/concat.js.map +1 -0
  731. package/script/deps/jsr.io/@std/msgpack/1.0.3/_types.d.ts +9 -0
  732. package/script/deps/jsr.io/@std/msgpack/1.0.3/_types.d.ts.map +1 -0
  733. package/script/deps/jsr.io/@std/msgpack/1.0.3/_types.js +4 -0
  734. package/script/deps/jsr.io/@std/msgpack/1.0.3/_types.js.map +1 -0
  735. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts +21 -0
  736. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.d.ts.map +1 -0
  737. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.js +295 -0
  738. package/script/deps/jsr.io/@std/msgpack/1.0.3/decode.js.map +1 -0
  739. package/script/deps/jsr.io/@std/msgpack/1.0.3/encode.d.ts +39 -0
  740. package/script/deps/jsr.io/@std/msgpack/1.0.3/encode.d.ts.map +1 -0
  741. package/script/deps/jsr.io/@std/msgpack/1.0.3/encode.js +241 -0
  742. package/script/deps/jsr.io/@std/msgpack/1.0.3/encode.js.map +1 -0
  743. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts +44 -0
  744. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.d.ts.map +1 -0
  745. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.js +62 -0
  746. package/script/deps/jsr.io/@std/msgpack/1.0.3/mod.js.map +1 -0
  747. package/script/package.json +3 -0
  748. package/script/src/_base.d.ts +5 -0
  749. package/script/src/_base.d.ts.map +1 -0
  750. package/script/src/_base.js +12 -0
  751. package/script/src/_base.js.map +1 -0
  752. package/script/src/api/_base.d.ts +53 -0
  753. package/script/src/api/_base.d.ts.map +1 -0
  754. package/script/src/api/_base.js +105 -0
  755. package/script/src/api/_base.js.map +1 -0
  756. package/script/src/api/_common_schemas.d.ts +425 -0
  757. package/script/src/api/_common_schemas.d.ts.map +1 -0
  758. package/script/src/api/_common_schemas.js +471 -0
  759. package/script/src/api/_common_schemas.js.map +1 -0
  760. package/script/src/api/exchange/_base/_errors.d.ts +16 -0
  761. package/script/src/api/exchange/_base/_errors.d.ts.map +1 -0
  762. package/script/src/api/exchange/_base/_errors.js +56 -0
  763. package/script/src/api/exchange/_base/_errors.js.map +1 -0
  764. package/script/src/api/exchange/_base/_execute.d.ts +43 -0
  765. package/script/src/api/exchange/_base/_execute.d.ts.map +1 -0
  766. package/script/src/api/exchange/_base/_execute.js +187 -0
  767. package/script/src/api/exchange/_base/_execute.js.map +1 -0
  768. package/script/src/api/exchange/_base/_nonce.d.ts +5 -0
  769. package/script/src/api/exchange/_base/_nonce.d.ts.map +1 -0
  770. package/script/src/api/exchange/_base/_nonce.js +31 -0
  771. package/script/src/api/exchange/_base/_nonce.js.map +1 -0
  772. package/script/src/api/exchange/_base/_schemas.d.ts +45 -0
  773. package/script/src/api/exchange/_base/_schemas.d.ts.map +1 -0
  774. package/script/src/api/exchange/_base/_schemas.js +71 -0
  775. package/script/src/api/exchange/_base/_schemas.js.map +1 -0
  776. package/script/src/api/exchange/_base/_types.d.ts +105 -0
  777. package/script/src/api/exchange/_base/_types.d.ts.map +1 -0
  778. package/script/src/api/exchange/_base/_types.js +3 -0
  779. package/script/src/api/exchange/_base/_types.js.map +1 -0
  780. package/script/src/api/exchange/_base/mod.d.ts +5 -0
  781. package/script/src/api/exchange/_base/mod.d.ts.map +1 -0
  782. package/script/src/api/exchange/_base/mod.js +21 -0
  783. package/script/src/api/exchange/_base/mod.js.map +1 -0
  784. package/script/src/api/exchange/agentEnableDexAbstraction.d.ts +106 -0
  785. package/script/src/api/exchange/agentEnableDexAbstraction.d.ts.map +1 -0
  786. package/script/src/api/exchange/agentEnableDexAbstraction.js +115 -0
  787. package/script/src/api/exchange/agentEnableDexAbstraction.js.map +1 -0
  788. package/script/src/api/exchange/approveAgent.d.ts +136 -0
  789. package/script/src/api/exchange/approveAgent.d.ts.map +1 -0
  790. package/script/src/api/exchange/approveAgent.js +136 -0
  791. package/script/src/api/exchange/approveAgent.js.map +1 -0
  792. package/script/src/api/exchange/approveBuilderFee.d.ts +136 -0
  793. package/script/src/api/exchange/approveBuilderFee.d.ts.map +1 -0
  794. package/script/src/api/exchange/approveBuilderFee.js +136 -0
  795. package/script/src/api/exchange/approveBuilderFee.js.map +1 -0
  796. package/script/src/api/exchange/batchModify.d.ts +329 -0
  797. package/script/src/api/exchange/batchModify.d.ts.map +1 -0
  798. package/script/src/api/exchange/batchModify.js +146 -0
  799. package/script/src/api/exchange/batchModify.js.map +1 -0
  800. package/script/src/api/exchange/cDeposit.d.ts +132 -0
  801. package/script/src/api/exchange/cDeposit.d.ts.map +1 -0
  802. package/script/src/api/exchange/cDeposit.js +133 -0
  803. package/script/src/api/exchange/cDeposit.js.map +1 -0
  804. package/script/src/api/exchange/cSignerAction.d.ts +127 -0
  805. package/script/src/api/exchange/cSignerAction.d.ts.map +1 -0
  806. package/script/src/api/exchange/cSignerAction.js +129 -0
  807. package/script/src/api/exchange/cSignerAction.js.map +1 -0
  808. package/script/src/api/exchange/cValidatorAction.d.ts +290 -0
  809. package/script/src/api/exchange/cValidatorAction.d.ts.map +1 -0
  810. package/script/src/api/exchange/cValidatorAction.js +205 -0
  811. package/script/src/api/exchange/cValidatorAction.js.map +1 -0
  812. package/script/src/api/exchange/cWithdraw.d.ts +132 -0
  813. package/script/src/api/exchange/cWithdraw.d.ts.map +1 -0
  814. package/script/src/api/exchange/cWithdraw.js +133 -0
  815. package/script/src/api/exchange/cWithdraw.js.map +1 -0
  816. package/script/src/api/exchange/cancel.d.ts +150 -0
  817. package/script/src/api/exchange/cancel.d.ts.map +1 -0
  818. package/script/src/api/exchange/cancel.js +152 -0
  819. package/script/src/api/exchange/cancel.js.map +1 -0
  820. package/script/src/api/exchange/cancelByCloid.d.ts +145 -0
  821. package/script/src/api/exchange/cancelByCloid.d.ts.map +1 -0
  822. package/script/src/api/exchange/cancelByCloid.js +132 -0
  823. package/script/src/api/exchange/cancelByCloid.js.map +1 -0
  824. package/script/src/api/exchange/claimRewards.d.ts +97 -0
  825. package/script/src/api/exchange/claimRewards.d.ts.map +1 -0
  826. package/script/src/api/exchange/claimRewards.js +106 -0
  827. package/script/src/api/exchange/claimRewards.js.map +1 -0
  828. package/script/src/api/exchange/convertToMultiSigUser.d.ts +170 -0
  829. package/script/src/api/exchange/convertToMultiSigUser.d.ts.map +1 -0
  830. package/script/src/api/exchange/convertToMultiSigUser.js +166 -0
  831. package/script/src/api/exchange/convertToMultiSigUser.js.map +1 -0
  832. package/script/src/api/exchange/createSubAccount.d.ts +117 -0
  833. package/script/src/api/exchange/createSubAccount.d.ts.map +1 -0
  834. package/script/src/api/exchange/createSubAccount.js +127 -0
  835. package/script/src/api/exchange/createSubAccount.js.map +1 -0
  836. package/script/src/api/exchange/createVault.d.ts +133 -0
  837. package/script/src/api/exchange/createVault.d.ts.map +1 -0
  838. package/script/src/api/exchange/createVault.js +139 -0
  839. package/script/src/api/exchange/createVault.js.map +1 -0
  840. package/script/src/api/exchange/evmUserModify.d.ts +116 -0
  841. package/script/src/api/exchange/evmUserModify.d.ts.map +1 -0
  842. package/script/src/api/exchange/evmUserModify.js +121 -0
  843. package/script/src/api/exchange/evmUserModify.js.map +1 -0
  844. package/script/src/api/exchange/linkStakingUser.d.ts +144 -0
  845. package/script/src/api/exchange/linkStakingUser.d.ts.map +1 -0
  846. package/script/src/api/exchange/linkStakingUser.js +148 -0
  847. package/script/src/api/exchange/linkStakingUser.js.map +1 -0
  848. package/script/src/api/exchange/modify.d.ts +222 -0
  849. package/script/src/api/exchange/modify.d.ts.map +1 -0
  850. package/script/src/api/exchange/modify.js +141 -0
  851. package/script/src/api/exchange/modify.js.map +1 -0
  852. package/script/src/api/exchange/multiSig.d.ts +4314 -0
  853. package/script/src/api/exchange/multiSig.d.ts.map +1 -0
  854. package/script/src/api/exchange/multiSig.js +309 -0
  855. package/script/src/api/exchange/multiSig.js.map +1 -0
  856. package/script/src/api/exchange/noop.d.ts +106 -0
  857. package/script/src/api/exchange/noop.d.ts.map +1 -0
  858. package/script/src/api/exchange/noop.js +115 -0
  859. package/script/src/api/exchange/noop.js.map +1 -0
  860. package/script/src/api/exchange/order.d.ts +354 -0
  861. package/script/src/api/exchange/order.d.ts.map +1 -0
  862. package/script/src/api/exchange/order.js +199 -0
  863. package/script/src/api/exchange/order.js.map +1 -0
  864. package/script/src/api/exchange/perpDeploy.d.ts +400 -0
  865. package/script/src/api/exchange/perpDeploy.d.ts.map +1 -0
  866. package/script/src/api/exchange/perpDeploy.js +245 -0
  867. package/script/src/api/exchange/perpDeploy.js.map +1 -0
  868. package/script/src/api/exchange/registerReferrer.d.ts +109 -0
  869. package/script/src/api/exchange/registerReferrer.d.ts.map +1 -0
  870. package/script/src/api/exchange/registerReferrer.js +114 -0
  871. package/script/src/api/exchange/registerReferrer.js.map +1 -0
  872. package/script/src/api/exchange/reserveRequestWeight.d.ts +116 -0
  873. package/script/src/api/exchange/reserveRequestWeight.d.ts.map +1 -0
  874. package/script/src/api/exchange/reserveRequestWeight.js +121 -0
  875. package/script/src/api/exchange/reserveRequestWeight.js.map +1 -0
  876. package/script/src/api/exchange/scheduleCancel.d.ts +125 -0
  877. package/script/src/api/exchange/scheduleCancel.d.ts.map +1 -0
  878. package/script/src/api/exchange/scheduleCancel.js +108 -0
  879. package/script/src/api/exchange/scheduleCancel.js.map +1 -0
  880. package/script/src/api/exchange/sendAsset.d.ts +158 -0
  881. package/script/src/api/exchange/sendAsset.d.ts.map +1 -0
  882. package/script/src/api/exchange/sendAsset.js +154 -0
  883. package/script/src/api/exchange/sendAsset.js.map +1 -0
  884. package/script/src/api/exchange/setDisplayName.d.ts +113 -0
  885. package/script/src/api/exchange/setDisplayName.d.ts.map +1 -0
  886. package/script/src/api/exchange/setDisplayName.js +119 -0
  887. package/script/src/api/exchange/setDisplayName.js.map +1 -0
  888. package/script/src/api/exchange/setReferrer.d.ts +109 -0
  889. package/script/src/api/exchange/setReferrer.d.ts.map +1 -0
  890. package/script/src/api/exchange/setReferrer.js +114 -0
  891. package/script/src/api/exchange/setReferrer.js.map +1 -0
  892. package/script/src/api/exchange/spotDeploy.d.ts +389 -0
  893. package/script/src/api/exchange/spotDeploy.d.ts.map +1 -0
  894. package/script/src/api/exchange/spotDeploy.js +233 -0
  895. package/script/src/api/exchange/spotDeploy.js.map +1 -0
  896. package/script/src/api/exchange/spotSend.d.ts +144 -0
  897. package/script/src/api/exchange/spotSend.d.ts.map +1 -0
  898. package/script/src/api/exchange/spotSend.js +143 -0
  899. package/script/src/api/exchange/spotSend.js.map +1 -0
  900. package/script/src/api/exchange/spotUser.d.ts +118 -0
  901. package/script/src/api/exchange/spotUser.d.ts.map +1 -0
  902. package/script/src/api/exchange/spotUser.js +117 -0
  903. package/script/src/api/exchange/spotUser.js.map +1 -0
  904. package/script/src/api/exchange/subAccountModify.d.ts +113 -0
  905. package/script/src/api/exchange/subAccountModify.d.ts.map +1 -0
  906. package/script/src/api/exchange/subAccountModify.js +116 -0
  907. package/script/src/api/exchange/subAccountModify.js.map +1 -0
  908. package/script/src/api/exchange/subAccountSpotTransfer.d.ts +126 -0
  909. package/script/src/api/exchange/subAccountSpotTransfer.d.ts.map +1 -0
  910. package/script/src/api/exchange/subAccountSpotTransfer.js +125 -0
  911. package/script/src/api/exchange/subAccountSpotTransfer.js.map +1 -0
  912. package/script/src/api/exchange/subAccountTransfer.d.ts +117 -0
  913. package/script/src/api/exchange/subAccountTransfer.d.ts.map +1 -0
  914. package/script/src/api/exchange/subAccountTransfer.js +118 -0
  915. package/script/src/api/exchange/subAccountTransfer.js.map +1 -0
  916. package/script/src/api/exchange/tokenDelegate.d.ts +140 -0
  917. package/script/src/api/exchange/tokenDelegate.d.ts.map +1 -0
  918. package/script/src/api/exchange/tokenDelegate.js +139 -0
  919. package/script/src/api/exchange/tokenDelegate.js.map +1 -0
  920. package/script/src/api/exchange/twapCancel.d.ts +136 -0
  921. package/script/src/api/exchange/twapCancel.d.ts.map +1 -0
  922. package/script/src/api/exchange/twapCancel.js +145 -0
  923. package/script/src/api/exchange/twapCancel.js.map +1 -0
  924. package/script/src/api/exchange/twapOrder.d.ts +199 -0
  925. package/script/src/api/exchange/twapOrder.d.ts.map +1 -0
  926. package/script/src/api/exchange/twapOrder.js +171 -0
  927. package/script/src/api/exchange/twapOrder.js.map +1 -0
  928. package/script/src/api/exchange/updateIsolatedMargin.d.ts +127 -0
  929. package/script/src/api/exchange/updateIsolatedMargin.d.ts.map +1 -0
  930. package/script/src/api/exchange/updateIsolatedMargin.js +128 -0
  931. package/script/src/api/exchange/updateIsolatedMargin.js.map +1 -0
  932. package/script/src/api/exchange/updateLeverage.d.ts +127 -0
  933. package/script/src/api/exchange/updateLeverage.d.ts.map +1 -0
  934. package/script/src/api/exchange/updateLeverage.js +128 -0
  935. package/script/src/api/exchange/updateLeverage.js.map +1 -0
  936. package/script/src/api/exchange/usdClassTransfer.d.ts +136 -0
  937. package/script/src/api/exchange/usdClassTransfer.d.ts.map +1 -0
  938. package/script/src/api/exchange/usdClassTransfer.js +136 -0
  939. package/script/src/api/exchange/usdClassTransfer.js.map +1 -0
  940. package/script/src/api/exchange/usdSend.d.ts +136 -0
  941. package/script/src/api/exchange/usdSend.d.ts.map +1 -0
  942. package/script/src/api/exchange/usdSend.js +136 -0
  943. package/script/src/api/exchange/usdSend.js.map +1 -0
  944. package/script/src/api/exchange/userDexAbstraction.d.ts +136 -0
  945. package/script/src/api/exchange/userDexAbstraction.d.ts.map +1 -0
  946. package/script/src/api/exchange/userDexAbstraction.js +136 -0
  947. package/script/src/api/exchange/userDexAbstraction.js.map +1 -0
  948. package/script/src/api/exchange/validatorL1Stream.d.ts +116 -0
  949. package/script/src/api/exchange/validatorL1Stream.d.ts.map +1 -0
  950. package/script/src/api/exchange/validatorL1Stream.js +121 -0
  951. package/script/src/api/exchange/validatorL1Stream.js.map +1 -0
  952. package/script/src/api/exchange/vaultDistribute.d.ts +117 -0
  953. package/script/src/api/exchange/vaultDistribute.d.ts.map +1 -0
  954. package/script/src/api/exchange/vaultDistribute.js +121 -0
  955. package/script/src/api/exchange/vaultDistribute.js.map +1 -0
  956. package/script/src/api/exchange/vaultModify.d.ts +121 -0
  957. package/script/src/api/exchange/vaultModify.d.ts.map +1 -0
  958. package/script/src/api/exchange/vaultModify.js +122 -0
  959. package/script/src/api/exchange/vaultModify.js.map +1 -0
  960. package/script/src/api/exchange/vaultTransfer.d.ts +124 -0
  961. package/script/src/api/exchange/vaultTransfer.d.ts.map +1 -0
  962. package/script/src/api/exchange/vaultTransfer.js +125 -0
  963. package/script/src/api/exchange/vaultTransfer.js.map +1 -0
  964. package/script/src/api/exchange/withdraw3.d.ts +136 -0
  965. package/script/src/api/exchange/withdraw3.d.ts.map +1 -0
  966. package/script/src/api/exchange/withdraw3.js +136 -0
  967. package/script/src/api/exchange/withdraw3.js.map +1 -0
  968. package/script/src/api/exchange/~client.d.ts +1381 -0
  969. package/script/src/api/exchange/~client.d.ts.map +1 -0
  970. package/script/src/api/exchange/~client.js +1451 -0
  971. package/script/src/api/exchange/~client.js.map +1 -0
  972. package/script/src/api/exchange/~mod.d.ts +87 -0
  973. package/script/src/api/exchange/~mod.d.ts.map +1 -0
  974. package/script/src/api/exchange/~mod.js +107 -0
  975. package/script/src/api/exchange/~mod.js.map +1 -0
  976. package/script/src/api/info/_types.d.ts +7 -0
  977. package/script/src/api/info/_types.d.ts.map +1 -0
  978. package/script/src/api/info/_types.js +3 -0
  979. package/script/src/api/info/_types.js.map +1 -0
  980. package/script/src/api/info/activeAssetData.d.ts +98 -0
  981. package/script/src/api/info/activeAssetData.d.ts.map +1 -0
  982. package/script/src/api/info/activeAssetData.js +125 -0
  983. package/script/src/api/info/activeAssetData.js.map +1 -0
  984. package/script/src/api/info/alignedQuoteTokenInfo.d.ts +66 -0
  985. package/script/src/api/info/alignedQuoteTokenInfo.d.ts.map +1 -0
  986. package/script/src/api/info/alignedQuoteTokenInfo.js +111 -0
  987. package/script/src/api/info/alignedQuoteTokenInfo.js.map +1 -0
  988. package/script/src/api/info/allMids.d.ts +49 -0
  989. package/script/src/api/info/allMids.d.ts.map +1 -0
  990. package/script/src/api/info/allMids.js +75 -0
  991. package/script/src/api/info/allMids.js.map +1 -0
  992. package/script/src/api/info/allPerpMetas.d.ts +145 -0
  993. package/script/src/api/info/allPerpMetas.d.ts.map +1 -0
  994. package/script/src/api/info/allPerpMetas.js +88 -0
  995. package/script/src/api/info/allPerpMetas.js.map +1 -0
  996. package/script/src/api/info/blockDetails.d.ts +151 -0
  997. package/script/src/api/info/blockDetails.d.ts.map +1 -0
  998. package/script/src/api/info/blockDetails.js +131 -0
  999. package/script/src/api/info/blockDetails.js.map +1 -0
  1000. package/script/src/api/info/candleSnapshot.d.ts +111 -0
  1001. package/script/src/api/info/candleSnapshot.d.ts.map +1 -0
  1002. package/script/src/api/info/candleSnapshot.js +128 -0
  1003. package/script/src/api/info/candleSnapshot.js.map +1 -0
  1004. package/script/src/api/info/clearinghouseState.d.ts +269 -0
  1005. package/script/src/api/info/clearinghouseState.d.ts.map +1 -0
  1006. package/script/src/api/info/clearinghouseState.js +180 -0
  1007. package/script/src/api/info/clearinghouseState.js.map +1 -0
  1008. package/script/src/api/info/delegations.d.ts +64 -0
  1009. package/script/src/api/info/delegations.d.ts.map +1 -0
  1010. package/script/src/api/info/delegations.js +104 -0
  1011. package/script/src/api/info/delegations.js.map +1 -0
  1012. package/script/src/api/info/delegatorHistory.d.ts +142 -0
  1013. package/script/src/api/info/delegatorHistory.d.ts.map +1 -0
  1014. package/script/src/api/info/delegatorHistory.js +132 -0
  1015. package/script/src/api/info/delegatorHistory.js.map +1 -0
  1016. package/script/src/api/info/delegatorRewards.d.ts +64 -0
  1017. package/script/src/api/info/delegatorRewards.d.ts.map +1 -0
  1018. package/script/src/api/info/delegatorRewards.js +104 -0
  1019. package/script/src/api/info/delegatorRewards.js.map +1 -0
  1020. package/script/src/api/info/delegatorSummary.d.ts +63 -0
  1021. package/script/src/api/info/delegatorSummary.d.ts.map +1 -0
  1022. package/script/src/api/info/delegatorSummary.js +104 -0
  1023. package/script/src/api/info/delegatorSummary.js.map +1 -0
  1024. package/script/src/api/info/exchangeStatus.d.ts +46 -0
  1025. package/script/src/api/info/exchangeStatus.d.ts.map +1 -0
  1026. package/script/src/api/info/exchangeStatus.js +92 -0
  1027. package/script/src/api/info/exchangeStatus.js.map +1 -0
  1028. package/script/src/api/info/extraAgents.d.ts +64 -0
  1029. package/script/src/api/info/extraAgents.d.ts.map +1 -0
  1030. package/script/src/api/info/extraAgents.js +104 -0
  1031. package/script/src/api/info/extraAgents.js.map +1 -0
  1032. package/script/src/api/info/frontendOpenOrders.d.ts +103 -0
  1033. package/script/src/api/info/frontendOpenOrders.d.ts.map +1 -0
  1034. package/script/src/api/info/frontendOpenOrders.js +98 -0
  1035. package/script/src/api/info/frontendOpenOrders.js.map +1 -0
  1036. package/script/src/api/info/fundingHistory.d.ts +74 -0
  1037. package/script/src/api/info/fundingHistory.d.ts.map +1 -0
  1038. package/script/src/api/info/fundingHistory.js +110 -0
  1039. package/script/src/api/info/fundingHistory.js.map +1 -0
  1040. package/script/src/api/info/gossipRootIps.d.ts +39 -0
  1041. package/script/src/api/info/gossipRootIps.d.ts.map +1 -0
  1042. package/script/src/api/info/gossipRootIps.js +87 -0
  1043. package/script/src/api/info/gossipRootIps.js.map +1 -0
  1044. package/script/src/api/info/historicalOrders.d.ts +132 -0
  1045. package/script/src/api/info/historicalOrders.d.ts.map +1 -0
  1046. package/script/src/api/info/historicalOrders.js +105 -0
  1047. package/script/src/api/info/historicalOrders.js.map +1 -0
  1048. package/script/src/api/info/isVip.d.ts +49 -0
  1049. package/script/src/api/info/isVip.d.ts.map +1 -0
  1050. package/script/src/api/info/isVip.js +95 -0
  1051. package/script/src/api/info/isVip.js.map +1 -0
  1052. package/script/src/api/info/l2Book.d.ts +98 -0
  1053. package/script/src/api/info/l2Book.d.ts.map +1 -0
  1054. package/script/src/api/info/l2Book.js +107 -0
  1055. package/script/src/api/info/l2Book.js.map +1 -0
  1056. package/script/src/api/info/leadingVaults.d.ts +60 -0
  1057. package/script/src/api/info/leadingVaults.d.ts.map +1 -0
  1058. package/script/src/api/info/leadingVaults.js +102 -0
  1059. package/script/src/api/info/leadingVaults.js.map +1 -0
  1060. package/script/src/api/info/legalCheck.d.ts +60 -0
  1061. package/script/src/api/info/legalCheck.d.ts.map +1 -0
  1062. package/script/src/api/info/legalCheck.js +102 -0
  1063. package/script/src/api/info/legalCheck.js.map +1 -0
  1064. package/script/src/api/info/liquidatable.d.ts +38 -0
  1065. package/script/src/api/info/liquidatable.d.ts.map +1 -0
  1066. package/script/src/api/info/liquidatable.js +86 -0
  1067. package/script/src/api/info/liquidatable.js.map +1 -0
  1068. package/script/src/api/info/marginTable.d.ts +71 -0
  1069. package/script/src/api/info/marginTable.d.ts.map +1 -0
  1070. package/script/src/api/info/marginTable.js +107 -0
  1071. package/script/src/api/info/marginTable.js.map +1 -0
  1072. package/script/src/api/info/maxBuilderFee.d.ts +52 -0
  1073. package/script/src/api/info/maxBuilderFee.d.ts.map +1 -0
  1074. package/script/src/api/info/maxBuilderFee.js +97 -0
  1075. package/script/src/api/info/maxBuilderFee.js.map +1 -0
  1076. package/script/src/api/info/maxMarketOrderNtls.d.ts +41 -0
  1077. package/script/src/api/info/maxMarketOrderNtls.d.ts.map +1 -0
  1078. package/script/src/api/info/maxMarketOrderNtls.js +90 -0
  1079. package/script/src/api/info/maxMarketOrderNtls.js.map +1 -0
  1080. package/script/src/api/info/meta.d.ts +143 -0
  1081. package/script/src/api/info/meta.d.ts.map +1 -0
  1082. package/script/src/api/info/meta.js +109 -0
  1083. package/script/src/api/info/meta.js.map +1 -0
  1084. package/script/src/api/info/metaAndAssetCtxs.d.ts +204 -0
  1085. package/script/src/api/info/metaAndAssetCtxs.d.ts.map +1 -0
  1086. package/script/src/api/info/metaAndAssetCtxs.js +103 -0
  1087. package/script/src/api/info/metaAndAssetCtxs.js.map +1 -0
  1088. package/script/src/api/info/openOrders.d.ts +82 -0
  1089. package/script/src/api/info/openOrders.d.ts.map +1 -0
  1090. package/script/src/api/info/openOrders.js +98 -0
  1091. package/script/src/api/info/openOrders.js.map +1 -0
  1092. package/script/src/api/info/orderStatus.d.ts +150 -0
  1093. package/script/src/api/info/orderStatus.d.ts.map +1 -0
  1094. package/script/src/api/info/orderStatus.js +120 -0
  1095. package/script/src/api/info/orderStatus.js.map +1 -0
  1096. package/script/src/api/info/perpDeployAuctionStatus.d.ts +56 -0
  1097. package/script/src/api/info/perpDeployAuctionStatus.d.ts.map +1 -0
  1098. package/script/src/api/info/perpDeployAuctionStatus.js +99 -0
  1099. package/script/src/api/info/perpDeployAuctionStatus.js.map +1 -0
  1100. package/script/src/api/info/perpDexLimits.d.ts +63 -0
  1101. package/script/src/api/info/perpDexLimits.d.ts.map +1 -0
  1102. package/script/src/api/info/perpDexLimits.js +104 -0
  1103. package/script/src/api/info/perpDexLimits.js.map +1 -0
  1104. package/script/src/api/info/perpDexs.d.ts +78 -0
  1105. package/script/src/api/info/perpDexs.d.ts.map +1 -0
  1106. package/script/src/api/info/perpDexs.js +112 -0
  1107. package/script/src/api/info/perpDexs.js.map +1 -0
  1108. package/script/src/api/info/perpsAtOpenInterestCap.d.ts +47 -0
  1109. package/script/src/api/info/perpsAtOpenInterestCap.d.ts.map +1 -0
  1110. package/script/src/api/info/perpsAtOpenInterestCap.js +74 -0
  1111. package/script/src/api/info/perpsAtOpenInterestCap.js.map +1 -0
  1112. package/script/src/api/info/portfolio.d.ts +169 -0
  1113. package/script/src/api/info/portfolio.d.ts.map +1 -0
  1114. package/script/src/api/info/portfolio.js +115 -0
  1115. package/script/src/api/info/portfolio.js.map +1 -0
  1116. package/script/src/api/info/preTransferCheck.d.ts +66 -0
  1117. package/script/src/api/info/preTransferCheck.d.ts.map +1 -0
  1118. package/script/src/api/info/preTransferCheck.js +106 -0
  1119. package/script/src/api/info/preTransferCheck.js.map +1 -0
  1120. package/script/src/api/info/predictedFundings.d.ts +66 -0
  1121. package/script/src/api/info/predictedFundings.d.ts.map +1 -0
  1122. package/script/src/api/info/predictedFundings.js +109 -0
  1123. package/script/src/api/info/predictedFundings.js.map +1 -0
  1124. package/script/src/api/info/recentTrades.d.ts +84 -0
  1125. package/script/src/api/info/recentTrades.d.ts.map +1 -0
  1126. package/script/src/api/info/recentTrades.js +114 -0
  1127. package/script/src/api/info/recentTrades.js.map +1 -0
  1128. package/script/src/api/info/referral.d.ts +274 -0
  1129. package/script/src/api/info/referral.d.ts.map +1 -0
  1130. package/script/src/api/info/referral.js +196 -0
  1131. package/script/src/api/info/referral.js.map +1 -0
  1132. package/script/src/api/info/spotClearinghouseState.d.ts +103 -0
  1133. package/script/src/api/info/spotClearinghouseState.d.ts.map +1 -0
  1134. package/script/src/api/info/spotClearinghouseState.js +112 -0
  1135. package/script/src/api/info/spotClearinghouseState.js.map +1 -0
  1136. package/script/src/api/info/spotDeployState.d.ts +162 -0
  1137. package/script/src/api/info/spotDeployState.d.ts.map +1 -0
  1138. package/script/src/api/info/spotDeployState.js +143 -0
  1139. package/script/src/api/info/spotDeployState.js.map +1 -0
  1140. package/script/src/api/info/spotMeta.d.ts +137 -0
  1141. package/script/src/api/info/spotMeta.d.ts.map +1 -0
  1142. package/script/src/api/info/spotMeta.js +130 -0
  1143. package/script/src/api/info/spotMeta.js.map +1 -0
  1144. package/script/src/api/info/spotMetaAndAssetCtxs.d.ts +185 -0
  1145. package/script/src/api/info/spotMetaAndAssetCtxs.d.ts.map +1 -0
  1146. package/script/src/api/info/spotMetaAndAssetCtxs.js +112 -0
  1147. package/script/src/api/info/spotMetaAndAssetCtxs.js.map +1 -0
  1148. package/script/src/api/info/spotPairDeployAuctionStatus.d.ts +56 -0
  1149. package/script/src/api/info/spotPairDeployAuctionStatus.d.ts.map +1 -0
  1150. package/script/src/api/info/spotPairDeployAuctionStatus.js +99 -0
  1151. package/script/src/api/info/spotPairDeployAuctionStatus.js.map +1 -0
  1152. package/script/src/api/info/subAccounts.d.ts +412 -0
  1153. package/script/src/api/info/subAccounts.d.ts.map +1 -0
  1154. package/script/src/api/info/subAccounts.js +110 -0
  1155. package/script/src/api/info/subAccounts.js.map +1 -0
  1156. package/script/src/api/info/subAccounts2.d.ts +498 -0
  1157. package/script/src/api/info/subAccounts2.d.ts.map +1 -0
  1158. package/script/src/api/info/subAccounts2.js +113 -0
  1159. package/script/src/api/info/subAccounts2.js.map +1 -0
  1160. package/script/src/api/info/tokenDetails.d.ts +114 -0
  1161. package/script/src/api/info/tokenDetails.d.ts.map +1 -0
  1162. package/script/src/api/info/tokenDetails.js +135 -0
  1163. package/script/src/api/info/tokenDetails.js.map +1 -0
  1164. package/script/src/api/info/twapHistory.d.ts +132 -0
  1165. package/script/src/api/info/twapHistory.d.ts.map +1 -0
  1166. package/script/src/api/info/twapHistory.js +107 -0
  1167. package/script/src/api/info/twapHistory.js.map +1 -0
  1168. package/script/src/api/info/txDetails.d.ts +102 -0
  1169. package/script/src/api/info/txDetails.d.ts.map +1 -0
  1170. package/script/src/api/info/txDetails.js +116 -0
  1171. package/script/src/api/info/txDetails.js.map +1 -0
  1172. package/script/src/api/info/userDetails.d.ts +106 -0
  1173. package/script/src/api/info/userDetails.d.ts.map +1 -0
  1174. package/script/src/api/info/userDetails.js +101 -0
  1175. package/script/src/api/info/userDetails.js.map +1 -0
  1176. package/script/src/api/info/userDexAbstraction.d.ts +49 -0
  1177. package/script/src/api/info/userDexAbstraction.d.ts.map +1 -0
  1178. package/script/src/api/info/userDexAbstraction.js +95 -0
  1179. package/script/src/api/info/userDexAbstraction.js.map +1 -0
  1180. package/script/src/api/info/userFees.d.ts +269 -0
  1181. package/script/src/api/info/userFees.d.ts.map +1 -0
  1182. package/script/src/api/info/userFees.js +210 -0
  1183. package/script/src/api/info/userFees.js.map +1 -0
  1184. package/script/src/api/info/userFills.d.ts +122 -0
  1185. package/script/src/api/info/userFills.d.ts.map +1 -0
  1186. package/script/src/api/info/userFills.js +98 -0
  1187. package/script/src/api/info/userFills.js.map +1 -0
  1188. package/script/src/api/info/userFillsByTime.d.ts +128 -0
  1189. package/script/src/api/info/userFillsByTime.d.ts.map +1 -0
  1190. package/script/src/api/info/userFillsByTime.js +102 -0
  1191. package/script/src/api/info/userFillsByTime.js.map +1 -0
  1192. package/script/src/api/info/userFunding.d.ts +104 -0
  1193. package/script/src/api/info/userFunding.d.ts.map +1 -0
  1194. package/script/src/api/info/userFunding.js +121 -0
  1195. package/script/src/api/info/userFunding.js.map +1 -0
  1196. package/script/src/api/info/userNonFundingLedgerUpdates.d.ts +711 -0
  1197. package/script/src/api/info/userNonFundingLedgerUpdates.d.ts.map +1 -0
  1198. package/script/src/api/info/userNonFundingLedgerUpdates.js +295 -0
  1199. package/script/src/api/info/userNonFundingLedgerUpdates.js.map +1 -0
  1200. package/script/src/api/info/userRateLimit.d.ts +63 -0
  1201. package/script/src/api/info/userRateLimit.d.ts.map +1 -0
  1202. package/script/src/api/info/userRateLimit.js +104 -0
  1203. package/script/src/api/info/userRateLimit.js.map +1 -0
  1204. package/script/src/api/info/userRole.d.ts +84 -0
  1205. package/script/src/api/info/userRole.d.ts.map +1 -0
  1206. package/script/src/api/info/userRole.js +118 -0
  1207. package/script/src/api/info/userRole.js.map +1 -0
  1208. package/script/src/api/info/userToMultiSigSigners.d.ts +57 -0
  1209. package/script/src/api/info/userToMultiSigSigners.d.ts.map +1 -0
  1210. package/script/src/api/info/userToMultiSigSigners.js +100 -0
  1211. package/script/src/api/info/userToMultiSigSigners.js.map +1 -0
  1212. package/script/src/api/info/userTwapSliceFills.d.ts +124 -0
  1213. package/script/src/api/info/userTwapSliceFills.d.ts.map +1 -0
  1214. package/script/src/api/info/userTwapSliceFills.js +103 -0
  1215. package/script/src/api/info/userTwapSliceFills.js.map +1 -0
  1216. package/script/src/api/info/userTwapSliceFillsByTime.d.ts +133 -0
  1217. package/script/src/api/info/userTwapSliceFillsByTime.d.ts.map +1 -0
  1218. package/script/src/api/info/userTwapSliceFillsByTime.js +109 -0
  1219. package/script/src/api/info/userTwapSliceFillsByTime.js.map +1 -0
  1220. package/script/src/api/info/userVaultEquities.d.ts +64 -0
  1221. package/script/src/api/info/userVaultEquities.d.ts.map +1 -0
  1222. package/script/src/api/info/userVaultEquities.js +104 -0
  1223. package/script/src/api/info/userVaultEquities.js.map +1 -0
  1224. package/script/src/api/info/validatorL1Votes.d.ts +70 -0
  1225. package/script/src/api/info/validatorL1Votes.d.ts.map +1 -0
  1226. package/script/src/api/info/validatorL1Votes.js +104 -0
  1227. package/script/src/api/info/validatorL1Votes.js.map +1 -0
  1228. package/script/src/api/info/validatorSummaries.d.ts +155 -0
  1229. package/script/src/api/info/validatorSummaries.d.ts.map +1 -0
  1230. package/script/src/api/info/validatorSummaries.js +128 -0
  1231. package/script/src/api/info/validatorSummaries.js.map +1 -0
  1232. package/script/src/api/info/vaultDetails.d.ts +359 -0
  1233. package/script/src/api/info/vaultDetails.d.ts.map +1 -0
  1234. package/script/src/api/info/vaultDetails.js +177 -0
  1235. package/script/src/api/info/vaultDetails.js.map +1 -0
  1236. package/script/src/api/info/vaultSummaries.d.ts +104 -0
  1237. package/script/src/api/info/vaultSummaries.d.ts.map +1 -0
  1238. package/script/src/api/info/vaultSummaries.js +119 -0
  1239. package/script/src/api/info/vaultSummaries.js.map +1 -0
  1240. package/script/src/api/info/webData2.d.ts +833 -0
  1241. package/script/src/api/info/webData2.d.ts.map +1 -0
  1242. package/script/src/api/info/webData2.js +96 -0
  1243. package/script/src/api/info/webData2.js.map +1 -0
  1244. package/script/src/api/info/~client.d.ts +1487 -0
  1245. package/script/src/api/info/~client.d.ts.map +1 -0
  1246. package/script/src/api/info/~client.js +1557 -0
  1247. package/script/src/api/info/~client.js.map +1 -0
  1248. package/script/src/api/info/~mod.d.ts +91 -0
  1249. package/script/src/api/info/~mod.d.ts.map +1 -0
  1250. package/script/src/api/info/~mod.js +109 -0
  1251. package/script/src/api/info/~mod.js.map +1 -0
  1252. package/script/src/api/subscription/_types.d.ts +7 -0
  1253. package/script/src/api/subscription/_types.d.ts.map +1 -0
  1254. package/script/src/api/subscription/_types.js +3 -0
  1255. package/script/src/api/subscription/_types.js.map +1 -0
  1256. package/script/src/api/subscription/activeAssetCtx.d.ts +97 -0
  1257. package/script/src/api/subscription/activeAssetCtx.d.ts.map +1 -0
  1258. package/script/src/api/subscription/activeAssetCtx.js +118 -0
  1259. package/script/src/api/subscription/activeAssetCtx.js.map +1 -0
  1260. package/script/src/api/subscription/activeAssetData.d.ts +84 -0
  1261. package/script/src/api/subscription/activeAssetData.d.ts.map +1 -0
  1262. package/script/src/api/subscription/activeAssetData.js +95 -0
  1263. package/script/src/api/subscription/activeAssetData.js.map +1 -0
  1264. package/script/src/api/subscription/activeSpotAssetCtx.d.ts +89 -0
  1265. package/script/src/api/subscription/activeSpotAssetCtx.d.ts.map +1 -0
  1266. package/script/src/api/subscription/activeSpotAssetCtx.js +114 -0
  1267. package/script/src/api/subscription/activeSpotAssetCtx.js.map +1 -0
  1268. package/script/src/api/subscription/allMids.d.ts +58 -0
  1269. package/script/src/api/subscription/allMids.d.ts.map +1 -0
  1270. package/script/src/api/subscription/allMids.js +79 -0
  1271. package/script/src/api/subscription/allMids.js.map +1 -0
  1272. package/script/src/api/subscription/assetCtxs.d.ts +108 -0
  1273. package/script/src/api/subscription/assetCtxs.d.ts.map +1 -0
  1274. package/script/src/api/subscription/assetCtxs.js +102 -0
  1275. package/script/src/api/subscription/assetCtxs.js.map +1 -0
  1276. package/script/src/api/subscription/bbo.d.ts +89 -0
  1277. package/script/src/api/subscription/bbo.d.ts.map +1 -0
  1278. package/script/src/api/subscription/bbo.js +100 -0
  1279. package/script/src/api/subscription/bbo.js.map +1 -0
  1280. package/script/src/api/subscription/candle.d.ts +71 -0
  1281. package/script/src/api/subscription/candle.d.ts.map +1 -0
  1282. package/script/src/api/subscription/candle.js +95 -0
  1283. package/script/src/api/subscription/candle.js.map +1 -0
  1284. package/script/src/api/subscription/clearinghouseState.d.ts +285 -0
  1285. package/script/src/api/subscription/clearinghouseState.d.ts.map +1 -0
  1286. package/script/src/api/subscription/clearinghouseState.js +106 -0
  1287. package/script/src/api/subscription/clearinghouseState.js.map +1 -0
  1288. package/script/src/api/subscription/explorerBlock.d.ts +64 -0
  1289. package/script/src/api/subscription/explorerBlock.d.ts.map +1 -0
  1290. package/script/src/api/subscription/explorerBlock.js +100 -0
  1291. package/script/src/api/subscription/explorerBlock.js.map +1 -0
  1292. package/script/src/api/subscription/explorerTxs.d.ts +83 -0
  1293. package/script/src/api/subscription/explorerTxs.d.ts.map +1 -0
  1294. package/script/src/api/subscription/explorerTxs.js +105 -0
  1295. package/script/src/api/subscription/explorerTxs.js.map +1 -0
  1296. package/script/src/api/subscription/l2Book.d.ts +97 -0
  1297. package/script/src/api/subscription/l2Book.d.ts.map +1 -0
  1298. package/script/src/api/subscription/l2Book.js +112 -0
  1299. package/script/src/api/subscription/l2Book.js.map +1 -0
  1300. package/script/src/api/subscription/notification.d.ts +51 -0
  1301. package/script/src/api/subscription/notification.d.ts.map +1 -0
  1302. package/script/src/api/subscription/notification.js +93 -0
  1303. package/script/src/api/subscription/notification.js.map +1 -0
  1304. package/script/src/api/subscription/openOrders.d.ts +128 -0
  1305. package/script/src/api/subscription/openOrders.d.ts.map +1 -0
  1306. package/script/src/api/subscription/openOrders.js +106 -0
  1307. package/script/src/api/subscription/openOrders.js.map +1 -0
  1308. package/script/src/api/subscription/orderUpdates.d.ts +101 -0
  1309. package/script/src/api/subscription/orderUpdates.d.ts.map +1 -0
  1310. package/script/src/api/subscription/orderUpdates.js +100 -0
  1311. package/script/src/api/subscription/orderUpdates.js.map +1 -0
  1312. package/script/src/api/subscription/spotAssetCtxs.d.ts +67 -0
  1313. package/script/src/api/subscription/spotAssetCtxs.d.ts.map +1 -0
  1314. package/script/src/api/subscription/spotAssetCtxs.js +104 -0
  1315. package/script/src/api/subscription/spotAssetCtxs.js.map +1 -0
  1316. package/script/src/api/subscription/spotState.d.ts +91 -0
  1317. package/script/src/api/subscription/spotState.d.ts.map +1 -0
  1318. package/script/src/api/subscription/spotState.js +101 -0
  1319. package/script/src/api/subscription/spotState.js.map +1 -0
  1320. package/script/src/api/subscription/trades.d.ts +73 -0
  1321. package/script/src/api/subscription/trades.d.ts.map +1 -0
  1322. package/script/src/api/subscription/trades.js +92 -0
  1323. package/script/src/api/subscription/trades.js.map +1 -0
  1324. package/script/src/api/subscription/userEvents.d.ts +876 -0
  1325. package/script/src/api/subscription/userEvents.d.ts.map +1 -0
  1326. package/script/src/api/subscription/userEvents.js +186 -0
  1327. package/script/src/api/subscription/userEvents.js.map +1 -0
  1328. package/script/src/api/subscription/userFills.d.ts +152 -0
  1329. package/script/src/api/subscription/userFills.d.ts.map +1 -0
  1330. package/script/src/api/subscription/userFills.js +106 -0
  1331. package/script/src/api/subscription/userFills.js.map +1 -0
  1332. package/script/src/api/subscription/userFundings.d.ts +91 -0
  1333. package/script/src/api/subscription/userFundings.d.ts.map +1 -0
  1334. package/script/src/api/subscription/userFundings.js +114 -0
  1335. package/script/src/api/subscription/userFundings.js.map +1 -0
  1336. package/script/src/api/subscription/userHistoricalOrders.d.ts +161 -0
  1337. package/script/src/api/subscription/userHistoricalOrders.d.ts.map +1 -0
  1338. package/script/src/api/subscription/userHistoricalOrders.js +109 -0
  1339. package/script/src/api/subscription/userHistoricalOrders.js.map +1 -0
  1340. package/script/src/api/subscription/userNonFundingLedgerUpdates.d.ts +493 -0
  1341. package/script/src/api/subscription/userNonFundingLedgerUpdates.d.ts.map +1 -0
  1342. package/script/src/api/subscription/userNonFundingLedgerUpdates.js +100 -0
  1343. package/script/src/api/subscription/userNonFundingLedgerUpdates.js.map +1 -0
  1344. package/script/src/api/subscription/userTwapHistory.d.ts +161 -0
  1345. package/script/src/api/subscription/userTwapHistory.d.ts.map +1 -0
  1346. package/script/src/api/subscription/userTwapHistory.js +111 -0
  1347. package/script/src/api/subscription/userTwapHistory.js.map +1 -0
  1348. package/script/src/api/subscription/userTwapSliceFills.d.ts +132 -0
  1349. package/script/src/api/subscription/userTwapSliceFills.d.ts.map +1 -0
  1350. package/script/src/api/subscription/userTwapSliceFills.js +105 -0
  1351. package/script/src/api/subscription/userTwapSliceFills.js.map +1 -0
  1352. package/script/src/api/subscription/webData2.d.ts +704 -0
  1353. package/script/src/api/subscription/webData2.d.ts.map +1 -0
  1354. package/script/src/api/subscription/webData2.js +144 -0
  1355. package/script/src/api/subscription/webData2.js.map +1 -0
  1356. package/script/src/api/subscription/webData3.d.ts +541 -0
  1357. package/script/src/api/subscription/webData3.d.ts.map +1 -0
  1358. package/script/src/api/subscription/webData3.js +137 -0
  1359. package/script/src/api/subscription/webData3.js.map +1 -0
  1360. package/script/src/api/subscription/~client.d.ts +598 -0
  1361. package/script/src/api/subscription/~client.d.ts.map +1 -0
  1362. package/script/src/api/subscription/~client.js +630 -0
  1363. package/script/src/api/subscription/~client.js.map +1 -0
  1364. package/script/src/api/subscription/~mod.d.ts +53 -0
  1365. package/script/src/api/subscription/~mod.d.ts.map +1 -0
  1366. package/script/src/api/subscription/~mod.js +71 -0
  1367. package/script/src/api/subscription/~mod.js.map +1 -0
  1368. package/script/src/mod.d.ts +9 -0
  1369. package/script/src/mod.d.ts.map +1 -0
  1370. package/script/src/mod.js +28 -0
  1371. package/script/src/mod.js.map +1 -0
  1372. package/script/src/signing/_signTypedData.d.ts +123 -0
  1373. package/script/src/signing/_signTypedData.d.ts.map +1 -0
  1374. package/script/src/signing/_signTypedData.js +201 -0
  1375. package/script/src/signing/_signTypedData.js.map +1 -0
  1376. package/script/src/signing/mod.d.ts +324 -0
  1377. package/script/src/signing/mod.d.ts.map +1 -0
  1378. package/script/src/signing/mod.js +404 -0
  1379. package/script/src/signing/mod.js.map +1 -0
  1380. package/script/src/transport/_polyfills.d.ts +19 -0
  1381. package/script/src/transport/_polyfills.d.ts.map +1 -0
  1382. package/script/src/transport/_polyfills.js +51 -0
  1383. package/script/src/transport/_polyfills.js.map +1 -0
  1384. package/script/src/transport/base.d.ts +48 -0
  1385. package/script/src/transport/base.d.ts.map +1 -0
  1386. package/script/src/transport/base.js +13 -0
  1387. package/script/src/transport/base.js.map +1 -0
  1388. package/script/src/transport/http/mod.d.ts +94 -0
  1389. package/script/src/transport/http/mod.d.ts.map +1 -0
  1390. package/script/src/transport/http/mod.js +157 -0
  1391. package/script/src/transport/http/mod.js.map +1 -0
  1392. package/script/src/transport/websocket/_hyperliquid_event_target.d.ts +91 -0
  1393. package/script/src/transport/websocket/_hyperliquid_event_target.d.ts.map +1 -0
  1394. package/script/src/transport/websocket/_hyperliquid_event_target.js +91 -0
  1395. package/script/src/transport/websocket/_hyperliquid_event_target.js.map +1 -0
  1396. package/script/src/transport/websocket/_websocket_async_request.d.ts +37 -0
  1397. package/script/src/transport/websocket/_websocket_async_request.d.ts.map +1 -0
  1398. package/script/src/transport/websocket/_websocket_async_request.js +197 -0
  1399. package/script/src/transport/websocket/_websocket_async_request.js.map +1 -0
  1400. package/script/src/transport/websocket/mod.d.ts +123 -0
  1401. package/script/src/transport/websocket/mod.d.ts.map +1 -0
  1402. package/script/src/transport/websocket/mod.js +255 -0
  1403. package/script/src/transport/websocket/mod.js.map +1 -0
  1404. package/script/src/utils/_eip712.d.ts +42 -0
  1405. package/script/src/utils/_eip712.d.ts.map +1 -0
  1406. package/script/src/utils/_eip712.js +214 -0
  1407. package/script/src/utils/_eip712.js.map +1 -0
  1408. package/script/src/utils/_format.d.ts +28 -0
  1409. package/script/src/utils/_format.d.ts.map +1 -0
  1410. package/script/src/utils/_format.js +161 -0
  1411. package/script/src/utils/_format.js.map +1 -0
  1412. package/script/src/utils/_recover.d.ts +89 -0
  1413. package/script/src/utils/_recover.d.ts.map +1 -0
  1414. package/script/src/utils/_recover.js +156 -0
  1415. package/script/src/utils/_recover.js.map +1 -0
  1416. package/script/src/utils/_symbolConverter.d.ts +90 -0
  1417. package/script/src/utils/_symbolConverter.d.ts.map +1 -0
  1418. package/script/src/utils/_symbolConverter.js +176 -0
  1419. package/script/src/utils/_symbolConverter.js.map +1 -0
  1420. package/script/src/utils/mod.d.ts +4 -0
  1421. package/script/src/utils/mod.d.ts.map +1 -0
  1422. package/script/src/utils/mod.js +20 -0
  1423. package/script/src/utils/mod.js.map +1 -0
  1424. package/src/bin/_utils.ts +181 -0
  1425. package/src/bin/cli.ts +320 -0
  1426. package/src/deps/jsr.io/@std/bytes/1.0.6/_types.ts +11 -0
  1427. package/src/deps/jsr.io/@std/bytes/1.0.6/concat.ts +37 -0
  1428. package/src/deps/jsr.io/@std/msgpack/1.0.3/_types.ts +11 -0
  1429. package/src/deps/jsr.io/@std/msgpack/1.0.3/decode.ts +391 -0
  1430. package/src/deps/jsr.io/@std/msgpack/1.0.3/encode.ts +287 -0
  1431. package/src/deps/jsr.io/@std/msgpack/1.0.3/mod.ts +47 -0
  1432. package/src/src/_base.ts +7 -0
  1433. package/src/src/api/_base.ts +163 -0
  1434. package/src/src/api/_common_schemas.ts +767 -0
  1435. package/src/src/api/exchange/_base/_errors.ts +57 -0
  1436. package/src/src/api/exchange/_base/_execute.ts +275 -0
  1437. package/src/src/api/exchange/_base/_nonce.ts +29 -0
  1438. package/src/src/api/exchange/_base/_schemas.ts +73 -0
  1439. package/src/src/api/exchange/_base/_types.ts +114 -0
  1440. package/src/src/api/exchange/_base/mod.ts +4 -0
  1441. package/src/src/api/exchange/agentEnableDexAbstraction.ts +124 -0
  1442. package/src/src/api/exchange/approveAgent.ts +162 -0
  1443. package/src/src/api/exchange/approveBuilderFee.ts +162 -0
  1444. package/src/src/api/exchange/batchModify.ts +164 -0
  1445. package/src/src/api/exchange/cDeposit.ts +156 -0
  1446. package/src/src/api/exchange/cSignerAction.ts +150 -0
  1447. package/src/src/api/exchange/cValidatorAction.ts +290 -0
  1448. package/src/src/api/exchange/cWithdraw.ts +156 -0
  1449. package/src/src/api/exchange/cancel.ts +196 -0
  1450. package/src/src/api/exchange/cancelByCloid.ts +153 -0
  1451. package/src/src/api/exchange/claimRewards.ts +113 -0
  1452. package/src/src/api/exchange/convertToMultiSigUser.ts +212 -0
  1453. package/src/src/api/exchange/createSubAccount.ts +158 -0
  1454. package/src/src/api/exchange/createVault.ts +179 -0
  1455. package/src/src/api/exchange/evmUserModify.ts +136 -0
  1456. package/src/src/api/exchange/linkStakingUser.ts +178 -0
  1457. package/src/src/api/exchange/modify.ts +159 -0
  1458. package/src/src/api/exchange/multiSig.ts +348 -0
  1459. package/src/src/api/exchange/noop.ts +122 -0
  1460. package/src/src/api/exchange/order.ts +278 -0
  1461. package/src/src/api/exchange/perpDeploy.ts +402 -0
  1462. package/src/src/api/exchange/registerReferrer.ts +130 -0
  1463. package/src/src/api/exchange/reserveRequestWeight.ts +136 -0
  1464. package/src/src/api/exchange/scheduleCancel.ts +166 -0
  1465. package/src/src/api/exchange/sendAsset.ts +192 -0
  1466. package/src/src/api/exchange/setDisplayName.ts +136 -0
  1467. package/src/src/api/exchange/setReferrer.ts +130 -0
  1468. package/src/src/api/exchange/spotDeploy.ts +379 -0
  1469. package/src/src/api/exchange/spotSend.ts +172 -0
  1470. package/src/src/api/exchange/spotUser.ts +135 -0
  1471. package/src/src/api/exchange/subAccountModify.ts +135 -0
  1472. package/src/src/api/exchange/subAccountSpotTransfer.ts +149 -0
  1473. package/src/src/api/exchange/subAccountTransfer.ts +139 -0
  1474. package/src/src/api/exchange/tokenDelegate.ts +168 -0
  1475. package/src/src/api/exchange/twapCancel.ts +184 -0
  1476. package/src/src/api/exchange/twapOrder.ts +231 -0
  1477. package/src/src/api/exchange/updateIsolatedMargin.ts +152 -0
  1478. package/src/src/api/exchange/updateLeverage.ts +152 -0
  1479. package/src/src/api/exchange/usdClassTransfer.ts +162 -0
  1480. package/src/src/api/exchange/usdSend.ts +162 -0
  1481. package/src/src/api/exchange/userDexAbstraction.ts +166 -0
  1482. package/src/src/api/exchange/validatorL1Stream.ts +136 -0
  1483. package/src/src/api/exchange/vaultDistribute.ts +141 -0
  1484. package/src/src/api/exchange/vaultModify.ts +143 -0
  1485. package/src/src/api/exchange/vaultTransfer.ts +146 -0
  1486. package/src/src/api/exchange/withdraw3.ts +162 -0
  1487. package/src/src/api/exchange/~client.ts +1671 -0
  1488. package/src/src/api/exchange/~mod.ts +88 -0
  1489. package/src/src/api/info/_types.ts +7 -0
  1490. package/src/src/api/info/activeAssetData.ts +154 -0
  1491. package/src/src/api/info/alignedQuoteTokenInfo.ts +128 -0
  1492. package/src/src/api/info/allMids.ts +95 -0
  1493. package/src/src/api/info/allPerpMetas.ts +75 -0
  1494. package/src/src/api/info/blockDetails.ts +172 -0
  1495. package/src/src/api/info/candleSnapshot.ts +159 -0
  1496. package/src/src/api/info/clearinghouseState.ts +286 -0
  1497. package/src/src/api/info/delegations.ts +108 -0
  1498. package/src/src/api/info/delegatorHistory.ts +163 -0
  1499. package/src/src/api/info/delegatorRewards.ts +108 -0
  1500. package/src/src/api/info/delegatorSummary.ts +107 -0
  1501. package/src/src/api/info/exchangeStatus.ts +81 -0
  1502. package/src/src/api/info/extraAgents.ts +109 -0
  1503. package/src/src/api/info/frontendOpenOrders.ts +92 -0
  1504. package/src/src/api/info/fundingHistory.ts +123 -0
  1505. package/src/src/api/info/gossipRootIps.ts +70 -0
  1506. package/src/src/api/info/historicalOrders.ts +103 -0
  1507. package/src/src/api/info/isVip.ts +86 -0
  1508. package/src/src/api/info/l2Book.ts +125 -0
  1509. package/src/src/api/info/leadingVaults.ts +103 -0
  1510. package/src/src/api/info/legalCheck.ts +102 -0
  1511. package/src/src/api/info/liquidatable.ts +68 -0
  1512. package/src/src/api/info/marginTable.ts +117 -0
  1513. package/src/src/api/info/maxBuilderFee.ts +93 -0
  1514. package/src/src/api/info/maxMarketOrderNtls.ts +81 -0
  1515. package/src/src/api/info/meta.ts +176 -0
  1516. package/src/src/api/info/metaAndAssetCtxs.ts +159 -0
  1517. package/src/src/api/info/openOrders.ts +92 -0
  1518. package/src/src/api/info/orderStatus.ts +128 -0
  1519. package/src/src/api/info/perpDeployAuctionStatus.ts +98 -0
  1520. package/src/src/api/info/perpDexLimits.ts +109 -0
  1521. package/src/src/api/info/perpDexs.ts +131 -0
  1522. package/src/src/api/info/perpsAtOpenInterestCap.ts +93 -0
  1523. package/src/src/api/info/portfolio.ts +120 -0
  1524. package/src/src/api/info/preTransferCheck.ts +112 -0
  1525. package/src/src/api/info/predictedFundings.ts +124 -0
  1526. package/src/src/api/info/recentTrades.ts +133 -0
  1527. package/src/src/api/info/referral.ts +321 -0
  1528. package/src/src/api/info/spotClearinghouseState.ts +127 -0
  1529. package/src/src/api/info/spotDeployState.ts +201 -0
  1530. package/src/src/api/info/spotMeta.ts +175 -0
  1531. package/src/src/api/info/spotMetaAndAssetCtxs.ts +127 -0
  1532. package/src/src/api/info/spotPairDeployAuctionStatus.ts +98 -0
  1533. package/src/src/api/info/subAccounts.ts +117 -0
  1534. package/src/src/api/info/subAccounts2.ts +126 -0
  1535. package/src/src/api/info/tokenDetails.ts +185 -0
  1536. package/src/src/api/info/twapHistory.ts +108 -0
  1537. package/src/src/api/info/txDetails.ts +135 -0
  1538. package/src/src/api/info/userDetails.ts +99 -0
  1539. package/src/src/api/info/userDexAbstraction.ts +86 -0
  1540. package/src/src/api/info/userFees.ts +340 -0
  1541. package/src/src/api/info/userFills.ts +92 -0
  1542. package/src/src/api/info/userFillsByTime.ts +102 -0
  1543. package/src/src/api/info/userFunding.ts +149 -0
  1544. package/src/src/api/info/userNonFundingLedgerUpdates.ts +537 -0
  1545. package/src/src/api/info/userRateLimit.ts +107 -0
  1546. package/src/src/api/info/userRole.ts +130 -0
  1547. package/src/src/api/info/userToMultiSigSigners.ts +101 -0
  1548. package/src/src/api/info/userTwapSliceFills.ts +101 -0
  1549. package/src/src/api/info/userTwapSliceFillsByTime.ts +116 -0
  1550. package/src/src/api/info/userVaultEquities.ts +108 -0
  1551. package/src/src/api/info/validatorL1Votes.ts +101 -0
  1552. package/src/src/api/info/validatorSummaries.ts +163 -0
  1553. package/src/src/api/info/vaultDetails.ts +279 -0
  1554. package/src/src/api/info/vaultSummaries.ts +140 -0
  1555. package/src/src/api/info/webData2.ts +87 -0
  1556. package/src/src/api/info/~client.ts +1838 -0
  1557. package/src/src/api/info/~mod.ts +92 -0
  1558. package/src/src/api/subscription/_types.ts +7 -0
  1559. package/src/src/api/subscription/activeAssetCtx.ts +146 -0
  1560. package/src/src/api/subscription/activeAssetData.ts +87 -0
  1561. package/src/src/api/subscription/activeSpotAssetCtx.ts +136 -0
  1562. package/src/src/api/subscription/allMids.ts +110 -0
  1563. package/src/src/api/subscription/assetCtxs.ts +167 -0
  1564. package/src/src/api/subscription/bbo.ts +101 -0
  1565. package/src/src/api/subscription/candle.ts +84 -0
  1566. package/src/src/api/subscription/clearinghouseState.ts +107 -0
  1567. package/src/src/api/subscription/explorerBlock.ts +107 -0
  1568. package/src/src/api/subscription/explorerTxs.ts +118 -0
  1569. package/src/src/api/subscription/l2Book.ts +137 -0
  1570. package/src/src/api/subscription/notification.ts +88 -0
  1571. package/src/src/api/subscription/openOrders.ts +110 -0
  1572. package/src/src/api/subscription/orderUpdates.ts +99 -0
  1573. package/src/src/api/subscription/spotAssetCtxs.ts +118 -0
  1574. package/src/src/api/subscription/spotState.ts +102 -0
  1575. package/src/src/api/subscription/trades.ts +81 -0
  1576. package/src/src/api/subscription/userEvents.ts +281 -0
  1577. package/src/src/api/subscription/userFills.ts +110 -0
  1578. package/src/src/api/subscription/userFundings.ts +137 -0
  1579. package/src/src/api/subscription/userHistoricalOrders.ts +117 -0
  1580. package/src/src/api/subscription/userNonFundingLedgerUpdates.ts +101 -0
  1581. package/src/src/api/subscription/userTwapHistory.ts +122 -0
  1582. package/src/src/api/subscription/userTwapSliceFills.ts +111 -0
  1583. package/src/src/api/subscription/webData2.ts +186 -0
  1584. package/src/src/api/subscription/webData3.ts +185 -0
  1585. package/src/src/api/subscription/~client.ts +792 -0
  1586. package/src/src/api/subscription/~mod.ts +54 -0
  1587. package/src/src/mod.ts +10 -0
  1588. package/src/src/signing/_signTypedData.ts +314 -0
  1589. package/src/src/signing/mod.ts +506 -0
  1590. package/src/src/transport/_polyfills.ts +55 -0
  1591. package/src/src/transport/base.ts +54 -0
  1592. package/src/src/transport/http/mod.ts +218 -0
  1593. package/src/src/transport/websocket/_hyperliquid_event_target.ts +137 -0
  1594. package/src/src/transport/websocket/_websocket_async_request.ts +242 -0
  1595. package/src/src/transport/websocket/mod.ts +349 -0
  1596. package/src/src/utils/_eip712.ts +243 -0
  1597. package/src/src/utils/_format.ts +173 -0
  1598. package/src/src/utils/_recover.ts +178 -0
  1599. package/src/src/utils/_symbolConverter.ts +203 -0
  1600. package/src/src/utils/mod.ts +3 -0
@@ -0,0 +1,1671 @@
1
+ import type { MaybePromise, OmitFirst, OverloadedParameters } from "../_base.js";
2
+ import type { ExchangeRequestConfig, MultiSignRequestConfig } from "./_base/mod.js";
3
+ import type { IRequestTransport } from "../../transport/base.js";
4
+ import type { AbstractWallet } from "../../signing/mod.js";
5
+ import { PrivateKeyEIP712Signer } from "../../utils/_eip712.js";
6
+
7
+ import { agentEnableDexAbstraction } from "./agentEnableDexAbstraction.js";
8
+ import { approveAgent } from "./approveAgent.js";
9
+ import { approveBuilderFee } from "./approveBuilderFee.js";
10
+ import { batchModify } from "./batchModify.js";
11
+ import { cancel } from "./cancel.js";
12
+ import { cancelByCloid } from "./cancelByCloid.js";
13
+ import { cDeposit } from "./cDeposit.js";
14
+ import { claimRewards } from "./claimRewards.js";
15
+ import { convertToMultiSigUser } from "./convertToMultiSigUser.js";
16
+ import { createSubAccount } from "./createSubAccount.js";
17
+ import { createVault } from "./createVault.js";
18
+ import { cSignerAction } from "./cSignerAction.js";
19
+ import { cValidatorAction } from "./cValidatorAction.js";
20
+ import { cWithdraw } from "./cWithdraw.js";
21
+ import { evmUserModify } from "./evmUserModify.js";
22
+ import { linkStakingUser } from "./linkStakingUser.js";
23
+ import { modify } from "./modify.js";
24
+ import { multiSig } from "./multiSig.js";
25
+ import { order } from "./order.js";
26
+ import { noop } from "./noop.js";
27
+ import { perpDeploy } from "./perpDeploy.js";
28
+ import { registerReferrer } from "./registerReferrer.js";
29
+ import { reserveRequestWeight } from "./reserveRequestWeight.js";
30
+ import { scheduleCancel } from "./scheduleCancel.js";
31
+ import { sendAsset } from "./sendAsset.js";
32
+ import { setDisplayName } from "./setDisplayName.js";
33
+ import { setReferrer } from "./setReferrer.js";
34
+ import { spotDeploy } from "./spotDeploy.js";
35
+ import { spotSend } from "./spotSend.js";
36
+ import { spotUser } from "./spotUser.js";
37
+ import { subAccountModify } from "./subAccountModify.js";
38
+ import { subAccountSpotTransfer } from "./subAccountSpotTransfer.js";
39
+ import { subAccountTransfer } from "./subAccountTransfer.js";
40
+ import { tokenDelegate } from "./tokenDelegate.js";
41
+ import { twapCancel } from "./twapCancel.js";
42
+ import { twapOrder } from "./twapOrder.js";
43
+ import { updateIsolatedMargin } from "./updateIsolatedMargin.js";
44
+ import { updateLeverage } from "./updateLeverage.js";
45
+ import { usdClassTransfer } from "./usdClassTransfer.js";
46
+ import { usdSend } from "./usdSend.js";
47
+ import { userDexAbstraction } from "./userDexAbstraction.js";
48
+ import { validatorL1Stream } from "./validatorL1Stream.js";
49
+ import { vaultDistribute } from "./vaultDistribute.js";
50
+ import { vaultModify } from "./vaultModify.js";
51
+ import { vaultTransfer } from "./vaultTransfer.js";
52
+ import { withdraw3 } from "./withdraw3.js";
53
+
54
+ /**
55
+ * A client for interacting with the Hyperliquid Exchange API.
56
+ * @typeParam T The transport (extends {@linkcode IRequestTransport}) used to connect to the Hyperliquid API.
57
+ * @typeParam W The wallet used for signing transactions.
58
+ */
59
+ export class ExchangeClient<
60
+ T extends IRequestTransport = IRequestTransport,
61
+ W extends AbstractWallet = AbstractWallet,
62
+ > implements ExchangeRequestConfig<T, W> {
63
+ transport: T;
64
+ wallet: W;
65
+ signatureChainId?: string | (() => MaybePromise<string>);
66
+ defaultVaultAddress?: string;
67
+ defaultExpiresAfter?: number | (() => MaybePromise<number>);
68
+ nonceManager?: number | ((address: string) => MaybePromise<number>);
69
+
70
+ /**
71
+ * Initialises a new instance.
72
+ * @param args - The parameters for the client.
73
+ *
74
+ * @example via a private key
75
+ * ```ts
76
+ * import * as hl from "@nktkas/hyperliquid";
77
+ *
78
+ * const pk = "0x...";
79
+ *
80
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
81
+ * const exchClient = new hl.ExchangeClient({ wallet: pk, transport });
82
+ * ```
83
+ *
84
+ * @example via [viem](https://viem.sh/docs/clients/wallet#local-accounts-private-key-mnemonic-etc)
85
+ * ```ts
86
+ * import * as hl from "@nktkas/hyperliquid";
87
+ *
88
+ * const pk = "0x...";
89
+ *
90
+ * const transport = new hl.HttpTransport();
91
+ * const exchClient = new hl.ExchangeClient({ wallet: pk, transport });
92
+ * ```
93
+ *
94
+ * @example via [ethers.js v6](https://docs.ethers.org/v6/api/wallet/#Wallet) or [ethers.js v5](https://docs.ethers.org/v5/api/signer/#Wallet)
95
+ * ```ts
96
+ * import * as hl from "@nktkas/hyperliquid";
97
+ * import { ethers } from "npm:ethers";
98
+ *
99
+ * const wallet = new ethers.Wallet("0x...");
100
+ *
101
+ * const transport = new hl.HttpTransport();
102
+ * const exchClient = new hl.ExchangeClient({ wallet, transport });
103
+ * ```
104
+ *
105
+ * @example via an external wallet (e.g. MetaMask) with [viem](https://viem.sh/docs/clients/wallet)
106
+ * ```ts
107
+ * import * as hl from "@nktkas/hyperliquid";
108
+ * import { createWalletClient, custom } from "npm:viem";
109
+ *
110
+ * const ethereum = (window as any).ethereum;
111
+ * const [account] = await ethereum.request({ method: "eth_requestAccounts" }) as `0x${string}`[];
112
+ * const wallet = createWalletClient({ account, transport: custom(ethereum) });
113
+ *
114
+ * const transport = new hl.HttpTransport();
115
+ * const exchClient = new hl.ExchangeClient({ wallet, transport });
116
+ * ```
117
+ */
118
+ constructor(
119
+ args:
120
+ & Omit<ExchangeRequestConfig<T, W>, "wallet">
121
+ & (Pick<ExchangeRequestConfig<T, W>, "wallet"> | { wallet: string }),
122
+ ) {
123
+ this.transport = args.transport;
124
+ this.wallet = typeof args.wallet === "string"
125
+ // convert private key string to PrivateKeyEIP712Signer instance
126
+ ? new PrivateKeyEIP712Signer(args.wallet) as unknown as W
127
+ : args.wallet;
128
+ this.defaultVaultAddress = args.defaultVaultAddress;
129
+ this.defaultExpiresAfter = args.defaultExpiresAfter;
130
+ this.signatureChainId = args.signatureChainId;
131
+ this.nonceManager = args.nonceManager;
132
+ }
133
+
134
+ /**
135
+ * Enable HIP-3 DEX abstraction.
136
+ * @param params - Parameters specific to the API request.
137
+ * @param opts - Request execution options.
138
+ * @returns Successful response without specific data.
139
+ *
140
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
141
+ * @throws {TransportError} When the transport layer throws an error.
142
+ *
143
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#enable-hip-3-dex-abstraction-agent
144
+ * @example
145
+ * ```ts
146
+ * import * as hl from "@nktkas/hyperliquid";
147
+ *
148
+ * const pk = "0x..."; // viem, ethers or private key
149
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
150
+ *
151
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
152
+ * await client.agentEnableDexAbstraction();
153
+ * ```
154
+ */
155
+ agentEnableDexAbstraction(
156
+ ...args: OmitFirst<OverloadedParameters<typeof agentEnableDexAbstraction>>
157
+ ): ReturnType<typeof agentEnableDexAbstraction> {
158
+ return agentEnableDexAbstraction(this, ...args);
159
+ }
160
+
161
+ /**
162
+ * Approve an agent to sign on behalf of the master account.
163
+ * @param params - Parameters specific to the API request.
164
+ * @param opts - Request execution options.
165
+ * @returns Successful response without specific data.
166
+ *
167
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
168
+ * @throws {TransportError} When the transport layer throws an error.
169
+ *
170
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#approve-an-api-wallet
171
+ * @example
172
+ * ```ts
173
+ * import * as hl from "@nktkas/hyperliquid";
174
+ *
175
+ * const pk = "0x..."; // viem, ethers or private key
176
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
177
+ *
178
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
179
+ * await client.approveAgent({ agentAddress: "0x...", agentName: "..." });
180
+ * ```
181
+ */
182
+ approveAgent(
183
+ ...args: OmitFirst<OverloadedParameters<typeof approveAgent>>
184
+ ): ReturnType<typeof approveAgent> {
185
+ return approveAgent(this, ...args);
186
+ }
187
+
188
+ /**
189
+ * Approve a maximum fee rate for a builder.
190
+ * @param params - Parameters specific to the API request.
191
+ * @param opts - Request execution options.
192
+ * @returns Successful response without specific data.
193
+ *
194
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
195
+ * @throws {TransportError} When the transport layer throws an error.
196
+ *
197
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#approve-a-builder-fee
198
+ * @example
199
+ * ```ts
200
+ * import * as hl from "@nktkas/hyperliquid";
201
+ *
202
+ * const pk = "0x..."; // viem, ethers or private key
203
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
204
+ *
205
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
206
+ * await client.approveBuilderFee({ maxFeeRate: "0.01%", builder: "0x..." });
207
+ * ```
208
+ */
209
+ approveBuilderFee(
210
+ ...args: OmitFirst<OverloadedParameters<typeof approveBuilderFee>>
211
+ ): ReturnType<typeof approveBuilderFee> {
212
+ return approveBuilderFee(this, ...args);
213
+ }
214
+
215
+ /**
216
+ * Modify multiple orders.
217
+ * @param params - Parameters specific to the API request.
218
+ * @param opts - Request execution options.
219
+ * @returns Successful variant of {@link OrderResponse} without error statuses.
220
+ *
221
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
222
+ * @throws {TransportError} When the transport layer throws an error.
223
+ *
224
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-multiple-orders
225
+ * @example
226
+ * ```ts
227
+ * import * as hl from "@nktkas/hyperliquid";
228
+ *
229
+ * const pk = "0x..."; // viem, ethers or private key
230
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
231
+ *
232
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
233
+ * const data = await client.batchModify({
234
+ * modifies: [
235
+ * {
236
+ * oid: 123,
237
+ * order: {
238
+ * a: 0,
239
+ * b: true,
240
+ * p: "31000",
241
+ * s: "0.2",
242
+ * r: false,
243
+ * t: { limit: { tif: "Gtc" } },
244
+ * },
245
+ * },
246
+ * ],
247
+ * });
248
+ * ```
249
+ */
250
+ batchModify(
251
+ ...args: OmitFirst<OverloadedParameters<typeof batchModify>>
252
+ ): ReturnType<typeof batchModify> {
253
+ return batchModify(this, ...args);
254
+ }
255
+
256
+ /**
257
+ * Cancel order(s).
258
+ * @param params - Parameters specific to the API request.
259
+ * @param opts - Request execution options.
260
+ * @returns Successful variant of {@link CancelResponse} without error statuses.
261
+ *
262
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
263
+ * @throws {TransportError} When the transport layer throws an error.
264
+ *
265
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-order-s
266
+ * @example
267
+ * ```ts
268
+ * import * as hl from "@nktkas/hyperliquid";
269
+ *
270
+ * const pk = "0x..."; // viem, ethers or private key
271
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
272
+ *
273
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
274
+ * const data = await client.cancel({
275
+ * cancels: [
276
+ * { a: 0, o: 123 },
277
+ * ],
278
+ * });
279
+ * ```
280
+ */
281
+ cancel(
282
+ ...args: OmitFirst<OverloadedParameters<typeof cancel>>
283
+ ): ReturnType<typeof cancel> {
284
+ return cancel(this, ...args);
285
+ }
286
+
287
+ /**
288
+ * Cancel order(s) by cloid.
289
+ * @param params - Parameters specific to the API request.
290
+ * @param opts - Request execution options.
291
+ * @returns Successful variant of {@link CancelResponse} without error statuses.
292
+ *
293
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
294
+ * @throws {TransportError} When the transport layer throws an error.
295
+ *
296
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-order-s-by-cloid
297
+ * @example
298
+ * ```ts
299
+ * import * as hl from "@nktkas/hyperliquid";
300
+ *
301
+ * const pk = "0x..."; // viem, ethers or private key
302
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
303
+ *
304
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
305
+ * const data = await client.cancelByCloid({
306
+ * cancels: [
307
+ * { asset: 0, cloid: "0x..." },
308
+ * ],
309
+ * });
310
+ * ```
311
+ */
312
+ cancelByCloid(
313
+ ...args: OmitFirst<OverloadedParameters<typeof cancelByCloid>>
314
+ ): ReturnType<typeof cancelByCloid> {
315
+ return cancelByCloid(this, ...args);
316
+ }
317
+
318
+ /**
319
+ * Transfer native token from the user spot account into staking for delegating to validators.
320
+ * @param params - Parameters specific to the API request.
321
+ * @param opts - Request execution options.
322
+ * @returns Successful response without specific data.
323
+ *
324
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
325
+ * @throws {TransportError} When the transport layer throws an error.
326
+ *
327
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#deposit-into-staking
328
+ * @example
329
+ * ```ts
330
+ * import * as hl from "@nktkas/hyperliquid";
331
+ *
332
+ * const pk = "0x..."; // viem, ethers or private key
333
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
334
+ *
335
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
336
+ * await client.cDeposit({ wei: 1 * 1e8 });
337
+ * ```
338
+ */
339
+ cDeposit(
340
+ ...args: OmitFirst<OverloadedParameters<typeof cDeposit>>
341
+ ): ReturnType<typeof cDeposit> {
342
+ return cDeposit(this, ...args);
343
+ }
344
+
345
+ /**
346
+ * Claim rewards from referral program.
347
+ * @param opts - Request execution options.
348
+ * @returns Successful response without specific data.
349
+ *
350
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
351
+ * @throws {TransportError} When the transport layer throws an error.
352
+ *
353
+ * @example
354
+ * ```ts
355
+ * import * as hl from "@nktkas/hyperliquid";
356
+ *
357
+ * const pk = "0x..."; // viem, ethers or private key
358
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
359
+ *
360
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
361
+ * await client.claimRewards();
362
+ * ```
363
+ */
364
+ claimRewards(
365
+ ...args: OmitFirst<OverloadedParameters<typeof claimRewards>>
366
+ ): ReturnType<typeof claimRewards> {
367
+ return claimRewards(this, ...args);
368
+ }
369
+
370
+ /**
371
+ * Convert a single-signature account to a multi-signature account or vice versa.
372
+ * @param params - Parameters specific to the API request.
373
+ * @param opts - Request execution options.
374
+ * @returns Successful response without specific data.
375
+ *
376
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
377
+ * @throws {TransportError} When the transport layer throws an error.
378
+ *
379
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/hypercore/multi-sig
380
+ * @example
381
+ * ```ts
382
+ * import * as hl from "@nktkas/hyperliquid";
383
+ *
384
+ * const pk = "0x..."; // viem, ethers or private key
385
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
386
+ *
387
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
388
+ *
389
+ * // Convert to multi-sig user
390
+ * await client.convertToMultiSigUser({
391
+ * signers: {
392
+ * authorizedUsers: ["0x...", "0x...", "0x..."],
393
+ * threshold: 2,
394
+ * },
395
+ * });
396
+ *
397
+ * // Convert to single-sig user
398
+ * await client.convertToMultiSigUser({ signers: null });
399
+ * ```
400
+ */
401
+ convertToMultiSigUser(
402
+ ...args: OmitFirst<OverloadedParameters<typeof convertToMultiSigUser>>
403
+ ): ReturnType<typeof convertToMultiSigUser> {
404
+ return convertToMultiSigUser(this, ...args);
405
+ }
406
+
407
+ /**
408
+ * Create a sub-account.
409
+ * @param params - Parameters specific to the API request.
410
+ * @param opts - Request execution options.
411
+ * @returns Response for creating a sub-account.
412
+ *
413
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
414
+ * @throws {TransportError} When the transport layer throws an error.
415
+ *
416
+ * @example
417
+ * ```ts
418
+ * import * as hl from "@nktkas/hyperliquid";
419
+ *
420
+ * const pk = "0x..."; // viem, ethers or private key
421
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
422
+ *
423
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
424
+ * const data = await client.createSubAccount({ name: "..." });
425
+ * ```
426
+ */
427
+ createSubAccount(
428
+ ...args: OmitFirst<OverloadedParameters<typeof createSubAccount>>
429
+ ): ReturnType<typeof createSubAccount> {
430
+ return createSubAccount(this, ...args);
431
+ }
432
+
433
+ /**
434
+ * Create a vault.
435
+ * @param params - Parameters specific to the API request.
436
+ * @param opts - Request execution options.
437
+ * @returns Response for creating a vault.
438
+ *
439
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
440
+ * @throws {TransportError} When the transport layer throws an error.
441
+ *
442
+ * @example
443
+ * ```ts
444
+ * import * as hl from "@nktkas/hyperliquid";
445
+ *
446
+ * const pk = "0x..."; // viem, ethers or private key
447
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
448
+ *
449
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
450
+ * const data = await client.createVault({
451
+ * name: "...",
452
+ * description: "...",
453
+ * initialUsd: 100 * 1e6,
454
+ * });
455
+ * ```
456
+ */
457
+ createVault(
458
+ ...args: OmitFirst<OverloadedParameters<typeof createVault>>
459
+ ): ReturnType<typeof createVault> {
460
+ return createVault(this, ...args);
461
+ }
462
+
463
+ /**
464
+ * Jail or unjail self as a validator signer.
465
+ * @param params - Parameters specific to the API request.
466
+ * @param opts - Request execution options.
467
+ * @returns Successful response without specific data.
468
+ *
469
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
470
+ * @throws {TransportError} When the transport layer throws an error.
471
+ *
472
+ * @example
473
+ * ```ts
474
+ * import * as hl from "@nktkas/hyperliquid";
475
+ *
476
+ * const pk = "0x..."; // viem, ethers or private key
477
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
478
+ *
479
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
480
+ *
481
+ * // Jail self
482
+ * await client.cSignerAction({ jailSelf: null });
483
+ *
484
+ * // Unjail self
485
+ * await client.cSignerAction({ unjailSelf: null });
486
+ * ```
487
+ */
488
+ cSignerAction(
489
+ ...args: OmitFirst<OverloadedParameters<typeof cSignerAction>>
490
+ ): ReturnType<typeof cSignerAction> {
491
+ return cSignerAction(this, ...args);
492
+ }
493
+
494
+ /**
495
+ * Action related to validator management.
496
+ * @param params - Parameters specific to the API request.
497
+ * @param opts - Request execution options.
498
+ * @returns Successful response without specific data.
499
+ *
500
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
501
+ * @throws {TransportError} When the transport layer throws an error.
502
+ *
503
+ * @example
504
+ * ```ts
505
+ * import * as hl from "@nktkas/hyperliquid";
506
+ *
507
+ * const pk = "0x..."; // viem, ethers or private key
508
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
509
+ *
510
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
511
+ *
512
+ * // Change validator profile
513
+ * await client.cValidatorAction({
514
+ * changeProfile: {
515
+ * node_ip: { Ip: "1.2.3.4" },
516
+ * name: "...",
517
+ * description: "...",
518
+ * unjailed: true,
519
+ * disable_delegations: false,
520
+ * commission_bps: null,
521
+ * signer: null,
522
+ * },
523
+ * });
524
+ *
525
+ * // Register a new validator
526
+ * await client.cValidatorAction({
527
+ * register: {
528
+ * profile: {
529
+ * node_ip: { Ip: "1.2.3.4" },
530
+ * name: "...",
531
+ * description: "...",
532
+ * delegations_disabled: true,
533
+ * commission_bps: 1,
534
+ * signer: "0x...",
535
+ * },
536
+ * unjailed: false,
537
+ * initial_wei: 1,
538
+ * },
539
+ * });
540
+ *
541
+ * // Unregister a validator
542
+ * await client.cValidatorAction({ unregister: null });
543
+ * ```
544
+ */
545
+ cValidatorAction(
546
+ ...args: OmitFirst<OverloadedParameters<typeof cValidatorAction>>
547
+ ): ReturnType<typeof cValidatorAction> {
548
+ return cValidatorAction(this, ...args);
549
+ }
550
+
551
+ /**
552
+ * Transfer native token from staking into the user's spot account.
553
+ * @param params - Parameters specific to the API request.
554
+ * @param opts - Request execution options.
555
+ * @returns Successful response without specific data.
556
+ *
557
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
558
+ * @throws {TransportError} When the transport layer throws an error.
559
+ *
560
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#withdraw-from-staking
561
+ * @example
562
+ * ```ts
563
+ * import * as hl from "@nktkas/hyperliquid";
564
+ *
565
+ * const pk = "0x..."; // viem, ethers or private key
566
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
567
+ *
568
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
569
+ * await client.cWithdraw({ wei: 1 * 1e8 });
570
+ * ```
571
+ */
572
+ cWithdraw(
573
+ ...args: OmitFirst<OverloadedParameters<typeof cWithdraw>>
574
+ ): ReturnType<typeof cWithdraw> {
575
+ return cWithdraw(this, ...args);
576
+ }
577
+
578
+ /**
579
+ * Configure block type for EVM transactions.
580
+ * @param params - Parameters specific to the API request.
581
+ * @param opts - Request execution options.
582
+ * @returns Successful response without specific data.
583
+ *
584
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
585
+ * @throws {TransportError} When the transport layer throws an error.
586
+ *
587
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/hyperevm/dual-block-architecture
588
+ * @example
589
+ * ```ts
590
+ * import * as hl from "@nktkas/hyperliquid";
591
+ *
592
+ * const pk = "0x..."; // viem, ethers or private key
593
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
594
+ *
595
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
596
+ * await client.evmUserModify({ usingBigBlocks: true });
597
+ * ```
598
+ */
599
+ evmUserModify(
600
+ ...args: OmitFirst<OverloadedParameters<typeof evmUserModify>>
601
+ ): ReturnType<typeof evmUserModify> {
602
+ return evmUserModify(this, ...args);
603
+ }
604
+
605
+ /**
606
+ * Link staking and trading accounts for fee discount attribution.
607
+ * @param params - Parameters specific to the API request.
608
+ * @param opts - Request execution options.
609
+ * @returns Successful response without specific data.
610
+ *
611
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
612
+ * @throws {TransportError} When the transport layer throws an error.
613
+ *
614
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees#staking-linking
615
+ * @example
616
+ * ```ts
617
+ * import * as hl from "@nktkas/hyperliquid";
618
+ *
619
+ * const pk = "0x..."; // viem, ethers or private key
620
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
621
+ *
622
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
623
+ * await client.linkStakingUser({ user: "0x...", isFinalize: false });
624
+ * ```
625
+ */
626
+ linkStakingUser(
627
+ ...args: OmitFirst<OverloadedParameters<typeof linkStakingUser>>
628
+ ): ReturnType<typeof linkStakingUser> {
629
+ return linkStakingUser(this, ...args);
630
+ }
631
+
632
+ /**
633
+ * Modify an order.
634
+ * @param params - Parameters specific to the API request.
635
+ * @param opts - Request execution options.
636
+ * @returns Successful response without specific data.
637
+ *
638
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
639
+ * @throws {TransportError} When the transport layer throws an error.
640
+ *
641
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-an-order
642
+ * @example
643
+ * ```ts
644
+ * import * as hl from "@nktkas/hyperliquid";
645
+ *
646
+ * const pk = "0x..."; // viem, ethers or private key
647
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
648
+ *
649
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
650
+ * await client.modify({
651
+ * oid: 123,
652
+ * order: {
653
+ * a: 0,
654
+ * b: true,
655
+ * p: "31000",
656
+ * s: "0.2",
657
+ * r: false,
658
+ * t: { limit: { tif: "Gtc" } },
659
+ * c: "0x...",
660
+ * },
661
+ * });
662
+ * ```
663
+ */
664
+ modify(
665
+ ...args: OmitFirst<OverloadedParameters<typeof modify>>
666
+ ): ReturnType<typeof modify> {
667
+ return modify(this, ...args);
668
+ }
669
+
670
+ /**
671
+ * A multi-signature request.
672
+ * @param params - Parameters specific to the API request.
673
+ * @param opts - Request execution options.
674
+ * @returns Any successful response.
675
+ *
676
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
677
+ * @throws {TransportError} When the transport layer throws an error.
678
+ *
679
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/hypercore/multi-sig
680
+ * @example
681
+ * ```ts
682
+ * import * as hl from "@nktkas/hyperliquid";
683
+ * import { signL1Action } from "@nktkas/hyperliquid/signing";
684
+ * import { parser, ScheduleCancelRequest } from "@nktkas/hyperliquid/api/exchange";
685
+ * import { privateKeyToAccount } from "npm:viem/accounts";
686
+ *
687
+ * const wallet = privateKeyToAccount("0x..."); // viem, ethers or private key
688
+ * const multiSigUser = "0x...";
689
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
690
+ *
691
+ * const client = new hl.ExchangeClient({ transport, wallet });
692
+ * const nonce = Date.now();
693
+ * const action = parser(ScheduleCancelRequest.entries.action)({
694
+ * type: "scheduleCancel",
695
+ * time: Date.now() + 10000,
696
+ * });
697
+ *
698
+ * // Create the required number of signatures
699
+ * const signatures = await Promise.all(["0x...", "0x..."].map(async (signerPrivKey) => {
700
+ * return await signL1Action({
701
+ * wallet: privateKeyToAccount(signerPrivKey as `0x${string}`), // viem or ethers
702
+ * action: [multiSigUser.toLowerCase(), wallet.address.toLowerCase(), action],
703
+ * nonce,
704
+ * });
705
+ * }));
706
+ *
707
+ * // // or user-signed action
708
+ * // const signatures = await Promise.all(["0x...", "0x..."].map(async (signerPrivKey) => {
709
+ * // return await signUserSignedAction({
710
+ * // wallet: privateKeyToAccount(signerPrivKey as `0x${string}`), // viem or ethers
711
+ * // action: {
712
+ * // ...action,
713
+ * // payloadMultiSigUser: multiSigUser,
714
+ * // outerSigner: wallet.address,
715
+ * // },
716
+ * // types: SomeTypes,
717
+ * // });
718
+ * // }));
719
+ *
720
+ * // Then use signatures in the `multiSig` action
721
+ * const data = await client.multiSig({
722
+ * signatures,
723
+ * payload: {
724
+ * multiSigUser,
725
+ * outerSigner: wallet.address,
726
+ * action,
727
+ * },
728
+ * nonce,
729
+ * });
730
+ * ```
731
+ */
732
+ multiSig(
733
+ ...args: OmitFirst<OverloadedParameters<typeof multiSig>>
734
+ ): ReturnType<typeof multiSig> {
735
+ return multiSig(this, ...args);
736
+ }
737
+
738
+ /**
739
+ * Place an order(s).
740
+ * @param params - Parameters specific to the API request.
741
+ * @param opts - Request execution options.
742
+ * @returns Successful variant of {@link OrderResponse} without error statuses.
743
+ *
744
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
745
+ * @throws {TransportError} When the transport layer throws an error.
746
+ *
747
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-an-order
748
+ * @example
749
+ * ```ts
750
+ * import * as hl from "@nktkas/hyperliquid";
751
+ *
752
+ * const pk = "0x..."; // viem, ethers or private key
753
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
754
+ *
755
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
756
+ * const data = await client.order({
757
+ * orders: [
758
+ * {
759
+ * a: 0,
760
+ * b: true,
761
+ * p: "30000",
762
+ * s: "0.1",
763
+ * r: false,
764
+ * t: { limit: { tif: "Gtc" } },
765
+ * c: "0x...",
766
+ * },
767
+ * ],
768
+ * grouping: "na",
769
+ * });
770
+ * ```
771
+ */
772
+ order(
773
+ ...args: OmitFirst<OverloadedParameters<typeof order>>
774
+ ): ReturnType<typeof order> {
775
+ return order(this, ...args);
776
+ }
777
+
778
+ /**
779
+ * This action does not do anything (no operation), but causes the nonce to be marked as used.
780
+ * @param params - Parameters specific to the API request.
781
+ * @param opts - Request execution options.
782
+ * @returns Successful response without specific data.
783
+ *
784
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
785
+ * @throws {TransportError} When the transport layer throws an error.
786
+ *
787
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#invalidate-pending-nonce-noop
788
+ * @example
789
+ * ```ts
790
+ * import * as hl from "@nktkas/hyperliquid";
791
+ *
792
+ * const pk = "0x..."; // viem, ethers or private key
793
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
794
+ *
795
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
796
+ * await client.noop();
797
+ * ```
798
+ */
799
+ noop(
800
+ ...args: OmitFirst<OverloadedParameters<typeof noop>>
801
+ ): ReturnType<typeof noop> {
802
+ return noop(this, ...args);
803
+ }
804
+
805
+ /**
806
+ * Deploying HIP-3 assets.
807
+ * @param params - Parameters specific to the API request.
808
+ * @param opts - Request execution options.
809
+ * @returns Successful response without specific data.
810
+ *
811
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
812
+ * @throws {TransportError} When the transport layer throws an error.
813
+ *
814
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/deploying-hip-3-assets
815
+ * @example
816
+ * ```ts
817
+ * import * as hl from "@nktkas/hyperliquid";
818
+ *
819
+ * const pk = "0x..."; // viem, ethers or private key
820
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
821
+ *
822
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
823
+ * await client.perpDeploy({
824
+ * registerAsset: {
825
+ * maxGas: 1000000,
826
+ * assetRequest: {
827
+ * coin: "USDC",
828
+ * szDecimals: 8,
829
+ * oraclePx: "1",
830
+ * marginTableId: 1,
831
+ * onlyIsolated: false,
832
+ * },
833
+ * dex: "test",
834
+ * schema: null,
835
+ * },
836
+ * });
837
+ * ```
838
+ */
839
+ perpDeploy(
840
+ ...args: OmitFirst<OverloadedParameters<typeof perpDeploy>>
841
+ ): ReturnType<typeof perpDeploy> {
842
+ return perpDeploy(this, ...args);
843
+ }
844
+
845
+ /**
846
+ * Create a referral code.
847
+ * @param params - Parameters specific to the API request.
848
+ * @param opts - Request execution options.
849
+ * @returns Successful response without specific data.
850
+ *
851
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
852
+ * @throws {TransportError} When the transport layer throws an error.
853
+ *
854
+ * @example
855
+ * ```ts
856
+ * import * as hl from "@nktkas/hyperliquid";
857
+ *
858
+ * const pk = "0x..."; // viem, ethers or private key
859
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
860
+ *
861
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
862
+ * await client.registerReferrer({ code: "..." });
863
+ * ```
864
+ */
865
+ registerReferrer(
866
+ ...args: OmitFirst<OverloadedParameters<typeof registerReferrer>>
867
+ ): ReturnType<typeof registerReferrer> {
868
+ return registerReferrer(this, ...args);
869
+ }
870
+
871
+ /**
872
+ * Reserve additional rate-limited actions for a fee.
873
+ * @param params - Parameters specific to the API request.
874
+ * @param opts - Request execution options.
875
+ * @returns Successful response without specific data.
876
+ *
877
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
878
+ * @throws {TransportError} When the transport layer throws an error.
879
+ *
880
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#reserve-additional-actions
881
+ * @example
882
+ * ```ts
883
+ * import * as hl from "@nktkas/hyperliquid";
884
+ *
885
+ * const pk = "0x..."; // viem, ethers or private key
886
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
887
+ *
888
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
889
+ * await client.reserveRequestWeight({ weight: 10 });
890
+ * ```
891
+ */
892
+ reserveRequestWeight(
893
+ ...args: OmitFirst<OverloadedParameters<typeof reserveRequestWeight>>
894
+ ): ReturnType<typeof reserveRequestWeight> {
895
+ return reserveRequestWeight(this, ...args);
896
+ }
897
+
898
+ /**
899
+ * Schedule a cancel-all operation at a future time.
900
+ * @param params - Parameters specific to the API request.
901
+ * @param opts - Request execution options.
902
+ * @returns Successful response without specific data.
903
+ *
904
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
905
+ * @throws {TransportError} When the transport layer throws an error.
906
+ *
907
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#schedule-cancel-dead-mans-switch
908
+ * @example
909
+ * ```ts
910
+ * import * as hl from "@nktkas/hyperliquid";
911
+ *
912
+ * const pk = "0x..."; // viem, ethers or private key
913
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
914
+ *
915
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
916
+ * await client.scheduleCancel({ time: Date.now() + 10_000 });
917
+ * ```
918
+ */
919
+ scheduleCancel(
920
+ ...args: OmitFirst<OverloadedParameters<typeof scheduleCancel>>
921
+ ): ReturnType<typeof scheduleCancel> {
922
+ return scheduleCancel(
923
+ this,
924
+ // @ts-ignore: TypeScript can't resolve overloaded signatures from parameter unions
925
+ ...args,
926
+ );
927
+ }
928
+
929
+ /**
930
+ * Transfer tokens between different perp DEXs, spot balance, users, and/or sub-accounts.
931
+ * @param params - Parameters specific to the API request.
932
+ * @param opts - Request execution options.
933
+ * @returns Successful response without specific data.
934
+ *
935
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
936
+ * @throws {TransportError} When the transport layer throws an error.
937
+ *
938
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#send-asset
939
+ * @example
940
+ * ```ts
941
+ * import * as hl from "@nktkas/hyperliquid";
942
+ *
943
+ * const pk = "0x..."; // viem, ethers or private key
944
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
945
+ *
946
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
947
+ * await client.sendAsset({
948
+ * destination: "0x0000000000000000000000000000000000000001",
949
+ * sourceDex: "",
950
+ * destinationDex: "test",
951
+ * token: "USDC:0xeb62eee3685fc4c43992febcd9e75443",
952
+ * amount: "1",
953
+ * });
954
+ * ```
955
+ */
956
+ sendAsset(
957
+ ...args: OmitFirst<OverloadedParameters<typeof sendAsset>>
958
+ ): ReturnType<typeof sendAsset> {
959
+ return sendAsset(this, ...args);
960
+ }
961
+
962
+ /**
963
+ * Set the display name in the leaderboard.
964
+ * @param params - Parameters specific to the API request.
965
+ * @param opts - Request execution options.
966
+ * @returns Successful response without specific data.
967
+ *
968
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
969
+ * @throws {TransportError} When the transport layer throws an error.
970
+ *
971
+ * @example
972
+ * ```ts
973
+ * import * as hl from "@nktkas/hyperliquid";
974
+ *
975
+ * const pk = "0x..."; // viem, ethers or private key
976
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
977
+ *
978
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
979
+ * await client.setDisplayName({ displayName: "..." });
980
+ * ```
981
+ */
982
+ setDisplayName(
983
+ ...args: OmitFirst<OverloadedParameters<typeof setDisplayName>>
984
+ ): ReturnType<typeof setDisplayName> {
985
+ return setDisplayName(this, ...args);
986
+ }
987
+
988
+ /**
989
+ * Set a referral code.
990
+ * @param params - Parameters specific to the API request.
991
+ * @param opts - Request execution options.
992
+ * @returns Successful response without specific data.
993
+ *
994
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
995
+ * @throws {TransportError} When the transport layer throws an error.
996
+ *
997
+ * @example
998
+ * ```ts
999
+ * import * as hl from "@nktkas/hyperliquid";
1000
+ *
1001
+ * const pk = "0x..."; // viem, ethers or private key
1002
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1003
+ *
1004
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1005
+ * await client.setReferrer({ code: "..." });
1006
+ * ```
1007
+ */
1008
+ setReferrer(
1009
+ ...args: OmitFirst<OverloadedParameters<typeof setReferrer>>
1010
+ ): ReturnType<typeof setReferrer> {
1011
+ return setReferrer(this, ...args);
1012
+ }
1013
+
1014
+ /**
1015
+ * Deploying HIP-1 and HIP-2 assets.
1016
+ * @param params - Parameters specific to the API request.
1017
+ * @param opts - Request execution options.
1018
+ * @returns Successful response without specific data.
1019
+ *
1020
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1021
+ * @throws {TransportError} When the transport layer throws an error.
1022
+ *
1023
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/deploying-hip-1-and-hip-2-assets
1024
+ * @example
1025
+ * ```ts
1026
+ * import * as hl from "@nktkas/hyperliquid";
1027
+ *
1028
+ * const pk = "0x..."; // viem, ethers or private key
1029
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1030
+ *
1031
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1032
+ * await client.spotDeploy({
1033
+ * registerToken2: {
1034
+ * spec: {
1035
+ * name: "USDC",
1036
+ * szDecimals: 8,
1037
+ * weiDecimals: 8,
1038
+ * },
1039
+ * maxGas: 1000000,
1040
+ * fullName: "USD Coin",
1041
+ * },
1042
+ * });
1043
+ * ```
1044
+ */
1045
+ spotDeploy(
1046
+ ...args: OmitFirst<OverloadedParameters<typeof spotDeploy>>
1047
+ ): ReturnType<typeof spotDeploy> {
1048
+ return spotDeploy(this, ...args);
1049
+ }
1050
+
1051
+ /**
1052
+ * Send spot assets to another address.
1053
+ * @param params - Parameters specific to the API request.
1054
+ * @param opts - Request execution options.
1055
+ * @returns Successful response without specific data.
1056
+ *
1057
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1058
+ * @throws {TransportError} When the transport layer throws an error.
1059
+ *
1060
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#core-spot-transfer
1061
+ * @example
1062
+ * ```ts
1063
+ * import * as hl from "@nktkas/hyperliquid";
1064
+ *
1065
+ * const pk = "0x..."; // viem, ethers or private key
1066
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1067
+ *
1068
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1069
+ * await client.spotSend({
1070
+ * destination: "0x...",
1071
+ * token: "USDC:0xeb62eee3685fc4c43992febcd9e75443",
1072
+ * amount: "1",
1073
+ * });
1074
+ * ```
1075
+ */
1076
+ spotSend(
1077
+ ...args: OmitFirst<OverloadedParameters<typeof spotSend>>
1078
+ ): ReturnType<typeof spotSend> {
1079
+ return spotSend(this, ...args);
1080
+ }
1081
+
1082
+ /**
1083
+ * Opt Out of Spot Dusting.
1084
+ * @param params - Parameters specific to the API request.
1085
+ * @param opts - Request execution options.
1086
+ * @returns Successful response without specific data.
1087
+ *
1088
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1089
+ * @throws {TransportError} When the transport layer throws an error.
1090
+ *
1091
+ * @example
1092
+ * ```ts
1093
+ * import * as hl from "@nktkas/hyperliquid";
1094
+ *
1095
+ * const pk = "0x..."; // viem, ethers or private key
1096
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1097
+ *
1098
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1099
+ * await client.spotUser({ toggleSpotDusting: { optOut: false } });
1100
+ * ```
1101
+ */
1102
+ spotUser(
1103
+ ...args: OmitFirst<OverloadedParameters<typeof spotUser>>
1104
+ ): ReturnType<typeof spotUser> {
1105
+ return spotUser(this, ...args);
1106
+ }
1107
+
1108
+ /**
1109
+ * Modify a sub-account's.
1110
+ * @param params - Parameters specific to the API request.
1111
+ * @param opts - Request execution options.
1112
+ * @returns Successful response without specific data.
1113
+ *
1114
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1115
+ * @throws {TransportError} When the transport layer throws an error.
1116
+ *
1117
+ * @example
1118
+ * ```ts
1119
+ * import * as hl from "@nktkas/hyperliquid";
1120
+ *
1121
+ * const pk = "0x..."; // viem, ethers or private key
1122
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1123
+ *
1124
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1125
+ * await client.subAccountModify({ subAccountUser: "0x...", name: "..." });
1126
+ * ```
1127
+ */
1128
+ subAccountModify(
1129
+ ...args: OmitFirst<OverloadedParameters<typeof subAccountModify>>
1130
+ ): ReturnType<typeof subAccountModify> {
1131
+ return subAccountModify(this, ...args);
1132
+ }
1133
+
1134
+ /**
1135
+ * Transfer between sub-accounts (spot).
1136
+ * @param params - Parameters specific to the API request.
1137
+ * @param opts - Request execution options.
1138
+ * @returns Successful response without specific data.
1139
+ *
1140
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1141
+ * @throws {TransportError} When the transport layer throws an error.
1142
+ *
1143
+ * @example
1144
+ * ```ts
1145
+ * import * as hl from "@nktkas/hyperliquid";
1146
+ *
1147
+ * const pk = "0x..."; // viem, ethers or private key
1148
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1149
+ *
1150
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1151
+ * await client.subAccountSpotTransfer({
1152
+ * subAccountUser: "0x...",
1153
+ * isDeposit: true,
1154
+ * token: "USDC:0xeb62eee3685fc4c43992febcd9e75443",
1155
+ * amount: "1",
1156
+ * });
1157
+ * ```
1158
+ */
1159
+ subAccountSpotTransfer(
1160
+ ...args: OmitFirst<OverloadedParameters<typeof subAccountSpotTransfer>>
1161
+ ): ReturnType<typeof subAccountSpotTransfer> {
1162
+ return subAccountSpotTransfer(this, ...args);
1163
+ }
1164
+
1165
+ /**
1166
+ * Transfer between sub-accounts (perpetual).
1167
+ * @param params - Parameters specific to the API request.
1168
+ * @param opts - Request execution options.
1169
+ * @returns Successful response without specific data.
1170
+ *
1171
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1172
+ * @throws {TransportError} When the transport layer throws an error.
1173
+ *
1174
+ * @example
1175
+ * ```ts
1176
+ * import * as hl from "@nktkas/hyperliquid";
1177
+ *
1178
+ * const pk = "0x..."; // viem, ethers or private key
1179
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1180
+ *
1181
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1182
+ * await client.subAccountTransfer({ subAccountUser: "0x...", isDeposit: true, usd: 1 * 1e6 });
1183
+ * ```
1184
+ */
1185
+ subAccountTransfer(
1186
+ ...args: OmitFirst<OverloadedParameters<typeof subAccountTransfer>>
1187
+ ): ReturnType<typeof subAccountTransfer> {
1188
+ return subAccountTransfer(this, ...args);
1189
+ }
1190
+
1191
+ /**
1192
+ * Delegate or undelegate native tokens to or from a validator.
1193
+ * @param params - Parameters specific to the API request.
1194
+ * @param opts - Request execution options.
1195
+ * @returns Successful response without specific data.
1196
+ *
1197
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1198
+ * @throws {TransportError} When the transport layer throws an error.
1199
+ *
1200
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#delegate-or-undelegate-stake-from-validator
1201
+ * @example
1202
+ * ```ts
1203
+ * import * as hl from "@nktkas/hyperliquid";
1204
+ *
1205
+ * const pk = "0x..."; // viem, ethers or private key
1206
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1207
+ *
1208
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1209
+ * await client.tokenDelegate({ validator: "0x...", isUndelegate: true, wei: 1 * 1e8 });
1210
+ * ```
1211
+ */
1212
+ tokenDelegate(
1213
+ ...args: OmitFirst<OverloadedParameters<typeof tokenDelegate>>
1214
+ ): ReturnType<typeof tokenDelegate> {
1215
+ return tokenDelegate(this, ...args);
1216
+ }
1217
+
1218
+ /**
1219
+ * Cancel a TWAP order.
1220
+ * @param params - Parameters specific to the API request.
1221
+ * @param opts - Request execution options.
1222
+ * @returns Successful variant of {@link TwapCancelResponse} without error status.
1223
+ *
1224
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1225
+ * @throws {TransportError} When the transport layer throws an error.
1226
+ *
1227
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-a-twap-order
1228
+ * @example
1229
+ * ```ts
1230
+ * import * as hl from "@nktkas/hyperliquid";
1231
+ *
1232
+ * const pk = "0x..."; // viem, ethers or private key
1233
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1234
+ *
1235
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1236
+ * const data = await client.twapCancel({ a: 0, t: 1 });
1237
+ * ```
1238
+ */
1239
+ twapCancel(
1240
+ ...args: OmitFirst<OverloadedParameters<typeof twapCancel>>
1241
+ ): ReturnType<typeof twapCancel> {
1242
+ return twapCancel(this, ...args);
1243
+ }
1244
+
1245
+ /**
1246
+ * Place a TWAP order.
1247
+ * @param params - Parameters specific to the API request.
1248
+ * @param opts - Request execution options.
1249
+ * @returns Successful variant of {@link TwapOrderResponse} without error status.
1250
+ *
1251
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1252
+ * @throws {TransportError} When the transport layer throws an error.
1253
+ *
1254
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-a-twap-order
1255
+ * @example
1256
+ * ```ts
1257
+ * import * as hl from "@nktkas/hyperliquid";
1258
+ *
1259
+ * const pk = "0x..."; // viem, ethers or private key
1260
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1261
+ *
1262
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1263
+ * const data = await client.twapOrder({
1264
+ * twap: {
1265
+ * a: 0,
1266
+ * b: true,
1267
+ * s: "1",
1268
+ * r: false,
1269
+ * m: 10,
1270
+ * t: true,
1271
+ * },
1272
+ * });
1273
+ * ```
1274
+ */
1275
+ twapOrder(
1276
+ ...args: OmitFirst<OverloadedParameters<typeof twapOrder>>
1277
+ ): ReturnType<typeof twapOrder> {
1278
+ return twapOrder(this, ...args);
1279
+ }
1280
+
1281
+ /**
1282
+ * Add or remove margin from isolated position.
1283
+ * @param params - Parameters specific to the API request.
1284
+ * @param opts - Request execution options.
1285
+ * @returns Successful response without specific data.
1286
+ *
1287
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1288
+ * @throws {TransportError} When the transport layer throws an error.
1289
+ *
1290
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-isolated-margin
1291
+ * @example
1292
+ * ```ts
1293
+ * import * as hl from "@nktkas/hyperliquid";
1294
+ *
1295
+ * const pk = "0x..."; // viem, ethers or private key
1296
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1297
+ *
1298
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1299
+ * await client.updateIsolatedMargin({ asset: 0, isBuy: true, ntli: 1 * 1e6 });
1300
+ * ```
1301
+ */
1302
+ updateIsolatedMargin(
1303
+ ...args: OmitFirst<OverloadedParameters<typeof updateIsolatedMargin>>
1304
+ ): ReturnType<typeof updateIsolatedMargin> {
1305
+ return updateIsolatedMargin(this, ...args);
1306
+ }
1307
+
1308
+ /**
1309
+ * Update cross or isolated leverage on a coin.
1310
+ * @param params - Parameters specific to the API request.
1311
+ * @param opts - Request execution options.
1312
+ * @returns Successful response without specific data.
1313
+ *
1314
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1315
+ * @throws {TransportError} When the transport layer throws an error.
1316
+ *
1317
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-leverage
1318
+ * @example
1319
+ * ```ts
1320
+ * import * as hl from "@nktkas/hyperliquid";
1321
+ *
1322
+ * const pk = "0x..."; // viem, ethers or private key
1323
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1324
+ *
1325
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1326
+ * await client.updateLeverage({ asset: 0, isCross: true, leverage: 5 });
1327
+ * ```
1328
+ */
1329
+ updateLeverage(
1330
+ ...args: OmitFirst<OverloadedParameters<typeof updateLeverage>>
1331
+ ): ReturnType<typeof updateLeverage> {
1332
+ return updateLeverage(this, ...args);
1333
+ }
1334
+
1335
+ /**
1336
+ * Transfer funds between Spot account and Perp account.
1337
+ * @param params - Parameters specific to the API request.
1338
+ * @param opts - Request execution options.
1339
+ * @returns Successful response without specific data.
1340
+ *
1341
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1342
+ * @throws {TransportError} When the transport layer throws an error.
1343
+ *
1344
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#transfer-from-spot-account-to-perp-account-and-vice-versa
1345
+ * @example
1346
+ * ```ts
1347
+ * import * as hl from "@nktkas/hyperliquid";
1348
+ *
1349
+ * const pk = "0x..."; // viem, ethers or private key
1350
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1351
+ *
1352
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1353
+ * await client.usdClassTransfer({ amount: "1", toPerp: true });
1354
+ * ```
1355
+ */
1356
+ usdClassTransfer(
1357
+ ...args: OmitFirst<OverloadedParameters<typeof usdClassTransfer>>
1358
+ ): ReturnType<typeof usdClassTransfer> {
1359
+ return usdClassTransfer(this, ...args);
1360
+ }
1361
+
1362
+ /**
1363
+ * Send usd to another address.
1364
+ * @param params - Parameters specific to the API request.
1365
+ * @param opts - Request execution options.
1366
+ * @returns Successful response without specific data.
1367
+ *
1368
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1369
+ * @throws {TransportError} When the transport layer throws an error.
1370
+ *
1371
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#core-usdc-transfer
1372
+ * @example
1373
+ * ```ts
1374
+ * import * as hl from "@nktkas/hyperliquid";
1375
+ *
1376
+ * const pk = "0x..."; // viem, ethers or private key
1377
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1378
+ *
1379
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1380
+ * await client.usdSend({ destination: "0x...", amount: "1" });
1381
+ * ```
1382
+ */
1383
+ usdSend(
1384
+ ...args: OmitFirst<OverloadedParameters<typeof usdSend>>
1385
+ ): ReturnType<typeof usdSend> {
1386
+ return usdSend(this, ...args);
1387
+ }
1388
+
1389
+ /**
1390
+ * Enable/disable HIP-3 DEX abstraction.
1391
+ * @param params - Parameters specific to the API request.
1392
+ * @param opts - Request execution options.
1393
+ * @returns Successful response without specific data.
1394
+ *
1395
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1396
+ * @throws {TransportError} When the transport layer throws an error.
1397
+ *
1398
+ * @example
1399
+ * ```ts
1400
+ * import * as hl from "@nktkas/hyperliquid";
1401
+ *
1402
+ * const pk = "0x..."; // viem, ethers or private key
1403
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1404
+ *
1405
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1406
+ * await client.userDexAbstraction({ user: "0x...", enabled: true });
1407
+ * ```
1408
+ */
1409
+ userDexAbstraction(
1410
+ ...args: OmitFirst<OverloadedParameters<typeof userDexAbstraction>>
1411
+ ): ReturnType<typeof userDexAbstraction> {
1412
+ return userDexAbstraction(this, ...args);
1413
+ }
1414
+
1415
+ /**
1416
+ * Validator vote on risk-free rate for aligned quote asset.
1417
+ * @param params - Parameters specific to the API request.
1418
+ * @param opts - Request execution options.
1419
+ * @returns Successful response without specific data.
1420
+ *
1421
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1422
+ * @throws {TransportError} When the transport layer throws an error.
1423
+ *
1424
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#validator-vote-on-risk-free-rate-for-aligned-quote-asset
1425
+ * @example
1426
+ * ```ts
1427
+ * import * as hl from "@nktkas/hyperliquid";
1428
+ *
1429
+ * const pk = "0x..."; // viem, ethers or private key
1430
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1431
+ *
1432
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1433
+ * await client.validatorL1Stream({ riskFreeRate: "0.05" });
1434
+ * ```
1435
+ */
1436
+ validatorL1Stream(
1437
+ ...args: OmitFirst<OverloadedParameters<typeof validatorL1Stream>>
1438
+ ): ReturnType<typeof validatorL1Stream> {
1439
+ return validatorL1Stream(this, ...args);
1440
+ }
1441
+
1442
+ /**
1443
+ * Distribute funds from a vault between followers.
1444
+ * @param params - Parameters specific to the API request.
1445
+ * @param opts - Request execution options.
1446
+ * @returns Successful response without specific data.
1447
+ *
1448
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1449
+ * @throws {TransportError} When the transport layer throws an error.
1450
+ *
1451
+ * @example
1452
+ * ```ts
1453
+ * import * as hl from "@nktkas/hyperliquid";
1454
+ *
1455
+ * const pk = "0x..."; // viem, ethers or private key
1456
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1457
+ *
1458
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1459
+ * await client.vaultDistribute({ vaultAddress: "0x...", usd: 10 * 1e6 });
1460
+ * ```
1461
+ */
1462
+ vaultDistribute(
1463
+ ...args: OmitFirst<OverloadedParameters<typeof vaultDistribute>>
1464
+ ): ReturnType<typeof vaultDistribute> {
1465
+ return vaultDistribute(this, ...args);
1466
+ }
1467
+
1468
+ /**
1469
+ * Modify a vault's configuration.
1470
+ * @param params - Parameters specific to the API request.
1471
+ * @param opts - Request execution options.
1472
+ * @returns Successful response without specific data.
1473
+ *
1474
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1475
+ * @throws {TransportError} When the transport layer throws an error.
1476
+ *
1477
+ * @example
1478
+ * ```ts
1479
+ * import * as hl from "@nktkas/hyperliquid";
1480
+ *
1481
+ * const pk = "0x..."; // viem, ethers or private key
1482
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1483
+ *
1484
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1485
+ * await client.vaultModify({
1486
+ * vaultAddress: "0x...",
1487
+ * allowDeposits: true,
1488
+ * alwaysCloseOnWithdraw: false,
1489
+ * });
1490
+ * ```
1491
+ */
1492
+ vaultModify(
1493
+ ...args: OmitFirst<OverloadedParameters<typeof vaultModify>>
1494
+ ): ReturnType<typeof vaultModify> {
1495
+ return vaultModify(this, ...args);
1496
+ }
1497
+
1498
+ /**
1499
+ * Deposit or withdraw from a vault.
1500
+ * @param params - Parameters specific to the API request.
1501
+ * @param opts - Request execution options.
1502
+ * @returns Successful response without specific data.
1503
+ *
1504
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1505
+ * @throws {TransportError} When the transport layer throws an error.
1506
+ *
1507
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#deposit-or-withdraw-from-a-vault
1508
+ * @example
1509
+ * ```ts
1510
+ * import * as hl from "@nktkas/hyperliquid";
1511
+ *
1512
+ * const pk = "0x..."; // viem, ethers or private key
1513
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1514
+ *
1515
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1516
+ * await client.vaultTransfer({ vaultAddress: "0x...", isDeposit: true, usd: 10 * 1e6 });
1517
+ * ```
1518
+ */
1519
+ vaultTransfer(
1520
+ ...args: OmitFirst<OverloadedParameters<typeof vaultTransfer>>
1521
+ ): ReturnType<typeof vaultTransfer> {
1522
+ return vaultTransfer(this, ...args);
1523
+ }
1524
+
1525
+ /**
1526
+ * Initiate a withdrawal request.
1527
+ * @param params - Parameters specific to the API request.
1528
+ * @param opts - Request execution options.
1529
+ * @returns Successful response without specific data.
1530
+ *
1531
+ * @throws {ApiRequestError} When the API returns an unsuccessful response.
1532
+ * @throws {TransportError} When the transport layer throws an error.
1533
+ *
1534
+ * @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#initiate-a-withdrawal-request
1535
+ * @example
1536
+ * ```ts
1537
+ * import * as hl from "@nktkas/hyperliquid";
1538
+ *
1539
+ * const pk = "0x..."; // viem, ethers or private key
1540
+ * const transport = new hl.HttpTransport(); // or `WebSocketTransport`
1541
+ *
1542
+ * const client = new hl.ExchangeClient({ transport, wallet: pk });
1543
+ * await client.withdraw3({ destination: "0x...", amount: "1" });
1544
+ * ```
1545
+ */
1546
+ withdraw3(
1547
+ ...args: OmitFirst<OverloadedParameters<typeof withdraw3>>
1548
+ ): ReturnType<typeof withdraw3> {
1549
+ return withdraw3(this, ...args);
1550
+ }
1551
+ }
1552
+
1553
+ /**
1554
+ * A client for interacting with the Hyperliquid Exchange API using multi-signature wallet.
1555
+ * Extends the {@link ExchangeClient} to support multi-signature operations.
1556
+ * @typeParam T The transport (extends {@linkcode IRequestTransport}) used to connect to the Hyperliquid API.
1557
+ * @typeParam S Array of wallets where the first wallet is the leader.
1558
+ */
1559
+ export class MultiSignClient<
1560
+ T extends IRequestTransport = IRequestTransport,
1561
+ S extends readonly AbstractWallet[] = AbstractWallet[],
1562
+ > extends ExchangeClient<T, S[0]> implements MultiSignRequestConfig<T, S> {
1563
+ multiSigUser: string;
1564
+ signers: S;
1565
+
1566
+ /**
1567
+ * @note Is the first wallet from {@linkcode signers}. Changing the property also changes the first element in the {@linkcode signers} array.
1568
+ */
1569
+ declare wallet: S[0];
1570
+
1571
+ /**
1572
+ * Initialises a new multi-signature client instance.
1573
+ * @param args - The parameters for the multi-signature client.
1574
+ *
1575
+ * @example
1576
+ * ```ts
1577
+ * import * as hl from "@nktkas/hyperliquid";
1578
+ *
1579
+ * const multiSigUser = "0x...";
1580
+ * const signers = [
1581
+ * "0x...", // viem, ethers or private key
1582
+ * // ... (more signers if needed)
1583
+ * ] as const;
1584
+ *
1585
+ * const transport = new hl.HttpTransport();
1586
+ * const multiSignClient = new hl.MultiSignClient({ transport, multiSigUser, signers });
1587
+ * ```
1588
+ */
1589
+ constructor(
1590
+ args:
1591
+ & Omit<MultiSignRequestConfig<T, S>, "signers">
1592
+ & (
1593
+ | Pick<MultiSignRequestConfig<T, S>, "signers">
1594
+ | { signers: readonly (S[number] | string)[] }
1595
+ ),
1596
+ ) {
1597
+ // Convert string private keys to PrivateKeyEIP712Signer instances
1598
+ const processedSigners = args.signers
1599
+ .map((signer) => typeof signer === "string" ? new PrivateKeyEIP712Signer(signer) : signer) as unknown as S;
1600
+
1601
+ super({ ...args, wallet: processedSigners[0] });
1602
+ this.multiSigUser = args.multiSigUser;
1603
+ this.signers = processedSigners;
1604
+
1605
+ Object.defineProperty(this, "wallet", {
1606
+ get() {
1607
+ return this.signers[0];
1608
+ },
1609
+ set(value) {
1610
+ this.signers[0] = value;
1611
+ },
1612
+ enumerable: true,
1613
+ configurable: true,
1614
+ });
1615
+ }
1616
+ }
1617
+
1618
+ export type * from "./agentEnableDexAbstraction.js";
1619
+ export type * from "./approveAgent.js";
1620
+ export type * from "./approveBuilderFee.js";
1621
+ export type * from "./batchModify.js";
1622
+ export type * from "./cancel.js";
1623
+ export type * from "./cancelByCloid.js";
1624
+ export type * from "./cDeposit.js";
1625
+ export type * from "./claimRewards.js";
1626
+ export type * from "./convertToMultiSigUser.js";
1627
+ export type * from "./createSubAccount.js";
1628
+ export type * from "./createVault.js";
1629
+ export type * from "./cSignerAction.js";
1630
+ export type * from "./cValidatorAction.js";
1631
+ export type * from "./cWithdraw.js";
1632
+ export type * from "./evmUserModify.js";
1633
+ export type * from "./linkStakingUser.js";
1634
+ export type * from "./modify.js";
1635
+ export type * from "./multiSig.js";
1636
+ export type * from "./order.js";
1637
+ export type * from "./noop.js";
1638
+ export type * from "./perpDeploy.js";
1639
+ export type * from "./registerReferrer.js";
1640
+ export type * from "./reserveRequestWeight.js";
1641
+ export type * from "./scheduleCancel.js";
1642
+ export type * from "./sendAsset.js";
1643
+ export type * from "./setDisplayName.js";
1644
+ export type * from "./setReferrer.js";
1645
+ export type * from "./spotDeploy.js";
1646
+ export type * from "./spotSend.js";
1647
+ export type * from "./spotUser.js";
1648
+ export type * from "./subAccountModify.js";
1649
+ export type * from "./subAccountSpotTransfer.js";
1650
+ export type * from "./subAccountTransfer.js";
1651
+ export type * from "./tokenDelegate.js";
1652
+ export type * from "./twapCancel.js";
1653
+ export type * from "./twapOrder.js";
1654
+ export type * from "./updateIsolatedMargin.js";
1655
+ export type * from "./updateLeverage.js";
1656
+ export type * from "./usdClassTransfer.js";
1657
+ export type * from "./usdSend.js";
1658
+ export type {
1659
+ UserDexAbstractionOptions as UserDexAbstractionExchangeOptions,
1660
+ UserDexAbstractionParameters as UserDexAbstractionExchangeParameters,
1661
+ UserDexAbstractionRequest as UserDexAbstractionExchangeRequest,
1662
+ UserDexAbstractionResponse as UserDexAbstractionExchangeResponse,
1663
+ UserDexAbstractionSuccessResponse as UserDexAbstractionExchangeSuccessResponse,
1664
+ } from "./userDexAbstraction.js";
1665
+ export type * from "./validatorL1Stream.js";
1666
+ export type * from "./vaultDistribute.js";
1667
+ export type * from "./vaultModify.js";
1668
+ export type * from "./vaultTransfer.js";
1669
+ export type * from "./withdraw3.js";
1670
+
1671
+ export { ApiRequestError, type ExchangeRequestConfig, type MultiSignRequestConfig } from "./_base/mod.js";