@nktkas/hyperliquid 0.32.0 → 0.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/_base.js +1 -1
- package/esm/_base.js.map +1 -1
- package/esm/api/_schemas.d.ts.map +1 -1
- package/esm/api/_schemas.js +1 -15
- package/esm/api/_schemas.js.map +1 -1
- package/esm/api/exchange/_methods/_base/execute.d.ts +1 -1
- package/esm/api/exchange/_methods/_base/execute.d.ts.map +1 -1
- package/esm/api/exchange/_methods/_base/execute.js.map +1 -1
- package/esm/api/exchange/_methods/agentEnableDexAbstraction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/agentEnableDexAbstraction.js +10 -1
- package/esm/api/exchange/_methods/agentEnableDexAbstraction.js.map +1 -1
- package/esm/api/exchange/_methods/agentSetAbstraction.d.ts +7 -37
- package/esm/api/exchange/_methods/agentSetAbstraction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/agentSetAbstraction.js +8 -9
- package/esm/api/exchange/_methods/agentSetAbstraction.js.map +1 -1
- package/esm/api/exchange/_methods/approveAgent.d.ts +19 -17
- package/esm/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/esm/api/exchange/_methods/approveAgent.js +13 -16
- package/esm/api/exchange/_methods/approveAgent.js.map +1 -1
- package/esm/api/exchange/_methods/approveBuilderFee.d.ts +15 -10
- package/esm/api/exchange/_methods/approveBuilderFee.d.ts.map +1 -1
- package/esm/api/exchange/_methods/approveBuilderFee.js +9 -9
- package/esm/api/exchange/_methods/approveBuilderFee.js.map +1 -1
- package/esm/api/exchange/_methods/batchModify.d.ts +18 -192
- package/esm/api/exchange/_methods/batchModify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/batchModify.js +19 -22
- package/esm/api/exchange/_methods/batchModify.js.map +1 -1
- package/esm/api/exchange/_methods/borrowLend.d.ts +9 -46
- package/esm/api/exchange/_methods/borrowLend.d.ts.map +1 -1
- package/esm/api/exchange/_methods/borrowLend.js +10 -9
- package/esm/api/exchange/_methods/borrowLend.js.map +1 -1
- package/esm/api/exchange/_methods/cDeposit.d.ts +14 -10
- package/esm/api/exchange/_methods/cDeposit.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cDeposit.js +8 -9
- package/esm/api/exchange/_methods/cDeposit.js.map +1 -1
- package/esm/api/exchange/_methods/cSignerAction.d.ts +13 -61
- package/esm/api/exchange/_methods/cSignerAction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cSignerAction.js +11 -13
- package/esm/api/exchange/_methods/cSignerAction.js.map +1 -1
- package/esm/api/exchange/_methods/cValidatorAction.d.ts +18 -247
- package/esm/api/exchange/_methods/cValidatorAction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cValidatorAction.js +15 -18
- package/esm/api/exchange/_methods/cValidatorAction.js.map +1 -1
- package/esm/api/exchange/_methods/cWithdraw.d.ts +14 -10
- package/esm/api/exchange/_methods/cWithdraw.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cWithdraw.js +8 -9
- package/esm/api/exchange/_methods/cWithdraw.js.map +1 -1
- package/esm/api/exchange/_methods/cancel.d.ts +7 -52
- package/esm/api/exchange/_methods/cancel.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cancel.js +8 -9
- package/esm/api/exchange/_methods/cancel.js.map +1 -1
- package/esm/api/exchange/_methods/cancelByCloid.d.ts +9 -56
- package/esm/api/exchange/_methods/cancelByCloid.d.ts.map +1 -1
- package/esm/api/exchange/_methods/cancelByCloid.js +10 -13
- package/esm/api/exchange/_methods/cancelByCloid.js.map +1 -1
- package/esm/api/exchange/_methods/claimRewards.d.ts.map +1 -1
- package/esm/api/exchange/_methods/claimRewards.js +10 -1
- package/esm/api/exchange/_methods/claimRewards.js.map +1 -1
- package/esm/api/exchange/_methods/convertToMultiSigUser.d.ts +19 -18
- package/esm/api/exchange/_methods/convertToMultiSigUser.d.ts.map +1 -1
- package/esm/api/exchange/_methods/convertToMultiSigUser.js +13 -17
- package/esm/api/exchange/_methods/convertToMultiSigUser.js.map +1 -1
- package/esm/api/exchange/_methods/createSubAccount.d.ts +7 -32
- package/esm/api/exchange/_methods/createSubAccount.d.ts.map +1 -1
- package/esm/api/exchange/_methods/createSubAccount.js +8 -9
- package/esm/api/exchange/_methods/createSubAccount.js.map +1 -1
- package/esm/api/exchange/_methods/createVault.d.ts +10 -58
- package/esm/api/exchange/_methods/createVault.d.ts.map +1 -1
- package/esm/api/exchange/_methods/createVault.js +11 -14
- package/esm/api/exchange/_methods/createVault.js.map +1 -1
- package/esm/api/exchange/_methods/evmUserModify.d.ts +7 -32
- package/esm/api/exchange/_methods/evmUserModify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/evmUserModify.js +8 -9
- package/esm/api/exchange/_methods/evmUserModify.js.map +1 -1
- package/esm/api/exchange/_methods/linkStakingUser.d.ts +15 -10
- package/esm/api/exchange/_methods/linkStakingUser.d.ts.map +1 -1
- package/esm/api/exchange/_methods/linkStakingUser.js +9 -9
- package/esm/api/exchange/_methods/linkStakingUser.js.map +1 -1
- package/esm/api/exchange/_methods/modify.d.ts +14 -175
- package/esm/api/exchange/_methods/modify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/modify.js +15 -18
- package/esm/api/exchange/_methods/modify.js.map +1 -1
- package/esm/api/exchange/_methods/noop.d.ts.map +1 -1
- package/esm/api/exchange/_methods/noop.js +10 -1
- package/esm/api/exchange/_methods/noop.js.map +1 -1
- package/esm/api/exchange/_methods/order.d.ts +19 -212
- package/esm/api/exchange/_methods/order.d.ts.map +1 -1
- package/esm/api/exchange/_methods/order.js +18 -21
- package/esm/api/exchange/_methods/order.js.map +1 -1
- package/esm/api/exchange/_methods/perpDeploy.d.ts +62 -688
- package/esm/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
- package/esm/api/exchange/_methods/perpDeploy.js +34 -20
- package/esm/api/exchange/_methods/perpDeploy.js.map +1 -1
- package/esm/api/exchange/_methods/registerReferrer.d.ts +7 -32
- package/esm/api/exchange/_methods/registerReferrer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/registerReferrer.js +8 -9
- package/esm/api/exchange/_methods/registerReferrer.js.map +1 -1
- package/esm/api/exchange/_methods/reserveRequestWeight.d.ts +7 -32
- package/esm/api/exchange/_methods/reserveRequestWeight.d.ts.map +1 -1
- package/esm/api/exchange/_methods/reserveRequestWeight.js +8 -9
- package/esm/api/exchange/_methods/reserveRequestWeight.js.map +1 -1
- package/esm/api/exchange/_methods/scheduleCancel.d.ts +7 -37
- package/esm/api/exchange/_methods/scheduleCancel.d.ts.map +1 -1
- package/esm/api/exchange/_methods/scheduleCancel.js +5 -5
- package/esm/api/exchange/_methods/scheduleCancel.js.map +1 -1
- package/esm/api/exchange/_methods/sendAsset.d.ts +16 -14
- package/esm/api/exchange/_methods/sendAsset.d.ts.map +1 -1
- package/esm/api/exchange/_methods/sendAsset.js +12 -15
- package/esm/api/exchange/_methods/sendAsset.js.map +1 -1
- package/esm/api/exchange/_methods/sendToEvmWithData.d.ts +21 -19
- package/esm/api/exchange/_methods/sendToEvmWithData.d.ts.map +1 -1
- package/esm/api/exchange/_methods/sendToEvmWithData.js +15 -18
- package/esm/api/exchange/_methods/sendToEvmWithData.js.map +1 -1
- package/esm/api/exchange/_methods/setDisplayName.d.ts +7 -35
- package/esm/api/exchange/_methods/setDisplayName.d.ts.map +1 -1
- package/esm/api/exchange/_methods/setDisplayName.js +8 -9
- package/esm/api/exchange/_methods/setDisplayName.js.map +1 -1
- package/esm/api/exchange/_methods/setReferrer.d.ts +7 -32
- package/esm/api/exchange/_methods/setReferrer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/setReferrer.js +8 -9
- package/esm/api/exchange/_methods/setReferrer.js.map +1 -1
- package/esm/api/exchange/_methods/spotDeploy.d.ts +22 -430
- package/esm/api/exchange/_methods/spotDeploy.d.ts.map +1 -1
- package/esm/api/exchange/_methods/spotDeploy.js +14 -17
- package/esm/api/exchange/_methods/spotDeploy.js.map +1 -1
- package/esm/api/exchange/_methods/spotSend.d.ts +16 -14
- package/esm/api/exchange/_methods/spotSend.d.ts.map +1 -1
- package/esm/api/exchange/_methods/spotSend.js +10 -13
- package/esm/api/exchange/_methods/spotSend.js.map +1 -1
- package/esm/api/exchange/_methods/spotUser.d.ts +7 -45
- package/esm/api/exchange/_methods/spotUser.d.ts.map +1 -1
- package/esm/api/exchange/_methods/spotUser.js +8 -9
- package/esm/api/exchange/_methods/spotUser.js.map +1 -1
- package/esm/api/exchange/_methods/subAccountModify.d.ts +8 -39
- package/esm/api/exchange/_methods/subAccountModify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/subAccountModify.js +9 -9
- package/esm/api/exchange/_methods/subAccountModify.js.map +1 -1
- package/esm/api/exchange/_methods/subAccountSpotTransfer.d.ts +10 -58
- package/esm/api/exchange/_methods/subAccountSpotTransfer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/subAccountSpotTransfer.js +11 -14
- package/esm/api/exchange/_methods/subAccountSpotTransfer.js.map +1 -1
- package/esm/api/exchange/_methods/subAccountTransfer.d.ts +9 -46
- package/esm/api/exchange/_methods/subAccountTransfer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/subAccountTransfer.js +10 -9
- package/esm/api/exchange/_methods/subAccountTransfer.js.map +1 -1
- package/esm/api/exchange/_methods/tokenDelegate.d.ts +16 -10
- package/esm/api/exchange/_methods/tokenDelegate.d.ts.map +1 -1
- package/esm/api/exchange/_methods/tokenDelegate.js +10 -9
- package/esm/api/exchange/_methods/tokenDelegate.js.map +1 -1
- package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts +8 -39
- package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts.map +1 -1
- package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.js +9 -9
- package/esm/api/exchange/_methods/topUpIsolatedOnlyMargin.js.map +1 -1
- package/esm/api/exchange/_methods/twapCancel.d.ts +8 -39
- package/esm/api/exchange/_methods/twapCancel.d.ts.map +1 -1
- package/esm/api/exchange/_methods/twapCancel.js +9 -9
- package/esm/api/exchange/_methods/twapCancel.js.map +1 -1
- package/esm/api/exchange/_methods/twapOrder.d.ts +13 -88
- package/esm/api/exchange/_methods/twapOrder.d.ts.map +1 -1
- package/esm/api/exchange/_methods/twapOrder.js +14 -17
- package/esm/api/exchange/_methods/twapOrder.js.map +1 -1
- package/esm/api/exchange/_methods/updateIsolatedMargin.d.ts +9 -46
- package/esm/api/exchange/_methods/updateIsolatedMargin.d.ts.map +1 -1
- package/esm/api/exchange/_methods/updateIsolatedMargin.js +10 -9
- package/esm/api/exchange/_methods/updateIsolatedMargin.js.map +1 -1
- package/esm/api/exchange/_methods/updateLeverage.d.ts +9 -46
- package/esm/api/exchange/_methods/updateLeverage.d.ts.map +1 -1
- package/esm/api/exchange/_methods/updateLeverage.js +10 -9
- package/esm/api/exchange/_methods/updateLeverage.js.map +1 -1
- package/esm/api/exchange/_methods/usdClassTransfer.d.ts +15 -10
- package/esm/api/exchange/_methods/usdClassTransfer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/usdClassTransfer.js +9 -9
- package/esm/api/exchange/_methods/usdClassTransfer.js.map +1 -1
- package/esm/api/exchange/_methods/usdSend.d.ts +15 -10
- package/esm/api/exchange/_methods/usdSend.d.ts.map +1 -1
- package/esm/api/exchange/_methods/usdSend.js +9 -9
- package/esm/api/exchange/_methods/usdSend.js.map +1 -1
- package/esm/api/exchange/_methods/userDexAbstraction.d.ts +15 -10
- package/esm/api/exchange/_methods/userDexAbstraction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/userDexAbstraction.js +9 -9
- package/esm/api/exchange/_methods/userDexAbstraction.js.map +1 -1
- package/esm/api/exchange/_methods/userPortfolioMargin.d.ts +15 -10
- package/esm/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -1
- package/esm/api/exchange/_methods/userPortfolioMargin.js +9 -9
- package/esm/api/exchange/_methods/userPortfolioMargin.js.map +1 -1
- package/esm/api/exchange/_methods/userSetAbstraction.d.ts +15 -10
- package/esm/api/exchange/_methods/userSetAbstraction.d.ts.map +1 -1
- package/esm/api/exchange/_methods/userSetAbstraction.js +9 -9
- package/esm/api/exchange/_methods/userSetAbstraction.js.map +1 -1
- package/esm/api/exchange/_methods/validatorL1Stream.d.ts +7 -32
- package/esm/api/exchange/_methods/validatorL1Stream.d.ts.map +1 -1
- package/esm/api/exchange/_methods/validatorL1Stream.js +8 -9
- package/esm/api/exchange/_methods/validatorL1Stream.js.map +1 -1
- package/esm/api/exchange/_methods/vaultDistribute.d.ts +8 -42
- package/esm/api/exchange/_methods/vaultDistribute.d.ts.map +1 -1
- package/esm/api/exchange/_methods/vaultDistribute.js +9 -9
- package/esm/api/exchange/_methods/vaultDistribute.js.map +1 -1
- package/esm/api/exchange/_methods/vaultModify.d.ts +9 -50
- package/esm/api/exchange/_methods/vaultModify.d.ts.map +1 -1
- package/esm/api/exchange/_methods/vaultModify.js +10 -13
- package/esm/api/exchange/_methods/vaultModify.js.map +1 -1
- package/esm/api/exchange/_methods/vaultTransfer.d.ts +9 -46
- package/esm/api/exchange/_methods/vaultTransfer.d.ts.map +1 -1
- package/esm/api/exchange/_methods/vaultTransfer.js +10 -9
- package/esm/api/exchange/_methods/vaultTransfer.js.map +1 -1
- package/esm/api/exchange/_methods/withdraw3.d.ts +15 -10
- package/esm/api/exchange/_methods/withdraw3.d.ts.map +1 -1
- package/esm/api/exchange/_methods/withdraw3.js +9 -9
- package/esm/api/exchange/_methods/withdraw3.js.map +1 -1
- package/esm/api/exchange/mod.d.ts +1 -1
- package/esm/api/exchange/mod.d.ts.map +1 -1
- package/esm/api/info/_methods/activeAssetData.d.ts +4 -4
- package/esm/api/info/_methods/activeAssetData.js +4 -4
- package/esm/api/info/_methods/alignedQuoteTokenInfo.d.ts +3 -4
- package/esm/api/info/_methods/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/esm/api/info/_methods/alignedQuoteTokenInfo.js +3 -4
- package/esm/api/info/_methods/alignedQuoteTokenInfo.js.map +1 -1
- package/esm/api/info/_methods/approvedBuilders.d.ts +3 -4
- package/esm/api/info/_methods/approvedBuilders.d.ts.map +1 -1
- package/esm/api/info/_methods/approvedBuilders.js +3 -4
- package/esm/api/info/_methods/approvedBuilders.js.map +1 -1
- package/esm/api/info/_methods/blockDetails.d.ts +4 -4
- package/esm/api/info/_methods/blockDetails.js +4 -4
- package/esm/api/info/_methods/borrowLendReserveState.d.ts +3 -4
- package/esm/api/info/_methods/borrowLendReserveState.d.ts.map +1 -1
- package/esm/api/info/_methods/borrowLendReserveState.js +3 -4
- package/esm/api/info/_methods/borrowLendReserveState.js.map +1 -1
- package/esm/api/info/_methods/borrowLendUserState.d.ts +3 -4
- package/esm/api/info/_methods/borrowLendUserState.d.ts.map +1 -1
- package/esm/api/info/_methods/borrowLendUserState.js +3 -4
- package/esm/api/info/_methods/borrowLendUserState.js.map +1 -1
- package/esm/api/info/_methods/candleSnapshot.d.ts +5 -8
- package/esm/api/info/_methods/candleSnapshot.d.ts.map +1 -1
- package/esm/api/info/_methods/candleSnapshot.js +5 -8
- package/esm/api/info/_methods/candleSnapshot.js.map +1 -1
- package/esm/api/info/_methods/clearinghouseState.d.ts +3 -4
- package/esm/api/info/_methods/clearinghouseState.d.ts.map +1 -1
- package/esm/api/info/_methods/clearinghouseState.js +3 -4
- package/esm/api/info/_methods/clearinghouseState.js.map +1 -1
- package/esm/api/info/_methods/delegations.d.ts +3 -4
- package/esm/api/info/_methods/delegations.d.ts.map +1 -1
- package/esm/api/info/_methods/delegations.js +3 -4
- package/esm/api/info/_methods/delegations.js.map +1 -1
- package/esm/api/info/_methods/delegatorHistory.d.ts +3 -4
- package/esm/api/info/_methods/delegatorHistory.d.ts.map +1 -1
- package/esm/api/info/_methods/delegatorHistory.js +3 -4
- package/esm/api/info/_methods/delegatorHistory.js.map +1 -1
- package/esm/api/info/_methods/delegatorRewards.d.ts +3 -4
- package/esm/api/info/_methods/delegatorRewards.d.ts.map +1 -1
- package/esm/api/info/_methods/delegatorRewards.js +3 -4
- package/esm/api/info/_methods/delegatorRewards.js.map +1 -1
- package/esm/api/info/_methods/delegatorSummary.d.ts +3 -4
- package/esm/api/info/_methods/delegatorSummary.d.ts.map +1 -1
- package/esm/api/info/_methods/delegatorSummary.js +3 -4
- package/esm/api/info/_methods/delegatorSummary.js.map +1 -1
- package/esm/api/info/_methods/extraAgents.d.ts +3 -4
- package/esm/api/info/_methods/extraAgents.d.ts.map +1 -1
- package/esm/api/info/_methods/extraAgents.js +3 -4
- package/esm/api/info/_methods/extraAgents.js.map +1 -1
- package/esm/api/info/_methods/frontendOpenOrders.d.ts +3 -4
- package/esm/api/info/_methods/frontendOpenOrders.d.ts.map +1 -1
- package/esm/api/info/_methods/frontendOpenOrders.js +3 -4
- package/esm/api/info/_methods/frontendOpenOrders.js.map +1 -1
- package/esm/api/info/_methods/fundingHistory.d.ts +4 -7
- package/esm/api/info/_methods/fundingHistory.d.ts.map +1 -1
- package/esm/api/info/_methods/fundingHistory.js +4 -7
- package/esm/api/info/_methods/fundingHistory.js.map +1 -1
- package/esm/api/info/_methods/historicalOrders.d.ts +3 -4
- package/esm/api/info/_methods/historicalOrders.d.ts.map +1 -1
- package/esm/api/info/_methods/historicalOrders.js +3 -4
- package/esm/api/info/_methods/historicalOrders.js.map +1 -1
- package/esm/api/info/_methods/isVip.d.ts +3 -4
- package/esm/api/info/_methods/isVip.d.ts.map +1 -1
- package/esm/api/info/_methods/isVip.js +3 -4
- package/esm/api/info/_methods/isVip.js.map +1 -1
- package/esm/api/info/_methods/l2Book.d.ts +4 -4
- package/esm/api/info/_methods/l2Book.js +4 -4
- package/esm/api/info/_methods/leadingVaults.d.ts +3 -4
- package/esm/api/info/_methods/leadingVaults.d.ts.map +1 -1
- package/esm/api/info/_methods/leadingVaults.js +3 -4
- package/esm/api/info/_methods/leadingVaults.js.map +1 -1
- package/esm/api/info/_methods/legalCheck.d.ts +3 -4
- package/esm/api/info/_methods/legalCheck.d.ts.map +1 -1
- package/esm/api/info/_methods/legalCheck.js +3 -4
- package/esm/api/info/_methods/legalCheck.js.map +1 -1
- package/esm/api/info/_methods/marginTable.d.ts +3 -4
- package/esm/api/info/_methods/marginTable.d.ts.map +1 -1
- package/esm/api/info/_methods/marginTable.js +3 -4
- package/esm/api/info/_methods/marginTable.js.map +1 -1
- package/esm/api/info/_methods/maxBuilderFee.d.ts +4 -4
- package/esm/api/info/_methods/maxBuilderFee.js +4 -4
- package/esm/api/info/_methods/openOrders.d.ts +3 -4
- package/esm/api/info/_methods/openOrders.d.ts.map +1 -1
- package/esm/api/info/_methods/openOrders.js +3 -4
- package/esm/api/info/_methods/openOrders.js.map +1 -1
- package/esm/api/info/_methods/orderStatus.d.ts +4 -4
- package/esm/api/info/_methods/orderStatus.js +4 -4
- package/esm/api/info/_methods/outcomeMeta.d.ts +3 -1
- package/esm/api/info/_methods/outcomeMeta.d.ts.map +1 -1
- package/esm/api/info/_methods/outcomeMeta.js.map +1 -1
- package/esm/api/info/_methods/perpAnnotation.d.ts +56 -0
- package/esm/api/info/_methods/perpAnnotation.d.ts.map +1 -0
- package/esm/api/info/_methods/perpAnnotation.js +53 -0
- package/esm/api/info/_methods/perpAnnotation.js.map +1 -0
- package/esm/api/info/_methods/perpConciseAnnotations.d.ts +52 -0
- package/esm/api/info/_methods/perpConciseAnnotations.d.ts.map +1 -0
- package/esm/api/info/_methods/perpConciseAnnotations.js +47 -0
- package/esm/api/info/_methods/perpConciseAnnotations.js.map +1 -0
- package/esm/api/info/_methods/perpDexLimits.d.ts +3 -4
- package/esm/api/info/_methods/perpDexLimits.d.ts.map +1 -1
- package/esm/api/info/_methods/perpDexLimits.js +3 -4
- package/esm/api/info/_methods/perpDexLimits.js.map +1 -1
- package/esm/api/info/_methods/perpDexStatus.d.ts +3 -1
- package/esm/api/info/_methods/perpDexStatus.d.ts.map +1 -1
- package/esm/api/info/_methods/perpDexStatus.js +3 -1
- package/esm/api/info/_methods/perpDexStatus.js.map +1 -1
- package/esm/api/info/_methods/portfolio.d.ts +3 -4
- package/esm/api/info/_methods/portfolio.d.ts.map +1 -1
- package/esm/api/info/_methods/portfolio.js +3 -4
- package/esm/api/info/_methods/portfolio.js.map +1 -1
- package/esm/api/info/_methods/preTransferCheck.d.ts +4 -4
- package/esm/api/info/_methods/preTransferCheck.js +4 -4
- package/esm/api/info/_methods/recentTrades.d.ts +3 -4
- package/esm/api/info/_methods/recentTrades.d.ts.map +1 -1
- package/esm/api/info/_methods/recentTrades.js +3 -4
- package/esm/api/info/_methods/recentTrades.js.map +1 -1
- package/esm/api/info/_methods/referral.d.ts +3 -4
- package/esm/api/info/_methods/referral.d.ts.map +1 -1
- package/esm/api/info/_methods/referral.js +3 -4
- package/esm/api/info/_methods/referral.js.map +1 -1
- package/esm/api/info/_methods/spotClearinghouseState.d.ts +3 -4
- package/esm/api/info/_methods/spotClearinghouseState.d.ts.map +1 -1
- package/esm/api/info/_methods/spotClearinghouseState.js +3 -4
- package/esm/api/info/_methods/spotClearinghouseState.js.map +1 -1
- package/esm/api/info/_methods/spotDeployState.d.ts +3 -4
- package/esm/api/info/_methods/spotDeployState.d.ts.map +1 -1
- package/esm/api/info/_methods/spotDeployState.js +3 -4
- package/esm/api/info/_methods/spotDeployState.js.map +1 -1
- package/esm/api/info/_methods/subAccounts.d.ts +3 -4
- package/esm/api/info/_methods/subAccounts.d.ts.map +1 -1
- package/esm/api/info/_methods/subAccounts.js +3 -4
- package/esm/api/info/_methods/subAccounts.js.map +1 -1
- package/esm/api/info/_methods/subAccounts2.d.ts +3 -4
- package/esm/api/info/_methods/subAccounts2.d.ts.map +1 -1
- package/esm/api/info/_methods/subAccounts2.js +3 -4
- package/esm/api/info/_methods/subAccounts2.js.map +1 -1
- package/esm/api/info/_methods/tokenDetails.d.ts +3 -4
- package/esm/api/info/_methods/tokenDetails.d.ts.map +1 -1
- package/esm/api/info/_methods/tokenDetails.js +3 -4
- package/esm/api/info/_methods/tokenDetails.js.map +1 -1
- package/esm/api/info/_methods/twapHistory.d.ts +3 -4
- package/esm/api/info/_methods/twapHistory.d.ts.map +1 -1
- package/esm/api/info/_methods/twapHistory.js +3 -4
- package/esm/api/info/_methods/twapHistory.js.map +1 -1
- package/esm/api/info/_methods/txDetails.d.ts +4 -4
- package/esm/api/info/_methods/txDetails.js +4 -4
- package/esm/api/info/_methods/userAbstraction.d.ts +3 -4
- package/esm/api/info/_methods/userAbstraction.d.ts.map +1 -1
- package/esm/api/info/_methods/userAbstraction.js +3 -4
- package/esm/api/info/_methods/userAbstraction.js.map +1 -1
- package/esm/api/info/_methods/userBorrowLendInterest.d.ts +4 -7
- package/esm/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -1
- package/esm/api/info/_methods/userBorrowLendInterest.js +4 -7
- package/esm/api/info/_methods/userBorrowLendInterest.js.map +1 -1
- package/esm/api/info/_methods/userDetails.d.ts +4 -4
- package/esm/api/info/_methods/userDetails.js +4 -4
- package/esm/api/info/_methods/userDexAbstraction.d.ts +3 -4
- package/esm/api/info/_methods/userDexAbstraction.d.ts.map +1 -1
- package/esm/api/info/_methods/userDexAbstraction.js +3 -4
- package/esm/api/info/_methods/userDexAbstraction.js.map +1 -1
- package/esm/api/info/_methods/userFees.d.ts +3 -4
- package/esm/api/info/_methods/userFees.d.ts.map +1 -1
- package/esm/api/info/_methods/userFees.js +3 -4
- package/esm/api/info/_methods/userFees.js.map +1 -1
- package/esm/api/info/_methods/userFills.d.ts +3 -4
- package/esm/api/info/_methods/userFills.d.ts.map +1 -1
- package/esm/api/info/_methods/userFills.js +3 -4
- package/esm/api/info/_methods/userFills.js.map +1 -1
- package/esm/api/info/_methods/userFillsByTime.d.ts +4 -7
- package/esm/api/info/_methods/userFillsByTime.d.ts.map +1 -1
- package/esm/api/info/_methods/userFillsByTime.js +4 -7
- package/esm/api/info/_methods/userFillsByTime.js.map +1 -1
- package/esm/api/info/_methods/userFunding.d.ts +3 -4
- package/esm/api/info/_methods/userFunding.d.ts.map +1 -1
- package/esm/api/info/_methods/userFunding.js +3 -4
- package/esm/api/info/_methods/userFunding.js.map +1 -1
- package/esm/api/info/_methods/userNonFundingLedgerUpdates.d.ts +17 -5
- package/esm/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/esm/api/info/_methods/userNonFundingLedgerUpdates.js +3 -4
- package/esm/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/esm/api/info/_methods/userRateLimit.d.ts +3 -4
- package/esm/api/info/_methods/userRateLimit.d.ts.map +1 -1
- package/esm/api/info/_methods/userRateLimit.js +3 -4
- package/esm/api/info/_methods/userRateLimit.js.map +1 -1
- package/esm/api/info/_methods/userRole.d.ts +3 -4
- package/esm/api/info/_methods/userRole.d.ts.map +1 -1
- package/esm/api/info/_methods/userRole.js +3 -4
- package/esm/api/info/_methods/userRole.js.map +1 -1
- package/esm/api/info/_methods/userToMultiSigSigners.d.ts +3 -4
- package/esm/api/info/_methods/userToMultiSigSigners.d.ts.map +1 -1
- package/esm/api/info/_methods/userToMultiSigSigners.js +3 -4
- package/esm/api/info/_methods/userToMultiSigSigners.js.map +1 -1
- package/esm/api/info/_methods/userTwapSliceFills.d.ts +3 -4
- package/esm/api/info/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/esm/api/info/_methods/userTwapSliceFills.js +3 -4
- package/esm/api/info/_methods/userTwapSliceFills.js.map +1 -1
- package/esm/api/info/_methods/userTwapSliceFillsByTime.d.ts +4 -7
- package/esm/api/info/_methods/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/esm/api/info/_methods/userTwapSliceFillsByTime.js +4 -7
- package/esm/api/info/_methods/userTwapSliceFillsByTime.js.map +1 -1
- package/esm/api/info/_methods/userVaultEquities.d.ts +3 -4
- package/esm/api/info/_methods/userVaultEquities.d.ts.map +1 -1
- package/esm/api/info/_methods/userVaultEquities.js +3 -4
- package/esm/api/info/_methods/userVaultEquities.js.map +1 -1
- package/esm/api/info/_methods/vaultDetails.d.ts +3 -4
- package/esm/api/info/_methods/vaultDetails.d.ts.map +1 -1
- package/esm/api/info/_methods/vaultDetails.js +3 -4
- package/esm/api/info/_methods/vaultDetails.js.map +1 -1
- package/esm/api/info/_methods/webData2.d.ts +3 -4
- package/esm/api/info/_methods/webData2.d.ts.map +1 -1
- package/esm/api/info/_methods/webData2.js +3 -4
- package/esm/api/info/_methods/webData2.js.map +1 -1
- package/esm/api/info/client.d.ts +49 -0
- package/esm/api/info/client.d.ts.map +1 -1
- package/esm/api/info/client.js +51 -0
- package/esm/api/info/client.js.map +1 -1
- package/esm/api/info/mod.d.ts +2 -0
- package/esm/api/info/mod.d.ts.map +1 -1
- package/esm/api/info/mod.js +2 -0
- package/esm/api/info/mod.js.map +1 -1
- package/esm/api/subscription/_methods/l2Book.d.ts +19 -33
- package/esm/api/subscription/_methods/l2Book.d.ts.map +1 -1
- package/esm/api/subscription/_methods/l2Book.js +2 -3
- package/esm/api/subscription/_methods/l2Book.js.map +1 -1
- package/esm/api/subscription/_methods/spotState.d.ts +1 -1
- package/esm/api/subscription/_methods/spotState.js +2 -2
- package/esm/api/subscription/_methods/spotState.js.map +1 -1
- package/esm/api/subscription/_methods/userFundings.d.ts +1 -1
- package/esm/api/subscription/_methods/userFundings.d.ts.map +1 -1
- package/esm/signing/_abstractWallet.d.ts.map +1 -1
- package/esm/signing/_abstractWallet.js +11 -1
- package/esm/signing/_abstractWallet.js.map +1 -1
- package/esm/transport/websocket/_postRequest.d.ts.map +1 -1
- package/esm/transport/websocket/_postRequest.js +9 -0
- package/esm/transport/websocket/_postRequest.js.map +1 -1
- package/esm/utils/_format.d.ts +1 -0
- package/esm/utils/_format.d.ts.map +1 -1
- package/esm/utils/_format.js +1 -1
- package/esm/utils/_format.js.map +1 -1
- package/esm/utils/mod.d.ts +1 -1
- package/esm/utils/mod.d.ts.map +1 -1
- package/esm/utils/mod.js +1 -1
- package/esm/utils/mod.js.map +1 -1
- package/package.json +2 -2
- package/script/_base.js +1 -1
- package/script/_base.js.map +1 -1
- package/script/api/_schemas.d.ts.map +1 -1
- package/script/api/_schemas.js +3 -17
- package/script/api/_schemas.js.map +1 -1
- package/script/api/exchange/_methods/_base/execute.d.ts +1 -1
- package/script/api/exchange/_methods/_base/execute.d.ts.map +1 -1
- package/script/api/exchange/_methods/_base/execute.js.map +1 -1
- package/script/api/exchange/_methods/agentEnableDexAbstraction.d.ts.map +1 -1
- package/script/api/exchange/_methods/agentEnableDexAbstraction.js +10 -1
- package/script/api/exchange/_methods/agentEnableDexAbstraction.js.map +1 -1
- package/script/api/exchange/_methods/agentSetAbstraction.d.ts +7 -37
- package/script/api/exchange/_methods/agentSetAbstraction.d.ts.map +1 -1
- package/script/api/exchange/_methods/agentSetAbstraction.js +8 -9
- package/script/api/exchange/_methods/agentSetAbstraction.js.map +1 -1
- package/script/api/exchange/_methods/approveAgent.d.ts +19 -17
- package/script/api/exchange/_methods/approveAgent.d.ts.map +1 -1
- package/script/api/exchange/_methods/approveAgent.js +13 -16
- package/script/api/exchange/_methods/approveAgent.js.map +1 -1
- package/script/api/exchange/_methods/approveBuilderFee.d.ts +15 -10
- package/script/api/exchange/_methods/approveBuilderFee.d.ts.map +1 -1
- package/script/api/exchange/_methods/approveBuilderFee.js +9 -9
- package/script/api/exchange/_methods/approveBuilderFee.js.map +1 -1
- package/script/api/exchange/_methods/batchModify.d.ts +18 -192
- package/script/api/exchange/_methods/batchModify.d.ts.map +1 -1
- package/script/api/exchange/_methods/batchModify.js +19 -22
- package/script/api/exchange/_methods/batchModify.js.map +1 -1
- package/script/api/exchange/_methods/borrowLend.d.ts +9 -46
- package/script/api/exchange/_methods/borrowLend.d.ts.map +1 -1
- package/script/api/exchange/_methods/borrowLend.js +10 -9
- package/script/api/exchange/_methods/borrowLend.js.map +1 -1
- package/script/api/exchange/_methods/cDeposit.d.ts +14 -10
- package/script/api/exchange/_methods/cDeposit.d.ts.map +1 -1
- package/script/api/exchange/_methods/cDeposit.js +8 -9
- package/script/api/exchange/_methods/cDeposit.js.map +1 -1
- package/script/api/exchange/_methods/cSignerAction.d.ts +13 -61
- package/script/api/exchange/_methods/cSignerAction.d.ts.map +1 -1
- package/script/api/exchange/_methods/cSignerAction.js +11 -13
- package/script/api/exchange/_methods/cSignerAction.js.map +1 -1
- package/script/api/exchange/_methods/cValidatorAction.d.ts +18 -247
- package/script/api/exchange/_methods/cValidatorAction.d.ts.map +1 -1
- package/script/api/exchange/_methods/cValidatorAction.js +15 -18
- package/script/api/exchange/_methods/cValidatorAction.js.map +1 -1
- package/script/api/exchange/_methods/cWithdraw.d.ts +14 -10
- package/script/api/exchange/_methods/cWithdraw.d.ts.map +1 -1
- package/script/api/exchange/_methods/cWithdraw.js +8 -9
- package/script/api/exchange/_methods/cWithdraw.js.map +1 -1
- package/script/api/exchange/_methods/cancel.d.ts +7 -52
- package/script/api/exchange/_methods/cancel.d.ts.map +1 -1
- package/script/api/exchange/_methods/cancel.js +8 -9
- package/script/api/exchange/_methods/cancel.js.map +1 -1
- package/script/api/exchange/_methods/cancelByCloid.d.ts +9 -56
- package/script/api/exchange/_methods/cancelByCloid.d.ts.map +1 -1
- package/script/api/exchange/_methods/cancelByCloid.js +10 -13
- package/script/api/exchange/_methods/cancelByCloid.js.map +1 -1
- package/script/api/exchange/_methods/claimRewards.d.ts.map +1 -1
- package/script/api/exchange/_methods/claimRewards.js +10 -1
- package/script/api/exchange/_methods/claimRewards.js.map +1 -1
- package/script/api/exchange/_methods/convertToMultiSigUser.d.ts +19 -18
- package/script/api/exchange/_methods/convertToMultiSigUser.d.ts.map +1 -1
- package/script/api/exchange/_methods/convertToMultiSigUser.js +13 -17
- package/script/api/exchange/_methods/convertToMultiSigUser.js.map +1 -1
- package/script/api/exchange/_methods/createSubAccount.d.ts +7 -32
- package/script/api/exchange/_methods/createSubAccount.d.ts.map +1 -1
- package/script/api/exchange/_methods/createSubAccount.js +8 -9
- package/script/api/exchange/_methods/createSubAccount.js.map +1 -1
- package/script/api/exchange/_methods/createVault.d.ts +10 -58
- package/script/api/exchange/_methods/createVault.d.ts.map +1 -1
- package/script/api/exchange/_methods/createVault.js +11 -14
- package/script/api/exchange/_methods/createVault.js.map +1 -1
- package/script/api/exchange/_methods/evmUserModify.d.ts +7 -32
- package/script/api/exchange/_methods/evmUserModify.d.ts.map +1 -1
- package/script/api/exchange/_methods/evmUserModify.js +8 -9
- package/script/api/exchange/_methods/evmUserModify.js.map +1 -1
- package/script/api/exchange/_methods/linkStakingUser.d.ts +15 -10
- package/script/api/exchange/_methods/linkStakingUser.d.ts.map +1 -1
- package/script/api/exchange/_methods/linkStakingUser.js +9 -9
- package/script/api/exchange/_methods/linkStakingUser.js.map +1 -1
- package/script/api/exchange/_methods/modify.d.ts +14 -175
- package/script/api/exchange/_methods/modify.d.ts.map +1 -1
- package/script/api/exchange/_methods/modify.js +15 -18
- package/script/api/exchange/_methods/modify.js.map +1 -1
- package/script/api/exchange/_methods/noop.d.ts.map +1 -1
- package/script/api/exchange/_methods/noop.js +10 -1
- package/script/api/exchange/_methods/noop.js.map +1 -1
- package/script/api/exchange/_methods/order.d.ts +19 -212
- package/script/api/exchange/_methods/order.d.ts.map +1 -1
- package/script/api/exchange/_methods/order.js +18 -21
- package/script/api/exchange/_methods/order.js.map +1 -1
- package/script/api/exchange/_methods/perpDeploy.d.ts +62 -688
- package/script/api/exchange/_methods/perpDeploy.d.ts.map +1 -1
- package/script/api/exchange/_methods/perpDeploy.js +34 -20
- package/script/api/exchange/_methods/perpDeploy.js.map +1 -1
- package/script/api/exchange/_methods/registerReferrer.d.ts +7 -32
- package/script/api/exchange/_methods/registerReferrer.d.ts.map +1 -1
- package/script/api/exchange/_methods/registerReferrer.js +8 -9
- package/script/api/exchange/_methods/registerReferrer.js.map +1 -1
- package/script/api/exchange/_methods/reserveRequestWeight.d.ts +7 -32
- package/script/api/exchange/_methods/reserveRequestWeight.d.ts.map +1 -1
- package/script/api/exchange/_methods/reserveRequestWeight.js +8 -9
- package/script/api/exchange/_methods/reserveRequestWeight.js.map +1 -1
- package/script/api/exchange/_methods/scheduleCancel.d.ts +7 -37
- package/script/api/exchange/_methods/scheduleCancel.d.ts.map +1 -1
- package/script/api/exchange/_methods/scheduleCancel.js +5 -5
- package/script/api/exchange/_methods/scheduleCancel.js.map +1 -1
- package/script/api/exchange/_methods/sendAsset.d.ts +16 -14
- package/script/api/exchange/_methods/sendAsset.d.ts.map +1 -1
- package/script/api/exchange/_methods/sendAsset.js +12 -15
- package/script/api/exchange/_methods/sendAsset.js.map +1 -1
- package/script/api/exchange/_methods/sendToEvmWithData.d.ts +21 -19
- package/script/api/exchange/_methods/sendToEvmWithData.d.ts.map +1 -1
- package/script/api/exchange/_methods/sendToEvmWithData.js +15 -18
- package/script/api/exchange/_methods/sendToEvmWithData.js.map +1 -1
- package/script/api/exchange/_methods/setDisplayName.d.ts +7 -35
- package/script/api/exchange/_methods/setDisplayName.d.ts.map +1 -1
- package/script/api/exchange/_methods/setDisplayName.js +8 -9
- package/script/api/exchange/_methods/setDisplayName.js.map +1 -1
- package/script/api/exchange/_methods/setReferrer.d.ts +7 -32
- package/script/api/exchange/_methods/setReferrer.d.ts.map +1 -1
- package/script/api/exchange/_methods/setReferrer.js +8 -9
- package/script/api/exchange/_methods/setReferrer.js.map +1 -1
- package/script/api/exchange/_methods/spotDeploy.d.ts +22 -430
- package/script/api/exchange/_methods/spotDeploy.d.ts.map +1 -1
- package/script/api/exchange/_methods/spotDeploy.js +14 -17
- package/script/api/exchange/_methods/spotDeploy.js.map +1 -1
- package/script/api/exchange/_methods/spotSend.d.ts +16 -14
- package/script/api/exchange/_methods/spotSend.d.ts.map +1 -1
- package/script/api/exchange/_methods/spotSend.js +10 -13
- package/script/api/exchange/_methods/spotSend.js.map +1 -1
- package/script/api/exchange/_methods/spotUser.d.ts +7 -45
- package/script/api/exchange/_methods/spotUser.d.ts.map +1 -1
- package/script/api/exchange/_methods/spotUser.js +8 -9
- package/script/api/exchange/_methods/spotUser.js.map +1 -1
- package/script/api/exchange/_methods/subAccountModify.d.ts +8 -39
- package/script/api/exchange/_methods/subAccountModify.d.ts.map +1 -1
- package/script/api/exchange/_methods/subAccountModify.js +9 -9
- package/script/api/exchange/_methods/subAccountModify.js.map +1 -1
- package/script/api/exchange/_methods/subAccountSpotTransfer.d.ts +10 -58
- package/script/api/exchange/_methods/subAccountSpotTransfer.d.ts.map +1 -1
- package/script/api/exchange/_methods/subAccountSpotTransfer.js +11 -14
- package/script/api/exchange/_methods/subAccountSpotTransfer.js.map +1 -1
- package/script/api/exchange/_methods/subAccountTransfer.d.ts +9 -46
- package/script/api/exchange/_methods/subAccountTransfer.d.ts.map +1 -1
- package/script/api/exchange/_methods/subAccountTransfer.js +10 -9
- package/script/api/exchange/_methods/subAccountTransfer.js.map +1 -1
- package/script/api/exchange/_methods/tokenDelegate.d.ts +16 -10
- package/script/api/exchange/_methods/tokenDelegate.d.ts.map +1 -1
- package/script/api/exchange/_methods/tokenDelegate.js +10 -9
- package/script/api/exchange/_methods/tokenDelegate.js.map +1 -1
- package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts +8 -39
- package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.d.ts.map +1 -1
- package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.js +9 -9
- package/script/api/exchange/_methods/topUpIsolatedOnlyMargin.js.map +1 -1
- package/script/api/exchange/_methods/twapCancel.d.ts +8 -39
- package/script/api/exchange/_methods/twapCancel.d.ts.map +1 -1
- package/script/api/exchange/_methods/twapCancel.js +9 -9
- package/script/api/exchange/_methods/twapCancel.js.map +1 -1
- package/script/api/exchange/_methods/twapOrder.d.ts +13 -88
- package/script/api/exchange/_methods/twapOrder.d.ts.map +1 -1
- package/script/api/exchange/_methods/twapOrder.js +14 -17
- package/script/api/exchange/_methods/twapOrder.js.map +1 -1
- package/script/api/exchange/_methods/updateIsolatedMargin.d.ts +9 -46
- package/script/api/exchange/_methods/updateIsolatedMargin.d.ts.map +1 -1
- package/script/api/exchange/_methods/updateIsolatedMargin.js +10 -9
- package/script/api/exchange/_methods/updateIsolatedMargin.js.map +1 -1
- package/script/api/exchange/_methods/updateLeverage.d.ts +9 -46
- package/script/api/exchange/_methods/updateLeverage.d.ts.map +1 -1
- package/script/api/exchange/_methods/updateLeverage.js +10 -9
- package/script/api/exchange/_methods/updateLeverage.js.map +1 -1
- package/script/api/exchange/_methods/usdClassTransfer.d.ts +15 -10
- package/script/api/exchange/_methods/usdClassTransfer.d.ts.map +1 -1
- package/script/api/exchange/_methods/usdClassTransfer.js +9 -9
- package/script/api/exchange/_methods/usdClassTransfer.js.map +1 -1
- package/script/api/exchange/_methods/usdSend.d.ts +15 -10
- package/script/api/exchange/_methods/usdSend.d.ts.map +1 -1
- package/script/api/exchange/_methods/usdSend.js +9 -9
- package/script/api/exchange/_methods/usdSend.js.map +1 -1
- package/script/api/exchange/_methods/userDexAbstraction.d.ts +15 -10
- package/script/api/exchange/_methods/userDexAbstraction.d.ts.map +1 -1
- package/script/api/exchange/_methods/userDexAbstraction.js +9 -9
- package/script/api/exchange/_methods/userDexAbstraction.js.map +1 -1
- package/script/api/exchange/_methods/userPortfolioMargin.d.ts +15 -10
- package/script/api/exchange/_methods/userPortfolioMargin.d.ts.map +1 -1
- package/script/api/exchange/_methods/userPortfolioMargin.js +9 -9
- package/script/api/exchange/_methods/userPortfolioMargin.js.map +1 -1
- package/script/api/exchange/_methods/userSetAbstraction.d.ts +15 -10
- package/script/api/exchange/_methods/userSetAbstraction.d.ts.map +1 -1
- package/script/api/exchange/_methods/userSetAbstraction.js +9 -9
- package/script/api/exchange/_methods/userSetAbstraction.js.map +1 -1
- package/script/api/exchange/_methods/validatorL1Stream.d.ts +7 -32
- package/script/api/exchange/_methods/validatorL1Stream.d.ts.map +1 -1
- package/script/api/exchange/_methods/validatorL1Stream.js +8 -9
- package/script/api/exchange/_methods/validatorL1Stream.js.map +1 -1
- package/script/api/exchange/_methods/vaultDistribute.d.ts +8 -42
- package/script/api/exchange/_methods/vaultDistribute.d.ts.map +1 -1
- package/script/api/exchange/_methods/vaultDistribute.js +9 -9
- package/script/api/exchange/_methods/vaultDistribute.js.map +1 -1
- package/script/api/exchange/_methods/vaultModify.d.ts +9 -50
- package/script/api/exchange/_methods/vaultModify.d.ts.map +1 -1
- package/script/api/exchange/_methods/vaultModify.js +10 -13
- package/script/api/exchange/_methods/vaultModify.js.map +1 -1
- package/script/api/exchange/_methods/vaultTransfer.d.ts +9 -46
- package/script/api/exchange/_methods/vaultTransfer.d.ts.map +1 -1
- package/script/api/exchange/_methods/vaultTransfer.js +10 -9
- package/script/api/exchange/_methods/vaultTransfer.js.map +1 -1
- package/script/api/exchange/_methods/withdraw3.d.ts +15 -10
- package/script/api/exchange/_methods/withdraw3.d.ts.map +1 -1
- package/script/api/exchange/_methods/withdraw3.js +9 -9
- package/script/api/exchange/_methods/withdraw3.js.map +1 -1
- package/script/api/exchange/mod.d.ts +1 -1
- package/script/api/exchange/mod.d.ts.map +1 -1
- package/script/api/info/_methods/activeAssetData.d.ts +4 -4
- package/script/api/info/_methods/activeAssetData.js +4 -4
- package/script/api/info/_methods/alignedQuoteTokenInfo.d.ts +3 -4
- package/script/api/info/_methods/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/script/api/info/_methods/alignedQuoteTokenInfo.js +3 -4
- package/script/api/info/_methods/alignedQuoteTokenInfo.js.map +1 -1
- package/script/api/info/_methods/approvedBuilders.d.ts +3 -4
- package/script/api/info/_methods/approvedBuilders.d.ts.map +1 -1
- package/script/api/info/_methods/approvedBuilders.js +3 -4
- package/script/api/info/_methods/approvedBuilders.js.map +1 -1
- package/script/api/info/_methods/blockDetails.d.ts +4 -4
- package/script/api/info/_methods/blockDetails.js +4 -4
- package/script/api/info/_methods/borrowLendReserveState.d.ts +3 -4
- package/script/api/info/_methods/borrowLendReserveState.d.ts.map +1 -1
- package/script/api/info/_methods/borrowLendReserveState.js +3 -4
- package/script/api/info/_methods/borrowLendReserveState.js.map +1 -1
- package/script/api/info/_methods/borrowLendUserState.d.ts +3 -4
- package/script/api/info/_methods/borrowLendUserState.d.ts.map +1 -1
- package/script/api/info/_methods/borrowLendUserState.js +3 -4
- package/script/api/info/_methods/borrowLendUserState.js.map +1 -1
- package/script/api/info/_methods/candleSnapshot.d.ts +5 -8
- package/script/api/info/_methods/candleSnapshot.d.ts.map +1 -1
- package/script/api/info/_methods/candleSnapshot.js +5 -8
- package/script/api/info/_methods/candleSnapshot.js.map +1 -1
- package/script/api/info/_methods/clearinghouseState.d.ts +3 -4
- package/script/api/info/_methods/clearinghouseState.d.ts.map +1 -1
- package/script/api/info/_methods/clearinghouseState.js +3 -4
- package/script/api/info/_methods/clearinghouseState.js.map +1 -1
- package/script/api/info/_methods/delegations.d.ts +3 -4
- package/script/api/info/_methods/delegations.d.ts.map +1 -1
- package/script/api/info/_methods/delegations.js +3 -4
- package/script/api/info/_methods/delegations.js.map +1 -1
- package/script/api/info/_methods/delegatorHistory.d.ts +3 -4
- package/script/api/info/_methods/delegatorHistory.d.ts.map +1 -1
- package/script/api/info/_methods/delegatorHistory.js +3 -4
- package/script/api/info/_methods/delegatorHistory.js.map +1 -1
- package/script/api/info/_methods/delegatorRewards.d.ts +3 -4
- package/script/api/info/_methods/delegatorRewards.d.ts.map +1 -1
- package/script/api/info/_methods/delegatorRewards.js +3 -4
- package/script/api/info/_methods/delegatorRewards.js.map +1 -1
- package/script/api/info/_methods/delegatorSummary.d.ts +3 -4
- package/script/api/info/_methods/delegatorSummary.d.ts.map +1 -1
- package/script/api/info/_methods/delegatorSummary.js +3 -4
- package/script/api/info/_methods/delegatorSummary.js.map +1 -1
- package/script/api/info/_methods/extraAgents.d.ts +3 -4
- package/script/api/info/_methods/extraAgents.d.ts.map +1 -1
- package/script/api/info/_methods/extraAgents.js +3 -4
- package/script/api/info/_methods/extraAgents.js.map +1 -1
- package/script/api/info/_methods/frontendOpenOrders.d.ts +3 -4
- package/script/api/info/_methods/frontendOpenOrders.d.ts.map +1 -1
- package/script/api/info/_methods/frontendOpenOrders.js +3 -4
- package/script/api/info/_methods/frontendOpenOrders.js.map +1 -1
- package/script/api/info/_methods/fundingHistory.d.ts +4 -7
- package/script/api/info/_methods/fundingHistory.d.ts.map +1 -1
- package/script/api/info/_methods/fundingHistory.js +4 -7
- package/script/api/info/_methods/fundingHistory.js.map +1 -1
- package/script/api/info/_methods/historicalOrders.d.ts +3 -4
- package/script/api/info/_methods/historicalOrders.d.ts.map +1 -1
- package/script/api/info/_methods/historicalOrders.js +3 -4
- package/script/api/info/_methods/historicalOrders.js.map +1 -1
- package/script/api/info/_methods/isVip.d.ts +3 -4
- package/script/api/info/_methods/isVip.d.ts.map +1 -1
- package/script/api/info/_methods/isVip.js +3 -4
- package/script/api/info/_methods/isVip.js.map +1 -1
- package/script/api/info/_methods/l2Book.d.ts +4 -4
- package/script/api/info/_methods/l2Book.js +4 -4
- package/script/api/info/_methods/leadingVaults.d.ts +3 -4
- package/script/api/info/_methods/leadingVaults.d.ts.map +1 -1
- package/script/api/info/_methods/leadingVaults.js +3 -4
- package/script/api/info/_methods/leadingVaults.js.map +1 -1
- package/script/api/info/_methods/legalCheck.d.ts +3 -4
- package/script/api/info/_methods/legalCheck.d.ts.map +1 -1
- package/script/api/info/_methods/legalCheck.js +3 -4
- package/script/api/info/_methods/legalCheck.js.map +1 -1
- package/script/api/info/_methods/marginTable.d.ts +3 -4
- package/script/api/info/_methods/marginTable.d.ts.map +1 -1
- package/script/api/info/_methods/marginTable.js +3 -4
- package/script/api/info/_methods/marginTable.js.map +1 -1
- package/script/api/info/_methods/maxBuilderFee.d.ts +4 -4
- package/script/api/info/_methods/maxBuilderFee.js +4 -4
- package/script/api/info/_methods/openOrders.d.ts +3 -4
- package/script/api/info/_methods/openOrders.d.ts.map +1 -1
- package/script/api/info/_methods/openOrders.js +3 -4
- package/script/api/info/_methods/openOrders.js.map +1 -1
- package/script/api/info/_methods/orderStatus.d.ts +4 -4
- package/script/api/info/_methods/orderStatus.js +4 -4
- package/script/api/info/_methods/outcomeMeta.d.ts +3 -1
- package/script/api/info/_methods/outcomeMeta.d.ts.map +1 -1
- package/script/api/info/_methods/outcomeMeta.js.map +1 -1
- package/script/api/info/_methods/perpAnnotation.d.ts +56 -0
- package/script/api/info/_methods/perpAnnotation.d.ts.map +1 -0
- package/script/api/info/_methods/perpAnnotation.js +90 -0
- package/script/api/info/_methods/perpAnnotation.js.map +1 -0
- package/script/api/info/_methods/perpConciseAnnotations.d.ts +52 -0
- package/script/api/info/_methods/perpConciseAnnotations.d.ts.map +1 -0
- package/script/api/info/_methods/perpConciseAnnotations.js +84 -0
- package/script/api/info/_methods/perpConciseAnnotations.js.map +1 -0
- package/script/api/info/_methods/perpDexLimits.d.ts +3 -4
- package/script/api/info/_methods/perpDexLimits.d.ts.map +1 -1
- package/script/api/info/_methods/perpDexLimits.js +3 -4
- package/script/api/info/_methods/perpDexLimits.js.map +1 -1
- package/script/api/info/_methods/perpDexStatus.d.ts +3 -1
- package/script/api/info/_methods/perpDexStatus.d.ts.map +1 -1
- package/script/api/info/_methods/perpDexStatus.js +3 -1
- package/script/api/info/_methods/perpDexStatus.js.map +1 -1
- package/script/api/info/_methods/portfolio.d.ts +3 -4
- package/script/api/info/_methods/portfolio.d.ts.map +1 -1
- package/script/api/info/_methods/portfolio.js +3 -4
- package/script/api/info/_methods/portfolio.js.map +1 -1
- package/script/api/info/_methods/preTransferCheck.d.ts +4 -4
- package/script/api/info/_methods/preTransferCheck.js +4 -4
- package/script/api/info/_methods/recentTrades.d.ts +3 -4
- package/script/api/info/_methods/recentTrades.d.ts.map +1 -1
- package/script/api/info/_methods/recentTrades.js +3 -4
- package/script/api/info/_methods/recentTrades.js.map +1 -1
- package/script/api/info/_methods/referral.d.ts +3 -4
- package/script/api/info/_methods/referral.d.ts.map +1 -1
- package/script/api/info/_methods/referral.js +3 -4
- package/script/api/info/_methods/referral.js.map +1 -1
- package/script/api/info/_methods/spotClearinghouseState.d.ts +3 -4
- package/script/api/info/_methods/spotClearinghouseState.d.ts.map +1 -1
- package/script/api/info/_methods/spotClearinghouseState.js +3 -4
- package/script/api/info/_methods/spotClearinghouseState.js.map +1 -1
- package/script/api/info/_methods/spotDeployState.d.ts +3 -4
- package/script/api/info/_methods/spotDeployState.d.ts.map +1 -1
- package/script/api/info/_methods/spotDeployState.js +3 -4
- package/script/api/info/_methods/spotDeployState.js.map +1 -1
- package/script/api/info/_methods/subAccounts.d.ts +3 -4
- package/script/api/info/_methods/subAccounts.d.ts.map +1 -1
- package/script/api/info/_methods/subAccounts.js +3 -4
- package/script/api/info/_methods/subAccounts.js.map +1 -1
- package/script/api/info/_methods/subAccounts2.d.ts +3 -4
- package/script/api/info/_methods/subAccounts2.d.ts.map +1 -1
- package/script/api/info/_methods/subAccounts2.js +3 -4
- package/script/api/info/_methods/subAccounts2.js.map +1 -1
- package/script/api/info/_methods/tokenDetails.d.ts +3 -4
- package/script/api/info/_methods/tokenDetails.d.ts.map +1 -1
- package/script/api/info/_methods/tokenDetails.js +3 -4
- package/script/api/info/_methods/tokenDetails.js.map +1 -1
- package/script/api/info/_methods/twapHistory.d.ts +3 -4
- package/script/api/info/_methods/twapHistory.d.ts.map +1 -1
- package/script/api/info/_methods/twapHistory.js +3 -4
- package/script/api/info/_methods/twapHistory.js.map +1 -1
- package/script/api/info/_methods/txDetails.d.ts +4 -4
- package/script/api/info/_methods/txDetails.js +4 -4
- package/script/api/info/_methods/userAbstraction.d.ts +3 -4
- package/script/api/info/_methods/userAbstraction.d.ts.map +1 -1
- package/script/api/info/_methods/userAbstraction.js +3 -4
- package/script/api/info/_methods/userAbstraction.js.map +1 -1
- package/script/api/info/_methods/userBorrowLendInterest.d.ts +4 -7
- package/script/api/info/_methods/userBorrowLendInterest.d.ts.map +1 -1
- package/script/api/info/_methods/userBorrowLendInterest.js +4 -7
- package/script/api/info/_methods/userBorrowLendInterest.js.map +1 -1
- package/script/api/info/_methods/userDetails.d.ts +4 -4
- package/script/api/info/_methods/userDetails.js +4 -4
- package/script/api/info/_methods/userDexAbstraction.d.ts +3 -4
- package/script/api/info/_methods/userDexAbstraction.d.ts.map +1 -1
- package/script/api/info/_methods/userDexAbstraction.js +3 -4
- package/script/api/info/_methods/userDexAbstraction.js.map +1 -1
- package/script/api/info/_methods/userFees.d.ts +3 -4
- package/script/api/info/_methods/userFees.d.ts.map +1 -1
- package/script/api/info/_methods/userFees.js +3 -4
- package/script/api/info/_methods/userFees.js.map +1 -1
- package/script/api/info/_methods/userFills.d.ts +3 -4
- package/script/api/info/_methods/userFills.d.ts.map +1 -1
- package/script/api/info/_methods/userFills.js +3 -4
- package/script/api/info/_methods/userFills.js.map +1 -1
- package/script/api/info/_methods/userFillsByTime.d.ts +4 -7
- package/script/api/info/_methods/userFillsByTime.d.ts.map +1 -1
- package/script/api/info/_methods/userFillsByTime.js +4 -7
- package/script/api/info/_methods/userFillsByTime.js.map +1 -1
- package/script/api/info/_methods/userFunding.d.ts +3 -4
- package/script/api/info/_methods/userFunding.d.ts.map +1 -1
- package/script/api/info/_methods/userFunding.js +3 -4
- package/script/api/info/_methods/userFunding.js.map +1 -1
- package/script/api/info/_methods/userNonFundingLedgerUpdates.d.ts +17 -5
- package/script/api/info/_methods/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/script/api/info/_methods/userNonFundingLedgerUpdates.js +3 -4
- package/script/api/info/_methods/userNonFundingLedgerUpdates.js.map +1 -1
- package/script/api/info/_methods/userRateLimit.d.ts +3 -4
- package/script/api/info/_methods/userRateLimit.d.ts.map +1 -1
- package/script/api/info/_methods/userRateLimit.js +3 -4
- package/script/api/info/_methods/userRateLimit.js.map +1 -1
- package/script/api/info/_methods/userRole.d.ts +3 -4
- package/script/api/info/_methods/userRole.d.ts.map +1 -1
- package/script/api/info/_methods/userRole.js +3 -4
- package/script/api/info/_methods/userRole.js.map +1 -1
- package/script/api/info/_methods/userToMultiSigSigners.d.ts +3 -4
- package/script/api/info/_methods/userToMultiSigSigners.d.ts.map +1 -1
- package/script/api/info/_methods/userToMultiSigSigners.js +3 -4
- package/script/api/info/_methods/userToMultiSigSigners.js.map +1 -1
- package/script/api/info/_methods/userTwapSliceFills.d.ts +3 -4
- package/script/api/info/_methods/userTwapSliceFills.d.ts.map +1 -1
- package/script/api/info/_methods/userTwapSliceFills.js +3 -4
- package/script/api/info/_methods/userTwapSliceFills.js.map +1 -1
- package/script/api/info/_methods/userTwapSliceFillsByTime.d.ts +4 -7
- package/script/api/info/_methods/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/script/api/info/_methods/userTwapSliceFillsByTime.js +4 -7
- package/script/api/info/_methods/userTwapSliceFillsByTime.js.map +1 -1
- package/script/api/info/_methods/userVaultEquities.d.ts +3 -4
- package/script/api/info/_methods/userVaultEquities.d.ts.map +1 -1
- package/script/api/info/_methods/userVaultEquities.js +3 -4
- package/script/api/info/_methods/userVaultEquities.js.map +1 -1
- package/script/api/info/_methods/vaultDetails.d.ts +3 -4
- package/script/api/info/_methods/vaultDetails.d.ts.map +1 -1
- package/script/api/info/_methods/vaultDetails.js +3 -4
- package/script/api/info/_methods/vaultDetails.js.map +1 -1
- package/script/api/info/_methods/webData2.d.ts +3 -4
- package/script/api/info/_methods/webData2.d.ts.map +1 -1
- package/script/api/info/_methods/webData2.js +3 -4
- package/script/api/info/_methods/webData2.js.map +1 -1
- package/script/api/info/client.d.ts +49 -0
- package/script/api/info/client.d.ts.map +1 -1
- package/script/api/info/client.js +51 -0
- package/script/api/info/client.js.map +1 -1
- package/script/api/info/mod.d.ts +2 -0
- package/script/api/info/mod.d.ts.map +1 -1
- package/script/api/info/mod.js +2 -0
- package/script/api/info/mod.js.map +1 -1
- package/script/api/subscription/_methods/l2Book.d.ts +19 -33
- package/script/api/subscription/_methods/l2Book.d.ts.map +1 -1
- package/script/api/subscription/_methods/l2Book.js +2 -3
- package/script/api/subscription/_methods/l2Book.js.map +1 -1
- package/script/api/subscription/_methods/spotState.d.ts +1 -1
- package/script/api/subscription/_methods/spotState.js +2 -2
- package/script/api/subscription/_methods/spotState.js.map +1 -1
- package/script/api/subscription/_methods/userFundings.d.ts +1 -1
- package/script/api/subscription/_methods/userFundings.d.ts.map +1 -1
- package/script/signing/_abstractWallet.d.ts.map +1 -1
- package/script/signing/_abstractWallet.js +11 -1
- package/script/signing/_abstractWallet.js.map +1 -1
- package/script/transport/websocket/_postRequest.d.ts.map +1 -1
- package/script/transport/websocket/_postRequest.js +9 -0
- package/script/transport/websocket/_postRequest.js.map +1 -1
- package/script/utils/_format.d.ts +1 -0
- package/script/utils/_format.d.ts.map +1 -1
- package/script/utils/_format.js +1 -0
- package/script/utils/_format.js.map +1 -1
- package/script/utils/mod.d.ts +1 -1
- package/script/utils/mod.d.ts.map +1 -1
- package/script/utils/mod.js +4 -1
- package/script/utils/mod.js.map +1 -1
- package/src/_base.ts +1 -1
- package/src/api/_schemas.ts +1 -16
- package/src/api/exchange/_methods/_base/execute.ts +3 -1
- package/src/api/exchange/_methods/agentEnableDexAbstraction.ts +8 -1
- package/src/api/exchange/_methods/agentSetAbstraction.ts +9 -13
- package/src/api/exchange/_methods/approveAgent.ts +14 -22
- package/src/api/exchange/_methods/approveBuilderFee.ts +10 -15
- package/src/api/exchange/_methods/batchModify.ts +20 -26
- package/src/api/exchange/_methods/borrowLend.ts +11 -13
- package/src/api/exchange/_methods/cDeposit.ts +9 -15
- package/src/api/exchange/_methods/cSignerAction.ts +14 -16
- package/src/api/exchange/_methods/cValidatorAction.ts +18 -21
- package/src/api/exchange/_methods/cWithdraw.ts +9 -15
- package/src/api/exchange/_methods/cancel.ts +9 -13
- package/src/api/exchange/_methods/cancelByCloid.ts +11 -17
- package/src/api/exchange/_methods/claimRewards.ts +8 -1
- package/src/api/exchange/_methods/convertToMultiSigUser.ts +14 -23
- package/src/api/exchange/_methods/createSubAccount.ts +9 -13
- package/src/api/exchange/_methods/createVault.ts +12 -18
- package/src/api/exchange/_methods/evmUserModify.ts +9 -13
- package/src/api/exchange/_methods/linkStakingUser.ts +10 -15
- package/src/api/exchange/_methods/modify.ts +16 -22
- package/src/api/exchange/_methods/noop.ts +8 -1
- package/src/api/exchange/_methods/order.ts +21 -27
- package/src/api/exchange/_methods/perpDeploy.ts +37 -23
- package/src/api/exchange/_methods/registerReferrer.ts +9 -13
- package/src/api/exchange/_methods/reserveRequestWeight.ts +9 -13
- package/src/api/exchange/_methods/scheduleCancel.ts +9 -13
- package/src/api/exchange/_methods/sendAsset.ts +13 -21
- package/src/api/exchange/_methods/sendToEvmWithData.ts +16 -24
- package/src/api/exchange/_methods/setDisplayName.ts +9 -13
- package/src/api/exchange/_methods/setReferrer.ts +9 -13
- package/src/api/exchange/_methods/spotDeploy.ts +17 -20
- package/src/api/exchange/_methods/spotSend.ts +11 -19
- package/src/api/exchange/_methods/spotUser.ts +9 -13
- package/src/api/exchange/_methods/subAccountModify.ts +10 -13
- package/src/api/exchange/_methods/subAccountSpotTransfer.ts +12 -18
- package/src/api/exchange/_methods/subAccountTransfer.ts +11 -13
- package/src/api/exchange/_methods/tokenDelegate.ts +11 -15
- package/src/api/exchange/_methods/topUpIsolatedOnlyMargin.ts +10 -13
- package/src/api/exchange/_methods/twapCancel.ts +10 -13
- package/src/api/exchange/_methods/twapOrder.ts +15 -21
- package/src/api/exchange/_methods/updateIsolatedMargin.ts +11 -13
- package/src/api/exchange/_methods/updateLeverage.ts +11 -13
- package/src/api/exchange/_methods/usdClassTransfer.ts +10 -15
- package/src/api/exchange/_methods/usdSend.ts +10 -15
- package/src/api/exchange/_methods/userDexAbstraction.ts +10 -15
- package/src/api/exchange/_methods/userPortfolioMargin.ts +10 -15
- package/src/api/exchange/_methods/userSetAbstraction.ts +10 -15
- package/src/api/exchange/_methods/validatorL1Stream.ts +9 -13
- package/src/api/exchange/_methods/vaultDistribute.ts +10 -13
- package/src/api/exchange/_methods/vaultModify.ts +11 -17
- package/src/api/exchange/_methods/vaultTransfer.ts +11 -13
- package/src/api/exchange/_methods/withdraw3.ts +10 -15
- package/src/api/exchange/mod.ts +1 -1
- package/src/api/info/_methods/activeAssetData.ts +4 -4
- package/src/api/info/_methods/alignedQuoteTokenInfo.ts +3 -4
- package/src/api/info/_methods/approvedBuilders.ts +3 -4
- package/src/api/info/_methods/blockDetails.ts +4 -4
- package/src/api/info/_methods/borrowLendReserveState.ts +3 -4
- package/src/api/info/_methods/borrowLendUserState.ts +3 -4
- package/src/api/info/_methods/candleSnapshot.ts +5 -8
- package/src/api/info/_methods/clearinghouseState.ts +3 -4
- package/src/api/info/_methods/delegations.ts +3 -4
- package/src/api/info/_methods/delegatorHistory.ts +3 -4
- package/src/api/info/_methods/delegatorRewards.ts +3 -4
- package/src/api/info/_methods/delegatorSummary.ts +3 -4
- package/src/api/info/_methods/extraAgents.ts +3 -4
- package/src/api/info/_methods/frontendOpenOrders.ts +3 -4
- package/src/api/info/_methods/fundingHistory.ts +4 -7
- package/src/api/info/_methods/historicalOrders.ts +3 -4
- package/src/api/info/_methods/isVip.ts +3 -4
- package/src/api/info/_methods/l2Book.ts +4 -4
- package/src/api/info/_methods/leadingVaults.ts +3 -4
- package/src/api/info/_methods/legalCheck.ts +3 -4
- package/src/api/info/_methods/marginTable.ts +3 -4
- package/src/api/info/_methods/maxBuilderFee.ts +4 -4
- package/src/api/info/_methods/openOrders.ts +3 -4
- package/src/api/info/_methods/orderStatus.ts +4 -4
- package/src/api/info/_methods/outcomeMeta.ts +3 -1
- package/src/api/info/_methods/perpAnnotation.ts +81 -0
- package/src/api/info/_methods/perpConciseAnnotations.ts +74 -0
- package/src/api/info/_methods/perpDexLimits.ts +3 -4
- package/src/api/info/_methods/perpDexStatus.ts +3 -1
- package/src/api/info/_methods/portfolio.ts +3 -4
- package/src/api/info/_methods/preTransferCheck.ts +4 -4
- package/src/api/info/_methods/recentTrades.ts +3 -4
- package/src/api/info/_methods/referral.ts +3 -4
- package/src/api/info/_methods/spotClearinghouseState.ts +3 -4
- package/src/api/info/_methods/spotDeployState.ts +3 -4
- package/src/api/info/_methods/subAccounts.ts +3 -4
- package/src/api/info/_methods/subAccounts2.ts +3 -4
- package/src/api/info/_methods/tokenDetails.ts +3 -4
- package/src/api/info/_methods/twapHistory.ts +3 -4
- package/src/api/info/_methods/txDetails.ts +4 -4
- package/src/api/info/_methods/userAbstraction.ts +3 -4
- package/src/api/info/_methods/userBorrowLendInterest.ts +4 -7
- package/src/api/info/_methods/userDetails.ts +4 -4
- package/src/api/info/_methods/userDexAbstraction.ts +3 -4
- package/src/api/info/_methods/userFees.ts +3 -4
- package/src/api/info/_methods/userFills.ts +3 -4
- package/src/api/info/_methods/userFillsByTime.ts +4 -7
- package/src/api/info/_methods/userFunding.ts +3 -4
- package/src/api/info/_methods/userNonFundingLedgerUpdates.ts +18 -5
- package/src/api/info/_methods/userRateLimit.ts +3 -4
- package/src/api/info/_methods/userRole.ts +3 -4
- package/src/api/info/_methods/userToMultiSigSigners.ts +3 -4
- package/src/api/info/_methods/userTwapSliceFills.ts +3 -4
- package/src/api/info/_methods/userTwapSliceFillsByTime.ts +4 -7
- package/src/api/info/_methods/userVaultEquities.ts +3 -4
- package/src/api/info/_methods/vaultDetails.ts +3 -4
- package/src/api/info/_methods/webData2.ts +3 -4
- package/src/api/info/client.ts +64 -0
- package/src/api/info/mod.ts +2 -0
- package/src/api/subscription/_methods/l2Book.ts +19 -32
- package/src/api/subscription/_methods/spotState.ts +2 -2
- package/src/api/subscription/_methods/userFundings.ts +1 -1
- package/src/signing/_abstractWallet.ts +11 -3
- package/src/transport/websocket/_postRequest.ts +16 -0
- package/src/utils/_format.ts +1 -1
- package/src/utils/mod.ts +1 -1
|
@@ -161,6 +161,22 @@ export declare const PerpDeployRequest: v.ObjectSchema<{
|
|
|
161
161
|
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
162
162
|
/** A list (sorted by key) of asset and growth modes. */
|
|
163
163
|
readonly setGrowthModes: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
164
|
+
}, undefined>, v.ObjectSchema<{
|
|
165
|
+
/** Type of action. */
|
|
166
|
+
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
167
|
+
/** Parameters for setting a perp annotation. */
|
|
168
|
+
readonly setPerpAnnotation: v.ObjectSchema<{
|
|
169
|
+
/** Coin symbol for the asset to annotate. */
|
|
170
|
+
readonly coin: v.StringSchema<undefined>;
|
|
171
|
+
/** Classification label (max 15 characters). */
|
|
172
|
+
readonly category: v.StringSchema<undefined>;
|
|
173
|
+
/** Detailed description (max 400 characters). */
|
|
174
|
+
readonly description: v.StringSchema<undefined>;
|
|
175
|
+
/** Display name for frontends to use instead of the L1 name, or null to ignore. */
|
|
176
|
+
readonly displayName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
177
|
+
/** Keywords used as hints to match against searches. */
|
|
178
|
+
readonly keywords: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
179
|
+
}, undefined>;
|
|
164
180
|
}, undefined>], undefined>;
|
|
165
181
|
/** Nonce (timestamp in ms) used to prevent replay attacks. */
|
|
166
182
|
readonly nonce: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
@@ -181,8 +197,8 @@ export type PerpDeployRequest = v.InferOutput<typeof PerpDeployRequest>;
|
|
|
181
197
|
export type PerpDeployResponse = SuccessResponse | ErrorResponse;
|
|
182
198
|
import type { ExcludeErrorResponse } from "./_base/errors.js";
|
|
183
199
|
import { type ExchangeConfig, type ExtractRequestOptions } from "./_base/execute.js";
|
|
184
|
-
/** Schema for
|
|
185
|
-
declare const
|
|
200
|
+
/** Schema for action fields (excludes request-level system fields). */
|
|
201
|
+
declare const PerpDeployActionSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
186
202
|
/** Type of action. */
|
|
187
203
|
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
188
204
|
/** Parameters for registering a new perpetual asset (v2). */
|
|
@@ -214,133 +230,7 @@ declare const PerpDeployParameters: v.UnionSchema<((Omit<v.ObjectSchema<{
|
|
|
214
230
|
readonly oracleUpdater: v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, undefined>;
|
|
215
231
|
}, undefined>, undefined>;
|
|
216
232
|
}, undefined>;
|
|
217
|
-
}, undefined>,
|
|
218
|
-
readonly entries: Omit<{
|
|
219
|
-
/** Type of action. */
|
|
220
|
-
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
221
|
-
/** Parameters for registering a new perpetual asset (v2). */
|
|
222
|
-
readonly registerAsset2: v.ObjectSchema<{
|
|
223
|
-
/** Max gas in native token wei. If not provided, then uses current deploy auction price. */
|
|
224
|
-
readonly maxGas: v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
225
|
-
/** Contains new asset listing parameters. */
|
|
226
|
-
readonly assetRequest: v.ObjectSchema<{
|
|
227
|
-
/** Coin symbol for the new asset. */
|
|
228
|
-
readonly coin: v.StringSchema<undefined>;
|
|
229
|
-
/** Number of decimal places for size. */
|
|
230
|
-
readonly szDecimals: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
231
|
-
/** Initial oracle price for the asset. */
|
|
232
|
-
readonly oraclePx: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>;
|
|
233
|
-
/** Margin table identifier for risk management. */
|
|
234
|
-
readonly marginTableId: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
235
|
-
/** 'strictIsolated' does not allow withdrawing of isolated margin from open position. */
|
|
236
|
-
readonly marginMode: v.PicklistSchema<["strictIsolated", "noCross"], undefined>;
|
|
237
|
-
}, undefined>;
|
|
238
|
-
/** Name of the dex. */
|
|
239
|
-
readonly dex: v.StringSchema<undefined>;
|
|
240
|
-
/** Contains new dex parameters. */
|
|
241
|
-
readonly schema: v.NullableSchema<v.ObjectSchema<{
|
|
242
|
-
/** Full name of the dex. */
|
|
243
|
-
readonly fullName: v.StringSchema<undefined>;
|
|
244
|
-
/** Collateral token index. */
|
|
245
|
-
readonly collateralToken: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
246
|
-
/** User to update oracles. If not provided, then deployer is assumed to be oracle updater. */
|
|
247
|
-
readonly oracleUpdater: v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, undefined>;
|
|
248
|
-
}, undefined>, undefined>;
|
|
249
|
-
}, undefined>;
|
|
250
|
-
}, "type">;
|
|
251
|
-
readonly "~standard": v.StandardProps<{
|
|
252
|
-
registerAsset2: {
|
|
253
|
-
maxGas: string | number | null;
|
|
254
|
-
assetRequest: {
|
|
255
|
-
coin: string;
|
|
256
|
-
szDecimals: string | number;
|
|
257
|
-
oraclePx: string | number;
|
|
258
|
-
marginTableId: string | number;
|
|
259
|
-
marginMode: "strictIsolated" | "noCross";
|
|
260
|
-
};
|
|
261
|
-
dex: string;
|
|
262
|
-
schema: {
|
|
263
|
-
fullName: string;
|
|
264
|
-
collateralToken: string | number;
|
|
265
|
-
oracleUpdater: string | null;
|
|
266
|
-
} | null;
|
|
267
|
-
};
|
|
268
|
-
}, {
|
|
269
|
-
registerAsset2: {
|
|
270
|
-
maxGas: number | null;
|
|
271
|
-
assetRequest: {
|
|
272
|
-
coin: string;
|
|
273
|
-
szDecimals: number;
|
|
274
|
-
oraclePx: string;
|
|
275
|
-
marginTableId: number;
|
|
276
|
-
marginMode: "strictIsolated" | "noCross";
|
|
277
|
-
};
|
|
278
|
-
dex: string;
|
|
279
|
-
schema: {
|
|
280
|
-
fullName: string;
|
|
281
|
-
collateralToken: number;
|
|
282
|
-
oracleUpdater: `0x${string}` | null;
|
|
283
|
-
} | null;
|
|
284
|
-
};
|
|
285
|
-
}>;
|
|
286
|
-
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
287
|
-
registerAsset2: {
|
|
288
|
-
maxGas: number | null;
|
|
289
|
-
assetRequest: {
|
|
290
|
-
coin: string;
|
|
291
|
-
szDecimals: number;
|
|
292
|
-
oraclePx: string;
|
|
293
|
-
marginTableId: number;
|
|
294
|
-
marginMode: "strictIsolated" | "noCross";
|
|
295
|
-
};
|
|
296
|
-
dex: string;
|
|
297
|
-
schema: {
|
|
298
|
-
fullName: string;
|
|
299
|
-
collateralToken: number;
|
|
300
|
-
oracleUpdater: `0x${string}` | null;
|
|
301
|
-
} | null;
|
|
302
|
-
};
|
|
303
|
-
}, v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.LengthIssue<`0x${string}`, 42> | v.PicklistIssue | v.ObjectIssue>;
|
|
304
|
-
readonly "~types"?: {
|
|
305
|
-
readonly input: {
|
|
306
|
-
registerAsset2: {
|
|
307
|
-
maxGas: string | number | null;
|
|
308
|
-
assetRequest: {
|
|
309
|
-
coin: string;
|
|
310
|
-
szDecimals: string | number;
|
|
311
|
-
oraclePx: string | number;
|
|
312
|
-
marginTableId: string | number;
|
|
313
|
-
marginMode: "strictIsolated" | "noCross";
|
|
314
|
-
};
|
|
315
|
-
dex: string;
|
|
316
|
-
schema: {
|
|
317
|
-
fullName: string;
|
|
318
|
-
collateralToken: string | number;
|
|
319
|
-
oracleUpdater: string | null;
|
|
320
|
-
} | null;
|
|
321
|
-
};
|
|
322
|
-
};
|
|
323
|
-
readonly output: {
|
|
324
|
-
registerAsset2: {
|
|
325
|
-
maxGas: number | null;
|
|
326
|
-
assetRequest: {
|
|
327
|
-
coin: string;
|
|
328
|
-
szDecimals: number;
|
|
329
|
-
oraclePx: string;
|
|
330
|
-
marginTableId: number;
|
|
331
|
-
marginMode: "strictIsolated" | "noCross";
|
|
332
|
-
};
|
|
333
|
-
dex: string;
|
|
334
|
-
schema: {
|
|
335
|
-
fullName: string;
|
|
336
|
-
collateralToken: number;
|
|
337
|
-
oracleUpdater: `0x${string}` | null;
|
|
338
|
-
} | null;
|
|
339
|
-
};
|
|
340
|
-
};
|
|
341
|
-
readonly issue: v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.LengthIssue<`0x${string}`, 42> | v.PicklistIssue | v.ObjectIssue;
|
|
342
|
-
} | undefined;
|
|
343
|
-
}) | (Omit<v.ObjectSchema<{
|
|
233
|
+
}, undefined>, v.ObjectSchema<{
|
|
344
234
|
/** Type of action. */
|
|
345
235
|
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
346
236
|
/** Parameters for registering a new perpetual asset. */
|
|
@@ -372,133 +262,7 @@ declare const PerpDeployParameters: v.UnionSchema<((Omit<v.ObjectSchema<{
|
|
|
372
262
|
readonly oracleUpdater: v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, undefined>;
|
|
373
263
|
}, undefined>, undefined>;
|
|
374
264
|
}, undefined>;
|
|
375
|
-
}, undefined>,
|
|
376
|
-
readonly entries: Omit<{
|
|
377
|
-
/** Type of action. */
|
|
378
|
-
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
379
|
-
/** Parameters for registering a new perpetual asset. */
|
|
380
|
-
readonly registerAsset: v.ObjectSchema<{
|
|
381
|
-
/** Max gas in native token wei. If not provided, then uses current deploy auction price. */
|
|
382
|
-
readonly maxGas: v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
383
|
-
/** Contains new asset listing parameters. */
|
|
384
|
-
readonly assetRequest: v.ObjectSchema<{
|
|
385
|
-
/** Coin symbol for the new asset. */
|
|
386
|
-
readonly coin: v.StringSchema<undefined>;
|
|
387
|
-
/** Number of decimal places for size. */
|
|
388
|
-
readonly szDecimals: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
389
|
-
/** Initial oracle price for the asset. */
|
|
390
|
-
readonly oraclePx: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>;
|
|
391
|
-
/** Margin table identifier for risk management. */
|
|
392
|
-
readonly marginTableId: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
393
|
-
/** Whether the asset can only be traded with isolated margin. */
|
|
394
|
-
readonly onlyIsolated: v.BooleanSchema<undefined>;
|
|
395
|
-
}, undefined>;
|
|
396
|
-
/** Name of the dex. */
|
|
397
|
-
readonly dex: v.StringSchema<undefined>;
|
|
398
|
-
/** Contains new dex parameters. */
|
|
399
|
-
readonly schema: v.NullableSchema<v.ObjectSchema<{
|
|
400
|
-
/** Full name of the dex. */
|
|
401
|
-
readonly fullName: v.StringSchema<undefined>;
|
|
402
|
-
/** Collateral token index. */
|
|
403
|
-
readonly collateralToken: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>;
|
|
404
|
-
/** User to update oracles. If not provided, then deployer is assumed to be oracle updater. */
|
|
405
|
-
readonly oracleUpdater: v.NullableSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, undefined>;
|
|
406
|
-
}, undefined>, undefined>;
|
|
407
|
-
}, undefined>;
|
|
408
|
-
}, "type">;
|
|
409
|
-
readonly "~standard": v.StandardProps<{
|
|
410
|
-
registerAsset: {
|
|
411
|
-
maxGas: string | number | null;
|
|
412
|
-
assetRequest: {
|
|
413
|
-
coin: string;
|
|
414
|
-
szDecimals: string | number;
|
|
415
|
-
oraclePx: string | number;
|
|
416
|
-
marginTableId: string | number;
|
|
417
|
-
onlyIsolated: boolean;
|
|
418
|
-
};
|
|
419
|
-
dex: string;
|
|
420
|
-
schema: {
|
|
421
|
-
fullName: string;
|
|
422
|
-
collateralToken: string | number;
|
|
423
|
-
oracleUpdater: string | null;
|
|
424
|
-
} | null;
|
|
425
|
-
};
|
|
426
|
-
}, {
|
|
427
|
-
registerAsset: {
|
|
428
|
-
maxGas: number | null;
|
|
429
|
-
assetRequest: {
|
|
430
|
-
coin: string;
|
|
431
|
-
szDecimals: number;
|
|
432
|
-
oraclePx: string;
|
|
433
|
-
marginTableId: number;
|
|
434
|
-
onlyIsolated: boolean;
|
|
435
|
-
};
|
|
436
|
-
dex: string;
|
|
437
|
-
schema: {
|
|
438
|
-
fullName: string;
|
|
439
|
-
collateralToken: number;
|
|
440
|
-
oracleUpdater: `0x${string}` | null;
|
|
441
|
-
} | null;
|
|
442
|
-
};
|
|
443
|
-
}>;
|
|
444
|
-
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
445
|
-
registerAsset: {
|
|
446
|
-
maxGas: number | null;
|
|
447
|
-
assetRequest: {
|
|
448
|
-
coin: string;
|
|
449
|
-
szDecimals: number;
|
|
450
|
-
oraclePx: string;
|
|
451
|
-
marginTableId: number;
|
|
452
|
-
onlyIsolated: boolean;
|
|
453
|
-
};
|
|
454
|
-
dex: string;
|
|
455
|
-
schema: {
|
|
456
|
-
fullName: string;
|
|
457
|
-
collateralToken: number;
|
|
458
|
-
oracleUpdater: `0x${string}` | null;
|
|
459
|
-
} | null;
|
|
460
|
-
};
|
|
461
|
-
}, v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.LengthIssue<`0x${string}`, 42> | v.ObjectIssue | v.BooleanIssue>;
|
|
462
|
-
readonly "~types"?: {
|
|
463
|
-
readonly input: {
|
|
464
|
-
registerAsset: {
|
|
465
|
-
maxGas: string | number | null;
|
|
466
|
-
assetRequest: {
|
|
467
|
-
coin: string;
|
|
468
|
-
szDecimals: string | number;
|
|
469
|
-
oraclePx: string | number;
|
|
470
|
-
marginTableId: string | number;
|
|
471
|
-
onlyIsolated: boolean;
|
|
472
|
-
};
|
|
473
|
-
dex: string;
|
|
474
|
-
schema: {
|
|
475
|
-
fullName: string;
|
|
476
|
-
collateralToken: string | number;
|
|
477
|
-
oracleUpdater: string | null;
|
|
478
|
-
} | null;
|
|
479
|
-
};
|
|
480
|
-
};
|
|
481
|
-
readonly output: {
|
|
482
|
-
registerAsset: {
|
|
483
|
-
maxGas: number | null;
|
|
484
|
-
assetRequest: {
|
|
485
|
-
coin: string;
|
|
486
|
-
szDecimals: number;
|
|
487
|
-
oraclePx: string;
|
|
488
|
-
marginTableId: number;
|
|
489
|
-
onlyIsolated: boolean;
|
|
490
|
-
};
|
|
491
|
-
dex: string;
|
|
492
|
-
schema: {
|
|
493
|
-
fullName: string;
|
|
494
|
-
collateralToken: number;
|
|
495
|
-
oracleUpdater: `0x${string}` | null;
|
|
496
|
-
} | null;
|
|
497
|
-
};
|
|
498
|
-
};
|
|
499
|
-
readonly issue: v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.LengthIssue<`0x${string}`, 42> | v.ObjectIssue | v.BooleanIssue;
|
|
500
|
-
} | undefined;
|
|
501
|
-
}) | (Omit<v.ObjectSchema<{
|
|
265
|
+
}, undefined>, v.ObjectSchema<{
|
|
502
266
|
/** Type of action. */
|
|
503
267
|
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
504
268
|
/** Parameters for setting oracle and mark prices for assets. */
|
|
@@ -512,123 +276,17 @@ declare const PerpDeployParameters: v.UnionSchema<((Omit<v.ObjectSchema<{
|
|
|
512
276
|
/** A list (sorted by key) of asset and external prices which prevent sudden mark price deviations. */
|
|
513
277
|
readonly externalPerpPxs: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>], undefined>, undefined>;
|
|
514
278
|
}, undefined>;
|
|
515
|
-
}, undefined>,
|
|
516
|
-
readonly entries: Omit<{
|
|
517
|
-
/** Type of action. */
|
|
518
|
-
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
519
|
-
/** Parameters for setting oracle and mark prices for assets. */
|
|
520
|
-
readonly setOracle: v.ObjectSchema<{
|
|
521
|
-
/** Name of the dex. */
|
|
522
|
-
readonly dex: v.StringSchema<undefined>;
|
|
523
|
-
/** A list (sorted by key) of asset and oracle prices. */
|
|
524
|
-
readonly oraclePxs: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>], undefined>, undefined>;
|
|
525
|
-
/** An outer list of inner lists (inner list sorted by key) of asset and mark prices. */
|
|
526
|
-
readonly markPxs: v.ArraySchema<v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>], undefined>, undefined>, undefined>;
|
|
527
|
-
/** A list (sorted by key) of asset and external prices which prevent sudden mark price deviations. */
|
|
528
|
-
readonly externalPerpPxs: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>], undefined>, undefined>;
|
|
529
|
-
}, undefined>;
|
|
530
|
-
}, "type">;
|
|
531
|
-
readonly "~standard": v.StandardProps<{
|
|
532
|
-
setOracle: {
|
|
533
|
-
dex: string;
|
|
534
|
-
oraclePxs: [string, string | number][];
|
|
535
|
-
markPxs: [string, string | number][][];
|
|
536
|
-
externalPerpPxs: [string, string | number][];
|
|
537
|
-
};
|
|
538
|
-
}, {
|
|
539
|
-
setOracle: {
|
|
540
|
-
dex: string;
|
|
541
|
-
oraclePxs: [string, string][];
|
|
542
|
-
markPxs: [string, string][][];
|
|
543
|
-
externalPerpPxs: [string, string][];
|
|
544
|
-
};
|
|
545
|
-
}>;
|
|
546
|
-
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
547
|
-
setOracle: {
|
|
548
|
-
dex: string;
|
|
549
|
-
oraclePxs: [string, string][];
|
|
550
|
-
markPxs: [string, string][][];
|
|
551
|
-
externalPerpPxs: [string, string][];
|
|
552
|
-
};
|
|
553
|
-
}, v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ObjectIssue | v.ArrayIssue | v.TupleIssue>;
|
|
554
|
-
readonly "~types"?: {
|
|
555
|
-
readonly input: {
|
|
556
|
-
setOracle: {
|
|
557
|
-
dex: string;
|
|
558
|
-
oraclePxs: [string, string | number][];
|
|
559
|
-
markPxs: [string, string | number][][];
|
|
560
|
-
externalPerpPxs: [string, string | number][];
|
|
561
|
-
};
|
|
562
|
-
};
|
|
563
|
-
readonly output: {
|
|
564
|
-
setOracle: {
|
|
565
|
-
dex: string;
|
|
566
|
-
oraclePxs: [string, string][];
|
|
567
|
-
markPxs: [string, string][][];
|
|
568
|
-
externalPerpPxs: [string, string][];
|
|
569
|
-
};
|
|
570
|
-
};
|
|
571
|
-
readonly issue: v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ObjectIssue | v.ArrayIssue | v.TupleIssue;
|
|
572
|
-
} | undefined;
|
|
573
|
-
}) | (Omit<v.ObjectSchema<{
|
|
279
|
+
}, undefined>, v.ObjectSchema<{
|
|
574
280
|
/** Type of action. */
|
|
575
281
|
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
576
282
|
/** A list (sorted by key) of asset and funding multiplier. */
|
|
577
283
|
readonly setFundingMultipliers: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>], undefined>, undefined>;
|
|
578
|
-
}, undefined>,
|
|
579
|
-
readonly entries: Omit<{
|
|
580
|
-
/** Type of action. */
|
|
581
|
-
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
582
|
-
/** A list (sorted by key) of asset and funding multiplier. */
|
|
583
|
-
readonly setFundingMultipliers: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>], undefined>, undefined>;
|
|
584
|
-
}, "type">;
|
|
585
|
-
readonly "~standard": v.StandardProps<{
|
|
586
|
-
setFundingMultipliers: [string, string | number][];
|
|
587
|
-
}, {
|
|
588
|
-
setFundingMultipliers: [string, string][];
|
|
589
|
-
}>;
|
|
590
|
-
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
591
|
-
setFundingMultipliers: [string, string][];
|
|
592
|
-
}, v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ObjectIssue | v.ArrayIssue | v.TupleIssue>;
|
|
593
|
-
readonly "~types"?: {
|
|
594
|
-
readonly input: {
|
|
595
|
-
setFundingMultipliers: [string, string | number][];
|
|
596
|
-
};
|
|
597
|
-
readonly output: {
|
|
598
|
-
setFundingMultipliers: [string, string][];
|
|
599
|
-
};
|
|
600
|
-
readonly issue: v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ObjectIssue | v.ArrayIssue | v.TupleIssue;
|
|
601
|
-
} | undefined;
|
|
602
|
-
}) | (Omit<v.ObjectSchema<{
|
|
284
|
+
}, undefined>, v.ObjectSchema<{
|
|
603
285
|
/** Type of action. */
|
|
604
286
|
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
605
287
|
/** A list (sorted by key) of asset and 8-hour funding interest rate (between -0.01 and 0.01). */
|
|
606
288
|
readonly setFundingInterestRates: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>], undefined>, undefined>;
|
|
607
|
-
}, undefined>,
|
|
608
|
-
readonly entries: Omit<{
|
|
609
|
-
/** Type of action. */
|
|
610
|
-
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
611
|
-
/** A list (sorted by key) of asset and 8-hour funding interest rate (between -0.01 and 0.01). */
|
|
612
|
-
readonly setFundingInterestRates: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>], undefined>, undefined>;
|
|
613
|
-
}, "type">;
|
|
614
|
-
readonly "~standard": v.StandardProps<{
|
|
615
|
-
setFundingInterestRates: [string, string | number][];
|
|
616
|
-
}, {
|
|
617
|
-
setFundingInterestRates: [string, string][];
|
|
618
|
-
}>;
|
|
619
|
-
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
620
|
-
setFundingInterestRates: [string, string][];
|
|
621
|
-
}, v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ObjectIssue | v.ArrayIssue | v.TupleIssue>;
|
|
622
|
-
readonly "~types"?: {
|
|
623
|
-
readonly input: {
|
|
624
|
-
setFundingInterestRates: [string, string | number][];
|
|
625
|
-
};
|
|
626
|
-
readonly output: {
|
|
627
|
-
setFundingInterestRates: [string, string][];
|
|
628
|
-
};
|
|
629
|
-
readonly issue: v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ObjectIssue | v.ArrayIssue | v.TupleIssue;
|
|
630
|
-
} | undefined;
|
|
631
|
-
}) | (Omit<v.ObjectSchema<{
|
|
289
|
+
}, undefined>, v.ObjectSchema<{
|
|
632
290
|
/** Type of action. */
|
|
633
291
|
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
634
292
|
/** Parameters for halting or resuming trading for an asset. */
|
|
@@ -638,80 +296,12 @@ declare const PerpDeployParameters: v.UnionSchema<((Omit<v.ObjectSchema<{
|
|
|
638
296
|
/** Whether trading should be halted (true) or resumed (false). */
|
|
639
297
|
readonly isHalted: v.BooleanSchema<undefined>;
|
|
640
298
|
}, undefined>;
|
|
641
|
-
}, undefined>,
|
|
642
|
-
readonly entries: Omit<{
|
|
643
|
-
/** Type of action. */
|
|
644
|
-
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
645
|
-
/** Parameters for halting or resuming trading for an asset. */
|
|
646
|
-
readonly haltTrading: v.ObjectSchema<{
|
|
647
|
-
/** Coin symbol for the asset to halt or resume. */
|
|
648
|
-
readonly coin: v.StringSchema<undefined>;
|
|
649
|
-
/** Whether trading should be halted (true) or resumed (false). */
|
|
650
|
-
readonly isHalted: v.BooleanSchema<undefined>;
|
|
651
|
-
}, undefined>;
|
|
652
|
-
}, "type">;
|
|
653
|
-
readonly "~standard": v.StandardProps<{
|
|
654
|
-
haltTrading: {
|
|
655
|
-
coin: string;
|
|
656
|
-
isHalted: boolean;
|
|
657
|
-
};
|
|
658
|
-
}, {
|
|
659
|
-
haltTrading: {
|
|
660
|
-
coin: string;
|
|
661
|
-
isHalted: boolean;
|
|
662
|
-
};
|
|
663
|
-
}>;
|
|
664
|
-
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
665
|
-
haltTrading: {
|
|
666
|
-
coin: string;
|
|
667
|
-
isHalted: boolean;
|
|
668
|
-
};
|
|
669
|
-
}, v.StringIssue | v.ObjectIssue | v.BooleanIssue>;
|
|
670
|
-
readonly "~types"?: {
|
|
671
|
-
readonly input: {
|
|
672
|
-
haltTrading: {
|
|
673
|
-
coin: string;
|
|
674
|
-
isHalted: boolean;
|
|
675
|
-
};
|
|
676
|
-
};
|
|
677
|
-
readonly output: {
|
|
678
|
-
haltTrading: {
|
|
679
|
-
coin: string;
|
|
680
|
-
isHalted: boolean;
|
|
681
|
-
};
|
|
682
|
-
};
|
|
683
|
-
readonly issue: v.StringIssue | v.ObjectIssue | v.BooleanIssue;
|
|
684
|
-
} | undefined;
|
|
685
|
-
}) | (Omit<v.ObjectSchema<{
|
|
299
|
+
}, undefined>, v.ObjectSchema<{
|
|
686
300
|
/** Type of action. */
|
|
687
301
|
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
688
302
|
/** A list (sorted by key) of asset and margin table ids. */
|
|
689
303
|
readonly setMarginTableIds: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>], undefined>, undefined>;
|
|
690
|
-
}, undefined>,
|
|
691
|
-
readonly entries: Omit<{
|
|
692
|
-
/** Type of action. */
|
|
693
|
-
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
694
|
-
/** A list (sorted by key) of asset and margin table ids. */
|
|
695
|
-
readonly setMarginTableIds: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>], undefined>, undefined>;
|
|
696
|
-
}, "type">;
|
|
697
|
-
readonly "~standard": v.StandardProps<{
|
|
698
|
-
setMarginTableIds: [string, string | number][];
|
|
699
|
-
}, {
|
|
700
|
-
setMarginTableIds: [string, number][];
|
|
701
|
-
}>;
|
|
702
|
-
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
703
|
-
setMarginTableIds: [string, number][];
|
|
704
|
-
}, v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.ObjectIssue | v.ArrayIssue | v.TupleIssue>;
|
|
705
|
-
readonly "~types"?: {
|
|
706
|
-
readonly input: {
|
|
707
|
-
setMarginTableIds: [string, string | number][];
|
|
708
|
-
};
|
|
709
|
-
readonly output: {
|
|
710
|
-
setMarginTableIds: [string, number][];
|
|
711
|
-
};
|
|
712
|
-
readonly issue: v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.ObjectIssue | v.ArrayIssue | v.TupleIssue;
|
|
713
|
-
} | undefined;
|
|
714
|
-
}) | (Omit<v.ObjectSchema<{
|
|
304
|
+
}, undefined>, v.ObjectSchema<{
|
|
715
305
|
/** Type of action. */
|
|
716
306
|
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
717
307
|
/** Parameters for setting the fee recipient. */
|
|
@@ -721,80 +311,12 @@ declare const PerpDeployParameters: v.UnionSchema<((Omit<v.ObjectSchema<{
|
|
|
721
311
|
/** Address of the fee recipient. */
|
|
722
312
|
readonly feeRecipient: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>;
|
|
723
313
|
}, undefined>;
|
|
724
|
-
}, undefined>,
|
|
725
|
-
readonly entries: Omit<{
|
|
726
|
-
/** Type of action. */
|
|
727
|
-
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
728
|
-
/** Parameters for setting the fee recipient. */
|
|
729
|
-
readonly setFeeRecipient: v.ObjectSchema<{
|
|
730
|
-
/** Name of the DEX. */
|
|
731
|
-
readonly dex: v.StringSchema<undefined>;
|
|
732
|
-
/** Address of the fee recipient. */
|
|
733
|
-
readonly feeRecipient: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>;
|
|
734
|
-
}, undefined>;
|
|
735
|
-
}, "type">;
|
|
736
|
-
readonly "~standard": v.StandardProps<{
|
|
737
|
-
setFeeRecipient: {
|
|
738
|
-
dex: string;
|
|
739
|
-
feeRecipient: string;
|
|
740
|
-
};
|
|
741
|
-
}, {
|
|
742
|
-
setFeeRecipient: {
|
|
743
|
-
dex: string;
|
|
744
|
-
feeRecipient: `0x${string}`;
|
|
745
|
-
};
|
|
746
|
-
}>;
|
|
747
|
-
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
748
|
-
setFeeRecipient: {
|
|
749
|
-
dex: string;
|
|
750
|
-
feeRecipient: `0x${string}`;
|
|
751
|
-
};
|
|
752
|
-
}, v.StringIssue | v.RegexIssue<string> | v.LengthIssue<`0x${string}`, 42> | v.ObjectIssue>;
|
|
753
|
-
readonly "~types"?: {
|
|
754
|
-
readonly input: {
|
|
755
|
-
setFeeRecipient: {
|
|
756
|
-
dex: string;
|
|
757
|
-
feeRecipient: string;
|
|
758
|
-
};
|
|
759
|
-
};
|
|
760
|
-
readonly output: {
|
|
761
|
-
setFeeRecipient: {
|
|
762
|
-
dex: string;
|
|
763
|
-
feeRecipient: `0x${string}`;
|
|
764
|
-
};
|
|
765
|
-
};
|
|
766
|
-
readonly issue: v.StringIssue | v.RegexIssue<string> | v.LengthIssue<`0x${string}`, 42> | v.ObjectIssue;
|
|
767
|
-
} | undefined;
|
|
768
|
-
}) | (Omit<v.ObjectSchema<{
|
|
314
|
+
}, undefined>, v.ObjectSchema<{
|
|
769
315
|
/** Type of action. */
|
|
770
316
|
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
771
317
|
/** A list (sorted by key) of asset and open interest cap notionals. */
|
|
772
318
|
readonly setOpenInterestCaps: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>], undefined>, undefined>;
|
|
773
|
-
}, undefined>,
|
|
774
|
-
readonly entries: Omit<{
|
|
775
|
-
/** Type of action. */
|
|
776
|
-
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
777
|
-
/** A list (sorted by key) of asset and open interest cap notionals. */
|
|
778
|
-
readonly setOpenInterestCaps: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToNumberAction<string | number, undefined>, v.NumberSchema<undefined>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>], undefined>, undefined>;
|
|
779
|
-
}, "type">;
|
|
780
|
-
readonly "~standard": v.StandardProps<{
|
|
781
|
-
setOpenInterestCaps: [string, string | number][];
|
|
782
|
-
}, {
|
|
783
|
-
setOpenInterestCaps: [string, number][];
|
|
784
|
-
}>;
|
|
785
|
-
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
786
|
-
setOpenInterestCaps: [string, number][];
|
|
787
|
-
}, v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.ObjectIssue | v.ArrayIssue | v.TupleIssue>;
|
|
788
|
-
readonly "~types"?: {
|
|
789
|
-
readonly input: {
|
|
790
|
-
setOpenInterestCaps: [string, string | number][];
|
|
791
|
-
};
|
|
792
|
-
readonly output: {
|
|
793
|
-
setOpenInterestCaps: [string, number][];
|
|
794
|
-
};
|
|
795
|
-
readonly issue: v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToNumberIssue<string | number> | v.SafeIntegerIssue<number> | v.MinValueIssue<number, 0> | v.ObjectIssue | v.ArrayIssue | v.TupleIssue;
|
|
796
|
-
} | undefined;
|
|
797
|
-
}) | (Omit<v.ObjectSchema<{
|
|
319
|
+
}, undefined>, v.ObjectSchema<{
|
|
798
320
|
/** Type of action. */
|
|
799
321
|
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
800
322
|
/** A modification to sub-deployer permissions. */
|
|
@@ -811,107 +333,12 @@ declare const PerpDeployParameters: v.UnionSchema<((Omit<v.ObjectSchema<{
|
|
|
811
333
|
readonly allowed: v.BooleanSchema<undefined>;
|
|
812
334
|
}, undefined>, undefined>;
|
|
813
335
|
}, undefined>;
|
|
814
|
-
}, undefined>,
|
|
815
|
-
readonly entries: Omit<{
|
|
816
|
-
/** Type of action. */
|
|
817
|
-
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
818
|
-
/** A modification to sub-deployer permissions. */
|
|
819
|
-
readonly setSubDeployers: v.ObjectSchema<{
|
|
820
|
-
/** Name of the DEX. */
|
|
821
|
-
readonly dex: v.StringSchema<undefined>;
|
|
822
|
-
/** A modification to sub-deployer permissions. */
|
|
823
|
-
readonly subDeployers: v.ArraySchema<v.ObjectSchema<{
|
|
824
|
-
/** Corresponds to a variant of PerpDeployAction. */
|
|
825
|
-
readonly variant: v.StringSchema<undefined>;
|
|
826
|
-
/** Sub-deployer address. */
|
|
827
|
-
readonly user: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>;
|
|
828
|
-
/** Add or remove the subDeployer from the authorized set for the action variant. */
|
|
829
|
-
readonly allowed: v.BooleanSchema<undefined>;
|
|
830
|
-
}, undefined>, undefined>;
|
|
831
|
-
}, undefined>;
|
|
832
|
-
}, "type">;
|
|
833
|
-
readonly "~standard": v.StandardProps<{
|
|
834
|
-
setSubDeployers: {
|
|
835
|
-
dex: string;
|
|
836
|
-
subDeployers: {
|
|
837
|
-
variant: string;
|
|
838
|
-
user: string;
|
|
839
|
-
allowed: boolean;
|
|
840
|
-
}[];
|
|
841
|
-
};
|
|
842
|
-
}, {
|
|
843
|
-
setSubDeployers: {
|
|
844
|
-
dex: string;
|
|
845
|
-
subDeployers: {
|
|
846
|
-
variant: string;
|
|
847
|
-
user: `0x${string}`;
|
|
848
|
-
allowed: boolean;
|
|
849
|
-
}[];
|
|
850
|
-
};
|
|
851
|
-
}>;
|
|
852
|
-
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
853
|
-
setSubDeployers: {
|
|
854
|
-
dex: string;
|
|
855
|
-
subDeployers: {
|
|
856
|
-
variant: string;
|
|
857
|
-
user: `0x${string}`;
|
|
858
|
-
allowed: boolean;
|
|
859
|
-
}[];
|
|
860
|
-
};
|
|
861
|
-
}, v.StringIssue | v.RegexIssue<string> | v.LengthIssue<`0x${string}`, 42> | v.ObjectIssue | v.ArrayIssue | v.BooleanIssue>;
|
|
862
|
-
readonly "~types"?: {
|
|
863
|
-
readonly input: {
|
|
864
|
-
setSubDeployers: {
|
|
865
|
-
dex: string;
|
|
866
|
-
subDeployers: {
|
|
867
|
-
variant: string;
|
|
868
|
-
user: string;
|
|
869
|
-
allowed: boolean;
|
|
870
|
-
}[];
|
|
871
|
-
};
|
|
872
|
-
};
|
|
873
|
-
readonly output: {
|
|
874
|
-
setSubDeployers: {
|
|
875
|
-
dex: string;
|
|
876
|
-
subDeployers: {
|
|
877
|
-
variant: string;
|
|
878
|
-
user: `0x${string}`;
|
|
879
|
-
allowed: boolean;
|
|
880
|
-
}[];
|
|
881
|
-
};
|
|
882
|
-
};
|
|
883
|
-
readonly issue: v.StringIssue | v.RegexIssue<string> | v.LengthIssue<`0x${string}`, 42> | v.ObjectIssue | v.ArrayIssue | v.BooleanIssue;
|
|
884
|
-
} | undefined;
|
|
885
|
-
}) | (Omit<v.ObjectSchema<{
|
|
336
|
+
}, undefined>, v.ObjectSchema<{
|
|
886
337
|
/** Type of action. */
|
|
887
338
|
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
888
339
|
/** A list (sorted by key) of asset and margin modes. */
|
|
889
340
|
readonly setMarginModes: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.PicklistSchema<["strictIsolated", "noCross"], undefined>], undefined>, undefined>;
|
|
890
|
-
}, undefined>,
|
|
891
|
-
readonly entries: Omit<{
|
|
892
|
-
/** Type of action. */
|
|
893
|
-
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
894
|
-
/** A list (sorted by key) of asset and margin modes. */
|
|
895
|
-
readonly setMarginModes: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.PicklistSchema<["strictIsolated", "noCross"], undefined>], undefined>, undefined>;
|
|
896
|
-
}, "type">;
|
|
897
|
-
readonly "~standard": v.StandardProps<{
|
|
898
|
-
setMarginModes: [string, "strictIsolated" | "noCross"][];
|
|
899
|
-
}, {
|
|
900
|
-
setMarginModes: [string, "strictIsolated" | "noCross"][];
|
|
901
|
-
}>;
|
|
902
|
-
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
903
|
-
setMarginModes: [string, "strictIsolated" | "noCross"][];
|
|
904
|
-
}, v.StringIssue | v.PicklistIssue | v.ObjectIssue | v.ArrayIssue | v.TupleIssue>;
|
|
905
|
-
readonly "~types"?: {
|
|
906
|
-
readonly input: {
|
|
907
|
-
setMarginModes: [string, "strictIsolated" | "noCross"][];
|
|
908
|
-
};
|
|
909
|
-
readonly output: {
|
|
910
|
-
setMarginModes: [string, "strictIsolated" | "noCross"][];
|
|
911
|
-
};
|
|
912
|
-
readonly issue: v.StringIssue | v.PicklistIssue | v.ObjectIssue | v.ArrayIssue | v.TupleIssue;
|
|
913
|
-
} | undefined;
|
|
914
|
-
}) | (Omit<v.ObjectSchema<{
|
|
341
|
+
}, undefined>, v.ObjectSchema<{
|
|
915
342
|
/** Type of action. */
|
|
916
343
|
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
917
344
|
/** Set fee scale. */
|
|
@@ -921,82 +348,32 @@ declare const PerpDeployParameters: v.UnionSchema<((Omit<v.ObjectSchema<{
|
|
|
921
348
|
/** Fee scale (between 0.0 and 3.0). */
|
|
922
349
|
readonly scale: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>;
|
|
923
350
|
}, undefined>;
|
|
924
|
-
}, undefined>,
|
|
925
|
-
readonly entries: Omit<{
|
|
926
|
-
/** Type of action. */
|
|
927
|
-
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
928
|
-
/** Set fee scale. */
|
|
929
|
-
readonly setFeeScale: v.ObjectSchema<{
|
|
930
|
-
/** Name of the dex. */
|
|
931
|
-
readonly dex: v.StringSchema<undefined>;
|
|
932
|
-
/** Fee scale (between 0.0 and 3.0). */
|
|
933
|
-
readonly scale: v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.ToStringAction<string | number, undefined>, v.StringSchema<undefined>, v.TransformAction<string, string>, v.RegexAction<string, undefined>]>;
|
|
934
|
-
}, undefined>;
|
|
935
|
-
}, "type">;
|
|
936
|
-
readonly "~standard": v.StandardProps<{
|
|
937
|
-
setFeeScale: {
|
|
938
|
-
dex: string;
|
|
939
|
-
scale: string | number;
|
|
940
|
-
};
|
|
941
|
-
}, {
|
|
942
|
-
setFeeScale: {
|
|
943
|
-
dex: string;
|
|
944
|
-
scale: string;
|
|
945
|
-
};
|
|
946
|
-
}>;
|
|
947
|
-
readonly "~run": (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
948
|
-
setFeeScale: {
|
|
949
|
-
dex: string;
|
|
950
|
-
scale: string;
|
|
951
|
-
};
|
|
952
|
-
}, v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ObjectIssue>;
|
|
953
|
-
readonly "~types"?: {
|
|
954
|
-
readonly input: {
|
|
955
|
-
setFeeScale: {
|
|
956
|
-
dex: string;
|
|
957
|
-
scale: string | number;
|
|
958
|
-
};
|
|
959
|
-
};
|
|
960
|
-
readonly output: {
|
|
961
|
-
setFeeScale: {
|
|
962
|
-
dex: string;
|
|
963
|
-
scale: string;
|
|
964
|
-
};
|
|
965
|
-
};
|
|
966
|
-
readonly issue: v.StringIssue | v.NumberIssue | v.UnionIssue<v.StringIssue | v.NumberIssue> | v.ToStringIssue<string | number> | v.RegexIssue<string> | v.ObjectIssue;
|
|
967
|
-
} | undefined;
|
|
968
|
-
}) | (Omit<v.ObjectSchema<{
|
|
351
|
+
}, undefined>, v.ObjectSchema<{
|
|
969
352
|
/** Type of action. */
|
|
970
353
|
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
971
354
|
/** A list (sorted by key) of asset and growth modes. */
|
|
972
355
|
readonly setGrowthModes: v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.BooleanSchema<undefined>], undefined>, undefined>;
|
|
973
|
-
}, undefined>,
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
setGrowthModes: [string, boolean][];
|
|
991
|
-
};
|
|
992
|
-
readonly output: {
|
|
993
|
-
setGrowthModes: [string, boolean][];
|
|
994
|
-
};
|
|
995
|
-
readonly issue: v.StringIssue | v.ObjectIssue | v.ArrayIssue | v.BooleanIssue | v.TupleIssue;
|
|
996
|
-
} | undefined;
|
|
997
|
-
}))[], undefined>;
|
|
356
|
+
}, undefined>, v.ObjectSchema<{
|
|
357
|
+
/** Type of action. */
|
|
358
|
+
readonly type: v.LiteralSchema<"perpDeploy", undefined>;
|
|
359
|
+
/** Parameters for setting a perp annotation. */
|
|
360
|
+
readonly setPerpAnnotation: v.ObjectSchema<{
|
|
361
|
+
/** Coin symbol for the asset to annotate. */
|
|
362
|
+
readonly coin: v.StringSchema<undefined>;
|
|
363
|
+
/** Classification label (max 15 characters). */
|
|
364
|
+
readonly category: v.StringSchema<undefined>;
|
|
365
|
+
/** Detailed description (max 400 characters). */
|
|
366
|
+
readonly description: v.StringSchema<undefined>;
|
|
367
|
+
/** Display name for frontends to use instead of the L1 name, or null to ignore. */
|
|
368
|
+
readonly displayName: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
369
|
+
/** Keywords used as hints to match against searches. */
|
|
370
|
+
readonly keywords: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
371
|
+
}, undefined>;
|
|
372
|
+
}, undefined>], undefined>;
|
|
998
373
|
/** Action parameters for the {@linkcode perpDeploy} function. */
|
|
999
|
-
export type PerpDeployParameters = v.InferInput<typeof
|
|
374
|
+
export type PerpDeployParameters = v.InferInput<typeof PerpDeployActionSchema> extends infer T ? T extends unknown ? {
|
|
375
|
+
[K in Exclude<keyof T, "type">]: T[K];
|
|
376
|
+
} : never : never;
|
|
1000
377
|
/** Request options for the {@linkcode perpDeploy} function. */
|
|
1001
378
|
export type PerpDeployOptions = ExtractRequestOptions<v.InferInput<typeof PerpDeployRequest>>;
|
|
1002
379
|
/** Successful variant of {@linkcode PerpDeployResponse} without errors. */
|
|
@@ -1022,23 +399,20 @@ export type PerpDeploySuccessResponse = ExcludeErrorResponse<PerpDeployResponse>
|
|
|
1022
399
|
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
1023
400
|
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
1024
401
|
*
|
|
1025
|
-
* await perpDeploy(
|
|
1026
|
-
* {
|
|
1027
|
-
*
|
|
1028
|
-
*
|
|
1029
|
-
*
|
|
1030
|
-
*
|
|
1031
|
-
*
|
|
1032
|
-
*
|
|
1033
|
-
*
|
|
1034
|
-
* marginTableId: 1,
|
|
1035
|
-
* onlyIsolated: false,
|
|
1036
|
-
* },
|
|
1037
|
-
* dex: "test",
|
|
1038
|
-
* schema: null,
|
|
402
|
+
* await perpDeploy({ transport, wallet }, {
|
|
403
|
+
* registerAsset: {
|
|
404
|
+
* maxGas: 1000000,
|
|
405
|
+
* assetRequest: {
|
|
406
|
+
* coin: "USDC",
|
|
407
|
+
* szDecimals: 8,
|
|
408
|
+
* oraclePx: "1",
|
|
409
|
+
* marginTableId: 1,
|
|
410
|
+
* onlyIsolated: false,
|
|
1039
411
|
* },
|
|
412
|
+
* dex: "test",
|
|
413
|
+
* schema: null,
|
|
1040
414
|
* },
|
|
1041
|
-
* );
|
|
415
|
+
* });
|
|
1042
416
|
* ```
|
|
1043
417
|
*
|
|
1044
418
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/hip-3-deployer-actions
|