@nktkas/hyperliquid 0.32.1 → 0.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/_base.js +1 -1
- package/esm/_base.js.map +1 -1
- package/esm/api/_schemas.d.ts.map +1 -1
- package/esm/api/_schemas.js +1 -15
- package/esm/api/_schemas.js.map +1 -1
- package/esm/api/exchange/_methods/_base/execute.d.ts +1 -1
- package/esm/api/exchange/_methods/_base/execute.d.ts.map +1 -1
- package/esm/api/exchange/_methods/_base/execute.js.map +1 -1
- package/esm/api/exchange/_methods/agentEnableDexAbstraction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/agentEnableDexAbstraction.js +10 -1
- package/esm/api/exchange/_methods/agentEnableDexAbstraction.js.map +1 -1
- package/esm/api/exchange/_methods/agentSetAbstraction.d.ts +7 -37
- package/esm/api/exchange/_methods/agentSetAbstraction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/agentSetAbstraction.js +8 -9
- package/esm/api/exchange/_methods/agentSetAbstraction.js.map +1 -1
- package/esm/api/exchange/_methods/approveAgent.d.ts +19 -17
- package/esm/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/esm/api/exchange/_methods/approveAgent.js +13 -16
- package/esm/api/exchange/_methods/approveAgent.js.map +1 -1
- package/esm/api/exchange/_methods/approveBuilderFee.d.ts +15 -10
- package/esm/api/exchange/_methods/approveBuilderFee.d.ts.map +1 -1
- package/esm/api/exchange/_methods/approveBuilderFee.js +9 -9
- package/esm/api/exchange/_methods/approveBuilderFee.js.map +1 -1
- package/esm/api/exchange/_methods/batchModify.d.ts +18 -192
- package/esm/api/exchange/_methods/batchModify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/batchModify.js +19 -22
- package/esm/api/exchange/_methods/batchModify.js.map +1 -1
- package/esm/api/exchange/_methods/borrowLend.d.ts +9 -46
- package/esm/api/exchange/_methods/borrowLend.d.ts.map +1 -1
- package/esm/api/exchange/_methods/borrowLend.js +10 -9
- package/esm/api/exchange/_methods/borrowLend.js.map +1 -1
- package/esm/api/exchange/_methods/cDeposit.d.ts +14 -10
- package/esm/api/exchange/_methods/cDeposit.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cDeposit.js +8 -9
- package/esm/api/exchange/_methods/cDeposit.js.map +1 -1
- package/esm/api/exchange/_methods/cSignerAction.d.ts +13 -61
- package/esm/api/exchange/_methods/cSignerAction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cSignerAction.js +11 -13
- package/esm/api/exchange/_methods/cSignerAction.js.map +1 -1
- package/esm/api/exchange/_methods/cValidatorAction.d.ts +18 -247
- package/esm/api/exchange/_methods/cValidatorAction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cValidatorAction.js +15 -18
- package/esm/api/exchange/_methods/cValidatorAction.js.map +1 -1
- package/esm/api/exchange/_methods/cWithdraw.d.ts +14 -10
- package/esm/api/exchange/_methods/cWithdraw.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cWithdraw.js +8 -9
- package/esm/api/exchange/_methods/cWithdraw.js.map +1 -1
- package/esm/api/exchange/_methods/cancel.d.ts +7 -52
- package/esm/api/exchange/_methods/cancel.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cancel.js +8 -9
- package/esm/api/exchange/_methods/cancel.js.map +1 -1
- package/esm/api/exchange/_methods/cancelByCloid.d.ts +9 -56
- package/esm/api/exchange/_methods/cancelByCloid.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cancelByCloid.js +10 -13
- package/esm/api/exchange/_methods/cancelByCloid.js.map +1 -1
- package/esm/api/exchange/_methods/claimRewards.d.ts.map +1 -1
- package/esm/api/exchange/_methods/claimRewards.js +10 -1
- package/esm/api/exchange/_methods/claimRewards.js.map +1 -1
- package/esm/api/exchange/_methods/convertToMultiSigUser.d.ts +19 -18
- package/esm/api/exchange/_methods/convertToMultiSigUser.d.ts.map +1 -1
- package/esm/api/exchange/_methods/convertToMultiSigUser.js +13 -17
- package/esm/api/exchange/_methods/convertToMultiSigUser.js.map +1 -1
- package/esm/api/exchange/_methods/createSubAccount.d.ts +7 -32
- package/esm/api/exchange/_methods/createSubAccount.d.ts.map +1 -1
- package/esm/api/exchange/_methods/createSubAccount.js +8 -9
- package/esm/api/exchange/_methods/createSubAccount.js.map +1 -1
- package/esm/api/exchange/_methods/createVault.d.ts +10 -58
- package/esm/api/exchange/_methods/createVault.d.ts.map +1 -1
- package/esm/api/exchange/_methods/createVault.js +11 -14
- package/esm/api/exchange/_methods/createVault.js.map +1 -1
- package/esm/api/exchange/_methods/evmUserModify.d.ts +7 -32
- package/esm/api/exchange/_methods/evmUserModify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/evmUserModify.js +8 -9
- package/esm/api/exchange/_methods/evmUserModify.js.map +1 -1
- package/esm/api/exchange/_methods/linkStakingUser.d.ts +15 -10
- package/esm/api/exchange/_methods/linkStakingUser.d.ts.map +1 -1
- package/esm/api/exchange/_methods/linkStakingUser.js +9 -9
- package/esm/api/exchange/_methods/linkStakingUser.js.map +1 -1
- package/esm/api/exchange/_methods/modify.d.ts +14 -175
- package/esm/api/exchange/_methods/modify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/modify.js +15 -18
- package/esm/api/exchange/_methods/modify.js.map +1 -1
- package/esm/api/exchange/_methods/noop.d.ts.map +1 -1
- package/esm/api/exchange/_methods/noop.js +10 -1
- package/esm/api/exchange/_methods/noop.js.map +1 -1
- package/esm/api/exchange/_methods/order.d.ts +19 -212
- package/esm/api/exchange/_methods/order.d.ts.map +1 -1
- package/esm/api/exchange/_methods/order.js +18 -21
- package/esm/api/exchange/_methods/order.js.map +1 -1
- package/esm/api/exchange/_methods/perpDeploy.d.ts +39 -740
- package/esm/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
- package/esm/api/exchange/_methods/perpDeploy.js +21 -20
- package/esm/api/exchange/_methods/perpDeploy.js.map +1 -1
- package/esm/api/exchange/_methods/registerReferrer.d.ts +7 -32
- package/esm/api/exchange/_methods/registerReferrer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/registerReferrer.js +8 -9
- package/esm/api/exchange/_methods/registerReferrer.js.map +1 -1
- package/esm/api/exchange/_methods/reserveRequestWeight.d.ts +7 -32
- package/esm/api/exchange/_methods/reserveRequestWeight.d.ts.map +1 -1
- package/esm/api/exchange/_methods/reserveRequestWeight.js +8 -9
- package/esm/api/exchange/_methods/reserveRequestWeight.js.map +1 -1
- package/esm/api/exchange/_methods/scheduleCancel.d.ts +7 -37
- package/esm/api/exchange/_methods/scheduleCancel.d.ts.map +1 -1
- package/esm/api/exchange/_methods/scheduleCancel.js +5 -5
- package/esm/api/exchange/_methods/scheduleCancel.js.map +1 -1
- package/esm/api/exchange/_methods/sendAsset.d.ts +16 -14
- package/esm/api/exchange/_methods/sendAsset.d.ts.map +1 -1
- package/esm/api/exchange/_methods/sendAsset.js +12 -15
- package/esm/api/exchange/_methods/sendAsset.js.map +1 -1
- package/esm/api/exchange/_methods/sendToEvmWithData.d.ts +21 -19
- package/esm/api/exchange/_methods/sendToEvmWithData.d.ts.map +1 -1
- package/esm/api/exchange/_methods/sendToEvmWithData.js +15 -18
- package/esm/api/exchange/_methods/sendToEvmWithData.js.map +1 -1
- package/esm/api/exchange/_methods/setDisplayName.d.ts +7 -35
- package/esm/api/exchange/_methods/setDisplayName.d.ts.map +1 -1
- package/esm/api/exchange/_methods/setDisplayName.js +8 -9
- package/esm/api/exchange/_methods/setDisplayName.js.map +1 -1
- package/esm/api/exchange/_methods/setReferrer.d.ts +7 -32
- package/esm/api/exchange/_methods/setReferrer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/setReferrer.js +8 -9
- package/esm/api/exchange/_methods/setReferrer.js.map +1 -1
- package/esm/api/exchange/_methods/spotDeploy.d.ts +22 -430
- package/esm/api/exchange/_methods/spotDeploy.d.ts.map +1 -1
- package/esm/api/exchange/_methods/spotDeploy.js +14 -17
- package/esm/api/exchange/_methods/spotDeploy.js.map +1 -1
- package/esm/api/exchange/_methods/spotSend.d.ts +16 -14
- package/esm/api/exchange/_methods/spotSend.d.ts.map +1 -1
- package/esm/api/exchange/_methods/spotSend.js +10 -13
- package/esm/api/exchange/_methods/spotSend.js.map +1 -1
- package/esm/api/exchange/_methods/spotUser.d.ts +7 -45
- package/esm/api/exchange/_methods/spotUser.d.ts.map +1 -1
- package/esm/api/exchange/_methods/spotUser.js +8 -9
- package/esm/api/exchange/_methods/spotUser.js.map +1 -1
- package/esm/api/exchange/_methods/subAccountModify.d.ts +8 -39
- package/esm/api/exchange/_methods/subAccountModify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/subAccountModify.js +9 -9
- package/esm/api/exchange/_methods/subAccountModify.js.map +1 -1
- package/esm/api/exchange/_methods/subAccountSpotTransfer.d.ts +10 -58
- package/esm/api/exchange/_methods/subAccountSpotTransfer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/subAccountSpotTransfer.js +11 -14
- package/esm/api/exchange/_methods/subAccountSpotTransfer.js.map +1 -1
- package/esm/api/exchange/_methods/subAccountTransfer.d.ts +9 -46
- package/esm/api/exchange/_methods/subAccountTransfer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/subAccountTransfer.js +10 -9
- package/esm/api/exchange/_methods/subAccountTransfer.js.map +1 -1
- package/esm/api/exchange/_methods/tokenDelegate.d.ts +16 -10
- package/esm/api/exchange/_methods/tokenDelegate.d.ts.map +1 -1
- package/esm/api/exchange/_methods/tokenDelegate.js +10 -9
- package/esm/api/exchange/_methods/tokenDelegate.js.map +1 -1
- package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts +8 -39
- package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts.map +1 -1
- package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.js +9 -9
- package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.js.map +1 -1
- package/esm/api/exchange/_methods/twapCancel.d.ts +8 -39
- package/esm/api/exchange/_methods/twapCancel.d.ts.map +1 -1
- package/esm/api/exchange/_methods/twapCancel.js +9 -9
- package/esm/api/exchange/_methods/twapCancel.js.map +1 -1
- package/esm/api/exchange/_methods/twapOrder.d.ts +13 -88
- package/esm/api/exchange/_methods/twapOrder.d.ts.map +1 -1
- package/esm/api/exchange/_methods/twapOrder.js +14 -17
- package/esm/api/exchange/_methods/twapOrder.js.map +1 -1
- package/esm/api/exchange/_methods/updateIsolatedMargin.d.ts +9 -46
- package/esm/api/exchange/_methods/updateIsolatedMargin.d.ts.map +1 -1
- package/esm/api/exchange/_methods/updateIsolatedMargin.js +10 -9
- package/esm/api/exchange/_methods/updateIsolatedMargin.js.map +1 -1
- package/esm/api/exchange/_methods/updateLeverage.d.ts +9 -46
- package/esm/api/exchange/_methods/updateLeverage.d.ts.map +1 -1
- package/esm/api/exchange/_methods/updateLeverage.js +10 -9
- package/esm/api/exchange/_methods/updateLeverage.js.map +1 -1
- package/esm/api/exchange/_methods/usdClassTransfer.d.ts +15 -10
- package/esm/api/exchange/_methods/usdClassTransfer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/usdClassTransfer.js +9 -9
- package/esm/api/exchange/_methods/usdClassTransfer.js.map +1 -1
- package/esm/api/exchange/_methods/usdSend.d.ts +15 -10
- package/esm/api/exchange/_methods/usdSend.d.ts.map +1 -1
- package/esm/api/exchange/_methods/usdSend.js +9 -9
- package/esm/api/exchange/_methods/usdSend.js.map +1 -1
- package/esm/api/exchange/_methods/userDexAbstraction.d.ts +15 -10
- package/esm/api/exchange/_methods/userDexAbstraction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/userDexAbstraction.js +9 -9
- package/esm/api/exchange/_methods/userDexAbstraction.js.map +1 -1
- package/esm/api/exchange/_methods/userPortfolioMargin.d.ts +15 -10
- package/esm/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -1
- package/esm/api/exchange/_methods/userPortfolioMargin.js +9 -9
- package/esm/api/exchange/_methods/userPortfolioMargin.js.map +1 -1
- package/esm/api/exchange/_methods/userSetAbstraction.d.ts +15 -10
- package/esm/api/exchange/_methods/userSetAbstraction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/userSetAbstraction.js +9 -9
- package/esm/api/exchange/_methods/userSetAbstraction.js.map +1 -1
- package/esm/api/exchange/_methods/validatorL1Stream.d.ts +7 -32
- package/esm/api/exchange/_methods/validatorL1Stream.d.ts.map +1 -1
- package/esm/api/exchange/_methods/validatorL1Stream.js +8 -9
- package/esm/api/exchange/_methods/validatorL1Stream.js.map +1 -1
- package/esm/api/exchange/_methods/vaultDistribute.d.ts +8 -42
- package/esm/api/exchange/_methods/vaultDistribute.d.ts.map +1 -1
- package/esm/api/exchange/_methods/vaultDistribute.js +9 -9
- package/esm/api/exchange/_methods/vaultDistribute.js.map +1 -1
- package/esm/api/exchange/_methods/vaultModify.d.ts +9 -50
- package/esm/api/exchange/_methods/vaultModify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/vaultModify.js +10 -13
- package/esm/api/exchange/_methods/vaultModify.js.map +1 -1
- package/esm/api/exchange/_methods/vaultTransfer.d.ts +9 -46
- package/esm/api/exchange/_methods/vaultTransfer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/vaultTransfer.js +10 -9
- package/esm/api/exchange/_methods/vaultTransfer.js.map +1 -1
- package/esm/api/exchange/_methods/withdraw3.d.ts +15 -10
- package/esm/api/exchange/_methods/withdraw3.d.ts.map +1 -1
- package/esm/api/exchange/_methods/withdraw3.js +9 -9
- package/esm/api/exchange/_methods/withdraw3.js.map +1 -1
- package/esm/api/exchange/mod.d.ts +1 -1
- package/esm/api/exchange/mod.d.ts.map +1 -1
- package/esm/api/info/_methods/activeAssetData.d.ts +4 -4
- package/esm/api/info/_methods/activeAssetData.js +4 -4
- package/esm/api/info/_methods/alignedQuoteTokenInfo.d.ts +3 -4
- package/esm/api/info/_methods/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/esm/api/info/_methods/alignedQuoteTokenInfo.js +3 -4
- package/esm/api/info/_methods/alignedQuoteTokenInfo.js.map +1 -1
- package/esm/api/info/_methods/approvedBuilders.d.ts +3 -4
- package/esm/api/info/_methods/approvedBuilders.d.ts.map +1 -1
- package/esm/api/info/_methods/approvedBuilders.js +3 -4
- package/esm/api/info/_methods/approvedBuilders.js.map +1 -1
- package/esm/api/info/_methods/blockDetails.d.ts +3 -4
- package/esm/api/info/_methods/blockDetails.d.ts.map +1 -1
- package/esm/api/info/_methods/blockDetails.js +3 -4
- package/esm/api/info/_methods/blockDetails.js.map +1 -1
- package/esm/api/info/_methods/borrowLendReserveState.d.ts +3 -4
- package/esm/api/info/_methods/borrowLendReserveState.d.ts.map +1 -1
- package/esm/api/info/_methods/borrowLendReserveState.js +3 -4
- package/esm/api/info/_methods/borrowLendReserveState.js.map +1 -1
- package/esm/api/info/_methods/borrowLendUserState.d.ts +3 -4
- package/esm/api/info/_methods/borrowLendUserState.d.ts.map +1 -1
- package/esm/api/info/_methods/borrowLendUserState.js +3 -4
- package/esm/api/info/_methods/borrowLendUserState.js.map +1 -1
- package/esm/api/info/_methods/candleSnapshot.d.ts +5 -8
- package/esm/api/info/_methods/candleSnapshot.d.ts.map +1 -1
- package/esm/api/info/_methods/candleSnapshot.js +5 -8
- package/esm/api/info/_methods/candleSnapshot.js.map +1 -1
- package/esm/api/info/_methods/clearinghouseState.d.ts +3 -4
- package/esm/api/info/_methods/clearinghouseState.d.ts.map +1 -1
- package/esm/api/info/_methods/clearinghouseState.js +3 -4
- package/esm/api/info/_methods/clearinghouseState.js.map +1 -1
- package/esm/api/info/_methods/delegations.d.ts +3 -4
- package/esm/api/info/_methods/delegations.d.ts.map +1 -1
- package/esm/api/info/_methods/delegations.js +3 -4
- package/esm/api/info/_methods/delegations.js.map +1 -1
- package/esm/api/info/_methods/delegatorHistory.d.ts +3 -4
- package/esm/api/info/_methods/delegatorHistory.d.ts.map +1 -1
- package/esm/api/info/_methods/delegatorHistory.js +3 -4
- package/esm/api/info/_methods/delegatorHistory.js.map +1 -1
- package/esm/api/info/_methods/delegatorRewards.d.ts +3 -4
- package/esm/api/info/_methods/delegatorRewards.d.ts.map +1 -1
- package/esm/api/info/_methods/delegatorRewards.js +3 -4
- package/esm/api/info/_methods/delegatorRewards.js.map +1 -1
- package/esm/api/info/_methods/delegatorSummary.d.ts +3 -4
- package/esm/api/info/_methods/delegatorSummary.d.ts.map +1 -1
- package/esm/api/info/_methods/delegatorSummary.js +3 -4
- package/esm/api/info/_methods/delegatorSummary.js.map +1 -1
- package/esm/api/info/_methods/extraAgents.d.ts +3 -4
- package/esm/api/info/_methods/extraAgents.d.ts.map +1 -1
- package/esm/api/info/_methods/extraAgents.js +3 -4
- package/esm/api/info/_methods/extraAgents.js.map +1 -1
- package/esm/api/info/_methods/frontendOpenOrders.d.ts +3 -4
- package/esm/api/info/_methods/frontendOpenOrders.d.ts.map +1 -1
- package/esm/api/info/_methods/frontendOpenOrders.js +3 -4
- package/esm/api/info/_methods/frontendOpenOrders.js.map +1 -1
- package/esm/api/info/_methods/fundingHistory.d.ts +4 -7
- package/esm/api/info/_methods/fundingHistory.d.ts.map +1 -1
- package/esm/api/info/_methods/fundingHistory.js +4 -7
- package/esm/api/info/_methods/fundingHistory.js.map +1 -1
- package/esm/api/info/_methods/historicalOrders.d.ts +3 -4
- package/esm/api/info/_methods/historicalOrders.d.ts.map +1 -1
- package/esm/api/info/_methods/historicalOrders.js +3 -4
- package/esm/api/info/_methods/historicalOrders.js.map +1 -1
- package/esm/api/info/_methods/isVip.d.ts +3 -4
- package/esm/api/info/_methods/isVip.d.ts.map +1 -1
- package/esm/api/info/_methods/isVip.js +3 -4
- package/esm/api/info/_methods/isVip.js.map +1 -1
- package/esm/api/info/_methods/l2Book.d.ts +4 -4
- package/esm/api/info/_methods/l2Book.js +4 -4
- package/esm/api/info/_methods/leadingVaults.d.ts +3 -4
- package/esm/api/info/_methods/leadingVaults.d.ts.map +1 -1
- package/esm/api/info/_methods/leadingVaults.js +3 -4
- package/esm/api/info/_methods/leadingVaults.js.map +1 -1
- package/esm/api/info/_methods/legalCheck.d.ts +3 -4
- package/esm/api/info/_methods/legalCheck.d.ts.map +1 -1
- package/esm/api/info/_methods/legalCheck.js +3 -4
- package/esm/api/info/_methods/legalCheck.js.map +1 -1
- package/esm/api/info/_methods/marginTable.d.ts +3 -4
- package/esm/api/info/_methods/marginTable.d.ts.map +1 -1
- package/esm/api/info/_methods/marginTable.js +3 -4
- package/esm/api/info/_methods/marginTable.js.map +1 -1
- package/esm/api/info/_methods/maxBuilderFee.d.ts +4 -4
- package/esm/api/info/_methods/maxBuilderFee.js +4 -4
- package/esm/api/info/_methods/openOrders.d.ts +3 -4
- package/esm/api/info/_methods/openOrders.d.ts.map +1 -1
- package/esm/api/info/_methods/openOrders.js +3 -4
- package/esm/api/info/_methods/openOrders.js.map +1 -1
- package/esm/api/info/_methods/orderStatus.d.ts +4 -4
- package/esm/api/info/_methods/orderStatus.js +4 -4
- package/esm/api/info/_methods/outcomeMeta.d.ts +3 -1
- package/esm/api/info/_methods/outcomeMeta.d.ts.map +1 -1
- package/esm/api/info/_methods/outcomeMeta.js.map +1 -1
- package/esm/api/info/_methods/perpAnnotation.d.ts +7 -1
- package/esm/api/info/_methods/perpAnnotation.d.ts.map +1 -1
- package/esm/api/info/_methods/perpAnnotation.js +3 -1
- package/esm/api/info/_methods/perpAnnotation.js.map +1 -1
- package/esm/api/info/_methods/perpConciseAnnotations.d.ts +52 -0
- package/esm/api/info/_methods/perpConciseAnnotations.d.ts.map +1 -0
- package/esm/api/info/_methods/perpConciseAnnotations.js +47 -0
- package/esm/api/info/_methods/perpConciseAnnotations.js.map +1 -0
- package/esm/api/info/_methods/perpDexLimits.d.ts +3 -4
- package/esm/api/info/_methods/perpDexLimits.d.ts.map +1 -1
- package/esm/api/info/_methods/perpDexLimits.js +3 -4
- package/esm/api/info/_methods/perpDexLimits.js.map +1 -1
- package/esm/api/info/_methods/perpDexStatus.d.ts +3 -1
- package/esm/api/info/_methods/perpDexStatus.d.ts.map +1 -1
- package/esm/api/info/_methods/perpDexStatus.js +3 -1
- package/esm/api/info/_methods/perpDexStatus.js.map +1 -1
- package/esm/api/info/_methods/portfolio.d.ts +3 -4
- package/esm/api/info/_methods/portfolio.d.ts.map +1 -1
- package/esm/api/info/_methods/portfolio.js +3 -4
- package/esm/api/info/_methods/portfolio.js.map +1 -1
- package/esm/api/info/_methods/preTransferCheck.d.ts +4 -4
- package/esm/api/info/_methods/preTransferCheck.js +4 -4
- package/esm/api/info/_methods/recentTrades.d.ts +3 -4
- package/esm/api/info/_methods/recentTrades.d.ts.map +1 -1
- package/esm/api/info/_methods/recentTrades.js +3 -4
- package/esm/api/info/_methods/recentTrades.js.map +1 -1
- package/esm/api/info/_methods/referral.d.ts +3 -4
- package/esm/api/info/_methods/referral.d.ts.map +1 -1
- package/esm/api/info/_methods/referral.js +3 -4
- package/esm/api/info/_methods/referral.js.map +1 -1
- package/esm/api/info/_methods/spotClearinghouseState.d.ts +3 -4
- package/esm/api/info/_methods/spotClearinghouseState.d.ts.map +1 -1
- package/esm/api/info/_methods/spotClearinghouseState.js +3 -4
- package/esm/api/info/_methods/spotClearinghouseState.js.map +1 -1
- package/esm/api/info/_methods/spotDeployState.d.ts +3 -4
- package/esm/api/info/_methods/spotDeployState.d.ts.map +1 -1
- package/esm/api/info/_methods/spotDeployState.js +3 -4
- package/esm/api/info/_methods/spotDeployState.js.map +1 -1
- package/esm/api/info/_methods/subAccounts.d.ts +3 -4
- package/esm/api/info/_methods/subAccounts.d.ts.map +1 -1
- package/esm/api/info/_methods/subAccounts.js +3 -4
- package/esm/api/info/_methods/subAccounts.js.map +1 -1
- package/esm/api/info/_methods/subAccounts2.d.ts +3 -4
- package/esm/api/info/_methods/subAccounts2.d.ts.map +1 -1
- package/esm/api/info/_methods/subAccounts2.js +3 -4
- package/esm/api/info/_methods/subAccounts2.js.map +1 -1
- package/esm/api/info/_methods/tokenDetails.d.ts +3 -4
- package/esm/api/info/_methods/tokenDetails.d.ts.map +1 -1
- package/esm/api/info/_methods/tokenDetails.js +3 -4
- package/esm/api/info/_methods/tokenDetails.js.map +1 -1
- package/esm/api/info/_methods/twapHistory.d.ts +3 -4
- package/esm/api/info/_methods/twapHistory.d.ts.map +1 -1
- package/esm/api/info/_methods/twapHistory.js +3 -4
- package/esm/api/info/_methods/twapHistory.js.map +1 -1
- package/esm/api/info/_methods/txDetails.d.ts +3 -4
- package/esm/api/info/_methods/txDetails.d.ts.map +1 -1
- package/esm/api/info/_methods/txDetails.js +3 -4
- package/esm/api/info/_methods/txDetails.js.map +1 -1
- package/esm/api/info/_methods/userAbstraction.d.ts +3 -4
- package/esm/api/info/_methods/userAbstraction.d.ts.map +1 -1
- package/esm/api/info/_methods/userAbstraction.js +3 -4
- package/esm/api/info/_methods/userAbstraction.js.map +1 -1
- package/esm/api/info/_methods/userBorrowLendInterest.d.ts +4 -7
- package/esm/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -1
- package/esm/api/info/_methods/userBorrowLendInterest.js +4 -7
- package/esm/api/info/_methods/userBorrowLendInterest.js.map +1 -1
- package/esm/api/info/_methods/userDetails.d.ts +3 -4
- package/esm/api/info/_methods/userDetails.d.ts.map +1 -1
- package/esm/api/info/_methods/userDetails.js +3 -4
- package/esm/api/info/_methods/userDetails.js.map +1 -1
- package/esm/api/info/_methods/userDexAbstraction.d.ts +3 -4
- package/esm/api/info/_methods/userDexAbstraction.d.ts.map +1 -1
- package/esm/api/info/_methods/userDexAbstraction.js +3 -4
- package/esm/api/info/_methods/userDexAbstraction.js.map +1 -1
- package/esm/api/info/_methods/userFees.d.ts +3 -4
- package/esm/api/info/_methods/userFees.d.ts.map +1 -1
- package/esm/api/info/_methods/userFees.js +3 -4
- package/esm/api/info/_methods/userFees.js.map +1 -1
- package/esm/api/info/_methods/userFills.d.ts +3 -4
- package/esm/api/info/_methods/userFills.d.ts.map +1 -1
- package/esm/api/info/_methods/userFills.js +3 -4
- package/esm/api/info/_methods/userFills.js.map +1 -1
- package/esm/api/info/_methods/userFillsByTime.d.ts +4 -7
- package/esm/api/info/_methods/userFillsByTime.d.ts.map +1 -1
- package/esm/api/info/_methods/userFillsByTime.js +4 -7
- package/esm/api/info/_methods/userFillsByTime.js.map +1 -1
- package/esm/api/info/_methods/userFunding.d.ts +3 -4
- package/esm/api/info/_methods/userFunding.d.ts.map +1 -1
- package/esm/api/info/_methods/userFunding.js +3 -4
- package/esm/api/info/_methods/userFunding.js.map +1 -1
- package/esm/api/info/_methods/userNonFundingLedgerUpdates.d.ts +17 -5
- package/esm/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/esm/api/info/_methods/userNonFundingLedgerUpdates.js +3 -4
- package/esm/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/esm/api/info/_methods/userRateLimit.d.ts +3 -4
- package/esm/api/info/_methods/userRateLimit.d.ts.map +1 -1
- package/esm/api/info/_methods/userRateLimit.js +3 -4
- package/esm/api/info/_methods/userRateLimit.js.map +1 -1
- package/esm/api/info/_methods/userRole.d.ts +3 -4
- package/esm/api/info/_methods/userRole.d.ts.map +1 -1
- package/esm/api/info/_methods/userRole.js +3 -4
- package/esm/api/info/_methods/userRole.js.map +1 -1
- package/esm/api/info/_methods/userToMultiSigSigners.d.ts +3 -4
- package/esm/api/info/_methods/userToMultiSigSigners.d.ts.map +1 -1
- package/esm/api/info/_methods/userToMultiSigSigners.js +3 -4
- package/esm/api/info/_methods/userToMultiSigSigners.js.map +1 -1
- package/esm/api/info/_methods/userTwapSliceFills.d.ts +3 -4
- package/esm/api/info/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/esm/api/info/_methods/userTwapSliceFills.js +3 -4
- package/esm/api/info/_methods/userTwapSliceFills.js.map +1 -1
- package/esm/api/info/_methods/userTwapSliceFillsByTime.d.ts +4 -7
- package/esm/api/info/_methods/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/esm/api/info/_methods/userTwapSliceFillsByTime.js +4 -7
- package/esm/api/info/_methods/userTwapSliceFillsByTime.js.map +1 -1
- package/esm/api/info/_methods/userVaultEquities.d.ts +3 -4
- package/esm/api/info/_methods/userVaultEquities.d.ts.map +1 -1
- package/esm/api/info/_methods/userVaultEquities.js +3 -4
- package/esm/api/info/_methods/userVaultEquities.js.map +1 -1
- package/esm/api/info/_methods/vaultDetails.d.ts +3 -4
- package/esm/api/info/_methods/vaultDetails.d.ts.map +1 -1
- package/esm/api/info/_methods/vaultDetails.js +3 -4
- package/esm/api/info/_methods/vaultDetails.js.map +1 -1
- package/esm/api/info/_methods/webData2.d.ts +3 -4
- package/esm/api/info/_methods/webData2.d.ts.map +1 -1
- package/esm/api/info/_methods/webData2.js +3 -4
- package/esm/api/info/_methods/webData2.js.map +1 -1
- package/esm/api/info/client.d.ts +24 -0
- package/esm/api/info/client.d.ts.map +1 -1
- package/esm/api/info/client.js +25 -0
- package/esm/api/info/client.js.map +1 -1
- package/esm/api/info/mod.d.ts +1 -0
- package/esm/api/info/mod.d.ts.map +1 -1
- package/esm/api/info/mod.js +1 -0
- package/esm/api/info/mod.js.map +1 -1
- package/esm/api/subscription/_methods/l2Book.d.ts +19 -33
- package/esm/api/subscription/_methods/l2Book.d.ts.map +1 -1
- package/esm/api/subscription/_methods/l2Book.js +2 -3
- package/esm/api/subscription/_methods/l2Book.js.map +1 -1
- package/esm/api/subscription/_methods/spotState.d.ts +1 -1
- package/esm/api/subscription/_methods/spotState.js +2 -2
- package/esm/api/subscription/_methods/spotState.js.map +1 -1
- package/esm/api/subscription/_methods/userFundings.d.ts +1 -1
- package/esm/api/subscription/_methods/userFundings.d.ts.map +1 -1
- package/esm/signing/_abstractWallet.d.ts.map +1 -1
- package/esm/signing/_abstractWallet.js +11 -1
- package/esm/signing/_abstractWallet.js.map +1 -1
- package/esm/transport/websocket/_postRequest.d.ts.map +1 -1
- package/esm/transport/websocket/_postRequest.js +9 -0
- package/esm/transport/websocket/_postRequest.js.map +1 -1
- package/esm/utils/_format.d.ts +1 -0
- package/esm/utils/_format.d.ts.map +1 -1
- package/esm/utils/_format.js +1 -1
- package/esm/utils/_format.js.map +1 -1
- package/esm/utils/mod.d.ts +1 -1
- package/esm/utils/mod.d.ts.map +1 -1
- package/esm/utils/mod.js +1 -1
- package/esm/utils/mod.js.map +1 -1
- package/package.json +2 -2
- package/script/_base.js +1 -1
- package/script/_base.js.map +1 -1
- package/script/api/_schemas.d.ts.map +1 -1
- package/script/api/_schemas.js +3 -17
- package/script/api/_schemas.js.map +1 -1
- package/script/api/exchange/_methods/_base/execute.d.ts +1 -1
- package/script/api/exchange/_methods/_base/execute.d.ts.map +1 -1
- package/script/api/exchange/_methods/_base/execute.js.map +1 -1
- package/script/api/exchange/_methods/agentEnableDexAbstraction.d.ts.map +1 -1
- package/script/api/exchange/_methods/agentEnableDexAbstraction.js +10 -1
- package/script/api/exchange/_methods/agentEnableDexAbstraction.js.map +1 -1
- package/script/api/exchange/_methods/agentSetAbstraction.d.ts +7 -37
- package/script/api/exchange/_methods/agentSetAbstraction.d.ts.map +1 -1
- package/script/api/exchange/_methods/agentSetAbstraction.js +8 -9
- package/script/api/exchange/_methods/agentSetAbstraction.js.map +1 -1
- package/script/api/exchange/_methods/approveAgent.d.ts +19 -17
- package/script/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/script/api/exchange/_methods/approveAgent.js +13 -16
- package/script/api/exchange/_methods/approveAgent.js.map +1 -1
- package/script/api/exchange/_methods/approveBuilderFee.d.ts +15 -10
- package/script/api/exchange/_methods/approveBuilderFee.d.ts.map +1 -1
- package/script/api/exchange/_methods/approveBuilderFee.js +9 -9
- package/script/api/exchange/_methods/approveBuilderFee.js.map +1 -1
- package/script/api/exchange/_methods/batchModify.d.ts +18 -192
- package/script/api/exchange/_methods/batchModify.d.ts.map +1 -1
- package/script/api/exchange/_methods/batchModify.js +19 -22
- package/script/api/exchange/_methods/batchModify.js.map +1 -1
- package/script/api/exchange/_methods/borrowLend.d.ts +9 -46
- package/script/api/exchange/_methods/borrowLend.d.ts.map +1 -1
- package/script/api/exchange/_methods/borrowLend.js +10 -9
- package/script/api/exchange/_methods/borrowLend.js.map +1 -1
- package/script/api/exchange/_methods/cDeposit.d.ts +14 -10
- package/script/api/exchange/_methods/cDeposit.d.ts.map +1 -1
- package/script/api/exchange/_methods/cDeposit.js +8 -9
- package/script/api/exchange/_methods/cDeposit.js.map +1 -1
- package/script/api/exchange/_methods/cSignerAction.d.ts +13 -61
- package/script/api/exchange/_methods/cSignerAction.d.ts.map +1 -1
- package/script/api/exchange/_methods/cSignerAction.js +11 -13
- package/script/api/exchange/_methods/cSignerAction.js.map +1 -1
- package/script/api/exchange/_methods/cValidatorAction.d.ts +18 -247
- package/script/api/exchange/_methods/cValidatorAction.d.ts.map +1 -1
- package/script/api/exchange/_methods/cValidatorAction.js +15 -18
- package/script/api/exchange/_methods/cValidatorAction.js.map +1 -1
- package/script/api/exchange/_methods/cWithdraw.d.ts +14 -10
- package/script/api/exchange/_methods/cWithdraw.d.ts.map +1 -1
- package/script/api/exchange/_methods/cWithdraw.js +8 -9
- package/script/api/exchange/_methods/cWithdraw.js.map +1 -1
- package/script/api/exchange/_methods/cancel.d.ts +7 -52
- package/script/api/exchange/_methods/cancel.d.ts.map +1 -1
- package/script/api/exchange/_methods/cancel.js +8 -9
- package/script/api/exchange/_methods/cancel.js.map +1 -1
- package/script/api/exchange/_methods/cancelByCloid.d.ts +9 -56
- package/script/api/exchange/_methods/cancelByCloid.d.ts.map +1 -1
- package/script/api/exchange/_methods/cancelByCloid.js +10 -13
- package/script/api/exchange/_methods/cancelByCloid.js.map +1 -1
- package/script/api/exchange/_methods/claimRewards.d.ts.map +1 -1
- package/script/api/exchange/_methods/claimRewards.js +10 -1
- package/script/api/exchange/_methods/claimRewards.js.map +1 -1
- package/script/api/exchange/_methods/convertToMultiSigUser.d.ts +19 -18
- package/script/api/exchange/_methods/convertToMultiSigUser.d.ts.map +1 -1
- package/script/api/exchange/_methods/convertToMultiSigUser.js +13 -17
- package/script/api/exchange/_methods/convertToMultiSigUser.js.map +1 -1
- package/script/api/exchange/_methods/createSubAccount.d.ts +7 -32
- package/script/api/exchange/_methods/createSubAccount.d.ts.map +1 -1
- package/script/api/exchange/_methods/createSubAccount.js +8 -9
- package/script/api/exchange/_methods/createSubAccount.js.map +1 -1
- package/script/api/exchange/_methods/createVault.d.ts +10 -58
- package/script/api/exchange/_methods/createVault.d.ts.map +1 -1
- package/script/api/exchange/_methods/createVault.js +11 -14
- package/script/api/exchange/_methods/createVault.js.map +1 -1
- package/script/api/exchange/_methods/evmUserModify.d.ts +7 -32
- package/script/api/exchange/_methods/evmUserModify.d.ts.map +1 -1
- package/script/api/exchange/_methods/evmUserModify.js +8 -9
- package/script/api/exchange/_methods/evmUserModify.js.map +1 -1
- package/script/api/exchange/_methods/linkStakingUser.d.ts +15 -10
- package/script/api/exchange/_methods/linkStakingUser.d.ts.map +1 -1
- package/script/api/exchange/_methods/linkStakingUser.js +9 -9
- package/script/api/exchange/_methods/linkStakingUser.js.map +1 -1
- package/script/api/exchange/_methods/modify.d.ts +14 -175
- package/script/api/exchange/_methods/modify.d.ts.map +1 -1
- package/script/api/exchange/_methods/modify.js +15 -18
- package/script/api/exchange/_methods/modify.js.map +1 -1
- package/script/api/exchange/_methods/noop.d.ts.map +1 -1
- package/script/api/exchange/_methods/noop.js +10 -1
- package/script/api/exchange/_methods/noop.js.map +1 -1
- package/script/api/exchange/_methods/order.d.ts +19 -212
- package/script/api/exchange/_methods/order.d.ts.map +1 -1
- package/script/api/exchange/_methods/order.js +18 -21
- package/script/api/exchange/_methods/order.js.map +1 -1
- package/script/api/exchange/_methods/perpDeploy.d.ts +39 -740
- package/script/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
- package/script/api/exchange/_methods/perpDeploy.js +21 -20
- package/script/api/exchange/_methods/perpDeploy.js.map +1 -1
- package/script/api/exchange/_methods/registerReferrer.d.ts +7 -32
- package/script/api/exchange/_methods/registerReferrer.d.ts.map +1 -1
- package/script/api/exchange/_methods/registerReferrer.js +8 -9
- package/script/api/exchange/_methods/registerReferrer.js.map +1 -1
- package/script/api/exchange/_methods/reserveRequestWeight.d.ts +7 -32
- package/script/api/exchange/_methods/reserveRequestWeight.d.ts.map +1 -1
- package/script/api/exchange/_methods/reserveRequestWeight.js +8 -9
- package/script/api/exchange/_methods/reserveRequestWeight.js.map +1 -1
- package/script/api/exchange/_methods/scheduleCancel.d.ts +7 -37
- package/script/api/exchange/_methods/scheduleCancel.d.ts.map +1 -1
- package/script/api/exchange/_methods/scheduleCancel.js +5 -5
- package/script/api/exchange/_methods/scheduleCancel.js.map +1 -1
- package/script/api/exchange/_methods/sendAsset.d.ts +16 -14
- package/script/api/exchange/_methods/sendAsset.d.ts.map +1 -1
- package/script/api/exchange/_methods/sendAsset.js +12 -15
- package/script/api/exchange/_methods/sendAsset.js.map +1 -1
- package/script/api/exchange/_methods/sendToEvmWithData.d.ts +21 -19
- package/script/api/exchange/_methods/sendToEvmWithData.d.ts.map +1 -1
- package/script/api/exchange/_methods/sendToEvmWithData.js +15 -18
- package/script/api/exchange/_methods/sendToEvmWithData.js.map +1 -1
- package/script/api/exchange/_methods/setDisplayName.d.ts +7 -35
- package/script/api/exchange/_methods/setDisplayName.d.ts.map +1 -1
- package/script/api/exchange/_methods/setDisplayName.js +8 -9
- package/script/api/exchange/_methods/setDisplayName.js.map +1 -1
- package/script/api/exchange/_methods/setReferrer.d.ts +7 -32
- package/script/api/exchange/_methods/setReferrer.d.ts.map +1 -1
- package/script/api/exchange/_methods/setReferrer.js +8 -9
- package/script/api/exchange/_methods/setReferrer.js.map +1 -1
- package/script/api/exchange/_methods/spotDeploy.d.ts +22 -430
- package/script/api/exchange/_methods/spotDeploy.d.ts.map +1 -1
- package/script/api/exchange/_methods/spotDeploy.js +14 -17
- package/script/api/exchange/_methods/spotDeploy.js.map +1 -1
- package/script/api/exchange/_methods/spotSend.d.ts +16 -14
- package/script/api/exchange/_methods/spotSend.d.ts.map +1 -1
- package/script/api/exchange/_methods/spotSend.js +10 -13
- package/script/api/exchange/_methods/spotSend.js.map +1 -1
- package/script/api/exchange/_methods/spotUser.d.ts +7 -45
- package/script/api/exchange/_methods/spotUser.d.ts.map +1 -1
- package/script/api/exchange/_methods/spotUser.js +8 -9
- package/script/api/exchange/_methods/spotUser.js.map +1 -1
- package/script/api/exchange/_methods/subAccountModify.d.ts +8 -39
- package/script/api/exchange/_methods/subAccountModify.d.ts.map +1 -1
- package/script/api/exchange/_methods/subAccountModify.js +9 -9
- package/script/api/exchange/_methods/subAccountModify.js.map +1 -1
- package/script/api/exchange/_methods/subAccountSpotTransfer.d.ts +10 -58
- package/script/api/exchange/_methods/subAccountSpotTransfer.d.ts.map +1 -1
- package/script/api/exchange/_methods/subAccountSpotTransfer.js +11 -14
- package/script/api/exchange/_methods/subAccountSpotTransfer.js.map +1 -1
- package/script/api/exchange/_methods/subAccountTransfer.d.ts +9 -46
- package/script/api/exchange/_methods/subAccountTransfer.d.ts.map +1 -1
- package/script/api/exchange/_methods/subAccountTransfer.js +10 -9
- package/script/api/exchange/_methods/subAccountTransfer.js.map +1 -1
- package/script/api/exchange/_methods/tokenDelegate.d.ts +16 -10
- package/script/api/exchange/_methods/tokenDelegate.d.ts.map +1 -1
- package/script/api/exchange/_methods/tokenDelegate.js +10 -9
- package/script/api/exchange/_methods/tokenDelegate.js.map +1 -1
- package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts +8 -39
- package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts.map +1 -1
- package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.js +9 -9
- package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.js.map +1 -1
- package/script/api/exchange/_methods/twapCancel.d.ts +8 -39
- package/script/api/exchange/_methods/twapCancel.d.ts.map +1 -1
- package/script/api/exchange/_methods/twapCancel.js +9 -9
- package/script/api/exchange/_methods/twapCancel.js.map +1 -1
- package/script/api/exchange/_methods/twapOrder.d.ts +13 -88
- package/script/api/exchange/_methods/twapOrder.d.ts.map +1 -1
- package/script/api/exchange/_methods/twapOrder.js +14 -17
- package/script/api/exchange/_methods/twapOrder.js.map +1 -1
- package/script/api/exchange/_methods/updateIsolatedMargin.d.ts +9 -46
- package/script/api/exchange/_methods/updateIsolatedMargin.d.ts.map +1 -1
- package/script/api/exchange/_methods/updateIsolatedMargin.js +10 -9
- package/script/api/exchange/_methods/updateIsolatedMargin.js.map +1 -1
- package/script/api/exchange/_methods/updateLeverage.d.ts +9 -46
- package/script/api/exchange/_methods/updateLeverage.d.ts.map +1 -1
- package/script/api/exchange/_methods/updateLeverage.js +10 -9
- package/script/api/exchange/_methods/updateLeverage.js.map +1 -1
- package/script/api/exchange/_methods/usdClassTransfer.d.ts +15 -10
- package/script/api/exchange/_methods/usdClassTransfer.d.ts.map +1 -1
- package/script/api/exchange/_methods/usdClassTransfer.js +9 -9
- package/script/api/exchange/_methods/usdClassTransfer.js.map +1 -1
- package/script/api/exchange/_methods/usdSend.d.ts +15 -10
- package/script/api/exchange/_methods/usdSend.d.ts.map +1 -1
- package/script/api/exchange/_methods/usdSend.js +9 -9
- package/script/api/exchange/_methods/usdSend.js.map +1 -1
- package/script/api/exchange/_methods/userDexAbstraction.d.ts +15 -10
- package/script/api/exchange/_methods/userDexAbstraction.d.ts.map +1 -1
- package/script/api/exchange/_methods/userDexAbstraction.js +9 -9
- package/script/api/exchange/_methods/userDexAbstraction.js.map +1 -1
- package/script/api/exchange/_methods/userPortfolioMargin.d.ts +15 -10
- package/script/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -1
- package/script/api/exchange/_methods/userPortfolioMargin.js +9 -9
- package/script/api/exchange/_methods/userPortfolioMargin.js.map +1 -1
- package/script/api/exchange/_methods/userSetAbstraction.d.ts +15 -10
- package/script/api/exchange/_methods/userSetAbstraction.d.ts.map +1 -1
- package/script/api/exchange/_methods/userSetAbstraction.js +9 -9
- package/script/api/exchange/_methods/userSetAbstraction.js.map +1 -1
- package/script/api/exchange/_methods/validatorL1Stream.d.ts +7 -32
- package/script/api/exchange/_methods/validatorL1Stream.d.ts.map +1 -1
- package/script/api/exchange/_methods/validatorL1Stream.js +8 -9
- package/script/api/exchange/_methods/validatorL1Stream.js.map +1 -1
- package/script/api/exchange/_methods/vaultDistribute.d.ts +8 -42
- package/script/api/exchange/_methods/vaultDistribute.d.ts.map +1 -1
- package/script/api/exchange/_methods/vaultDistribute.js +9 -9
- package/script/api/exchange/_methods/vaultDistribute.js.map +1 -1
- package/script/api/exchange/_methods/vaultModify.d.ts +9 -50
- package/script/api/exchange/_methods/vaultModify.d.ts.map +1 -1
- package/script/api/exchange/_methods/vaultModify.js +10 -13
- package/script/api/exchange/_methods/vaultModify.js.map +1 -1
- package/script/api/exchange/_methods/vaultTransfer.d.ts +9 -46
- package/script/api/exchange/_methods/vaultTransfer.d.ts.map +1 -1
- package/script/api/exchange/_methods/vaultTransfer.js +10 -9
- package/script/api/exchange/_methods/vaultTransfer.js.map +1 -1
- package/script/api/exchange/_methods/withdraw3.d.ts +15 -10
- package/script/api/exchange/_methods/withdraw3.d.ts.map +1 -1
- package/script/api/exchange/_methods/withdraw3.js +9 -9
- package/script/api/exchange/_methods/withdraw3.js.map +1 -1
- package/script/api/exchange/mod.d.ts +1 -1
- package/script/api/exchange/mod.d.ts.map +1 -1
- package/script/api/info/_methods/activeAssetData.d.ts +4 -4
- package/script/api/info/_methods/activeAssetData.js +4 -4
- package/script/api/info/_methods/alignedQuoteTokenInfo.d.ts +3 -4
- package/script/api/info/_methods/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/script/api/info/_methods/alignedQuoteTokenInfo.js +3 -4
- package/script/api/info/_methods/alignedQuoteTokenInfo.js.map +1 -1
- package/script/api/info/_methods/approvedBuilders.d.ts +3 -4
- package/script/api/info/_methods/approvedBuilders.d.ts.map +1 -1
- package/script/api/info/_methods/approvedBuilders.js +3 -4
- package/script/api/info/_methods/approvedBuilders.js.map +1 -1
- package/script/api/info/_methods/blockDetails.d.ts +3 -4
- package/script/api/info/_methods/blockDetails.d.ts.map +1 -1
- package/script/api/info/_methods/blockDetails.js +3 -4
- package/script/api/info/_methods/blockDetails.js.map +1 -1
- package/script/api/info/_methods/borrowLendReserveState.d.ts +3 -4
- package/script/api/info/_methods/borrowLendReserveState.d.ts.map +1 -1
- package/script/api/info/_methods/borrowLendReserveState.js +3 -4
- package/script/api/info/_methods/borrowLendReserveState.js.map +1 -1
- package/script/api/info/_methods/borrowLendUserState.d.ts +3 -4
- package/script/api/info/_methods/borrowLendUserState.d.ts.map +1 -1
- package/script/api/info/_methods/borrowLendUserState.js +3 -4
- package/script/api/info/_methods/borrowLendUserState.js.map +1 -1
- package/script/api/info/_methods/candleSnapshot.d.ts +5 -8
- package/script/api/info/_methods/candleSnapshot.d.ts.map +1 -1
- package/script/api/info/_methods/candleSnapshot.js +5 -8
- package/script/api/info/_methods/candleSnapshot.js.map +1 -1
- package/script/api/info/_methods/clearinghouseState.d.ts +3 -4
- package/script/api/info/_methods/clearinghouseState.d.ts.map +1 -1
- package/script/api/info/_methods/clearinghouseState.js +3 -4
- package/script/api/info/_methods/clearinghouseState.js.map +1 -1
- package/script/api/info/_methods/delegations.d.ts +3 -4
- package/script/api/info/_methods/delegations.d.ts.map +1 -1
- package/script/api/info/_methods/delegations.js +3 -4
- package/script/api/info/_methods/delegations.js.map +1 -1
- package/script/api/info/_methods/delegatorHistory.d.ts +3 -4
- package/script/api/info/_methods/delegatorHistory.d.ts.map +1 -1
- package/script/api/info/_methods/delegatorHistory.js +3 -4
- package/script/api/info/_methods/delegatorHistory.js.map +1 -1
- package/script/api/info/_methods/delegatorRewards.d.ts +3 -4
- package/script/api/info/_methods/delegatorRewards.d.ts.map +1 -1
- package/script/api/info/_methods/delegatorRewards.js +3 -4
- package/script/api/info/_methods/delegatorRewards.js.map +1 -1
- package/script/api/info/_methods/delegatorSummary.d.ts +3 -4
- package/script/api/info/_methods/delegatorSummary.d.ts.map +1 -1
- package/script/api/info/_methods/delegatorSummary.js +3 -4
- package/script/api/info/_methods/delegatorSummary.js.map +1 -1
- package/script/api/info/_methods/extraAgents.d.ts +3 -4
- package/script/api/info/_methods/extraAgents.d.ts.map +1 -1
- package/script/api/info/_methods/extraAgents.js +3 -4
- package/script/api/info/_methods/extraAgents.js.map +1 -1
- package/script/api/info/_methods/frontendOpenOrders.d.ts +3 -4
- package/script/api/info/_methods/frontendOpenOrders.d.ts.map +1 -1
- package/script/api/info/_methods/frontendOpenOrders.js +3 -4
- package/script/api/info/_methods/frontendOpenOrders.js.map +1 -1
- package/script/api/info/_methods/fundingHistory.d.ts +4 -7
- package/script/api/info/_methods/fundingHistory.d.ts.map +1 -1
- package/script/api/info/_methods/fundingHistory.js +4 -7
- package/script/api/info/_methods/fundingHistory.js.map +1 -1
- package/script/api/info/_methods/historicalOrders.d.ts +3 -4
- package/script/api/info/_methods/historicalOrders.d.ts.map +1 -1
- package/script/api/info/_methods/historicalOrders.js +3 -4
- package/script/api/info/_methods/historicalOrders.js.map +1 -1
- package/script/api/info/_methods/isVip.d.ts +3 -4
- package/script/api/info/_methods/isVip.d.ts.map +1 -1
- package/script/api/info/_methods/isVip.js +3 -4
- package/script/api/info/_methods/isVip.js.map +1 -1
- package/script/api/info/_methods/l2Book.d.ts +4 -4
- package/script/api/info/_methods/l2Book.js +4 -4
- package/script/api/info/_methods/leadingVaults.d.ts +3 -4
- package/script/api/info/_methods/leadingVaults.d.ts.map +1 -1
- package/script/api/info/_methods/leadingVaults.js +3 -4
- package/script/api/info/_methods/leadingVaults.js.map +1 -1
- package/script/api/info/_methods/legalCheck.d.ts +3 -4
- package/script/api/info/_methods/legalCheck.d.ts.map +1 -1
- package/script/api/info/_methods/legalCheck.js +3 -4
- package/script/api/info/_methods/legalCheck.js.map +1 -1
- package/script/api/info/_methods/marginTable.d.ts +3 -4
- package/script/api/info/_methods/marginTable.d.ts.map +1 -1
- package/script/api/info/_methods/marginTable.js +3 -4
- package/script/api/info/_methods/marginTable.js.map +1 -1
- package/script/api/info/_methods/maxBuilderFee.d.ts +4 -4
- package/script/api/info/_methods/maxBuilderFee.js +4 -4
- package/script/api/info/_methods/openOrders.d.ts +3 -4
- package/script/api/info/_methods/openOrders.d.ts.map +1 -1
- package/script/api/info/_methods/openOrders.js +3 -4
- package/script/api/info/_methods/openOrders.js.map +1 -1
- package/script/api/info/_methods/orderStatus.d.ts +4 -4
- package/script/api/info/_methods/orderStatus.js +4 -4
- package/script/api/info/_methods/outcomeMeta.d.ts +3 -1
- package/script/api/info/_methods/outcomeMeta.d.ts.map +1 -1
- package/script/api/info/_methods/outcomeMeta.js.map +1 -1
- package/script/api/info/_methods/perpAnnotation.d.ts +7 -1
- package/script/api/info/_methods/perpAnnotation.d.ts.map +1 -1
- package/script/api/info/_methods/perpAnnotation.js +3 -1
- package/script/api/info/_methods/perpAnnotation.js.map +1 -1
- package/script/api/info/_methods/perpConciseAnnotations.d.ts +52 -0
- package/script/api/info/_methods/perpConciseAnnotations.d.ts.map +1 -0
- package/script/api/info/_methods/perpConciseAnnotations.js +84 -0
- package/script/api/info/_methods/perpConciseAnnotations.js.map +1 -0
- package/script/api/info/_methods/perpDexLimits.d.ts +3 -4
- package/script/api/info/_methods/perpDexLimits.d.ts.map +1 -1
- package/script/api/info/_methods/perpDexLimits.js +3 -4
- package/script/api/info/_methods/perpDexLimits.js.map +1 -1
- package/script/api/info/_methods/perpDexStatus.d.ts +3 -1
- package/script/api/info/_methods/perpDexStatus.d.ts.map +1 -1
- package/script/api/info/_methods/perpDexStatus.js +3 -1
- package/script/api/info/_methods/perpDexStatus.js.map +1 -1
- package/script/api/info/_methods/portfolio.d.ts +3 -4
- package/script/api/info/_methods/portfolio.d.ts.map +1 -1
- package/script/api/info/_methods/portfolio.js +3 -4
- package/script/api/info/_methods/portfolio.js.map +1 -1
- package/script/api/info/_methods/preTransferCheck.d.ts +4 -4
- package/script/api/info/_methods/preTransferCheck.js +4 -4
- package/script/api/info/_methods/recentTrades.d.ts +3 -4
- package/script/api/info/_methods/recentTrades.d.ts.map +1 -1
- package/script/api/info/_methods/recentTrades.js +3 -4
- package/script/api/info/_methods/recentTrades.js.map +1 -1
- package/script/api/info/_methods/referral.d.ts +3 -4
- package/script/api/info/_methods/referral.d.ts.map +1 -1
- package/script/api/info/_methods/referral.js +3 -4
- package/script/api/info/_methods/referral.js.map +1 -1
- package/script/api/info/_methods/spotClearinghouseState.d.ts +3 -4
- package/script/api/info/_methods/spotClearinghouseState.d.ts.map +1 -1
- package/script/api/info/_methods/spotClearinghouseState.js +3 -4
- package/script/api/info/_methods/spotClearinghouseState.js.map +1 -1
- package/script/api/info/_methods/spotDeployState.d.ts +3 -4
- package/script/api/info/_methods/spotDeployState.d.ts.map +1 -1
- package/script/api/info/_methods/spotDeployState.js +3 -4
- package/script/api/info/_methods/spotDeployState.js.map +1 -1
- package/script/api/info/_methods/subAccounts.d.ts +3 -4
- package/script/api/info/_methods/subAccounts.d.ts.map +1 -1
- package/script/api/info/_methods/subAccounts.js +3 -4
- package/script/api/info/_methods/subAccounts.js.map +1 -1
- package/script/api/info/_methods/subAccounts2.d.ts +3 -4
- package/script/api/info/_methods/subAccounts2.d.ts.map +1 -1
- package/script/api/info/_methods/subAccounts2.js +3 -4
- package/script/api/info/_methods/subAccounts2.js.map +1 -1
- package/script/api/info/_methods/tokenDetails.d.ts +3 -4
- package/script/api/info/_methods/tokenDetails.d.ts.map +1 -1
- package/script/api/info/_methods/tokenDetails.js +3 -4
- package/script/api/info/_methods/tokenDetails.js.map +1 -1
- package/script/api/info/_methods/twapHistory.d.ts +3 -4
- package/script/api/info/_methods/twapHistory.d.ts.map +1 -1
- package/script/api/info/_methods/twapHistory.js +3 -4
- package/script/api/info/_methods/twapHistory.js.map +1 -1
- package/script/api/info/_methods/txDetails.d.ts +3 -4
- package/script/api/info/_methods/txDetails.d.ts.map +1 -1
- package/script/api/info/_methods/txDetails.js +3 -4
- package/script/api/info/_methods/txDetails.js.map +1 -1
- package/script/api/info/_methods/userAbstraction.d.ts +3 -4
- package/script/api/info/_methods/userAbstraction.d.ts.map +1 -1
- package/script/api/info/_methods/userAbstraction.js +3 -4
- package/script/api/info/_methods/userAbstraction.js.map +1 -1
- package/script/api/info/_methods/userBorrowLendInterest.d.ts +4 -7
- package/script/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -1
- package/script/api/info/_methods/userBorrowLendInterest.js +4 -7
- package/script/api/info/_methods/userBorrowLendInterest.js.map +1 -1
- package/script/api/info/_methods/userDetails.d.ts +3 -4
- package/script/api/info/_methods/userDetails.d.ts.map +1 -1
- package/script/api/info/_methods/userDetails.js +3 -4
- package/script/api/info/_methods/userDetails.js.map +1 -1
- package/script/api/info/_methods/userDexAbstraction.d.ts +3 -4
- package/script/api/info/_methods/userDexAbstraction.d.ts.map +1 -1
- package/script/api/info/_methods/userDexAbstraction.js +3 -4
- package/script/api/info/_methods/userDexAbstraction.js.map +1 -1
- package/script/api/info/_methods/userFees.d.ts +3 -4
- package/script/api/info/_methods/userFees.d.ts.map +1 -1
- package/script/api/info/_methods/userFees.js +3 -4
- package/script/api/info/_methods/userFees.js.map +1 -1
- package/script/api/info/_methods/userFills.d.ts +3 -4
- package/script/api/info/_methods/userFills.d.ts.map +1 -1
- package/script/api/info/_methods/userFills.js +3 -4
- package/script/api/info/_methods/userFills.js.map +1 -1
- package/script/api/info/_methods/userFillsByTime.d.ts +4 -7
- package/script/api/info/_methods/userFillsByTime.d.ts.map +1 -1
- package/script/api/info/_methods/userFillsByTime.js +4 -7
- package/script/api/info/_methods/userFillsByTime.js.map +1 -1
- package/script/api/info/_methods/userFunding.d.ts +3 -4
- package/script/api/info/_methods/userFunding.d.ts.map +1 -1
- package/script/api/info/_methods/userFunding.js +3 -4
- package/script/api/info/_methods/userFunding.js.map +1 -1
- package/script/api/info/_methods/userNonFundingLedgerUpdates.d.ts +17 -5
- package/script/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/script/api/info/_methods/userNonFundingLedgerUpdates.js +3 -4
- package/script/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/script/api/info/_methods/userRateLimit.d.ts +3 -4
- package/script/api/info/_methods/userRateLimit.d.ts.map +1 -1
- package/script/api/info/_methods/userRateLimit.js +3 -4
- package/script/api/info/_methods/userRateLimit.js.map +1 -1
- package/script/api/info/_methods/userRole.d.ts +3 -4
- package/script/api/info/_methods/userRole.d.ts.map +1 -1
- package/script/api/info/_methods/userRole.js +3 -4
- package/script/api/info/_methods/userRole.js.map +1 -1
- package/script/api/info/_methods/userToMultiSigSigners.d.ts +3 -4
- package/script/api/info/_methods/userToMultiSigSigners.d.ts.map +1 -1
- package/script/api/info/_methods/userToMultiSigSigners.js +3 -4
- package/script/api/info/_methods/userToMultiSigSigners.js.map +1 -1
- package/script/api/info/_methods/userTwapSliceFills.d.ts +3 -4
- package/script/api/info/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/script/api/info/_methods/userTwapSliceFills.js +3 -4
- package/script/api/info/_methods/userTwapSliceFills.js.map +1 -1
- package/script/api/info/_methods/userTwapSliceFillsByTime.d.ts +4 -7
- package/script/api/info/_methods/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/script/api/info/_methods/userTwapSliceFillsByTime.js +4 -7
- package/script/api/info/_methods/userTwapSliceFillsByTime.js.map +1 -1
- package/script/api/info/_methods/userVaultEquities.d.ts +3 -4
- package/script/api/info/_methods/userVaultEquities.d.ts.map +1 -1
- package/script/api/info/_methods/userVaultEquities.js +3 -4
- package/script/api/info/_methods/userVaultEquities.js.map +1 -1
- package/script/api/info/_methods/vaultDetails.d.ts +3 -4
- package/script/api/info/_methods/vaultDetails.d.ts.map +1 -1
- package/script/api/info/_methods/vaultDetails.js +3 -4
- package/script/api/info/_methods/vaultDetails.js.map +1 -1
- package/script/api/info/_methods/webData2.d.ts +3 -4
- package/script/api/info/_methods/webData2.d.ts.map +1 -1
- package/script/api/info/_methods/webData2.js +3 -4
- package/script/api/info/_methods/webData2.js.map +1 -1
- package/script/api/info/client.d.ts +24 -0
- package/script/api/info/client.d.ts.map +1 -1
- package/script/api/info/client.js +25 -0
- package/script/api/info/client.js.map +1 -1
- package/script/api/info/mod.d.ts +1 -0
- package/script/api/info/mod.d.ts.map +1 -1
- package/script/api/info/mod.js +1 -0
- package/script/api/info/mod.js.map +1 -1
- package/script/api/subscription/_methods/l2Book.d.ts +19 -33
- package/script/api/subscription/_methods/l2Book.d.ts.map +1 -1
- package/script/api/subscription/_methods/l2Book.js +2 -3
- package/script/api/subscription/_methods/l2Book.js.map +1 -1
- package/script/api/subscription/_methods/spotState.d.ts +1 -1
- package/script/api/subscription/_methods/spotState.js +2 -2
- package/script/api/subscription/_methods/spotState.js.map +1 -1
- package/script/api/subscription/_methods/userFundings.d.ts +1 -1
- package/script/api/subscription/_methods/userFundings.d.ts.map +1 -1
- package/script/signing/_abstractWallet.d.ts.map +1 -1
- package/script/signing/_abstractWallet.js +11 -1
- package/script/signing/_abstractWallet.js.map +1 -1
- package/script/transport/websocket/_postRequest.d.ts.map +1 -1
- package/script/transport/websocket/_postRequest.js +9 -0
- package/script/transport/websocket/_postRequest.js.map +1 -1
- package/script/utils/_format.d.ts +1 -0
- package/script/utils/_format.d.ts.map +1 -1
- package/script/utils/_format.js +1 -0
- package/script/utils/_format.js.map +1 -1
- package/script/utils/mod.d.ts +1 -1
- package/script/utils/mod.d.ts.map +1 -1
- package/script/utils/mod.js +4 -1
- package/script/utils/mod.js.map +1 -1
- package/src/_base.ts +1 -1
- package/src/api/_schemas.ts +1 -16
- package/src/api/exchange/_methods/_base/execute.ts +3 -1
- package/src/api/exchange/_methods/agentEnableDexAbstraction.ts +8 -1
- package/src/api/exchange/_methods/agentSetAbstraction.ts +9 -13
- package/src/api/exchange/_methods/approveAgent.ts +14 -22
- package/src/api/exchange/_methods/approveBuilderFee.ts +10 -15
- package/src/api/exchange/_methods/batchModify.ts +20 -26
- package/src/api/exchange/_methods/borrowLend.ts +11 -13
- package/src/api/exchange/_methods/cDeposit.ts +9 -15
- package/src/api/exchange/_methods/cSignerAction.ts +14 -16
- package/src/api/exchange/_methods/cValidatorAction.ts +18 -21
- package/src/api/exchange/_methods/cWithdraw.ts +9 -15
- package/src/api/exchange/_methods/cancel.ts +9 -13
- package/src/api/exchange/_methods/cancelByCloid.ts +11 -17
- package/src/api/exchange/_methods/claimRewards.ts +8 -1
- package/src/api/exchange/_methods/convertToMultiSigUser.ts +14 -23
- package/src/api/exchange/_methods/createSubAccount.ts +9 -13
- package/src/api/exchange/_methods/createVault.ts +12 -18
- package/src/api/exchange/_methods/evmUserModify.ts +9 -13
- package/src/api/exchange/_methods/linkStakingUser.ts +10 -15
- package/src/api/exchange/_methods/modify.ts +16 -22
- package/src/api/exchange/_methods/noop.ts +8 -1
- package/src/api/exchange/_methods/order.ts +21 -27
- package/src/api/exchange/_methods/perpDeploy.ts +24 -23
- package/src/api/exchange/_methods/registerReferrer.ts +9 -13
- package/src/api/exchange/_methods/reserveRequestWeight.ts +9 -13
- package/src/api/exchange/_methods/scheduleCancel.ts +9 -13
- package/src/api/exchange/_methods/sendAsset.ts +13 -21
- package/src/api/exchange/_methods/sendToEvmWithData.ts +16 -24
- package/src/api/exchange/_methods/setDisplayName.ts +9 -13
- package/src/api/exchange/_methods/setReferrer.ts +9 -13
- package/src/api/exchange/_methods/spotDeploy.ts +17 -20
- package/src/api/exchange/_methods/spotSend.ts +11 -19
- package/src/api/exchange/_methods/spotUser.ts +9 -13
- package/src/api/exchange/_methods/subAccountModify.ts +10 -13
- package/src/api/exchange/_methods/subAccountSpotTransfer.ts +12 -18
- package/src/api/exchange/_methods/subAccountTransfer.ts +11 -13
- package/src/api/exchange/_methods/tokenDelegate.ts +11 -15
- package/src/api/exchange/_methods/topUpIsolatedOnlyMargin.ts +10 -13
- package/src/api/exchange/_methods/twapCancel.ts +10 -13
- package/src/api/exchange/_methods/twapOrder.ts +15 -21
- package/src/api/exchange/_methods/updateIsolatedMargin.ts +11 -13
- package/src/api/exchange/_methods/updateLeverage.ts +11 -13
- package/src/api/exchange/_methods/usdClassTransfer.ts +10 -15
- package/src/api/exchange/_methods/usdSend.ts +10 -15
- package/src/api/exchange/_methods/userDexAbstraction.ts +10 -15
- package/src/api/exchange/_methods/userPortfolioMargin.ts +10 -15
- package/src/api/exchange/_methods/userSetAbstraction.ts +10 -15
- package/src/api/exchange/_methods/validatorL1Stream.ts +9 -13
- package/src/api/exchange/_methods/vaultDistribute.ts +10 -13
- package/src/api/exchange/_methods/vaultModify.ts +11 -17
- package/src/api/exchange/_methods/vaultTransfer.ts +11 -13
- package/src/api/exchange/_methods/withdraw3.ts +10 -15
- package/src/api/exchange/mod.ts +1 -1
- package/src/api/info/_methods/activeAssetData.ts +4 -4
- package/src/api/info/_methods/alignedQuoteTokenInfo.ts +3 -4
- package/src/api/info/_methods/approvedBuilders.ts +3 -4
- package/src/api/info/_methods/blockDetails.ts +3 -4
- package/src/api/info/_methods/borrowLendReserveState.ts +3 -4
- package/src/api/info/_methods/borrowLendUserState.ts +3 -4
- package/src/api/info/_methods/candleSnapshot.ts +5 -8
- package/src/api/info/_methods/clearinghouseState.ts +3 -4
- package/src/api/info/_methods/delegations.ts +3 -4
- package/src/api/info/_methods/delegatorHistory.ts +3 -4
- package/src/api/info/_methods/delegatorRewards.ts +3 -4
- package/src/api/info/_methods/delegatorSummary.ts +3 -4
- package/src/api/info/_methods/extraAgents.ts +3 -4
- package/src/api/info/_methods/frontendOpenOrders.ts +3 -4
- package/src/api/info/_methods/fundingHistory.ts +4 -7
- package/src/api/info/_methods/historicalOrders.ts +3 -4
- package/src/api/info/_methods/isVip.ts +3 -4
- package/src/api/info/_methods/l2Book.ts +4 -4
- package/src/api/info/_methods/leadingVaults.ts +3 -4
- package/src/api/info/_methods/legalCheck.ts +3 -4
- package/src/api/info/_methods/marginTable.ts +3 -4
- package/src/api/info/_methods/maxBuilderFee.ts +4 -4
- package/src/api/info/_methods/openOrders.ts +3 -4
- package/src/api/info/_methods/orderStatus.ts +4 -4
- package/src/api/info/_methods/outcomeMeta.ts +3 -1
- package/src/api/info/_methods/perpAnnotation.ts +7 -1
- package/src/api/info/_methods/perpConciseAnnotations.ts +74 -0
- package/src/api/info/_methods/perpDexLimits.ts +3 -4
- package/src/api/info/_methods/perpDexStatus.ts +3 -1
- package/src/api/info/_methods/portfolio.ts +3 -4
- package/src/api/info/_methods/preTransferCheck.ts +4 -4
- package/src/api/info/_methods/recentTrades.ts +3 -4
- package/src/api/info/_methods/referral.ts +3 -4
- package/src/api/info/_methods/spotClearinghouseState.ts +3 -4
- package/src/api/info/_methods/spotDeployState.ts +3 -4
- package/src/api/info/_methods/subAccounts.ts +3 -4
- package/src/api/info/_methods/subAccounts2.ts +3 -4
- package/src/api/info/_methods/tokenDetails.ts +3 -4
- package/src/api/info/_methods/twapHistory.ts +3 -4
- package/src/api/info/_methods/txDetails.ts +3 -4
- package/src/api/info/_methods/userAbstraction.ts +3 -4
- package/src/api/info/_methods/userBorrowLendInterest.ts +4 -7
- package/src/api/info/_methods/userDetails.ts +3 -4
- package/src/api/info/_methods/userDexAbstraction.ts +3 -4
- package/src/api/info/_methods/userFees.ts +3 -4
- package/src/api/info/_methods/userFills.ts +3 -4
- package/src/api/info/_methods/userFillsByTime.ts +4 -7
- package/src/api/info/_methods/userFunding.ts +3 -4
- package/src/api/info/_methods/userNonFundingLedgerUpdates.ts +18 -5
- package/src/api/info/_methods/userRateLimit.ts +3 -4
- package/src/api/info/_methods/userRole.ts +3 -4
- package/src/api/info/_methods/userToMultiSigSigners.ts +3 -4
- package/src/api/info/_methods/userTwapSliceFills.ts +3 -4
- package/src/api/info/_methods/userTwapSliceFillsByTime.ts +4 -7
- package/src/api/info/_methods/userVaultEquities.ts +3 -4
- package/src/api/info/_methods/vaultDetails.ts +3 -4
- package/src/api/info/_methods/webData2.ts +3 -4
- package/src/api/info/client.ts +29 -0
- package/src/api/info/mod.ts +1 -0
- package/src/api/subscription/_methods/l2Book.ts +19 -32
- package/src/api/subscription/_methods/spotState.ts +2 -2
- package/src/api/subscription/_methods/userFundings.ts +1 -1
- package/src/signing/_abstractWallet.ts +11 -3
- package/src/transport/websocket/_postRequest.ts +16 -0
- package/src/utils/_format.ts +1 -1
- package/src/utils/mod.ts +1 -1
|
@@ -81,16 +81,13 @@ import { parse } from "../../../_base.js";
|
|
|
81
81
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
82
82
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
83
83
|
|
|
84
|
-
/** Schema for
|
|
85
|
-
const
|
|
86
|
-
return v.
|
|
87
|
-
v.object(TwapOrderRequest.entries.action.entries),
|
|
88
|
-
["type"],
|
|
89
|
-
);
|
|
84
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
85
|
+
const TwapOrderActionSchema = /* @__PURE__ */ (() => {
|
|
86
|
+
return v.object(TwapOrderRequest.entries.action.entries);
|
|
90
87
|
})();
|
|
91
88
|
|
|
92
89
|
/** Action parameters for the {@linkcode twapOrder} function. */
|
|
93
|
-
export type TwapOrderParameters = v.InferInput<typeof
|
|
90
|
+
export type TwapOrderParameters = Omit<v.InferInput<typeof TwapOrderActionSchema>, "type">;
|
|
94
91
|
|
|
95
92
|
/** Request options for the {@linkcode twapOrder} function. */
|
|
96
93
|
export type TwapOrderOptions = ExtractRequestOptions<v.InferInput<typeof TwapOrderRequest>>;
|
|
@@ -119,19 +116,16 @@ export type TwapOrderSuccessResponse = ExcludeErrorResponse<TwapOrderResponse>;
|
|
|
119
116
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
120
117
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
121
118
|
*
|
|
122
|
-
* const data = await twapOrder(
|
|
123
|
-
* {
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
* m: 10,
|
|
131
|
-
* t: true,
|
|
132
|
-
* },
|
|
119
|
+
* const data = await twapOrder({ transport, wallet }, {
|
|
120
|
+
* twap: {
|
|
121
|
+
* a: 0,
|
|
122
|
+
* b: true,
|
|
123
|
+
* s: "1",
|
|
124
|
+
* r: false,
|
|
125
|
+
* m: 10,
|
|
126
|
+
* t: true,
|
|
133
127
|
* },
|
|
134
|
-
* );
|
|
128
|
+
* });
|
|
135
129
|
* ```
|
|
136
130
|
*
|
|
137
131
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-a-twap-order
|
|
@@ -141,6 +135,6 @@ export function twapOrder(
|
|
|
141
135
|
params: TwapOrderParameters,
|
|
142
136
|
opts?: TwapOrderOptions,
|
|
143
137
|
): Promise<TwapOrderSuccessResponse> {
|
|
144
|
-
const action = parse(
|
|
145
|
-
return executeL1Action(config,
|
|
138
|
+
const action = parse(TwapOrderActionSchema, { type: "twapOrder", ...params });
|
|
139
|
+
return executeL1Action(config, action, opts);
|
|
146
140
|
}
|
|
@@ -50,16 +50,13 @@ import { parse } from "../../../_base.js";
|
|
|
50
50
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
51
51
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
52
52
|
|
|
53
|
-
/** Schema for
|
|
54
|
-
const
|
|
55
|
-
return v.
|
|
56
|
-
v.object(UpdateIsolatedMarginRequest.entries.action.entries),
|
|
57
|
-
["type"],
|
|
58
|
-
);
|
|
53
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
54
|
+
const UpdateIsolatedMarginActionSchema = /* @__PURE__ */ (() => {
|
|
55
|
+
return v.object(UpdateIsolatedMarginRequest.entries.action.entries);
|
|
59
56
|
})();
|
|
60
57
|
|
|
61
58
|
/** Action parameters for the {@linkcode updateIsolatedMargin} function. */
|
|
62
|
-
export type UpdateIsolatedMarginParameters = v.InferInput<typeof
|
|
59
|
+
export type UpdateIsolatedMarginParameters = Omit<v.InferInput<typeof UpdateIsolatedMarginActionSchema>, "type">;
|
|
63
60
|
|
|
64
61
|
/** Request options for the {@linkcode updateIsolatedMargin} function. */
|
|
65
62
|
export type UpdateIsolatedMarginOptions = ExtractRequestOptions<v.InferInput<typeof UpdateIsolatedMarginRequest>>;
|
|
@@ -88,10 +85,11 @@ export type UpdateIsolatedMarginSuccessResponse = ExcludeErrorResponse<UpdateIso
|
|
|
88
85
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
89
86
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
90
87
|
*
|
|
91
|
-
* await updateIsolatedMargin(
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
88
|
+
* await updateIsolatedMargin({ transport, wallet }, {
|
|
89
|
+
* asset: 0,
|
|
90
|
+
* isBuy: true,
|
|
91
|
+
* ntli: 1 * 1e6,
|
|
92
|
+
* });
|
|
95
93
|
* ```
|
|
96
94
|
*
|
|
97
95
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-isolated-margin
|
|
@@ -101,6 +99,6 @@ export function updateIsolatedMargin(
|
|
|
101
99
|
params: UpdateIsolatedMarginParameters,
|
|
102
100
|
opts?: UpdateIsolatedMarginOptions,
|
|
103
101
|
): Promise<UpdateIsolatedMarginSuccessResponse> {
|
|
104
|
-
const action = parse(
|
|
105
|
-
return executeL1Action(config,
|
|
102
|
+
const action = parse(UpdateIsolatedMarginActionSchema, { type: "updateIsolatedMargin", ...params });
|
|
103
|
+
return executeL1Action(config, action, opts);
|
|
106
104
|
}
|
|
@@ -50,16 +50,13 @@ import { parse } from "../../../_base.js";
|
|
|
50
50
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
51
51
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
52
52
|
|
|
53
|
-
/** Schema for
|
|
54
|
-
const
|
|
55
|
-
return v.
|
|
56
|
-
v.object(UpdateLeverageRequest.entries.action.entries),
|
|
57
|
-
["type"],
|
|
58
|
-
);
|
|
53
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
54
|
+
const UpdateLeverageActionSchema = /* @__PURE__ */ (() => {
|
|
55
|
+
return v.object(UpdateLeverageRequest.entries.action.entries);
|
|
59
56
|
})();
|
|
60
57
|
|
|
61
58
|
/** Action parameters for the {@linkcode updateLeverage} function. */
|
|
62
|
-
export type UpdateLeverageParameters = v.InferInput<typeof
|
|
59
|
+
export type UpdateLeverageParameters = Omit<v.InferInput<typeof UpdateLeverageActionSchema>, "type">;
|
|
63
60
|
|
|
64
61
|
/** Request options for the {@linkcode updateLeverage} function. */
|
|
65
62
|
export type UpdateLeverageOptions = ExtractRequestOptions<v.InferInput<typeof UpdateLeverageRequest>>;
|
|
@@ -88,10 +85,11 @@ export type UpdateLeverageSuccessResponse = ExcludeErrorResponse<UpdateLeverageR
|
|
|
88
85
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
89
86
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
90
87
|
*
|
|
91
|
-
* await updateLeverage(
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
88
|
+
* await updateLeverage({ transport, wallet }, {
|
|
89
|
+
* asset: 0,
|
|
90
|
+
* isCross: true,
|
|
91
|
+
* leverage: 5,
|
|
92
|
+
* });
|
|
95
93
|
* ```
|
|
96
94
|
*
|
|
97
95
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-leverage
|
|
@@ -101,6 +99,6 @@ export function updateLeverage(
|
|
|
101
99
|
params: UpdateLeverageParameters,
|
|
102
100
|
opts?: UpdateLeverageOptions,
|
|
103
101
|
): Promise<UpdateLeverageSuccessResponse> {
|
|
104
|
-
const action = parse(
|
|
105
|
-
return executeL1Action(config,
|
|
102
|
+
const action = parse(UpdateLeverageActionSchema, { type: "updateLeverage", ...params });
|
|
103
|
+
return executeL1Action(config, action, opts);
|
|
106
104
|
}
|
|
@@ -55,16 +55,16 @@ import { parse } from "../../../_base.js";
|
|
|
55
55
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
56
56
|
import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
|
|
57
57
|
|
|
58
|
-
/** Schema for
|
|
59
|
-
const
|
|
58
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
59
|
+
const UsdClassTransferActionSchema = /* @__PURE__ */ (() => {
|
|
60
60
|
return v.omit(
|
|
61
61
|
v.object(UsdClassTransferRequest.entries.action.entries),
|
|
62
|
-
["
|
|
62
|
+
["signatureChainId", "hyperliquidChain", "nonce"],
|
|
63
63
|
);
|
|
64
64
|
})();
|
|
65
65
|
|
|
66
66
|
/** Action parameters for the {@linkcode usdClassTransfer} function. */
|
|
67
|
-
export type UsdClassTransferParameters = v.InferInput<typeof
|
|
67
|
+
export type UsdClassTransferParameters = Omit<v.InferInput<typeof UsdClassTransferActionSchema>, "type">;
|
|
68
68
|
|
|
69
69
|
/** Request options for the {@linkcode usdClassTransfer} function. */
|
|
70
70
|
export type UsdClassTransferOptions = ExtractRequestOptions<v.InferInput<typeof UsdClassTransferRequest>>;
|
|
@@ -103,10 +103,10 @@ export const UsdClassTransferTypes = {
|
|
|
103
103
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
104
104
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
105
105
|
*
|
|
106
|
-
* await usdClassTransfer(
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* );
|
|
106
|
+
* await usdClassTransfer({ transport, wallet }, {
|
|
107
|
+
* amount: "1",
|
|
108
|
+
* toPerp: true,
|
|
109
|
+
* });
|
|
110
110
|
* ```
|
|
111
111
|
*
|
|
112
112
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#transfer-from-spot-account-to-perp-account-and-vice-versa
|
|
@@ -116,11 +116,6 @@ export function usdClassTransfer(
|
|
|
116
116
|
params: UsdClassTransferParameters,
|
|
117
117
|
opts?: UsdClassTransferOptions,
|
|
118
118
|
): Promise<UsdClassTransferSuccessResponse> {
|
|
119
|
-
const action = parse(
|
|
120
|
-
return executeUserSignedAction(
|
|
121
|
-
config,
|
|
122
|
-
{ type: "usdClassTransfer", ...action },
|
|
123
|
-
UsdClassTransferTypes,
|
|
124
|
-
opts,
|
|
125
|
-
);
|
|
119
|
+
const action = parse(UsdClassTransferActionSchema, { type: "usdClassTransfer", ...params });
|
|
120
|
+
return executeUserSignedAction(config, action, UsdClassTransferTypes, opts);
|
|
126
121
|
}
|
|
@@ -55,16 +55,16 @@ import { parse } from "../../../_base.js";
|
|
|
55
55
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
56
56
|
import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
|
|
57
57
|
|
|
58
|
-
/** Schema for
|
|
59
|
-
const
|
|
58
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
59
|
+
const UsdSendActionSchema = /* @__PURE__ */ (() => {
|
|
60
60
|
return v.omit(
|
|
61
61
|
v.object(UsdSendRequest.entries.action.entries),
|
|
62
|
-
["
|
|
62
|
+
["signatureChainId", "hyperliquidChain", "time"],
|
|
63
63
|
);
|
|
64
64
|
})();
|
|
65
65
|
|
|
66
66
|
/** Action parameters for the {@linkcode usdSend} function. */
|
|
67
|
-
export type UsdSendParameters = v.InferInput<typeof
|
|
67
|
+
export type UsdSendParameters = Omit<v.InferInput<typeof UsdSendActionSchema>, "type">;
|
|
68
68
|
|
|
69
69
|
/** Request options for the {@linkcode usdSend} function. */
|
|
70
70
|
export type UsdSendOptions = ExtractRequestOptions<v.InferInput<typeof UsdSendRequest>>;
|
|
@@ -103,10 +103,10 @@ export const UsdSendTypes = {
|
|
|
103
103
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
104
104
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
105
105
|
*
|
|
106
|
-
* await usdSend(
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* );
|
|
106
|
+
* await usdSend({ transport, wallet }, {
|
|
107
|
+
* destination: "0x...",
|
|
108
|
+
* amount: "1",
|
|
109
|
+
* });
|
|
110
110
|
* ```
|
|
111
111
|
*
|
|
112
112
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#core-usdc-transfer
|
|
@@ -116,11 +116,6 @@ export function usdSend(
|
|
|
116
116
|
params: UsdSendParameters,
|
|
117
117
|
opts?: UsdSendOptions,
|
|
118
118
|
): Promise<UsdSendSuccessResponse> {
|
|
119
|
-
const action = parse(
|
|
120
|
-
return executeUserSignedAction(
|
|
121
|
-
config,
|
|
122
|
-
{ type: "usdSend", ...action },
|
|
123
|
-
UsdSendTypes,
|
|
124
|
-
opts,
|
|
125
|
-
);
|
|
119
|
+
const action = parse(UsdSendActionSchema, { type: "usdSend", ...params });
|
|
120
|
+
return executeUserSignedAction(config, action, UsdSendTypes, opts);
|
|
126
121
|
}
|
|
@@ -55,16 +55,16 @@ import { parse } from "../../../_base.js";
|
|
|
55
55
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
56
56
|
import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
|
|
57
57
|
|
|
58
|
-
/** Schema for
|
|
59
|
-
const
|
|
58
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
59
|
+
const UserDexAbstractionActionSchema = /* @__PURE__ */ (() => {
|
|
60
60
|
return v.omit(
|
|
61
61
|
v.object(UserDexAbstractionRequest.entries.action.entries),
|
|
62
|
-
["
|
|
62
|
+
["signatureChainId", "hyperliquidChain", "nonce"],
|
|
63
63
|
);
|
|
64
64
|
})();
|
|
65
65
|
|
|
66
66
|
/** Action parameters for the {@linkcode userDexAbstraction} function. */
|
|
67
|
-
export type UserDexAbstractionParameters = v.InferInput<typeof
|
|
67
|
+
export type UserDexAbstractionParameters = Omit<v.InferInput<typeof UserDexAbstractionActionSchema>, "type">;
|
|
68
68
|
|
|
69
69
|
/** Request options for the {@linkcode userDexAbstraction} function. */
|
|
70
70
|
export type UserDexAbstractionOptions = ExtractRequestOptions<
|
|
@@ -105,10 +105,10 @@ export const UserDexAbstractionTypes = {
|
|
|
105
105
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
106
106
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
107
107
|
*
|
|
108
|
-
* await userDexAbstraction(
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* );
|
|
108
|
+
* await userDexAbstraction({ transport, wallet }, {
|
|
109
|
+
* user: "0x...",
|
|
110
|
+
* enabled: true,
|
|
111
|
+
* });
|
|
112
112
|
* ```
|
|
113
113
|
*
|
|
114
114
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#enable-hip-3-dex-abstraction
|
|
@@ -120,11 +120,6 @@ export function userDexAbstraction(
|
|
|
120
120
|
params: UserDexAbstractionParameters,
|
|
121
121
|
opts?: UserDexAbstractionOptions,
|
|
122
122
|
): Promise<UserDexAbstractionSuccessResponse> {
|
|
123
|
-
const action = parse(
|
|
124
|
-
return executeUserSignedAction(
|
|
125
|
-
config,
|
|
126
|
-
{ type: "userDexAbstraction", ...action },
|
|
127
|
-
UserDexAbstractionTypes,
|
|
128
|
-
opts,
|
|
129
|
-
);
|
|
123
|
+
const action = parse(UserDexAbstractionActionSchema, { type: "userDexAbstraction", ...params });
|
|
124
|
+
return executeUserSignedAction(config, action, UserDexAbstractionTypes, opts);
|
|
130
125
|
}
|
|
@@ -55,16 +55,16 @@ import { parse } from "../../../_base.js";
|
|
|
55
55
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
56
56
|
import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
|
|
57
57
|
|
|
58
|
-
/** Schema for
|
|
59
|
-
const
|
|
58
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
59
|
+
const UserPortfolioMarginActionSchema = /* @__PURE__ */ (() => {
|
|
60
60
|
return v.omit(
|
|
61
61
|
v.object(UserPortfolioMarginRequest.entries.action.entries),
|
|
62
|
-
["
|
|
62
|
+
["signatureChainId", "hyperliquidChain", "nonce"],
|
|
63
63
|
);
|
|
64
64
|
})();
|
|
65
65
|
|
|
66
66
|
/** Action parameters for the {@linkcode userPortfolioMargin} function. */
|
|
67
|
-
export type UserPortfolioMarginParameters = v.InferInput<typeof
|
|
67
|
+
export type UserPortfolioMarginParameters = Omit<v.InferInput<typeof UserPortfolioMarginActionSchema>, "type">;
|
|
68
68
|
|
|
69
69
|
/** Request options for the {@linkcode userPortfolioMargin} function. */
|
|
70
70
|
export type UserPortfolioMarginOptions = ExtractRequestOptions<v.InferInput<typeof UserPortfolioMarginRequest>>;
|
|
@@ -103,10 +103,10 @@ export const UserPortfolioMarginTypes = {
|
|
|
103
103
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
104
104
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
105
105
|
*
|
|
106
|
-
* await userPortfolioMargin(
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* );
|
|
106
|
+
* await userPortfolioMargin({ transport, wallet }, {
|
|
107
|
+
* user: "0x...",
|
|
108
|
+
* enabled: true,
|
|
109
|
+
* });
|
|
110
110
|
* ```
|
|
111
111
|
*
|
|
112
112
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/portfolio-margin
|
|
@@ -116,11 +116,6 @@ export function userPortfolioMargin(
|
|
|
116
116
|
params: UserPortfolioMarginParameters,
|
|
117
117
|
opts?: UserPortfolioMarginOptions,
|
|
118
118
|
): Promise<UserPortfolioMarginSuccessResponse> {
|
|
119
|
-
const action = parse(
|
|
120
|
-
return executeUserSignedAction(
|
|
121
|
-
config,
|
|
122
|
-
{ type: "userPortfolioMargin", ...action },
|
|
123
|
-
UserPortfolioMarginTypes,
|
|
124
|
-
opts,
|
|
125
|
-
);
|
|
119
|
+
const action = parse(UserPortfolioMarginActionSchema, { type: "userPortfolioMargin", ...params });
|
|
120
|
+
return executeUserSignedAction(config, action, UserPortfolioMarginTypes, opts);
|
|
126
121
|
}
|
|
@@ -55,16 +55,16 @@ import { parse } from "../../../_base.js";
|
|
|
55
55
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
56
56
|
import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
|
|
57
57
|
|
|
58
|
-
/** Schema for
|
|
59
|
-
const
|
|
58
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
59
|
+
const UserSetAbstractionActionSchema = /* @__PURE__ */ (() => {
|
|
60
60
|
return v.omit(
|
|
61
61
|
v.object(UserSetAbstractionRequest.entries.action.entries),
|
|
62
|
-
["
|
|
62
|
+
["signatureChainId", "hyperliquidChain", "nonce"],
|
|
63
63
|
);
|
|
64
64
|
})();
|
|
65
65
|
|
|
66
66
|
/** Action parameters for the {@linkcode userSetAbstraction} function. */
|
|
67
|
-
export type UserSetAbstractionParameters = v.InferInput<typeof
|
|
67
|
+
export type UserSetAbstractionParameters = Omit<v.InferInput<typeof UserSetAbstractionActionSchema>, "type">;
|
|
68
68
|
|
|
69
69
|
/** Request options for the {@linkcode userSetAbstraction} function. */
|
|
70
70
|
export type UserSetAbstractionOptions = ExtractRequestOptions<v.InferInput<typeof UserSetAbstractionRequest>>;
|
|
@@ -103,10 +103,10 @@ export const UserSetAbstractionTypes = {
|
|
|
103
103
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
104
104
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
105
105
|
*
|
|
106
|
-
* await userSetAbstraction(
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* );
|
|
106
|
+
* await userSetAbstraction({ transport, wallet }, {
|
|
107
|
+
* user: "0x...",
|
|
108
|
+
* abstraction: "dexAbstraction",
|
|
109
|
+
* });
|
|
110
110
|
* ```
|
|
111
111
|
*
|
|
112
112
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#set-user-abstraction
|
|
@@ -116,11 +116,6 @@ export function userSetAbstraction(
|
|
|
116
116
|
params: UserSetAbstractionParameters,
|
|
117
117
|
opts?: UserSetAbstractionOptions,
|
|
118
118
|
): Promise<UserSetAbstractionSuccessResponse> {
|
|
119
|
-
const action = parse(
|
|
120
|
-
return executeUserSignedAction(
|
|
121
|
-
config,
|
|
122
|
-
{ type: "userSetAbstraction", ...action },
|
|
123
|
-
UserSetAbstractionTypes,
|
|
124
|
-
opts,
|
|
125
|
-
);
|
|
119
|
+
const action = parse(UserSetAbstractionActionSchema, { type: "userSetAbstraction", ...params });
|
|
120
|
+
return executeUserSignedAction(config, action, UserSetAbstractionTypes, opts);
|
|
126
121
|
}
|
|
@@ -44,16 +44,13 @@ import { parse } from "../../../_base.js";
|
|
|
44
44
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
45
45
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
46
46
|
|
|
47
|
-
/** Schema for
|
|
48
|
-
const
|
|
49
|
-
return v.
|
|
50
|
-
v.object(ValidatorL1StreamRequest.entries.action.entries),
|
|
51
|
-
["type"],
|
|
52
|
-
);
|
|
47
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
48
|
+
const ValidatorL1StreamActionSchema = /* @__PURE__ */ (() => {
|
|
49
|
+
return v.object(ValidatorL1StreamRequest.entries.action.entries);
|
|
53
50
|
})();
|
|
54
51
|
|
|
55
52
|
/** Action parameters for the {@linkcode validatorL1Stream} function. */
|
|
56
|
-
export type ValidatorL1StreamParameters = v.InferInput<typeof
|
|
53
|
+
export type ValidatorL1StreamParameters = Omit<v.InferInput<typeof ValidatorL1StreamActionSchema>, "type">;
|
|
57
54
|
|
|
58
55
|
/** Request options for the {@linkcode validatorL1Stream} function. */
|
|
59
56
|
export type ValidatorL1StreamOptions = ExtractRequestOptions<v.InferInput<typeof ValidatorL1StreamRequest>>;
|
|
@@ -82,10 +79,9 @@ export type ValidatorL1StreamSuccessResponse = ExcludeErrorResponse<ValidatorL1S
|
|
|
82
79
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
83
80
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
84
81
|
*
|
|
85
|
-
* await validatorL1Stream(
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* );
|
|
82
|
+
* await validatorL1Stream({ transport, wallet }, {
|
|
83
|
+
* riskFreeRate: "0.05",
|
|
84
|
+
* });
|
|
89
85
|
* ```
|
|
90
86
|
*
|
|
91
87
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#validator-vote-on-risk-free-rate-for-aligned-quote-asset
|
|
@@ -95,6 +91,6 @@ export function validatorL1Stream(
|
|
|
95
91
|
params: ValidatorL1StreamParameters,
|
|
96
92
|
opts?: ValidatorL1StreamOptions,
|
|
97
93
|
): Promise<ValidatorL1StreamSuccessResponse> {
|
|
98
|
-
const action = parse(
|
|
99
|
-
return executeL1Action(config,
|
|
94
|
+
const action = parse(ValidatorL1StreamActionSchema, { type: "validatorL1Stream", ...params });
|
|
95
|
+
return executeL1Action(config, action, opts);
|
|
100
96
|
}
|
|
@@ -49,16 +49,13 @@ import { parse } from "../../../_base.js";
|
|
|
49
49
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
50
50
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
51
51
|
|
|
52
|
-
/** Schema for
|
|
53
|
-
const
|
|
54
|
-
return v.
|
|
55
|
-
v.object(VaultDistributeRequest.entries.action.entries),
|
|
56
|
-
["type"],
|
|
57
|
-
);
|
|
52
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
53
|
+
const VaultDistributeActionSchema = /* @__PURE__ */ (() => {
|
|
54
|
+
return v.object(VaultDistributeRequest.entries.action.entries);
|
|
58
55
|
})();
|
|
59
56
|
|
|
60
57
|
/** Action parameters for the {@linkcode vaultDistribute} function. */
|
|
61
|
-
export type VaultDistributeParameters = v.InferInput<typeof
|
|
58
|
+
export type VaultDistributeParameters = Omit<v.InferInput<typeof VaultDistributeActionSchema>, "type">;
|
|
62
59
|
|
|
63
60
|
/** Request options for the {@linkcode vaultDistribute} function. */
|
|
64
61
|
export type VaultDistributeOptions = ExtractRequestOptions<v.InferInput<typeof VaultDistributeRequest>>;
|
|
@@ -87,10 +84,10 @@ export type VaultDistributeSuccessResponse = ExcludeErrorResponse<VaultDistribut
|
|
|
87
84
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
88
85
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
89
86
|
*
|
|
90
|
-
* await vaultDistribute(
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* );
|
|
87
|
+
* await vaultDistribute({ transport, wallet }, {
|
|
88
|
+
* vaultAddress: "0x...",
|
|
89
|
+
* usd: 10 * 1e6,
|
|
90
|
+
* });
|
|
94
91
|
* ```
|
|
95
92
|
*
|
|
96
93
|
* @see null
|
|
@@ -100,6 +97,6 @@ export function vaultDistribute(
|
|
|
100
97
|
params: VaultDistributeParameters,
|
|
101
98
|
opts?: VaultDistributeOptions,
|
|
102
99
|
): Promise<VaultDistributeSuccessResponse> {
|
|
103
|
-
const action = parse(
|
|
104
|
-
return executeL1Action(config,
|
|
100
|
+
const action = parse(VaultDistributeActionSchema, { type: "vaultDistribute", ...params });
|
|
101
|
+
return executeL1Action(config, action, opts);
|
|
105
102
|
}
|
|
@@ -48,16 +48,13 @@ import { parse } from "../../../_base.js";
|
|
|
48
48
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
49
49
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
50
50
|
|
|
51
|
-
/** Schema for
|
|
52
|
-
const
|
|
53
|
-
return v.
|
|
54
|
-
v.object(VaultModifyRequest.entries.action.entries),
|
|
55
|
-
["type"],
|
|
56
|
-
);
|
|
51
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
52
|
+
const VaultModifyActionSchema = /* @__PURE__ */ (() => {
|
|
53
|
+
return v.object(VaultModifyRequest.entries.action.entries);
|
|
57
54
|
})();
|
|
58
55
|
|
|
59
56
|
/** Action parameters for the {@linkcode vaultModify} function. */
|
|
60
|
-
export type VaultModifyParameters = v.InferInput<typeof
|
|
57
|
+
export type VaultModifyParameters = Omit<v.InferInput<typeof VaultModifyActionSchema>, "type">;
|
|
61
58
|
|
|
62
59
|
/** Request options for the {@linkcode vaultModify} function. */
|
|
63
60
|
export type VaultModifyOptions = ExtractRequestOptions<v.InferInput<typeof VaultModifyRequest>>;
|
|
@@ -86,14 +83,11 @@ export type VaultModifySuccessResponse = ExcludeErrorResponse<VaultModifyRespons
|
|
|
86
83
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
87
84
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
88
85
|
*
|
|
89
|
-
* await vaultModify(
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* alwaysCloseOnWithdraw: false,
|
|
95
|
-
* },
|
|
96
|
-
* );
|
|
86
|
+
* await vaultModify({ transport, wallet }, {
|
|
87
|
+
* vaultAddress: "0x...",
|
|
88
|
+
* allowDeposits: true,
|
|
89
|
+
* alwaysCloseOnWithdraw: false,
|
|
90
|
+
* });
|
|
97
91
|
* ```
|
|
98
92
|
*
|
|
99
93
|
* @see null
|
|
@@ -103,6 +97,6 @@ export function vaultModify(
|
|
|
103
97
|
params: VaultModifyParameters,
|
|
104
98
|
opts?: VaultModifyOptions,
|
|
105
99
|
): Promise<VaultModifySuccessResponse> {
|
|
106
|
-
const action = parse(
|
|
107
|
-
return executeL1Action(config,
|
|
100
|
+
const action = parse(VaultModifyActionSchema, { type: "vaultModify", ...params });
|
|
101
|
+
return executeL1Action(config, action, opts);
|
|
108
102
|
}
|
|
@@ -48,16 +48,13 @@ import { parse } from "../../../_base.js";
|
|
|
48
48
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
49
49
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
50
50
|
|
|
51
|
-
/** Schema for
|
|
52
|
-
const
|
|
53
|
-
return v.
|
|
54
|
-
v.object(VaultTransferRequest.entries.action.entries),
|
|
55
|
-
["type"],
|
|
56
|
-
);
|
|
51
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
52
|
+
const VaultTransferActionSchema = /* @__PURE__ */ (() => {
|
|
53
|
+
return v.object(VaultTransferRequest.entries.action.entries);
|
|
57
54
|
})();
|
|
58
55
|
|
|
59
56
|
/** Action parameters for the {@linkcode vaultTransfer} function. */
|
|
60
|
-
export type VaultTransferParameters = v.InferInput<typeof
|
|
57
|
+
export type VaultTransferParameters = Omit<v.InferInput<typeof VaultTransferActionSchema>, "type">;
|
|
61
58
|
|
|
62
59
|
/** Request options for the {@linkcode vaultTransfer} function. */
|
|
63
60
|
export type VaultTransferOptions = ExtractRequestOptions<v.InferInput<typeof VaultTransferRequest>>;
|
|
@@ -86,10 +83,11 @@ export type VaultTransferSuccessResponse = ExcludeErrorResponse<VaultTransferRes
|
|
|
86
83
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
87
84
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
88
85
|
*
|
|
89
|
-
* await vaultTransfer(
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
86
|
+
* await vaultTransfer({ transport, wallet }, {
|
|
87
|
+
* vaultAddress: "0x...",
|
|
88
|
+
* isDeposit: true,
|
|
89
|
+
* usd: 10 * 1e6,
|
|
90
|
+
* });
|
|
93
91
|
* ```
|
|
94
92
|
*
|
|
95
93
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#deposit-or-withdraw-from-a-vault
|
|
@@ -99,6 +97,6 @@ export function vaultTransfer(
|
|
|
99
97
|
params: VaultTransferParameters,
|
|
100
98
|
opts?: VaultTransferOptions,
|
|
101
99
|
): Promise<VaultTransferSuccessResponse> {
|
|
102
|
-
const action = parse(
|
|
103
|
-
return executeL1Action(config,
|
|
100
|
+
const action = parse(VaultTransferActionSchema, { type: "vaultTransfer", ...params });
|
|
101
|
+
return executeL1Action(config, action, opts);
|
|
104
102
|
}
|
|
@@ -55,16 +55,16 @@ import { parse } from "../../../_base.js";
|
|
|
55
55
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
56
56
|
import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
|
|
57
57
|
|
|
58
|
-
/** Schema for
|
|
59
|
-
const
|
|
58
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
59
|
+
const Withdraw3ActionSchema = /* @__PURE__ */ (() => {
|
|
60
60
|
return v.omit(
|
|
61
61
|
v.object(Withdraw3Request.entries.action.entries),
|
|
62
|
-
["
|
|
62
|
+
["signatureChainId", "hyperliquidChain", "time"],
|
|
63
63
|
);
|
|
64
64
|
})();
|
|
65
65
|
|
|
66
66
|
/** Action parameters for the {@linkcode withdraw3} function. */
|
|
67
|
-
export type Withdraw3Parameters = v.InferInput<typeof
|
|
67
|
+
export type Withdraw3Parameters = Omit<v.InferInput<typeof Withdraw3ActionSchema>, "type">;
|
|
68
68
|
|
|
69
69
|
/** Request options for the {@linkcode withdraw3} function. */
|
|
70
70
|
export type Withdraw3Options = ExtractRequestOptions<v.InferInput<typeof Withdraw3Request>>;
|
|
@@ -103,10 +103,10 @@ export const Withdraw3Types = {
|
|
|
103
103
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
104
104
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
105
105
|
*
|
|
106
|
-
* await withdraw3(
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* );
|
|
106
|
+
* await withdraw3({ transport, wallet }, {
|
|
107
|
+
* destination: "0x...",
|
|
108
|
+
* amount: "1",
|
|
109
|
+
* });
|
|
110
110
|
* ```
|
|
111
111
|
*
|
|
112
112
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#initiate-a-withdrawal-request
|
|
@@ -116,11 +116,6 @@ export function withdraw3(
|
|
|
116
116
|
params: Withdraw3Parameters,
|
|
117
117
|
opts?: Withdraw3Options,
|
|
118
118
|
): Promise<Withdraw3SuccessResponse> {
|
|
119
|
-
const action = parse(
|
|
120
|
-
return executeUserSignedAction(
|
|
121
|
-
config,
|
|
122
|
-
{ type: "withdraw3", ...action },
|
|
123
|
-
Withdraw3Types,
|
|
124
|
-
opts,
|
|
125
|
-
);
|
|
119
|
+
const action = parse(Withdraw3ActionSchema, { type: "withdraw3", ...params });
|
|
120
|
+
return executeUserSignedAction(config, action, Withdraw3Types, opts);
|
|
126
121
|
}
|