@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
|
@@ -57,16 +57,13 @@ import { parse } from "../../../_base.js";
|
|
|
57
57
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
58
58
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
59
59
|
|
|
60
|
-
/** Schema for
|
|
61
|
-
const
|
|
62
|
-
return v.
|
|
63
|
-
v.object(CreateSubAccountRequest.entries.action.entries),
|
|
64
|
-
["type"],
|
|
65
|
-
);
|
|
60
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
61
|
+
const CreateSubAccountActionSchema = /* @__PURE__ */ (() => {
|
|
62
|
+
return v.object(CreateSubAccountRequest.entries.action.entries);
|
|
66
63
|
})();
|
|
67
64
|
|
|
68
65
|
/** Action parameters for the {@linkcode createSubAccount} function. */
|
|
69
|
-
export type CreateSubAccountParameters = v.InferInput<typeof
|
|
66
|
+
export type CreateSubAccountParameters = Omit<v.InferInput<typeof CreateSubAccountActionSchema>, "type">;
|
|
70
67
|
|
|
71
68
|
/** Request options for the {@linkcode createSubAccount} function. */
|
|
72
69
|
export type CreateSubAccountOptions = ExtractRequestOptions<v.InferInput<typeof CreateSubAccountRequest>>;
|
|
@@ -95,10 +92,9 @@ export type CreateSubAccountSuccessResponse = ExcludeErrorResponse<CreateSubAcco
|
|
|
95
92
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
96
93
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
97
94
|
*
|
|
98
|
-
* const data = await createSubAccount(
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* );
|
|
95
|
+
* const data = await createSubAccount({ transport, wallet }, {
|
|
96
|
+
* name: "...",
|
|
97
|
+
* });
|
|
102
98
|
* ```
|
|
103
99
|
*
|
|
104
100
|
* @see null
|
|
@@ -108,6 +104,6 @@ export function createSubAccount(
|
|
|
108
104
|
params: CreateSubAccountParameters,
|
|
109
105
|
opts?: CreateSubAccountOptions,
|
|
110
106
|
): Promise<CreateSubAccountSuccessResponse> {
|
|
111
|
-
const action = parse(
|
|
112
|
-
return executeL1Action(config,
|
|
107
|
+
const action = parse(CreateSubAccountActionSchema, { type: "createSubAccount", ...params });
|
|
108
|
+
return executeL1Action(config, action, opts);
|
|
113
109
|
}
|
|
@@ -63,16 +63,13 @@ import { parse } from "../../../_base.js";
|
|
|
63
63
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
64
64
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
65
65
|
|
|
66
|
-
/** Schema for
|
|
67
|
-
const
|
|
68
|
-
return v.
|
|
69
|
-
v.object(CreateVaultRequest.entries.action.entries),
|
|
70
|
-
["type"],
|
|
71
|
-
);
|
|
66
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
67
|
+
const CreateVaultActionSchema = /* @__PURE__ */ (() => {
|
|
68
|
+
return v.object(CreateVaultRequest.entries.action.entries);
|
|
72
69
|
})();
|
|
73
70
|
|
|
74
71
|
/** Action parameters for the {@linkcode createVault} function. */
|
|
75
|
-
export type CreateVaultParameters = v.InferInput<typeof
|
|
72
|
+
export type CreateVaultParameters = Omit<v.InferInput<typeof CreateVaultActionSchema>, "type">;
|
|
76
73
|
|
|
77
74
|
/** Request options for the {@linkcode createVault} function. */
|
|
78
75
|
export type CreateVaultOptions = ExtractRequestOptions<v.InferInput<typeof CreateVaultRequest>>;
|
|
@@ -101,15 +98,12 @@ export type CreateVaultSuccessResponse = ExcludeErrorResponse<CreateVaultRespons
|
|
|
101
98
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
102
99
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
103
100
|
*
|
|
104
|
-
* const data = await createVault(
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
* nonce: Date.now(),
|
|
111
|
-
* },
|
|
112
|
-
* );
|
|
101
|
+
* const data = await createVault({ transport, wallet }, {
|
|
102
|
+
* name: "...",
|
|
103
|
+
* description: "...",
|
|
104
|
+
* initialUsd: 100 * 1e6,
|
|
105
|
+
* nonce: Date.now(),
|
|
106
|
+
* });
|
|
113
107
|
* ```
|
|
114
108
|
*
|
|
115
109
|
* @see null
|
|
@@ -119,6 +113,6 @@ export function createVault(
|
|
|
119
113
|
params: CreateVaultParameters,
|
|
120
114
|
opts?: CreateVaultOptions,
|
|
121
115
|
): Promise<CreateVaultSuccessResponse> {
|
|
122
|
-
const action = parse(
|
|
123
|
-
return executeL1Action(config,
|
|
116
|
+
const action = parse(CreateVaultActionSchema, { type: "createVault", ...params });
|
|
117
|
+
return executeL1Action(config, action, opts);
|
|
124
118
|
}
|
|
@@ -44,16 +44,13 @@ import { parse } from "../../../_base.js";
|
|
|
44
44
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
45
45
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
46
46
|
|
|
47
|
-
/** Schema for
|
|
48
|
-
const
|
|
49
|
-
return v.
|
|
50
|
-
v.object(EvmUserModifyRequest.entries.action.entries),
|
|
51
|
-
["type"],
|
|
52
|
-
);
|
|
47
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
48
|
+
const EvmUserModifyActionSchema = /* @__PURE__ */ (() => {
|
|
49
|
+
return v.object(EvmUserModifyRequest.entries.action.entries);
|
|
53
50
|
})();
|
|
54
51
|
|
|
55
52
|
/** Action parameters for the {@linkcode evmUserModify} function. */
|
|
56
|
-
export type EvmUserModifyParameters = v.InferInput<typeof
|
|
53
|
+
export type EvmUserModifyParameters = Omit<v.InferInput<typeof EvmUserModifyActionSchema>, "type">;
|
|
57
54
|
|
|
58
55
|
/** Request options for the {@linkcode evmUserModify} function. */
|
|
59
56
|
export type EvmUserModifyOptions = ExtractRequestOptions<v.InferInput<typeof EvmUserModifyRequest>>;
|
|
@@ -82,10 +79,9 @@ export type EvmUserModifySuccessResponse = ExcludeErrorResponse<EvmUserModifyRes
|
|
|
82
79
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
83
80
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
84
81
|
*
|
|
85
|
-
* await evmUserModify(
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* );
|
|
82
|
+
* await evmUserModify({ transport, wallet }, {
|
|
83
|
+
* usingBigBlocks: true,
|
|
84
|
+
* });
|
|
89
85
|
* ```
|
|
90
86
|
*
|
|
91
87
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/hyperevm/dual-block-architecture
|
|
@@ -95,6 +91,6 @@ export function evmUserModify(
|
|
|
95
91
|
params: EvmUserModifyParameters,
|
|
96
92
|
opts?: EvmUserModifyOptions,
|
|
97
93
|
): Promise<EvmUserModifySuccessResponse> {
|
|
98
|
-
const action = parse(
|
|
99
|
-
return executeL1Action(config,
|
|
94
|
+
const action = parse(EvmUserModifyActionSchema, { type: "evmUserModify", ...params });
|
|
95
|
+
return executeL1Action(config, action, opts);
|
|
100
96
|
}
|
|
@@ -63,16 +63,16 @@ import { parse } from "../../../_base.js";
|
|
|
63
63
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
64
64
|
import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
|
|
65
65
|
|
|
66
|
-
/** Schema for
|
|
67
|
-
const
|
|
66
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
67
|
+
const LinkStakingUserActionSchema = /* @__PURE__ */ (() => {
|
|
68
68
|
return v.omit(
|
|
69
69
|
v.object(LinkStakingUserRequest.entries.action.entries),
|
|
70
|
-
["
|
|
70
|
+
["signatureChainId", "hyperliquidChain", "nonce"],
|
|
71
71
|
);
|
|
72
72
|
})();
|
|
73
73
|
|
|
74
74
|
/** Action parameters for the {@linkcode linkStakingUser} function. */
|
|
75
|
-
export type LinkStakingUserParameters = v.InferInput<typeof
|
|
75
|
+
export type LinkStakingUserParameters = Omit<v.InferInput<typeof LinkStakingUserActionSchema>, "type">;
|
|
76
76
|
|
|
77
77
|
/** Request options for the {@linkcode linkStakingUser} function. */
|
|
78
78
|
export type LinkStakingUserOptions = ExtractRequestOptions<v.InferInput<typeof LinkStakingUserRequest>>;
|
|
@@ -111,10 +111,10 @@ export const LinkStakingUserTypes = {
|
|
|
111
111
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
112
112
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
113
113
|
*
|
|
114
|
-
* await linkStakingUser(
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
* );
|
|
114
|
+
* await linkStakingUser({ transport, wallet }, {
|
|
115
|
+
* user: "0x...",
|
|
116
|
+
* isFinalize: false,
|
|
117
|
+
* });
|
|
118
118
|
* ```
|
|
119
119
|
*
|
|
120
120
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees#staking-linking
|
|
@@ -124,11 +124,6 @@ export function linkStakingUser(
|
|
|
124
124
|
params: LinkStakingUserParameters,
|
|
125
125
|
opts?: LinkStakingUserOptions,
|
|
126
126
|
): Promise<LinkStakingUserSuccessResponse> {
|
|
127
|
-
const action = parse(
|
|
128
|
-
return executeUserSignedAction(
|
|
129
|
-
config,
|
|
130
|
-
{ type: "linkStakingUser", ...action },
|
|
131
|
-
LinkStakingUserTypes,
|
|
132
|
-
opts,
|
|
133
|
-
);
|
|
127
|
+
const action = parse(LinkStakingUserActionSchema, { type: "linkStakingUser", ...params });
|
|
128
|
+
return executeUserSignedAction(config, action, LinkStakingUserTypes, opts);
|
|
134
129
|
}
|
|
@@ -94,16 +94,13 @@ import { parse } from "../../../_base.js";
|
|
|
94
94
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
95
95
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
96
96
|
|
|
97
|
-
/** Schema for
|
|
98
|
-
const
|
|
99
|
-
return v.
|
|
100
|
-
v.object(ModifyRequest.entries.action.entries),
|
|
101
|
-
["type"],
|
|
102
|
-
);
|
|
97
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
98
|
+
const ModifyActionSchema = /* @__PURE__ */ (() => {
|
|
99
|
+
return v.object(ModifyRequest.entries.action.entries);
|
|
103
100
|
})();
|
|
104
101
|
|
|
105
102
|
/** Action parameters for the {@linkcode modify} function. */
|
|
106
|
-
export type ModifyParameters = v.InferInput<typeof
|
|
103
|
+
export type ModifyParameters = Omit<v.InferInput<typeof ModifyActionSchema>, "type">;
|
|
107
104
|
|
|
108
105
|
/** Request options for the {@linkcode modify} function. */
|
|
109
106
|
export type ModifyOptions = ExtractRequestOptions<v.InferInput<typeof ModifyRequest>>;
|
|
@@ -132,20 +129,17 @@ export type ModifySuccessResponse = ExcludeErrorResponse<ModifyResponse>;
|
|
|
132
129
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
133
130
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
134
131
|
*
|
|
135
|
-
* await modify(
|
|
136
|
-
*
|
|
137
|
-
* {
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* r: false,
|
|
145
|
-
* t: { limit: { tif: "Gtc" } },
|
|
146
|
-
* },
|
|
132
|
+
* await modify({ transport, wallet }, {
|
|
133
|
+
* oid: 123,
|
|
134
|
+
* order: {
|
|
135
|
+
* a: 0,
|
|
136
|
+
* b: true,
|
|
137
|
+
* p: "31000",
|
|
138
|
+
* s: "0.2",
|
|
139
|
+
* r: false,
|
|
140
|
+
* t: { limit: { tif: "Gtc" } },
|
|
147
141
|
* },
|
|
148
|
-
* );
|
|
142
|
+
* });
|
|
149
143
|
* ```
|
|
150
144
|
*
|
|
151
145
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#modify-an-order
|
|
@@ -155,6 +149,6 @@ export function modify(
|
|
|
155
149
|
params: ModifyParameters,
|
|
156
150
|
opts?: ModifyOptions,
|
|
157
151
|
): Promise<ModifySuccessResponse> {
|
|
158
|
-
const action = parse(
|
|
159
|
-
return executeL1Action(config,
|
|
152
|
+
const action = parse(ModifyActionSchema, { type: "modify", ...params });
|
|
153
|
+
return executeL1Action(config, action, opts);
|
|
160
154
|
}
|
|
@@ -38,9 +38,15 @@ export type NoopResponse = 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 NoopActionSchema = /* @__PURE__ */ (() => {
|
|
47
|
+
return v.object(NoopRequest.entries.action.entries);
|
|
48
|
+
})();
|
|
49
|
+
|
|
44
50
|
/** Request options for the {@linkcode noop} function. */
|
|
45
51
|
export type NoopOptions = ExtractRequestOptions<v.InferInput<typeof NoopRequest>>;
|
|
46
52
|
|
|
@@ -76,5 +82,6 @@ export function noop(
|
|
|
76
82
|
config: ExchangeConfig,
|
|
77
83
|
opts?: NoopOptions,
|
|
78
84
|
): Promise<NoopSuccessResponse> {
|
|
79
|
-
|
|
85
|
+
const action = parse(NoopActionSchema, { type: "noop" });
|
|
86
|
+
return executeL1Action(config, action, opts);
|
|
80
87
|
}
|
|
@@ -123,7 +123,7 @@ export type OrderResponse = {
|
|
|
123
123
|
* Client Order ID.
|
|
124
124
|
* @pattern ^0x[a-fA-F0-9]{32}$
|
|
125
125
|
*/
|
|
126
|
-
cloid?: `0x${string}
|
|
126
|
+
cloid?: `0x${string}`;
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
| {
|
|
@@ -145,7 +145,7 @@ export type OrderResponse = {
|
|
|
145
145
|
* Client Order ID.
|
|
146
146
|
* @pattern ^0x[a-fA-F0-9]{32}$
|
|
147
147
|
*/
|
|
148
|
-
cloid?: `0x${string}
|
|
148
|
+
cloid?: `0x${string}`;
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
151
|
| {
|
|
@@ -167,16 +167,13 @@ import { parse } from "../../../_base.js";
|
|
|
167
167
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
168
168
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
169
169
|
|
|
170
|
-
/** Schema for
|
|
171
|
-
const
|
|
172
|
-
return v.
|
|
173
|
-
v.object(OrderRequest.entries.action.entries),
|
|
174
|
-
["type"],
|
|
175
|
-
);
|
|
170
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
171
|
+
const OrderActionSchema = /* @__PURE__ */ (() => {
|
|
172
|
+
return v.object(OrderRequest.entries.action.entries);
|
|
176
173
|
})();
|
|
177
174
|
|
|
178
175
|
/** Action parameters for the {@linkcode order} function. */
|
|
179
|
-
export type OrderParameters = v.InferInput<typeof
|
|
176
|
+
export type OrderParameters = Omit<v.InferInput<typeof OrderActionSchema>, "type">;
|
|
180
177
|
|
|
181
178
|
/** Request options for the {@linkcode order} function. */
|
|
182
179
|
export type OrderOptions = ExtractRequestOptions<v.InferInput<typeof OrderRequest>>;
|
|
@@ -205,22 +202,19 @@ export type OrderSuccessResponse = ExcludeErrorResponse<OrderResponse>;
|
|
|
205
202
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
206
203
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
207
204
|
*
|
|
208
|
-
* const data = await order(
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
*
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
* grouping: "na",
|
|
222
|
-
* },
|
|
223
|
-
* );
|
|
205
|
+
* const data = await order({ transport, wallet }, {
|
|
206
|
+
* orders: [
|
|
207
|
+
* {
|
|
208
|
+
* a: 0,
|
|
209
|
+
* b: true,
|
|
210
|
+
* p: "30000",
|
|
211
|
+
* s: "0.1",
|
|
212
|
+
* r: false,
|
|
213
|
+
* t: { limit: { tif: "Gtc" } },
|
|
214
|
+
* },
|
|
215
|
+
* ],
|
|
216
|
+
* grouping: "na",
|
|
217
|
+
* });
|
|
224
218
|
* ```
|
|
225
219
|
*
|
|
226
220
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#place-an-order
|
|
@@ -230,6 +224,6 @@ export function order(
|
|
|
230
224
|
params: OrderParameters,
|
|
231
225
|
opts?: OrderOptions,
|
|
232
226
|
): Promise<OrderSuccessResponse> {
|
|
233
|
-
const action = parse(
|
|
234
|
-
return executeL1Action(config,
|
|
227
|
+
const action = parse(OrderActionSchema, { type: "order", ...params });
|
|
228
|
+
return executeL1Action(config, action, opts);
|
|
235
229
|
}
|
|
@@ -200,6 +200,10 @@ export const PerpDeployRequest = /* @__PURE__ */ (() => {
|
|
|
200
200
|
category: v.string(),
|
|
201
201
|
/** Detailed description (max 400 characters). */
|
|
202
202
|
description: v.string(),
|
|
203
|
+
/** Display name for frontends to use instead of the L1 name, or null to ignore. */
|
|
204
|
+
displayName: v.nullable(v.string()),
|
|
205
|
+
/** Keywords used as hints to match against searches. */
|
|
206
|
+
keywords: v.array(v.string()),
|
|
203
207
|
}),
|
|
204
208
|
}),
|
|
205
209
|
]),
|
|
@@ -227,15 +231,15 @@ import { parse } from "../../../_base.js";
|
|
|
227
231
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
228
232
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
229
233
|
|
|
230
|
-
/** Schema for
|
|
231
|
-
const
|
|
232
|
-
return v.
|
|
233
|
-
PerpDeployRequest.entries.action.options.map((option) => v.omit(option, ["type"])),
|
|
234
|
-
);
|
|
234
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
235
|
+
const PerpDeployActionSchema = /* @__PURE__ */ (() => {
|
|
236
|
+
return v.variant("type", PerpDeployRequest.entries.action.options);
|
|
235
237
|
})();
|
|
236
238
|
|
|
237
239
|
/** Action parameters for the {@linkcode perpDeploy} function. */
|
|
238
|
-
export type PerpDeployParameters = v.InferInput<typeof
|
|
240
|
+
export type PerpDeployParameters = v.InferInput<typeof PerpDeployActionSchema> extends infer T
|
|
241
|
+
? T extends unknown ? { [K in Exclude<keyof T, "type">]: T[K] } : never
|
|
242
|
+
: never;
|
|
239
243
|
|
|
240
244
|
/** Request options for the {@linkcode perpDeploy} function. */
|
|
241
245
|
export type PerpDeployOptions = ExtractRequestOptions<v.InferInput<typeof PerpDeployRequest>>;
|
|
@@ -264,23 +268,20 @@ export type PerpDeploySuccessResponse = ExcludeErrorResponse<PerpDeployResponse>
|
|
|
264
268
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
265
269
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
266
270
|
*
|
|
267
|
-
* await perpDeploy(
|
|
268
|
-
* {
|
|
269
|
-
*
|
|
270
|
-
*
|
|
271
|
-
*
|
|
272
|
-
*
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
276
|
-
* marginTableId: 1,
|
|
277
|
-
* onlyIsolated: false,
|
|
278
|
-
* },
|
|
279
|
-
* dex: "test",
|
|
280
|
-
* schema: null,
|
|
271
|
+
* await perpDeploy({ transport, wallet }, {
|
|
272
|
+
* registerAsset: {
|
|
273
|
+
* maxGas: 1000000,
|
|
274
|
+
* assetRequest: {
|
|
275
|
+
* coin: "USDC",
|
|
276
|
+
* szDecimals: 8,
|
|
277
|
+
* oraclePx: "1",
|
|
278
|
+
* marginTableId: 1,
|
|
279
|
+
* onlyIsolated: false,
|
|
281
280
|
* },
|
|
281
|
+
* dex: "test",
|
|
282
|
+
* schema: null,
|
|
282
283
|
* },
|
|
283
|
-
* );
|
|
284
|
+
* });
|
|
284
285
|
* ```
|
|
285
286
|
*
|
|
286
287
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/hip-3-deployer-actions
|
|
@@ -290,6 +291,6 @@ export function perpDeploy(
|
|
|
290
291
|
params: PerpDeployParameters,
|
|
291
292
|
opts?: PerpDeployOptions,
|
|
292
293
|
): Promise<PerpDeploySuccessResponse> {
|
|
293
|
-
const action = parse(
|
|
294
|
-
return executeL1Action(config,
|
|
294
|
+
const action = parse(PerpDeployActionSchema, { type: "perpDeploy", ...params });
|
|
295
|
+
return executeL1Action(config, action, opts);
|
|
295
296
|
}
|
|
@@ -44,16 +44,13 @@ import { parse } from "../../../_base.js";
|
|
|
44
44
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
45
45
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
46
46
|
|
|
47
|
-
/** Schema for
|
|
48
|
-
const
|
|
49
|
-
return v.
|
|
50
|
-
v.object(RegisterReferrerRequest.entries.action.entries),
|
|
51
|
-
["type"],
|
|
52
|
-
);
|
|
47
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
48
|
+
const RegisterReferrerActionSchema = /* @__PURE__ */ (() => {
|
|
49
|
+
return v.object(RegisterReferrerRequest.entries.action.entries);
|
|
53
50
|
})();
|
|
54
51
|
|
|
55
52
|
/** Action parameters for the {@linkcode registerReferrer} function. */
|
|
56
|
-
export type RegisterReferrerParameters = v.InferInput<typeof
|
|
53
|
+
export type RegisterReferrerParameters = Omit<v.InferInput<typeof RegisterReferrerActionSchema>, "type">;
|
|
57
54
|
|
|
58
55
|
/** Request options for the {@linkcode registerReferrer} function. */
|
|
59
56
|
export type RegisterReferrerOptions = ExtractRequestOptions<v.InferInput<typeof RegisterReferrerRequest>>;
|
|
@@ -82,10 +79,9 @@ export type RegisterReferrerSuccessResponse = ExcludeErrorResponse<RegisterRefer
|
|
|
82
79
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
83
80
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
84
81
|
*
|
|
85
|
-
* await registerReferrer(
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* );
|
|
82
|
+
* await registerReferrer({ transport, wallet }, {
|
|
83
|
+
* code: "...",
|
|
84
|
+
* });
|
|
89
85
|
* ```
|
|
90
86
|
*
|
|
91
87
|
* @see null
|
|
@@ -95,6 +91,6 @@ export function registerReferrer(
|
|
|
95
91
|
params: RegisterReferrerParameters,
|
|
96
92
|
opts?: RegisterReferrerOptions,
|
|
97
93
|
): Promise<RegisterReferrerSuccessResponse> {
|
|
98
|
-
const action = parse(
|
|
99
|
-
return executeL1Action(config,
|
|
94
|
+
const action = parse(RegisterReferrerActionSchema, { type: "registerReferrer", ...params });
|
|
95
|
+
return executeL1Action(config, action, opts);
|
|
100
96
|
}
|
|
@@ -44,16 +44,13 @@ import { parse } from "../../../_base.js";
|
|
|
44
44
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
45
45
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
46
46
|
|
|
47
|
-
/** Schema for
|
|
48
|
-
const
|
|
49
|
-
return v.
|
|
50
|
-
v.object(ReserveRequestWeightRequest.entries.action.entries),
|
|
51
|
-
["type"],
|
|
52
|
-
);
|
|
47
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
48
|
+
const ReserveRequestWeightActionSchema = /* @__PURE__ */ (() => {
|
|
49
|
+
return v.object(ReserveRequestWeightRequest.entries.action.entries);
|
|
53
50
|
})();
|
|
54
51
|
|
|
55
52
|
/** Action parameters for the {@linkcode reserveRequestWeight} function. */
|
|
56
|
-
export type ReserveRequestWeightParameters = v.InferInput<typeof
|
|
53
|
+
export type ReserveRequestWeightParameters = Omit<v.InferInput<typeof ReserveRequestWeightActionSchema>, "type">;
|
|
57
54
|
|
|
58
55
|
/** Request options for the {@linkcode reserveRequestWeight} function. */
|
|
59
56
|
export type ReserveRequestWeightOptions = ExtractRequestOptions<v.InferInput<typeof ReserveRequestWeightRequest>>;
|
|
@@ -82,10 +79,9 @@ export type ReserveRequestWeightSuccessResponse = ExcludeErrorResponse<ReserveRe
|
|
|
82
79
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
83
80
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
84
81
|
*
|
|
85
|
-
* await reserveRequestWeight(
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* );
|
|
82
|
+
* await reserveRequestWeight({ transport, wallet }, {
|
|
83
|
+
* weight: 10,
|
|
84
|
+
* });
|
|
89
85
|
* ```
|
|
90
86
|
*
|
|
91
87
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#reserve-additional-actions
|
|
@@ -95,6 +91,6 @@ export function reserveRequestWeight(
|
|
|
95
91
|
params: ReserveRequestWeightParameters,
|
|
96
92
|
opts?: ReserveRequestWeightOptions,
|
|
97
93
|
): Promise<ReserveRequestWeightSuccessResponse> {
|
|
98
|
-
const action = parse(
|
|
99
|
-
return executeL1Action(config,
|
|
94
|
+
const action = parse(ReserveRequestWeightActionSchema, { type: "reserveRequestWeight", ...params });
|
|
95
|
+
return executeL1Action(config, action, opts);
|
|
100
96
|
}
|
|
@@ -51,16 +51,13 @@ import { parse } from "../../../_base.js";
|
|
|
51
51
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
52
52
|
import { type ExchangeConfig, executeL1Action, type ExtractRequestOptions } from "./_base/execute.js";
|
|
53
53
|
|
|
54
|
-
/** Schema for
|
|
55
|
-
const
|
|
56
|
-
return v.
|
|
57
|
-
v.object(ScheduleCancelRequest.entries.action.entries),
|
|
58
|
-
["type"],
|
|
59
|
-
);
|
|
54
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
55
|
+
const ScheduleCancelActionSchema = /* @__PURE__ */ (() => {
|
|
56
|
+
return v.object(ScheduleCancelRequest.entries.action.entries);
|
|
60
57
|
})();
|
|
61
58
|
|
|
62
59
|
/** Action parameters for the {@linkcode scheduleCancel} function. */
|
|
63
|
-
export type ScheduleCancelParameters = v.InferInput<typeof
|
|
60
|
+
export type ScheduleCancelParameters = Omit<v.InferInput<typeof ScheduleCancelActionSchema>, "type">;
|
|
64
61
|
|
|
65
62
|
/** Request options for the {@linkcode scheduleCancel} function. */
|
|
66
63
|
export type ScheduleCancelOptions = ExtractRequestOptions<v.InferInput<typeof ScheduleCancelRequest>>;
|
|
@@ -89,10 +86,9 @@ export type ScheduleCancelSuccessResponse = ExcludeErrorResponse<ScheduleCancelR
|
|
|
89
86
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
90
87
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
91
88
|
*
|
|
92
|
-
* await scheduleCancel(
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* );
|
|
89
|
+
* await scheduleCancel({ transport, wallet }, {
|
|
90
|
+
* time: Date.now() + 10_000,
|
|
91
|
+
* });
|
|
96
92
|
* ```
|
|
97
93
|
*
|
|
98
94
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#schedule-cancel-dead-mans-switch
|
|
@@ -115,6 +111,6 @@ export function scheduleCancel(
|
|
|
115
111
|
const params = isFirstArgParams ? paramsOrOpts : {};
|
|
116
112
|
const opts = isFirstArgParams ? maybeOpts : paramsOrOpts as ScheduleCancelOptions;
|
|
117
113
|
|
|
118
|
-
const action = parse(
|
|
119
|
-
return executeL1Action(config,
|
|
114
|
+
const action = parse(ScheduleCancelActionSchema, { type: "scheduleCancel", ...params });
|
|
115
|
+
return executeL1Action(config, action, opts);
|
|
120
116
|
}
|
|
@@ -66,16 +66,16 @@ import { parse } from "../../../_base.js";
|
|
|
66
66
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
67
67
|
import { type ExchangeConfig, executeUserSignedAction, type ExtractRequestOptions } from "./_base/execute.js";
|
|
68
68
|
|
|
69
|
-
/** Schema for
|
|
70
|
-
const
|
|
69
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
70
|
+
const SendAssetActionSchema = /* @__PURE__ */ (() => {
|
|
71
71
|
return v.omit(
|
|
72
72
|
v.object(SendAssetRequest.entries.action.entries),
|
|
73
|
-
["
|
|
73
|
+
["signatureChainId", "hyperliquidChain", "nonce"],
|
|
74
74
|
);
|
|
75
75
|
})();
|
|
76
76
|
|
|
77
77
|
/** Action parameters for the {@linkcode sendAsset} function. */
|
|
78
|
-
export type SendAssetParameters = v.InferInput<typeof
|
|
78
|
+
export type SendAssetParameters = Omit<v.InferInput<typeof SendAssetActionSchema>, "type">;
|
|
79
79
|
|
|
80
80
|
/** Request options for the {@linkcode sendAsset} function. */
|
|
81
81
|
export type SendAssetOptions = ExtractRequestOptions<v.InferInput<typeof SendAssetRequest>>;
|
|
@@ -118,16 +118,13 @@ export const SendAssetTypes = {
|
|
|
118
118
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
119
119
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
120
120
|
*
|
|
121
|
-
* await sendAsset(
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
* amount: "1",
|
|
129
|
-
* },
|
|
130
|
-
* );
|
|
121
|
+
* await sendAsset({ transport, wallet }, {
|
|
122
|
+
* destination: "0x0000000000000000000000000000000000000001",
|
|
123
|
+
* sourceDex: "",
|
|
124
|
+
* destinationDex: "test",
|
|
125
|
+
* token: "USDC:0xeb62eee3685fc4c43992febcd9e75443",
|
|
126
|
+
* amount: "1",
|
|
127
|
+
* });
|
|
131
128
|
* ```
|
|
132
129
|
*
|
|
133
130
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#send-asset
|
|
@@ -137,11 +134,6 @@ export function sendAsset(
|
|
|
137
134
|
params: SendAssetParameters,
|
|
138
135
|
opts?: SendAssetOptions,
|
|
139
136
|
): Promise<SendAssetSuccessResponse> {
|
|
140
|
-
const action = parse(
|
|
141
|
-
return executeUserSignedAction(
|
|
142
|
-
config,
|
|
143
|
-
{ type: "sendAsset", ...action },
|
|
144
|
-
SendAssetTypes,
|
|
145
|
-
opts,
|
|
146
|
-
);
|
|
137
|
+
const action = parse(SendAssetActionSchema, { type: "sendAsset", ...params });
|
|
138
|
+
return executeUserSignedAction(config, action, SendAssetTypes, opts);
|
|
147
139
|
}
|