@nktkas/hyperliquid 0.26.0 → 0.27.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/README.md +84 -57
- package/bin/cli.ts +1 -0
- package/dist/bin/cli.js +1 -0
- package/dist/bin/cli.js.map +1 -1
- package/dist/src/api/_base.d.ts.map +1 -1
- package/dist/src/api/_base.js +3 -1
- package/dist/src/api/_base.js.map +1 -1
- package/dist/src/api/exchange/_base/_execute.d.ts +10 -0
- package/dist/src/api/exchange/_base/_execute.d.ts.map +1 -1
- package/dist/src/api/exchange/_base/_execute.js +20 -5
- package/dist/src/api/exchange/_base/_execute.js.map +1 -1
- package/dist/src/api/exchange/_base/_nonce.d.ts +4 -10
- package/dist/src/api/exchange/_base/_nonce.d.ts.map +1 -1
- package/dist/src/api/exchange/_base/_nonce.js +10 -1
- package/dist/src/api/exchange/_base/_nonce.js.map +1 -1
- package/dist/src/api/exchange/_base/_types.d.ts +44 -0
- package/dist/src/api/exchange/_base/_types.d.ts.map +1 -1
- package/dist/src/api/exchange/_base/mod.d.ts +0 -1
- package/dist/src/api/exchange/_base/mod.d.ts.map +1 -1
- package/dist/src/api/exchange/_base/mod.js +0 -1
- package/dist/src/api/exchange/_base/mod.js.map +1 -1
- package/dist/src/api/exchange/agentEnableDexAbstraction.d.ts +39 -7
- package/dist/src/api/exchange/agentEnableDexAbstraction.d.ts.map +1 -1
- package/dist/src/api/exchange/agentEnableDexAbstraction.js +20 -8
- package/dist/src/api/exchange/agentEnableDexAbstraction.js.map +1 -1
- package/dist/src/api/exchange/approveAgent.d.ts +38 -6
- package/dist/src/api/exchange/approveAgent.d.ts.map +1 -1
- package/dist/src/api/exchange/approveAgent.js +18 -6
- package/dist/src/api/exchange/approveAgent.js.map +1 -1
- package/dist/src/api/exchange/approveBuilderFee.d.ts +38 -6
- package/dist/src/api/exchange/approveBuilderFee.d.ts.map +1 -1
- package/dist/src/api/exchange/approveBuilderFee.js +18 -6
- package/dist/src/api/exchange/approveBuilderFee.js.map +1 -1
- package/dist/src/api/exchange/batchModify.d.ts +114 -6
- package/dist/src/api/exchange/batchModify.d.ts.map +1 -1
- package/dist/src/api/exchange/batchModify.js +17 -6
- package/dist/src/api/exchange/batchModify.js.map +1 -1
- package/dist/src/api/exchange/cDeposit.d.ts +38 -6
- package/dist/src/api/exchange/cDeposit.d.ts.map +1 -1
- package/dist/src/api/exchange/cDeposit.js +18 -6
- package/dist/src/api/exchange/cDeposit.js.map +1 -1
- package/dist/src/api/exchange/cSignerAction.d.ts +36 -11
- package/dist/src/api/exchange/cSignerAction.d.ts.map +1 -1
- package/dist/src/api/exchange/cSignerAction.js +16 -11
- package/dist/src/api/exchange/cSignerAction.js.map +1 -1
- package/dist/src/api/exchange/cValidatorAction.d.ts +36 -11
- package/dist/src/api/exchange/cValidatorAction.d.ts.map +1 -1
- package/dist/src/api/exchange/cValidatorAction.js +16 -11
- package/dist/src/api/exchange/cValidatorAction.js.map +1 -1
- package/dist/src/api/exchange/cWithdraw.d.ts +38 -6
- package/dist/src/api/exchange/cWithdraw.d.ts.map +1 -1
- package/dist/src/api/exchange/cWithdraw.js +18 -6
- package/dist/src/api/exchange/cWithdraw.js.map +1 -1
- package/dist/src/api/exchange/cancel.d.ts +9 -35
- package/dist/src/api/exchange/cancel.d.ts.map +1 -1
- package/dist/src/api/exchange/cancel.js +15 -22
- package/dist/src/api/exchange/cancel.js.map +1 -1
- package/dist/src/api/exchange/cancelByCloid.d.ts +46 -6
- package/dist/src/api/exchange/cancelByCloid.d.ts.map +1 -1
- package/dist/src/api/exchange/cancelByCloid.js +17 -6
- package/dist/src/api/exchange/cancelByCloid.js.map +1 -1
- package/dist/src/api/exchange/claimRewards.d.ts +35 -10
- package/dist/src/api/exchange/claimRewards.d.ts.map +1 -1
- package/dist/src/api/exchange/claimRewards.js +16 -11
- package/dist/src/api/exchange/claimRewards.js.map +1 -1
- package/dist/src/api/exchange/convertToMultiSigUser.d.ts +38 -17
- package/dist/src/api/exchange/convertToMultiSigUser.d.ts.map +1 -1
- package/dist/src/api/exchange/convertToMultiSigUser.js +19 -7
- package/dist/src/api/exchange/convertToMultiSigUser.js.map +1 -1
- package/dist/src/api/exchange/createSubAccount.d.ts +23 -10
- package/dist/src/api/exchange/createSubAccount.d.ts.map +1 -1
- package/dist/src/api/exchange/createSubAccount.js +26 -20
- package/dist/src/api/exchange/createSubAccount.js.map +1 -1
- package/dist/src/api/exchange/createVault.d.ts +23 -10
- package/dist/src/api/exchange/createVault.d.ts.map +1 -1
- package/dist/src/api/exchange/createVault.js +26 -20
- package/dist/src/api/exchange/createVault.js.map +1 -1
- package/dist/src/api/exchange/evmUserModify.d.ts +38 -6
- package/dist/src/api/exchange/evmUserModify.d.ts.map +1 -1
- package/dist/src/api/exchange/evmUserModify.js +18 -6
- package/dist/src/api/exchange/evmUserModify.js.map +1 -1
- package/dist/src/api/exchange/linkStakingUser.d.ts +38 -6
- package/dist/src/api/exchange/linkStakingUser.d.ts.map +1 -1
- package/dist/src/api/exchange/linkStakingUser.js +18 -6
- package/dist/src/api/exchange/linkStakingUser.js.map +1 -1
- package/dist/src/api/exchange/modify.d.ts +38 -6
- package/dist/src/api/exchange/modify.d.ts.map +1 -1
- package/dist/src/api/exchange/modify.js +18 -6
- package/dist/src/api/exchange/modify.js.map +1 -1
- package/dist/src/api/exchange/multiSig.d.ts +1362 -12
- package/dist/src/api/exchange/multiSig.d.ts.map +1 -1
- package/dist/src/api/exchange/multiSig.js +99 -45
- package/dist/src/api/exchange/multiSig.js.map +1 -1
- package/dist/src/api/exchange/noop.d.ts +37 -5
- package/dist/src/api/exchange/noop.d.ts.map +1 -1
- package/dist/src/api/exchange/noop.js +18 -6
- package/dist/src/api/exchange/noop.js.map +1 -1
- package/dist/src/api/exchange/order.d.ts +9 -111
- package/dist/src/api/exchange/order.d.ts.map +1 -1
- package/dist/src/api/exchange/order.js +15 -45
- package/dist/src/api/exchange/order.js.map +1 -1
- package/dist/src/api/exchange/perpDeploy.d.ts +38 -6
- package/dist/src/api/exchange/perpDeploy.d.ts.map +1 -1
- package/dist/src/api/exchange/perpDeploy.js +18 -6
- package/dist/src/api/exchange/perpDeploy.js.map +1 -1
- package/dist/src/api/exchange/registerReferrer.d.ts +36 -11
- package/dist/src/api/exchange/registerReferrer.d.ts.map +1 -1
- package/dist/src/api/exchange/registerReferrer.js +16 -11
- package/dist/src/api/exchange/registerReferrer.js.map +1 -1
- package/dist/src/api/exchange/reserveRequestWeight.d.ts +38 -6
- package/dist/src/api/exchange/reserveRequestWeight.d.ts.map +1 -1
- package/dist/src/api/exchange/reserveRequestWeight.js +18 -6
- package/dist/src/api/exchange/reserveRequestWeight.js.map +1 -1
- package/dist/src/api/exchange/scheduleCancel.d.ts +39 -7
- package/dist/src/api/exchange/scheduleCancel.d.ts.map +1 -1
- package/dist/src/api/exchange/scheduleCancel.js +17 -5
- package/dist/src/api/exchange/scheduleCancel.js.map +1 -1
- package/dist/src/api/exchange/sendAsset.d.ts +40 -8
- package/dist/src/api/exchange/sendAsset.d.ts.map +1 -1
- package/dist/src/api/exchange/sendAsset.js +20 -8
- package/dist/src/api/exchange/sendAsset.js.map +1 -1
- package/dist/src/api/exchange/setDisplayName.d.ts +36 -11
- package/dist/src/api/exchange/setDisplayName.d.ts.map +1 -1
- package/dist/src/api/exchange/setDisplayName.js +16 -11
- package/dist/src/api/exchange/setDisplayName.js.map +1 -1
- package/dist/src/api/exchange/setReferrer.d.ts +36 -11
- package/dist/src/api/exchange/setReferrer.d.ts.map +1 -1
- package/dist/src/api/exchange/setReferrer.js +16 -11
- package/dist/src/api/exchange/setReferrer.js.map +1 -1
- package/dist/src/api/exchange/spotDeploy.d.ts +38 -6
- package/dist/src/api/exchange/spotDeploy.d.ts.map +1 -1
- package/dist/src/api/exchange/spotDeploy.js +18 -6
- package/dist/src/api/exchange/spotDeploy.js.map +1 -1
- package/dist/src/api/exchange/spotSend.d.ts +38 -6
- package/dist/src/api/exchange/spotSend.d.ts.map +1 -1
- package/dist/src/api/exchange/spotSend.js +18 -6
- package/dist/src/api/exchange/spotSend.js.map +1 -1
- package/dist/src/api/exchange/spotUser.d.ts +36 -11
- package/dist/src/api/exchange/spotUser.d.ts.map +1 -1
- package/dist/src/api/exchange/spotUser.js +16 -11
- package/dist/src/api/exchange/spotUser.js.map +1 -1
- package/dist/src/api/exchange/subAccountModify.d.ts +36 -11
- package/dist/src/api/exchange/subAccountModify.d.ts.map +1 -1
- package/dist/src/api/exchange/subAccountModify.js +16 -11
- package/dist/src/api/exchange/subAccountModify.js.map +1 -1
- package/dist/src/api/exchange/subAccountSpotTransfer.d.ts +36 -11
- package/dist/src/api/exchange/subAccountSpotTransfer.d.ts.map +1 -1
- package/dist/src/api/exchange/subAccountSpotTransfer.js +16 -11
- package/dist/src/api/exchange/subAccountSpotTransfer.js.map +1 -1
- package/dist/src/api/exchange/subAccountTransfer.d.ts +36 -11
- package/dist/src/api/exchange/subAccountTransfer.d.ts.map +1 -1
- package/dist/src/api/exchange/subAccountTransfer.js +16 -11
- package/dist/src/api/exchange/subAccountTransfer.js.map +1 -1
- package/dist/src/api/exchange/tokenDelegate.d.ts +38 -6
- package/dist/src/api/exchange/tokenDelegate.d.ts.map +1 -1
- package/dist/src/api/exchange/tokenDelegate.js +18 -6
- package/dist/src/api/exchange/tokenDelegate.js.map +1 -1
- package/dist/src/api/exchange/twapCancel.d.ts +9 -35
- package/dist/src/api/exchange/twapCancel.d.ts.map +1 -1
- package/dist/src/api/exchange/twapCancel.js +15 -22
- package/dist/src/api/exchange/twapCancel.js.map +1 -1
- package/dist/src/api/exchange/twapOrder.d.ts +9 -59
- package/dist/src/api/exchange/twapOrder.d.ts.map +1 -1
- package/dist/src/api/exchange/twapOrder.js +15 -28
- package/dist/src/api/exchange/twapOrder.js.map +1 -1
- package/dist/src/api/exchange/updateIsolatedMargin.d.ts +38 -6
- package/dist/src/api/exchange/updateIsolatedMargin.d.ts.map +1 -1
- package/dist/src/api/exchange/updateIsolatedMargin.js +18 -6
- package/dist/src/api/exchange/updateIsolatedMargin.js.map +1 -1
- package/dist/src/api/exchange/updateLeverage.d.ts +38 -6
- package/dist/src/api/exchange/updateLeverage.d.ts.map +1 -1
- package/dist/src/api/exchange/updateLeverage.js +18 -6
- package/dist/src/api/exchange/updateLeverage.js.map +1 -1
- package/dist/src/api/exchange/usdClassTransfer.d.ts +38 -6
- package/dist/src/api/exchange/usdClassTransfer.d.ts.map +1 -1
- package/dist/src/api/exchange/usdClassTransfer.js +18 -6
- package/dist/src/api/exchange/usdClassTransfer.js.map +1 -1
- package/dist/src/api/exchange/usdSend.d.ts +38 -6
- package/dist/src/api/exchange/usdSend.d.ts.map +1 -1
- package/dist/src/api/exchange/usdSend.js +18 -6
- package/dist/src/api/exchange/usdSend.js.map +1 -1
- package/dist/src/api/exchange/userDexAbstraction.d.ts +44 -12
- package/dist/src/api/exchange/userDexAbstraction.d.ts.map +1 -1
- package/dist/src/api/exchange/userDexAbstraction.js +22 -10
- package/dist/src/api/exchange/userDexAbstraction.js.map +1 -1
- package/dist/src/api/exchange/validatorL1Stream.d.ts +116 -0
- package/dist/src/api/exchange/validatorL1Stream.d.ts.map +1 -0
- package/dist/src/api/exchange/validatorL1Stream.js +84 -0
- package/dist/src/api/exchange/validatorL1Stream.js.map +1 -0
- package/dist/src/api/exchange/vaultDistribute.d.ts +36 -11
- package/dist/src/api/exchange/vaultDistribute.d.ts.map +1 -1
- package/dist/src/api/exchange/vaultDistribute.js +16 -11
- package/dist/src/api/exchange/vaultDistribute.js.map +1 -1
- package/dist/src/api/exchange/vaultModify.d.ts +36 -11
- package/dist/src/api/exchange/vaultModify.d.ts.map +1 -1
- package/dist/src/api/exchange/vaultModify.js +16 -11
- package/dist/src/api/exchange/vaultModify.js.map +1 -1
- package/dist/src/api/exchange/vaultTransfer.d.ts +38 -6
- package/dist/src/api/exchange/vaultTransfer.d.ts.map +1 -1
- package/dist/src/api/exchange/vaultTransfer.js +18 -6
- package/dist/src/api/exchange/vaultTransfer.js.map +1 -1
- package/dist/src/api/exchange/withdraw3.d.ts +38 -6
- package/dist/src/api/exchange/withdraw3.d.ts.map +1 -1
- package/dist/src/api/exchange/withdraw3.js +18 -6
- package/dist/src/api/exchange/withdraw3.js.map +1 -1
- package/dist/src/api/exchange/~client.d.ts +121 -451
- package/dist/src/api/exchange/~client.d.ts.map +1 -1
- package/dist/src/api/exchange/~client.js +33 -21
- package/dist/src/api/exchange/~client.js.map +1 -1
- package/dist/src/api/exchange/~mod.d.ts +2 -1
- package/dist/src/api/exchange/~mod.d.ts.map +1 -1
- package/dist/src/api/exchange/~mod.js +2 -1
- package/dist/src/api/exchange/~mod.js.map +1 -1
- package/dist/src/api/info/activeAssetData.d.ts +2 -2
- package/dist/src/api/info/activeAssetData.d.ts.map +1 -1
- package/dist/src/api/info/activeAssetData.js +8 -2
- package/dist/src/api/info/activeAssetData.js.map +1 -1
- package/dist/src/api/info/alignedQuoteTokenInfo.d.ts +2 -2
- package/dist/src/api/info/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/dist/src/api/info/alignedQuoteTokenInfo.js +8 -2
- package/dist/src/api/info/alignedQuoteTokenInfo.js.map +1 -1
- package/dist/src/api/info/allMids.d.ts +2 -2
- package/dist/src/api/info/allMids.d.ts.map +1 -1
- package/dist/src/api/info/allMids.js +8 -2
- package/dist/src/api/info/allMids.js.map +1 -1
- package/dist/src/api/info/allPerpMetas.d.ts +1 -1
- package/dist/src/api/info/allPerpMetas.d.ts.map +1 -1
- package/dist/src/api/info/allPerpMetas.js +7 -2
- package/dist/src/api/info/allPerpMetas.js.map +1 -1
- package/dist/src/api/info/blockDetails.d.ts +3 -3
- package/dist/src/api/info/blockDetails.d.ts.map +1 -1
- package/dist/src/api/info/blockDetails.js +8 -2
- package/dist/src/api/info/blockDetails.js.map +1 -1
- package/dist/src/api/info/candleSnapshot.d.ts +2 -2
- package/dist/src/api/info/candleSnapshot.d.ts.map +1 -1
- package/dist/src/api/info/candleSnapshot.js +8 -2
- package/dist/src/api/info/candleSnapshot.js.map +1 -1
- package/dist/src/api/info/clearinghouseState.d.ts +2 -2
- package/dist/src/api/info/clearinghouseState.d.ts.map +1 -1
- package/dist/src/api/info/clearinghouseState.js +8 -2
- package/dist/src/api/info/clearinghouseState.js.map +1 -1
- package/dist/src/api/info/delegations.d.ts +2 -2
- package/dist/src/api/info/delegations.d.ts.map +1 -1
- package/dist/src/api/info/delegations.js +8 -2
- package/dist/src/api/info/delegations.js.map +1 -1
- package/dist/src/api/info/delegatorHistory.d.ts +2 -2
- package/dist/src/api/info/delegatorHistory.d.ts.map +1 -1
- package/dist/src/api/info/delegatorHistory.js +8 -2
- package/dist/src/api/info/delegatorHistory.js.map +1 -1
- package/dist/src/api/info/delegatorRewards.d.ts +2 -2
- package/dist/src/api/info/delegatorRewards.d.ts.map +1 -1
- package/dist/src/api/info/delegatorRewards.js +8 -2
- package/dist/src/api/info/delegatorRewards.js.map +1 -1
- package/dist/src/api/info/delegatorSummary.d.ts +2 -2
- package/dist/src/api/info/delegatorSummary.d.ts.map +1 -1
- package/dist/src/api/info/delegatorSummary.js +8 -2
- package/dist/src/api/info/delegatorSummary.js.map +1 -1
- package/dist/src/api/info/exchangeStatus.d.ts +1 -1
- package/dist/src/api/info/exchangeStatus.d.ts.map +1 -1
- package/dist/src/api/info/exchangeStatus.js +8 -3
- package/dist/src/api/info/exchangeStatus.js.map +1 -1
- package/dist/src/api/info/extraAgents.d.ts +2 -2
- package/dist/src/api/info/extraAgents.d.ts.map +1 -1
- package/dist/src/api/info/extraAgents.js +8 -2
- package/dist/src/api/info/extraAgents.js.map +1 -1
- package/dist/src/api/info/frontendOpenOrders.d.ts +2 -2
- package/dist/src/api/info/frontendOpenOrders.d.ts.map +1 -1
- package/dist/src/api/info/frontendOpenOrders.js +8 -2
- package/dist/src/api/info/frontendOpenOrders.js.map +1 -1
- package/dist/src/api/info/fundingHistory.d.ts +2 -2
- package/dist/src/api/info/fundingHistory.d.ts.map +1 -1
- package/dist/src/api/info/fundingHistory.js +8 -2
- package/dist/src/api/info/fundingHistory.js.map +1 -1
- package/dist/src/api/info/gossipRootIps.d.ts +1 -1
- package/dist/src/api/info/gossipRootIps.d.ts.map +1 -1
- package/dist/src/api/info/gossipRootIps.js +7 -3
- package/dist/src/api/info/gossipRootIps.js.map +1 -1
- package/dist/src/api/info/historicalOrders.d.ts +2 -2
- package/dist/src/api/info/historicalOrders.d.ts.map +1 -1
- package/dist/src/api/info/historicalOrders.js +8 -2
- package/dist/src/api/info/historicalOrders.js.map +1 -1
- package/dist/src/api/info/isVip.d.ts +2 -2
- package/dist/src/api/info/isVip.d.ts.map +1 -1
- package/dist/src/api/info/isVip.js +8 -2
- package/dist/src/api/info/isVip.js.map +1 -1
- package/dist/src/api/info/l2Book.d.ts +2 -2
- package/dist/src/api/info/l2Book.d.ts.map +1 -1
- package/dist/src/api/info/l2Book.js +8 -2
- package/dist/src/api/info/l2Book.js.map +1 -1
- package/dist/src/api/info/leadingVaults.d.ts +2 -2
- package/dist/src/api/info/leadingVaults.d.ts.map +1 -1
- package/dist/src/api/info/leadingVaults.js +8 -2
- package/dist/src/api/info/leadingVaults.js.map +1 -1
- package/dist/src/api/info/legalCheck.d.ts +2 -2
- package/dist/src/api/info/legalCheck.d.ts.map +1 -1
- package/dist/src/api/info/legalCheck.js +8 -2
- package/dist/src/api/info/legalCheck.js.map +1 -1
- package/dist/src/api/info/liquidatable.d.ts +1 -1
- package/dist/src/api/info/liquidatable.d.ts.map +1 -1
- package/dist/src/api/info/liquidatable.js +7 -3
- package/dist/src/api/info/liquidatable.js.map +1 -1
- package/dist/src/api/info/marginTable.d.ts +2 -2
- package/dist/src/api/info/marginTable.d.ts.map +1 -1
- package/dist/src/api/info/marginTable.js +8 -2
- package/dist/src/api/info/marginTable.js.map +1 -1
- package/dist/src/api/info/maxBuilderFee.d.ts +2 -2
- package/dist/src/api/info/maxBuilderFee.d.ts.map +1 -1
- package/dist/src/api/info/maxBuilderFee.js +8 -2
- package/dist/src/api/info/maxBuilderFee.js.map +1 -1
- package/dist/src/api/info/maxMarketOrderNtls.d.ts +1 -1
- package/dist/src/api/info/maxMarketOrderNtls.d.ts.map +1 -1
- package/dist/src/api/info/maxMarketOrderNtls.js +8 -2
- package/dist/src/api/info/maxMarketOrderNtls.js.map +1 -1
- package/dist/src/api/info/meta.d.ts +2 -2
- package/dist/src/api/info/meta.d.ts.map +1 -1
- package/dist/src/api/info/meta.js +8 -2
- package/dist/src/api/info/meta.js.map +1 -1
- package/dist/src/api/info/metaAndAssetCtxs.d.ts +2 -2
- package/dist/src/api/info/metaAndAssetCtxs.d.ts.map +1 -1
- package/dist/src/api/info/metaAndAssetCtxs.js +8 -2
- package/dist/src/api/info/metaAndAssetCtxs.js.map +1 -1
- package/dist/src/api/info/openOrders.d.ts +2 -2
- package/dist/src/api/info/openOrders.d.ts.map +1 -1
- package/dist/src/api/info/openOrders.js +8 -2
- package/dist/src/api/info/openOrders.js.map +1 -1
- package/dist/src/api/info/orderStatus.d.ts +2 -2
- package/dist/src/api/info/orderStatus.d.ts.map +1 -1
- package/dist/src/api/info/orderStatus.js +8 -2
- package/dist/src/api/info/orderStatus.js.map +1 -1
- package/dist/src/api/info/perpDeployAuctionStatus.d.ts +1 -1
- package/dist/src/api/info/perpDeployAuctionStatus.d.ts.map +1 -1
- package/dist/src/api/info/perpDeployAuctionStatus.js +8 -3
- package/dist/src/api/info/perpDeployAuctionStatus.js.map +1 -1
- package/dist/src/api/info/perpDexLimits.d.ts +2 -2
- package/dist/src/api/info/perpDexLimits.d.ts.map +1 -1
- package/dist/src/api/info/perpDexLimits.js +8 -2
- package/dist/src/api/info/perpDexLimits.js.map +1 -1
- package/dist/src/api/info/perpDexs.d.ts +1 -1
- package/dist/src/api/info/perpDexs.d.ts.map +1 -1
- package/dist/src/api/info/perpDexs.js +8 -3
- package/dist/src/api/info/perpDexs.js.map +1 -1
- package/dist/src/api/info/perpsAtOpenInterestCap.d.ts +2 -2
- package/dist/src/api/info/perpsAtOpenInterestCap.d.ts.map +1 -1
- package/dist/src/api/info/perpsAtOpenInterestCap.js +7 -2
- package/dist/src/api/info/perpsAtOpenInterestCap.js.map +1 -1
- package/dist/src/api/info/portfolio.d.ts +2 -2
- package/dist/src/api/info/portfolio.d.ts.map +1 -1
- package/dist/src/api/info/portfolio.js +8 -2
- package/dist/src/api/info/portfolio.js.map +1 -1
- package/dist/src/api/info/preTransferCheck.d.ts +2 -2
- package/dist/src/api/info/preTransferCheck.d.ts.map +1 -1
- package/dist/src/api/info/preTransferCheck.js +8 -2
- package/dist/src/api/info/preTransferCheck.js.map +1 -1
- package/dist/src/api/info/predictedFundings.d.ts +1 -1
- package/dist/src/api/info/predictedFundings.d.ts.map +1 -1
- package/dist/src/api/info/predictedFundings.js +8 -3
- package/dist/src/api/info/predictedFundings.js.map +1 -1
- package/dist/src/api/info/recentTrades.d.ts +2 -2
- package/dist/src/api/info/recentTrades.d.ts.map +1 -1
- package/dist/src/api/info/recentTrades.js +8 -2
- package/dist/src/api/info/recentTrades.js.map +1 -1
- package/dist/src/api/info/referral.d.ts +2 -2
- package/dist/src/api/info/referral.d.ts.map +1 -1
- package/dist/src/api/info/referral.js +8 -2
- package/dist/src/api/info/referral.js.map +1 -1
- package/dist/src/api/info/spotClearinghouseState.d.ts +2 -2
- package/dist/src/api/info/spotClearinghouseState.d.ts.map +1 -1
- package/dist/src/api/info/spotClearinghouseState.js +8 -2
- package/dist/src/api/info/spotClearinghouseState.js.map +1 -1
- package/dist/src/api/info/spotDeployState.d.ts +2 -2
- package/dist/src/api/info/spotDeployState.d.ts.map +1 -1
- package/dist/src/api/info/spotDeployState.js +8 -2
- package/dist/src/api/info/spotDeployState.js.map +1 -1
- package/dist/src/api/info/spotMeta.d.ts +1 -1
- package/dist/src/api/info/spotMeta.d.ts.map +1 -1
- package/dist/src/api/info/spotMeta.js +8 -3
- package/dist/src/api/info/spotMeta.js.map +1 -1
- package/dist/src/api/info/spotMetaAndAssetCtxs.d.ts +1 -1
- package/dist/src/api/info/spotMetaAndAssetCtxs.d.ts.map +1 -1
- package/dist/src/api/info/spotMetaAndAssetCtxs.js +8 -3
- package/dist/src/api/info/spotMetaAndAssetCtxs.js.map +1 -1
- package/dist/src/api/info/spotPairDeployAuctionStatus.d.ts +1 -1
- package/dist/src/api/info/spotPairDeployAuctionStatus.d.ts.map +1 -1
- package/dist/src/api/info/spotPairDeployAuctionStatus.js +8 -3
- package/dist/src/api/info/spotPairDeployAuctionStatus.js.map +1 -1
- package/dist/src/api/info/subAccounts.d.ts +2 -2
- package/dist/src/api/info/subAccounts.d.ts.map +1 -1
- package/dist/src/api/info/subAccounts.js +8 -2
- package/dist/src/api/info/subAccounts.js.map +1 -1
- package/dist/src/api/info/subAccounts2.d.ts +2 -2
- package/dist/src/api/info/subAccounts2.d.ts.map +1 -1
- package/dist/src/api/info/subAccounts2.js +8 -2
- package/dist/src/api/info/subAccounts2.js.map +1 -1
- package/dist/src/api/info/tokenDetails.d.ts +2 -2
- package/dist/src/api/info/tokenDetails.d.ts.map +1 -1
- package/dist/src/api/info/tokenDetails.js +8 -2
- package/dist/src/api/info/tokenDetails.js.map +1 -1
- package/dist/src/api/info/twapHistory.d.ts +2 -2
- package/dist/src/api/info/twapHistory.d.ts.map +1 -1
- package/dist/src/api/info/twapHistory.js +8 -2
- package/dist/src/api/info/twapHistory.js.map +1 -1
- package/dist/src/api/info/txDetails.d.ts +3 -3
- package/dist/src/api/info/txDetails.d.ts.map +1 -1
- package/dist/src/api/info/txDetails.js +8 -2
- package/dist/src/api/info/txDetails.js.map +1 -1
- package/dist/src/api/info/userDetails.d.ts +3 -3
- package/dist/src/api/info/userDetails.d.ts.map +1 -1
- package/dist/src/api/info/userDetails.js +8 -2
- package/dist/src/api/info/userDetails.js.map +1 -1
- package/dist/src/api/info/userDexAbstraction.d.ts +8 -8
- package/dist/src/api/info/userDexAbstraction.d.ts.map +1 -1
- package/dist/src/api/info/userDexAbstraction.js +11 -5
- package/dist/src/api/info/userDexAbstraction.js.map +1 -1
- package/dist/src/api/info/userFees.d.ts +2 -2
- package/dist/src/api/info/userFees.d.ts.map +1 -1
- package/dist/src/api/info/userFees.js +8 -2
- package/dist/src/api/info/userFees.js.map +1 -1
- package/dist/src/api/info/userFills.d.ts +2 -2
- package/dist/src/api/info/userFills.d.ts.map +1 -1
- package/dist/src/api/info/userFills.js +8 -2
- package/dist/src/api/info/userFills.js.map +1 -1
- package/dist/src/api/info/userFillsByTime.d.ts +2 -2
- package/dist/src/api/info/userFillsByTime.d.ts.map +1 -1
- package/dist/src/api/info/userFillsByTime.js +8 -2
- package/dist/src/api/info/userFillsByTime.js.map +1 -1
- package/dist/src/api/info/userFunding.d.ts +2 -2
- package/dist/src/api/info/userFunding.d.ts.map +1 -1
- package/dist/src/api/info/userFunding.js +8 -2
- package/dist/src/api/info/userFunding.js.map +1 -1
- package/dist/src/api/info/userNonFundingLedgerUpdates.d.ts +2 -2
- package/dist/src/api/info/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/dist/src/api/info/userNonFundingLedgerUpdates.js +8 -2
- package/dist/src/api/info/userNonFundingLedgerUpdates.js.map +1 -1
- package/dist/src/api/info/userRateLimit.d.ts +2 -2
- package/dist/src/api/info/userRateLimit.d.ts.map +1 -1
- package/dist/src/api/info/userRateLimit.js +8 -2
- package/dist/src/api/info/userRateLimit.js.map +1 -1
- package/dist/src/api/info/userRole.d.ts +2 -2
- package/dist/src/api/info/userRole.d.ts.map +1 -1
- package/dist/src/api/info/userRole.js +8 -2
- package/dist/src/api/info/userRole.js.map +1 -1
- package/dist/src/api/info/userToMultiSigSigners.d.ts +2 -2
- package/dist/src/api/info/userToMultiSigSigners.d.ts.map +1 -1
- package/dist/src/api/info/userToMultiSigSigners.js +8 -2
- package/dist/src/api/info/userToMultiSigSigners.js.map +1 -1
- package/dist/src/api/info/userTwapSliceFills.d.ts +2 -2
- package/dist/src/api/info/userTwapSliceFills.d.ts.map +1 -1
- package/dist/src/api/info/userTwapSliceFills.js +8 -2
- package/dist/src/api/info/userTwapSliceFills.js.map +1 -1
- package/dist/src/api/info/userTwapSliceFillsByTime.d.ts +2 -2
- package/dist/src/api/info/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/dist/src/api/info/userTwapSliceFillsByTime.js +8 -2
- package/dist/src/api/info/userTwapSliceFillsByTime.js.map +1 -1
- package/dist/src/api/info/userVaultEquities.d.ts +2 -2
- package/dist/src/api/info/userVaultEquities.d.ts.map +1 -1
- package/dist/src/api/info/userVaultEquities.js +8 -2
- package/dist/src/api/info/userVaultEquities.js.map +1 -1
- package/dist/src/api/info/validatorL1Votes.d.ts +1 -1
- package/dist/src/api/info/validatorL1Votes.d.ts.map +1 -1
- package/dist/src/api/info/validatorL1Votes.js +8 -3
- package/dist/src/api/info/validatorL1Votes.js.map +1 -1
- package/dist/src/api/info/validatorSummaries.d.ts +1 -1
- package/dist/src/api/info/validatorSummaries.d.ts.map +1 -1
- package/dist/src/api/info/validatorSummaries.js +8 -3
- package/dist/src/api/info/validatorSummaries.js.map +1 -1
- package/dist/src/api/info/vaultDetails.d.ts +2 -2
- package/dist/src/api/info/vaultDetails.d.ts.map +1 -1
- package/dist/src/api/info/vaultDetails.js +8 -2
- package/dist/src/api/info/vaultDetails.js.map +1 -1
- package/dist/src/api/info/vaultSummaries.d.ts +1 -1
- package/dist/src/api/info/vaultSummaries.d.ts.map +1 -1
- package/dist/src/api/info/vaultSummaries.js +8 -3
- package/dist/src/api/info/vaultSummaries.js.map +1 -1
- package/dist/src/api/info/webData2.d.ts +2 -2
- package/dist/src/api/info/webData2.d.ts.map +1 -1
- package/dist/src/api/info/webData2.js +8 -2
- package/dist/src/api/info/webData2.js.map +1 -1
- package/dist/src/api/info/~client.d.ts +134 -1344
- package/dist/src/api/info/~client.d.ts.map +1 -1
- package/dist/src/api/info/~client.js.map +1 -1
- package/dist/src/api/subscription/activeAssetCtx.d.ts +3 -3
- package/dist/src/api/subscription/activeAssetCtx.d.ts.map +1 -1
- package/dist/src/api/subscription/activeAssetCtx.js +8 -2
- package/dist/src/api/subscription/activeAssetCtx.js.map +1 -1
- package/dist/src/api/subscription/activeAssetData.d.ts +3 -3
- package/dist/src/api/subscription/activeAssetData.d.ts.map +1 -1
- package/dist/src/api/subscription/activeAssetData.js +8 -2
- package/dist/src/api/subscription/activeAssetData.js.map +1 -1
- package/dist/src/api/subscription/activeSpotAssetCtx.d.ts +3 -3
- package/dist/src/api/subscription/activeSpotAssetCtx.d.ts.map +1 -1
- package/dist/src/api/subscription/activeSpotAssetCtx.js +8 -2
- package/dist/src/api/subscription/activeSpotAssetCtx.js.map +1 -1
- package/dist/src/api/subscription/allMids.d.ts +3 -3
- package/dist/src/api/subscription/allMids.d.ts.map +1 -1
- package/dist/src/api/subscription/allMids.js +8 -2
- package/dist/src/api/subscription/allMids.js.map +1 -1
- package/dist/src/api/subscription/assetCtxs.d.ts +3 -3
- package/dist/src/api/subscription/assetCtxs.d.ts.map +1 -1
- package/dist/src/api/subscription/assetCtxs.js +8 -2
- package/dist/src/api/subscription/assetCtxs.js.map +1 -1
- package/dist/src/api/subscription/bbo.d.ts +3 -3
- package/dist/src/api/subscription/bbo.d.ts.map +1 -1
- package/dist/src/api/subscription/bbo.js +8 -2
- package/dist/src/api/subscription/bbo.js.map +1 -1
- package/dist/src/api/subscription/candle.d.ts +3 -3
- package/dist/src/api/subscription/candle.d.ts.map +1 -1
- package/dist/src/api/subscription/candle.js +7 -2
- package/dist/src/api/subscription/candle.js.map +1 -1
- package/dist/src/api/subscription/clearinghouseState.d.ts +3 -3
- package/dist/src/api/subscription/clearinghouseState.d.ts.map +1 -1
- package/dist/src/api/subscription/clearinghouseState.js +8 -2
- package/dist/src/api/subscription/clearinghouseState.js.map +1 -1
- package/dist/src/api/subscription/explorerBlock.d.ts +2 -2
- package/dist/src/api/subscription/explorerBlock.d.ts.map +1 -1
- package/dist/src/api/subscription/explorerBlock.js +8 -2
- package/dist/src/api/subscription/explorerBlock.js.map +1 -1
- package/dist/src/api/subscription/explorerTxs.d.ts +2 -2
- package/dist/src/api/subscription/explorerTxs.d.ts.map +1 -1
- package/dist/src/api/subscription/explorerTxs.js +8 -2
- package/dist/src/api/subscription/explorerTxs.js.map +1 -1
- package/dist/src/api/subscription/l2Book.d.ts +3 -3
- package/dist/src/api/subscription/l2Book.d.ts.map +1 -1
- package/dist/src/api/subscription/l2Book.js +8 -2
- package/dist/src/api/subscription/l2Book.js.map +1 -1
- package/dist/src/api/subscription/notification.d.ts +3 -3
- package/dist/src/api/subscription/notification.d.ts.map +1 -1
- package/dist/src/api/subscription/notification.js +8 -2
- package/dist/src/api/subscription/notification.js.map +1 -1
- package/dist/src/api/subscription/openOrders.d.ts +3 -3
- package/dist/src/api/subscription/openOrders.d.ts.map +1 -1
- package/dist/src/api/subscription/openOrders.js +8 -2
- package/dist/src/api/subscription/openOrders.js.map +1 -1
- package/dist/src/api/subscription/orderUpdates.d.ts +3 -3
- package/dist/src/api/subscription/orderUpdates.d.ts.map +1 -1
- package/dist/src/api/subscription/orderUpdates.js +8 -2
- package/dist/src/api/subscription/orderUpdates.js.map +1 -1
- package/dist/src/api/subscription/spotAssetCtxs.d.ts +67 -0
- package/dist/src/api/subscription/spotAssetCtxs.d.ts.map +1 -0
- package/dist/src/api/subscription/spotAssetCtxs.js +67 -0
- package/dist/src/api/subscription/spotAssetCtxs.js.map +1 -0
- package/dist/src/api/subscription/spotState.d.ts +3 -3
- package/dist/src/api/subscription/spotState.d.ts.map +1 -1
- package/dist/src/api/subscription/spotState.js +8 -2
- package/dist/src/api/subscription/spotState.js.map +1 -1
- package/dist/src/api/subscription/trades.d.ts +3 -3
- package/dist/src/api/subscription/trades.d.ts.map +1 -1
- package/dist/src/api/subscription/trades.js +7 -2
- package/dist/src/api/subscription/trades.js.map +1 -1
- package/dist/src/api/subscription/userEvents.d.ts +3 -3
- package/dist/src/api/subscription/userEvents.d.ts.map +1 -1
- package/dist/src/api/subscription/userEvents.js +8 -2
- package/dist/src/api/subscription/userEvents.js.map +1 -1
- package/dist/src/api/subscription/userFills.d.ts +3 -3
- package/dist/src/api/subscription/userFills.d.ts.map +1 -1
- package/dist/src/api/subscription/userFills.js +8 -2
- package/dist/src/api/subscription/userFills.js.map +1 -1
- package/dist/src/api/subscription/userFundings.d.ts +3 -3
- package/dist/src/api/subscription/userFundings.d.ts.map +1 -1
- package/dist/src/api/subscription/userFundings.js +8 -2
- package/dist/src/api/subscription/userFundings.js.map +1 -1
- package/dist/src/api/subscription/userHistoricalOrders.d.ts +3 -3
- package/dist/src/api/subscription/userHistoricalOrders.d.ts.map +1 -1
- package/dist/src/api/subscription/userHistoricalOrders.js +8 -2
- package/dist/src/api/subscription/userHistoricalOrders.js.map +1 -1
- package/dist/src/api/subscription/userNonFundingLedgerUpdates.d.ts +3 -3
- package/dist/src/api/subscription/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/dist/src/api/subscription/userNonFundingLedgerUpdates.js +8 -2
- package/dist/src/api/subscription/userNonFundingLedgerUpdates.js.map +1 -1
- package/dist/src/api/subscription/userTwapHistory.d.ts +3 -3
- package/dist/src/api/subscription/userTwapHistory.d.ts.map +1 -1
- package/dist/src/api/subscription/userTwapHistory.js +8 -2
- package/dist/src/api/subscription/userTwapHistory.js.map +1 -1
- package/dist/src/api/subscription/userTwapSliceFills.d.ts +3 -3
- package/dist/src/api/subscription/userTwapSliceFills.d.ts.map +1 -1
- package/dist/src/api/subscription/userTwapSliceFills.js +8 -2
- package/dist/src/api/subscription/userTwapSliceFills.js.map +1 -1
- package/dist/src/api/subscription/webData2.d.ts +3 -3
- package/dist/src/api/subscription/webData2.d.ts.map +1 -1
- package/dist/src/api/subscription/webData2.js +8 -2
- package/dist/src/api/subscription/webData2.js.map +1 -1
- package/dist/src/api/subscription/webData3.d.ts +3 -3
- package/dist/src/api/subscription/webData3.d.ts.map +1 -1
- package/dist/src/api/subscription/webData3.js +8 -2
- package/dist/src/api/subscription/webData3.js.map +1 -1
- package/dist/src/api/subscription/~client.d.ts +46 -25
- package/dist/src/api/subscription/~client.d.ts.map +1 -1
- package/dist/src/api/subscription/~client.js +22 -0
- package/dist/src/api/subscription/~client.js.map +1 -1
- package/dist/src/api/subscription/~mod.d.ts +1 -0
- package/dist/src/api/subscription/~mod.d.ts.map +1 -1
- package/dist/src/api/subscription/~mod.js +1 -0
- package/dist/src/api/subscription/~mod.js.map +1 -1
- package/dist/src/signing/mod.d.ts +6 -6
- package/dist/src/signing/mod.js +6 -6
- package/package.json +1 -1
- package/src/api/_base.ts +6 -2
- package/src/api/exchange/_base/_execute.ts +36 -5
- package/src/api/exchange/_base/_nonce.ts +12 -1
- package/src/api/exchange/_base/_types.ts +26 -0
- package/src/api/exchange/_base/mod.ts +0 -1
- package/src/api/exchange/agentEnableDexAbstraction.ts +36 -16
- package/src/api/exchange/approveAgent.ts +37 -16
- package/src/api/exchange/approveBuilderFee.ts +37 -16
- package/src/api/exchange/batchModify.ts +32 -16
- package/src/api/exchange/cDeposit.ts +37 -16
- package/src/api/exchange/cSignerAction.ts +34 -20
- package/src/api/exchange/cValidatorAction.ts +34 -20
- package/src/api/exchange/cWithdraw.ts +37 -16
- package/src/api/exchange/cancel.ts +27 -49
- package/src/api/exchange/cancelByCloid.ts +32 -15
- package/src/api/exchange/claimRewards.ts +32 -19
- package/src/api/exchange/convertToMultiSigUser.ts +38 -18
- package/src/api/exchange/createSubAccount.ts +50 -36
- package/src/api/exchange/createVault.ts +50 -36
- package/src/api/exchange/evmUserModify.ts +36 -15
- package/src/api/exchange/linkStakingUser.ts +37 -16
- package/src/api/exchange/modify.ts +36 -16
- package/src/api/exchange/multiSig.ts +118 -73
- package/src/api/exchange/noop.ts +34 -14
- package/src/api/exchange/order.ts +27 -99
- package/src/api/exchange/perpDeploy.ts +36 -15
- package/src/api/exchange/registerReferrer.ts +34 -20
- package/src/api/exchange/reserveRequestWeight.ts +36 -15
- package/src/api/exchange/scheduleCancel.ts +38 -17
- package/src/api/exchange/sendAsset.ts +39 -18
- package/src/api/exchange/setDisplayName.ts +34 -20
- package/src/api/exchange/setReferrer.ts +34 -20
- package/src/api/exchange/spotDeploy.ts +36 -15
- package/src/api/exchange/spotSend.ts +37 -16
- package/src/api/exchange/spotUser.ts +34 -20
- package/src/api/exchange/subAccountModify.ts +34 -20
- package/src/api/exchange/subAccountSpotTransfer.ts +34 -20
- package/src/api/exchange/subAccountTransfer.ts +34 -20
- package/src/api/exchange/tokenDelegate.ts +37 -16
- package/src/api/exchange/twapCancel.ts +27 -49
- package/src/api/exchange/twapOrder.ts +27 -61
- package/src/api/exchange/updateIsolatedMargin.ts +36 -15
- package/src/api/exchange/updateLeverage.ts +36 -15
- package/src/api/exchange/usdClassTransfer.ts +37 -16
- package/src/api/exchange/usdSend.ts +37 -16
- package/src/api/exchange/userDexAbstraction.ts +48 -27
- package/src/api/exchange/validatorL1Stream.ts +136 -0
- package/src/api/exchange/vaultDistribute.ts +34 -20
- package/src/api/exchange/vaultModify.ts +34 -20
- package/src/api/exchange/vaultTransfer.ts +36 -15
- package/src/api/exchange/withdraw3.ts +37 -16
- package/src/api/exchange/~client.ts +225 -121
- package/src/api/exchange/~mod.ts +2 -1
- package/src/api/info/activeAssetData.ts +11 -4
- package/src/api/info/alignedQuoteTokenInfo.ts +11 -4
- package/src/api/info/allMids.ts +11 -4
- package/src/api/info/allPerpMetas.ts +10 -5
- package/src/api/info/blockDetails.ts +12 -5
- package/src/api/info/candleSnapshot.ts +11 -5
- package/src/api/info/clearinghouseState.ts +11 -4
- package/src/api/info/delegations.ts +11 -4
- package/src/api/info/delegatorHistory.ts +11 -4
- package/src/api/info/delegatorRewards.ts +11 -4
- package/src/api/info/delegatorSummary.ts +11 -4
- package/src/api/info/exchangeStatus.ts +11 -4
- package/src/api/info/extraAgents.ts +11 -4
- package/src/api/info/frontendOpenOrders.ts +11 -5
- package/src/api/info/fundingHistory.ts +11 -4
- package/src/api/info/gossipRootIps.ts +9 -4
- package/src/api/info/historicalOrders.ts +11 -5
- package/src/api/info/isVip.ts +11 -4
- package/src/api/info/l2Book.ts +11 -5
- package/src/api/info/leadingVaults.ts +11 -4
- package/src/api/info/legalCheck.ts +11 -4
- package/src/api/info/liquidatable.ts +9 -4
- package/src/api/info/marginTable.ts +11 -4
- package/src/api/info/maxBuilderFee.ts +11 -4
- package/src/api/info/maxMarketOrderNtls.ts +11 -4
- package/src/api/info/meta.ts +11 -5
- package/src/api/info/metaAndAssetCtxs.ts +11 -5
- package/src/api/info/openOrders.ts +11 -5
- package/src/api/info/orderStatus.ts +11 -5
- package/src/api/info/perpDeployAuctionStatus.ts +11 -4
- package/src/api/info/perpDexLimits.ts +11 -4
- package/src/api/info/perpDexs.ts +11 -4
- package/src/api/info/perpsAtOpenInterestCap.ts +9 -4
- package/src/api/info/portfolio.ts +11 -4
- package/src/api/info/preTransferCheck.ts +11 -4
- package/src/api/info/predictedFundings.ts +11 -4
- package/src/api/info/recentTrades.ts +11 -4
- package/src/api/info/referral.ts +11 -4
- package/src/api/info/spotClearinghouseState.ts +11 -5
- package/src/api/info/spotDeployState.ts +11 -4
- package/src/api/info/spotMeta.ts +11 -4
- package/src/api/info/spotMetaAndAssetCtxs.ts +11 -5
- package/src/api/info/spotPairDeployAuctionStatus.ts +11 -4
- package/src/api/info/subAccounts.ts +11 -5
- package/src/api/info/subAccounts2.ts +11 -5
- package/src/api/info/tokenDetails.ts +11 -4
- package/src/api/info/twapHistory.ts +11 -5
- package/src/api/info/txDetails.ts +12 -5
- package/src/api/info/userDetails.ts +12 -6
- package/src/api/info/userDexAbstraction.ts +19 -12
- package/src/api/info/userFees.ts +11 -4
- package/src/api/info/userFills.ts +11 -5
- package/src/api/info/userFillsByTime.ts +11 -5
- package/src/api/info/userFunding.ts +11 -4
- package/src/api/info/userNonFundingLedgerUpdates.ts +11 -4
- package/src/api/info/userRateLimit.ts +11 -4
- package/src/api/info/userRole.ts +11 -4
- package/src/api/info/userToMultiSigSigners.ts +11 -4
- package/src/api/info/userTwapSliceFills.ts +11 -5
- package/src/api/info/userTwapSliceFillsByTime.ts +11 -5
- package/src/api/info/userVaultEquities.ts +11 -4
- package/src/api/info/validatorL1Votes.ts +11 -4
- package/src/api/info/validatorSummaries.ts +11 -4
- package/src/api/info/vaultDetails.ts +11 -5
- package/src/api/info/vaultSummaries.ts +11 -4
- package/src/api/info/webData2.ts +11 -5
- package/src/api/info/~client.ts +263 -141
- package/src/api/subscription/activeAssetCtx.ts +12 -5
- package/src/api/subscription/activeAssetData.ts +12 -6
- package/src/api/subscription/activeSpotAssetCtx.ts +12 -5
- package/src/api/subscription/allMids.ts +12 -5
- package/src/api/subscription/assetCtxs.ts +12 -5
- package/src/api/subscription/bbo.ts +12 -6
- package/src/api/subscription/candle.ts +11 -6
- package/src/api/subscription/clearinghouseState.ts +12 -6
- package/src/api/subscription/explorerBlock.ts +12 -5
- package/src/api/subscription/explorerTxs.ts +12 -5
- package/src/api/subscription/l2Book.ts +12 -6
- package/src/api/subscription/notification.ts +12 -5
- package/src/api/subscription/openOrders.ts +12 -6
- package/src/api/subscription/orderUpdates.ts +12 -6
- package/src/api/subscription/spotAssetCtxs.ts +118 -0
- package/src/api/subscription/spotState.ts +12 -6
- package/src/api/subscription/trades.ts +11 -6
- package/src/api/subscription/userEvents.ts +12 -6
- package/src/api/subscription/userFills.ts +12 -6
- package/src/api/subscription/userFundings.ts +12 -5
- package/src/api/subscription/userHistoricalOrders.ts +12 -6
- package/src/api/subscription/userNonFundingLedgerUpdates.ts +12 -6
- package/src/api/subscription/userTwapHistory.ts +12 -6
- package/src/api/subscription/userTwapSliceFills.ts +12 -6
- package/src/api/subscription/webData2.ts +12 -6
- package/src/api/subscription/webData3.ts +12 -6
- package/src/api/subscription/~client.ts +104 -25
- package/src/api/subscription/~mod.ts +1 -0
- package/src/signing/mod.ts +6 -6
- package/dist/src/api/exchange/_base/_helpers.d.ts +0 -11
- package/dist/src/api/exchange/_base/_helpers.d.ts.map +0 -1
- package/dist/src/api/exchange/_base/_helpers.js +0 -18
- package/dist/src/api/exchange/_base/_helpers.js.map +0 -1
- package/src/api/exchange/_base/_helpers.ts +0 -26
|
@@ -45,67 +45,12 @@ import { updateLeverage } from "./updateLeverage.ts";
|
|
|
45
45
|
import { usdClassTransfer } from "./usdClassTransfer.ts";
|
|
46
46
|
import { usdSend } from "./usdSend.ts";
|
|
47
47
|
import { userDexAbstraction } from "./userDexAbstraction.ts";
|
|
48
|
+
import { validatorL1Stream } from "./validatorL1Stream.ts";
|
|
48
49
|
import { vaultDistribute } from "./vaultDistribute.ts";
|
|
49
50
|
import { vaultModify } from "./vaultModify.ts";
|
|
50
51
|
import { vaultTransfer } from "./vaultTransfer.ts";
|
|
51
52
|
import { withdraw3 } from "./withdraw3.ts";
|
|
52
53
|
|
|
53
|
-
export type { AgentEnableDexAbstractionOptions } from "./agentEnableDexAbstraction.ts";
|
|
54
|
-
export type { ApproveAgentOptions, ApproveAgentParameters } from "./approveAgent.ts";
|
|
55
|
-
export type { ApproveBuilderFeeOptions, ApproveBuilderFeeParameters } from "./approveBuilderFee.ts";
|
|
56
|
-
export type { BatchModifyOptions, BatchModifyParameters } from "./batchModify.ts";
|
|
57
|
-
export type { CancelOptions, CancelParameters } from "./cancel.ts";
|
|
58
|
-
export type { CancelByCloidOptions, CancelByCloidParameters } from "./cancelByCloid.ts";
|
|
59
|
-
export type { CDepositOptions, CDepositParameters } from "./cDeposit.ts";
|
|
60
|
-
export type { ClaimRewardsOptions } from "./claimRewards.ts";
|
|
61
|
-
export type { ConvertToMultiSigUserOptions, ConvertToMultiSigUserParameters } from "./convertToMultiSigUser.ts";
|
|
62
|
-
export type { CreateSubAccountOptions, CreateSubAccountParameters } from "./createSubAccount.ts";
|
|
63
|
-
export type { CreateVaultOptions, CreateVaultParameters } from "./createVault.ts";
|
|
64
|
-
export type { CSignerActionOptions, CSignerActionParameters } from "./cSignerAction.ts";
|
|
65
|
-
export type { CValidatorActionOptions, CValidatorActionParameters } from "./cValidatorAction.ts";
|
|
66
|
-
export type { CWithdrawOptions, CWithdrawParameters } from "./cWithdraw.ts";
|
|
67
|
-
export type { EvmUserModifyOptions, EvmUserModifyParameters } from "./evmUserModify.ts";
|
|
68
|
-
export type { LinkStakingUserOptions, LinkStakingUserParameters } from "./linkStakingUser.ts";
|
|
69
|
-
export type { ModifyOptions, ModifyParameters } from "./modify.ts";
|
|
70
|
-
export type { MultiSigOptions, MultiSigParameters } from "./multiSig.ts";
|
|
71
|
-
export type { OrderOptions, OrderParameters } from "./order.ts";
|
|
72
|
-
export type { NoopOptions } from "./noop.ts";
|
|
73
|
-
export type { PerpDeployOptions, PerpDeployParameters } from "./perpDeploy.ts";
|
|
74
|
-
export type { RegisterReferrerOptions, RegisterReferrerParameters } from "./registerReferrer.ts";
|
|
75
|
-
export type { ReserveRequestWeightOptions, ReserveRequestWeightParameters } from "./reserveRequestWeight.ts";
|
|
76
|
-
export type { ScheduleCancelOptions, ScheduleCancelParameters } from "./scheduleCancel.ts";
|
|
77
|
-
export type { SendAssetOptions, SendAssetParameters } from "./sendAsset.ts";
|
|
78
|
-
export type { SetDisplayNameOptions, SetDisplayNameParameters } from "./setDisplayName.ts";
|
|
79
|
-
export type { SetReferrerOptions, SetReferrerParameters } from "./setReferrer.ts";
|
|
80
|
-
export type { SpotDeployOptions, SpotDeployParameters } from "./spotDeploy.ts";
|
|
81
|
-
export type { SpotSendOptions, SpotSendParameters } from "./spotSend.ts";
|
|
82
|
-
export type { SpotUserOptions, SpotUserParameters } from "./spotUser.ts";
|
|
83
|
-
export type { SubAccountModifyOptions, SubAccountModifyParameters } from "./subAccountModify.ts";
|
|
84
|
-
export type { SubAccountSpotTransferOptions, SubAccountSpotTransferParameters } from "./subAccountSpotTransfer.ts";
|
|
85
|
-
export type { SubAccountTransferOptions, SubAccountTransferParameters } from "./subAccountTransfer.ts";
|
|
86
|
-
export type { TokenDelegateOptions, TokenDelegateParameters } from "./tokenDelegate.ts";
|
|
87
|
-
export type { TwapCancelOptions, TwapCancelParameters } from "./twapCancel.ts";
|
|
88
|
-
export type { TwapOrderOptions, TwapOrderParameters } from "./twapOrder.ts";
|
|
89
|
-
export type { UpdateIsolatedMarginOptions, UpdateIsolatedMarginParameters } from "./updateIsolatedMargin.ts";
|
|
90
|
-
export type { UpdateLeverageOptions, UpdateLeverageParameters } from "./updateLeverage.ts";
|
|
91
|
-
export type { UsdClassTransferOptions, UsdClassTransferParameters } from "./usdClassTransfer.ts";
|
|
92
|
-
export type { UsdSendOptions, UsdSendParameters } from "./usdSend.ts";
|
|
93
|
-
export type { UserDexAbstractionExchangeOptions, UserDexAbstractionExchangeParameters } from "./userDexAbstraction.ts";
|
|
94
|
-
export type { VaultDistributeOptions, VaultDistributeParameters } from "./vaultDistribute.ts";
|
|
95
|
-
export type { VaultModifyOptions, VaultModifyParameters } from "./vaultModify.ts";
|
|
96
|
-
export type { VaultTransferOptions, VaultTransferParameters } from "./vaultTransfer.ts";
|
|
97
|
-
export type { Withdraw3Options, Withdraw3Parameters } from "./withdraw3.ts";
|
|
98
|
-
|
|
99
|
-
export type { CancelSuccessResponse } from "./cancel.ts";
|
|
100
|
-
export type { CreateSubAccountResponse } from "./createSubAccount.ts";
|
|
101
|
-
export type { CreateVaultResponse } from "./createVault.ts";
|
|
102
|
-
export type { OrderSuccessResponse } from "./order.ts";
|
|
103
|
-
export type { TwapCancelSuccessResponse } from "./twapCancel.ts";
|
|
104
|
-
export type { TwapOrderSuccessResponse } from "./twapOrder.ts";
|
|
105
|
-
export type { ErrorResponse, SuccessResponse } from "./_base/mod.ts";
|
|
106
|
-
|
|
107
|
-
export { ApiRequestError, type ExchangeRequestConfig, type MultiSignRequestConfig } from "./_base/mod.ts";
|
|
108
|
-
|
|
109
54
|
/**
|
|
110
55
|
* A client for interacting with the Hyperliquid Exchange API.
|
|
111
56
|
* @typeParam T The transport (extends {@linkcode IRequestTransport}) used to connect to the Hyperliquid API.
|
|
@@ -120,6 +65,7 @@ export class ExchangeClient<
|
|
|
120
65
|
signatureChainId?: string | (() => MaybePromise<string>);
|
|
121
66
|
defaultVaultAddress?: string;
|
|
122
67
|
defaultExpiresAfter?: number | (() => MaybePromise<number>);
|
|
68
|
+
nonceManager?: number | ((address: string) => MaybePromise<number>);
|
|
123
69
|
|
|
124
70
|
/**
|
|
125
71
|
* Initialises a new instance.
|
|
@@ -148,7 +94,7 @@ export class ExchangeClient<
|
|
|
148
94
|
* @example via [ethers.js v6](https://docs.ethers.org/v6/api/wallet/#Wallet) or [ethers.js v5](https://docs.ethers.org/v5/api/signer/#Wallet)
|
|
149
95
|
* ```ts
|
|
150
96
|
* import * as hl from "@nktkas/hyperliquid";
|
|
151
|
-
* import { ethers } from "
|
|
97
|
+
* import { ethers } from "ethers";
|
|
152
98
|
*
|
|
153
99
|
* const wallet = new ethers.Wallet("0x...");
|
|
154
100
|
*
|
|
@@ -159,7 +105,7 @@ export class ExchangeClient<
|
|
|
159
105
|
* @example via an external wallet (e.g. MetaMask) with [viem](https://viem.sh/docs/clients/wallet)
|
|
160
106
|
* ```ts
|
|
161
107
|
* import * as hl from "@nktkas/hyperliquid";
|
|
162
|
-
* import { createWalletClient, custom } from "
|
|
108
|
+
* import { createWalletClient, custom } from "viem";
|
|
163
109
|
*
|
|
164
110
|
* const ethereum = (window as any).ethereum;
|
|
165
111
|
* const [account] = await ethereum.request({ method: "eth_requestAccounts" }) as `0x${string}`[];
|
|
@@ -182,6 +128,7 @@ export class ExchangeClient<
|
|
|
182
128
|
this.defaultVaultAddress = args.defaultVaultAddress;
|
|
183
129
|
this.defaultExpiresAfter = args.defaultExpiresAfter;
|
|
184
130
|
this.signatureChainId = args.signatureChainId;
|
|
131
|
+
this.nonceManager = args.nonceManager;
|
|
185
132
|
}
|
|
186
133
|
|
|
187
134
|
/**
|
|
@@ -193,7 +140,7 @@ export class ExchangeClient<
|
|
|
193
140
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
194
141
|
* @throws {TransportError} When the transport layer throws an error.
|
|
195
142
|
*
|
|
196
|
-
* @see
|
|
143
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#enable-hip-3-dex-abstraction-agent
|
|
197
144
|
* @example
|
|
198
145
|
* ```ts
|
|
199
146
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -205,7 +152,9 @@ export class ExchangeClient<
|
|
|
205
152
|
* await client.agentEnableDexAbstraction();
|
|
206
153
|
* ```
|
|
207
154
|
*/
|
|
208
|
-
agentEnableDexAbstraction(
|
|
155
|
+
agentEnableDexAbstraction(
|
|
156
|
+
...args: OmitFirst<OverloadedParameters<typeof agentEnableDexAbstraction>>
|
|
157
|
+
): ReturnType<typeof agentEnableDexAbstraction> {
|
|
209
158
|
return agentEnableDexAbstraction(this, ...args);
|
|
210
159
|
}
|
|
211
160
|
|
|
@@ -230,7 +179,9 @@ export class ExchangeClient<
|
|
|
230
179
|
* await client.approveAgent({ agentAddress: "0x...", agentName: "..." });
|
|
231
180
|
* ```
|
|
232
181
|
*/
|
|
233
|
-
approveAgent(
|
|
182
|
+
approveAgent(
|
|
183
|
+
...args: OmitFirst<OverloadedParameters<typeof approveAgent>>
|
|
184
|
+
): ReturnType<typeof approveAgent> {
|
|
234
185
|
return approveAgent(this, ...args);
|
|
235
186
|
}
|
|
236
187
|
|
|
@@ -255,7 +206,9 @@ export class ExchangeClient<
|
|
|
255
206
|
* await client.approveBuilderFee({ maxFeeRate: "0.01%", builder: "0x..." });
|
|
256
207
|
* ```
|
|
257
208
|
*/
|
|
258
|
-
approveBuilderFee(
|
|
209
|
+
approveBuilderFee(
|
|
210
|
+
...args: OmitFirst<OverloadedParameters<typeof approveBuilderFee>>
|
|
211
|
+
): ReturnType<typeof approveBuilderFee> {
|
|
259
212
|
return approveBuilderFee(this, ...args);
|
|
260
213
|
}
|
|
261
214
|
|
|
@@ -294,7 +247,9 @@ export class ExchangeClient<
|
|
|
294
247
|
* });
|
|
295
248
|
* ```
|
|
296
249
|
*/
|
|
297
|
-
batchModify(
|
|
250
|
+
batchModify(
|
|
251
|
+
...args: OmitFirst<OverloadedParameters<typeof batchModify>>
|
|
252
|
+
): ReturnType<typeof batchModify> {
|
|
298
253
|
return batchModify(this, ...args);
|
|
299
254
|
}
|
|
300
255
|
|
|
@@ -323,7 +278,9 @@ export class ExchangeClient<
|
|
|
323
278
|
* });
|
|
324
279
|
* ```
|
|
325
280
|
*/
|
|
326
|
-
cancel(
|
|
281
|
+
cancel(
|
|
282
|
+
...args: OmitFirst<OverloadedParameters<typeof cancel>>
|
|
283
|
+
): ReturnType<typeof cancel> {
|
|
327
284
|
return cancel(this, ...args);
|
|
328
285
|
}
|
|
329
286
|
|
|
@@ -352,7 +309,9 @@ export class ExchangeClient<
|
|
|
352
309
|
* });
|
|
353
310
|
* ```
|
|
354
311
|
*/
|
|
355
|
-
cancelByCloid(
|
|
312
|
+
cancelByCloid(
|
|
313
|
+
...args: OmitFirst<OverloadedParameters<typeof cancelByCloid>>
|
|
314
|
+
): ReturnType<typeof cancelByCloid> {
|
|
356
315
|
return cancelByCloid(this, ...args);
|
|
357
316
|
}
|
|
358
317
|
|
|
@@ -377,7 +336,9 @@ export class ExchangeClient<
|
|
|
377
336
|
* await client.cDeposit({ wei: 1 * 1e8 });
|
|
378
337
|
* ```
|
|
379
338
|
*/
|
|
380
|
-
cDeposit(
|
|
339
|
+
cDeposit(
|
|
340
|
+
...args: OmitFirst<OverloadedParameters<typeof cDeposit>>
|
|
341
|
+
): ReturnType<typeof cDeposit> {
|
|
381
342
|
return cDeposit(this, ...args);
|
|
382
343
|
}
|
|
383
344
|
|
|
@@ -389,7 +350,6 @@ export class ExchangeClient<
|
|
|
389
350
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
390
351
|
* @throws {TransportError} When the transport layer throws an error.
|
|
391
352
|
*
|
|
392
|
-
* @see null
|
|
393
353
|
* @example
|
|
394
354
|
* ```ts
|
|
395
355
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -401,7 +361,9 @@ export class ExchangeClient<
|
|
|
401
361
|
* await client.claimRewards();
|
|
402
362
|
* ```
|
|
403
363
|
*/
|
|
404
|
-
claimRewards(
|
|
364
|
+
claimRewards(
|
|
365
|
+
...args: OmitFirst<OverloadedParameters<typeof claimRewards>>
|
|
366
|
+
): ReturnType<typeof claimRewards> {
|
|
405
367
|
return claimRewards(this, ...args);
|
|
406
368
|
}
|
|
407
369
|
|
|
@@ -436,7 +398,9 @@ export class ExchangeClient<
|
|
|
436
398
|
* await client.convertToMultiSigUser({ signers: null });
|
|
437
399
|
* ```
|
|
438
400
|
*/
|
|
439
|
-
convertToMultiSigUser(
|
|
401
|
+
convertToMultiSigUser(
|
|
402
|
+
...args: OmitFirst<OverloadedParameters<typeof convertToMultiSigUser>>
|
|
403
|
+
): ReturnType<typeof convertToMultiSigUser> {
|
|
440
404
|
return convertToMultiSigUser(this, ...args);
|
|
441
405
|
}
|
|
442
406
|
|
|
@@ -449,7 +413,6 @@ export class ExchangeClient<
|
|
|
449
413
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
450
414
|
* @throws {TransportError} When the transport layer throws an error.
|
|
451
415
|
*
|
|
452
|
-
* @see null
|
|
453
416
|
* @example
|
|
454
417
|
* ```ts
|
|
455
418
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -461,7 +424,9 @@ export class ExchangeClient<
|
|
|
461
424
|
* const data = await client.createSubAccount({ name: "..." });
|
|
462
425
|
* ```
|
|
463
426
|
*/
|
|
464
|
-
createSubAccount(
|
|
427
|
+
createSubAccount(
|
|
428
|
+
...args: OmitFirst<OverloadedParameters<typeof createSubAccount>>
|
|
429
|
+
): ReturnType<typeof createSubAccount> {
|
|
465
430
|
return createSubAccount(this, ...args);
|
|
466
431
|
}
|
|
467
432
|
|
|
@@ -474,7 +439,6 @@ export class ExchangeClient<
|
|
|
474
439
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
475
440
|
* @throws {TransportError} When the transport layer throws an error.
|
|
476
441
|
*
|
|
477
|
-
* @see null
|
|
478
442
|
* @example
|
|
479
443
|
* ```ts
|
|
480
444
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -490,7 +454,9 @@ export class ExchangeClient<
|
|
|
490
454
|
* });
|
|
491
455
|
* ```
|
|
492
456
|
*/
|
|
493
|
-
createVault(
|
|
457
|
+
createVault(
|
|
458
|
+
...args: OmitFirst<OverloadedParameters<typeof createVault>>
|
|
459
|
+
): ReturnType<typeof createVault> {
|
|
494
460
|
return createVault(this, ...args);
|
|
495
461
|
}
|
|
496
462
|
|
|
@@ -503,7 +469,6 @@ export class ExchangeClient<
|
|
|
503
469
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
504
470
|
* @throws {TransportError} When the transport layer throws an error.
|
|
505
471
|
*
|
|
506
|
-
* @see null
|
|
507
472
|
* @example
|
|
508
473
|
* ```ts
|
|
509
474
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -520,7 +485,9 @@ export class ExchangeClient<
|
|
|
520
485
|
* await client.cSignerAction({ unjailSelf: null });
|
|
521
486
|
* ```
|
|
522
487
|
*/
|
|
523
|
-
cSignerAction(
|
|
488
|
+
cSignerAction(
|
|
489
|
+
...args: OmitFirst<OverloadedParameters<typeof cSignerAction>>
|
|
490
|
+
): ReturnType<typeof cSignerAction> {
|
|
524
491
|
return cSignerAction(this, ...args);
|
|
525
492
|
}
|
|
526
493
|
|
|
@@ -533,7 +500,6 @@ export class ExchangeClient<
|
|
|
533
500
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
534
501
|
* @throws {TransportError} When the transport layer throws an error.
|
|
535
502
|
*
|
|
536
|
-
* @see null
|
|
537
503
|
* @example
|
|
538
504
|
* ```ts
|
|
539
505
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -576,7 +542,9 @@ export class ExchangeClient<
|
|
|
576
542
|
* await client.cValidatorAction({ unregister: null });
|
|
577
543
|
* ```
|
|
578
544
|
*/
|
|
579
|
-
cValidatorAction(
|
|
545
|
+
cValidatorAction(
|
|
546
|
+
...args: OmitFirst<OverloadedParameters<typeof cValidatorAction>>
|
|
547
|
+
): ReturnType<typeof cValidatorAction> {
|
|
580
548
|
return cValidatorAction(this, ...args);
|
|
581
549
|
}
|
|
582
550
|
|
|
@@ -601,7 +569,9 @@ export class ExchangeClient<
|
|
|
601
569
|
* await client.cWithdraw({ wei: 1 * 1e8 });
|
|
602
570
|
* ```
|
|
603
571
|
*/
|
|
604
|
-
cWithdraw(
|
|
572
|
+
cWithdraw(
|
|
573
|
+
...args: OmitFirst<OverloadedParameters<typeof cWithdraw>>
|
|
574
|
+
): ReturnType<typeof cWithdraw> {
|
|
605
575
|
return cWithdraw(this, ...args);
|
|
606
576
|
}
|
|
607
577
|
|
|
@@ -626,7 +596,9 @@ export class ExchangeClient<
|
|
|
626
596
|
* await client.evmUserModify({ usingBigBlocks: true });
|
|
627
597
|
* ```
|
|
628
598
|
*/
|
|
629
|
-
evmUserModify(
|
|
599
|
+
evmUserModify(
|
|
600
|
+
...args: OmitFirst<OverloadedParameters<typeof evmUserModify>>
|
|
601
|
+
): ReturnType<typeof evmUserModify> {
|
|
630
602
|
return evmUserModify(this, ...args);
|
|
631
603
|
}
|
|
632
604
|
|
|
@@ -651,7 +623,9 @@ export class ExchangeClient<
|
|
|
651
623
|
* await client.linkStakingUser({ user: "0x...", isFinalize: false });
|
|
652
624
|
* ```
|
|
653
625
|
*/
|
|
654
|
-
linkStakingUser(
|
|
626
|
+
linkStakingUser(
|
|
627
|
+
...args: OmitFirst<OverloadedParameters<typeof linkStakingUser>>
|
|
628
|
+
): ReturnType<typeof linkStakingUser> {
|
|
655
629
|
return linkStakingUser(this, ...args);
|
|
656
630
|
}
|
|
657
631
|
|
|
@@ -687,7 +661,9 @@ export class ExchangeClient<
|
|
|
687
661
|
* });
|
|
688
662
|
* ```
|
|
689
663
|
*/
|
|
690
|
-
modify(
|
|
664
|
+
modify(
|
|
665
|
+
...args: OmitFirst<OverloadedParameters<typeof modify>>
|
|
666
|
+
): ReturnType<typeof modify> {
|
|
691
667
|
return modify(this, ...args);
|
|
692
668
|
}
|
|
693
669
|
|
|
@@ -706,7 +682,7 @@ export class ExchangeClient<
|
|
|
706
682
|
* import * as hl from "@nktkas/hyperliquid";
|
|
707
683
|
* import { signL1Action } from "@nktkas/hyperliquid/signing";
|
|
708
684
|
* import { parser, ScheduleCancelRequest } from "@nktkas/hyperliquid/api/exchange";
|
|
709
|
-
* import { privateKeyToAccount } from "
|
|
685
|
+
* import { privateKeyToAccount } from "viem/accounts";
|
|
710
686
|
*
|
|
711
687
|
* const wallet = privateKeyToAccount("0x..."); // viem, ethers or private key
|
|
712
688
|
* const multiSigUser = "0x...";
|
|
@@ -753,7 +729,9 @@ export class ExchangeClient<
|
|
|
753
729
|
* });
|
|
754
730
|
* ```
|
|
755
731
|
*/
|
|
756
|
-
multiSig(
|
|
732
|
+
multiSig(
|
|
733
|
+
...args: OmitFirst<OverloadedParameters<typeof multiSig>>
|
|
734
|
+
): ReturnType<typeof multiSig> {
|
|
757
735
|
return multiSig(this, ...args);
|
|
758
736
|
}
|
|
759
737
|
|
|
@@ -791,7 +769,9 @@ export class ExchangeClient<
|
|
|
791
769
|
* });
|
|
792
770
|
* ```
|
|
793
771
|
*/
|
|
794
|
-
order(
|
|
772
|
+
order(
|
|
773
|
+
...args: OmitFirst<OverloadedParameters<typeof order>>
|
|
774
|
+
): ReturnType<typeof order> {
|
|
795
775
|
return order(this, ...args);
|
|
796
776
|
}
|
|
797
777
|
|
|
@@ -816,7 +796,9 @@ export class ExchangeClient<
|
|
|
816
796
|
* await client.noop();
|
|
817
797
|
* ```
|
|
818
798
|
*/
|
|
819
|
-
noop(
|
|
799
|
+
noop(
|
|
800
|
+
...args: OmitFirst<OverloadedParameters<typeof noop>>
|
|
801
|
+
): ReturnType<typeof noop> {
|
|
820
802
|
return noop(this, ...args);
|
|
821
803
|
}
|
|
822
804
|
|
|
@@ -854,7 +836,9 @@ export class ExchangeClient<
|
|
|
854
836
|
* });
|
|
855
837
|
* ```
|
|
856
838
|
*/
|
|
857
|
-
perpDeploy(
|
|
839
|
+
perpDeploy(
|
|
840
|
+
...args: OmitFirst<OverloadedParameters<typeof perpDeploy>>
|
|
841
|
+
): ReturnType<typeof perpDeploy> {
|
|
858
842
|
return perpDeploy(this, ...args);
|
|
859
843
|
}
|
|
860
844
|
|
|
@@ -867,7 +851,6 @@ export class ExchangeClient<
|
|
|
867
851
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
868
852
|
* @throws {TransportError} When the transport layer throws an error.
|
|
869
853
|
*
|
|
870
|
-
* @see null
|
|
871
854
|
* @example
|
|
872
855
|
* ```ts
|
|
873
856
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -879,7 +862,9 @@ export class ExchangeClient<
|
|
|
879
862
|
* await client.registerReferrer({ code: "..." });
|
|
880
863
|
* ```
|
|
881
864
|
*/
|
|
882
|
-
registerReferrer(
|
|
865
|
+
registerReferrer(
|
|
866
|
+
...args: OmitFirst<OverloadedParameters<typeof registerReferrer>>
|
|
867
|
+
): ReturnType<typeof registerReferrer> {
|
|
883
868
|
return registerReferrer(this, ...args);
|
|
884
869
|
}
|
|
885
870
|
|
|
@@ -904,7 +889,9 @@ export class ExchangeClient<
|
|
|
904
889
|
* await client.reserveRequestWeight({ weight: 10 });
|
|
905
890
|
* ```
|
|
906
891
|
*/
|
|
907
|
-
reserveRequestWeight(
|
|
892
|
+
reserveRequestWeight(
|
|
893
|
+
...args: OmitFirst<OverloadedParameters<typeof reserveRequestWeight>>
|
|
894
|
+
): ReturnType<typeof reserveRequestWeight> {
|
|
908
895
|
return reserveRequestWeight(this, ...args);
|
|
909
896
|
}
|
|
910
897
|
|
|
@@ -929,7 +916,9 @@ export class ExchangeClient<
|
|
|
929
916
|
* await client.scheduleCancel({ time: Date.now() + 10_000 });
|
|
930
917
|
* ```
|
|
931
918
|
*/
|
|
932
|
-
scheduleCancel(
|
|
919
|
+
scheduleCancel(
|
|
920
|
+
...args: OmitFirst<OverloadedParameters<typeof scheduleCancel>>
|
|
921
|
+
): ReturnType<typeof scheduleCancel> {
|
|
933
922
|
return scheduleCancel(
|
|
934
923
|
this,
|
|
935
924
|
// @ts-ignore: TypeScript can't resolve overloaded signatures from parameter unions
|
|
@@ -946,7 +935,7 @@ export class ExchangeClient<
|
|
|
946
935
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
947
936
|
* @throws {TransportError} When the transport layer throws an error.
|
|
948
937
|
*
|
|
949
|
-
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#send-asset
|
|
938
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#send-asset
|
|
950
939
|
* @example
|
|
951
940
|
* ```ts
|
|
952
941
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -964,7 +953,9 @@ export class ExchangeClient<
|
|
|
964
953
|
* });
|
|
965
954
|
* ```
|
|
966
955
|
*/
|
|
967
|
-
sendAsset(
|
|
956
|
+
sendAsset(
|
|
957
|
+
...args: OmitFirst<OverloadedParameters<typeof sendAsset>>
|
|
958
|
+
): ReturnType<typeof sendAsset> {
|
|
968
959
|
return sendAsset(this, ...args);
|
|
969
960
|
}
|
|
970
961
|
|
|
@@ -977,7 +968,6 @@ export class ExchangeClient<
|
|
|
977
968
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
978
969
|
* @throws {TransportError} When the transport layer throws an error.
|
|
979
970
|
*
|
|
980
|
-
* @see null
|
|
981
971
|
* @example
|
|
982
972
|
* ```ts
|
|
983
973
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -989,7 +979,9 @@ export class ExchangeClient<
|
|
|
989
979
|
* await client.setDisplayName({ displayName: "..." });
|
|
990
980
|
* ```
|
|
991
981
|
*/
|
|
992
|
-
setDisplayName(
|
|
982
|
+
setDisplayName(
|
|
983
|
+
...args: OmitFirst<OverloadedParameters<typeof setDisplayName>>
|
|
984
|
+
): ReturnType<typeof setDisplayName> {
|
|
993
985
|
return setDisplayName(this, ...args);
|
|
994
986
|
}
|
|
995
987
|
|
|
@@ -1002,7 +994,6 @@ export class ExchangeClient<
|
|
|
1002
994
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1003
995
|
* @throws {TransportError} When the transport layer throws an error.
|
|
1004
996
|
*
|
|
1005
|
-
* @see null
|
|
1006
997
|
* @example
|
|
1007
998
|
* ```ts
|
|
1008
999
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -1014,7 +1005,9 @@ export class ExchangeClient<
|
|
|
1014
1005
|
* await client.setReferrer({ code: "..." });
|
|
1015
1006
|
* ```
|
|
1016
1007
|
*/
|
|
1017
|
-
setReferrer(
|
|
1008
|
+
setReferrer(
|
|
1009
|
+
...args: OmitFirst<OverloadedParameters<typeof setReferrer>>
|
|
1010
|
+
): ReturnType<typeof setReferrer> {
|
|
1018
1011
|
return setReferrer(this, ...args);
|
|
1019
1012
|
}
|
|
1020
1013
|
|
|
@@ -1049,7 +1042,9 @@ export class ExchangeClient<
|
|
|
1049
1042
|
* });
|
|
1050
1043
|
* ```
|
|
1051
1044
|
*/
|
|
1052
|
-
spotDeploy(
|
|
1045
|
+
spotDeploy(
|
|
1046
|
+
...args: OmitFirst<OverloadedParameters<typeof spotDeploy>>
|
|
1047
|
+
): ReturnType<typeof spotDeploy> {
|
|
1053
1048
|
return spotDeploy(this, ...args);
|
|
1054
1049
|
}
|
|
1055
1050
|
|
|
@@ -1078,7 +1073,9 @@ export class ExchangeClient<
|
|
|
1078
1073
|
* });
|
|
1079
1074
|
* ```
|
|
1080
1075
|
*/
|
|
1081
|
-
spotSend(
|
|
1076
|
+
spotSend(
|
|
1077
|
+
...args: OmitFirst<OverloadedParameters<typeof spotSend>>
|
|
1078
|
+
): ReturnType<typeof spotSend> {
|
|
1082
1079
|
return spotSend(this, ...args);
|
|
1083
1080
|
}
|
|
1084
1081
|
|
|
@@ -1091,7 +1088,6 @@ export class ExchangeClient<
|
|
|
1091
1088
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1092
1089
|
* @throws {TransportError} When the transport layer throws an error.
|
|
1093
1090
|
*
|
|
1094
|
-
* @see null
|
|
1095
1091
|
* @example
|
|
1096
1092
|
* ```ts
|
|
1097
1093
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -1103,7 +1099,9 @@ export class ExchangeClient<
|
|
|
1103
1099
|
* await client.spotUser({ toggleSpotDusting: { optOut: false } });
|
|
1104
1100
|
* ```
|
|
1105
1101
|
*/
|
|
1106
|
-
spotUser(
|
|
1102
|
+
spotUser(
|
|
1103
|
+
...args: OmitFirst<OverloadedParameters<typeof spotUser>>
|
|
1104
|
+
): ReturnType<typeof spotUser> {
|
|
1107
1105
|
return spotUser(this, ...args);
|
|
1108
1106
|
}
|
|
1109
1107
|
|
|
@@ -1116,7 +1114,6 @@ export class ExchangeClient<
|
|
|
1116
1114
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1117
1115
|
* @throws {TransportError} When the transport layer throws an error.
|
|
1118
1116
|
*
|
|
1119
|
-
* @see null
|
|
1120
1117
|
* @example
|
|
1121
1118
|
* ```ts
|
|
1122
1119
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -1128,7 +1125,9 @@ export class ExchangeClient<
|
|
|
1128
1125
|
* await client.subAccountModify({ subAccountUser: "0x...", name: "..." });
|
|
1129
1126
|
* ```
|
|
1130
1127
|
*/
|
|
1131
|
-
subAccountModify(
|
|
1128
|
+
subAccountModify(
|
|
1129
|
+
...args: OmitFirst<OverloadedParameters<typeof subAccountModify>>
|
|
1130
|
+
): ReturnType<typeof subAccountModify> {
|
|
1132
1131
|
return subAccountModify(this, ...args);
|
|
1133
1132
|
}
|
|
1134
1133
|
|
|
@@ -1141,7 +1140,6 @@ export class ExchangeClient<
|
|
|
1141
1140
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1142
1141
|
* @throws {TransportError} When the transport layer throws an error.
|
|
1143
1142
|
*
|
|
1144
|
-
* @see null
|
|
1145
1143
|
* @example
|
|
1146
1144
|
* ```ts
|
|
1147
1145
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -1158,7 +1156,9 @@ export class ExchangeClient<
|
|
|
1158
1156
|
* });
|
|
1159
1157
|
* ```
|
|
1160
1158
|
*/
|
|
1161
|
-
subAccountSpotTransfer(
|
|
1159
|
+
subAccountSpotTransfer(
|
|
1160
|
+
...args: OmitFirst<OverloadedParameters<typeof subAccountSpotTransfer>>
|
|
1161
|
+
): ReturnType<typeof subAccountSpotTransfer> {
|
|
1162
1162
|
return subAccountSpotTransfer(this, ...args);
|
|
1163
1163
|
}
|
|
1164
1164
|
|
|
@@ -1171,7 +1171,6 @@ export class ExchangeClient<
|
|
|
1171
1171
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1172
1172
|
* @throws {TransportError} When the transport layer throws an error.
|
|
1173
1173
|
*
|
|
1174
|
-
* @see null
|
|
1175
1174
|
* @example
|
|
1176
1175
|
* ```ts
|
|
1177
1176
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -1183,7 +1182,9 @@ export class ExchangeClient<
|
|
|
1183
1182
|
* await client.subAccountTransfer({ subAccountUser: "0x...", isDeposit: true, usd: 1 * 1e6 });
|
|
1184
1183
|
* ```
|
|
1185
1184
|
*/
|
|
1186
|
-
subAccountTransfer(
|
|
1185
|
+
subAccountTransfer(
|
|
1186
|
+
...args: OmitFirst<OverloadedParameters<typeof subAccountTransfer>>
|
|
1187
|
+
): ReturnType<typeof subAccountTransfer> {
|
|
1187
1188
|
return subAccountTransfer(this, ...args);
|
|
1188
1189
|
}
|
|
1189
1190
|
|
|
@@ -1208,7 +1209,9 @@ export class ExchangeClient<
|
|
|
1208
1209
|
* await client.tokenDelegate({ validator: "0x...", isUndelegate: true, wei: 1 * 1e8 });
|
|
1209
1210
|
* ```
|
|
1210
1211
|
*/
|
|
1211
|
-
tokenDelegate(
|
|
1212
|
+
tokenDelegate(
|
|
1213
|
+
...args: OmitFirst<OverloadedParameters<typeof tokenDelegate>>
|
|
1214
|
+
): ReturnType<typeof tokenDelegate> {
|
|
1212
1215
|
return tokenDelegate(this, ...args);
|
|
1213
1216
|
}
|
|
1214
1217
|
|
|
@@ -1233,7 +1236,9 @@ export class ExchangeClient<
|
|
|
1233
1236
|
* const data = await client.twapCancel({ a: 0, t: 1 });
|
|
1234
1237
|
* ```
|
|
1235
1238
|
*/
|
|
1236
|
-
twapCancel(
|
|
1239
|
+
twapCancel(
|
|
1240
|
+
...args: OmitFirst<OverloadedParameters<typeof twapCancel>>
|
|
1241
|
+
): ReturnType<typeof twapCancel> {
|
|
1237
1242
|
return twapCancel(this, ...args);
|
|
1238
1243
|
}
|
|
1239
1244
|
|
|
@@ -1267,7 +1272,9 @@ export class ExchangeClient<
|
|
|
1267
1272
|
* });
|
|
1268
1273
|
* ```
|
|
1269
1274
|
*/
|
|
1270
|
-
twapOrder(
|
|
1275
|
+
twapOrder(
|
|
1276
|
+
...args: OmitFirst<OverloadedParameters<typeof twapOrder>>
|
|
1277
|
+
): ReturnType<typeof twapOrder> {
|
|
1271
1278
|
return twapOrder(this, ...args);
|
|
1272
1279
|
}
|
|
1273
1280
|
|
|
@@ -1292,7 +1299,9 @@ export class ExchangeClient<
|
|
|
1292
1299
|
* await client.updateIsolatedMargin({ asset: 0, isBuy: true, ntli: 1 * 1e6 });
|
|
1293
1300
|
* ```
|
|
1294
1301
|
*/
|
|
1295
|
-
updateIsolatedMargin(
|
|
1302
|
+
updateIsolatedMargin(
|
|
1303
|
+
...args: OmitFirst<OverloadedParameters<typeof updateIsolatedMargin>>
|
|
1304
|
+
): ReturnType<typeof updateIsolatedMargin> {
|
|
1296
1305
|
return updateIsolatedMargin(this, ...args);
|
|
1297
1306
|
}
|
|
1298
1307
|
|
|
@@ -1317,7 +1326,9 @@ export class ExchangeClient<
|
|
|
1317
1326
|
* await client.updateLeverage({ asset: 0, isCross: true, leverage: 5 });
|
|
1318
1327
|
* ```
|
|
1319
1328
|
*/
|
|
1320
|
-
updateLeverage(
|
|
1329
|
+
updateLeverage(
|
|
1330
|
+
...args: OmitFirst<OverloadedParameters<typeof updateLeverage>>
|
|
1331
|
+
): ReturnType<typeof updateLeverage> {
|
|
1321
1332
|
return updateLeverage(this, ...args);
|
|
1322
1333
|
}
|
|
1323
1334
|
|
|
@@ -1342,7 +1353,9 @@ export class ExchangeClient<
|
|
|
1342
1353
|
* await client.usdClassTransfer({ amount: "1", toPerp: true });
|
|
1343
1354
|
* ```
|
|
1344
1355
|
*/
|
|
1345
|
-
usdClassTransfer(
|
|
1356
|
+
usdClassTransfer(
|
|
1357
|
+
...args: OmitFirst<OverloadedParameters<typeof usdClassTransfer>>
|
|
1358
|
+
): ReturnType<typeof usdClassTransfer> {
|
|
1346
1359
|
return usdClassTransfer(this, ...args);
|
|
1347
1360
|
}
|
|
1348
1361
|
|
|
@@ -1367,7 +1380,9 @@ export class ExchangeClient<
|
|
|
1367
1380
|
* await client.usdSend({ destination: "0x...", amount: "1" });
|
|
1368
1381
|
* ```
|
|
1369
1382
|
*/
|
|
1370
|
-
usdSend(
|
|
1383
|
+
usdSend(
|
|
1384
|
+
...args: OmitFirst<OverloadedParameters<typeof usdSend>>
|
|
1385
|
+
): ReturnType<typeof usdSend> {
|
|
1371
1386
|
return usdSend(this, ...args);
|
|
1372
1387
|
}
|
|
1373
1388
|
|
|
@@ -1380,7 +1395,6 @@ export class ExchangeClient<
|
|
|
1380
1395
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1381
1396
|
* @throws {TransportError} When the transport layer throws an error.
|
|
1382
1397
|
*
|
|
1383
|
-
* @see null
|
|
1384
1398
|
* @example
|
|
1385
1399
|
* ```ts
|
|
1386
1400
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -1392,10 +1406,39 @@ export class ExchangeClient<
|
|
|
1392
1406
|
* await client.userDexAbstraction({ user: "0x...", enabled: true });
|
|
1393
1407
|
* ```
|
|
1394
1408
|
*/
|
|
1395
|
-
userDexAbstraction(
|
|
1409
|
+
userDexAbstraction(
|
|
1410
|
+
...args: OmitFirst<OverloadedParameters<typeof userDexAbstraction>>
|
|
1411
|
+
): ReturnType<typeof userDexAbstraction> {
|
|
1396
1412
|
return userDexAbstraction(this, ...args);
|
|
1397
1413
|
}
|
|
1398
1414
|
|
|
1415
|
+
/**
|
|
1416
|
+
* Validator vote on risk-free rate for aligned quote asset.
|
|
1417
|
+
* @param params - Parameters specific to the API request.
|
|
1418
|
+
* @param opts - Request execution options.
|
|
1419
|
+
* @returns Successful response without specific data.
|
|
1420
|
+
*
|
|
1421
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1422
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
1423
|
+
*
|
|
1424
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#validator-vote-on-risk-free-rate-for-aligned-quote-asset
|
|
1425
|
+
* @example
|
|
1426
|
+
* ```ts
|
|
1427
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
1428
|
+
*
|
|
1429
|
+
* const pk = "0x..."; // viem, ethers or private key
|
|
1430
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
1431
|
+
*
|
|
1432
|
+
* const client = new hl.ExchangeClient({ transport, wallet: pk });
|
|
1433
|
+
* await client.validatorL1Stream({ riskFreeRate: "0.05" });
|
|
1434
|
+
* ```
|
|
1435
|
+
*/
|
|
1436
|
+
validatorL1Stream(
|
|
1437
|
+
...args: OmitFirst<OverloadedParameters<typeof validatorL1Stream>>
|
|
1438
|
+
): ReturnType<typeof validatorL1Stream> {
|
|
1439
|
+
return validatorL1Stream(this, ...args);
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1399
1442
|
/**
|
|
1400
1443
|
* Distribute funds from a vault between followers.
|
|
1401
1444
|
* @param params - Parameters specific to the API request.
|
|
@@ -1405,7 +1448,6 @@ export class ExchangeClient<
|
|
|
1405
1448
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1406
1449
|
* @throws {TransportError} When the transport layer throws an error.
|
|
1407
1450
|
*
|
|
1408
|
-
* @see null
|
|
1409
1451
|
* @example
|
|
1410
1452
|
* ```ts
|
|
1411
1453
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -1417,7 +1459,9 @@ export class ExchangeClient<
|
|
|
1417
1459
|
* await client.vaultDistribute({ vaultAddress: "0x...", usd: 10 * 1e6 });
|
|
1418
1460
|
* ```
|
|
1419
1461
|
*/
|
|
1420
|
-
vaultDistribute(
|
|
1462
|
+
vaultDistribute(
|
|
1463
|
+
...args: OmitFirst<OverloadedParameters<typeof vaultDistribute>>
|
|
1464
|
+
): ReturnType<typeof vaultDistribute> {
|
|
1421
1465
|
return vaultDistribute(this, ...args);
|
|
1422
1466
|
}
|
|
1423
1467
|
|
|
@@ -1430,7 +1474,6 @@ export class ExchangeClient<
|
|
|
1430
1474
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
1431
1475
|
* @throws {TransportError} When the transport layer throws an error.
|
|
1432
1476
|
*
|
|
1433
|
-
* @see null
|
|
1434
1477
|
* @example
|
|
1435
1478
|
* ```ts
|
|
1436
1479
|
* import * as hl from "@nktkas/hyperliquid";
|
|
@@ -1446,7 +1489,9 @@ export class ExchangeClient<
|
|
|
1446
1489
|
* });
|
|
1447
1490
|
* ```
|
|
1448
1491
|
*/
|
|
1449
|
-
vaultModify(
|
|
1492
|
+
vaultModify(
|
|
1493
|
+
...args: OmitFirst<OverloadedParameters<typeof vaultModify>>
|
|
1494
|
+
): ReturnType<typeof vaultModify> {
|
|
1450
1495
|
return vaultModify(this, ...args);
|
|
1451
1496
|
}
|
|
1452
1497
|
|
|
@@ -1471,7 +1516,9 @@ export class ExchangeClient<
|
|
|
1471
1516
|
* await client.vaultTransfer({ vaultAddress: "0x...", isDeposit: true, usd: 10 * 1e6 });
|
|
1472
1517
|
* ```
|
|
1473
1518
|
*/
|
|
1474
|
-
vaultTransfer(
|
|
1519
|
+
vaultTransfer(
|
|
1520
|
+
...args: OmitFirst<OverloadedParameters<typeof vaultTransfer>>
|
|
1521
|
+
): ReturnType<typeof vaultTransfer> {
|
|
1475
1522
|
return vaultTransfer(this, ...args);
|
|
1476
1523
|
}
|
|
1477
1524
|
|
|
@@ -1496,7 +1543,9 @@ export class ExchangeClient<
|
|
|
1496
1543
|
* await client.withdraw3({ destination: "0x...", amount: "1" });
|
|
1497
1544
|
* ```
|
|
1498
1545
|
*/
|
|
1499
|
-
withdraw3(
|
|
1546
|
+
withdraw3(
|
|
1547
|
+
...args: OmitFirst<OverloadedParameters<typeof withdraw3>>
|
|
1548
|
+
): ReturnType<typeof withdraw3> {
|
|
1500
1549
|
return withdraw3(this, ...args);
|
|
1501
1550
|
}
|
|
1502
1551
|
}
|
|
@@ -1565,3 +1614,58 @@ export class MultiSignClient<
|
|
|
1565
1614
|
});
|
|
1566
1615
|
}
|
|
1567
1616
|
}
|
|
1617
|
+
|
|
1618
|
+
export type * from "./agentEnableDexAbstraction.ts";
|
|
1619
|
+
export type * from "./approveAgent.ts";
|
|
1620
|
+
export type * from "./approveBuilderFee.ts";
|
|
1621
|
+
export type * from "./batchModify.ts";
|
|
1622
|
+
export type * from "./cancel.ts";
|
|
1623
|
+
export type * from "./cancelByCloid.ts";
|
|
1624
|
+
export type * from "./cDeposit.ts";
|
|
1625
|
+
export type * from "./claimRewards.ts";
|
|
1626
|
+
export type * from "./convertToMultiSigUser.ts";
|
|
1627
|
+
export type * from "./createSubAccount.ts";
|
|
1628
|
+
export type * from "./createVault.ts";
|
|
1629
|
+
export type * from "./cSignerAction.ts";
|
|
1630
|
+
export type * from "./cValidatorAction.ts";
|
|
1631
|
+
export type * from "./cWithdraw.ts";
|
|
1632
|
+
export type * from "./evmUserModify.ts";
|
|
1633
|
+
export type * from "./linkStakingUser.ts";
|
|
1634
|
+
export type * from "./modify.ts";
|
|
1635
|
+
export type * from "./multiSig.ts";
|
|
1636
|
+
export type * from "./order.ts";
|
|
1637
|
+
export type * from "./noop.ts";
|
|
1638
|
+
export type * from "./perpDeploy.ts";
|
|
1639
|
+
export type * from "./registerReferrer.ts";
|
|
1640
|
+
export type * from "./reserveRequestWeight.ts";
|
|
1641
|
+
export type * from "./scheduleCancel.ts";
|
|
1642
|
+
export type * from "./sendAsset.ts";
|
|
1643
|
+
export type * from "./setDisplayName.ts";
|
|
1644
|
+
export type * from "./setReferrer.ts";
|
|
1645
|
+
export type * from "./spotDeploy.ts";
|
|
1646
|
+
export type * from "./spotSend.ts";
|
|
1647
|
+
export type * from "./spotUser.ts";
|
|
1648
|
+
export type * from "./subAccountModify.ts";
|
|
1649
|
+
export type * from "./subAccountSpotTransfer.ts";
|
|
1650
|
+
export type * from "./subAccountTransfer.ts";
|
|
1651
|
+
export type * from "./tokenDelegate.ts";
|
|
1652
|
+
export type * from "./twapCancel.ts";
|
|
1653
|
+
export type * from "./twapOrder.ts";
|
|
1654
|
+
export type * from "./updateIsolatedMargin.ts";
|
|
1655
|
+
export type * from "./updateLeverage.ts";
|
|
1656
|
+
export type * from "./usdClassTransfer.ts";
|
|
1657
|
+
export type * from "./usdSend.ts";
|
|
1658
|
+
export type {
|
|
1659
|
+
UserDexAbstractionOptions as UserDexAbstractionExchangeOptions,
|
|
1660
|
+
UserDexAbstractionParameters as UserDexAbstractionExchangeParameters,
|
|
1661
|
+
UserDexAbstractionRequest as UserDexAbstractionExchangeRequest,
|
|
1662
|
+
UserDexAbstractionResponse as UserDexAbstractionExchangeResponse,
|
|
1663
|
+
UserDexAbstractionSuccessResponse as UserDexAbstractionExchangeSuccessResponse,
|
|
1664
|
+
} from "./userDexAbstraction.ts";
|
|
1665
|
+
export type * from "./validatorL1Stream.ts";
|
|
1666
|
+
export type * from "./vaultDistribute.ts";
|
|
1667
|
+
export type * from "./vaultModify.ts";
|
|
1668
|
+
export type * from "./vaultTransfer.ts";
|
|
1669
|
+
export type * from "./withdraw3.ts";
|
|
1670
|
+
|
|
1671
|
+
export { ApiRequestError, type ExchangeRequestConfig, type MultiSignRequestConfig } from "./_base/mod.ts";
|