@nktkas/hyperliquid 0.32.1 → 0.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/_base.js +1 -1
- package/esm/_base.js.map +1 -1
- package/esm/api/_schemas.d.ts.map +1 -1
- package/esm/api/_schemas.js +1 -15
- package/esm/api/_schemas.js.map +1 -1
- package/esm/api/exchange/_methods/_base/execute.d.ts +1 -1
- package/esm/api/exchange/_methods/_base/execute.d.ts.map +1 -1
- package/esm/api/exchange/_methods/_base/execute.js.map +1 -1
- package/esm/api/exchange/_methods/agentEnableDexAbstraction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/agentEnableDexAbstraction.js +10 -1
- package/esm/api/exchange/_methods/agentEnableDexAbstraction.js.map +1 -1
- package/esm/api/exchange/_methods/agentSetAbstraction.d.ts +7 -37
- package/esm/api/exchange/_methods/agentSetAbstraction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/agentSetAbstraction.js +8 -9
- package/esm/api/exchange/_methods/agentSetAbstraction.js.map +1 -1
- package/esm/api/exchange/_methods/approveAgent.d.ts +19 -17
- package/esm/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/esm/api/exchange/_methods/approveAgent.js +13 -16
- package/esm/api/exchange/_methods/approveAgent.js.map +1 -1
- package/esm/api/exchange/_methods/approveBuilderFee.d.ts +15 -10
- package/esm/api/exchange/_methods/approveBuilderFee.d.ts.map +1 -1
- package/esm/api/exchange/_methods/approveBuilderFee.js +9 -9
- package/esm/api/exchange/_methods/approveBuilderFee.js.map +1 -1
- package/esm/api/exchange/_methods/batchModify.d.ts +18 -192
- package/esm/api/exchange/_methods/batchModify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/batchModify.js +19 -22
- package/esm/api/exchange/_methods/batchModify.js.map +1 -1
- package/esm/api/exchange/_methods/borrowLend.d.ts +9 -46
- package/esm/api/exchange/_methods/borrowLend.d.ts.map +1 -1
- package/esm/api/exchange/_methods/borrowLend.js +10 -9
- package/esm/api/exchange/_methods/borrowLend.js.map +1 -1
- package/esm/api/exchange/_methods/cDeposit.d.ts +14 -10
- package/esm/api/exchange/_methods/cDeposit.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cDeposit.js +8 -9
- package/esm/api/exchange/_methods/cDeposit.js.map +1 -1
- package/esm/api/exchange/_methods/cSignerAction.d.ts +13 -61
- package/esm/api/exchange/_methods/cSignerAction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cSignerAction.js +11 -13
- package/esm/api/exchange/_methods/cSignerAction.js.map +1 -1
- package/esm/api/exchange/_methods/cValidatorAction.d.ts +18 -247
- package/esm/api/exchange/_methods/cValidatorAction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cValidatorAction.js +15 -18
- package/esm/api/exchange/_methods/cValidatorAction.js.map +1 -1
- package/esm/api/exchange/_methods/cWithdraw.d.ts +14 -10
- package/esm/api/exchange/_methods/cWithdraw.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cWithdraw.js +8 -9
- package/esm/api/exchange/_methods/cWithdraw.js.map +1 -1
- package/esm/api/exchange/_methods/cancel.d.ts +7 -52
- package/esm/api/exchange/_methods/cancel.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cancel.js +8 -9
- package/esm/api/exchange/_methods/cancel.js.map +1 -1
- package/esm/api/exchange/_methods/cancelByCloid.d.ts +9 -56
- package/esm/api/exchange/_methods/cancelByCloid.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cancelByCloid.js +10 -13
- package/esm/api/exchange/_methods/cancelByCloid.js.map +1 -1
- package/esm/api/exchange/_methods/claimRewards.d.ts.map +1 -1
- package/esm/api/exchange/_methods/claimRewards.js +10 -1
- package/esm/api/exchange/_methods/claimRewards.js.map +1 -1
- package/esm/api/exchange/_methods/convertToMultiSigUser.d.ts +19 -18
- package/esm/api/exchange/_methods/convertToMultiSigUser.d.ts.map +1 -1
- package/esm/api/exchange/_methods/convertToMultiSigUser.js +13 -17
- package/esm/api/exchange/_methods/convertToMultiSigUser.js.map +1 -1
- package/esm/api/exchange/_methods/createSubAccount.d.ts +7 -32
- package/esm/api/exchange/_methods/createSubAccount.d.ts.map +1 -1
- package/esm/api/exchange/_methods/createSubAccount.js +8 -9
- package/esm/api/exchange/_methods/createSubAccount.js.map +1 -1
- package/esm/api/exchange/_methods/createVault.d.ts +10 -58
- package/esm/api/exchange/_methods/createVault.d.ts.map +1 -1
- package/esm/api/exchange/_methods/createVault.js +11 -14
- package/esm/api/exchange/_methods/createVault.js.map +1 -1
- package/esm/api/exchange/_methods/evmUserModify.d.ts +7 -32
- package/esm/api/exchange/_methods/evmUserModify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/evmUserModify.js +8 -9
- package/esm/api/exchange/_methods/evmUserModify.js.map +1 -1
- package/esm/api/exchange/_methods/linkStakingUser.d.ts +15 -10
- package/esm/api/exchange/_methods/linkStakingUser.d.ts.map +1 -1
- package/esm/api/exchange/_methods/linkStakingUser.js +9 -9
- package/esm/api/exchange/_methods/linkStakingUser.js.map +1 -1
- package/esm/api/exchange/_methods/modify.d.ts +14 -175
- package/esm/api/exchange/_methods/modify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/modify.js +15 -18
- package/esm/api/exchange/_methods/modify.js.map +1 -1
- package/esm/api/exchange/_methods/noop.d.ts.map +1 -1
- package/esm/api/exchange/_methods/noop.js +10 -1
- package/esm/api/exchange/_methods/noop.js.map +1 -1
- package/esm/api/exchange/_methods/order.d.ts +19 -212
- package/esm/api/exchange/_methods/order.d.ts.map +1 -1
- package/esm/api/exchange/_methods/order.js +18 -21
- package/esm/api/exchange/_methods/order.js.map +1 -1
- package/esm/api/exchange/_methods/perpDeploy.d.ts +39 -740
- package/esm/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
- package/esm/api/exchange/_methods/perpDeploy.js +21 -20
- package/esm/api/exchange/_methods/perpDeploy.js.map +1 -1
- package/esm/api/exchange/_methods/registerReferrer.d.ts +7 -32
- package/esm/api/exchange/_methods/registerReferrer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/registerReferrer.js +8 -9
- package/esm/api/exchange/_methods/registerReferrer.js.map +1 -1
- package/esm/api/exchange/_methods/reserveRequestWeight.d.ts +7 -32
- package/esm/api/exchange/_methods/reserveRequestWeight.d.ts.map +1 -1
- package/esm/api/exchange/_methods/reserveRequestWeight.js +8 -9
- package/esm/api/exchange/_methods/reserveRequestWeight.js.map +1 -1
- package/esm/api/exchange/_methods/scheduleCancel.d.ts +7 -37
- package/esm/api/exchange/_methods/scheduleCancel.d.ts.map +1 -1
- package/esm/api/exchange/_methods/scheduleCancel.js +5 -5
- package/esm/api/exchange/_methods/scheduleCancel.js.map +1 -1
- package/esm/api/exchange/_methods/sendAsset.d.ts +16 -14
- package/esm/api/exchange/_methods/sendAsset.d.ts.map +1 -1
- package/esm/api/exchange/_methods/sendAsset.js +12 -15
- package/esm/api/exchange/_methods/sendAsset.js.map +1 -1
- package/esm/api/exchange/_methods/sendToEvmWithData.d.ts +21 -19
- package/esm/api/exchange/_methods/sendToEvmWithData.d.ts.map +1 -1
- package/esm/api/exchange/_methods/sendToEvmWithData.js +15 -18
- package/esm/api/exchange/_methods/sendToEvmWithData.js.map +1 -1
- package/esm/api/exchange/_methods/setDisplayName.d.ts +7 -35
- package/esm/api/exchange/_methods/setDisplayName.d.ts.map +1 -1
- package/esm/api/exchange/_methods/setDisplayName.js +8 -9
- package/esm/api/exchange/_methods/setDisplayName.js.map +1 -1
- package/esm/api/exchange/_methods/setReferrer.d.ts +7 -32
- package/esm/api/exchange/_methods/setReferrer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/setReferrer.js +8 -9
- package/esm/api/exchange/_methods/setReferrer.js.map +1 -1
- package/esm/api/exchange/_methods/spotDeploy.d.ts +22 -430
- package/esm/api/exchange/_methods/spotDeploy.d.ts.map +1 -1
- package/esm/api/exchange/_methods/spotDeploy.js +14 -17
- package/esm/api/exchange/_methods/spotDeploy.js.map +1 -1
- package/esm/api/exchange/_methods/spotSend.d.ts +16 -14
- package/esm/api/exchange/_methods/spotSend.d.ts.map +1 -1
- package/esm/api/exchange/_methods/spotSend.js +10 -13
- package/esm/api/exchange/_methods/spotSend.js.map +1 -1
- package/esm/api/exchange/_methods/spotUser.d.ts +7 -45
- package/esm/api/exchange/_methods/spotUser.d.ts.map +1 -1
- package/esm/api/exchange/_methods/spotUser.js +8 -9
- package/esm/api/exchange/_methods/spotUser.js.map +1 -1
- package/esm/api/exchange/_methods/subAccountModify.d.ts +8 -39
- package/esm/api/exchange/_methods/subAccountModify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/subAccountModify.js +9 -9
- package/esm/api/exchange/_methods/subAccountModify.js.map +1 -1
- package/esm/api/exchange/_methods/subAccountSpotTransfer.d.ts +10 -58
- package/esm/api/exchange/_methods/subAccountSpotTransfer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/subAccountSpotTransfer.js +11 -14
- package/esm/api/exchange/_methods/subAccountSpotTransfer.js.map +1 -1
- package/esm/api/exchange/_methods/subAccountTransfer.d.ts +9 -46
- package/esm/api/exchange/_methods/subAccountTransfer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/subAccountTransfer.js +10 -9
- package/esm/api/exchange/_methods/subAccountTransfer.js.map +1 -1
- package/esm/api/exchange/_methods/tokenDelegate.d.ts +16 -10
- package/esm/api/exchange/_methods/tokenDelegate.d.ts.map +1 -1
- package/esm/api/exchange/_methods/tokenDelegate.js +10 -9
- package/esm/api/exchange/_methods/tokenDelegate.js.map +1 -1
- package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts +8 -39
- package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts.map +1 -1
- package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.js +9 -9
- package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.js.map +1 -1
- package/esm/api/exchange/_methods/twapCancel.d.ts +8 -39
- package/esm/api/exchange/_methods/twapCancel.d.ts.map +1 -1
- package/esm/api/exchange/_methods/twapCancel.js +9 -9
- package/esm/api/exchange/_methods/twapCancel.js.map +1 -1
- package/esm/api/exchange/_methods/twapOrder.d.ts +13 -88
- package/esm/api/exchange/_methods/twapOrder.d.ts.map +1 -1
- package/esm/api/exchange/_methods/twapOrder.js +14 -17
- package/esm/api/exchange/_methods/twapOrder.js.map +1 -1
- package/esm/api/exchange/_methods/updateIsolatedMargin.d.ts +9 -46
- package/esm/api/exchange/_methods/updateIsolatedMargin.d.ts.map +1 -1
- package/esm/api/exchange/_methods/updateIsolatedMargin.js +10 -9
- package/esm/api/exchange/_methods/updateIsolatedMargin.js.map +1 -1
- package/esm/api/exchange/_methods/updateLeverage.d.ts +9 -46
- package/esm/api/exchange/_methods/updateLeverage.d.ts.map +1 -1
- package/esm/api/exchange/_methods/updateLeverage.js +10 -9
- package/esm/api/exchange/_methods/updateLeverage.js.map +1 -1
- package/esm/api/exchange/_methods/usdClassTransfer.d.ts +15 -10
- package/esm/api/exchange/_methods/usdClassTransfer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/usdClassTransfer.js +9 -9
- package/esm/api/exchange/_methods/usdClassTransfer.js.map +1 -1
- package/esm/api/exchange/_methods/usdSend.d.ts +15 -10
- package/esm/api/exchange/_methods/usdSend.d.ts.map +1 -1
- package/esm/api/exchange/_methods/usdSend.js +9 -9
- package/esm/api/exchange/_methods/usdSend.js.map +1 -1
- package/esm/api/exchange/_methods/userDexAbstraction.d.ts +15 -10
- package/esm/api/exchange/_methods/userDexAbstraction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/userDexAbstraction.js +9 -9
- package/esm/api/exchange/_methods/userDexAbstraction.js.map +1 -1
- package/esm/api/exchange/_methods/userPortfolioMargin.d.ts +15 -10
- package/esm/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -1
- package/esm/api/exchange/_methods/userPortfolioMargin.js +9 -9
- package/esm/api/exchange/_methods/userPortfolioMargin.js.map +1 -1
- package/esm/api/exchange/_methods/userSetAbstraction.d.ts +15 -10
- package/esm/api/exchange/_methods/userSetAbstraction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/userSetAbstraction.js +9 -9
- package/esm/api/exchange/_methods/userSetAbstraction.js.map +1 -1
- package/esm/api/exchange/_methods/validatorL1Stream.d.ts +7 -32
- package/esm/api/exchange/_methods/validatorL1Stream.d.ts.map +1 -1
- package/esm/api/exchange/_methods/validatorL1Stream.js +8 -9
- package/esm/api/exchange/_methods/validatorL1Stream.js.map +1 -1
- package/esm/api/exchange/_methods/vaultDistribute.d.ts +8 -42
- package/esm/api/exchange/_methods/vaultDistribute.d.ts.map +1 -1
- package/esm/api/exchange/_methods/vaultDistribute.js +9 -9
- package/esm/api/exchange/_methods/vaultDistribute.js.map +1 -1
- package/esm/api/exchange/_methods/vaultModify.d.ts +9 -50
- package/esm/api/exchange/_methods/vaultModify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/vaultModify.js +10 -13
- package/esm/api/exchange/_methods/vaultModify.js.map +1 -1
- package/esm/api/exchange/_methods/vaultTransfer.d.ts +9 -46
- package/esm/api/exchange/_methods/vaultTransfer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/vaultTransfer.js +10 -9
- package/esm/api/exchange/_methods/vaultTransfer.js.map +1 -1
- package/esm/api/exchange/_methods/withdraw3.d.ts +15 -10
- package/esm/api/exchange/_methods/withdraw3.d.ts.map +1 -1
- package/esm/api/exchange/_methods/withdraw3.js +9 -9
- package/esm/api/exchange/_methods/withdraw3.js.map +1 -1
- package/esm/api/exchange/mod.d.ts +1 -1
- package/esm/api/exchange/mod.d.ts.map +1 -1
- package/esm/api/info/_methods/activeAssetData.d.ts +4 -4
- package/esm/api/info/_methods/activeAssetData.js +4 -4
- package/esm/api/info/_methods/alignedQuoteTokenInfo.d.ts +3 -4
- package/esm/api/info/_methods/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/esm/api/info/_methods/alignedQuoteTokenInfo.js +3 -4
- package/esm/api/info/_methods/alignedQuoteTokenInfo.js.map +1 -1
- package/esm/api/info/_methods/approvedBuilders.d.ts +3 -4
- package/esm/api/info/_methods/approvedBuilders.d.ts.map +1 -1
- package/esm/api/info/_methods/approvedBuilders.js +3 -4
- package/esm/api/info/_methods/approvedBuilders.js.map +1 -1
- package/esm/api/info/_methods/blockDetails.d.ts +3 -4
- package/esm/api/info/_methods/blockDetails.d.ts.map +1 -1
- package/esm/api/info/_methods/blockDetails.js +3 -4
- package/esm/api/info/_methods/blockDetails.js.map +1 -1
- package/esm/api/info/_methods/borrowLendReserveState.d.ts +3 -4
- package/esm/api/info/_methods/borrowLendReserveState.d.ts.map +1 -1
- package/esm/api/info/_methods/borrowLendReserveState.js +3 -4
- package/esm/api/info/_methods/borrowLendReserveState.js.map +1 -1
- package/esm/api/info/_methods/borrowLendUserState.d.ts +3 -4
- package/esm/api/info/_methods/borrowLendUserState.d.ts.map +1 -1
- package/esm/api/info/_methods/borrowLendUserState.js +3 -4
- package/esm/api/info/_methods/borrowLendUserState.js.map +1 -1
- package/esm/api/info/_methods/candleSnapshot.d.ts +5 -8
- package/esm/api/info/_methods/candleSnapshot.d.ts.map +1 -1
- package/esm/api/info/_methods/candleSnapshot.js +5 -8
- package/esm/api/info/_methods/candleSnapshot.js.map +1 -1
- package/esm/api/info/_methods/clearinghouseState.d.ts +3 -4
- package/esm/api/info/_methods/clearinghouseState.d.ts.map +1 -1
- package/esm/api/info/_methods/clearinghouseState.js +3 -4
- package/esm/api/info/_methods/clearinghouseState.js.map +1 -1
- package/esm/api/info/_methods/delegations.d.ts +3 -4
- package/esm/api/info/_methods/delegations.d.ts.map +1 -1
- package/esm/api/info/_methods/delegations.js +3 -4
- package/esm/api/info/_methods/delegations.js.map +1 -1
- package/esm/api/info/_methods/delegatorHistory.d.ts +3 -4
- package/esm/api/info/_methods/delegatorHistory.d.ts.map +1 -1
- package/esm/api/info/_methods/delegatorHistory.js +3 -4
- package/esm/api/info/_methods/delegatorHistory.js.map +1 -1
- package/esm/api/info/_methods/delegatorRewards.d.ts +3 -4
- package/esm/api/info/_methods/delegatorRewards.d.ts.map +1 -1
- package/esm/api/info/_methods/delegatorRewards.js +3 -4
- package/esm/api/info/_methods/delegatorRewards.js.map +1 -1
- package/esm/api/info/_methods/delegatorSummary.d.ts +3 -4
- package/esm/api/info/_methods/delegatorSummary.d.ts.map +1 -1
- package/esm/api/info/_methods/delegatorSummary.js +3 -4
- package/esm/api/info/_methods/delegatorSummary.js.map +1 -1
- package/esm/api/info/_methods/extraAgents.d.ts +3 -4
- package/esm/api/info/_methods/extraAgents.d.ts.map +1 -1
- package/esm/api/info/_methods/extraAgents.js +3 -4
- package/esm/api/info/_methods/extraAgents.js.map +1 -1
- package/esm/api/info/_methods/frontendOpenOrders.d.ts +3 -4
- package/esm/api/info/_methods/frontendOpenOrders.d.ts.map +1 -1
- package/esm/api/info/_methods/frontendOpenOrders.js +3 -4
- package/esm/api/info/_methods/frontendOpenOrders.js.map +1 -1
- package/esm/api/info/_methods/fundingHistory.d.ts +4 -7
- package/esm/api/info/_methods/fundingHistory.d.ts.map +1 -1
- package/esm/api/info/_methods/fundingHistory.js +4 -7
- package/esm/api/info/_methods/fundingHistory.js.map +1 -1
- package/esm/api/info/_methods/historicalOrders.d.ts +3 -4
- package/esm/api/info/_methods/historicalOrders.d.ts.map +1 -1
- package/esm/api/info/_methods/historicalOrders.js +3 -4
- package/esm/api/info/_methods/historicalOrders.js.map +1 -1
- package/esm/api/info/_methods/isVip.d.ts +3 -4
- package/esm/api/info/_methods/isVip.d.ts.map +1 -1
- package/esm/api/info/_methods/isVip.js +3 -4
- package/esm/api/info/_methods/isVip.js.map +1 -1
- package/esm/api/info/_methods/l2Book.d.ts +4 -4
- package/esm/api/info/_methods/l2Book.js +4 -4
- package/esm/api/info/_methods/leadingVaults.d.ts +3 -4
- package/esm/api/info/_methods/leadingVaults.d.ts.map +1 -1
- package/esm/api/info/_methods/leadingVaults.js +3 -4
- package/esm/api/info/_methods/leadingVaults.js.map +1 -1
- package/esm/api/info/_methods/legalCheck.d.ts +3 -4
- package/esm/api/info/_methods/legalCheck.d.ts.map +1 -1
- package/esm/api/info/_methods/legalCheck.js +3 -4
- package/esm/api/info/_methods/legalCheck.js.map +1 -1
- package/esm/api/info/_methods/marginTable.d.ts +3 -4
- package/esm/api/info/_methods/marginTable.d.ts.map +1 -1
- package/esm/api/info/_methods/marginTable.js +3 -4
- package/esm/api/info/_methods/marginTable.js.map +1 -1
- package/esm/api/info/_methods/maxBuilderFee.d.ts +4 -4
- package/esm/api/info/_methods/maxBuilderFee.js +4 -4
- package/esm/api/info/_methods/openOrders.d.ts +3 -4
- package/esm/api/info/_methods/openOrders.d.ts.map +1 -1
- package/esm/api/info/_methods/openOrders.js +3 -4
- package/esm/api/info/_methods/openOrders.js.map +1 -1
- package/esm/api/info/_methods/orderStatus.d.ts +4 -4
- package/esm/api/info/_methods/orderStatus.js +4 -4
- package/esm/api/info/_methods/outcomeMeta.d.ts +3 -1
- package/esm/api/info/_methods/outcomeMeta.d.ts.map +1 -1
- package/esm/api/info/_methods/outcomeMeta.js.map +1 -1
- package/esm/api/info/_methods/perpAnnotation.d.ts +7 -1
- package/esm/api/info/_methods/perpAnnotation.d.ts.map +1 -1
- package/esm/api/info/_methods/perpAnnotation.js +3 -1
- package/esm/api/info/_methods/perpAnnotation.js.map +1 -1
- package/esm/api/info/_methods/perpConciseAnnotations.d.ts +52 -0
- package/esm/api/info/_methods/perpConciseAnnotations.d.ts.map +1 -0
- package/esm/api/info/_methods/perpConciseAnnotations.js +47 -0
- package/esm/api/info/_methods/perpConciseAnnotations.js.map +1 -0
- package/esm/api/info/_methods/perpDexLimits.d.ts +3 -4
- package/esm/api/info/_methods/perpDexLimits.d.ts.map +1 -1
- package/esm/api/info/_methods/perpDexLimits.js +3 -4
- package/esm/api/info/_methods/perpDexLimits.js.map +1 -1
- package/esm/api/info/_methods/perpDexStatus.d.ts +3 -1
- package/esm/api/info/_methods/perpDexStatus.d.ts.map +1 -1
- package/esm/api/info/_methods/perpDexStatus.js +3 -1
- package/esm/api/info/_methods/perpDexStatus.js.map +1 -1
- package/esm/api/info/_methods/portfolio.d.ts +3 -4
- package/esm/api/info/_methods/portfolio.d.ts.map +1 -1
- package/esm/api/info/_methods/portfolio.js +3 -4
- package/esm/api/info/_methods/portfolio.js.map +1 -1
- package/esm/api/info/_methods/preTransferCheck.d.ts +4 -4
- package/esm/api/info/_methods/preTransferCheck.js +4 -4
- package/esm/api/info/_methods/recentTrades.d.ts +3 -4
- package/esm/api/info/_methods/recentTrades.d.ts.map +1 -1
- package/esm/api/info/_methods/recentTrades.js +3 -4
- package/esm/api/info/_methods/recentTrades.js.map +1 -1
- package/esm/api/info/_methods/referral.d.ts +3 -4
- package/esm/api/info/_methods/referral.d.ts.map +1 -1
- package/esm/api/info/_methods/referral.js +3 -4
- package/esm/api/info/_methods/referral.js.map +1 -1
- package/esm/api/info/_methods/spotClearinghouseState.d.ts +3 -4
- package/esm/api/info/_methods/spotClearinghouseState.d.ts.map +1 -1
- package/esm/api/info/_methods/spotClearinghouseState.js +3 -4
- package/esm/api/info/_methods/spotClearinghouseState.js.map +1 -1
- package/esm/api/info/_methods/spotDeployState.d.ts +3 -4
- package/esm/api/info/_methods/spotDeployState.d.ts.map +1 -1
- package/esm/api/info/_methods/spotDeployState.js +3 -4
- package/esm/api/info/_methods/spotDeployState.js.map +1 -1
- package/esm/api/info/_methods/subAccounts.d.ts +3 -4
- package/esm/api/info/_methods/subAccounts.d.ts.map +1 -1
- package/esm/api/info/_methods/subAccounts.js +3 -4
- package/esm/api/info/_methods/subAccounts.js.map +1 -1
- package/esm/api/info/_methods/subAccounts2.d.ts +3 -4
- package/esm/api/info/_methods/subAccounts2.d.ts.map +1 -1
- package/esm/api/info/_methods/subAccounts2.js +3 -4
- package/esm/api/info/_methods/subAccounts2.js.map +1 -1
- package/esm/api/info/_methods/tokenDetails.d.ts +3 -4
- package/esm/api/info/_methods/tokenDetails.d.ts.map +1 -1
- package/esm/api/info/_methods/tokenDetails.js +3 -4
- package/esm/api/info/_methods/tokenDetails.js.map +1 -1
- package/esm/api/info/_methods/twapHistory.d.ts +3 -4
- package/esm/api/info/_methods/twapHistory.d.ts.map +1 -1
- package/esm/api/info/_methods/twapHistory.js +3 -4
- package/esm/api/info/_methods/twapHistory.js.map +1 -1
- package/esm/api/info/_methods/txDetails.d.ts +3 -4
- package/esm/api/info/_methods/txDetails.d.ts.map +1 -1
- package/esm/api/info/_methods/txDetails.js +3 -4
- package/esm/api/info/_methods/txDetails.js.map +1 -1
- package/esm/api/info/_methods/userAbstraction.d.ts +3 -4
- package/esm/api/info/_methods/userAbstraction.d.ts.map +1 -1
- package/esm/api/info/_methods/userAbstraction.js +3 -4
- package/esm/api/info/_methods/userAbstraction.js.map +1 -1
- package/esm/api/info/_methods/userBorrowLendInterest.d.ts +4 -7
- package/esm/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -1
- package/esm/api/info/_methods/userBorrowLendInterest.js +4 -7
- package/esm/api/info/_methods/userBorrowLendInterest.js.map +1 -1
- package/esm/api/info/_methods/userDetails.d.ts +3 -4
- package/esm/api/info/_methods/userDetails.d.ts.map +1 -1
- package/esm/api/info/_methods/userDetails.js +3 -4
- package/esm/api/info/_methods/userDetails.js.map +1 -1
- package/esm/api/info/_methods/userDexAbstraction.d.ts +3 -4
- package/esm/api/info/_methods/userDexAbstraction.d.ts.map +1 -1
- package/esm/api/info/_methods/userDexAbstraction.js +3 -4
- package/esm/api/info/_methods/userDexAbstraction.js.map +1 -1
- package/esm/api/info/_methods/userFees.d.ts +3 -4
- package/esm/api/info/_methods/userFees.d.ts.map +1 -1
- package/esm/api/info/_methods/userFees.js +3 -4
- package/esm/api/info/_methods/userFees.js.map +1 -1
- package/esm/api/info/_methods/userFills.d.ts +3 -4
- package/esm/api/info/_methods/userFills.d.ts.map +1 -1
- package/esm/api/info/_methods/userFills.js +3 -4
- package/esm/api/info/_methods/userFills.js.map +1 -1
- package/esm/api/info/_methods/userFillsByTime.d.ts +4 -7
- package/esm/api/info/_methods/userFillsByTime.d.ts.map +1 -1
- package/esm/api/info/_methods/userFillsByTime.js +4 -7
- package/esm/api/info/_methods/userFillsByTime.js.map +1 -1
- package/esm/api/info/_methods/userFunding.d.ts +3 -4
- package/esm/api/info/_methods/userFunding.d.ts.map +1 -1
- package/esm/api/info/_methods/userFunding.js +3 -4
- package/esm/api/info/_methods/userFunding.js.map +1 -1
- package/esm/api/info/_methods/userNonFundingLedgerUpdates.d.ts +17 -5
- package/esm/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/esm/api/info/_methods/userNonFundingLedgerUpdates.js +3 -4
- package/esm/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/esm/api/info/_methods/userRateLimit.d.ts +3 -4
- package/esm/api/info/_methods/userRateLimit.d.ts.map +1 -1
- package/esm/api/info/_methods/userRateLimit.js +3 -4
- package/esm/api/info/_methods/userRateLimit.js.map +1 -1
- package/esm/api/info/_methods/userRole.d.ts +3 -4
- package/esm/api/info/_methods/userRole.d.ts.map +1 -1
- package/esm/api/info/_methods/userRole.js +3 -4
- package/esm/api/info/_methods/userRole.js.map +1 -1
- package/esm/api/info/_methods/userToMultiSigSigners.d.ts +3 -4
- package/esm/api/info/_methods/userToMultiSigSigners.d.ts.map +1 -1
- package/esm/api/info/_methods/userToMultiSigSigners.js +3 -4
- package/esm/api/info/_methods/userToMultiSigSigners.js.map +1 -1
- package/esm/api/info/_methods/userTwapSliceFills.d.ts +3 -4
- package/esm/api/info/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/esm/api/info/_methods/userTwapSliceFills.js +3 -4
- package/esm/api/info/_methods/userTwapSliceFills.js.map +1 -1
- package/esm/api/info/_methods/userTwapSliceFillsByTime.d.ts +4 -7
- package/esm/api/info/_methods/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/esm/api/info/_methods/userTwapSliceFillsByTime.js +4 -7
- package/esm/api/info/_methods/userTwapSliceFillsByTime.js.map +1 -1
- package/esm/api/info/_methods/userVaultEquities.d.ts +3 -4
- package/esm/api/info/_methods/userVaultEquities.d.ts.map +1 -1
- package/esm/api/info/_methods/userVaultEquities.js +3 -4
- package/esm/api/info/_methods/userVaultEquities.js.map +1 -1
- package/esm/api/info/_methods/vaultDetails.d.ts +3 -4
- package/esm/api/info/_methods/vaultDetails.d.ts.map +1 -1
- package/esm/api/info/_methods/vaultDetails.js +3 -4
- package/esm/api/info/_methods/vaultDetails.js.map +1 -1
- package/esm/api/info/_methods/webData2.d.ts +3 -4
- package/esm/api/info/_methods/webData2.d.ts.map +1 -1
- package/esm/api/info/_methods/webData2.js +3 -4
- package/esm/api/info/_methods/webData2.js.map +1 -1
- package/esm/api/info/client.d.ts +24 -0
- package/esm/api/info/client.d.ts.map +1 -1
- package/esm/api/info/client.js +25 -0
- package/esm/api/info/client.js.map +1 -1
- package/esm/api/info/mod.d.ts +1 -0
- package/esm/api/info/mod.d.ts.map +1 -1
- package/esm/api/info/mod.js +1 -0
- package/esm/api/info/mod.js.map +1 -1
- package/esm/api/subscription/_methods/l2Book.d.ts +19 -33
- package/esm/api/subscription/_methods/l2Book.d.ts.map +1 -1
- package/esm/api/subscription/_methods/l2Book.js +2 -3
- package/esm/api/subscription/_methods/l2Book.js.map +1 -1
- package/esm/api/subscription/_methods/spotState.d.ts +1 -1
- package/esm/api/subscription/_methods/spotState.js +2 -2
- package/esm/api/subscription/_methods/spotState.js.map +1 -1
- package/esm/api/subscription/_methods/userFundings.d.ts +1 -1
- package/esm/api/subscription/_methods/userFundings.d.ts.map +1 -1
- package/esm/signing/_abstractWallet.d.ts.map +1 -1
- package/esm/signing/_abstractWallet.js +11 -1
- package/esm/signing/_abstractWallet.js.map +1 -1
- package/esm/transport/websocket/_postRequest.d.ts.map +1 -1
- package/esm/transport/websocket/_postRequest.js +9 -0
- package/esm/transport/websocket/_postRequest.js.map +1 -1
- package/esm/utils/_format.d.ts +1 -0
- package/esm/utils/_format.d.ts.map +1 -1
- package/esm/utils/_format.js +1 -1
- package/esm/utils/_format.js.map +1 -1
- package/esm/utils/mod.d.ts +1 -1
- package/esm/utils/mod.d.ts.map +1 -1
- package/esm/utils/mod.js +1 -1
- package/esm/utils/mod.js.map +1 -1
- package/package.json +2 -2
- package/script/_base.js +1 -1
- package/script/_base.js.map +1 -1
- package/script/api/_schemas.d.ts.map +1 -1
- package/script/api/_schemas.js +3 -17
- package/script/api/_schemas.js.map +1 -1
- package/script/api/exchange/_methods/_base/execute.d.ts +1 -1
- package/script/api/exchange/_methods/_base/execute.d.ts.map +1 -1
- package/script/api/exchange/_methods/_base/execute.js.map +1 -1
- package/script/api/exchange/_methods/agentEnableDexAbstraction.d.ts.map +1 -1
- package/script/api/exchange/_methods/agentEnableDexAbstraction.js +10 -1
- package/script/api/exchange/_methods/agentEnableDexAbstraction.js.map +1 -1
- package/script/api/exchange/_methods/agentSetAbstraction.d.ts +7 -37
- package/script/api/exchange/_methods/agentSetAbstraction.d.ts.map +1 -1
- package/script/api/exchange/_methods/agentSetAbstraction.js +8 -9
- package/script/api/exchange/_methods/agentSetAbstraction.js.map +1 -1
- package/script/api/exchange/_methods/approveAgent.d.ts +19 -17
- package/script/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/script/api/exchange/_methods/approveAgent.js +13 -16
- package/script/api/exchange/_methods/approveAgent.js.map +1 -1
- package/script/api/exchange/_methods/approveBuilderFee.d.ts +15 -10
- package/script/api/exchange/_methods/approveBuilderFee.d.ts.map +1 -1
- package/script/api/exchange/_methods/approveBuilderFee.js +9 -9
- package/script/api/exchange/_methods/approveBuilderFee.js.map +1 -1
- package/script/api/exchange/_methods/batchModify.d.ts +18 -192
- package/script/api/exchange/_methods/batchModify.d.ts.map +1 -1
- package/script/api/exchange/_methods/batchModify.js +19 -22
- package/script/api/exchange/_methods/batchModify.js.map +1 -1
- package/script/api/exchange/_methods/borrowLend.d.ts +9 -46
- package/script/api/exchange/_methods/borrowLend.d.ts.map +1 -1
- package/script/api/exchange/_methods/borrowLend.js +10 -9
- package/script/api/exchange/_methods/borrowLend.js.map +1 -1
- package/script/api/exchange/_methods/cDeposit.d.ts +14 -10
- package/script/api/exchange/_methods/cDeposit.d.ts.map +1 -1
- package/script/api/exchange/_methods/cDeposit.js +8 -9
- package/script/api/exchange/_methods/cDeposit.js.map +1 -1
- package/script/api/exchange/_methods/cSignerAction.d.ts +13 -61
- package/script/api/exchange/_methods/cSignerAction.d.ts.map +1 -1
- package/script/api/exchange/_methods/cSignerAction.js +11 -13
- package/script/api/exchange/_methods/cSignerAction.js.map +1 -1
- package/script/api/exchange/_methods/cValidatorAction.d.ts +18 -247
- package/script/api/exchange/_methods/cValidatorAction.d.ts.map +1 -1
- package/script/api/exchange/_methods/cValidatorAction.js +15 -18
- package/script/api/exchange/_methods/cValidatorAction.js.map +1 -1
- package/script/api/exchange/_methods/cWithdraw.d.ts +14 -10
- package/script/api/exchange/_methods/cWithdraw.d.ts.map +1 -1
- package/script/api/exchange/_methods/cWithdraw.js +8 -9
- package/script/api/exchange/_methods/cWithdraw.js.map +1 -1
- package/script/api/exchange/_methods/cancel.d.ts +7 -52
- package/script/api/exchange/_methods/cancel.d.ts.map +1 -1
- package/script/api/exchange/_methods/cancel.js +8 -9
- package/script/api/exchange/_methods/cancel.js.map +1 -1
- package/script/api/exchange/_methods/cancelByCloid.d.ts +9 -56
- package/script/api/exchange/_methods/cancelByCloid.d.ts.map +1 -1
- package/script/api/exchange/_methods/cancelByCloid.js +10 -13
- package/script/api/exchange/_methods/cancelByCloid.js.map +1 -1
- package/script/api/exchange/_methods/claimRewards.d.ts.map +1 -1
- package/script/api/exchange/_methods/claimRewards.js +10 -1
- package/script/api/exchange/_methods/claimRewards.js.map +1 -1
- package/script/api/exchange/_methods/convertToMultiSigUser.d.ts +19 -18
- package/script/api/exchange/_methods/convertToMultiSigUser.d.ts.map +1 -1
- package/script/api/exchange/_methods/convertToMultiSigUser.js +13 -17
- package/script/api/exchange/_methods/convertToMultiSigUser.js.map +1 -1
- package/script/api/exchange/_methods/createSubAccount.d.ts +7 -32
- package/script/api/exchange/_methods/createSubAccount.d.ts.map +1 -1
- package/script/api/exchange/_methods/createSubAccount.js +8 -9
- package/script/api/exchange/_methods/createSubAccount.js.map +1 -1
- package/script/api/exchange/_methods/createVault.d.ts +10 -58
- package/script/api/exchange/_methods/createVault.d.ts.map +1 -1
- package/script/api/exchange/_methods/createVault.js +11 -14
- package/script/api/exchange/_methods/createVault.js.map +1 -1
- package/script/api/exchange/_methods/evmUserModify.d.ts +7 -32
- package/script/api/exchange/_methods/evmUserModify.d.ts.map +1 -1
- package/script/api/exchange/_methods/evmUserModify.js +8 -9
- package/script/api/exchange/_methods/evmUserModify.js.map +1 -1
- package/script/api/exchange/_methods/linkStakingUser.d.ts +15 -10
- package/script/api/exchange/_methods/linkStakingUser.d.ts.map +1 -1
- package/script/api/exchange/_methods/linkStakingUser.js +9 -9
- package/script/api/exchange/_methods/linkStakingUser.js.map +1 -1
- package/script/api/exchange/_methods/modify.d.ts +14 -175
- package/script/api/exchange/_methods/modify.d.ts.map +1 -1
- package/script/api/exchange/_methods/modify.js +15 -18
- package/script/api/exchange/_methods/modify.js.map +1 -1
- package/script/api/exchange/_methods/noop.d.ts.map +1 -1
- package/script/api/exchange/_methods/noop.js +10 -1
- package/script/api/exchange/_methods/noop.js.map +1 -1
- package/script/api/exchange/_methods/order.d.ts +19 -212
- package/script/api/exchange/_methods/order.d.ts.map +1 -1
- package/script/api/exchange/_methods/order.js +18 -21
- package/script/api/exchange/_methods/order.js.map +1 -1
- package/script/api/exchange/_methods/perpDeploy.d.ts +39 -740
- package/script/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
- package/script/api/exchange/_methods/perpDeploy.js +21 -20
- package/script/api/exchange/_methods/perpDeploy.js.map +1 -1
- package/script/api/exchange/_methods/registerReferrer.d.ts +7 -32
- package/script/api/exchange/_methods/registerReferrer.d.ts.map +1 -1
- package/script/api/exchange/_methods/registerReferrer.js +8 -9
- package/script/api/exchange/_methods/registerReferrer.js.map +1 -1
- package/script/api/exchange/_methods/reserveRequestWeight.d.ts +7 -32
- package/script/api/exchange/_methods/reserveRequestWeight.d.ts.map +1 -1
- package/script/api/exchange/_methods/reserveRequestWeight.js +8 -9
- package/script/api/exchange/_methods/reserveRequestWeight.js.map +1 -1
- package/script/api/exchange/_methods/scheduleCancel.d.ts +7 -37
- package/script/api/exchange/_methods/scheduleCancel.d.ts.map +1 -1
- package/script/api/exchange/_methods/scheduleCancel.js +5 -5
- package/script/api/exchange/_methods/scheduleCancel.js.map +1 -1
- package/script/api/exchange/_methods/sendAsset.d.ts +16 -14
- package/script/api/exchange/_methods/sendAsset.d.ts.map +1 -1
- package/script/api/exchange/_methods/sendAsset.js +12 -15
- package/script/api/exchange/_methods/sendAsset.js.map +1 -1
- package/script/api/exchange/_methods/sendToEvmWithData.d.ts +21 -19
- package/script/api/exchange/_methods/sendToEvmWithData.d.ts.map +1 -1
- package/script/api/exchange/_methods/sendToEvmWithData.js +15 -18
- package/script/api/exchange/_methods/sendToEvmWithData.js.map +1 -1
- package/script/api/exchange/_methods/setDisplayName.d.ts +7 -35
- package/script/api/exchange/_methods/setDisplayName.d.ts.map +1 -1
- package/script/api/exchange/_methods/setDisplayName.js +8 -9
- package/script/api/exchange/_methods/setDisplayName.js.map +1 -1
- package/script/api/exchange/_methods/setReferrer.d.ts +7 -32
- package/script/api/exchange/_methods/setReferrer.d.ts.map +1 -1
- package/script/api/exchange/_methods/setReferrer.js +8 -9
- package/script/api/exchange/_methods/setReferrer.js.map +1 -1
- package/script/api/exchange/_methods/spotDeploy.d.ts +22 -430
- package/script/api/exchange/_methods/spotDeploy.d.ts.map +1 -1
- package/script/api/exchange/_methods/spotDeploy.js +14 -17
- package/script/api/exchange/_methods/spotDeploy.js.map +1 -1
- package/script/api/exchange/_methods/spotSend.d.ts +16 -14
- package/script/api/exchange/_methods/spotSend.d.ts.map +1 -1
- package/script/api/exchange/_methods/spotSend.js +10 -13
- package/script/api/exchange/_methods/spotSend.js.map +1 -1
- package/script/api/exchange/_methods/spotUser.d.ts +7 -45
- package/script/api/exchange/_methods/spotUser.d.ts.map +1 -1
- package/script/api/exchange/_methods/spotUser.js +8 -9
- package/script/api/exchange/_methods/spotUser.js.map +1 -1
- package/script/api/exchange/_methods/subAccountModify.d.ts +8 -39
- package/script/api/exchange/_methods/subAccountModify.d.ts.map +1 -1
- package/script/api/exchange/_methods/subAccountModify.js +9 -9
- package/script/api/exchange/_methods/subAccountModify.js.map +1 -1
- package/script/api/exchange/_methods/subAccountSpotTransfer.d.ts +10 -58
- package/script/api/exchange/_methods/subAccountSpotTransfer.d.ts.map +1 -1
- package/script/api/exchange/_methods/subAccountSpotTransfer.js +11 -14
- package/script/api/exchange/_methods/subAccountSpotTransfer.js.map +1 -1
- package/script/api/exchange/_methods/subAccountTransfer.d.ts +9 -46
- package/script/api/exchange/_methods/subAccountTransfer.d.ts.map +1 -1
- package/script/api/exchange/_methods/subAccountTransfer.js +10 -9
- package/script/api/exchange/_methods/subAccountTransfer.js.map +1 -1
- package/script/api/exchange/_methods/tokenDelegate.d.ts +16 -10
- package/script/api/exchange/_methods/tokenDelegate.d.ts.map +1 -1
- package/script/api/exchange/_methods/tokenDelegate.js +10 -9
- package/script/api/exchange/_methods/tokenDelegate.js.map +1 -1
- package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts +8 -39
- package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts.map +1 -1
- package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.js +9 -9
- package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.js.map +1 -1
- package/script/api/exchange/_methods/twapCancel.d.ts +8 -39
- package/script/api/exchange/_methods/twapCancel.d.ts.map +1 -1
- package/script/api/exchange/_methods/twapCancel.js +9 -9
- package/script/api/exchange/_methods/twapCancel.js.map +1 -1
- package/script/api/exchange/_methods/twapOrder.d.ts +13 -88
- package/script/api/exchange/_methods/twapOrder.d.ts.map +1 -1
- package/script/api/exchange/_methods/twapOrder.js +14 -17
- package/script/api/exchange/_methods/twapOrder.js.map +1 -1
- package/script/api/exchange/_methods/updateIsolatedMargin.d.ts +9 -46
- package/script/api/exchange/_methods/updateIsolatedMargin.d.ts.map +1 -1
- package/script/api/exchange/_methods/updateIsolatedMargin.js +10 -9
- package/script/api/exchange/_methods/updateIsolatedMargin.js.map +1 -1
- package/script/api/exchange/_methods/updateLeverage.d.ts +9 -46
- package/script/api/exchange/_methods/updateLeverage.d.ts.map +1 -1
- package/script/api/exchange/_methods/updateLeverage.js +10 -9
- package/script/api/exchange/_methods/updateLeverage.js.map +1 -1
- package/script/api/exchange/_methods/usdClassTransfer.d.ts +15 -10
- package/script/api/exchange/_methods/usdClassTransfer.d.ts.map +1 -1
- package/script/api/exchange/_methods/usdClassTransfer.js +9 -9
- package/script/api/exchange/_methods/usdClassTransfer.js.map +1 -1
- package/script/api/exchange/_methods/usdSend.d.ts +15 -10
- package/script/api/exchange/_methods/usdSend.d.ts.map +1 -1
- package/script/api/exchange/_methods/usdSend.js +9 -9
- package/script/api/exchange/_methods/usdSend.js.map +1 -1
- package/script/api/exchange/_methods/userDexAbstraction.d.ts +15 -10
- package/script/api/exchange/_methods/userDexAbstraction.d.ts.map +1 -1
- package/script/api/exchange/_methods/userDexAbstraction.js +9 -9
- package/script/api/exchange/_methods/userDexAbstraction.js.map +1 -1
- package/script/api/exchange/_methods/userPortfolioMargin.d.ts +15 -10
- package/script/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -1
- package/script/api/exchange/_methods/userPortfolioMargin.js +9 -9
- package/script/api/exchange/_methods/userPortfolioMargin.js.map +1 -1
- package/script/api/exchange/_methods/userSetAbstraction.d.ts +15 -10
- package/script/api/exchange/_methods/userSetAbstraction.d.ts.map +1 -1
- package/script/api/exchange/_methods/userSetAbstraction.js +9 -9
- package/script/api/exchange/_methods/userSetAbstraction.js.map +1 -1
- package/script/api/exchange/_methods/validatorL1Stream.d.ts +7 -32
- package/script/api/exchange/_methods/validatorL1Stream.d.ts.map +1 -1
- package/script/api/exchange/_methods/validatorL1Stream.js +8 -9
- package/script/api/exchange/_methods/validatorL1Stream.js.map +1 -1
- package/script/api/exchange/_methods/vaultDistribute.d.ts +8 -42
- package/script/api/exchange/_methods/vaultDistribute.d.ts.map +1 -1
- package/script/api/exchange/_methods/vaultDistribute.js +9 -9
- package/script/api/exchange/_methods/vaultDistribute.js.map +1 -1
- package/script/api/exchange/_methods/vaultModify.d.ts +9 -50
- package/script/api/exchange/_methods/vaultModify.d.ts.map +1 -1
- package/script/api/exchange/_methods/vaultModify.js +10 -13
- package/script/api/exchange/_methods/vaultModify.js.map +1 -1
- package/script/api/exchange/_methods/vaultTransfer.d.ts +9 -46
- package/script/api/exchange/_methods/vaultTransfer.d.ts.map +1 -1
- package/script/api/exchange/_methods/vaultTransfer.js +10 -9
- package/script/api/exchange/_methods/vaultTransfer.js.map +1 -1
- package/script/api/exchange/_methods/withdraw3.d.ts +15 -10
- package/script/api/exchange/_methods/withdraw3.d.ts.map +1 -1
- package/script/api/exchange/_methods/withdraw3.js +9 -9
- package/script/api/exchange/_methods/withdraw3.js.map +1 -1
- package/script/api/exchange/mod.d.ts +1 -1
- package/script/api/exchange/mod.d.ts.map +1 -1
- package/script/api/info/_methods/activeAssetData.d.ts +4 -4
- package/script/api/info/_methods/activeAssetData.js +4 -4
- package/script/api/info/_methods/alignedQuoteTokenInfo.d.ts +3 -4
- package/script/api/info/_methods/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/script/api/info/_methods/alignedQuoteTokenInfo.js +3 -4
- package/script/api/info/_methods/alignedQuoteTokenInfo.js.map +1 -1
- package/script/api/info/_methods/approvedBuilders.d.ts +3 -4
- package/script/api/info/_methods/approvedBuilders.d.ts.map +1 -1
- package/script/api/info/_methods/approvedBuilders.js +3 -4
- package/script/api/info/_methods/approvedBuilders.js.map +1 -1
- package/script/api/info/_methods/blockDetails.d.ts +3 -4
- package/script/api/info/_methods/blockDetails.d.ts.map +1 -1
- package/script/api/info/_methods/blockDetails.js +3 -4
- package/script/api/info/_methods/blockDetails.js.map +1 -1
- package/script/api/info/_methods/borrowLendReserveState.d.ts +3 -4
- package/script/api/info/_methods/borrowLendReserveState.d.ts.map +1 -1
- package/script/api/info/_methods/borrowLendReserveState.js +3 -4
- package/script/api/info/_methods/borrowLendReserveState.js.map +1 -1
- package/script/api/info/_methods/borrowLendUserState.d.ts +3 -4
- package/script/api/info/_methods/borrowLendUserState.d.ts.map +1 -1
- package/script/api/info/_methods/borrowLendUserState.js +3 -4
- package/script/api/info/_methods/borrowLendUserState.js.map +1 -1
- package/script/api/info/_methods/candleSnapshot.d.ts +5 -8
- package/script/api/info/_methods/candleSnapshot.d.ts.map +1 -1
- package/script/api/info/_methods/candleSnapshot.js +5 -8
- package/script/api/info/_methods/candleSnapshot.js.map +1 -1
- package/script/api/info/_methods/clearinghouseState.d.ts +3 -4
- package/script/api/info/_methods/clearinghouseState.d.ts.map +1 -1
- package/script/api/info/_methods/clearinghouseState.js +3 -4
- package/script/api/info/_methods/clearinghouseState.js.map +1 -1
- package/script/api/info/_methods/delegations.d.ts +3 -4
- package/script/api/info/_methods/delegations.d.ts.map +1 -1
- package/script/api/info/_methods/delegations.js +3 -4
- package/script/api/info/_methods/delegations.js.map +1 -1
- package/script/api/info/_methods/delegatorHistory.d.ts +3 -4
- package/script/api/info/_methods/delegatorHistory.d.ts.map +1 -1
- package/script/api/info/_methods/delegatorHistory.js +3 -4
- package/script/api/info/_methods/delegatorHistory.js.map +1 -1
- package/script/api/info/_methods/delegatorRewards.d.ts +3 -4
- package/script/api/info/_methods/delegatorRewards.d.ts.map +1 -1
- package/script/api/info/_methods/delegatorRewards.js +3 -4
- package/script/api/info/_methods/delegatorRewards.js.map +1 -1
- package/script/api/info/_methods/delegatorSummary.d.ts +3 -4
- package/script/api/info/_methods/delegatorSummary.d.ts.map +1 -1
- package/script/api/info/_methods/delegatorSummary.js +3 -4
- package/script/api/info/_methods/delegatorSummary.js.map +1 -1
- package/script/api/info/_methods/extraAgents.d.ts +3 -4
- package/script/api/info/_methods/extraAgents.d.ts.map +1 -1
- package/script/api/info/_methods/extraAgents.js +3 -4
- package/script/api/info/_methods/extraAgents.js.map +1 -1
- package/script/api/info/_methods/frontendOpenOrders.d.ts +3 -4
- package/script/api/info/_methods/frontendOpenOrders.d.ts.map +1 -1
- package/script/api/info/_methods/frontendOpenOrders.js +3 -4
- package/script/api/info/_methods/frontendOpenOrders.js.map +1 -1
- package/script/api/info/_methods/fundingHistory.d.ts +4 -7
- package/script/api/info/_methods/fundingHistory.d.ts.map +1 -1
- package/script/api/info/_methods/fundingHistory.js +4 -7
- package/script/api/info/_methods/fundingHistory.js.map +1 -1
- package/script/api/info/_methods/historicalOrders.d.ts +3 -4
- package/script/api/info/_methods/historicalOrders.d.ts.map +1 -1
- package/script/api/info/_methods/historicalOrders.js +3 -4
- package/script/api/info/_methods/historicalOrders.js.map +1 -1
- package/script/api/info/_methods/isVip.d.ts +3 -4
- package/script/api/info/_methods/isVip.d.ts.map +1 -1
- package/script/api/info/_methods/isVip.js +3 -4
- package/script/api/info/_methods/isVip.js.map +1 -1
- package/script/api/info/_methods/l2Book.d.ts +4 -4
- package/script/api/info/_methods/l2Book.js +4 -4
- package/script/api/info/_methods/leadingVaults.d.ts +3 -4
- package/script/api/info/_methods/leadingVaults.d.ts.map +1 -1
- package/script/api/info/_methods/leadingVaults.js +3 -4
- package/script/api/info/_methods/leadingVaults.js.map +1 -1
- package/script/api/info/_methods/legalCheck.d.ts +3 -4
- package/script/api/info/_methods/legalCheck.d.ts.map +1 -1
- package/script/api/info/_methods/legalCheck.js +3 -4
- package/script/api/info/_methods/legalCheck.js.map +1 -1
- package/script/api/info/_methods/marginTable.d.ts +3 -4
- package/script/api/info/_methods/marginTable.d.ts.map +1 -1
- package/script/api/info/_methods/marginTable.js +3 -4
- package/script/api/info/_methods/marginTable.js.map +1 -1
- package/script/api/info/_methods/maxBuilderFee.d.ts +4 -4
- package/script/api/info/_methods/maxBuilderFee.js +4 -4
- package/script/api/info/_methods/openOrders.d.ts +3 -4
- package/script/api/info/_methods/openOrders.d.ts.map +1 -1
- package/script/api/info/_methods/openOrders.js +3 -4
- package/script/api/info/_methods/openOrders.js.map +1 -1
- package/script/api/info/_methods/orderStatus.d.ts +4 -4
- package/script/api/info/_methods/orderStatus.js +4 -4
- package/script/api/info/_methods/outcomeMeta.d.ts +3 -1
- package/script/api/info/_methods/outcomeMeta.d.ts.map +1 -1
- package/script/api/info/_methods/outcomeMeta.js.map +1 -1
- package/script/api/info/_methods/perpAnnotation.d.ts +7 -1
- package/script/api/info/_methods/perpAnnotation.d.ts.map +1 -1
- package/script/api/info/_methods/perpAnnotation.js +3 -1
- package/script/api/info/_methods/perpAnnotation.js.map +1 -1
- package/script/api/info/_methods/perpConciseAnnotations.d.ts +52 -0
- package/script/api/info/_methods/perpConciseAnnotations.d.ts.map +1 -0
- package/script/api/info/_methods/perpConciseAnnotations.js +84 -0
- package/script/api/info/_methods/perpConciseAnnotations.js.map +1 -0
- package/script/api/info/_methods/perpDexLimits.d.ts +3 -4
- package/script/api/info/_methods/perpDexLimits.d.ts.map +1 -1
- package/script/api/info/_methods/perpDexLimits.js +3 -4
- package/script/api/info/_methods/perpDexLimits.js.map +1 -1
- package/script/api/info/_methods/perpDexStatus.d.ts +3 -1
- package/script/api/info/_methods/perpDexStatus.d.ts.map +1 -1
- package/script/api/info/_methods/perpDexStatus.js +3 -1
- package/script/api/info/_methods/perpDexStatus.js.map +1 -1
- package/script/api/info/_methods/portfolio.d.ts +3 -4
- package/script/api/info/_methods/portfolio.d.ts.map +1 -1
- package/script/api/info/_methods/portfolio.js +3 -4
- package/script/api/info/_methods/portfolio.js.map +1 -1
- package/script/api/info/_methods/preTransferCheck.d.ts +4 -4
- package/script/api/info/_methods/preTransferCheck.js +4 -4
- package/script/api/info/_methods/recentTrades.d.ts +3 -4
- package/script/api/info/_methods/recentTrades.d.ts.map +1 -1
- package/script/api/info/_methods/recentTrades.js +3 -4
- package/script/api/info/_methods/recentTrades.js.map +1 -1
- package/script/api/info/_methods/referral.d.ts +3 -4
- package/script/api/info/_methods/referral.d.ts.map +1 -1
- package/script/api/info/_methods/referral.js +3 -4
- package/script/api/info/_methods/referral.js.map +1 -1
- package/script/api/info/_methods/spotClearinghouseState.d.ts +3 -4
- package/script/api/info/_methods/spotClearinghouseState.d.ts.map +1 -1
- package/script/api/info/_methods/spotClearinghouseState.js +3 -4
- package/script/api/info/_methods/spotClearinghouseState.js.map +1 -1
- package/script/api/info/_methods/spotDeployState.d.ts +3 -4
- package/script/api/info/_methods/spotDeployState.d.ts.map +1 -1
- package/script/api/info/_methods/spotDeployState.js +3 -4
- package/script/api/info/_methods/spotDeployState.js.map +1 -1
- package/script/api/info/_methods/subAccounts.d.ts +3 -4
- package/script/api/info/_methods/subAccounts.d.ts.map +1 -1
- package/script/api/info/_methods/subAccounts.js +3 -4
- package/script/api/info/_methods/subAccounts.js.map +1 -1
- package/script/api/info/_methods/subAccounts2.d.ts +3 -4
- package/script/api/info/_methods/subAccounts2.d.ts.map +1 -1
- package/script/api/info/_methods/subAccounts2.js +3 -4
- package/script/api/info/_methods/subAccounts2.js.map +1 -1
- package/script/api/info/_methods/tokenDetails.d.ts +3 -4
- package/script/api/info/_methods/tokenDetails.d.ts.map +1 -1
- package/script/api/info/_methods/tokenDetails.js +3 -4
- package/script/api/info/_methods/tokenDetails.js.map +1 -1
- package/script/api/info/_methods/twapHistory.d.ts +3 -4
- package/script/api/info/_methods/twapHistory.d.ts.map +1 -1
- package/script/api/info/_methods/twapHistory.js +3 -4
- package/script/api/info/_methods/twapHistory.js.map +1 -1
- package/script/api/info/_methods/txDetails.d.ts +3 -4
- package/script/api/info/_methods/txDetails.d.ts.map +1 -1
- package/script/api/info/_methods/txDetails.js +3 -4
- package/script/api/info/_methods/txDetails.js.map +1 -1
- package/script/api/info/_methods/userAbstraction.d.ts +3 -4
- package/script/api/info/_methods/userAbstraction.d.ts.map +1 -1
- package/script/api/info/_methods/userAbstraction.js +3 -4
- package/script/api/info/_methods/userAbstraction.js.map +1 -1
- package/script/api/info/_methods/userBorrowLendInterest.d.ts +4 -7
- package/script/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -1
- package/script/api/info/_methods/userBorrowLendInterest.js +4 -7
- package/script/api/info/_methods/userBorrowLendInterest.js.map +1 -1
- package/script/api/info/_methods/userDetails.d.ts +3 -4
- package/script/api/info/_methods/userDetails.d.ts.map +1 -1
- package/script/api/info/_methods/userDetails.js +3 -4
- package/script/api/info/_methods/userDetails.js.map +1 -1
- package/script/api/info/_methods/userDexAbstraction.d.ts +3 -4
- package/script/api/info/_methods/userDexAbstraction.d.ts.map +1 -1
- package/script/api/info/_methods/userDexAbstraction.js +3 -4
- package/script/api/info/_methods/userDexAbstraction.js.map +1 -1
- package/script/api/info/_methods/userFees.d.ts +3 -4
- package/script/api/info/_methods/userFees.d.ts.map +1 -1
- package/script/api/info/_methods/userFees.js +3 -4
- package/script/api/info/_methods/userFees.js.map +1 -1
- package/script/api/info/_methods/userFills.d.ts +3 -4
- package/script/api/info/_methods/userFills.d.ts.map +1 -1
- package/script/api/info/_methods/userFills.js +3 -4
- package/script/api/info/_methods/userFills.js.map +1 -1
- package/script/api/info/_methods/userFillsByTime.d.ts +4 -7
- package/script/api/info/_methods/userFillsByTime.d.ts.map +1 -1
- package/script/api/info/_methods/userFillsByTime.js +4 -7
- package/script/api/info/_methods/userFillsByTime.js.map +1 -1
- package/script/api/info/_methods/userFunding.d.ts +3 -4
- package/script/api/info/_methods/userFunding.d.ts.map +1 -1
- package/script/api/info/_methods/userFunding.js +3 -4
- package/script/api/info/_methods/userFunding.js.map +1 -1
- package/script/api/info/_methods/userNonFundingLedgerUpdates.d.ts +17 -5
- package/script/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/script/api/info/_methods/userNonFundingLedgerUpdates.js +3 -4
- package/script/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/script/api/info/_methods/userRateLimit.d.ts +3 -4
- package/script/api/info/_methods/userRateLimit.d.ts.map +1 -1
- package/script/api/info/_methods/userRateLimit.js +3 -4
- package/script/api/info/_methods/userRateLimit.js.map +1 -1
- package/script/api/info/_methods/userRole.d.ts +3 -4
- package/script/api/info/_methods/userRole.d.ts.map +1 -1
- package/script/api/info/_methods/userRole.js +3 -4
- package/script/api/info/_methods/userRole.js.map +1 -1
- package/script/api/info/_methods/userToMultiSigSigners.d.ts +3 -4
- package/script/api/info/_methods/userToMultiSigSigners.d.ts.map +1 -1
- package/script/api/info/_methods/userToMultiSigSigners.js +3 -4
- package/script/api/info/_methods/userToMultiSigSigners.js.map +1 -1
- package/script/api/info/_methods/userTwapSliceFills.d.ts +3 -4
- package/script/api/info/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/script/api/info/_methods/userTwapSliceFills.js +3 -4
- package/script/api/info/_methods/userTwapSliceFills.js.map +1 -1
- package/script/api/info/_methods/userTwapSliceFillsByTime.d.ts +4 -7
- package/script/api/info/_methods/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/script/api/info/_methods/userTwapSliceFillsByTime.js +4 -7
- package/script/api/info/_methods/userTwapSliceFillsByTime.js.map +1 -1
- package/script/api/info/_methods/userVaultEquities.d.ts +3 -4
- package/script/api/info/_methods/userVaultEquities.d.ts.map +1 -1
- package/script/api/info/_methods/userVaultEquities.js +3 -4
- package/script/api/info/_methods/userVaultEquities.js.map +1 -1
- package/script/api/info/_methods/vaultDetails.d.ts +3 -4
- package/script/api/info/_methods/vaultDetails.d.ts.map +1 -1
- package/script/api/info/_methods/vaultDetails.js +3 -4
- package/script/api/info/_methods/vaultDetails.js.map +1 -1
- package/script/api/info/_methods/webData2.d.ts +3 -4
- package/script/api/info/_methods/webData2.d.ts.map +1 -1
- package/script/api/info/_methods/webData2.js +3 -4
- package/script/api/info/_methods/webData2.js.map +1 -1
- package/script/api/info/client.d.ts +24 -0
- package/script/api/info/client.d.ts.map +1 -1
- package/script/api/info/client.js +25 -0
- package/script/api/info/client.js.map +1 -1
- package/script/api/info/mod.d.ts +1 -0
- package/script/api/info/mod.d.ts.map +1 -1
- package/script/api/info/mod.js +1 -0
- package/script/api/info/mod.js.map +1 -1
- package/script/api/subscription/_methods/l2Book.d.ts +19 -33
- package/script/api/subscription/_methods/l2Book.d.ts.map +1 -1
- package/script/api/subscription/_methods/l2Book.js +2 -3
- package/script/api/subscription/_methods/l2Book.js.map +1 -1
- package/script/api/subscription/_methods/spotState.d.ts +1 -1
- package/script/api/subscription/_methods/spotState.js +2 -2
- package/script/api/subscription/_methods/spotState.js.map +1 -1
- package/script/api/subscription/_methods/userFundings.d.ts +1 -1
- package/script/api/subscription/_methods/userFundings.d.ts.map +1 -1
- package/script/signing/_abstractWallet.d.ts.map +1 -1
- package/script/signing/_abstractWallet.js +11 -1
- package/script/signing/_abstractWallet.js.map +1 -1
- package/script/transport/websocket/_postRequest.d.ts.map +1 -1
- package/script/transport/websocket/_postRequest.js +9 -0
- package/script/transport/websocket/_postRequest.js.map +1 -1
- package/script/utils/_format.d.ts +1 -0
- package/script/utils/_format.d.ts.map +1 -1
- package/script/utils/_format.js +1 -0
- package/script/utils/_format.js.map +1 -1
- package/script/utils/mod.d.ts +1 -1
- package/script/utils/mod.d.ts.map +1 -1
- package/script/utils/mod.js +4 -1
- package/script/utils/mod.js.map +1 -1
- package/src/_base.ts +1 -1
- package/src/api/_schemas.ts +1 -16
- package/src/api/exchange/_methods/_base/execute.ts +3 -1
- package/src/api/exchange/_methods/agentEnableDexAbstraction.ts +8 -1
- package/src/api/exchange/_methods/agentSetAbstraction.ts +9 -13
- package/src/api/exchange/_methods/approveAgent.ts +14 -22
- package/src/api/exchange/_methods/approveBuilderFee.ts +10 -15
- package/src/api/exchange/_methods/batchModify.ts +20 -26
- package/src/api/exchange/_methods/borrowLend.ts +11 -13
- package/src/api/exchange/_methods/cDeposit.ts +9 -15
- package/src/api/exchange/_methods/cSignerAction.ts +14 -16
- package/src/api/exchange/_methods/cValidatorAction.ts +18 -21
- package/src/api/exchange/_methods/cWithdraw.ts +9 -15
- package/src/api/exchange/_methods/cancel.ts +9 -13
- package/src/api/exchange/_methods/cancelByCloid.ts +11 -17
- package/src/api/exchange/_methods/claimRewards.ts +8 -1
- package/src/api/exchange/_methods/convertToMultiSigUser.ts +14 -23
- package/src/api/exchange/_methods/createSubAccount.ts +9 -13
- package/src/api/exchange/_methods/createVault.ts +12 -18
- package/src/api/exchange/_methods/evmUserModify.ts +9 -13
- package/src/api/exchange/_methods/linkStakingUser.ts +10 -15
- package/src/api/exchange/_methods/modify.ts +16 -22
- package/src/api/exchange/_methods/noop.ts +8 -1
- package/src/api/exchange/_methods/order.ts +21 -27
- package/src/api/exchange/_methods/perpDeploy.ts +24 -23
- package/src/api/exchange/_methods/registerReferrer.ts +9 -13
- package/src/api/exchange/_methods/reserveRequestWeight.ts +9 -13
- package/src/api/exchange/_methods/scheduleCancel.ts +9 -13
- package/src/api/exchange/_methods/sendAsset.ts +13 -21
- package/src/api/exchange/_methods/sendToEvmWithData.ts +16 -24
- package/src/api/exchange/_methods/setDisplayName.ts +9 -13
- package/src/api/exchange/_methods/setReferrer.ts +9 -13
- package/src/api/exchange/_methods/spotDeploy.ts +17 -20
- package/src/api/exchange/_methods/spotSend.ts +11 -19
- package/src/api/exchange/_methods/spotUser.ts +9 -13
- package/src/api/exchange/_methods/subAccountModify.ts +10 -13
- package/src/api/exchange/_methods/subAccountSpotTransfer.ts +12 -18
- package/src/api/exchange/_methods/subAccountTransfer.ts +11 -13
- package/src/api/exchange/_methods/tokenDelegate.ts +11 -15
- package/src/api/exchange/_methods/topUpIsolatedOnlyMargin.ts +10 -13
- package/src/api/exchange/_methods/twapCancel.ts +10 -13
- package/src/api/exchange/_methods/twapOrder.ts +15 -21
- package/src/api/exchange/_methods/updateIsolatedMargin.ts +11 -13
- package/src/api/exchange/_methods/updateLeverage.ts +11 -13
- package/src/api/exchange/_methods/usdClassTransfer.ts +10 -15
- package/src/api/exchange/_methods/usdSend.ts +10 -15
- package/src/api/exchange/_methods/userDexAbstraction.ts +10 -15
- package/src/api/exchange/_methods/userPortfolioMargin.ts +10 -15
- package/src/api/exchange/_methods/userSetAbstraction.ts +10 -15
- package/src/api/exchange/_methods/validatorL1Stream.ts +9 -13
- package/src/api/exchange/_methods/vaultDistribute.ts +10 -13
- package/src/api/exchange/_methods/vaultModify.ts +11 -17
- package/src/api/exchange/_methods/vaultTransfer.ts +11 -13
- package/src/api/exchange/_methods/withdraw3.ts +10 -15
- package/src/api/exchange/mod.ts +1 -1
- package/src/api/info/_methods/activeAssetData.ts +4 -4
- package/src/api/info/_methods/alignedQuoteTokenInfo.ts +3 -4
- package/src/api/info/_methods/approvedBuilders.ts +3 -4
- package/src/api/info/_methods/blockDetails.ts +3 -4
- package/src/api/info/_methods/borrowLendReserveState.ts +3 -4
- package/src/api/info/_methods/borrowLendUserState.ts +3 -4
- package/src/api/info/_methods/candleSnapshot.ts +5 -8
- package/src/api/info/_methods/clearinghouseState.ts +3 -4
- package/src/api/info/_methods/delegations.ts +3 -4
- package/src/api/info/_methods/delegatorHistory.ts +3 -4
- package/src/api/info/_methods/delegatorRewards.ts +3 -4
- package/src/api/info/_methods/delegatorSummary.ts +3 -4
- package/src/api/info/_methods/extraAgents.ts +3 -4
- package/src/api/info/_methods/frontendOpenOrders.ts +3 -4
- package/src/api/info/_methods/fundingHistory.ts +4 -7
- package/src/api/info/_methods/historicalOrders.ts +3 -4
- package/src/api/info/_methods/isVip.ts +3 -4
- package/src/api/info/_methods/l2Book.ts +4 -4
- package/src/api/info/_methods/leadingVaults.ts +3 -4
- package/src/api/info/_methods/legalCheck.ts +3 -4
- package/src/api/info/_methods/marginTable.ts +3 -4
- package/src/api/info/_methods/maxBuilderFee.ts +4 -4
- package/src/api/info/_methods/openOrders.ts +3 -4
- package/src/api/info/_methods/orderStatus.ts +4 -4
- package/src/api/info/_methods/outcomeMeta.ts +3 -1
- package/src/api/info/_methods/perpAnnotation.ts +7 -1
- package/src/api/info/_methods/perpConciseAnnotations.ts +74 -0
- package/src/api/info/_methods/perpDexLimits.ts +3 -4
- package/src/api/info/_methods/perpDexStatus.ts +3 -1
- package/src/api/info/_methods/portfolio.ts +3 -4
- package/src/api/info/_methods/preTransferCheck.ts +4 -4
- package/src/api/info/_methods/recentTrades.ts +3 -4
- package/src/api/info/_methods/referral.ts +3 -4
- package/src/api/info/_methods/spotClearinghouseState.ts +3 -4
- package/src/api/info/_methods/spotDeployState.ts +3 -4
- package/src/api/info/_methods/subAccounts.ts +3 -4
- package/src/api/info/_methods/subAccounts2.ts +3 -4
- package/src/api/info/_methods/tokenDetails.ts +3 -4
- package/src/api/info/_methods/twapHistory.ts +3 -4
- package/src/api/info/_methods/txDetails.ts +3 -4
- package/src/api/info/_methods/userAbstraction.ts +3 -4
- package/src/api/info/_methods/userBorrowLendInterest.ts +4 -7
- package/src/api/info/_methods/userDetails.ts +3 -4
- package/src/api/info/_methods/userDexAbstraction.ts +3 -4
- package/src/api/info/_methods/userFees.ts +3 -4
- package/src/api/info/_methods/userFills.ts +3 -4
- package/src/api/info/_methods/userFillsByTime.ts +4 -7
- package/src/api/info/_methods/userFunding.ts +3 -4
- package/src/api/info/_methods/userNonFundingLedgerUpdates.ts +18 -5
- package/src/api/info/_methods/userRateLimit.ts +3 -4
- package/src/api/info/_methods/userRole.ts +3 -4
- package/src/api/info/_methods/userToMultiSigSigners.ts +3 -4
- package/src/api/info/_methods/userTwapSliceFills.ts +3 -4
- package/src/api/info/_methods/userTwapSliceFillsByTime.ts +4 -7
- package/src/api/info/_methods/userVaultEquities.ts +3 -4
- package/src/api/info/_methods/vaultDetails.ts +3 -4
- package/src/api/info/_methods/webData2.ts +3 -4
- package/src/api/info/client.ts +29 -0
- package/src/api/info/mod.ts +1 -0
- package/src/api/subscription/_methods/l2Book.ts +19 -32
- package/src/api/subscription/_methods/spotState.ts +2 -2
- package/src/api/subscription/_methods/userFundings.ts +1 -1
- package/src/signing/_abstractWallet.ts +11 -3
- package/src/transport/websocket/_postRequest.ts +16 -0
- package/src/utils/_format.ts +1 -1
- package/src/utils/mod.ts +1 -1
|
@@ -71,16 +71,16 @@ import { parse } from "../../../_base.js";
|
|
|
71
71
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
72
72
|
import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
|
|
73
73
|
|
|
74
|
-
/** Schema for
|
|
75
|
-
const
|
|
74
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
75
|
+
const ApproveAgentActionSchema = /* @__PURE__ */ (() => {
|
|
76
76
|
return v.omit(
|
|
77
77
|
v.object(ApproveAgentRequest.entries.action.entries),
|
|
78
|
-
["
|
|
78
|
+
["signatureChainId", "hyperliquidChain", "nonce"],
|
|
79
79
|
);
|
|
80
80
|
})();
|
|
81
81
|
|
|
82
82
|
/** Action parameters for the {@linkcode approveAgent} function. */
|
|
83
|
-
export type ApproveAgentParameters = v.InferInput<typeof
|
|
83
|
+
export type ApproveAgentParameters = Omit<v.InferInput<typeof ApproveAgentActionSchema>, "type">;
|
|
84
84
|
|
|
85
85
|
/** Request options for the {@linkcode approveAgent} function. */
|
|
86
86
|
export type ApproveAgentOptions = ExtractRequestOptions<v.InferInput<typeof ApproveAgentRequest>>;
|
|
@@ -119,10 +119,10 @@ export const ApproveAgentTypes = {
|
|
|
119
119
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
120
120
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
121
121
|
*
|
|
122
|
-
* await approveAgent(
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
* );
|
|
122
|
+
* await approveAgent({ transport, wallet }, {
|
|
123
|
+
* agentAddress: "0x...",
|
|
124
|
+
* agentName: "myAgent",
|
|
125
|
+
* });
|
|
126
126
|
* ```
|
|
127
127
|
*
|
|
128
128
|
* @example With expiration timestamp
|
|
@@ -135,13 +135,10 @@ export const ApproveAgentTypes = {
|
|
|
135
135
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
136
136
|
*
|
|
137
137
|
* const expirationTimestamp = Date.now() + 24 * 60 * 60 * 1000; // 24 hours from now
|
|
138
|
-
* await approveAgent(
|
|
139
|
-
*
|
|
140
|
-
* {
|
|
141
|
-
*
|
|
142
|
-
* agentName: `myAgent valid_until ${expirationTimestamp}`,
|
|
143
|
-
* },
|
|
144
|
-
* );
|
|
138
|
+
* await approveAgent({ transport, wallet }, {
|
|
139
|
+
* agentAddress: "0x...",
|
|
140
|
+
* agentName: `myAgent valid_until ${expirationTimestamp}`,
|
|
141
|
+
* });
|
|
145
142
|
* ```
|
|
146
143
|
*
|
|
147
144
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#approve-an-api-wallet
|
|
@@ -151,11 +148,6 @@ export function approveAgent(
|
|
|
151
148
|
params: ApproveAgentParameters,
|
|
152
149
|
opts?: ApproveAgentOptions,
|
|
153
150
|
): Promise<ApproveAgentSuccessResponse> {
|
|
154
|
-
const action = parse(
|
|
155
|
-
return executeUserSignedAction(
|
|
156
|
-
config,
|
|
157
|
-
{ type: "approveAgent", ...action },
|
|
158
|
-
ApproveAgentTypes,
|
|
159
|
-
opts,
|
|
160
|
-
);
|
|
151
|
+
const action = parse(ApproveAgentActionSchema, { type: "approveAgent", ...params });
|
|
152
|
+
return executeUserSignedAction(config, action, ApproveAgentTypes, opts);
|
|
161
153
|
}
|
|
@@ -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 ApproveBuilderFeeActionSchema = /* @__PURE__ */ (() => {
|
|
60
60
|
return v.omit(
|
|
61
61
|
v.object(ApproveBuilderFeeRequest.entries.action.entries),
|
|
62
|
-
["
|
|
62
|
+
["signatureChainId", "hyperliquidChain", "nonce"],
|
|
63
63
|
);
|
|
64
64
|
})();
|
|
65
65
|
|
|
66
66
|
/** Action parameters for the {@linkcode approveBuilderFee} function. */
|
|
67
|
-
export type ApproveBuilderFeeParameters = v.InferInput<typeof
|
|
67
|
+
export type ApproveBuilderFeeParameters = Omit<v.InferInput<typeof ApproveBuilderFeeActionSchema>, "type">;
|
|
68
68
|
|
|
69
69
|
/** Request options for the {@linkcode approveBuilderFee} function. */
|
|
70
70
|
export type ApproveBuilderFeeOptions = ExtractRequestOptions<v.InferInput<typeof ApproveBuilderFeeRequest>>;
|
|
@@ -103,10 +103,10 @@ export const ApproveBuilderFeeTypes = {
|
|
|
103
103
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
104
104
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
105
105
|
*
|
|
106
|
-
* await approveBuilderFee(
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* );
|
|
106
|
+
* await approveBuilderFee({ transport, wallet }, {
|
|
107
|
+
* maxFeeRate: "0.01%",
|
|
108
|
+
* builder: "0x...",
|
|
109
|
+
* });
|
|
110
110
|
* ```
|
|
111
111
|
*
|
|
112
112
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#approve-a-builder-fee
|
|
@@ -116,11 +116,6 @@ export function approveBuilderFee(
|
|
|
116
116
|
params: ApproveBuilderFeeParameters,
|
|
117
117
|
opts?: ApproveBuilderFeeOptions,
|
|
118
118
|
): Promise<ApproveBuilderFeeSuccessResponse> {
|
|
119
|
-
const action = parse(
|
|
120
|
-
return executeUserSignedAction(
|
|
121
|
-
config,
|
|
122
|
-
{ type: "approveBuilderFee", ...action },
|
|
123
|
-
ApproveBuilderFeeTypes,
|
|
124
|
-
opts,
|
|
125
|
-
);
|
|
119
|
+
const action = parse(ApproveBuilderFeeActionSchema, { type: "approveBuilderFee", ...params });
|
|
120
|
+
return executeUserSignedAction(config, action, ApproveBuilderFeeTypes, opts);
|
|
126
121
|
}
|
|
@@ -100,16 +100,13 @@ import { parse } from "../../../_base.js";
|
|
|
100
100
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
101
101
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
102
102
|
|
|
103
|
-
/** Schema for
|
|
104
|
-
const
|
|
105
|
-
return v.
|
|
106
|
-
v.object(BatchModifyRequest.entries.action.entries),
|
|
107
|
-
["type"],
|
|
108
|
-
);
|
|
103
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
104
|
+
const BatchModifyActionSchema = /* @__PURE__ */ (() => {
|
|
105
|
+
return v.object(BatchModifyRequest.entries.action.entries);
|
|
109
106
|
})();
|
|
110
107
|
|
|
111
108
|
/** Action parameters for the {@linkcode batchModify} function. */
|
|
112
|
-
export type BatchModifyParameters = v.InferInput<typeof
|
|
109
|
+
export type BatchModifyParameters = Omit<v.InferInput<typeof BatchModifyActionSchema>, "type">;
|
|
113
110
|
|
|
114
111
|
/** Request options for the {@linkcode batchModify} function. */
|
|
115
112
|
export type BatchModifyOptions = ExtractRequestOptions<v.InferInput<typeof BatchModifyRequest>>;
|
|
@@ -138,24 +135,21 @@ export type BatchModifySuccessResponse = ExcludeErrorResponse<BatchModifyRespons
|
|
|
138
135
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
139
136
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
140
137
|
*
|
|
141
|
-
* const data = await batchModify(
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
* {
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
152
|
-
* r: false,
|
|
153
|
-
* t: { limit: { tif: "Gtc" } },
|
|
154
|
-
* },
|
|
138
|
+
* const data = await batchModify({ transport, wallet }, {
|
|
139
|
+
* modifies: [
|
|
140
|
+
* {
|
|
141
|
+
* oid: 123,
|
|
142
|
+
* order: {
|
|
143
|
+
* a: 0,
|
|
144
|
+
* b: true,
|
|
145
|
+
* p: "31000",
|
|
146
|
+
* s: "0.2",
|
|
147
|
+
* r: false,
|
|
148
|
+
* t: { limit: { tif: "Gtc" } },
|
|
155
149
|
* },
|
|
156
|
-
*
|
|
157
|
-
*
|
|
158
|
-
* );
|
|
150
|
+
* },
|
|
151
|
+
* ],
|
|
152
|
+
* });
|
|
159
153
|
* ```
|
|
160
154
|
*
|
|
161
155
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-multiple-orders
|
|
@@ -165,6 +159,6 @@ export function batchModify(
|
|
|
165
159
|
params: BatchModifyParameters,
|
|
166
160
|
opts?: BatchModifyOptions,
|
|
167
161
|
): Promise<BatchModifySuccessResponse> {
|
|
168
|
-
const action = parse(
|
|
169
|
-
return executeL1Action(config,
|
|
162
|
+
const action = parse(BatchModifyActionSchema, { type: "batchModify", ...params });
|
|
163
|
+
return executeL1Action(config, action, opts);
|
|
170
164
|
}
|
|
@@ -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(BorrowLendRequest.entries.action.entries),
|
|
57
|
-
["type"],
|
|
58
|
-
);
|
|
53
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
54
|
+
const BorrowLendActionSchema = /* @__PURE__ */ (() => {
|
|
55
|
+
return v.object(BorrowLendRequest.entries.action.entries);
|
|
59
56
|
})();
|
|
60
57
|
|
|
61
58
|
/** Action parameters for the {@linkcode borrowLend} function. */
|
|
62
|
-
export type BorrowLendParameters = v.InferInput<typeof
|
|
59
|
+
export type BorrowLendParameters = Omit<v.InferInput<typeof BorrowLendActionSchema>, "type">;
|
|
63
60
|
|
|
64
61
|
/** Request options for the {@linkcode borrowLend} function. */
|
|
65
62
|
export type BorrowLendOptions = ExtractRequestOptions<v.InferInput<typeof BorrowLendRequest>>;
|
|
@@ -88,10 +85,11 @@ export type BorrowLendSuccessResponse = ExcludeErrorResponse<BorrowLendResponse>
|
|
|
88
85
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
89
86
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
90
87
|
*
|
|
91
|
-
* await borrowLend(
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
88
|
+
* await borrowLend({ transport, wallet }, {
|
|
89
|
+
* operation: "supply",
|
|
90
|
+
* token: 0,
|
|
91
|
+
* amount: "20",
|
|
92
|
+
* });
|
|
95
93
|
* ```
|
|
96
94
|
*
|
|
97
95
|
* @see null
|
|
@@ -101,6 +99,6 @@ export function borrowLend(
|
|
|
101
99
|
params: BorrowLendParameters,
|
|
102
100
|
opts?: BorrowLendOptions,
|
|
103
101
|
): Promise<BorrowLendSuccessResponse> {
|
|
104
|
-
const action = parse(
|
|
105
|
-
return executeL1Action(config,
|
|
102
|
+
const action = parse(BorrowLendActionSchema, { type: "borrowLend", ...params });
|
|
103
|
+
return executeL1Action(config, action, opts);
|
|
106
104
|
}
|
|
@@ -53,16 +53,16 @@ import { parse } from "../../../_base.js";
|
|
|
53
53
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
54
54
|
import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
|
|
55
55
|
|
|
56
|
-
/** Schema for
|
|
57
|
-
const
|
|
56
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
57
|
+
const CDepositActionSchema = /* @__PURE__ */ (() => {
|
|
58
58
|
return v.omit(
|
|
59
59
|
v.object(CDepositRequest.entries.action.entries),
|
|
60
|
-
["
|
|
60
|
+
["signatureChainId", "hyperliquidChain", "nonce"],
|
|
61
61
|
);
|
|
62
62
|
})();
|
|
63
63
|
|
|
64
64
|
/** Action parameters for the {@linkcode cDeposit} function. */
|
|
65
|
-
export type CDepositParameters = v.InferInput<typeof
|
|
65
|
+
export type CDepositParameters = Omit<v.InferInput<typeof CDepositActionSchema>, "type">;
|
|
66
66
|
|
|
67
67
|
/** Request options for the {@linkcode cDeposit} function. */
|
|
68
68
|
export type CDepositOptions = ExtractRequestOptions<v.InferInput<typeof CDepositRequest>>;
|
|
@@ -100,10 +100,9 @@ export const CDepositTypes = {
|
|
|
100
100
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
101
101
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
102
102
|
*
|
|
103
|
-
* await cDeposit(
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
* );
|
|
103
|
+
* await cDeposit({ transport, wallet }, {
|
|
104
|
+
* wei: 1 * 1e8,
|
|
105
|
+
* });
|
|
107
106
|
* ```
|
|
108
107
|
*
|
|
109
108
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#deposit-into-staking
|
|
@@ -113,11 +112,6 @@ export function cDeposit(
|
|
|
113
112
|
params: CDepositParameters,
|
|
114
113
|
opts?: CDepositOptions,
|
|
115
114
|
): Promise<CDepositSuccessResponse> {
|
|
116
|
-
const action = parse(
|
|
117
|
-
return executeUserSignedAction(
|
|
118
|
-
config,
|
|
119
|
-
{ type: "cDeposit", ...action },
|
|
120
|
-
CDepositTypes,
|
|
121
|
-
opts,
|
|
122
|
-
);
|
|
115
|
+
const action = parse(CDepositActionSchema, { type: "cDeposit", ...params });
|
|
116
|
+
return executeUserSignedAction(config, action, CDepositTypes, opts);
|
|
123
117
|
}
|
|
@@ -52,15 +52,15 @@ import { parse } from "../../../_base.js";
|
|
|
52
52
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
53
53
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
54
54
|
|
|
55
|
-
/** Schema for
|
|
56
|
-
const
|
|
57
|
-
return v.
|
|
58
|
-
CSignerActionRequest.entries.action.options.map((option) => v.omit(option, ["type"])),
|
|
59
|
-
);
|
|
55
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
56
|
+
const CSignerActionActionSchema = /* @__PURE__ */ (() => {
|
|
57
|
+
return v.variant("type", CSignerActionRequest.entries.action.options);
|
|
60
58
|
})();
|
|
61
59
|
|
|
62
60
|
/** Action parameters for the {@linkcode cSignerAction} function. */
|
|
63
|
-
export type CSignerActionParameters = v.InferInput<typeof
|
|
61
|
+
export type CSignerActionParameters = v.InferInput<typeof CSignerActionActionSchema> extends infer T
|
|
62
|
+
? T extends unknown ? { [K in Exclude<keyof T, "type">]: T[K] } : never
|
|
63
|
+
: never;
|
|
64
64
|
|
|
65
65
|
/** Request options for the {@linkcode cSignerAction} function. */
|
|
66
66
|
export type CSignerActionOptions = ExtractRequestOptions<v.InferInput<typeof CSignerActionRequest>>;
|
|
@@ -89,10 +89,9 @@ export type CSignerActionSuccessResponse = ExcludeErrorResponse<CSignerActionRes
|
|
|
89
89
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
90
90
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
91
91
|
*
|
|
92
|
-
* await cSignerAction(
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* );
|
|
92
|
+
* await cSignerAction({ transport, wallet }, {
|
|
93
|
+
* jailSelf: null,
|
|
94
|
+
* });
|
|
96
95
|
* ```
|
|
97
96
|
*
|
|
98
97
|
* @example Unjail self
|
|
@@ -104,10 +103,9 @@ export type CSignerActionSuccessResponse = ExcludeErrorResponse<CSignerActionRes
|
|
|
104
103
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
105
104
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
106
105
|
*
|
|
107
|
-
* await cSignerAction(
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* );
|
|
106
|
+
* await cSignerAction({ transport, wallet }, {
|
|
107
|
+
* unjailSelf: null,
|
|
108
|
+
* });
|
|
111
109
|
* ```
|
|
112
110
|
*
|
|
113
111
|
* @see null
|
|
@@ -117,6 +115,6 @@ export function cSignerAction(
|
|
|
117
115
|
params: CSignerActionParameters,
|
|
118
116
|
opts?: CSignerActionOptions,
|
|
119
117
|
): Promise<CSignerActionSuccessResponse> {
|
|
120
|
-
const action = parse(
|
|
121
|
-
return executeL1Action(config,
|
|
118
|
+
const action = parse(CSignerActionActionSchema, { type: "CSignerAction", ...params });
|
|
119
|
+
return executeL1Action(config, action, opts);
|
|
122
120
|
}
|
|
@@ -101,15 +101,15 @@ import { parse } from "../../../_base.js";
|
|
|
101
101
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
102
102
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
103
103
|
|
|
104
|
-
/** Schema for
|
|
105
|
-
const
|
|
106
|
-
return v.
|
|
107
|
-
CValidatorActionRequest.entries.action.options.map((option) => v.omit(option, ["type"])),
|
|
108
|
-
);
|
|
104
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
105
|
+
const CValidatorActionActionSchema = /* @__PURE__ */ (() => {
|
|
106
|
+
return v.variant("type", CValidatorActionRequest.entries.action.options);
|
|
109
107
|
})();
|
|
110
108
|
|
|
111
109
|
/** Action parameters for the {@linkcode cValidatorAction} function. */
|
|
112
|
-
export type CValidatorActionParameters = v.InferInput<typeof
|
|
110
|
+
export type CValidatorActionParameters = v.InferInput<typeof CValidatorActionActionSchema> extends infer T
|
|
111
|
+
? T extends unknown ? { [K in Exclude<keyof T, "type">]: T[K] } : never
|
|
112
|
+
: never;
|
|
113
113
|
|
|
114
114
|
/** Request options for the {@linkcode cValidatorAction} function. */
|
|
115
115
|
export type CValidatorActionOptions = ExtractRequestOptions<v.InferInput<typeof CValidatorActionRequest>>;
|
|
@@ -138,20 +138,17 @@ export type CValidatorActionSuccessResponse = ExcludeErrorResponse<CValidatorAct
|
|
|
138
138
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
139
139
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
140
140
|
*
|
|
141
|
-
* await cValidatorAction(
|
|
142
|
-
* {
|
|
143
|
-
*
|
|
144
|
-
*
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
148
|
-
*
|
|
149
|
-
*
|
|
150
|
-
* commission_bps: null,
|
|
151
|
-
* signer: null,
|
|
152
|
-
* },
|
|
141
|
+
* await cValidatorAction({ transport, wallet }, {
|
|
142
|
+
* changeProfile: {
|
|
143
|
+
* node_ip: { Ip: "1.2.3.4" },
|
|
144
|
+
* name: "...",
|
|
145
|
+
* description: "...",
|
|
146
|
+
* unjailed: true,
|
|
147
|
+
* disable_delegations: false,
|
|
148
|
+
* commission_bps: null,
|
|
149
|
+
* signer: null,
|
|
153
150
|
* },
|
|
154
|
-
* );
|
|
151
|
+
* });
|
|
155
152
|
* ```
|
|
156
153
|
*
|
|
157
154
|
* @see null
|
|
@@ -161,6 +158,6 @@ export function cValidatorAction(
|
|
|
161
158
|
params: CValidatorActionParameters,
|
|
162
159
|
opts?: CValidatorActionOptions,
|
|
163
160
|
): Promise<CValidatorActionSuccessResponse> {
|
|
164
|
-
const action = parse(
|
|
165
|
-
return executeL1Action(config,
|
|
161
|
+
const action = parse(CValidatorActionActionSchema, { type: "CValidatorAction", ...params });
|
|
162
|
+
return executeL1Action(config, action, opts);
|
|
166
163
|
}
|
|
@@ -53,16 +53,16 @@ import { parse } from "../../../_base.js";
|
|
|
53
53
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
54
54
|
import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
|
|
55
55
|
|
|
56
|
-
/** Schema for
|
|
57
|
-
const
|
|
56
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
57
|
+
const CWithdrawActionSchema = /* @__PURE__ */ (() => {
|
|
58
58
|
return v.omit(
|
|
59
59
|
v.object(CWithdrawRequest.entries.action.entries),
|
|
60
|
-
["
|
|
60
|
+
["signatureChainId", "hyperliquidChain", "nonce"],
|
|
61
61
|
);
|
|
62
62
|
})();
|
|
63
63
|
|
|
64
64
|
/** Action parameters for the {@linkcode cWithdraw} function. */
|
|
65
|
-
export type CWithdrawParameters = v.InferInput<typeof
|
|
65
|
+
export type CWithdrawParameters = Omit<v.InferInput<typeof CWithdrawActionSchema>, "type">;
|
|
66
66
|
|
|
67
67
|
/** Request options for the {@linkcode cWithdraw} function. */
|
|
68
68
|
export type CWithdrawOptions = ExtractRequestOptions<v.InferInput<typeof CWithdrawRequest>>;
|
|
@@ -100,10 +100,9 @@ export const CWithdrawTypes = {
|
|
|
100
100
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
101
101
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
102
102
|
*
|
|
103
|
-
* await cWithdraw(
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
* );
|
|
103
|
+
* await cWithdraw({ transport, wallet }, {
|
|
104
|
+
* wei: 1 * 1e8,
|
|
105
|
+
* });
|
|
107
106
|
* ```
|
|
108
107
|
*
|
|
109
108
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#withdraw-from-staking
|
|
@@ -113,11 +112,6 @@ export function cWithdraw(
|
|
|
113
112
|
params: CWithdrawParameters,
|
|
114
113
|
opts?: CWithdrawOptions,
|
|
115
114
|
): Promise<CWithdrawSuccessResponse> {
|
|
116
|
-
const action = parse(
|
|
117
|
-
return executeUserSignedAction(
|
|
118
|
-
config,
|
|
119
|
-
{ type: "cWithdraw", ...action },
|
|
120
|
-
CWithdrawTypes,
|
|
121
|
-
opts,
|
|
122
|
-
);
|
|
115
|
+
const action = parse(CWithdrawActionSchema, { type: "cWithdraw", ...params });
|
|
116
|
+
return executeUserSignedAction(config, action, CWithdrawTypes, opts);
|
|
123
117
|
}
|
|
@@ -69,16 +69,13 @@ import { parse } from "../../../_base.js";
|
|
|
69
69
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
70
70
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
71
71
|
|
|
72
|
-
/** Schema for
|
|
73
|
-
const
|
|
74
|
-
return v.
|
|
75
|
-
v.object(CancelRequest.entries.action.entries),
|
|
76
|
-
["type"],
|
|
77
|
-
);
|
|
72
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
73
|
+
const CancelActionSchema = /* @__PURE__ */ (() => {
|
|
74
|
+
return v.object(CancelRequest.entries.action.entries);
|
|
78
75
|
})();
|
|
79
76
|
|
|
80
77
|
/** Action parameters for the {@linkcode cancel} function. */
|
|
81
|
-
export type CancelParameters = v.InferInput<typeof
|
|
78
|
+
export type CancelParameters = Omit<v.InferInput<typeof CancelActionSchema>, "type">;
|
|
82
79
|
|
|
83
80
|
/** Request options for the {@linkcode cancel} function. */
|
|
84
81
|
export type CancelOptions = ExtractRequestOptions<v.InferInput<typeof CancelRequest>>;
|
|
@@ -107,10 +104,9 @@ export type CancelSuccessResponse = ExcludeErrorResponse<CancelResponse>;
|
|
|
107
104
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
108
105
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
109
106
|
*
|
|
110
|
-
* await cancel(
|
|
111
|
-
* {
|
|
112
|
-
*
|
|
113
|
-
* );
|
|
107
|
+
* await cancel({ transport, wallet }, {
|
|
108
|
+
* cancels: [{ a: 0, o: 123 }],
|
|
109
|
+
* });
|
|
114
110
|
* ```
|
|
115
111
|
*
|
|
116
112
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-order-s
|
|
@@ -120,6 +116,6 @@ export function cancel(
|
|
|
120
116
|
params: CancelParameters,
|
|
121
117
|
opts?: CancelOptions,
|
|
122
118
|
): Promise<CancelSuccessResponse> {
|
|
123
|
-
const action = parse(
|
|
124
|
-
return executeL1Action(config,
|
|
119
|
+
const action = parse(CancelActionSchema, { type: "cancel", ...params });
|
|
120
|
+
return executeL1Action(config, action, opts);
|
|
125
121
|
}
|
|
@@ -54,16 +54,13 @@ import { parse } from "../../../_base.js";
|
|
|
54
54
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
55
55
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
56
56
|
|
|
57
|
-
/** Schema for
|
|
58
|
-
const
|
|
59
|
-
return v.
|
|
60
|
-
v.object(CancelByCloidRequest.entries.action.entries),
|
|
61
|
-
["type"],
|
|
62
|
-
);
|
|
57
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
58
|
+
const CancelByCloidActionSchema = /* @__PURE__ */ (() => {
|
|
59
|
+
return v.object(CancelByCloidRequest.entries.action.entries);
|
|
63
60
|
})();
|
|
64
61
|
|
|
65
62
|
/** Action parameters for the {@linkcode cancelByCloid} function. */
|
|
66
|
-
export type CancelByCloidParameters = v.InferInput<typeof
|
|
63
|
+
export type CancelByCloidParameters = Omit<v.InferInput<typeof CancelByCloidActionSchema>, "type">;
|
|
67
64
|
|
|
68
65
|
/** Request options for the {@linkcode cancelByCloid} function. */
|
|
69
66
|
export type CancelByCloidOptions = ExtractRequestOptions<v.InferInput<typeof CancelByCloidRequest>>;
|
|
@@ -92,14 +89,11 @@ export type CancelByCloidSuccessResponse = ExcludeErrorResponse<CancelByCloidRes
|
|
|
92
89
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
93
90
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
94
91
|
*
|
|
95
|
-
* await cancelByCloid(
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* ],
|
|
101
|
-
* },
|
|
102
|
-
* );
|
|
92
|
+
* await cancelByCloid({ transport, wallet }, {
|
|
93
|
+
* cancels: [
|
|
94
|
+
* { asset: 0, cloid: "0x..." },
|
|
95
|
+
* ],
|
|
96
|
+
* });
|
|
103
97
|
* ```
|
|
104
98
|
*
|
|
105
99
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#cancel-order-s-by-cloid
|
|
@@ -109,6 +103,6 @@ export function cancelByCloid(
|
|
|
109
103
|
params: CancelByCloidParameters,
|
|
110
104
|
opts?: CancelByCloidOptions,
|
|
111
105
|
): Promise<CancelByCloidSuccessResponse> {
|
|
112
|
-
const action = parse(
|
|
113
|
-
return executeL1Action(config,
|
|
106
|
+
const action = parse(CancelByCloidActionSchema, { type: "cancelByCloid", ...params });
|
|
107
|
+
return executeL1Action(config, action, opts);
|
|
114
108
|
}
|
|
@@ -38,9 +38,15 @@ export type ClaimRewardsResponse = SuccessResponse | ErrorResponse;
|
|
|
38
38
|
// Execution Logic
|
|
39
39
|
// ============================================================
|
|
40
40
|
|
|
41
|
+
import { parse } from "../../../_base.js";
|
|
41
42
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
42
43
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
43
44
|
|
|
45
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
46
|
+
const ClaimRewardsActionSchema = /* @__PURE__ */ (() => {
|
|
47
|
+
return v.object(ClaimRewardsRequest.entries.action.entries);
|
|
48
|
+
})();
|
|
49
|
+
|
|
44
50
|
/** Request options for the {@linkcode claimRewards} function. */
|
|
45
51
|
export type ClaimRewardsOptions = ExtractRequestOptions<v.InferInput<typeof ClaimRewardsRequest>>;
|
|
46
52
|
|
|
@@ -76,5 +82,6 @@ export function claimRewards(
|
|
|
76
82
|
config: ExchangeConfig,
|
|
77
83
|
opts?: ClaimRewardsOptions,
|
|
78
84
|
): Promise<ClaimRewardsSuccessResponse> {
|
|
79
|
-
|
|
85
|
+
const action = parse(ClaimRewardsActionSchema, { type: "claimRewards" });
|
|
86
|
+
return executeL1Action(config, action, opts);
|
|
80
87
|
}
|
|
@@ -81,16 +81,16 @@ import { parse } from "../../../_base.js";
|
|
|
81
81
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
82
82
|
import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
|
|
83
83
|
|
|
84
|
-
/** Schema for
|
|
85
|
-
const
|
|
84
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
85
|
+
const ConvertToMultiSigUserActionSchema = /* @__PURE__ */ (() => {
|
|
86
86
|
return v.omit(
|
|
87
87
|
v.object(ConvertToMultiSigUserRequest.entries.action.entries),
|
|
88
|
-
["
|
|
88
|
+
["signatureChainId", "hyperliquidChain", "nonce"],
|
|
89
89
|
);
|
|
90
90
|
})();
|
|
91
91
|
|
|
92
92
|
/** Action parameters for the {@linkcode convertToMultiSigUser} function. */
|
|
93
|
-
export type ConvertToMultiSigUserParameters = v.InferInput<typeof
|
|
93
|
+
export type ConvertToMultiSigUserParameters = Omit<v.InferInput<typeof ConvertToMultiSigUserActionSchema>, "type">;
|
|
94
94
|
|
|
95
95
|
/** Request options for the {@linkcode convertToMultiSigUser} function. */
|
|
96
96
|
export type ConvertToMultiSigUserOptions = ExtractRequestOptions<v.InferInput<typeof ConvertToMultiSigUserRequest>>;
|
|
@@ -128,15 +128,12 @@ export const ConvertToMultiSigUserTypes = {
|
|
|
128
128
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
129
129
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
130
130
|
*
|
|
131
|
-
* await convertToMultiSigUser(
|
|
132
|
-
* {
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
* authorizedUsers: ["0x...", "0x...", "0x..."],
|
|
136
|
-
* threshold: 2,
|
|
137
|
-
* },
|
|
131
|
+
* await convertToMultiSigUser({ transport, wallet }, {
|
|
132
|
+
* signers: {
|
|
133
|
+
* authorizedUsers: ["0x...", "0x...", "0x..."],
|
|
134
|
+
* threshold: 2,
|
|
138
135
|
* },
|
|
139
|
-
* );
|
|
136
|
+
* });
|
|
140
137
|
* ```
|
|
141
138
|
*
|
|
142
139
|
* @example Convert to single-sig user
|
|
@@ -148,10 +145,9 @@ export const ConvertToMultiSigUserTypes = {
|
|
|
148
145
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
149
146
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
150
147
|
*
|
|
151
|
-
* await convertToMultiSigUser(
|
|
152
|
-
*
|
|
153
|
-
*
|
|
154
|
-
* );
|
|
148
|
+
* await convertToMultiSigUser({ transport, wallet }, {
|
|
149
|
+
* signers: null,
|
|
150
|
+
* });
|
|
155
151
|
* ```
|
|
156
152
|
*
|
|
157
153
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/hypercore/multi-sig
|
|
@@ -161,11 +157,6 @@ export function convertToMultiSigUser(
|
|
|
161
157
|
params: ConvertToMultiSigUserParameters,
|
|
162
158
|
opts?: ConvertToMultiSigUserOptions,
|
|
163
159
|
): Promise<ConvertToMultiSigUserSuccessResponse> {
|
|
164
|
-
const action = parse(
|
|
165
|
-
return executeUserSignedAction(
|
|
166
|
-
config,
|
|
167
|
-
{ type: "convertToMultiSigUser", ...action },
|
|
168
|
-
ConvertToMultiSigUserTypes,
|
|
169
|
-
opts,
|
|
170
|
-
);
|
|
160
|
+
const action = parse(ConvertToMultiSigUserActionSchema, { type: "convertToMultiSigUser", ...params });
|
|
161
|
+
return executeUserSignedAction(config, action, ConvertToMultiSigUserTypes, opts);
|
|
171
162
|
}
|