@nktkas/hyperliquid 0.32.0 → 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 +62 -688
- package/esm/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
- package/esm/api/exchange/_methods/perpDeploy.js +34 -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 +4 -4
- package/esm/api/info/_methods/blockDetails.js +4 -4
- 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 +56 -0
- package/esm/api/info/_methods/perpAnnotation.d.ts.map +1 -0
- package/esm/api/info/_methods/perpAnnotation.js +53 -0
- package/esm/api/info/_methods/perpAnnotation.js.map +1 -0
- 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 +4 -4
- package/esm/api/info/_methods/txDetails.js +4 -4
- 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 +4 -4
- package/esm/api/info/_methods/userDetails.js +4 -4
- 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 +49 -0
- package/esm/api/info/client.d.ts.map +1 -1
- package/esm/api/info/client.js +51 -0
- package/esm/api/info/client.js.map +1 -1
- package/esm/api/info/mod.d.ts +2 -0
- package/esm/api/info/mod.d.ts.map +1 -1
- package/esm/api/info/mod.js +2 -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 +62 -688
- package/script/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
- package/script/api/exchange/_methods/perpDeploy.js +34 -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 +4 -4
- package/script/api/info/_methods/blockDetails.js +4 -4
- 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 +56 -0
- package/script/api/info/_methods/perpAnnotation.d.ts.map +1 -0
- package/script/api/info/_methods/perpAnnotation.js +90 -0
- package/script/api/info/_methods/perpAnnotation.js.map +1 -0
- 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 +4 -4
- package/script/api/info/_methods/txDetails.js +4 -4
- 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 +4 -4
- package/script/api/info/_methods/userDetails.js +4 -4
- 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 +49 -0
- package/script/api/info/client.d.ts.map +1 -1
- package/script/api/info/client.js +51 -0
- package/script/api/info/client.js.map +1 -1
- package/script/api/info/mod.d.ts +2 -0
- package/script/api/info/mod.d.ts.map +1 -1
- package/script/api/info/mod.js +2 -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 +37 -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 +4 -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 +81 -0
- 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 +4 -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 +4 -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 +64 -0
- package/src/api/info/mod.ts +2 -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
|
@@ -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(SubAccountSpotTransferRequest.entries.action.entries),
|
|
57
|
-
["type"],
|
|
58
|
-
);
|
|
53
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
54
|
+
const SubAccountSpotTransferActionSchema = /* @__PURE__ */ (() => {
|
|
55
|
+
return v.object(SubAccountSpotTransferRequest.entries.action.entries);
|
|
59
56
|
})();
|
|
60
57
|
|
|
61
58
|
/** Action parameters for the {@linkcode subAccountSpotTransfer} function. */
|
|
62
|
-
export type SubAccountSpotTransferParameters = v.InferInput<typeof
|
|
59
|
+
export type SubAccountSpotTransferParameters = Omit<v.InferInput<typeof SubAccountSpotTransferActionSchema>, "type">;
|
|
63
60
|
|
|
64
61
|
/** Request options for the {@linkcode subAccountSpotTransfer} function. */
|
|
65
62
|
export type SubAccountSpotTransferOptions = ExtractRequestOptions<v.InferInput<typeof SubAccountSpotTransferRequest>>;
|
|
@@ -88,15 +85,12 @@ export type SubAccountSpotTransferSuccessResponse = ExcludeErrorResponse<SubAcco
|
|
|
88
85
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
89
86
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
90
87
|
*
|
|
91
|
-
* await subAccountSpotTransfer(
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
* amount: "1",
|
|
98
|
-
* },
|
|
99
|
-
* );
|
|
88
|
+
* await subAccountSpotTransfer({ transport, wallet }, {
|
|
89
|
+
* subAccountUser: "0x...",
|
|
90
|
+
* isDeposit: true,
|
|
91
|
+
* token: "USDC:0xeb62eee3685fc4c43992febcd9e75443",
|
|
92
|
+
* amount: "1",
|
|
93
|
+
* });
|
|
100
94
|
* ```
|
|
101
95
|
*
|
|
102
96
|
* @see null
|
|
@@ -106,6 +100,6 @@ export function subAccountSpotTransfer(
|
|
|
106
100
|
params: SubAccountSpotTransferParameters,
|
|
107
101
|
opts?: SubAccountSpotTransferOptions,
|
|
108
102
|
): Promise<SubAccountSpotTransferSuccessResponse> {
|
|
109
|
-
const action = parse(
|
|
110
|
-
return executeL1Action(config,
|
|
103
|
+
const action = parse(SubAccountSpotTransferActionSchema, { type: "subAccountSpotTransfer", ...params });
|
|
104
|
+
return executeL1Action(config, action, opts);
|
|
111
105
|
}
|
|
@@ -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(SubAccountTransferRequest.entries.action.entries),
|
|
55
|
-
["type"],
|
|
56
|
-
);
|
|
51
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
52
|
+
const SubAccountTransferActionSchema = /* @__PURE__ */ (() => {
|
|
53
|
+
return v.object(SubAccountTransferRequest.entries.action.entries);
|
|
57
54
|
})();
|
|
58
55
|
|
|
59
56
|
/** Action parameters for the {@linkcode subAccountTransfer} function. */
|
|
60
|
-
export type SubAccountTransferParameters = v.InferInput<typeof
|
|
57
|
+
export type SubAccountTransferParameters = Omit<v.InferInput<typeof SubAccountTransferActionSchema>, "type">;
|
|
61
58
|
|
|
62
59
|
/** Request options for the {@linkcode subAccountTransfer} function. */
|
|
63
60
|
export type SubAccountTransferOptions = ExtractRequestOptions<v.InferInput<typeof SubAccountTransferRequest>>;
|
|
@@ -86,10 +83,11 @@ export type SubAccountTransferSuccessResponse = ExcludeErrorResponse<SubAccountT
|
|
|
86
83
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
87
84
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
88
85
|
*
|
|
89
|
-
* await subAccountTransfer(
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
86
|
+
* await subAccountTransfer({ transport, wallet }, {
|
|
87
|
+
* subAccountUser: "0x...",
|
|
88
|
+
* isDeposit: true,
|
|
89
|
+
* usd: 1 * 1e6,
|
|
90
|
+
* });
|
|
93
91
|
* ```
|
|
94
92
|
*
|
|
95
93
|
* @see null
|
|
@@ -99,6 +97,6 @@ export function subAccountTransfer(
|
|
|
99
97
|
params: SubAccountTransferParameters,
|
|
100
98
|
opts?: SubAccountTransferOptions,
|
|
101
99
|
): Promise<SubAccountTransferSuccessResponse> {
|
|
102
|
-
const action = parse(
|
|
103
|
-
return executeL1Action(config,
|
|
100
|
+
const action = parse(SubAccountTransferActionSchema, { type: "subAccountTransfer", ...params });
|
|
101
|
+
return executeL1Action(config, action, opts);
|
|
104
102
|
}
|
|
@@ -57,16 +57,16 @@ import { parse } from "../../../_base.js";
|
|
|
57
57
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
58
58
|
import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
|
|
59
59
|
|
|
60
|
-
/** Schema for
|
|
61
|
-
const
|
|
60
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
61
|
+
const TokenDelegateActionSchema = /* @__PURE__ */ (() => {
|
|
62
62
|
return v.omit(
|
|
63
63
|
v.object(TokenDelegateRequest.entries.action.entries),
|
|
64
|
-
["
|
|
64
|
+
["signatureChainId", "hyperliquidChain", "nonce"],
|
|
65
65
|
);
|
|
66
66
|
})();
|
|
67
67
|
|
|
68
68
|
/** Action parameters for the {@linkcode tokenDelegate} function. */
|
|
69
|
-
export type TokenDelegateParameters = v.InferInput<typeof
|
|
69
|
+
export type TokenDelegateParameters = Omit<v.InferInput<typeof TokenDelegateActionSchema>, "type">;
|
|
70
70
|
|
|
71
71
|
/** Request options for the {@linkcode tokenDelegate} function. */
|
|
72
72
|
export type TokenDelegateOptions = ExtractRequestOptions<v.InferInput<typeof TokenDelegateRequest>>;
|
|
@@ -106,10 +106,11 @@ export const TokenDelegateTypes = {
|
|
|
106
106
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
107
107
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
108
108
|
*
|
|
109
|
-
* await tokenDelegate(
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
109
|
+
* await tokenDelegate({ transport, wallet }, {
|
|
110
|
+
* validator: "0x...",
|
|
111
|
+
* isUndelegate: true,
|
|
112
|
+
* wei: 1 * 1e8,
|
|
113
|
+
* });
|
|
113
114
|
* ```
|
|
114
115
|
*
|
|
115
116
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#delegate-or-undelegate-stake-from-validator
|
|
@@ -119,11 +120,6 @@ export function tokenDelegate(
|
|
|
119
120
|
params: TokenDelegateParameters,
|
|
120
121
|
opts?: TokenDelegateOptions,
|
|
121
122
|
): Promise<TokenDelegateSuccessResponse> {
|
|
122
|
-
const action = parse(
|
|
123
|
-
return executeUserSignedAction(
|
|
124
|
-
config,
|
|
125
|
-
{ type: "tokenDelegate", ...action },
|
|
126
|
-
TokenDelegateTypes,
|
|
127
|
-
opts,
|
|
128
|
-
);
|
|
123
|
+
const action = parse(TokenDelegateActionSchema, { type: "tokenDelegate", ...params });
|
|
124
|
+
return executeUserSignedAction(config, action, TokenDelegateTypes, opts);
|
|
129
125
|
}
|
|
@@ -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(TopUpIsolatedOnlyMarginRequest.entries.action.entries),
|
|
55
|
-
["type"],
|
|
56
|
-
);
|
|
51
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
52
|
+
const TopUpIsolatedOnlyMarginActionSchema = /* @__PURE__ */ (() => {
|
|
53
|
+
return v.object(TopUpIsolatedOnlyMarginRequest.entries.action.entries);
|
|
57
54
|
})();
|
|
58
55
|
|
|
59
56
|
/** Action parameters for the {@linkcode topUpIsolatedOnlyMargin} function. */
|
|
60
|
-
export type TopUpIsolatedOnlyMarginParameters = v.InferInput<typeof
|
|
57
|
+
export type TopUpIsolatedOnlyMarginParameters = Omit<v.InferInput<typeof TopUpIsolatedOnlyMarginActionSchema>, "type">;
|
|
61
58
|
|
|
62
59
|
/** Request options for the {@linkcode topUpIsolatedOnlyMargin} function. */
|
|
63
60
|
export type TopUpIsolatedOnlyMarginOptions = ExtractRequestOptions<v.InferInput<typeof TopUpIsolatedOnlyMarginRequest>>;
|
|
@@ -86,10 +83,10 @@ export type TopUpIsolatedOnlyMarginSuccessResponse = ExcludeErrorResponse<TopUpI
|
|
|
86
83
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
87
84
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
88
85
|
*
|
|
89
|
-
* await topUpIsolatedOnlyMargin(
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
* );
|
|
86
|
+
* await topUpIsolatedOnlyMargin({ transport, wallet }, {
|
|
87
|
+
* asset: 0,
|
|
88
|
+
* leverage: "0.5",
|
|
89
|
+
* });
|
|
93
90
|
* ```
|
|
94
91
|
*
|
|
95
92
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#update-isolated-margin
|
|
@@ -99,6 +96,6 @@ export function topUpIsolatedOnlyMargin(
|
|
|
99
96
|
params: TopUpIsolatedOnlyMarginParameters,
|
|
100
97
|
opts?: TopUpIsolatedOnlyMarginOptions,
|
|
101
98
|
): Promise<TopUpIsolatedOnlyMarginSuccessResponse> {
|
|
102
|
-
const action = parse(
|
|
103
|
-
return executeL1Action(config,
|
|
99
|
+
const action = parse(TopUpIsolatedOnlyMarginActionSchema, { type: "topUpIsolatedOnlyMargin", ...params });
|
|
100
|
+
return executeL1Action(config, action, opts);
|
|
104
101
|
}
|
|
@@ -64,16 +64,13 @@ import { parse } from "../../../_base.js";
|
|
|
64
64
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
65
65
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
66
66
|
|
|
67
|
-
/** Schema for
|
|
68
|
-
const
|
|
69
|
-
return v.
|
|
70
|
-
v.object(TwapCancelRequest.entries.action.entries),
|
|
71
|
-
["type"],
|
|
72
|
-
);
|
|
67
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
68
|
+
const TwapCancelActionSchema = /* @__PURE__ */ (() => {
|
|
69
|
+
return v.object(TwapCancelRequest.entries.action.entries);
|
|
73
70
|
})();
|
|
74
71
|
|
|
75
72
|
/** Action parameters for the {@linkcode twapCancel} function. */
|
|
76
|
-
export type TwapCancelParameters = v.InferInput<typeof
|
|
73
|
+
export type TwapCancelParameters = Omit<v.InferInput<typeof TwapCancelActionSchema>, "type">;
|
|
77
74
|
|
|
78
75
|
/** Request options for the {@linkcode twapCancel} function. */
|
|
79
76
|
export type TwapCancelOptions = ExtractRequestOptions<v.InferInput<typeof TwapCancelRequest>>;
|
|
@@ -102,10 +99,10 @@ export type TwapCancelSuccessResponse = ExcludeErrorResponse<TwapCancelResponse>
|
|
|
102
99
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
103
100
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
104
101
|
*
|
|
105
|
-
* await twapCancel(
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
* );
|
|
102
|
+
* await twapCancel({ transport, wallet }, {
|
|
103
|
+
* a: 0,
|
|
104
|
+
* t: 1,
|
|
105
|
+
* });
|
|
109
106
|
* ```
|
|
110
107
|
*
|
|
111
108
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-a-twap-order
|
|
@@ -115,6 +112,6 @@ export function twapCancel(
|
|
|
115
112
|
params: TwapCancelParameters,
|
|
116
113
|
opts?: TwapCancelOptions,
|
|
117
114
|
): Promise<TwapCancelSuccessResponse> {
|
|
118
|
-
const action = parse(
|
|
119
|
-
return executeL1Action(config,
|
|
115
|
+
const action = parse(TwapCancelActionSchema, { type: "twapCancel", ...params });
|
|
116
|
+
return executeL1Action(config, action, opts);
|
|
120
117
|
}
|
|
@@ -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
|
}
|