@nktkas/hyperliquid 0.30.2 → 0.31.0
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.
- package/CONTRIBUTING.md +1 -3
- package/README.md +83 -19
- package/esm/bin/_utils.d.ts +33 -1
- package/esm/bin/_utils.d.ts.map +1 -1
- package/esm/bin/_utils.js +17 -1
- package/esm/bin/_utils.js.map +1 -1
- package/esm/bin/cli.js +288 -252
- package/esm/bin/cli.js.map +1 -1
- package/esm/deps/jsr.io/@std/async/{1.0.16 → 1.1.1}/unstable_semaphore.d.ts +1 -0
- package/esm/deps/jsr.io/@std/async/1.1.1/unstable_semaphore.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/async/{1.0.16 → 1.1.1}/unstable_semaphore.js +4 -3
- package/esm/deps/jsr.io/@std/async/1.1.1/unstable_semaphore.js.map +1 -0
- package/esm/src/api/_schemas.d.ts +9 -0
- package/esm/src/api/_schemas.d.ts.map +1 -1
- package/esm/src/api/_schemas.js +10 -1
- package/esm/src/api/_schemas.js.map +1 -1
- package/esm/src/api/exchange/_methods/_base/_semaphore.js +1 -1
- package/esm/src/api/exchange/_methods/_base/_semaphore.js.map +1 -1
- package/esm/src/api/exchange/_methods/_base/commonSchemas.d.ts +16 -30
- package/esm/src/api/exchange/_methods/_base/commonSchemas.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/_base/commonSchemas.js +16 -16
- package/esm/src/api/exchange/_methods/_base/commonSchemas.js.map +1 -1
- package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts +23 -60
- package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.js +11 -9
- package/esm/src/api/exchange/_methods/agentEnableDexAbstraction.js.map +1 -1
- package/esm/src/api/exchange/_methods/agentSetAbstraction.d.ts +126 -0
- package/esm/src/api/exchange/_methods/agentSetAbstraction.d.ts.map +1 -0
- package/esm/src/api/exchange/_methods/agentSetAbstraction.js +82 -0
- package/esm/src/api/exchange/_methods/agentSetAbstraction.js.map +1 -0
- package/esm/src/api/exchange/_methods/approveAgent.d.ts +54 -91
- package/esm/src/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/approveAgent.js +33 -15
- package/esm/src/api/exchange/_methods/approveAgent.js.map +1 -1
- package/esm/src/api/exchange/_methods/approveBuilderFee.d.ts +37 -85
- package/esm/src/api/exchange/_methods/approveBuilderFee.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/approveBuilderFee.js +13 -13
- package/esm/src/api/exchange/_methods/approveBuilderFee.js.map +1 -1
- package/esm/src/api/exchange/_methods/batchModify.d.ts +101 -433
- package/esm/src/api/exchange/_methods/batchModify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/batchModify.js +31 -36
- package/esm/src/api/exchange/_methods/batchModify.js.map +1 -1
- package/esm/src/api/exchange/_methods/borrowLend.d.ts +127 -0
- package/esm/src/api/exchange/_methods/borrowLend.d.ts.map +1 -0
- package/esm/src/api/exchange/_methods/borrowLend.js +75 -0
- package/esm/src/api/exchange/_methods/borrowLend.js.map +1 -0
- package/esm/src/api/exchange/_methods/cDeposit.d.ts +34 -80
- package/esm/src/api/exchange/_methods/cDeposit.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cDeposit.js +12 -12
- package/esm/src/api/exchange/_methods/cDeposit.js.map +1 -1
- package/esm/src/api/exchange/_methods/cSignerAction.d.ts +32 -79
- package/esm/src/api/exchange/_methods/cSignerAction.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cSignerAction.js +12 -12
- package/esm/src/api/exchange/_methods/cSignerAction.js.map +1 -1
- package/esm/src/api/exchange/_methods/cValidatorAction.d.ts +107 -314
- package/esm/src/api/exchange/_methods/cValidatorAction.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cValidatorAction.js +37 -37
- package/esm/src/api/exchange/_methods/cValidatorAction.js.map +1 -1
- package/esm/src/api/exchange/_methods/cWithdraw.d.ts +34 -80
- package/esm/src/api/exchange/_methods/cWithdraw.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cWithdraw.js +12 -12
- package/esm/src/api/exchange/_methods/cWithdraw.js.map +1 -1
- package/esm/src/api/exchange/_methods/cancel.d.ts +38 -100
- package/esm/src/api/exchange/_methods/cancel.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cancel.js +24 -24
- package/esm/src/api/exchange/_methods/cancel.js.map +1 -1
- package/esm/src/api/exchange/_methods/cancelByCloid.d.ts +38 -110
- package/esm/src/api/exchange/_methods/cancelByCloid.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/cancelByCloid.js +14 -14
- package/esm/src/api/exchange/_methods/cancelByCloid.js.map +1 -1
- package/esm/src/api/exchange/_methods/claimRewards.d.ts +21 -60
- package/esm/src/api/exchange/_methods/claimRewards.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/claimRewards.js +9 -9
- package/esm/src/api/exchange/_methods/claimRewards.js.map +1 -1
- package/esm/src/api/exchange/_methods/convertToMultiSigUser.d.ts +58 -122
- package/esm/src/api/exchange/_methods/convertToMultiSigUser.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/convertToMultiSigUser.js +17 -18
- package/esm/src/api/exchange/_methods/convertToMultiSigUser.js.map +1 -1
- package/esm/src/api/exchange/_methods/createSubAccount.d.ts +27 -65
- package/esm/src/api/exchange/_methods/createSubAccount.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/createSubAccount.js +16 -16
- package/esm/src/api/exchange/_methods/createSubAccount.js.map +1 -1
- package/esm/src/api/exchange/_methods/createVault.d.ts +36 -80
- package/esm/src/api/exchange/_methods/createVault.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/createVault.js +19 -20
- package/esm/src/api/exchange/_methods/createVault.js.map +1 -1
- package/esm/src/api/exchange/_methods/evmUserModify.d.ts +26 -67
- package/esm/src/api/exchange/_methods/evmUserModify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/evmUserModify.js +10 -10
- package/esm/src/api/exchange/_methods/evmUserModify.js.map +1 -1
- package/esm/src/api/exchange/_methods/linkStakingUser.d.ts +37 -85
- package/esm/src/api/exchange/_methods/linkStakingUser.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/linkStakingUser.js +13 -17
- package/esm/src/api/exchange/_methods/linkStakingUser.js.map +1 -1
- package/esm/src/api/exchange/_methods/modify.d.ts +83 -265
- package/esm/src/api/exchange/_methods/modify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/modify.js +29 -34
- package/esm/src/api/exchange/_methods/modify.js.map +1 -1
- package/esm/src/api/exchange/_methods/noop.d.ts +21 -60
- package/esm/src/api/exchange/_methods/noop.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/noop.js +9 -9
- package/esm/src/api/exchange/_methods/noop.js.map +1 -1
- package/esm/src/api/exchange/_methods/order.d.ts +107 -367
- package/esm/src/api/exchange/_methods/order.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/order.js +53 -61
- package/esm/src/api/exchange/_methods/order.js.map +1 -1
- package/esm/src/api/exchange/_methods/perpDeploy.d.ts +245 -679
- package/esm/src/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/perpDeploy.js +83 -107
- package/esm/src/api/exchange/_methods/perpDeploy.js.map +1 -1
- package/esm/src/api/exchange/_methods/registerReferrer.d.ts +26 -67
- package/esm/src/api/exchange/_methods/registerReferrer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/registerReferrer.js +10 -10
- package/esm/src/api/exchange/_methods/registerReferrer.js.map +1 -1
- package/esm/src/api/exchange/_methods/reserveRequestWeight.d.ts +26 -67
- package/esm/src/api/exchange/_methods/reserveRequestWeight.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/reserveRequestWeight.js +10 -11
- package/esm/src/api/exchange/_methods/reserveRequestWeight.js.map +1 -1
- package/esm/src/api/exchange/_methods/scheduleCancel.d.ts +27 -69
- package/esm/src/api/exchange/_methods/scheduleCancel.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/scheduleCancel.js +11 -13
- package/esm/src/api/exchange/_methods/scheduleCancel.js.map +1 -1
- package/esm/src/api/exchange/_methods/sendAsset.d.ts +64 -120
- package/esm/src/api/exchange/_methods/sendAsset.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/sendAsset.js +17 -17
- package/esm/src/api/exchange/_methods/sendAsset.js.map +1 -1
- package/esm/src/api/exchange/_methods/setDisplayName.d.ts +26 -67
- package/esm/src/api/exchange/_methods/setDisplayName.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/setDisplayName.js +10 -11
- package/esm/src/api/exchange/_methods/setDisplayName.js.map +1 -1
- package/esm/src/api/exchange/_methods/setReferrer.d.ts +26 -67
- package/esm/src/api/exchange/_methods/setReferrer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/setReferrer.js +10 -10
- package/esm/src/api/exchange/_methods/setReferrer.js.map +1 -1
- package/esm/src/api/exchange/_methods/spotDeploy.d.ts +164 -419
- package/esm/src/api/exchange/_methods/spotDeploy.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/spotDeploy.js +56 -68
- package/esm/src/api/exchange/_methods/spotDeploy.js.map +1 -1
- package/esm/src/api/exchange/_methods/spotSend.d.ts +50 -100
- package/esm/src/api/exchange/_methods/spotSend.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/spotSend.js +14 -14
- package/esm/src/api/exchange/_methods/spotSend.js.map +1 -1
- package/esm/src/api/exchange/_methods/spotUser.d.ts +32 -83
- package/esm/src/api/exchange/_methods/spotUser.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/spotUser.js +12 -12
- package/esm/src/api/exchange/_methods/spotUser.js.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountModify.d.ts +29 -72
- package/esm/src/api/exchange/_methods/subAccountModify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountModify.js +11 -11
- package/esm/src/api/exchange/_methods/subAccountModify.js.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountSpotTransfer.d.ts +40 -87
- package/esm/src/api/exchange/_methods/subAccountSpotTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountSpotTransfer.js +13 -13
- package/esm/src/api/exchange/_methods/subAccountSpotTransfer.js.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountTransfer.d.ts +32 -77
- package/esm/src/api/exchange/_methods/subAccountTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/subAccountTransfer.js +12 -12
- package/esm/src/api/exchange/_methods/subAccountTransfer.js.map +1 -1
- package/esm/src/api/exchange/_methods/tokenDelegate.d.ts +40 -90
- package/esm/src/api/exchange/_methods/tokenDelegate.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/tokenDelegate.js +14 -14
- package/esm/src/api/exchange/_methods/tokenDelegate.js.map +1 -1
- package/esm/src/api/exchange/_methods/twapCancel.d.ts +32 -81
- package/esm/src/api/exchange/_methods/twapCancel.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/twapCancel.js +22 -22
- package/esm/src/api/exchange/_methods/twapCancel.js.map +1 -1
- package/esm/src/api/exchange/_methods/twapOrder.d.ts +53 -153
- package/esm/src/api/exchange/_methods/twapOrder.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/twapOrder.js +31 -31
- package/esm/src/api/exchange/_methods/twapOrder.js.map +1 -1
- package/esm/src/api/exchange/_methods/updateIsolatedMargin.d.ts +33 -79
- package/esm/src/api/exchange/_methods/updateIsolatedMargin.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/updateIsolatedMargin.js +13 -13
- package/esm/src/api/exchange/_methods/updateIsolatedMargin.js.map +1 -1
- package/esm/src/api/exchange/_methods/updateLeverage.d.ts +38 -84
- package/esm/src/api/exchange/_methods/updateLeverage.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/updateLeverage.js +13 -13
- package/esm/src/api/exchange/_methods/updateLeverage.js.map +1 -1
- package/esm/src/api/exchange/_methods/usdClassTransfer.d.ts +37 -85
- package/esm/src/api/exchange/_methods/usdClassTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/usdClassTransfer.js +13 -13
- package/esm/src/api/exchange/_methods/usdClassTransfer.js.map +1 -1
- package/esm/src/api/exchange/_methods/usdSend.d.ts +42 -90
- package/esm/src/api/exchange/_methods/usdSend.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/usdSend.js +13 -13
- package/esm/src/api/exchange/_methods/usdSend.js.map +1 -1
- package/esm/src/api/exchange/_methods/userDexAbstraction.d.ts +39 -85
- package/esm/src/api/exchange/_methods/userDexAbstraction.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/userDexAbstraction.js +15 -13
- package/esm/src/api/exchange/_methods/userDexAbstraction.js.map +1 -1
- package/esm/src/api/exchange/_methods/userPortfolioMargin.d.ts +145 -0
- package/esm/src/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -0
- package/esm/src/api/exchange/_methods/userPortfolioMargin.js +92 -0
- package/esm/src/api/exchange/_methods/userPortfolioMargin.js.map +1 -0
- package/esm/src/api/exchange/_methods/userSetAbstraction.d.ts +145 -0
- package/esm/src/api/exchange/_methods/userSetAbstraction.d.ts.map +1 -0
- package/esm/src/api/exchange/_methods/userSetAbstraction.js +92 -0
- package/esm/src/api/exchange/_methods/userSetAbstraction.js.map +1 -0
- package/esm/src/api/exchange/_methods/validatorL1Stream.d.ts +26 -67
- package/esm/src/api/exchange/_methods/validatorL1Stream.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/validatorL1Stream.js +10 -10
- package/esm/src/api/exchange/_methods/validatorL1Stream.js.map +1 -1
- package/esm/src/api/exchange/_methods/vaultDistribute.d.ts +29 -72
- package/esm/src/api/exchange/_methods/vaultDistribute.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/vaultDistribute.js +11 -12
- package/esm/src/api/exchange/_methods/vaultDistribute.js.map +1 -1
- package/esm/src/api/exchange/_methods/vaultModify.d.ts +32 -77
- package/esm/src/api/exchange/_methods/vaultModify.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/vaultModify.js +12 -12
- package/esm/src/api/exchange/_methods/vaultModify.js.map +1 -1
- package/esm/src/api/exchange/_methods/vaultTransfer.d.ts +32 -77
- package/esm/src/api/exchange/_methods/vaultTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/vaultTransfer.js +12 -12
- package/esm/src/api/exchange/_methods/vaultTransfer.js.map +1 -1
- package/esm/src/api/exchange/_methods/withdraw3.d.ts +42 -90
- package/esm/src/api/exchange/_methods/withdraw3.d.ts.map +1 -1
- package/esm/src/api/exchange/_methods/withdraw3.js +13 -13
- package/esm/src/api/exchange/_methods/withdraw3.js.map +1 -1
- package/esm/src/api/exchange/client.d.ts +1284 -46
- package/esm/src/api/exchange/client.d.ts.map +1 -1
- package/esm/src/api/exchange/client.js +1261 -44
- package/esm/src/api/exchange/client.js.map +1 -1
- package/esm/src/api/exchange/mod.d.ts +4 -0
- package/esm/src/api/exchange/mod.d.ts.map +1 -1
- package/esm/src/api/exchange/mod.js +4 -0
- package/esm/src/api/exchange/mod.js.map +1 -1
- package/esm/src/api/info/_methods/_base/commonSchemas.d.ts +100 -196
- package/esm/src/api/info/_methods/_base/commonSchemas.d.ts.map +1 -1
- package/esm/src/api/info/_methods/_base/commonSchemas.js +103 -141
- package/esm/src/api/info/_methods/_base/commonSchemas.js.map +1 -1
- package/esm/src/api/info/_methods/activeAssetData.d.ts +19 -44
- package/esm/src/api/info/_methods/activeAssetData.d.ts.map +1 -1
- package/esm/src/api/info/_methods/activeAssetData.js +20 -20
- package/esm/src/api/info/_methods/activeAssetData.js.map +1 -1
- package/esm/src/api/info/_methods/alignedQuoteTokenInfo.d.ts +11 -20
- package/esm/src/api/info/_methods/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/esm/src/api/info/_methods/alignedQuoteTokenInfo.js +12 -12
- package/esm/src/api/info/_methods/alignedQuoteTokenInfo.js.map +1 -1
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.d.ts +51 -0
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.d.ts.map +1 -0
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.js +53 -0
- package/esm/src/api/info/_methods/allBorrowLendReserveStates.js.map +1 -0
- package/esm/src/api/info/_methods/allMids.d.ts +5 -10
- package/esm/src/api/info/_methods/allMids.d.ts.map +1 -1
- package/esm/src/api/info/_methods/allMids.js +5 -5
- package/esm/src/api/info/_methods/allMids.js.map +1 -1
- package/esm/src/api/info/_methods/allPerpMetas.d.ts +24 -91
- package/esm/src/api/info/_methods/allPerpMetas.d.ts.map +1 -1
- package/esm/src/api/info/_methods/allPerpMetas.js +4 -4
- package/esm/src/api/info/_methods/allPerpMetas.js.map +1 -1
- package/esm/src/api/info/_methods/blockDetails.d.ts +24 -92
- package/esm/src/api/info/_methods/blockDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/blockDetails.js +15 -15
- package/esm/src/api/info/_methods/blockDetails.js.map +1 -1
- package/esm/src/api/info/_methods/borrowLendReserveState.d.ts +67 -0
- package/esm/src/api/info/_methods/borrowLendReserveState.d.ts.map +1 -0
- package/esm/src/api/info/_methods/borrowLendReserveState.js +76 -0
- package/esm/src/api/info/_methods/borrowLendReserveState.js.map +1 -0
- package/esm/src/api/info/_methods/borrowLendUserState.d.ts +72 -0
- package/esm/src/api/info/_methods/borrowLendUserState.d.ts.map +1 -0
- package/esm/src/api/info/_methods/borrowLendUserState.js +84 -0
- package/esm/src/api/info/_methods/borrowLendUserState.js.map +1 -0
- package/esm/src/api/info/_methods/candleSnapshot.d.ts +21 -45
- package/esm/src/api/info/_methods/candleSnapshot.d.ts.map +1 -1
- package/esm/src/api/info/_methods/candleSnapshot.js +21 -21
- package/esm/src/api/info/_methods/candleSnapshot.js.map +1 -1
- package/esm/src/api/info/_methods/clearinghouseState.d.ts +48 -165
- package/esm/src/api/info/_methods/clearinghouseState.d.ts.map +1 -1
- package/esm/src/api/info/_methods/clearinghouseState.js +48 -48
- package/esm/src/api/info/_methods/clearinghouseState.js.map +1 -1
- package/esm/src/api/info/_methods/delegations.d.ts +9 -16
- package/esm/src/api/info/_methods/delegations.d.ts.map +1 -1
- package/esm/src/api/info/_methods/delegations.js +9 -9
- package/esm/src/api/info/_methods/delegations.js.map +1 -1
- package/esm/src/api/info/_methods/delegatorHistory.d.ts +22 -68
- package/esm/src/api/info/_methods/delegatorHistory.d.ts.map +1 -1
- package/esm/src/api/info/_methods/delegatorHistory.js +22 -22
- package/esm/src/api/info/_methods/delegatorHistory.js.map +1 -1
- package/esm/src/api/info/_methods/delegatorRewards.d.ts +9 -16
- package/esm/src/api/info/_methods/delegatorRewards.d.ts.map +1 -1
- package/esm/src/api/info/_methods/delegatorRewards.js +9 -9
- package/esm/src/api/info/_methods/delegatorRewards.js.map +1 -1
- package/esm/src/api/info/_methods/delegatorSummary.d.ts +10 -18
- package/esm/src/api/info/_methods/delegatorSummary.d.ts.map +1 -1
- package/esm/src/api/info/_methods/delegatorSummary.js +10 -10
- package/esm/src/api/info/_methods/delegatorSummary.js.map +1 -1
- package/esm/src/api/info/_methods/exchangeStatus.d.ts +7 -12
- package/esm/src/api/info/_methods/exchangeStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/exchangeStatus.js +7 -7
- package/esm/src/api/info/_methods/exchangeStatus.js.map +1 -1
- package/esm/src/api/info/_methods/extraAgents.d.ts +9 -16
- package/esm/src/api/info/_methods/extraAgents.d.ts.map +1 -1
- package/esm/src/api/info/_methods/extraAgents.js +9 -9
- package/esm/src/api/info/_methods/extraAgents.js.map +1 -1
- package/esm/src/api/info/_methods/frontendOpenOrders.d.ts +23 -61
- package/esm/src/api/info/_methods/frontendOpenOrders.d.ts.map +1 -1
- package/esm/src/api/info/_methods/frontendOpenOrders.js +6 -6
- package/esm/src/api/info/_methods/frontendOpenOrders.js.map +1 -1
- package/esm/src/api/info/_methods/fundingHistory.d.ts +12 -22
- package/esm/src/api/info/_methods/fundingHistory.d.ts.map +1 -1
- package/esm/src/api/info/_methods/fundingHistory.js +12 -12
- package/esm/src/api/info/_methods/fundingHistory.js.map +1 -1
- package/esm/src/api/info/_methods/gossipRootIps.d.ts +4 -6
- package/esm/src/api/info/_methods/gossipRootIps.d.ts.map +1 -1
- package/esm/src/api/info/_methods/gossipRootIps.js +4 -4
- package/esm/src/api/info/_methods/gossipRootIps.js.map +1 -1
- package/esm/src/api/info/_methods/historicalOrders.d.ts +26 -84
- package/esm/src/api/info/_methods/historicalOrders.d.ts.map +1 -1
- package/esm/src/api/info/_methods/historicalOrders.js +9 -38
- package/esm/src/api/info/_methods/historicalOrders.js.map +1 -1
- package/esm/src/api/info/_methods/isVip.d.ts +5 -8
- package/esm/src/api/info/_methods/isVip.d.ts.map +1 -1
- package/esm/src/api/info/_methods/isVip.js +5 -5
- package/esm/src/api/info/_methods/isVip.js.map +1 -1
- package/esm/src/api/info/_methods/l2Book.d.ts +21 -52
- package/esm/src/api/info/_methods/l2Book.d.ts.map +1 -1
- package/esm/src/api/info/_methods/l2Book.js +18 -16
- package/esm/src/api/info/_methods/l2Book.js.map +1 -1
- package/esm/src/api/info/_methods/leadingVaults.d.ts +8 -14
- package/esm/src/api/info/_methods/leadingVaults.d.ts.map +1 -1
- package/esm/src/api/info/_methods/leadingVaults.js +8 -8
- package/esm/src/api/info/_methods/leadingVaults.js.map +1 -1
- package/esm/src/api/info/_methods/legalCheck.d.ts +9 -16
- package/esm/src/api/info/_methods/legalCheck.d.ts.map +1 -1
- package/esm/src/api/info/_methods/legalCheck.js +9 -9
- package/esm/src/api/info/_methods/legalCheck.js.map +1 -1
- package/esm/src/api/info/_methods/liquidatable.d.ts +4 -6
- package/esm/src/api/info/_methods/liquidatable.d.ts.map +1 -1
- package/esm/src/api/info/_methods/liquidatable.js +4 -4
- package/esm/src/api/info/_methods/liquidatable.js.map +1 -1
- package/esm/src/api/info/_methods/marginTable.d.ts +11 -23
- package/esm/src/api/info/_methods/marginTable.d.ts.map +1 -1
- package/esm/src/api/info/_methods/marginTable.js +11 -11
- package/esm/src/api/info/_methods/marginTable.js.map +1 -1
- package/esm/src/api/info/_methods/maxBuilderFee.d.ts +6 -10
- package/esm/src/api/info/_methods/maxBuilderFee.d.ts.map +1 -1
- package/esm/src/api/info/_methods/maxBuilderFee.js +6 -6
- package/esm/src/api/info/_methods/maxBuilderFee.js.map +1 -1
- package/esm/src/api/info/_methods/maxMarketOrderNtls.d.ts +4 -6
- package/esm/src/api/info/_methods/maxMarketOrderNtls.d.ts.map +1 -1
- package/esm/src/api/info/_methods/maxMarketOrderNtls.js +5 -5
- package/esm/src/api/info/_methods/maxMarketOrderNtls.js.map +1 -1
- package/esm/src/api/info/_methods/meta.d.ts +25 -73
- package/esm/src/api/info/_methods/meta.d.ts.map +1 -1
- package/esm/src/api/info/_methods/meta.js +19 -22
- package/esm/src/api/info/_methods/meta.js.map +1 -1
- package/esm/src/api/info/_methods/metaAndAssetCtxs.d.ts +36 -126
- package/esm/src/api/info/_methods/metaAndAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/info/_methods/metaAndAssetCtxs.js +5 -8
- package/esm/src/api/info/_methods/metaAndAssetCtxs.js.map +1 -1
- package/esm/src/api/info/_methods/openOrders.d.ts +16 -40
- package/esm/src/api/info/_methods/openOrders.d.ts.map +1 -1
- package/esm/src/api/info/_methods/openOrders.js +6 -6
- package/esm/src/api/info/_methods/openOrders.js.map +1 -1
- package/esm/src/api/info/_methods/orderStatus.d.ts +31 -116
- package/esm/src/api/info/_methods/orderStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/orderStatus.js +14 -45
- package/esm/src/api/info/_methods/orderStatus.js.map +1 -1
- package/esm/src/api/info/_methods/perpDeployAuctionStatus.d.ts +10 -18
- package/esm/src/api/info/_methods/perpDeployAuctionStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpDeployAuctionStatus.js +10 -10
- package/esm/src/api/info/_methods/perpDeployAuctionStatus.js.map +1 -1
- package/esm/src/api/info/_methods/perpDexLimits.d.ts +10 -18
- package/esm/src/api/info/_methods/perpDexLimits.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpDexLimits.js +10 -10
- package/esm/src/api/info/_methods/perpDexLimits.js.map +1 -1
- package/esm/src/api/info/_methods/perpDexStatus.d.ts +7 -12
- package/esm/src/api/info/_methods/perpDexStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpDexStatus.js +7 -7
- package/esm/src/api/info/_methods/perpDexStatus.js.map +1 -1
- package/esm/src/api/info/_methods/perpDexs.d.ts +17 -39
- package/esm/src/api/info/_methods/perpDexs.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpDexs.js +18 -19
- package/esm/src/api/info/_methods/perpDexs.js.map +1 -1
- package/esm/src/api/info/_methods/perpsAtOpenInterestCap.d.ts +5 -8
- package/esm/src/api/info/_methods/perpsAtOpenInterestCap.d.ts.map +1 -1
- package/esm/src/api/info/_methods/perpsAtOpenInterestCap.js +5 -5
- package/esm/src/api/info/_methods/perpsAtOpenInterestCap.js.map +1 -1
- package/esm/src/api/info/_methods/portfolio.d.ts +37 -104
- package/esm/src/api/info/_methods/portfolio.d.ts.map +1 -1
- package/esm/src/api/info/_methods/portfolio.js +11 -11
- package/esm/src/api/info/_methods/portfolio.js.map +1 -1
- package/esm/src/api/info/_methods/preTransferCheck.d.ts +11 -20
- package/esm/src/api/info/_methods/preTransferCheck.d.ts.map +1 -1
- package/esm/src/api/info/_methods/preTransferCheck.js +11 -11
- package/esm/src/api/info/_methods/preTransferCheck.js.map +1 -1
- package/esm/src/api/info/_methods/predictedFundings.d.ts +8 -14
- package/esm/src/api/info/_methods/predictedFundings.d.ts.map +1 -1
- package/esm/src/api/info/_methods/predictedFundings.js +8 -8
- package/esm/src/api/info/_methods/predictedFundings.js.map +1 -1
- package/esm/src/api/info/_methods/recentTrades.d.ts +14 -26
- package/esm/src/api/info/_methods/recentTrades.d.ts.map +1 -1
- package/esm/src/api/info/_methods/recentTrades.js +14 -14
- package/esm/src/api/info/_methods/recentTrades.js.map +1 -1
- package/esm/src/api/info/_methods/referral.d.ts +50 -170
- package/esm/src/api/info/_methods/referral.d.ts.map +1 -1
- package/esm/src/api/info/_methods/referral.js +50 -50
- package/esm/src/api/info/_methods/referral.js.map +1 -1
- package/esm/src/api/info/_methods/spotClearinghouseState.d.ts +19 -46
- package/esm/src/api/info/_methods/spotClearinghouseState.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotClearinghouseState.js +19 -19
- package/esm/src/api/info/_methods/spotClearinghouseState.js.map +1 -1
- package/esm/src/api/info/_methods/spotDeployState.d.ts +30 -96
- package/esm/src/api/info/_methods/spotDeployState.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotDeployState.js +24 -24
- package/esm/src/api/info/_methods/spotDeployState.js.map +1 -1
- package/esm/src/api/info/_methods/spotMeta.d.ts +54 -69
- package/esm/src/api/info/_methods/spotMeta.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotMeta.js +54 -25
- package/esm/src/api/info/_methods/spotMeta.js.map +1 -1
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +50 -117
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.js +4 -7
- package/esm/src/api/info/_methods/spotMetaAndAssetCtxs.js.map +1 -1
- package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts +10 -24
- package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts.map +1 -1
- package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.js +4 -4
- package/esm/src/api/info/_methods/spotPairDeployAuctionStatus.js.map +1 -1
- package/esm/src/api/info/_methods/subAccounts.d.ts +66 -323
- package/esm/src/api/info/_methods/subAccounts.d.ts.map +1 -1
- package/esm/src/api/info/_methods/subAccounts.js +11 -11
- package/esm/src/api/info/_methods/subAccounts.js.map +1 -1
- package/esm/src/api/info/_methods/subAccounts2.d.ts +67 -325
- package/esm/src/api/info/_methods/subAccounts2.d.ts.map +1 -1
- package/esm/src/api/info/_methods/subAccounts2.js +11 -12
- package/esm/src/api/info/_methods/subAccounts2.js.map +1 -1
- package/esm/src/api/info/_methods/tokenDetails.d.ts +26 -54
- package/esm/src/api/info/_methods/tokenDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/tokenDetails.js +26 -26
- package/esm/src/api/info/_methods/tokenDetails.js.map +1 -1
- package/esm/src/api/info/_methods/twapHistory.d.ts +25 -76
- package/esm/src/api/info/_methods/twapHistory.d.ts.map +1 -1
- package/esm/src/api/info/_methods/twapHistory.js +14 -18
- package/esm/src/api/info/_methods/twapHistory.js.map +1 -1
- package/esm/src/api/info/_methods/txDetails.d.ts +17 -60
- package/esm/src/api/info/_methods/txDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/txDetails.js +8 -8
- package/esm/src/api/info/_methods/txDetails.js.map +1 -1
- package/esm/src/api/info/_methods/userBorrowLendInterest.d.ts +63 -0
- package/esm/src/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -0
- package/esm/src/api/info/_methods/userBorrowLendInterest.js +72 -0
- package/esm/src/api/info/_methods/userBorrowLendInterest.js.map +1 -0
- package/esm/src/api/info/_methods/userDetails.d.ts +17 -60
- package/esm/src/api/info/_methods/userDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userDetails.js +8 -8
- package/esm/src/api/info/_methods/userDetails.js.map +1 -1
- package/esm/src/api/info/_methods/userDexAbstraction.d.ts +5 -8
- package/esm/src/api/info/_methods/userDexAbstraction.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userDexAbstraction.js +5 -5
- package/esm/src/api/info/_methods/userDexAbstraction.js.map +1 -1
- package/esm/src/api/info/_methods/userFees.d.ts +52 -160
- package/esm/src/api/info/_methods/userFees.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userFees.js +52 -59
- package/esm/src/api/info/_methods/userFees.js.map +1 -1
- package/esm/src/api/info/_methods/userFills.d.ts +30 -76
- package/esm/src/api/info/_methods/userFills.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userFills.js +13 -13
- package/esm/src/api/info/_methods/userFills.js.map +1 -1
- package/esm/src/api/info/_methods/userFillsByTime.d.ts +32 -103
- package/esm/src/api/info/_methods/userFillsByTime.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userFillsByTime.js +8 -8
- package/esm/src/api/info/_methods/userFillsByTime.js.map +1 -1
- package/esm/src/api/info/_methods/userFunding.d.ts +18 -41
- package/esm/src/api/info/_methods/userFunding.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userFunding.js +18 -18
- package/esm/src/api/info/_methods/userFunding.js.map +1 -1
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts +115 -282
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.js +121 -88
- package/esm/src/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/esm/src/api/info/_methods/userRateLimit.d.ts +10 -18
- package/esm/src/api/info/_methods/userRateLimit.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userRateLimit.js +10 -10
- package/esm/src/api/info/_methods/userRateLimit.js.map +1 -1
- package/esm/src/api/info/_methods/userRole.d.ts +15 -34
- package/esm/src/api/info/_methods/userRole.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userRole.js +15 -15
- package/esm/src/api/info/_methods/userRole.js.map +1 -1
- package/esm/src/api/info/_methods/userToMultiSigSigners.d.ts +8 -14
- package/esm/src/api/info/_methods/userToMultiSigSigners.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userToMultiSigSigners.js +8 -8
- package/esm/src/api/info/_methods/userToMultiSigSigners.js.map +1 -1
- package/esm/src/api/info/_methods/userTwapSliceFills.d.ts +25 -78
- package/esm/src/api/info/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userTwapSliceFills.js +8 -8
- package/esm/src/api/info/_methods/userTwapSliceFills.js.map +1 -1
- package/esm/src/api/info/_methods/userTwapSliceFillsByTime.d.ts +28 -103
- package/esm/src/api/info/_methods/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userTwapSliceFillsByTime.js +8 -8
- package/esm/src/api/info/_methods/userTwapSliceFillsByTime.js.map +1 -1
- package/esm/src/api/info/_methods/userVaultEquities.d.ts +9 -16
- package/esm/src/api/info/_methods/userVaultEquities.d.ts.map +1 -1
- package/esm/src/api/info/_methods/userVaultEquities.js +9 -9
- package/esm/src/api/info/_methods/userVaultEquities.js.map +1 -1
- package/esm/src/api/info/_methods/validatorL1Votes.d.ts +9 -23
- package/esm/src/api/info/_methods/validatorL1Votes.d.ts.map +1 -1
- package/esm/src/api/info/_methods/validatorL1Votes.js +11 -11
- package/esm/src/api/info/_methods/validatorL1Votes.js.map +1 -1
- package/esm/src/api/info/_methods/validatorSummaries.d.ts +28 -78
- package/esm/src/api/info/_methods/validatorSummaries.d.ts.map +1 -1
- package/esm/src/api/info/_methods/validatorSummaries.js +22 -22
- package/esm/src/api/info/_methods/validatorSummaries.js.map +1 -1
- package/esm/src/api/info/_methods/vaultDetails.d.ts +77 -281
- package/esm/src/api/info/_methods/vaultDetails.d.ts.map +1 -1
- package/esm/src/api/info/_methods/vaultDetails.js +39 -39
- package/esm/src/api/info/_methods/vaultDetails.js.map +1 -1
- package/esm/src/api/info/_methods/vaultSummaries.d.ts +18 -51
- package/esm/src/api/info/_methods/vaultSummaries.d.ts.map +1 -1
- package/esm/src/api/info/_methods/vaultSummaries.js +12 -12
- package/esm/src/api/info/_methods/vaultSummaries.js.map +1 -1
- package/esm/src/api/info/_methods/webData2.d.ts +149 -673
- package/esm/src/api/info/_methods/webData2.d.ts.map +1 -1
- package/esm/src/api/info/_methods/webData2.js +23 -23
- package/esm/src/api/info/_methods/webData2.js.map +1 -1
- package/esm/src/api/info/client.d.ts +1581 -67
- package/esm/src/api/info/client.d.ts.map +1 -1
- package/esm/src/api/info/client.js +1494 -63
- package/esm/src/api/info/client.js.map +1 -1
- package/esm/src/api/info/mod.d.ts +4 -0
- package/esm/src/api/info/mod.d.ts.map +1 -1
- package/esm/src/api/info/mod.js +4 -0
- package/esm/src/api/info/mod.js.map +1 -1
- package/esm/src/api/subscription/_methods/activeAssetCtx.d.ts +19 -58
- package/esm/src/api/subscription/_methods/activeAssetCtx.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/activeAssetCtx.js +8 -8
- package/esm/src/api/subscription/_methods/activeAssetCtx.js.map +1 -1
- package/esm/src/api/subscription/_methods/activeAssetData.d.ts +19 -58
- package/esm/src/api/subscription/_methods/activeAssetData.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/activeAssetData.js +6 -6
- package/esm/src/api/subscription/_methods/activeAssetData.js.map +1 -1
- package/esm/src/api/subscription/_methods/activeSpotAssetCtx.d.ts +17 -50
- package/esm/src/api/subscription/_methods/activeSpotAssetCtx.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/activeSpotAssetCtx.js +8 -8
- package/esm/src/api/subscription/_methods/activeSpotAssetCtx.js.map +1 -1
- package/esm/src/api/subscription/_methods/allDexsAssetCtxs.d.ts +17 -54
- package/esm/src/api/subscription/_methods/allDexsAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/allDexsAssetCtxs.js +6 -9
- package/esm/src/api/subscription/_methods/allDexsAssetCtxs.js.map +1 -1
- package/esm/src/api/subscription/_methods/allDexsClearinghouseState.d.ts +50 -255
- package/esm/src/api/subscription/_methods/allDexsClearinghouseState.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/allDexsClearinghouseState.js +8 -11
- package/esm/src/api/subscription/_methods/allDexsClearinghouseState.js.map +1 -1
- package/esm/src/api/subscription/_methods/allMids.d.ts +8 -20
- package/esm/src/api/subscription/_methods/allMids.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/allMids.js +8 -8
- package/esm/src/api/subscription/_methods/allMids.js.map +1 -1
- package/esm/src/api/subscription/_methods/assetCtxs.d.ts +19 -58
- package/esm/src/api/subscription/_methods/assetCtxs.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/assetCtxs.js +8 -8
- package/esm/src/api/subscription/_methods/assetCtxs.js.map +1 -1
- package/esm/src/api/subscription/_methods/bbo.d.ts +17 -48
- package/esm/src/api/subscription/_methods/bbo.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/bbo.js +14 -14
- package/esm/src/api/subscription/_methods/bbo.js.map +1 -1
- package/esm/src/api/subscription/_methods/candle.d.ts +17 -32
- package/esm/src/api/subscription/_methods/candle.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/candle.js +17 -17
- package/esm/src/api/subscription/_methods/candle.js.map +1 -1
- package/esm/src/api/subscription/_methods/clearinghouseState.d.ts +52 -259
- package/esm/src/api/subscription/_methods/clearinghouseState.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/clearinghouseState.js +10 -10
- package/esm/src/api/subscription/_methods/clearinghouseState.js.map +1 -1
- package/esm/src/api/subscription/_methods/explorerBlock.d.ts +10 -18
- package/esm/src/api/subscription/_methods/explorerBlock.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/explorerBlock.js +10 -10
- package/esm/src/api/subscription/_methods/explorerBlock.js.map +1 -1
- package/esm/src/api/subscription/_methods/explorerTxs.d.ts +13 -41
- package/esm/src/api/subscription/_methods/explorerTxs.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/explorerTxs.js +4 -4
- package/esm/src/api/subscription/_methods/explorerTxs.js.map +1 -1
- package/esm/src/api/subscription/_methods/l2Book.d.ts +21 -52
- package/esm/src/api/subscription/_methods/l2Book.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/l2Book.js +18 -16
- package/esm/src/api/subscription/_methods/l2Book.js.map +1 -1
- package/esm/src/api/subscription/_methods/notification.d.ts +7 -12
- package/esm/src/api/subscription/_methods/notification.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/notification.js +7 -7
- package/esm/src/api/subscription/_methods/notification.js.map +1 -1
- package/esm/src/api/subscription/_methods/openOrders.d.ts +27 -103
- package/esm/src/api/subscription/_methods/openOrders.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/openOrders.js +10 -10
- package/esm/src/api/subscription/_methods/openOrders.js.map +1 -1
- package/esm/src/api/subscription/_methods/orderUpdates.d.ts +19 -56
- package/esm/src/api/subscription/_methods/orderUpdates.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/orderUpdates.js +9 -38
- package/esm/src/api/subscription/_methods/orderUpdates.js.map +1 -1
- package/esm/src/api/subscription/_methods/spotAssetCtxs.d.ts +13 -33
- package/esm/src/api/subscription/_methods/spotAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/spotAssetCtxs.js +4 -4
- package/esm/src/api/subscription/_methods/spotAssetCtxs.js.map +1 -1
- package/esm/src/api/subscription/_methods/spotState.d.ts +22 -78
- package/esm/src/api/subscription/_methods/spotState.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/spotState.js +9 -9
- package/esm/src/api/subscription/_methods/spotState.js.map +1 -1
- package/esm/src/api/subscription/_methods/trades.d.ts +14 -35
- package/esm/src/api/subscription/_methods/trades.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/trades.js +5 -5
- package/esm/src/api/subscription/_methods/trades.js.map +1 -1
- package/esm/src/api/subscription/_methods/twapStates.d.ts +21 -62
- package/esm/src/api/subscription/_methods/twapStates.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/twapStates.js +10 -10
- package/esm/src/api/subscription/_methods/twapStates.js.map +1 -1
- package/esm/src/api/subscription/_methods/userEvents.d.ts +91 -402
- package/esm/src/api/subscription/_methods/userEvents.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userEvents.js +27 -27
- package/esm/src/api/subscription/_methods/userEvents.js.map +1 -1
- package/esm/src/api/subscription/_methods/userFills.d.ts +34 -130
- package/esm/src/api/subscription/_methods/userFills.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userFills.js +10 -10
- package/esm/src/api/subscription/_methods/userFills.js.map +1 -1
- package/esm/src/api/subscription/_methods/userFundings.d.ts +16 -37
- package/esm/src/api/subscription/_methods/userFundings.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userFundings.js +16 -16
- package/esm/src/api/subscription/_methods/userFundings.js.map +1 -1
- package/esm/src/api/subscription/_methods/userHistoricalOrders.d.ts +30 -134
- package/esm/src/api/subscription/_methods/userHistoricalOrders.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userHistoricalOrders.js +9 -9
- package/esm/src/api/subscription/_methods/userHistoricalOrders.js.map +1 -1
- package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts +105 -476
- package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.js +9 -9
- package/esm/src/api/subscription/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/esm/src/api/subscription/_methods/userTwapHistory.d.ts +29 -126
- package/esm/src/api/subscription/_methods/userTwapHistory.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userTwapHistory.js +9 -9
- package/esm/src/api/subscription/_methods/userTwapHistory.js.map +1 -1
- package/esm/src/api/subscription/_methods/userTwapSliceFills.d.ts +29 -124
- package/esm/src/api/subscription/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/userTwapSliceFills.js +9 -9
- package/esm/src/api/subscription/_methods/userTwapSliceFills.js.map +1 -1
- package/esm/src/api/subscription/_methods/webData2.d.ts +149 -818
- package/esm/src/api/subscription/_methods/webData2.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/webData2.js +5 -5
- package/esm/src/api/subscription/_methods/webData2.js.map +1 -1
- package/esm/src/api/subscription/_methods/webData3.d.ts +25 -71
- package/esm/src/api/subscription/_methods/webData3.d.ts.map +1 -1
- package/esm/src/api/subscription/_methods/webData3.js +22 -22
- package/esm/src/api/subscription/_methods/webData3.js.map +1 -1
- package/esm/src/api/subscription/client.d.ts +664 -29
- package/esm/src/api/subscription/client.d.ts.map +1 -1
- package/esm/src/api/subscription/client.js +618 -27
- package/esm/src/api/subscription/client.js.map +1 -1
- package/esm/src/signing/_abstractWallet.d.ts +33 -66
- package/esm/src/signing/_abstractWallet.d.ts.map +1 -1
- package/esm/src/signing/_abstractWallet.js +39 -63
- package/esm/src/signing/_abstractWallet.js.map +1 -1
- package/esm/src/signing/_privateKeySigner.d.ts.map +1 -1
- package/esm/src/signing/_privateKeySigner.js +2 -7
- package/esm/src/signing/_privateKeySigner.js.map +1 -1
- package/esm/src/signing/mod.d.ts.map +1 -1
- package/esm/src/signing/mod.js +11 -10
- package/esm/src/signing/mod.js.map +1 -1
- package/package.json +1 -1
- package/script/bin/_utils.d.ts +33 -1
- package/script/bin/_utils.d.ts.map +1 -1
- package/script/bin/_utils.js +17 -1
- package/script/bin/_utils.js.map +1 -1
- package/script/bin/cli.js +288 -252
- package/script/bin/cli.js.map +1 -1
- package/script/deps/jsr.io/@std/async/{1.0.16 → 1.1.1}/unstable_semaphore.d.ts +1 -0
- package/script/deps/jsr.io/@std/async/1.1.1/unstable_semaphore.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/async/{1.0.16 → 1.1.1}/unstable_semaphore.js +4 -3
- package/script/deps/jsr.io/@std/async/1.1.1/unstable_semaphore.js.map +1 -0
- package/script/src/api/_schemas.d.ts +9 -0
- package/script/src/api/_schemas.d.ts.map +1 -1
- package/script/src/api/_schemas.js +10 -1
- package/script/src/api/_schemas.js.map +1 -1
- package/script/src/api/exchange/_methods/_base/_semaphore.js +1 -1
- package/script/src/api/exchange/_methods/_base/_semaphore.js.map +1 -1
- package/script/src/api/exchange/_methods/_base/commonSchemas.d.ts +16 -30
- package/script/src/api/exchange/_methods/_base/commonSchemas.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/_base/commonSchemas.js +16 -16
- package/script/src/api/exchange/_methods/_base/commonSchemas.js.map +1 -1
- package/script/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts +23 -60
- package/script/src/api/exchange/_methods/agentEnableDexAbstraction.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/agentEnableDexAbstraction.js +11 -9
- package/script/src/api/exchange/_methods/agentEnableDexAbstraction.js.map +1 -1
- package/script/src/api/exchange/_methods/agentSetAbstraction.d.ts +126 -0
- package/script/src/api/exchange/_methods/agentSetAbstraction.d.ts.map +1 -0
- package/script/src/api/exchange/_methods/agentSetAbstraction.js +119 -0
- package/script/src/api/exchange/_methods/agentSetAbstraction.js.map +1 -0
- package/script/src/api/exchange/_methods/approveAgent.d.ts +54 -91
- package/script/src/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/approveAgent.js +33 -15
- package/script/src/api/exchange/_methods/approveAgent.js.map +1 -1
- package/script/src/api/exchange/_methods/approveBuilderFee.d.ts +37 -85
- package/script/src/api/exchange/_methods/approveBuilderFee.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/approveBuilderFee.js +13 -13
- package/script/src/api/exchange/_methods/approveBuilderFee.js.map +1 -1
- package/script/src/api/exchange/_methods/batchModify.d.ts +101 -433
- package/script/src/api/exchange/_methods/batchModify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/batchModify.js +31 -36
- package/script/src/api/exchange/_methods/batchModify.js.map +1 -1
- package/script/src/api/exchange/_methods/borrowLend.d.ts +127 -0
- package/script/src/api/exchange/_methods/borrowLend.d.ts.map +1 -0
- package/script/src/api/exchange/_methods/borrowLend.js +112 -0
- package/script/src/api/exchange/_methods/borrowLend.js.map +1 -0
- package/script/src/api/exchange/_methods/cDeposit.d.ts +34 -80
- package/script/src/api/exchange/_methods/cDeposit.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cDeposit.js +12 -12
- package/script/src/api/exchange/_methods/cDeposit.js.map +1 -1
- package/script/src/api/exchange/_methods/cSignerAction.d.ts +32 -79
- package/script/src/api/exchange/_methods/cSignerAction.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cSignerAction.js +12 -12
- package/script/src/api/exchange/_methods/cSignerAction.js.map +1 -1
- package/script/src/api/exchange/_methods/cValidatorAction.d.ts +107 -314
- package/script/src/api/exchange/_methods/cValidatorAction.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cValidatorAction.js +37 -37
- package/script/src/api/exchange/_methods/cValidatorAction.js.map +1 -1
- package/script/src/api/exchange/_methods/cWithdraw.d.ts +34 -80
- package/script/src/api/exchange/_methods/cWithdraw.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cWithdraw.js +12 -12
- package/script/src/api/exchange/_methods/cWithdraw.js.map +1 -1
- package/script/src/api/exchange/_methods/cancel.d.ts +38 -100
- package/script/src/api/exchange/_methods/cancel.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cancel.js +24 -24
- package/script/src/api/exchange/_methods/cancel.js.map +1 -1
- package/script/src/api/exchange/_methods/cancelByCloid.d.ts +38 -110
- package/script/src/api/exchange/_methods/cancelByCloid.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/cancelByCloid.js +14 -14
- package/script/src/api/exchange/_methods/cancelByCloid.js.map +1 -1
- package/script/src/api/exchange/_methods/claimRewards.d.ts +21 -60
- package/script/src/api/exchange/_methods/claimRewards.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/claimRewards.js +9 -9
- package/script/src/api/exchange/_methods/claimRewards.js.map +1 -1
- package/script/src/api/exchange/_methods/convertToMultiSigUser.d.ts +58 -122
- package/script/src/api/exchange/_methods/convertToMultiSigUser.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/convertToMultiSigUser.js +17 -18
- package/script/src/api/exchange/_methods/convertToMultiSigUser.js.map +1 -1
- package/script/src/api/exchange/_methods/createSubAccount.d.ts +27 -65
- package/script/src/api/exchange/_methods/createSubAccount.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/createSubAccount.js +16 -16
- package/script/src/api/exchange/_methods/createSubAccount.js.map +1 -1
- package/script/src/api/exchange/_methods/createVault.d.ts +36 -80
- package/script/src/api/exchange/_methods/createVault.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/createVault.js +19 -20
- package/script/src/api/exchange/_methods/createVault.js.map +1 -1
- package/script/src/api/exchange/_methods/evmUserModify.d.ts +26 -67
- package/script/src/api/exchange/_methods/evmUserModify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/evmUserModify.js +10 -10
- package/script/src/api/exchange/_methods/evmUserModify.js.map +1 -1
- package/script/src/api/exchange/_methods/linkStakingUser.d.ts +37 -85
- package/script/src/api/exchange/_methods/linkStakingUser.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/linkStakingUser.js +13 -17
- package/script/src/api/exchange/_methods/linkStakingUser.js.map +1 -1
- package/script/src/api/exchange/_methods/modify.d.ts +83 -265
- package/script/src/api/exchange/_methods/modify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/modify.js +29 -34
- package/script/src/api/exchange/_methods/modify.js.map +1 -1
- package/script/src/api/exchange/_methods/noop.d.ts +21 -60
- package/script/src/api/exchange/_methods/noop.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/noop.js +9 -9
- package/script/src/api/exchange/_methods/noop.js.map +1 -1
- package/script/src/api/exchange/_methods/order.d.ts +107 -367
- package/script/src/api/exchange/_methods/order.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/order.js +53 -61
- package/script/src/api/exchange/_methods/order.js.map +1 -1
- package/script/src/api/exchange/_methods/perpDeploy.d.ts +245 -679
- package/script/src/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/perpDeploy.js +83 -107
- package/script/src/api/exchange/_methods/perpDeploy.js.map +1 -1
- package/script/src/api/exchange/_methods/registerReferrer.d.ts +26 -67
- package/script/src/api/exchange/_methods/registerReferrer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/registerReferrer.js +10 -10
- package/script/src/api/exchange/_methods/registerReferrer.js.map +1 -1
- package/script/src/api/exchange/_methods/reserveRequestWeight.d.ts +26 -67
- package/script/src/api/exchange/_methods/reserveRequestWeight.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/reserveRequestWeight.js +10 -11
- package/script/src/api/exchange/_methods/reserveRequestWeight.js.map +1 -1
- package/script/src/api/exchange/_methods/scheduleCancel.d.ts +27 -69
- package/script/src/api/exchange/_methods/scheduleCancel.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/scheduleCancel.js +11 -13
- package/script/src/api/exchange/_methods/scheduleCancel.js.map +1 -1
- package/script/src/api/exchange/_methods/sendAsset.d.ts +64 -120
- package/script/src/api/exchange/_methods/sendAsset.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/sendAsset.js +17 -17
- package/script/src/api/exchange/_methods/sendAsset.js.map +1 -1
- package/script/src/api/exchange/_methods/setDisplayName.d.ts +26 -67
- package/script/src/api/exchange/_methods/setDisplayName.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/setDisplayName.js +10 -11
- package/script/src/api/exchange/_methods/setDisplayName.js.map +1 -1
- package/script/src/api/exchange/_methods/setReferrer.d.ts +26 -67
- package/script/src/api/exchange/_methods/setReferrer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/setReferrer.js +10 -10
- package/script/src/api/exchange/_methods/setReferrer.js.map +1 -1
- package/script/src/api/exchange/_methods/spotDeploy.d.ts +164 -419
- package/script/src/api/exchange/_methods/spotDeploy.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/spotDeploy.js +56 -68
- package/script/src/api/exchange/_methods/spotDeploy.js.map +1 -1
- package/script/src/api/exchange/_methods/spotSend.d.ts +50 -100
- package/script/src/api/exchange/_methods/spotSend.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/spotSend.js +14 -14
- package/script/src/api/exchange/_methods/spotSend.js.map +1 -1
- package/script/src/api/exchange/_methods/spotUser.d.ts +32 -83
- package/script/src/api/exchange/_methods/spotUser.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/spotUser.js +12 -12
- package/script/src/api/exchange/_methods/spotUser.js.map +1 -1
- package/script/src/api/exchange/_methods/subAccountModify.d.ts +29 -72
- package/script/src/api/exchange/_methods/subAccountModify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/subAccountModify.js +11 -11
- package/script/src/api/exchange/_methods/subAccountModify.js.map +1 -1
- package/script/src/api/exchange/_methods/subAccountSpotTransfer.d.ts +40 -87
- package/script/src/api/exchange/_methods/subAccountSpotTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/subAccountSpotTransfer.js +13 -13
- package/script/src/api/exchange/_methods/subAccountSpotTransfer.js.map +1 -1
- package/script/src/api/exchange/_methods/subAccountTransfer.d.ts +32 -77
- package/script/src/api/exchange/_methods/subAccountTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/subAccountTransfer.js +12 -12
- package/script/src/api/exchange/_methods/subAccountTransfer.js.map +1 -1
- package/script/src/api/exchange/_methods/tokenDelegate.d.ts +40 -90
- package/script/src/api/exchange/_methods/tokenDelegate.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/tokenDelegate.js +14 -14
- package/script/src/api/exchange/_methods/tokenDelegate.js.map +1 -1
- package/script/src/api/exchange/_methods/twapCancel.d.ts +32 -81
- package/script/src/api/exchange/_methods/twapCancel.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/twapCancel.js +22 -22
- package/script/src/api/exchange/_methods/twapCancel.js.map +1 -1
- package/script/src/api/exchange/_methods/twapOrder.d.ts +53 -153
- package/script/src/api/exchange/_methods/twapOrder.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/twapOrder.js +31 -31
- package/script/src/api/exchange/_methods/twapOrder.js.map +1 -1
- package/script/src/api/exchange/_methods/updateIsolatedMargin.d.ts +33 -79
- package/script/src/api/exchange/_methods/updateIsolatedMargin.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/updateIsolatedMargin.js +13 -13
- package/script/src/api/exchange/_methods/updateIsolatedMargin.js.map +1 -1
- package/script/src/api/exchange/_methods/updateLeverage.d.ts +38 -84
- package/script/src/api/exchange/_methods/updateLeverage.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/updateLeverage.js +13 -13
- package/script/src/api/exchange/_methods/updateLeverage.js.map +1 -1
- package/script/src/api/exchange/_methods/usdClassTransfer.d.ts +37 -85
- package/script/src/api/exchange/_methods/usdClassTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/usdClassTransfer.js +13 -13
- package/script/src/api/exchange/_methods/usdClassTransfer.js.map +1 -1
- package/script/src/api/exchange/_methods/usdSend.d.ts +42 -90
- package/script/src/api/exchange/_methods/usdSend.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/usdSend.js +13 -13
- package/script/src/api/exchange/_methods/usdSend.js.map +1 -1
- package/script/src/api/exchange/_methods/userDexAbstraction.d.ts +39 -85
- package/script/src/api/exchange/_methods/userDexAbstraction.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/userDexAbstraction.js +15 -13
- package/script/src/api/exchange/_methods/userDexAbstraction.js.map +1 -1
- package/script/src/api/exchange/_methods/userPortfolioMargin.d.ts +145 -0
- package/script/src/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -0
- package/script/src/api/exchange/_methods/userPortfolioMargin.js +129 -0
- package/script/src/api/exchange/_methods/userPortfolioMargin.js.map +1 -0
- package/script/src/api/exchange/_methods/userSetAbstraction.d.ts +145 -0
- package/script/src/api/exchange/_methods/userSetAbstraction.d.ts.map +1 -0
- package/script/src/api/exchange/_methods/userSetAbstraction.js +129 -0
- package/script/src/api/exchange/_methods/userSetAbstraction.js.map +1 -0
- package/script/src/api/exchange/_methods/validatorL1Stream.d.ts +26 -67
- package/script/src/api/exchange/_methods/validatorL1Stream.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/validatorL1Stream.js +10 -10
- package/script/src/api/exchange/_methods/validatorL1Stream.js.map +1 -1
- package/script/src/api/exchange/_methods/vaultDistribute.d.ts +29 -72
- package/script/src/api/exchange/_methods/vaultDistribute.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/vaultDistribute.js +11 -12
- package/script/src/api/exchange/_methods/vaultDistribute.js.map +1 -1
- package/script/src/api/exchange/_methods/vaultModify.d.ts +32 -77
- package/script/src/api/exchange/_methods/vaultModify.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/vaultModify.js +12 -12
- package/script/src/api/exchange/_methods/vaultModify.js.map +1 -1
- package/script/src/api/exchange/_methods/vaultTransfer.d.ts +32 -77
- package/script/src/api/exchange/_methods/vaultTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/vaultTransfer.js +12 -12
- package/script/src/api/exchange/_methods/vaultTransfer.js.map +1 -1
- package/script/src/api/exchange/_methods/withdraw3.d.ts +42 -90
- package/script/src/api/exchange/_methods/withdraw3.d.ts.map +1 -1
- package/script/src/api/exchange/_methods/withdraw3.js +13 -13
- package/script/src/api/exchange/_methods/withdraw3.js.map +1 -1
- package/script/src/api/exchange/client.d.ts +1284 -46
- package/script/src/api/exchange/client.d.ts.map +1 -1
- package/script/src/api/exchange/client.js +1261 -44
- package/script/src/api/exchange/client.js.map +1 -1
- package/script/src/api/exchange/mod.d.ts +4 -0
- package/script/src/api/exchange/mod.d.ts.map +1 -1
- package/script/src/api/exchange/mod.js +4 -0
- package/script/src/api/exchange/mod.js.map +1 -1
- package/script/src/api/info/_methods/_base/commonSchemas.d.ts +100 -196
- package/script/src/api/info/_methods/_base/commonSchemas.d.ts.map +1 -1
- package/script/src/api/info/_methods/_base/commonSchemas.js +103 -141
- package/script/src/api/info/_methods/_base/commonSchemas.js.map +1 -1
- package/script/src/api/info/_methods/activeAssetData.d.ts +19 -44
- package/script/src/api/info/_methods/activeAssetData.d.ts.map +1 -1
- package/script/src/api/info/_methods/activeAssetData.js +19 -19
- package/script/src/api/info/_methods/activeAssetData.js.map +1 -1
- package/script/src/api/info/_methods/alignedQuoteTokenInfo.d.ts +11 -20
- package/script/src/api/info/_methods/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/script/src/api/info/_methods/alignedQuoteTokenInfo.js +12 -12
- package/script/src/api/info/_methods/alignedQuoteTokenInfo.js.map +1 -1
- package/script/src/api/info/_methods/allBorrowLendReserveStates.d.ts +51 -0
- package/script/src/api/info/_methods/allBorrowLendReserveStates.d.ts.map +1 -0
- package/script/src/api/info/_methods/allBorrowLendReserveStates.js +90 -0
- package/script/src/api/info/_methods/allBorrowLendReserveStates.js.map +1 -0
- package/script/src/api/info/_methods/allMids.d.ts +5 -10
- package/script/src/api/info/_methods/allMids.d.ts.map +1 -1
- package/script/src/api/info/_methods/allMids.js +5 -5
- package/script/src/api/info/_methods/allMids.js.map +1 -1
- package/script/src/api/info/_methods/allPerpMetas.d.ts +24 -91
- package/script/src/api/info/_methods/allPerpMetas.d.ts.map +1 -1
- package/script/src/api/info/_methods/allPerpMetas.js +4 -4
- package/script/src/api/info/_methods/allPerpMetas.js.map +1 -1
- package/script/src/api/info/_methods/blockDetails.d.ts +24 -92
- package/script/src/api/info/_methods/blockDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/blockDetails.js +15 -15
- package/script/src/api/info/_methods/blockDetails.js.map +1 -1
- package/script/src/api/info/_methods/borrowLendReserveState.d.ts +67 -0
- package/script/src/api/info/_methods/borrowLendReserveState.d.ts.map +1 -0
- package/script/src/api/info/_methods/borrowLendReserveState.js +113 -0
- package/script/src/api/info/_methods/borrowLendReserveState.js.map +1 -0
- package/script/src/api/info/_methods/borrowLendUserState.d.ts +72 -0
- package/script/src/api/info/_methods/borrowLendUserState.d.ts.map +1 -0
- package/script/src/api/info/_methods/borrowLendUserState.js +121 -0
- package/script/src/api/info/_methods/borrowLendUserState.js.map +1 -0
- package/script/src/api/info/_methods/candleSnapshot.d.ts +21 -45
- package/script/src/api/info/_methods/candleSnapshot.d.ts.map +1 -1
- package/script/src/api/info/_methods/candleSnapshot.js +21 -21
- package/script/src/api/info/_methods/candleSnapshot.js.map +1 -1
- package/script/src/api/info/_methods/clearinghouseState.d.ts +48 -165
- package/script/src/api/info/_methods/clearinghouseState.d.ts.map +1 -1
- package/script/src/api/info/_methods/clearinghouseState.js +48 -48
- package/script/src/api/info/_methods/clearinghouseState.js.map +1 -1
- package/script/src/api/info/_methods/delegations.d.ts +9 -16
- package/script/src/api/info/_methods/delegations.d.ts.map +1 -1
- package/script/src/api/info/_methods/delegations.js +9 -9
- package/script/src/api/info/_methods/delegations.js.map +1 -1
- package/script/src/api/info/_methods/delegatorHistory.d.ts +22 -68
- package/script/src/api/info/_methods/delegatorHistory.d.ts.map +1 -1
- package/script/src/api/info/_methods/delegatorHistory.js +22 -22
- package/script/src/api/info/_methods/delegatorHistory.js.map +1 -1
- package/script/src/api/info/_methods/delegatorRewards.d.ts +9 -16
- package/script/src/api/info/_methods/delegatorRewards.d.ts.map +1 -1
- package/script/src/api/info/_methods/delegatorRewards.js +9 -9
- package/script/src/api/info/_methods/delegatorRewards.js.map +1 -1
- package/script/src/api/info/_methods/delegatorSummary.d.ts +10 -18
- package/script/src/api/info/_methods/delegatorSummary.d.ts.map +1 -1
- package/script/src/api/info/_methods/delegatorSummary.js +10 -10
- package/script/src/api/info/_methods/delegatorSummary.js.map +1 -1
- package/script/src/api/info/_methods/exchangeStatus.d.ts +7 -12
- package/script/src/api/info/_methods/exchangeStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/exchangeStatus.js +7 -7
- package/script/src/api/info/_methods/exchangeStatus.js.map +1 -1
- package/script/src/api/info/_methods/extraAgents.d.ts +9 -16
- package/script/src/api/info/_methods/extraAgents.d.ts.map +1 -1
- package/script/src/api/info/_methods/extraAgents.js +9 -9
- package/script/src/api/info/_methods/extraAgents.js.map +1 -1
- package/script/src/api/info/_methods/frontendOpenOrders.d.ts +23 -61
- package/script/src/api/info/_methods/frontendOpenOrders.d.ts.map +1 -1
- package/script/src/api/info/_methods/frontendOpenOrders.js +6 -6
- package/script/src/api/info/_methods/frontendOpenOrders.js.map +1 -1
- package/script/src/api/info/_methods/fundingHistory.d.ts +12 -22
- package/script/src/api/info/_methods/fundingHistory.d.ts.map +1 -1
- package/script/src/api/info/_methods/fundingHistory.js +12 -12
- package/script/src/api/info/_methods/fundingHistory.js.map +1 -1
- package/script/src/api/info/_methods/gossipRootIps.d.ts +4 -6
- package/script/src/api/info/_methods/gossipRootIps.d.ts.map +1 -1
- package/script/src/api/info/_methods/gossipRootIps.js +4 -4
- package/script/src/api/info/_methods/gossipRootIps.js.map +1 -1
- package/script/src/api/info/_methods/historicalOrders.d.ts +26 -84
- package/script/src/api/info/_methods/historicalOrders.d.ts.map +1 -1
- package/script/src/api/info/_methods/historicalOrders.js +9 -38
- package/script/src/api/info/_methods/historicalOrders.js.map +1 -1
- package/script/src/api/info/_methods/isVip.d.ts +5 -8
- package/script/src/api/info/_methods/isVip.d.ts.map +1 -1
- package/script/src/api/info/_methods/isVip.js +5 -5
- package/script/src/api/info/_methods/isVip.js.map +1 -1
- package/script/src/api/info/_methods/l2Book.d.ts +21 -52
- package/script/src/api/info/_methods/l2Book.d.ts.map +1 -1
- package/script/src/api/info/_methods/l2Book.js +18 -16
- package/script/src/api/info/_methods/l2Book.js.map +1 -1
- package/script/src/api/info/_methods/leadingVaults.d.ts +8 -14
- package/script/src/api/info/_methods/leadingVaults.d.ts.map +1 -1
- package/script/src/api/info/_methods/leadingVaults.js +8 -8
- package/script/src/api/info/_methods/leadingVaults.js.map +1 -1
- package/script/src/api/info/_methods/legalCheck.d.ts +9 -16
- package/script/src/api/info/_methods/legalCheck.d.ts.map +1 -1
- package/script/src/api/info/_methods/legalCheck.js +9 -9
- package/script/src/api/info/_methods/legalCheck.js.map +1 -1
- package/script/src/api/info/_methods/liquidatable.d.ts +4 -6
- package/script/src/api/info/_methods/liquidatable.d.ts.map +1 -1
- package/script/src/api/info/_methods/liquidatable.js +4 -4
- package/script/src/api/info/_methods/liquidatable.js.map +1 -1
- package/script/src/api/info/_methods/marginTable.d.ts +11 -23
- package/script/src/api/info/_methods/marginTable.d.ts.map +1 -1
- package/script/src/api/info/_methods/marginTable.js +11 -11
- package/script/src/api/info/_methods/marginTable.js.map +1 -1
- package/script/src/api/info/_methods/maxBuilderFee.d.ts +6 -10
- package/script/src/api/info/_methods/maxBuilderFee.d.ts.map +1 -1
- package/script/src/api/info/_methods/maxBuilderFee.js +6 -6
- package/script/src/api/info/_methods/maxBuilderFee.js.map +1 -1
- package/script/src/api/info/_methods/maxMarketOrderNtls.d.ts +4 -6
- package/script/src/api/info/_methods/maxMarketOrderNtls.d.ts.map +1 -1
- package/script/src/api/info/_methods/maxMarketOrderNtls.js +4 -4
- package/script/src/api/info/_methods/maxMarketOrderNtls.js.map +1 -1
- package/script/src/api/info/_methods/meta.d.ts +25 -73
- package/script/src/api/info/_methods/meta.d.ts.map +1 -1
- package/script/src/api/info/_methods/meta.js +19 -22
- package/script/src/api/info/_methods/meta.js.map +1 -1
- package/script/src/api/info/_methods/metaAndAssetCtxs.d.ts +36 -126
- package/script/src/api/info/_methods/metaAndAssetCtxs.d.ts.map +1 -1
- package/script/src/api/info/_methods/metaAndAssetCtxs.js +5 -8
- package/script/src/api/info/_methods/metaAndAssetCtxs.js.map +1 -1
- package/script/src/api/info/_methods/openOrders.d.ts +16 -40
- package/script/src/api/info/_methods/openOrders.d.ts.map +1 -1
- package/script/src/api/info/_methods/openOrders.js +6 -6
- package/script/src/api/info/_methods/openOrders.js.map +1 -1
- package/script/src/api/info/_methods/orderStatus.d.ts +31 -116
- package/script/src/api/info/_methods/orderStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/orderStatus.js +14 -45
- package/script/src/api/info/_methods/orderStatus.js.map +1 -1
- package/script/src/api/info/_methods/perpDeployAuctionStatus.d.ts +10 -18
- package/script/src/api/info/_methods/perpDeployAuctionStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpDeployAuctionStatus.js +10 -10
- package/script/src/api/info/_methods/perpDeployAuctionStatus.js.map +1 -1
- package/script/src/api/info/_methods/perpDexLimits.d.ts +10 -18
- package/script/src/api/info/_methods/perpDexLimits.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpDexLimits.js +10 -10
- package/script/src/api/info/_methods/perpDexLimits.js.map +1 -1
- package/script/src/api/info/_methods/perpDexStatus.d.ts +7 -12
- package/script/src/api/info/_methods/perpDexStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpDexStatus.js +7 -7
- package/script/src/api/info/_methods/perpDexStatus.js.map +1 -1
- package/script/src/api/info/_methods/perpDexs.d.ts +17 -39
- package/script/src/api/info/_methods/perpDexs.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpDexs.js +18 -19
- package/script/src/api/info/_methods/perpDexs.js.map +1 -1
- package/script/src/api/info/_methods/perpsAtOpenInterestCap.d.ts +5 -8
- package/script/src/api/info/_methods/perpsAtOpenInterestCap.d.ts.map +1 -1
- package/script/src/api/info/_methods/perpsAtOpenInterestCap.js +5 -5
- package/script/src/api/info/_methods/perpsAtOpenInterestCap.js.map +1 -1
- package/script/src/api/info/_methods/portfolio.d.ts +37 -104
- package/script/src/api/info/_methods/portfolio.d.ts.map +1 -1
- package/script/src/api/info/_methods/portfolio.js +11 -11
- package/script/src/api/info/_methods/portfolio.js.map +1 -1
- package/script/src/api/info/_methods/preTransferCheck.d.ts +11 -20
- package/script/src/api/info/_methods/preTransferCheck.d.ts.map +1 -1
- package/script/src/api/info/_methods/preTransferCheck.js +11 -11
- package/script/src/api/info/_methods/preTransferCheck.js.map +1 -1
- package/script/src/api/info/_methods/predictedFundings.d.ts +8 -14
- package/script/src/api/info/_methods/predictedFundings.d.ts.map +1 -1
- package/script/src/api/info/_methods/predictedFundings.js +8 -8
- package/script/src/api/info/_methods/predictedFundings.js.map +1 -1
- package/script/src/api/info/_methods/recentTrades.d.ts +14 -26
- package/script/src/api/info/_methods/recentTrades.d.ts.map +1 -1
- package/script/src/api/info/_methods/recentTrades.js +14 -14
- package/script/src/api/info/_methods/recentTrades.js.map +1 -1
- package/script/src/api/info/_methods/referral.d.ts +50 -170
- package/script/src/api/info/_methods/referral.d.ts.map +1 -1
- package/script/src/api/info/_methods/referral.js +50 -50
- package/script/src/api/info/_methods/referral.js.map +1 -1
- package/script/src/api/info/_methods/spotClearinghouseState.d.ts +19 -46
- package/script/src/api/info/_methods/spotClearinghouseState.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotClearinghouseState.js +19 -19
- package/script/src/api/info/_methods/spotClearinghouseState.js.map +1 -1
- package/script/src/api/info/_methods/spotDeployState.d.ts +30 -96
- package/script/src/api/info/_methods/spotDeployState.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotDeployState.js +24 -24
- package/script/src/api/info/_methods/spotDeployState.js.map +1 -1
- package/script/src/api/info/_methods/spotMeta.d.ts +54 -69
- package/script/src/api/info/_methods/spotMeta.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotMeta.js +54 -25
- package/script/src/api/info/_methods/spotMeta.js.map +1 -1
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts +50 -117
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.js +4 -7
- package/script/src/api/info/_methods/spotMetaAndAssetCtxs.js.map +1 -1
- package/script/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts +10 -24
- package/script/src/api/info/_methods/spotPairDeployAuctionStatus.d.ts.map +1 -1
- package/script/src/api/info/_methods/spotPairDeployAuctionStatus.js +4 -4
- package/script/src/api/info/_methods/spotPairDeployAuctionStatus.js.map +1 -1
- package/script/src/api/info/_methods/subAccounts.d.ts +66 -323
- package/script/src/api/info/_methods/subAccounts.d.ts.map +1 -1
- package/script/src/api/info/_methods/subAccounts.js +11 -11
- package/script/src/api/info/_methods/subAccounts.js.map +1 -1
- package/script/src/api/info/_methods/subAccounts2.d.ts +67 -325
- package/script/src/api/info/_methods/subAccounts2.d.ts.map +1 -1
- package/script/src/api/info/_methods/subAccounts2.js +11 -12
- package/script/src/api/info/_methods/subAccounts2.js.map +1 -1
- package/script/src/api/info/_methods/tokenDetails.d.ts +26 -54
- package/script/src/api/info/_methods/tokenDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/tokenDetails.js +26 -26
- package/script/src/api/info/_methods/tokenDetails.js.map +1 -1
- package/script/src/api/info/_methods/twapHistory.d.ts +25 -76
- package/script/src/api/info/_methods/twapHistory.d.ts.map +1 -1
- package/script/src/api/info/_methods/twapHistory.js +14 -18
- package/script/src/api/info/_methods/twapHistory.js.map +1 -1
- package/script/src/api/info/_methods/txDetails.d.ts +17 -60
- package/script/src/api/info/_methods/txDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/txDetails.js +8 -8
- package/script/src/api/info/_methods/txDetails.js.map +1 -1
- package/script/src/api/info/_methods/userBorrowLendInterest.d.ts +63 -0
- package/script/src/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -0
- package/script/src/api/info/_methods/userBorrowLendInterest.js +109 -0
- package/script/src/api/info/_methods/userBorrowLendInterest.js.map +1 -0
- package/script/src/api/info/_methods/userDetails.d.ts +17 -60
- package/script/src/api/info/_methods/userDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/userDetails.js +8 -8
- package/script/src/api/info/_methods/userDetails.js.map +1 -1
- package/script/src/api/info/_methods/userDexAbstraction.d.ts +5 -8
- package/script/src/api/info/_methods/userDexAbstraction.d.ts.map +1 -1
- package/script/src/api/info/_methods/userDexAbstraction.js +5 -5
- package/script/src/api/info/_methods/userDexAbstraction.js.map +1 -1
- package/script/src/api/info/_methods/userFees.d.ts +52 -160
- package/script/src/api/info/_methods/userFees.d.ts.map +1 -1
- package/script/src/api/info/_methods/userFees.js +52 -59
- package/script/src/api/info/_methods/userFees.js.map +1 -1
- package/script/src/api/info/_methods/userFills.d.ts +30 -76
- package/script/src/api/info/_methods/userFills.d.ts.map +1 -1
- package/script/src/api/info/_methods/userFills.js +13 -13
- package/script/src/api/info/_methods/userFills.js.map +1 -1
- package/script/src/api/info/_methods/userFillsByTime.d.ts +32 -103
- package/script/src/api/info/_methods/userFillsByTime.d.ts.map +1 -1
- package/script/src/api/info/_methods/userFillsByTime.js +8 -8
- package/script/src/api/info/_methods/userFillsByTime.js.map +1 -1
- package/script/src/api/info/_methods/userFunding.d.ts +18 -41
- package/script/src/api/info/_methods/userFunding.d.ts.map +1 -1
- package/script/src/api/info/_methods/userFunding.js +18 -18
- package/script/src/api/info/_methods/userFunding.js.map +1 -1
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts +115 -282
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.js +121 -88
- package/script/src/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/script/src/api/info/_methods/userRateLimit.d.ts +10 -18
- package/script/src/api/info/_methods/userRateLimit.d.ts.map +1 -1
- package/script/src/api/info/_methods/userRateLimit.js +10 -10
- package/script/src/api/info/_methods/userRateLimit.js.map +1 -1
- package/script/src/api/info/_methods/userRole.d.ts +15 -34
- package/script/src/api/info/_methods/userRole.d.ts.map +1 -1
- package/script/src/api/info/_methods/userRole.js +15 -15
- package/script/src/api/info/_methods/userRole.js.map +1 -1
- package/script/src/api/info/_methods/userToMultiSigSigners.d.ts +8 -14
- package/script/src/api/info/_methods/userToMultiSigSigners.d.ts.map +1 -1
- package/script/src/api/info/_methods/userToMultiSigSigners.js +8 -8
- package/script/src/api/info/_methods/userToMultiSigSigners.js.map +1 -1
- package/script/src/api/info/_methods/userTwapSliceFills.d.ts +25 -78
- package/script/src/api/info/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/script/src/api/info/_methods/userTwapSliceFills.js +8 -8
- package/script/src/api/info/_methods/userTwapSliceFills.js.map +1 -1
- package/script/src/api/info/_methods/userTwapSliceFillsByTime.d.ts +28 -103
- package/script/src/api/info/_methods/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/script/src/api/info/_methods/userTwapSliceFillsByTime.js +8 -8
- package/script/src/api/info/_methods/userTwapSliceFillsByTime.js.map +1 -1
- package/script/src/api/info/_methods/userVaultEquities.d.ts +9 -16
- package/script/src/api/info/_methods/userVaultEquities.d.ts.map +1 -1
- package/script/src/api/info/_methods/userVaultEquities.js +9 -9
- package/script/src/api/info/_methods/userVaultEquities.js.map +1 -1
- package/script/src/api/info/_methods/validatorL1Votes.d.ts +9 -23
- package/script/src/api/info/_methods/validatorL1Votes.d.ts.map +1 -1
- package/script/src/api/info/_methods/validatorL1Votes.js +11 -11
- package/script/src/api/info/_methods/validatorL1Votes.js.map +1 -1
- package/script/src/api/info/_methods/validatorSummaries.d.ts +28 -78
- package/script/src/api/info/_methods/validatorSummaries.d.ts.map +1 -1
- package/script/src/api/info/_methods/validatorSummaries.js +22 -22
- package/script/src/api/info/_methods/validatorSummaries.js.map +1 -1
- package/script/src/api/info/_methods/vaultDetails.d.ts +77 -281
- package/script/src/api/info/_methods/vaultDetails.d.ts.map +1 -1
- package/script/src/api/info/_methods/vaultDetails.js +39 -39
- package/script/src/api/info/_methods/vaultDetails.js.map +1 -1
- package/script/src/api/info/_methods/vaultSummaries.d.ts +18 -51
- package/script/src/api/info/_methods/vaultSummaries.d.ts.map +1 -1
- package/script/src/api/info/_methods/vaultSummaries.js +12 -12
- package/script/src/api/info/_methods/vaultSummaries.js.map +1 -1
- package/script/src/api/info/_methods/webData2.d.ts +149 -673
- package/script/src/api/info/_methods/webData2.d.ts.map +1 -1
- package/script/src/api/info/_methods/webData2.js +23 -23
- package/script/src/api/info/_methods/webData2.js.map +1 -1
- package/script/src/api/info/client.d.ts +1581 -67
- package/script/src/api/info/client.d.ts.map +1 -1
- package/script/src/api/info/client.js +1494 -63
- package/script/src/api/info/client.js.map +1 -1
- package/script/src/api/info/mod.d.ts +4 -0
- package/script/src/api/info/mod.d.ts.map +1 -1
- package/script/src/api/info/mod.js +4 -0
- package/script/src/api/info/mod.js.map +1 -1
- package/script/src/api/subscription/_methods/activeAssetCtx.d.ts +19 -58
- package/script/src/api/subscription/_methods/activeAssetCtx.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/activeAssetCtx.js +8 -8
- package/script/src/api/subscription/_methods/activeAssetCtx.js.map +1 -1
- package/script/src/api/subscription/_methods/activeAssetData.d.ts +19 -58
- package/script/src/api/subscription/_methods/activeAssetData.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/activeAssetData.js +6 -6
- package/script/src/api/subscription/_methods/activeAssetData.js.map +1 -1
- package/script/src/api/subscription/_methods/activeSpotAssetCtx.d.ts +17 -50
- package/script/src/api/subscription/_methods/activeSpotAssetCtx.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/activeSpotAssetCtx.js +8 -8
- package/script/src/api/subscription/_methods/activeSpotAssetCtx.js.map +1 -1
- package/script/src/api/subscription/_methods/allDexsAssetCtxs.d.ts +17 -54
- package/script/src/api/subscription/_methods/allDexsAssetCtxs.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/allDexsAssetCtxs.js +6 -9
- package/script/src/api/subscription/_methods/allDexsAssetCtxs.js.map +1 -1
- package/script/src/api/subscription/_methods/allDexsClearinghouseState.d.ts +50 -255
- package/script/src/api/subscription/_methods/allDexsClearinghouseState.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/allDexsClearinghouseState.js +8 -11
- package/script/src/api/subscription/_methods/allDexsClearinghouseState.js.map +1 -1
- package/script/src/api/subscription/_methods/allMids.d.ts +8 -20
- package/script/src/api/subscription/_methods/allMids.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/allMids.js +8 -8
- package/script/src/api/subscription/_methods/allMids.js.map +1 -1
- package/script/src/api/subscription/_methods/assetCtxs.d.ts +19 -58
- package/script/src/api/subscription/_methods/assetCtxs.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/assetCtxs.js +8 -8
- package/script/src/api/subscription/_methods/assetCtxs.js.map +1 -1
- package/script/src/api/subscription/_methods/bbo.d.ts +17 -48
- package/script/src/api/subscription/_methods/bbo.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/bbo.js +14 -14
- package/script/src/api/subscription/_methods/bbo.js.map +1 -1
- package/script/src/api/subscription/_methods/candle.d.ts +17 -32
- package/script/src/api/subscription/_methods/candle.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/candle.js +17 -17
- package/script/src/api/subscription/_methods/candle.js.map +1 -1
- package/script/src/api/subscription/_methods/clearinghouseState.d.ts +52 -259
- package/script/src/api/subscription/_methods/clearinghouseState.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/clearinghouseState.js +10 -10
- package/script/src/api/subscription/_methods/clearinghouseState.js.map +1 -1
- package/script/src/api/subscription/_methods/explorerBlock.d.ts +10 -18
- package/script/src/api/subscription/_methods/explorerBlock.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/explorerBlock.js +10 -10
- package/script/src/api/subscription/_methods/explorerBlock.js.map +1 -1
- package/script/src/api/subscription/_methods/explorerTxs.d.ts +13 -41
- package/script/src/api/subscription/_methods/explorerTxs.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/explorerTxs.js +4 -4
- package/script/src/api/subscription/_methods/explorerTxs.js.map +1 -1
- package/script/src/api/subscription/_methods/l2Book.d.ts +21 -52
- package/script/src/api/subscription/_methods/l2Book.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/l2Book.js +18 -16
- package/script/src/api/subscription/_methods/l2Book.js.map +1 -1
- package/script/src/api/subscription/_methods/notification.d.ts +7 -12
- package/script/src/api/subscription/_methods/notification.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/notification.js +7 -7
- package/script/src/api/subscription/_methods/notification.js.map +1 -1
- package/script/src/api/subscription/_methods/openOrders.d.ts +27 -103
- package/script/src/api/subscription/_methods/openOrders.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/openOrders.js +10 -10
- package/script/src/api/subscription/_methods/openOrders.js.map +1 -1
- package/script/src/api/subscription/_methods/orderUpdates.d.ts +19 -56
- package/script/src/api/subscription/_methods/orderUpdates.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/orderUpdates.js +9 -38
- package/script/src/api/subscription/_methods/orderUpdates.js.map +1 -1
- package/script/src/api/subscription/_methods/spotAssetCtxs.d.ts +13 -33
- package/script/src/api/subscription/_methods/spotAssetCtxs.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/spotAssetCtxs.js +4 -4
- package/script/src/api/subscription/_methods/spotAssetCtxs.js.map +1 -1
- package/script/src/api/subscription/_methods/spotState.d.ts +22 -78
- package/script/src/api/subscription/_methods/spotState.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/spotState.js +9 -9
- package/script/src/api/subscription/_methods/spotState.js.map +1 -1
- package/script/src/api/subscription/_methods/trades.d.ts +14 -35
- package/script/src/api/subscription/_methods/trades.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/trades.js +5 -5
- package/script/src/api/subscription/_methods/trades.js.map +1 -1
- package/script/src/api/subscription/_methods/twapStates.d.ts +21 -62
- package/script/src/api/subscription/_methods/twapStates.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/twapStates.js +10 -10
- package/script/src/api/subscription/_methods/twapStates.js.map +1 -1
- package/script/src/api/subscription/_methods/userEvents.d.ts +91 -402
- package/script/src/api/subscription/_methods/userEvents.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userEvents.js +27 -27
- package/script/src/api/subscription/_methods/userEvents.js.map +1 -1
- package/script/src/api/subscription/_methods/userFills.d.ts +34 -130
- package/script/src/api/subscription/_methods/userFills.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userFills.js +10 -10
- package/script/src/api/subscription/_methods/userFills.js.map +1 -1
- package/script/src/api/subscription/_methods/userFundings.d.ts +16 -37
- package/script/src/api/subscription/_methods/userFundings.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userFundings.js +16 -16
- package/script/src/api/subscription/_methods/userFundings.js.map +1 -1
- package/script/src/api/subscription/_methods/userHistoricalOrders.d.ts +30 -134
- package/script/src/api/subscription/_methods/userHistoricalOrders.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userHistoricalOrders.js +9 -9
- package/script/src/api/subscription/_methods/userHistoricalOrders.js.map +1 -1
- package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts +105 -476
- package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.js +9 -9
- package/script/src/api/subscription/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/script/src/api/subscription/_methods/userTwapHistory.d.ts +29 -126
- package/script/src/api/subscription/_methods/userTwapHistory.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userTwapHistory.js +9 -9
- package/script/src/api/subscription/_methods/userTwapHistory.js.map +1 -1
- package/script/src/api/subscription/_methods/userTwapSliceFills.d.ts +29 -124
- package/script/src/api/subscription/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/userTwapSliceFills.js +9 -9
- package/script/src/api/subscription/_methods/userTwapSliceFills.js.map +1 -1
- package/script/src/api/subscription/_methods/webData2.d.ts +149 -818
- package/script/src/api/subscription/_methods/webData2.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/webData2.js +5 -5
- package/script/src/api/subscription/_methods/webData2.js.map +1 -1
- package/script/src/api/subscription/_methods/webData3.d.ts +25 -71
- package/script/src/api/subscription/_methods/webData3.d.ts.map +1 -1
- package/script/src/api/subscription/_methods/webData3.js +22 -22
- package/script/src/api/subscription/_methods/webData3.js.map +1 -1
- package/script/src/api/subscription/client.d.ts +664 -29
- package/script/src/api/subscription/client.d.ts.map +1 -1
- package/script/src/api/subscription/client.js +618 -27
- package/script/src/api/subscription/client.js.map +1 -1
- package/script/src/signing/_abstractWallet.d.ts +33 -66
- package/script/src/signing/_abstractWallet.d.ts.map +1 -1
- package/script/src/signing/_abstractWallet.js +39 -63
- package/script/src/signing/_abstractWallet.js.map +1 -1
- package/script/src/signing/_privateKeySigner.d.ts.map +1 -1
- package/script/src/signing/_privateKeySigner.js +2 -7
- package/script/src/signing/_privateKeySigner.js.map +1 -1
- package/script/src/signing/mod.d.ts.map +1 -1
- package/script/src/signing/mod.js +11 -10
- package/script/src/signing/mod.js.map +1 -1
- package/src/bin/_utils.ts +33 -1
- package/src/bin/cli.ts +295 -255
- package/src/deps/jsr.io/@std/async/{1.0.16 → 1.1.1}/unstable_semaphore.ts +4 -3
- package/src/src/api/_schemas.ts +10 -1
- package/src/src/api/exchange/_methods/_base/_semaphore.ts +1 -1
- package/src/src/api/exchange/_methods/_base/commonSchemas.ts +23 -61
- package/src/src/api/exchange/_methods/agentEnableDexAbstraction.ts +15 -34
- package/src/src/api/exchange/_methods/agentSetAbstraction.ts +109 -0
- package/src/src/api/exchange/_methods/approveAgent.ts +46 -59
- package/src/src/api/exchange/_methods/approveBuilderFee.ts +20 -53
- package/src/src/api/exchange/_methods/batchModify.ts +66 -143
- package/src/src/api/exchange/_methods/borrowLend.ts +100 -0
- package/src/src/api/exchange/_methods/cDeposit.ts +18 -49
- package/src/src/api/exchange/_methods/cSignerAction.ts +24 -54
- package/src/src/api/exchange/_methods/cValidatorAction.ts +72 -164
- package/src/src/api/exchange/_methods/cWithdraw.ts +18 -49
- package/src/src/api/exchange/_methods/cancel.ts +39 -90
- package/src/src/api/exchange/_methods/cancelByCloid.ts +21 -54
- package/src/src/api/exchange/_methods/claimRewards.ts +13 -34
- package/src/src/api/exchange/_methods/convertToMultiSigUser.ts +41 -85
- package/src/src/api/exchange/_methods/createSubAccount.ts +27 -65
- package/src/src/api/exchange/_methods/createVault.ts +32 -82
- package/src/src/api/exchange/_methods/evmUserModify.ts +15 -39
- package/src/src/api/exchange/_methods/linkStakingUser.ts +28 -69
- package/src/src/api/exchange/_methods/modify.ts +62 -134
- package/src/src/api/exchange/_methods/noop.ts +13 -34
- package/src/src/api/exchange/_methods/order.ts +116 -240
- package/src/src/api/exchange/_methods/perpDeploy.ts +178 -439
- package/src/src/api/exchange/_methods/registerReferrer.ts +15 -41
- package/src/src/api/exchange/_methods/reserveRequestWeight.ts +15 -40
- package/src/src/api/exchange/_methods/scheduleCancel.ts +22 -53
- package/src/src/api/exchange/_methods/sendAsset.ts +30 -75
- package/src/src/api/exchange/_methods/setDisplayName.ts +18 -46
- package/src/src/api/exchange/_methods/setReferrer.ts +15 -41
- package/src/src/api/exchange/_methods/spotDeploy.ts +114 -273
- package/src/src/api/exchange/_methods/spotSend.ts +22 -58
- package/src/src/api/exchange/_methods/spotUser.ts +18 -45
- package/src/src/api/exchange/_methods/subAccountModify.ts +17 -46
- package/src/src/api/exchange/_methods/subAccountSpotTransfer.ts +21 -54
- package/src/src/api/exchange/_methods/subAccountTransfer.ts +19 -50
- package/src/src/api/exchange/_methods/tokenDelegate.ts +22 -59
- package/src/src/api/exchange/_methods/twapCancel.ts +37 -85
- package/src/src/api/exchange/_methods/twapOrder.ts +53 -124
- package/src/src/api/exchange/_methods/updateIsolatedMargin.ts +21 -54
- package/src/src/api/exchange/_methods/updateLeverage.ts +21 -55
- package/src/src/api/exchange/_methods/usdClassTransfer.ts +20 -53
- package/src/src/api/exchange/_methods/usdSend.ts +20 -53
- package/src/src/api/exchange/_methods/userDexAbstraction.ts +22 -53
- package/src/src/api/exchange/_methods/userPortfolioMargin.ts +123 -0
- package/src/src/api/exchange/_methods/userSetAbstraction.ts +123 -0
- package/src/src/api/exchange/_methods/validatorL1Stream.ts +15 -39
- package/src/src/api/exchange/_methods/vaultDistribute.ts +20 -50
- package/src/src/api/exchange/_methods/vaultModify.ts +19 -49
- package/src/src/api/exchange/_methods/vaultTransfer.ts +19 -50
- package/src/src/api/exchange/_methods/withdraw3.ts +20 -53
- package/src/src/api/exchange/client.ts +1350 -53
- package/src/src/api/exchange/mod.ts +4 -0
- package/src/src/api/info/_methods/_base/commonSchemas.ts +242 -550
- package/src/src/api/info/_methods/activeAssetData.ts +38 -88
- package/src/src/api/info/_methods/alignedQuoteTokenInfo.ts +22 -49
- package/src/src/api/info/_methods/allBorrowLendReserveStates.ts +68 -0
- package/src/src/api/info/_methods/allMids.ts +7 -19
- package/src/src/api/info/_methods/allPerpMetas.ts +5 -14
- package/src/src/api/info/_methods/blockDetails.ts +24 -61
- package/src/src/api/info/_methods/borrowLendReserveState.ts +95 -0
- package/src/src/api/info/_methods/borrowLendUserState.ts +105 -0
- package/src/src/api/info/_methods/candleSnapshot.ts +37 -91
- package/src/src/api/info/_methods/clearinghouseState.ts +91 -214
- package/src/src/api/info/_methods/delegations.ts +15 -36
- package/src/src/api/info/_methods/delegatorHistory.ts +43 -92
- package/src/src/api/info/_methods/delegatorRewards.ts +15 -36
- package/src/src/api/info/_methods/delegatorSummary.ts +16 -40
- package/src/src/api/info/_methods/exchangeStatus.ts +10 -25
- package/src/src/api/info/_methods/extraAgents.ts +15 -37
- package/src/src/api/info/_methods/frontendOpenOrders.ts +9 -24
- package/src/src/api/info/_methods/fundingHistory.ts +21 -51
- package/src/src/api/info/_methods/gossipRootIps.ts +5 -14
- package/src/src/api/info/_methods/historicalOrders.ts +46 -98
- package/src/src/api/info/_methods/isVip.ts +7 -19
- package/src/src/api/info/_methods/l2Book.ts +29 -66
- package/src/src/api/info/_methods/leadingVaults.ts +13 -31
- package/src/src/api/info/_methods/legalCheck.ts +14 -35
- package/src/src/api/info/_methods/liquidatable.ts +5 -14
- package/src/src/api/info/_methods/marginTable.ts +19 -44
- package/src/src/api/info/_methods/maxBuilderFee.ts +9 -24
- package/src/src/api/info/_methods/maxMarketOrderNtls.ts +6 -17
- package/src/src/api/info/_methods/meta.ts +35 -89
- package/src/src/api/info/_methods/metaAndAssetCtxs.ts +7 -22
- package/src/src/api/info/_methods/openOrders.ts +9 -24
- package/src/src/api/info/_methods/orderStatus.ts +57 -125
- package/src/src/api/info/_methods/perpDeployAuctionStatus.ts +16 -40
- package/src/src/api/info/_methods/perpDexLimits.ts +17 -41
- package/src/src/api/info/_methods/perpDexStatus.ts +10 -25
- package/src/src/api/info/_methods/perpDexs.ts +31 -76
- package/src/src/api/info/_methods/perpsAtOpenInterestCap.ts +7 -19
- package/src/src/api/info/_methods/portfolio.ts +24 -49
- package/src/src/api/info/_methods/preTransferCheck.ts +18 -45
- package/src/src/api/info/_methods/predictedFundings.ts +27 -45
- package/src/src/api/info/_methods/recentTrades.ts +25 -62
- package/src/src/api/info/_methods/referral.ts +106 -234
- package/src/src/api/info/_methods/spotClearinghouseState.ts +37 -82
- package/src/src/api/info/_methods/spotDeployState.ts +44 -104
- package/src/src/api/info/_methods/spotMeta.ts +78 -103
- package/src/src/api/info/_methods/spotMetaAndAssetCtxs.ts +5 -17
- package/src/src/api/info/_methods/spotPairDeployAuctionStatus.ts +5 -14
- package/src/src/api/info/_methods/subAccounts.ts +20 -48
- package/src/src/api/info/_methods/subAccounts2.ts +23 -50
- package/src/src/api/info/_methods/tokenDetails.ts +49 -119
- package/src/src/api/info/_methods/twapHistory.ts +34 -73
- package/src/src/api/info/_methods/txDetails.ts +12 -31
- package/src/src/api/info/_methods/userBorrowLendInterest.ts +93 -0
- package/src/src/api/info/_methods/userDetails.ts +12 -30
- package/src/src/api/info/_methods/userDexAbstraction.ts +7 -19
- package/src/src/api/info/_methods/userFees.ts +103 -243
- package/src/src/api/info/_methods/userFills.ts +27 -57
- package/src/src/api/info/_methods/userFillsByTime.ts +13 -34
- package/src/src/api/info/_methods/userFunding.ts +31 -77
- package/src/src/api/info/_methods/userNonFundingLedgerUpdates.ts +249 -469
- package/src/src/api/info/_methods/userRateLimit.ts +16 -40
- package/src/src/api/info/_methods/userRole.ts +28 -61
- package/src/src/api/info/_methods/userToMultiSigSigners.ts +13 -33
- package/src/src/api/info/_methods/userTwapSliceFills.ts +13 -31
- package/src/src/api/info/_methods/userTwapSliceFillsByTime.ts +13 -34
- package/src/src/api/info/_methods/userVaultEquities.ts +15 -36
- package/src/src/api/info/_methods/validatorL1Votes.ts +22 -40
- package/src/src/api/info/_methods/validatorSummaries.ts +41 -96
- package/src/src/api/info/_methods/vaultDetails.ts +76 -181
- package/src/src/api/info/_methods/vaultSummaries.ts +21 -51
- package/src/src/api/info/_methods/webData2.ts +42 -105
- package/src/src/api/info/client.ts +1637 -79
- package/src/src/api/info/mod.ts +4 -0
- package/src/src/api/subscription/_methods/activeAssetCtx.ts +12 -30
- package/src/src/api/subscription/_methods/activeAssetData.ts +9 -24
- package/src/src/api/subscription/_methods/activeSpotAssetCtx.ts +12 -30
- package/src/src/api/subscription/_methods/allDexsAssetCtxs.ts +8 -25
- package/src/src/api/subscription/_methods/allDexsClearinghouseState.ts +12 -35
- package/src/src/api/subscription/_methods/allMids.ts +12 -30
- package/src/src/api/subscription/_methods/assetCtxs.ts +12 -30
- package/src/src/api/subscription/_methods/bbo.ts +22 -55
- package/src/src/api/subscription/_methods/candle.ts +30 -75
- package/src/src/api/subscription/_methods/clearinghouseState.ts +16 -40
- package/src/src/api/subscription/_methods/explorerBlock.ts +17 -42
- package/src/src/api/subscription/_methods/explorerTxs.ts +5 -14
- package/src/src/api/subscription/_methods/l2Book.ts +28 -65
- package/src/src/api/subscription/_methods/notification.ts +10 -25
- package/src/src/api/subscription/_methods/openOrders.ts +16 -40
- package/src/src/api/subscription/_methods/orderUpdates.ts +46 -98
- package/src/src/api/subscription/_methods/spotAssetCtxs.ts +5 -14
- package/src/src/api/subscription/_methods/spotState.ts +14 -35
- package/src/src/api/subscription/_methods/trades.ts +7 -19
- package/src/src/api/subscription/_methods/twapStates.ts +16 -40
- package/src/src/api/subscription/_methods/userEvents.ts +66 -132
- package/src/src/api/subscription/_methods/userFills.ts +16 -40
- package/src/src/api/subscription/_methods/userFundings.ts +29 -68
- package/src/src/api/subscription/_methods/userHistoricalOrders.ts +14 -35
- package/src/src/api/subscription/_methods/userNonFundingLedgerUpdates.ts +14 -35
- package/src/src/api/subscription/_methods/userTwapHistory.ts +14 -35
- package/src/src/api/subscription/_methods/userTwapSliceFills.ts +14 -35
- package/src/src/api/subscription/_methods/webData2.ts +7 -19
- package/src/src/api/subscription/_methods/webData3.ts +39 -93
- package/src/src/api/subscription/client.ts +664 -29
- package/src/src/signing/_abstractWallet.ts +82 -136
- package/src/src/signing/_privateKeySigner.ts +2 -11
- package/src/src/signing/mod.ts +12 -10
- package/esm/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.js.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/async/1.0.16/unstable_semaphore.js.map +0 -1
|
@@ -9,6 +9,12 @@ import {
|
|
|
9
9
|
type AgentEnableDexAbstractionOptions,
|
|
10
10
|
type AgentEnableDexAbstractionSuccessResponse,
|
|
11
11
|
} from "./_methods/agentEnableDexAbstraction.js";
|
|
12
|
+
import {
|
|
13
|
+
agentSetAbstraction,
|
|
14
|
+
type AgentSetAbstractionOptions,
|
|
15
|
+
type AgentSetAbstractionParameters,
|
|
16
|
+
type AgentSetAbstractionSuccessResponse,
|
|
17
|
+
} from "./_methods/agentSetAbstraction.js";
|
|
12
18
|
import {
|
|
13
19
|
approveAgent,
|
|
14
20
|
type ApproveAgentOptions,
|
|
@@ -27,6 +33,12 @@ import {
|
|
|
27
33
|
type BatchModifyParameters,
|
|
28
34
|
type BatchModifySuccessResponse,
|
|
29
35
|
} from "./_methods/batchModify.js";
|
|
36
|
+
import {
|
|
37
|
+
borrowLend,
|
|
38
|
+
type BorrowLendOptions,
|
|
39
|
+
type BorrowLendParameters,
|
|
40
|
+
type BorrowLendSuccessResponse,
|
|
41
|
+
} from "./_methods/borrowLend.js";
|
|
30
42
|
import { cancel, type CancelOptions, type CancelParameters, type CancelSuccessResponse } from "./_methods/cancel.js";
|
|
31
43
|
import {
|
|
32
44
|
cancelByCloid,
|
|
@@ -218,6 +230,18 @@ import {
|
|
|
218
230
|
type UserDexAbstractionParameters,
|
|
219
231
|
type UserDexAbstractionSuccessResponse,
|
|
220
232
|
} from "./_methods/userDexAbstraction.js";
|
|
233
|
+
import {
|
|
234
|
+
userSetAbstraction,
|
|
235
|
+
type UserSetAbstractionOptions,
|
|
236
|
+
type UserSetAbstractionParameters,
|
|
237
|
+
type UserSetAbstractionSuccessResponse,
|
|
238
|
+
} from "./_methods/userSetAbstraction.js";
|
|
239
|
+
import {
|
|
240
|
+
userPortfolioMargin,
|
|
241
|
+
type UserPortfolioMarginOptions,
|
|
242
|
+
type UserPortfolioMarginParameters,
|
|
243
|
+
type UserPortfolioMarginSuccessResponse,
|
|
244
|
+
} from "./_methods/userPortfolioMargin.js";
|
|
221
245
|
import {
|
|
222
246
|
validatorL1Stream,
|
|
223
247
|
type ValidatorL1StreamOptions,
|
|
@@ -309,14 +333,99 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
309
333
|
this.config_ = config;
|
|
310
334
|
}
|
|
311
335
|
|
|
312
|
-
/**
|
|
336
|
+
/**
|
|
337
|
+
* Enable HIP-3 DEX abstraction.
|
|
338
|
+
*
|
|
339
|
+
* @deprecated Use {@link agentSetAbstraction} instead.
|
|
340
|
+
*
|
|
341
|
+
* @param params - Parameters specific to the API request.
|
|
342
|
+
* @param opts - Request execution options.
|
|
343
|
+
*
|
|
344
|
+
* @returns Successful response without specific data.
|
|
345
|
+
*
|
|
346
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
347
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
348
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
349
|
+
*
|
|
350
|
+
* @example
|
|
351
|
+
* ```ts
|
|
352
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
353
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
354
|
+
*
|
|
355
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
356
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
357
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
358
|
+
*
|
|
359
|
+
* await client.agentEnableDexAbstraction();
|
|
360
|
+
* ```
|
|
361
|
+
*
|
|
362
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#enable-hip-3-dex-abstraction-agent
|
|
363
|
+
*/
|
|
313
364
|
agentEnableDexAbstraction(
|
|
314
365
|
opts?: AgentEnableDexAbstractionOptions,
|
|
315
366
|
): Promise<AgentEnableDexAbstractionSuccessResponse> {
|
|
316
367
|
return agentEnableDexAbstraction(this.config_, opts);
|
|
317
368
|
}
|
|
318
369
|
|
|
319
|
-
/**
|
|
370
|
+
/**
|
|
371
|
+
* Set User abstraction mode (method for agent wallet).
|
|
372
|
+
*
|
|
373
|
+
* @param params - Parameters specific to the API request.
|
|
374
|
+
* @param opts - Request execution options.
|
|
375
|
+
*
|
|
376
|
+
* @returns Successful response without specific data.
|
|
377
|
+
*
|
|
378
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
379
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
380
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
381
|
+
*
|
|
382
|
+
* @example
|
|
383
|
+
* ```ts
|
|
384
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
385
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
386
|
+
*
|
|
387
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
388
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
389
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
390
|
+
*
|
|
391
|
+
* await client.agentSetAbstraction({ abstraction: "u" });
|
|
392
|
+
* ```
|
|
393
|
+
*
|
|
394
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#set-user-abstraction-agent
|
|
395
|
+
*/
|
|
396
|
+
agentSetAbstraction(
|
|
397
|
+
params: AgentSetAbstractionParameters,
|
|
398
|
+
opts?: AgentSetAbstractionOptions,
|
|
399
|
+
): Promise<AgentSetAbstractionSuccessResponse> {
|
|
400
|
+
return agentSetAbstraction(this.config_, params, opts);
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Approve an agent to sign on behalf of the master account.
|
|
405
|
+
*
|
|
406
|
+
* @param params - Parameters specific to the API request.
|
|
407
|
+
* @param opts - Request execution options.
|
|
408
|
+
*
|
|
409
|
+
* @returns Successful response without specific data.
|
|
410
|
+
*
|
|
411
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
412
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
413
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
414
|
+
*
|
|
415
|
+
* @example
|
|
416
|
+
* ```ts
|
|
417
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
418
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
419
|
+
*
|
|
420
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
421
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
422
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
423
|
+
*
|
|
424
|
+
* await client.approveAgent({ agentAddress: "0x...", agentName: "myAgent" });
|
|
425
|
+
* ```
|
|
426
|
+
*
|
|
427
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#approve-an-api-wallet
|
|
428
|
+
*/
|
|
320
429
|
approveAgent(
|
|
321
430
|
params: ApproveAgentParameters,
|
|
322
431
|
opts?: ApproveAgentOptions,
|
|
@@ -324,7 +433,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
324
433
|
return approveAgent(this.config_, params, opts);
|
|
325
434
|
}
|
|
326
435
|
|
|
327
|
-
/**
|
|
436
|
+
/**
|
|
437
|
+
* Approve a maximum fee rate for a builder.
|
|
438
|
+
*
|
|
439
|
+
* @param params - Parameters specific to the API request.
|
|
440
|
+
* @param opts - Request execution options.
|
|
441
|
+
*
|
|
442
|
+
* @returns Successful response without specific data.
|
|
443
|
+
*
|
|
444
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
445
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
446
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
447
|
+
*
|
|
448
|
+
* @example
|
|
449
|
+
* ```ts
|
|
450
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
451
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
452
|
+
*
|
|
453
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
454
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
455
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
456
|
+
*
|
|
457
|
+
* await client.approveBuilderFee({ maxFeeRate: "0.01%", builder: "0x..." });
|
|
458
|
+
* ```
|
|
459
|
+
*
|
|
460
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#approve-a-builder-fee
|
|
461
|
+
*/
|
|
328
462
|
approveBuilderFee(
|
|
329
463
|
params: ApproveBuilderFeeParameters,
|
|
330
464
|
opts?: ApproveBuilderFeeOptions,
|
|
@@ -332,7 +466,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
332
466
|
return approveBuilderFee(this.config_, params, opts);
|
|
333
467
|
}
|
|
334
468
|
|
|
335
|
-
/**
|
|
469
|
+
/**
|
|
470
|
+
* Modify multiple orders.
|
|
471
|
+
*
|
|
472
|
+
* @param params - Parameters specific to the API request.
|
|
473
|
+
* @param opts - Request execution options.
|
|
474
|
+
*
|
|
475
|
+
* @returns Successful variant of {@link OrderResponse} without error statuses.
|
|
476
|
+
*
|
|
477
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
478
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
479
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
480
|
+
*
|
|
481
|
+
* @example
|
|
482
|
+
* ```ts
|
|
483
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
484
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
485
|
+
*
|
|
486
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
487
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
488
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
489
|
+
*
|
|
490
|
+
* const data = await client.batchModify({ modifies: [ { oid: 123, order: { a: 0, b: true, p: "31000", s: "0.2", r: false, t: { limit: { tif: "Gtc" } } } }, ] });
|
|
491
|
+
* ```
|
|
492
|
+
*
|
|
493
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-multiple-orders
|
|
494
|
+
*/
|
|
336
495
|
batchModify(
|
|
337
496
|
params: BatchModifyParameters,
|
|
338
497
|
opts?: BatchModifyOptions,
|
|
@@ -340,7 +499,63 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
340
499
|
return batchModify(this.config_, params, opts);
|
|
341
500
|
}
|
|
342
501
|
|
|
343
|
-
/**
|
|
502
|
+
/**
|
|
503
|
+
* Borrow or lend assets.
|
|
504
|
+
*
|
|
505
|
+
* @param params - Parameters specific to the API request.
|
|
506
|
+
* @param opts - Request execution options.
|
|
507
|
+
*
|
|
508
|
+
* @returns Successful response without specific data.
|
|
509
|
+
*
|
|
510
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
511
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
512
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
513
|
+
*
|
|
514
|
+
* @example
|
|
515
|
+
* ```ts
|
|
516
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
517
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
518
|
+
*
|
|
519
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
520
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
521
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
522
|
+
*
|
|
523
|
+
* const data = await client.borrowLend({ operation: "supply", token: 0, amount: "20" });
|
|
524
|
+
* ```
|
|
525
|
+
*/
|
|
526
|
+
borrowLend(
|
|
527
|
+
params: BorrowLendParameters,
|
|
528
|
+
opts?: BorrowLendOptions,
|
|
529
|
+
): Promise<BorrowLendSuccessResponse> {
|
|
530
|
+
return borrowLend(this.config_, params, opts);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Cancel order(s).
|
|
535
|
+
*
|
|
536
|
+
* @param params - Parameters specific to the API request.
|
|
537
|
+
* @param opts - Request execution options.
|
|
538
|
+
*
|
|
539
|
+
* @returns Successful variant of {@link CancelResponse} without error statuses.
|
|
540
|
+
*
|
|
541
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
542
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
543
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
544
|
+
*
|
|
545
|
+
* @example
|
|
546
|
+
* ```ts
|
|
547
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
548
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
549
|
+
*
|
|
550
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
551
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
552
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
553
|
+
*
|
|
554
|
+
* const data = await client.cancel({ cancels: [ { a: 0, o: 123 }, ] });
|
|
555
|
+
* ```
|
|
556
|
+
*
|
|
557
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-order-s
|
|
558
|
+
*/
|
|
344
559
|
cancel(
|
|
345
560
|
params: CancelParameters,
|
|
346
561
|
opts?: CancelOptions,
|
|
@@ -348,7 +563,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
348
563
|
return cancel(this.config_, params, opts);
|
|
349
564
|
}
|
|
350
565
|
|
|
351
|
-
/**
|
|
566
|
+
/**
|
|
567
|
+
* Cancel order(s) by cloid.
|
|
568
|
+
*
|
|
569
|
+
* @param params - Parameters specific to the API request.
|
|
570
|
+
* @param opts - Request execution options.
|
|
571
|
+
*
|
|
572
|
+
* @returns Successful variant of {@link CancelResponse} without error statuses.
|
|
573
|
+
*
|
|
574
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
575
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
576
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
577
|
+
*
|
|
578
|
+
* @example
|
|
579
|
+
* ```ts
|
|
580
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
581
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
582
|
+
*
|
|
583
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
584
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
585
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
586
|
+
*
|
|
587
|
+
* const data = await client.cancelByCloid({ cancels: [ { asset: 0, cloid: "0x..." }, ] });
|
|
588
|
+
* ```
|
|
589
|
+
*
|
|
590
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-order-s-by-cloid
|
|
591
|
+
*/
|
|
352
592
|
cancelByCloid(
|
|
353
593
|
params: CancelByCloidParameters,
|
|
354
594
|
opts?: CancelByCloidOptions,
|
|
@@ -356,7 +596,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
356
596
|
return cancelByCloid(this.config_, params, opts);
|
|
357
597
|
}
|
|
358
598
|
|
|
359
|
-
/**
|
|
599
|
+
/**
|
|
600
|
+
* Transfer native token from the user spot account into staking for delegating to validators.
|
|
601
|
+
*
|
|
602
|
+
* @param params - Parameters specific to the API request.
|
|
603
|
+
* @param opts - Request execution options.
|
|
604
|
+
*
|
|
605
|
+
* @returns Successful response without specific data.
|
|
606
|
+
*
|
|
607
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
608
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
609
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
610
|
+
*
|
|
611
|
+
* @example
|
|
612
|
+
* ```ts
|
|
613
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
614
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
615
|
+
*
|
|
616
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
617
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
618
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
619
|
+
*
|
|
620
|
+
* await client.cDeposit({ wei: 1 * 1e8 });
|
|
621
|
+
* ```
|
|
622
|
+
*
|
|
623
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#deposit-into-staking
|
|
624
|
+
*/
|
|
360
625
|
cDeposit(
|
|
361
626
|
params: CDepositParameters,
|
|
362
627
|
opts?: CDepositOptions,
|
|
@@ -364,14 +629,73 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
364
629
|
return cDeposit(this.config_, params, opts);
|
|
365
630
|
}
|
|
366
631
|
|
|
367
|
-
/**
|
|
632
|
+
/**
|
|
633
|
+
* Claim rewards from referral program.
|
|
634
|
+
*
|
|
635
|
+
* @param opts - Request execution options.
|
|
636
|
+
*
|
|
637
|
+
* @returns Successful response without specific data.
|
|
638
|
+
*
|
|
639
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
640
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
641
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
642
|
+
*
|
|
643
|
+
* @example
|
|
644
|
+
* ```ts
|
|
645
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
646
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
647
|
+
*
|
|
648
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
649
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
650
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
651
|
+
*
|
|
652
|
+
* await client.claimRewards();
|
|
653
|
+
* ```
|
|
654
|
+
*/
|
|
368
655
|
claimRewards(
|
|
369
656
|
opts?: ClaimRewardsOptions,
|
|
370
657
|
): Promise<ClaimRewardsSuccessResponse> {
|
|
371
658
|
return claimRewards(this.config_, opts);
|
|
372
659
|
}
|
|
373
660
|
|
|
374
|
-
/**
|
|
661
|
+
/**
|
|
662
|
+
* Convert a single-signature account to a multi-signature account or vice versa.
|
|
663
|
+
*
|
|
664
|
+
* @param params - Parameters specific to the API request.
|
|
665
|
+
* @param opts - Request execution options.
|
|
666
|
+
*
|
|
667
|
+
* @returns Successful response without specific data.
|
|
668
|
+
*
|
|
669
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
670
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
671
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
672
|
+
*
|
|
673
|
+
* @example
|
|
674
|
+
* ```ts
|
|
675
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
676
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
677
|
+
*
|
|
678
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
679
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
680
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
681
|
+
*
|
|
682
|
+
* await client.convertToMultiSigUser({ signers: { authorizedUsers: ["0x...", "0x...", "0x..."], threshold: 2 } });
|
|
683
|
+
* ```
|
|
684
|
+
*
|
|
685
|
+
* @example
|
|
686
|
+
* ```ts
|
|
687
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
688
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
689
|
+
*
|
|
690
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
691
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
692
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
693
|
+
*
|
|
694
|
+
* await client.convertToMultiSigUser({ signers: null });
|
|
695
|
+
* ```
|
|
696
|
+
*
|
|
697
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/hypercore/multi-sig
|
|
698
|
+
*/
|
|
375
699
|
convertToMultiSigUser(
|
|
376
700
|
params: ConvertToMultiSigUserParameters,
|
|
377
701
|
opts?: ConvertToMultiSigUserOptions,
|
|
@@ -379,7 +703,30 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
379
703
|
return convertToMultiSigUser(this.config_, params, opts);
|
|
380
704
|
}
|
|
381
705
|
|
|
382
|
-
/**
|
|
706
|
+
/**
|
|
707
|
+
* Create a sub-account.
|
|
708
|
+
*
|
|
709
|
+
* @param params - Parameters specific to the API request.
|
|
710
|
+
* @param opts - Request execution options.
|
|
711
|
+
*
|
|
712
|
+
* @returns Response for creating a sub-account.
|
|
713
|
+
*
|
|
714
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
715
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
716
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
717
|
+
*
|
|
718
|
+
* @example
|
|
719
|
+
* ```ts
|
|
720
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
721
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
722
|
+
*
|
|
723
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
724
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
725
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
726
|
+
*
|
|
727
|
+
* const data = await client.createSubAccount({ name: "..." });
|
|
728
|
+
* ```
|
|
729
|
+
*/
|
|
383
730
|
createSubAccount(
|
|
384
731
|
params: CreateSubAccountParameters,
|
|
385
732
|
opts?: CreateSubAccountOptions,
|
|
@@ -387,7 +734,30 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
387
734
|
return createSubAccount(this.config_, params, opts);
|
|
388
735
|
}
|
|
389
736
|
|
|
390
|
-
/**
|
|
737
|
+
/**
|
|
738
|
+
* Create a vault.
|
|
739
|
+
*
|
|
740
|
+
* @param params - Parameters specific to the API request.
|
|
741
|
+
* @param opts - Request execution options.
|
|
742
|
+
*
|
|
743
|
+
* @returns Response for creating a vault.
|
|
744
|
+
*
|
|
745
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
746
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
747
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
748
|
+
*
|
|
749
|
+
* @example
|
|
750
|
+
* ```ts
|
|
751
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
752
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
753
|
+
*
|
|
754
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
755
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
756
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
757
|
+
*
|
|
758
|
+
* const data = await client.createVault({ name: "...", description: "...", initialUsd: 100 * 1e6, nonce: Date.now() });
|
|
759
|
+
* ```
|
|
760
|
+
*/
|
|
391
761
|
createVault(
|
|
392
762
|
params: CreateVaultParameters,
|
|
393
763
|
opts?: CreateVaultOptions,
|
|
@@ -395,7 +765,42 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
395
765
|
return createVault(this.config_, params, opts);
|
|
396
766
|
}
|
|
397
767
|
|
|
398
|
-
/**
|
|
768
|
+
/**
|
|
769
|
+
* Jail or unjail self as a validator signer.
|
|
770
|
+
*
|
|
771
|
+
* @param params - Parameters specific to the API request.
|
|
772
|
+
* @param opts - Request execution options.
|
|
773
|
+
*
|
|
774
|
+
* @returns Successful response without specific data.
|
|
775
|
+
*
|
|
776
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
777
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
778
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
779
|
+
*
|
|
780
|
+
* @example
|
|
781
|
+
* ```ts
|
|
782
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
783
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
784
|
+
*
|
|
785
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
786
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
787
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
788
|
+
*
|
|
789
|
+
* await client.cSignerAction({ jailSelf: null });
|
|
790
|
+
* ```
|
|
791
|
+
*
|
|
792
|
+
* @example
|
|
793
|
+
* ```ts
|
|
794
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
795
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
796
|
+
*
|
|
797
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
798
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
799
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
800
|
+
*
|
|
801
|
+
* await client.cSignerAction({ unjailSelf: null });
|
|
802
|
+
* ```
|
|
803
|
+
*/
|
|
399
804
|
cSignerAction(
|
|
400
805
|
params: CSignerActionParameters,
|
|
401
806
|
opts?: CSignerActionOptions,
|
|
@@ -403,23 +808,96 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
403
808
|
return cSignerAction(this.config_, params, opts);
|
|
404
809
|
}
|
|
405
810
|
|
|
406
|
-
/**
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
811
|
+
/**
|
|
812
|
+
* Action related to validator management.
|
|
813
|
+
*
|
|
814
|
+
* @param params - Parameters specific to the API request.
|
|
815
|
+
* @param opts - Request execution options.
|
|
816
|
+
*
|
|
817
|
+
* @returns Successful response without specific data.
|
|
818
|
+
*
|
|
819
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
820
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
821
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
822
|
+
*
|
|
823
|
+
* @example
|
|
824
|
+
* ```ts
|
|
825
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
826
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
827
|
+
*
|
|
828
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
829
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
830
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
831
|
+
*
|
|
832
|
+
* await client.cValidatorAction({ changeProfile: { node_ip: { Ip: "1.2.3.4" }, name: "...", description: "...", unjailed: true, disable_delegations: false, commission_bps: null, signer: null } });
|
|
833
|
+
* ```
|
|
834
|
+
*/
|
|
835
|
+
cValidatorAction(
|
|
836
|
+
params: CValidatorActionParameters,
|
|
837
|
+
opts?: CValidatorActionOptions,
|
|
838
|
+
): Promise<CValidatorActionSuccessResponse> {
|
|
839
|
+
return cValidatorAction(this.config_, params, opts);
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* Transfer native token from staking into the user's spot account.
|
|
844
|
+
*
|
|
845
|
+
* @param params - Parameters specific to the API request.
|
|
846
|
+
* @param opts - Request execution options.
|
|
847
|
+
*
|
|
848
|
+
* @returns Successful response without specific data.
|
|
849
|
+
*
|
|
850
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
851
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
852
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
853
|
+
*
|
|
854
|
+
* @example
|
|
855
|
+
* ```ts
|
|
856
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
857
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
858
|
+
*
|
|
859
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
860
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
861
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
862
|
+
*
|
|
863
|
+
* await client.cWithdraw({ wei: 1 * 1e8 });
|
|
864
|
+
* ```
|
|
865
|
+
*
|
|
866
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#withdraw-from-staking
|
|
867
|
+
*/
|
|
868
|
+
cWithdraw(
|
|
416
869
|
params: CWithdrawParameters,
|
|
417
870
|
opts?: CWithdrawOptions,
|
|
418
871
|
): Promise<CWithdrawSuccessResponse> {
|
|
419
872
|
return cWithdraw(this.config_, params, opts);
|
|
420
873
|
}
|
|
421
874
|
|
|
422
|
-
/**
|
|
875
|
+
/**
|
|
876
|
+
* Configure block type for EVM transactions.
|
|
877
|
+
*
|
|
878
|
+
* @param params - Parameters specific to the API request.
|
|
879
|
+
* @param opts - Request execution options.
|
|
880
|
+
*
|
|
881
|
+
* @returns Successful response without specific data.
|
|
882
|
+
*
|
|
883
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
884
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
885
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
886
|
+
*
|
|
887
|
+
* @example
|
|
888
|
+
* ```ts
|
|
889
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
890
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
891
|
+
*
|
|
892
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
893
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
894
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
895
|
+
*
|
|
896
|
+
* await client.evmUserModify({ usingBigBlocks: true });
|
|
897
|
+
* ```
|
|
898
|
+
*
|
|
899
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/hyperevm/dual-block-architecture
|
|
900
|
+
*/
|
|
423
901
|
evmUserModify(
|
|
424
902
|
params: EvmUserModifyParameters,
|
|
425
903
|
opts?: EvmUserModifyOptions,
|
|
@@ -427,7 +905,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
427
905
|
return evmUserModify(this.config_, params, opts);
|
|
428
906
|
}
|
|
429
907
|
|
|
430
|
-
/**
|
|
908
|
+
/**
|
|
909
|
+
* Link staking and trading accounts for fee discount attribution.
|
|
910
|
+
*
|
|
911
|
+
* @param params - Parameters specific to the API request.
|
|
912
|
+
* @param opts - Request execution options.
|
|
913
|
+
*
|
|
914
|
+
* @returns Successful response without specific data.
|
|
915
|
+
*
|
|
916
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
917
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
918
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
919
|
+
*
|
|
920
|
+
* @example
|
|
921
|
+
* ```ts
|
|
922
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
923
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
924
|
+
*
|
|
925
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
926
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
927
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
928
|
+
*
|
|
929
|
+
* await client.linkStakingUser({ user: "0x...", isFinalize: false });
|
|
930
|
+
* ```
|
|
931
|
+
*
|
|
932
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees#staking-linking
|
|
933
|
+
*/
|
|
431
934
|
linkStakingUser(
|
|
432
935
|
params: LinkStakingUserParameters,
|
|
433
936
|
opts?: LinkStakingUserOptions,
|
|
@@ -435,7 +938,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
435
938
|
return linkStakingUser(this.config_, params, opts);
|
|
436
939
|
}
|
|
437
940
|
|
|
438
|
-
/**
|
|
941
|
+
/**
|
|
942
|
+
* Modify an order.
|
|
943
|
+
*
|
|
944
|
+
* @param params - Parameters specific to the API request.
|
|
945
|
+
* @param opts - Request execution options.
|
|
946
|
+
*
|
|
947
|
+
* @returns Successful response without specific data.
|
|
948
|
+
*
|
|
949
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
950
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
951
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
952
|
+
*
|
|
953
|
+
* @example
|
|
954
|
+
* ```ts
|
|
955
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
956
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
957
|
+
*
|
|
958
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
959
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
960
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
961
|
+
*
|
|
962
|
+
* await client.modify({ oid: 123, order: { a: 0, b: true, p: "31000", s: "0.2", r: false, t: { limit: { tif: "Gtc" } }, c: "0x..." } });
|
|
963
|
+
* ```
|
|
964
|
+
*
|
|
965
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-an-order
|
|
966
|
+
*/
|
|
439
967
|
modify(
|
|
440
968
|
params: ModifyParameters,
|
|
441
969
|
opts?: ModifyOptions,
|
|
@@ -443,7 +971,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
443
971
|
return modify(this.config_, params, opts);
|
|
444
972
|
}
|
|
445
973
|
|
|
446
|
-
/**
|
|
974
|
+
/**
|
|
975
|
+
* Place an order(s).
|
|
976
|
+
*
|
|
977
|
+
* @param params - Parameters specific to the API request.
|
|
978
|
+
* @param opts - Request execution options.
|
|
979
|
+
*
|
|
980
|
+
* @returns Successful variant of {@link OrderResponse} without error statuses.
|
|
981
|
+
*
|
|
982
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
983
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
984
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
985
|
+
*
|
|
986
|
+
* @example
|
|
987
|
+
* ```ts
|
|
988
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
989
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
990
|
+
*
|
|
991
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
992
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
993
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
994
|
+
*
|
|
995
|
+
* const data = await client.order({ orders: [ { a: 0, b: true, p: "30000", s: "0.1", r: false, t: { limit: { tif: "Gtc" } }, c: "0x..." }, ], grouping: "na" });
|
|
996
|
+
* ```
|
|
997
|
+
*
|
|
998
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-an-order
|
|
999
|
+
*/
|
|
447
1000
|
order(
|
|
448
1001
|
params: OrderParameters,
|
|
449
1002
|
opts?: OrderOptions,
|
|
@@ -451,14 +1004,64 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
451
1004
|
return order(this.config_, params, opts);
|
|
452
1005
|
}
|
|
453
1006
|
|
|
454
|
-
/**
|
|
1007
|
+
/**
|
|
1008
|
+
* This action does not do anything (no operation), but causes the nonce to be marked as used.
|
|
1009
|
+
*
|
|
1010
|
+
* @param params - Parameters specific to the API request.
|
|
1011
|
+
* @param opts - Request execution options.
|
|
1012
|
+
*
|
|
1013
|
+
* @returns Successful response without specific data.
|
|
1014
|
+
*
|
|
1015
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1016
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1017
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1018
|
+
*
|
|
1019
|
+
* @example
|
|
1020
|
+
* ```ts
|
|
1021
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1022
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1023
|
+
*
|
|
1024
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1025
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1026
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1027
|
+
*
|
|
1028
|
+
* await client.noop();
|
|
1029
|
+
* ```
|
|
1030
|
+
*
|
|
1031
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#invalidate-pending-nonce-noop
|
|
1032
|
+
*/
|
|
455
1033
|
noop(
|
|
456
1034
|
opts?: NoopOptions,
|
|
457
1035
|
): Promise<NoopSuccessResponse> {
|
|
458
1036
|
return noop(this.config_, opts);
|
|
459
1037
|
}
|
|
460
1038
|
|
|
461
|
-
/**
|
|
1039
|
+
/**
|
|
1040
|
+
* Deploying HIP-3 assets.
|
|
1041
|
+
*
|
|
1042
|
+
* @param params - Parameters specific to the API request.
|
|
1043
|
+
* @param opts - Request execution options.
|
|
1044
|
+
*
|
|
1045
|
+
* @returns Successful response without specific data.
|
|
1046
|
+
*
|
|
1047
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1048
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1049
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1050
|
+
*
|
|
1051
|
+
* @example
|
|
1052
|
+
* ```ts
|
|
1053
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1054
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1055
|
+
*
|
|
1056
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1057
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1058
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1059
|
+
*
|
|
1060
|
+
* await client.perpDeploy({ registerAsset: { maxGas: 1000000, assetRequest: { coin: "USDC", szDecimals: 8, oraclePx: "1", marginTableId: 1, onlyIsolated: false }, dex: "test", schema: null } });
|
|
1061
|
+
* ```
|
|
1062
|
+
*
|
|
1063
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/hip-3-deployer-actions
|
|
1064
|
+
*/
|
|
462
1065
|
perpDeploy(
|
|
463
1066
|
params: PerpDeployParameters,
|
|
464
1067
|
opts?: PerpDeployOptions,
|
|
@@ -466,7 +1069,30 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
466
1069
|
return perpDeploy(this.config_, params, opts);
|
|
467
1070
|
}
|
|
468
1071
|
|
|
469
|
-
/**
|
|
1072
|
+
/**
|
|
1073
|
+
* Create a referral code.
|
|
1074
|
+
*
|
|
1075
|
+
* @param params - Parameters specific to the API request.
|
|
1076
|
+
* @param opts - Request execution options.
|
|
1077
|
+
*
|
|
1078
|
+
* @returns Successful response without specific data.
|
|
1079
|
+
*
|
|
1080
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1081
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1082
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1083
|
+
*
|
|
1084
|
+
* @example
|
|
1085
|
+
* ```ts
|
|
1086
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1087
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1088
|
+
*
|
|
1089
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1090
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1091
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1092
|
+
*
|
|
1093
|
+
* await client.registerReferrer({ code: "..." });
|
|
1094
|
+
* ```
|
|
1095
|
+
*/
|
|
470
1096
|
registerReferrer(
|
|
471
1097
|
params: RegisterReferrerParameters,
|
|
472
1098
|
opts?: RegisterReferrerOptions,
|
|
@@ -474,7 +1100,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
474
1100
|
return registerReferrer(this.config_, params, opts);
|
|
475
1101
|
}
|
|
476
1102
|
|
|
477
|
-
/**
|
|
1103
|
+
/**
|
|
1104
|
+
* Reserve additional rate-limited actions for a fee.
|
|
1105
|
+
*
|
|
1106
|
+
* @param params - Parameters specific to the API request.
|
|
1107
|
+
* @param opts - Request execution options.
|
|
1108
|
+
*
|
|
1109
|
+
* @returns Successful response without specific data.
|
|
1110
|
+
*
|
|
1111
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1112
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1113
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1114
|
+
*
|
|
1115
|
+
* @example
|
|
1116
|
+
* ```ts
|
|
1117
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1118
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1119
|
+
*
|
|
1120
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1121
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1122
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1123
|
+
*
|
|
1124
|
+
* await client.reserveRequestWeight({ weight: 10 });
|
|
1125
|
+
* ```
|
|
1126
|
+
*
|
|
1127
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#reserve-additional-actions
|
|
1128
|
+
*/
|
|
478
1129
|
reserveRequestWeight(
|
|
479
1130
|
params: ReserveRequestWeightParameters,
|
|
480
1131
|
opts?: ReserveRequestWeightOptions,
|
|
@@ -482,7 +1133,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
482
1133
|
return reserveRequestWeight(this.config_, params, opts);
|
|
483
1134
|
}
|
|
484
1135
|
|
|
485
|
-
/**
|
|
1136
|
+
/**
|
|
1137
|
+
* Schedule a cancel-all operation at a future time.
|
|
1138
|
+
*
|
|
1139
|
+
* @param params - Parameters specific to the API request.
|
|
1140
|
+
* @param opts - Request execution options.
|
|
1141
|
+
*
|
|
1142
|
+
* @returns Successful response without specific data.
|
|
1143
|
+
*
|
|
1144
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1145
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1146
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1147
|
+
*
|
|
1148
|
+
* @example
|
|
1149
|
+
* ```ts
|
|
1150
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1151
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1152
|
+
*
|
|
1153
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1154
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1155
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1156
|
+
*
|
|
1157
|
+
* await client.scheduleCancel({ time: Date.now() + 10_000 });
|
|
1158
|
+
* ```
|
|
1159
|
+
*
|
|
1160
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#schedule-cancel-dead-mans-switch
|
|
1161
|
+
*/
|
|
486
1162
|
scheduleCancel(
|
|
487
1163
|
params?: ScheduleCancelParameters,
|
|
488
1164
|
opts?: ScheduleCancelOptions,
|
|
@@ -500,7 +1176,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
500
1176
|
return scheduleCancel(this.config_, params, opts);
|
|
501
1177
|
}
|
|
502
1178
|
|
|
503
|
-
/**
|
|
1179
|
+
/**
|
|
1180
|
+
* Transfer tokens between different perp DEXs, spot balance, users, and/or sub-accounts.
|
|
1181
|
+
*
|
|
1182
|
+
* @param params - Parameters specific to the API request.
|
|
1183
|
+
* @param opts - Request execution options.
|
|
1184
|
+
*
|
|
1185
|
+
* @returns Successful response without specific data.
|
|
1186
|
+
*
|
|
1187
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1188
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1189
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1190
|
+
*
|
|
1191
|
+
* @example
|
|
1192
|
+
* ```ts
|
|
1193
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1194
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1195
|
+
*
|
|
1196
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1197
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1198
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1199
|
+
*
|
|
1200
|
+
* await client.sendAsset({ destination: "0x0000000000000000000000000000000000000001", sourceDex: "", destinationDex: "test", token: "USDC:0xeb62eee3685fc4c43992febcd9e75443", amount: "1" });
|
|
1201
|
+
* ```
|
|
1202
|
+
*
|
|
1203
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#send-asset
|
|
1204
|
+
*/
|
|
504
1205
|
sendAsset(
|
|
505
1206
|
params: SendAssetParameters,
|
|
506
1207
|
opts?: SendAssetOptions,
|
|
@@ -508,7 +1209,30 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
508
1209
|
return sendAsset(this.config_, params, opts);
|
|
509
1210
|
}
|
|
510
1211
|
|
|
511
|
-
/**
|
|
1212
|
+
/**
|
|
1213
|
+
* Set the display name in the leaderboard.
|
|
1214
|
+
*
|
|
1215
|
+
* @param params - Parameters specific to the API request.
|
|
1216
|
+
* @param opts - Request execution options.
|
|
1217
|
+
*
|
|
1218
|
+
* @returns Successful response without specific data.
|
|
1219
|
+
*
|
|
1220
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1221
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1222
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1223
|
+
*
|
|
1224
|
+
* @example
|
|
1225
|
+
* ```ts
|
|
1226
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1227
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1228
|
+
*
|
|
1229
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1230
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1231
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1232
|
+
*
|
|
1233
|
+
* await client.setDisplayName({ displayName: "..." });
|
|
1234
|
+
* ```
|
|
1235
|
+
*/
|
|
512
1236
|
setDisplayName(
|
|
513
1237
|
params: SetDisplayNameParameters,
|
|
514
1238
|
opts?: SetDisplayNameOptions,
|
|
@@ -516,7 +1240,30 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
516
1240
|
return setDisplayName(this.config_, params, opts);
|
|
517
1241
|
}
|
|
518
1242
|
|
|
519
|
-
/**
|
|
1243
|
+
/**
|
|
1244
|
+
* Set a referral code.
|
|
1245
|
+
*
|
|
1246
|
+
* @param params - Parameters specific to the API request.
|
|
1247
|
+
* @param opts - Request execution options.
|
|
1248
|
+
*
|
|
1249
|
+
* @returns Successful response without specific data.
|
|
1250
|
+
*
|
|
1251
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1252
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1253
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1254
|
+
*
|
|
1255
|
+
* @example
|
|
1256
|
+
* ```ts
|
|
1257
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1258
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1259
|
+
*
|
|
1260
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1261
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1262
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1263
|
+
*
|
|
1264
|
+
* await client.setReferrer({ code: "..." });
|
|
1265
|
+
* ```
|
|
1266
|
+
*/
|
|
520
1267
|
setReferrer(
|
|
521
1268
|
params: SetReferrerParameters,
|
|
522
1269
|
opts?: SetReferrerOptions,
|
|
@@ -524,7 +1271,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
524
1271
|
return setReferrer(this.config_, params, opts);
|
|
525
1272
|
}
|
|
526
1273
|
|
|
527
|
-
/**
|
|
1274
|
+
/**
|
|
1275
|
+
* Deploying HIP-1 and HIP-2 assets.
|
|
1276
|
+
*
|
|
1277
|
+
* @param params - Parameters specific to the API request.
|
|
1278
|
+
* @param opts - Request execution options.
|
|
1279
|
+
*
|
|
1280
|
+
* @returns Successful response without specific data.
|
|
1281
|
+
*
|
|
1282
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1283
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1284
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1285
|
+
*
|
|
1286
|
+
* @example
|
|
1287
|
+
* ```ts
|
|
1288
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1289
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1290
|
+
*
|
|
1291
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1292
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1293
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1294
|
+
*
|
|
1295
|
+
* await client.spotDeploy({ registerToken2: { spec: { name: "USDC", szDecimals: 8, weiDecimals: 8 }, maxGas: 1000000, fullName: "USD Coin" } });
|
|
1296
|
+
* ```
|
|
1297
|
+
*
|
|
1298
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/deploying-hip-1-and-hip-2-assets
|
|
1299
|
+
*/
|
|
528
1300
|
spotDeploy(
|
|
529
1301
|
params: SpotDeployParameters,
|
|
530
1302
|
opts?: SpotDeployOptions,
|
|
@@ -532,7 +1304,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
532
1304
|
return spotDeploy(this.config_, params, opts);
|
|
533
1305
|
}
|
|
534
1306
|
|
|
535
|
-
/**
|
|
1307
|
+
/**
|
|
1308
|
+
* Send spot assets to another address.
|
|
1309
|
+
*
|
|
1310
|
+
* @param params - Parameters specific to the API request.
|
|
1311
|
+
* @param opts - Request execution options.
|
|
1312
|
+
*
|
|
1313
|
+
* @returns Successful response without specific data.
|
|
1314
|
+
*
|
|
1315
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1316
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1317
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1318
|
+
*
|
|
1319
|
+
* @example
|
|
1320
|
+
* ```ts
|
|
1321
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1322
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1323
|
+
*
|
|
1324
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1325
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1326
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1327
|
+
*
|
|
1328
|
+
* await client.spotSend({ destination: "0x...", token: "USDC:0xeb62eee3685fc4c43992febcd9e75443", amount: "1" });
|
|
1329
|
+
* ```
|
|
1330
|
+
*
|
|
1331
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#core-spot-transfer
|
|
1332
|
+
*/
|
|
536
1333
|
spotSend(
|
|
537
1334
|
params: SpotSendParameters,
|
|
538
1335
|
opts?: SpotSendOptions,
|
|
@@ -540,7 +1337,30 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
540
1337
|
return spotSend(this.config_, params, opts);
|
|
541
1338
|
}
|
|
542
1339
|
|
|
543
|
-
/**
|
|
1340
|
+
/**
|
|
1341
|
+
* Opt Out of Spot Dusting.
|
|
1342
|
+
*
|
|
1343
|
+
* @param params - Parameters specific to the API request.
|
|
1344
|
+
* @param opts - Request execution options.
|
|
1345
|
+
*
|
|
1346
|
+
* @returns Successful response without specific data.
|
|
1347
|
+
*
|
|
1348
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1349
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1350
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1351
|
+
*
|
|
1352
|
+
* @example
|
|
1353
|
+
* ```ts
|
|
1354
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1355
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1356
|
+
*
|
|
1357
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1358
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1359
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1360
|
+
*
|
|
1361
|
+
* await client.spotUser({ toggleSpotDusting: { optOut: false } });
|
|
1362
|
+
* ```
|
|
1363
|
+
*/
|
|
544
1364
|
spotUser(
|
|
545
1365
|
params: SpotUserParameters,
|
|
546
1366
|
opts?: SpotUserOptions,
|
|
@@ -548,7 +1368,30 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
548
1368
|
return spotUser(this.config_, params, opts);
|
|
549
1369
|
}
|
|
550
1370
|
|
|
551
|
-
/**
|
|
1371
|
+
/**
|
|
1372
|
+
* Modify a sub-account.
|
|
1373
|
+
*
|
|
1374
|
+
* @param params - Parameters specific to the API request.
|
|
1375
|
+
* @param opts - Request execution options.
|
|
1376
|
+
*
|
|
1377
|
+
* @returns Successful response without specific data.
|
|
1378
|
+
*
|
|
1379
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1380
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1381
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1382
|
+
*
|
|
1383
|
+
* @example
|
|
1384
|
+
* ```ts
|
|
1385
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1386
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1387
|
+
*
|
|
1388
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1389
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1390
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1391
|
+
*
|
|
1392
|
+
* await client.subAccountModify({ subAccountUser: "0x...", name: "..." });
|
|
1393
|
+
* ```
|
|
1394
|
+
*/
|
|
552
1395
|
subAccountModify(
|
|
553
1396
|
params: SubAccountModifyParameters,
|
|
554
1397
|
opts?: SubAccountModifyOptions,
|
|
@@ -556,7 +1399,30 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
556
1399
|
return subAccountModify(this.config_, params, opts);
|
|
557
1400
|
}
|
|
558
1401
|
|
|
559
|
-
/**
|
|
1402
|
+
/**
|
|
1403
|
+
* Transfer between sub-accounts (spot).
|
|
1404
|
+
*
|
|
1405
|
+
* @param params - Parameters specific to the API request.
|
|
1406
|
+
* @param opts - Request execution options.
|
|
1407
|
+
*
|
|
1408
|
+
* @returns Successful response without specific data.
|
|
1409
|
+
*
|
|
1410
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1411
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1412
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1413
|
+
*
|
|
1414
|
+
* @example
|
|
1415
|
+
* ```ts
|
|
1416
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1417
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1418
|
+
*
|
|
1419
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1420
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1421
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1422
|
+
*
|
|
1423
|
+
* await client.subAccountSpotTransfer({ subAccountUser: "0x...", isDeposit: true, token: "USDC:0xeb62eee3685fc4c43992febcd9e75443", amount: "1" });
|
|
1424
|
+
* ```
|
|
1425
|
+
*/
|
|
560
1426
|
subAccountSpotTransfer(
|
|
561
1427
|
params: SubAccountSpotTransferParameters,
|
|
562
1428
|
opts?: SubAccountSpotTransferOptions,
|
|
@@ -564,7 +1430,30 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
564
1430
|
return subAccountSpotTransfer(this.config_, params, opts);
|
|
565
1431
|
}
|
|
566
1432
|
|
|
567
|
-
/**
|
|
1433
|
+
/**
|
|
1434
|
+
* Transfer between sub-accounts (perpetual).
|
|
1435
|
+
*
|
|
1436
|
+
* @param params - Parameters specific to the API request.
|
|
1437
|
+
* @param opts - Request execution options.
|
|
1438
|
+
*
|
|
1439
|
+
* @returns Successful response without specific data.
|
|
1440
|
+
*
|
|
1441
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1442
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1443
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1444
|
+
*
|
|
1445
|
+
* @example
|
|
1446
|
+
* ```ts
|
|
1447
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1448
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1449
|
+
*
|
|
1450
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1451
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1452
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1453
|
+
*
|
|
1454
|
+
* await client.subAccountTransfer({ subAccountUser: "0x...", isDeposit: true, usd: 1 * 1e6 });
|
|
1455
|
+
* ```
|
|
1456
|
+
*/
|
|
568
1457
|
subAccountTransfer(
|
|
569
1458
|
params: SubAccountTransferParameters,
|
|
570
1459
|
opts?: SubAccountTransferOptions,
|
|
@@ -572,7 +1461,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
572
1461
|
return subAccountTransfer(this.config_, params, opts);
|
|
573
1462
|
}
|
|
574
1463
|
|
|
575
|
-
/**
|
|
1464
|
+
/**
|
|
1465
|
+
* Delegate or undelegate native tokens to or from a validator.
|
|
1466
|
+
*
|
|
1467
|
+
* @param params - Parameters specific to the API request.
|
|
1468
|
+
* @param opts - Request execution options.
|
|
1469
|
+
*
|
|
1470
|
+
* @returns Successful response without specific data.
|
|
1471
|
+
*
|
|
1472
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1473
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1474
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1475
|
+
*
|
|
1476
|
+
* @example
|
|
1477
|
+
* ```ts
|
|
1478
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1479
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1480
|
+
*
|
|
1481
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1482
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1483
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1484
|
+
*
|
|
1485
|
+
* await client.tokenDelegate({ validator: "0x...", isUndelegate: true, wei: 1 * 1e8 });
|
|
1486
|
+
* ```
|
|
1487
|
+
*
|
|
1488
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#delegate-or-undelegate-stake-from-validator
|
|
1489
|
+
*/
|
|
576
1490
|
tokenDelegate(
|
|
577
1491
|
params: TokenDelegateParameters,
|
|
578
1492
|
opts?: TokenDelegateOptions,
|
|
@@ -580,7 +1494,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
580
1494
|
return tokenDelegate(this.config_, params, opts);
|
|
581
1495
|
}
|
|
582
1496
|
|
|
583
|
-
/**
|
|
1497
|
+
/**
|
|
1498
|
+
* Cancel a TWAP order.
|
|
1499
|
+
*
|
|
1500
|
+
* @param params - Parameters specific to the API request.
|
|
1501
|
+
* @param opts - Request execution options.
|
|
1502
|
+
*
|
|
1503
|
+
* @returns Successful variant of {@link TwapCancelResponse} without error status.
|
|
1504
|
+
*
|
|
1505
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1506
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1507
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1508
|
+
*
|
|
1509
|
+
* @example
|
|
1510
|
+
* ```ts
|
|
1511
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1512
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1513
|
+
*
|
|
1514
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1515
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1516
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1517
|
+
*
|
|
1518
|
+
* const data = await client.twapCancel({ a: 0, t: 1 });
|
|
1519
|
+
* ```
|
|
1520
|
+
*
|
|
1521
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-a-twap-order
|
|
1522
|
+
*/
|
|
584
1523
|
twapCancel(
|
|
585
1524
|
params: TwapCancelParameters,
|
|
586
1525
|
opts?: TwapCancelOptions,
|
|
@@ -588,7 +1527,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
588
1527
|
return twapCancel(this.config_, params, opts);
|
|
589
1528
|
}
|
|
590
1529
|
|
|
591
|
-
/**
|
|
1530
|
+
/**
|
|
1531
|
+
* Place a TWAP order.
|
|
1532
|
+
*
|
|
1533
|
+
* @param params - Parameters specific to the API request.
|
|
1534
|
+
* @param opts - Request execution options.
|
|
1535
|
+
*
|
|
1536
|
+
* @returns Successful variant of {@link TwapOrderResponse} without error status.
|
|
1537
|
+
*
|
|
1538
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1539
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1540
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1541
|
+
*
|
|
1542
|
+
* @example
|
|
1543
|
+
* ```ts
|
|
1544
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1545
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1546
|
+
*
|
|
1547
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1548
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1549
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1550
|
+
*
|
|
1551
|
+
* const data = await client.twapOrder({ twap: { a: 0, b: true, s: "1", r: false, m: 10, t: true } });
|
|
1552
|
+
* ```
|
|
1553
|
+
*
|
|
1554
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-a-twap-order
|
|
1555
|
+
*/
|
|
592
1556
|
twapOrder(
|
|
593
1557
|
params: TwapOrderParameters,
|
|
594
1558
|
opts?: TwapOrderOptions,
|
|
@@ -596,7 +1560,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
596
1560
|
return twapOrder(this.config_, params, opts);
|
|
597
1561
|
}
|
|
598
1562
|
|
|
599
|
-
/**
|
|
1563
|
+
/**
|
|
1564
|
+
* Add or remove margin from isolated position.
|
|
1565
|
+
*
|
|
1566
|
+
* @param params - Parameters specific to the API request.
|
|
1567
|
+
* @param opts - Request execution options.
|
|
1568
|
+
*
|
|
1569
|
+
* @returns Successful response without specific data.
|
|
1570
|
+
*
|
|
1571
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1572
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1573
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1574
|
+
*
|
|
1575
|
+
* @example
|
|
1576
|
+
* ```ts
|
|
1577
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1578
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1579
|
+
*
|
|
1580
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1581
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1582
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1583
|
+
*
|
|
1584
|
+
* await client.updateIsolatedMargin({ asset: 0, isBuy: true, ntli: 1 * 1e6 });
|
|
1585
|
+
* ```
|
|
1586
|
+
*
|
|
1587
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-isolated-margin
|
|
1588
|
+
*/
|
|
600
1589
|
updateIsolatedMargin(
|
|
601
1590
|
params: UpdateIsolatedMarginParameters,
|
|
602
1591
|
opts?: UpdateIsolatedMarginOptions,
|
|
@@ -604,7 +1593,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
604
1593
|
return updateIsolatedMargin(this.config_, params, opts);
|
|
605
1594
|
}
|
|
606
1595
|
|
|
607
|
-
/**
|
|
1596
|
+
/**
|
|
1597
|
+
* Update cross or isolated leverage on a coin.
|
|
1598
|
+
*
|
|
1599
|
+
* @param params - Parameters specific to the API request.
|
|
1600
|
+
* @param opts - Request execution options.
|
|
1601
|
+
*
|
|
1602
|
+
* @returns Successful response without specific data.
|
|
1603
|
+
*
|
|
1604
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1605
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1606
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1607
|
+
*
|
|
1608
|
+
* @example
|
|
1609
|
+
* ```ts
|
|
1610
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1611
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1612
|
+
*
|
|
1613
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1614
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1615
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1616
|
+
*
|
|
1617
|
+
* await client.updateLeverage({ asset: 0, isCross: true, leverage: 5 });
|
|
1618
|
+
* ```
|
|
1619
|
+
*
|
|
1620
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-leverage
|
|
1621
|
+
*/
|
|
608
1622
|
updateLeverage(
|
|
609
1623
|
params: UpdateLeverageParameters,
|
|
610
1624
|
opts?: UpdateLeverageOptions,
|
|
@@ -612,7 +1626,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
612
1626
|
return updateLeverage(this.config_, params, opts);
|
|
613
1627
|
}
|
|
614
1628
|
|
|
615
|
-
/**
|
|
1629
|
+
/**
|
|
1630
|
+
* Transfer funds between Spot account and Perp account.
|
|
1631
|
+
*
|
|
1632
|
+
* @param params - Parameters specific to the API request.
|
|
1633
|
+
* @param opts - Request execution options.
|
|
1634
|
+
*
|
|
1635
|
+
* @returns Successful response without specific data.
|
|
1636
|
+
*
|
|
1637
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1638
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1639
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1640
|
+
*
|
|
1641
|
+
* @example
|
|
1642
|
+
* ```ts
|
|
1643
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1644
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1645
|
+
*
|
|
1646
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1647
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1648
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1649
|
+
*
|
|
1650
|
+
* await client.usdClassTransfer({ amount: "1", toPerp: true });
|
|
1651
|
+
* ```
|
|
1652
|
+
*
|
|
1653
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#transfer-from-spot-account-to-perp-account-and-vice-versa
|
|
1654
|
+
*/
|
|
616
1655
|
usdClassTransfer(
|
|
617
1656
|
params: UsdClassTransferParameters,
|
|
618
1657
|
opts?: UsdClassTransferOptions,
|
|
@@ -620,7 +1659,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
620
1659
|
return usdClassTransfer(this.config_, params, opts);
|
|
621
1660
|
}
|
|
622
1661
|
|
|
623
|
-
/**
|
|
1662
|
+
/**
|
|
1663
|
+
* Send usd to another address.
|
|
1664
|
+
*
|
|
1665
|
+
* @param params - Parameters specific to the API request.
|
|
1666
|
+
* @param opts - Request execution options.
|
|
1667
|
+
*
|
|
1668
|
+
* @returns Successful response without specific data.
|
|
1669
|
+
*
|
|
1670
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1671
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1672
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1673
|
+
*
|
|
1674
|
+
* @example
|
|
1675
|
+
* ```ts
|
|
1676
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1677
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1678
|
+
*
|
|
1679
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1680
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1681
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1682
|
+
*
|
|
1683
|
+
* await client.usdSend({ destination: "0x...", amount: "1" });
|
|
1684
|
+
* ```
|
|
1685
|
+
*
|
|
1686
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#core-usdc-transfer
|
|
1687
|
+
*/
|
|
624
1688
|
usdSend(
|
|
625
1689
|
params: UsdSendParameters,
|
|
626
1690
|
opts?: UsdSendOptions,
|
|
@@ -628,7 +1692,34 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
628
1692
|
return usdSend(this.config_, params, opts);
|
|
629
1693
|
}
|
|
630
1694
|
|
|
631
|
-
/**
|
|
1695
|
+
/**
|
|
1696
|
+
* Enable/disable HIP-3 DEX abstraction.
|
|
1697
|
+
*
|
|
1698
|
+
* @deprecated Use {@link userSetAbstraction} instead.
|
|
1699
|
+
*
|
|
1700
|
+
* @param params - Parameters specific to the API request.
|
|
1701
|
+
* @param opts - Request execution options.
|
|
1702
|
+
*
|
|
1703
|
+
* @returns Successful response without specific data.
|
|
1704
|
+
*
|
|
1705
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1706
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1707
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1708
|
+
*
|
|
1709
|
+
* @example
|
|
1710
|
+
* ```ts
|
|
1711
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1712
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1713
|
+
*
|
|
1714
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1715
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1716
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1717
|
+
*
|
|
1718
|
+
* await client.userDexAbstraction({ user: "0x...", enabled: true });
|
|
1719
|
+
* ```
|
|
1720
|
+
*
|
|
1721
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#enable-hip-3-dex-abstraction
|
|
1722
|
+
*/
|
|
632
1723
|
userDexAbstraction(
|
|
633
1724
|
params: UserDexAbstractionParameters,
|
|
634
1725
|
opts?: UserDexAbstractionOptions,
|
|
@@ -636,7 +1727,98 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
636
1727
|
return userDexAbstraction(this.config_, params, opts);
|
|
637
1728
|
}
|
|
638
1729
|
|
|
639
|
-
/**
|
|
1730
|
+
/**
|
|
1731
|
+
* Set User abstraction mode.
|
|
1732
|
+
*
|
|
1733
|
+
* @param params - Parameters specific to the API request.
|
|
1734
|
+
* @param opts - Request execution options.
|
|
1735
|
+
*
|
|
1736
|
+
* @returns Successful response without specific data.
|
|
1737
|
+
*
|
|
1738
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1739
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1740
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1741
|
+
*
|
|
1742
|
+
* @example
|
|
1743
|
+
* ```ts
|
|
1744
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1745
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1746
|
+
*
|
|
1747
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1748
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1749
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1750
|
+
*
|
|
1751
|
+
* await client.userSetAbstraction({ user: "0x...", abstraction: "dexAbstraction" });
|
|
1752
|
+
* ```
|
|
1753
|
+
*
|
|
1754
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#set-user-abstraction
|
|
1755
|
+
*/
|
|
1756
|
+
userSetAbstraction(
|
|
1757
|
+
params: UserSetAbstractionParameters,
|
|
1758
|
+
opts?: UserSetAbstractionOptions,
|
|
1759
|
+
): Promise<UserSetAbstractionSuccessResponse> {
|
|
1760
|
+
return userSetAbstraction(this.config_, params, opts);
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
/**
|
|
1764
|
+
* Enable/disable user portfolio margin.
|
|
1765
|
+
*
|
|
1766
|
+
* @param params - Parameters specific to the API request.
|
|
1767
|
+
* @param opts - Request execution options.
|
|
1768
|
+
*
|
|
1769
|
+
* @returns Successful response without specific data.
|
|
1770
|
+
*
|
|
1771
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1772
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1773
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1774
|
+
*
|
|
1775
|
+
* @example
|
|
1776
|
+
* ```ts
|
|
1777
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1778
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1779
|
+
*
|
|
1780
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1781
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1782
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1783
|
+
*
|
|
1784
|
+
* await client.userPortfolioMargin({ user: "0x...", enabled: true });
|
|
1785
|
+
* ```
|
|
1786
|
+
*
|
|
1787
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin
|
|
1788
|
+
*/
|
|
1789
|
+
userPortfolioMargin(
|
|
1790
|
+
params: UserPortfolioMarginParameters,
|
|
1791
|
+
opts?: UserPortfolioMarginOptions,
|
|
1792
|
+
): Promise<UserPortfolioMarginSuccessResponse> {
|
|
1793
|
+
return userPortfolioMargin(this.config_, params, opts);
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
* Validator vote on risk-free rate for aligned quote asset.
|
|
1798
|
+
*
|
|
1799
|
+
* @param params - Parameters specific to the API request.
|
|
1800
|
+
* @param opts - Request execution options.
|
|
1801
|
+
*
|
|
1802
|
+
* @returns Successful response without specific data.
|
|
1803
|
+
*
|
|
1804
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1805
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1806
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1807
|
+
*
|
|
1808
|
+
* @example
|
|
1809
|
+
* ```ts
|
|
1810
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1811
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1812
|
+
*
|
|
1813
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1814
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1815
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1816
|
+
*
|
|
1817
|
+
* await client.validatorL1Stream({ riskFreeRate: "0.05" });
|
|
1818
|
+
* ```
|
|
1819
|
+
*
|
|
1820
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#validator-vote-on-risk-free-rate-for-aligned-quote-asset
|
|
1821
|
+
*/
|
|
640
1822
|
validatorL1Stream(
|
|
641
1823
|
params: ValidatorL1StreamParameters,
|
|
642
1824
|
opts?: ValidatorL1StreamOptions,
|
|
@@ -644,7 +1826,30 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
644
1826
|
return validatorL1Stream(this.config_, params, opts);
|
|
645
1827
|
}
|
|
646
1828
|
|
|
647
|
-
/**
|
|
1829
|
+
/**
|
|
1830
|
+
* Distribute funds from a vault between followers.
|
|
1831
|
+
*
|
|
1832
|
+
* @param params - Parameters specific to the API request.
|
|
1833
|
+
* @param opts - Request execution options.
|
|
1834
|
+
*
|
|
1835
|
+
* @returns Successful response without specific data.
|
|
1836
|
+
*
|
|
1837
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1838
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1839
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1840
|
+
*
|
|
1841
|
+
* @example
|
|
1842
|
+
* ```ts
|
|
1843
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1844
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1845
|
+
*
|
|
1846
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1847
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1848
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1849
|
+
*
|
|
1850
|
+
* await client.vaultDistribute({ vaultAddress: "0x...", usd: 10 * 1e6 });
|
|
1851
|
+
* ```
|
|
1852
|
+
*/
|
|
648
1853
|
vaultDistribute(
|
|
649
1854
|
params: VaultDistributeParameters,
|
|
650
1855
|
opts?: VaultDistributeOptions,
|
|
@@ -652,7 +1857,30 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
652
1857
|
return vaultDistribute(this.config_, params, opts);
|
|
653
1858
|
}
|
|
654
1859
|
|
|
655
|
-
/**
|
|
1860
|
+
/**
|
|
1861
|
+
* Modify a vault's configuration.
|
|
1862
|
+
*
|
|
1863
|
+
* @param params - Parameters specific to the API request.
|
|
1864
|
+
* @param opts - Request execution options.
|
|
1865
|
+
*
|
|
1866
|
+
* @returns Successful response without specific data.
|
|
1867
|
+
*
|
|
1868
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1869
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1870
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1871
|
+
*
|
|
1872
|
+
* @example
|
|
1873
|
+
* ```ts
|
|
1874
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1875
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1876
|
+
*
|
|
1877
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1878
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1879
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1880
|
+
*
|
|
1881
|
+
* await client.vaultModify({ vaultAddress: "0x...", allowDeposits: true, alwaysCloseOnWithdraw: false });
|
|
1882
|
+
* ```
|
|
1883
|
+
*/
|
|
656
1884
|
vaultModify(
|
|
657
1885
|
params: VaultModifyParameters,
|
|
658
1886
|
opts?: VaultModifyOptions,
|
|
@@ -660,7 +1888,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
660
1888
|
return vaultModify(this.config_, params, opts);
|
|
661
1889
|
}
|
|
662
1890
|
|
|
663
|
-
/**
|
|
1891
|
+
/**
|
|
1892
|
+
* Deposit or withdraw from a vault.
|
|
1893
|
+
*
|
|
1894
|
+
* @param params - Parameters specific to the API request.
|
|
1895
|
+
* @param opts - Request execution options.
|
|
1896
|
+
*
|
|
1897
|
+
* @returns Successful response without specific data.
|
|
1898
|
+
*
|
|
1899
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1900
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1901
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1902
|
+
*
|
|
1903
|
+
* @example
|
|
1904
|
+
* ```ts
|
|
1905
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1906
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1907
|
+
*
|
|
1908
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1909
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1910
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1911
|
+
*
|
|
1912
|
+
* await client.vaultTransfer({ vaultAddress: "0x...", isDeposit: true, usd: 10 * 1e6 });
|
|
1913
|
+
* ```
|
|
1914
|
+
*
|
|
1915
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#deposit-or-withdraw-from-a-vault
|
|
1916
|
+
*/
|
|
664
1917
|
vaultTransfer(
|
|
665
1918
|
params: VaultTransferParameters,
|
|
666
1919
|
opts?: VaultTransferOptions,
|
|
@@ -668,7 +1921,32 @@ export class ExchangeClient<C extends ExchangeConfig = ExchangeSingleWalletConfi
|
|
|
668
1921
|
return vaultTransfer(this.config_, params, opts);
|
|
669
1922
|
}
|
|
670
1923
|
|
|
671
|
-
/**
|
|
1924
|
+
/**
|
|
1925
|
+
* Initiate a withdrawal request.
|
|
1926
|
+
*
|
|
1927
|
+
* @param params - Parameters specific to the API request.
|
|
1928
|
+
* @param opts - Request execution options.
|
|
1929
|
+
*
|
|
1930
|
+
* @returns Successful response without specific data.
|
|
1931
|
+
*
|
|
1932
|
+
* @throws {ValiError} When the request parameters fail validation (before sending).
|
|
1933
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1934
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1935
|
+
*
|
|
1936
|
+
* @example
|
|
1937
|
+
* ```ts
|
|
1938
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1939
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
1940
|
+
*
|
|
1941
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1942
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1943
|
+
* const client = new hl.ExchangeClient({ transport, wallet });
|
|
1944
|
+
*
|
|
1945
|
+
* await client.withdraw3({ destination: "0x...", amount: "1" });
|
|
1946
|
+
* ```
|
|
1947
|
+
*
|
|
1948
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#initiate-a-withdrawal-request
|
|
1949
|
+
*/
|
|
672
1950
|
withdraw3(
|
|
673
1951
|
params: Withdraw3Parameters,
|
|
674
1952
|
opts?: Withdraw3Options,
|
|
@@ -688,6 +1966,11 @@ export type {
|
|
|
688
1966
|
AgentEnableDexAbstractionOptions,
|
|
689
1967
|
AgentEnableDexAbstractionSuccessResponse,
|
|
690
1968
|
} from "./_methods/agentEnableDexAbstraction.js";
|
|
1969
|
+
export type {
|
|
1970
|
+
AgentSetAbstractionOptions,
|
|
1971
|
+
AgentSetAbstractionParameters,
|
|
1972
|
+
AgentSetAbstractionSuccessResponse,
|
|
1973
|
+
} from "./_methods/agentSetAbstraction.js";
|
|
691
1974
|
export type {
|
|
692
1975
|
ApproveAgentOptions,
|
|
693
1976
|
ApproveAgentParameters,
|
|
@@ -699,6 +1982,7 @@ export type {
|
|
|
699
1982
|
ApproveBuilderFeeSuccessResponse,
|
|
700
1983
|
} from "./_methods/approveBuilderFee.js";
|
|
701
1984
|
export type { BatchModifyOptions, BatchModifyParameters, BatchModifySuccessResponse } from "./_methods/batchModify.js";
|
|
1985
|
+
export type { BorrowLendOptions, BorrowLendParameters, BorrowLendSuccessResponse } from "./_methods/borrowLend.js";
|
|
702
1986
|
export type { CancelOptions, CancelParameters, CancelSuccessResponse } from "./_methods/cancel.js";
|
|
703
1987
|
export type {
|
|
704
1988
|
CancelByCloidOptions,
|
|
@@ -808,9 +2092,22 @@ export type {
|
|
|
808
2092
|
export type { UsdSendOptions, UsdSendParameters, UsdSendSuccessResponse } from "./_methods/usdSend.js";
|
|
809
2093
|
export type {
|
|
810
2094
|
UserDexAbstractionOptions,
|
|
2095
|
+
UserDexAbstractionOptions as UserDexAbstractionExchangeOptions,
|
|
811
2096
|
UserDexAbstractionParameters,
|
|
2097
|
+
UserDexAbstractionParameters as UserDexAbstractionExchangeParameters,
|
|
812
2098
|
UserDexAbstractionSuccessResponse,
|
|
2099
|
+
UserDexAbstractionSuccessResponse as UserDexAbstractionExchangeSuccessResponse,
|
|
813
2100
|
} from "./_methods/userDexAbstraction.js";
|
|
2101
|
+
export type {
|
|
2102
|
+
UserSetAbstractionOptions,
|
|
2103
|
+
UserSetAbstractionParameters,
|
|
2104
|
+
UserSetAbstractionSuccessResponse,
|
|
2105
|
+
} from "./_methods/userSetAbstraction.js";
|
|
2106
|
+
export type {
|
|
2107
|
+
UserPortfolioMarginOptions,
|
|
2108
|
+
UserPortfolioMarginParameters,
|
|
2109
|
+
UserPortfolioMarginSuccessResponse,
|
|
2110
|
+
} from "./_methods/userPortfolioMargin.js";
|
|
814
2111
|
export type {
|
|
815
2112
|
ValidatorL1StreamOptions,
|
|
816
2113
|
ValidatorL1StreamParameters,
|