@nktkas/hyperliquid 0.25.5 → 0.25.7
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/README.md +57 -10
- package/esm/bin/cli.js +7 -2
- package/esm/bin/cli.js.map +1 -1
- package/esm/src/api/_base.d.ts +1 -0
- package/esm/src/api/_base.d.ts.map +1 -1
- package/esm/src/api/_base.js.map +1 -1
- package/esm/src/api/exchange/_base/_errors.d.ts +14 -0
- package/esm/src/api/exchange/_base/_errors.d.ts.map +1 -0
- package/esm/src/api/exchange/_base/_errors.js +51 -0
- package/esm/src/api/exchange/_base/_errors.js.map +1 -0
- package/esm/src/api/exchange/_base/_execute.d.ts +34 -0
- package/esm/src/api/exchange/_base/_execute.d.ts.map +1 -0
- package/esm/src/api/exchange/_base/_execute.js +142 -0
- package/esm/src/api/exchange/_base/_execute.js.map +1 -0
- package/esm/src/api/exchange/_base/_helpers.d.ts +11 -0
- package/esm/src/api/exchange/_base/_helpers.d.ts.map +1 -0
- package/esm/src/api/exchange/_base/_helpers.js +18 -0
- package/esm/src/api/exchange/_base/_helpers.js.map +1 -0
- package/esm/src/api/exchange/_base/_nonce.d.ts +11 -0
- package/esm/src/api/exchange/_base/_nonce.d.ts.map +1 -0
- package/esm/src/api/exchange/_base/_nonce.js +19 -0
- package/esm/src/api/exchange/_base/_nonce.js.map +1 -0
- package/esm/src/api/exchange/_base/_schemas.d.ts +45 -0
- package/esm/src/api/exchange/_base/_schemas.d.ts.map +1 -0
- package/esm/src/api/exchange/_base/_schemas.js +35 -0
- package/esm/src/api/exchange/_base/_schemas.js.map +1 -0
- package/esm/src/api/exchange/_base/_sequential.d.ts +30 -0
- package/esm/src/api/exchange/_base/_sequential.d.ts.map +1 -0
- package/esm/src/api/exchange/_base/_sequential.js +69 -0
- package/esm/src/api/exchange/_base/_sequential.js.map +1 -0
- package/esm/src/api/exchange/_base/_types.d.ts +68 -0
- package/esm/src/api/exchange/_base/_types.d.ts.map +1 -0
- package/esm/src/api/exchange/_base/_types.js +2 -0
- package/esm/src/api/exchange/_base/_types.js.map +1 -0
- package/esm/src/api/exchange/_base/mod.d.ts +8 -0
- package/esm/src/api/exchange/_base/mod.d.ts.map +1 -0
- package/esm/src/api/exchange/_base/mod.js +8 -0
- package/esm/src/api/exchange/_base/mod.js.map +1 -0
- package/esm/src/api/exchange/agentEnableDexAbstraction.d.ts +5 -5
- package/esm/src/api/exchange/agentEnableDexAbstraction.d.ts.map +1 -1
- package/esm/src/api/exchange/agentEnableDexAbstraction.js +5 -4
- package/esm/src/api/exchange/agentEnableDexAbstraction.js.map +1 -1
- package/esm/src/api/exchange/approveAgent.d.ts +6 -6
- package/esm/src/api/exchange/approveAgent.d.ts.map +1 -1
- package/esm/src/api/exchange/approveAgent.js +4 -4
- package/esm/src/api/exchange/approveAgent.js.map +1 -1
- package/esm/src/api/exchange/approveBuilderFee.d.ts +6 -6
- package/esm/src/api/exchange/approveBuilderFee.d.ts.map +1 -1
- package/esm/src/api/exchange/approveBuilderFee.js +4 -4
- package/esm/src/api/exchange/approveBuilderFee.js.map +1 -1
- package/esm/src/api/exchange/batchModify.d.ts +5 -5
- package/esm/src/api/exchange/batchModify.d.ts.map +1 -1
- package/esm/src/api/exchange/batchModify.js +6 -4
- package/esm/src/api/exchange/batchModify.js.map +1 -1
- package/esm/src/api/exchange/cDeposit.d.ts +6 -6
- package/esm/src/api/exchange/cDeposit.d.ts.map +1 -1
- package/esm/src/api/exchange/cDeposit.js +4 -4
- package/esm/src/api/exchange/cDeposit.js.map +1 -1
- package/esm/src/api/exchange/cSignerAction.d.ts +7 -7
- package/esm/src/api/exchange/cSignerAction.d.ts.map +1 -1
- package/esm/src/api/exchange/cSignerAction.js +6 -5
- package/esm/src/api/exchange/cSignerAction.js.map +1 -1
- package/esm/src/api/exchange/cValidatorAction.d.ts +7 -7
- package/esm/src/api/exchange/cValidatorAction.d.ts.map +1 -1
- package/esm/src/api/exchange/cValidatorAction.js +6 -5
- package/esm/src/api/exchange/cValidatorAction.js.map +1 -1
- package/esm/src/api/exchange/cWithdraw.d.ts +6 -6
- package/esm/src/api/exchange/cWithdraw.d.ts.map +1 -1
- package/esm/src/api/exchange/cWithdraw.js +4 -4
- package/esm/src/api/exchange/cWithdraw.js.map +1 -1
- package/esm/src/api/exchange/cancel.d.ts +5 -5
- package/esm/src/api/exchange/cancel.d.ts.map +1 -1
- package/esm/src/api/exchange/cancel.js +6 -4
- package/esm/src/api/exchange/cancel.js.map +1 -1
- package/esm/src/api/exchange/cancelByCloid.d.ts +5 -5
- package/esm/src/api/exchange/cancelByCloid.d.ts.map +1 -1
- package/esm/src/api/exchange/cancelByCloid.js +6 -4
- package/esm/src/api/exchange/cancelByCloid.js.map +1 -1
- package/esm/src/api/exchange/claimRewards.d.ts +5 -5
- package/esm/src/api/exchange/claimRewards.d.ts.map +1 -1
- package/esm/src/api/exchange/claimRewards.js +5 -4
- package/esm/src/api/exchange/claimRewards.js.map +1 -1
- package/esm/src/api/exchange/convertToMultiSigUser.d.ts +6 -6
- package/esm/src/api/exchange/convertToMultiSigUser.d.ts.map +1 -1
- package/esm/src/api/exchange/convertToMultiSigUser.js +4 -4
- package/esm/src/api/exchange/convertToMultiSigUser.js.map +1 -1
- package/esm/src/api/exchange/createSubAccount.d.ts +5 -5
- package/esm/src/api/exchange/createSubAccount.d.ts.map +1 -1
- package/esm/src/api/exchange/createSubAccount.js +4 -3
- package/esm/src/api/exchange/createSubAccount.js.map +1 -1
- package/esm/src/api/exchange/createVault.d.ts +5 -5
- package/esm/src/api/exchange/createVault.d.ts.map +1 -1
- package/esm/src/api/exchange/createVault.js +4 -3
- package/esm/src/api/exchange/createVault.js.map +1 -1
- package/esm/src/api/exchange/evmUserModify.d.ts +6 -6
- package/esm/src/api/exchange/evmUserModify.d.ts.map +1 -1
- package/esm/src/api/exchange/evmUserModify.js +5 -4
- package/esm/src/api/exchange/evmUserModify.js.map +1 -1
- package/esm/src/api/exchange/modify.d.ts +6 -6
- package/esm/src/api/exchange/modify.d.ts.map +1 -1
- package/esm/src/api/exchange/modify.js +7 -5
- package/esm/src/api/exchange/modify.js.map +1 -1
- package/esm/src/api/exchange/multiSig.d.ts +231 -41
- package/esm/src/api/exchange/multiSig.d.ts.map +1 -1
- package/esm/src/api/exchange/multiSig.js +8 -6
- package/esm/src/api/exchange/multiSig.js.map +1 -1
- package/esm/src/api/exchange/noop.d.ts +5 -5
- package/esm/src/api/exchange/noop.d.ts.map +1 -1
- package/esm/src/api/exchange/noop.js +5 -4
- package/esm/src/api/exchange/noop.js.map +1 -1
- package/esm/src/api/exchange/order.d.ts +5 -5
- package/esm/src/api/exchange/order.d.ts.map +1 -1
- package/esm/src/api/exchange/order.js +6 -4
- package/esm/src/api/exchange/order.js.map +1 -1
- package/esm/src/api/exchange/perpDeploy.d.ts +110 -8
- package/esm/src/api/exchange/perpDeploy.d.ts.map +1 -1
- package/esm/src/api/exchange/perpDeploy.js +44 -5
- package/esm/src/api/exchange/perpDeploy.js.map +1 -1
- package/esm/src/api/exchange/registerReferrer.d.ts +6 -6
- package/esm/src/api/exchange/registerReferrer.d.ts.map +1 -1
- package/esm/src/api/exchange/registerReferrer.js +5 -4
- package/esm/src/api/exchange/registerReferrer.js.map +1 -1
- package/esm/src/api/exchange/reserveRequestWeight.d.ts +6 -6
- package/esm/src/api/exchange/reserveRequestWeight.d.ts.map +1 -1
- package/esm/src/api/exchange/reserveRequestWeight.js +5 -4
- package/esm/src/api/exchange/reserveRequestWeight.js.map +1 -1
- package/esm/src/api/exchange/scheduleCancel.d.ts +6 -6
- package/esm/src/api/exchange/scheduleCancel.d.ts.map +1 -1
- package/esm/src/api/exchange/scheduleCancel.js +7 -5
- package/esm/src/api/exchange/scheduleCancel.js.map +1 -1
- package/esm/src/api/exchange/sendAsset.d.ts +6 -6
- package/esm/src/api/exchange/sendAsset.d.ts.map +1 -1
- package/esm/src/api/exchange/sendAsset.js +4 -4
- package/esm/src/api/exchange/sendAsset.js.map +1 -1
- package/esm/src/api/exchange/setDisplayName.d.ts +6 -6
- package/esm/src/api/exchange/setDisplayName.d.ts.map +1 -1
- package/esm/src/api/exchange/setDisplayName.js +5 -4
- package/esm/src/api/exchange/setDisplayName.js.map +1 -1
- package/esm/src/api/exchange/setReferrer.d.ts +6 -6
- package/esm/src/api/exchange/setReferrer.d.ts.map +1 -1
- package/esm/src/api/exchange/setReferrer.js +5 -4
- package/esm/src/api/exchange/setReferrer.js.map +1 -1
- package/esm/src/api/exchange/spotDeploy.d.ts +33 -8
- package/esm/src/api/exchange/spotDeploy.d.ts.map +1 -1
- package/esm/src/api/exchange/spotDeploy.js +15 -5
- package/esm/src/api/exchange/spotDeploy.js.map +1 -1
- package/esm/src/api/exchange/spotSend.d.ts +6 -6
- package/esm/src/api/exchange/spotSend.d.ts.map +1 -1
- package/esm/src/api/exchange/spotSend.js +4 -4
- package/esm/src/api/exchange/spotSend.js.map +1 -1
- package/esm/src/api/exchange/spotUser.d.ts +6 -6
- package/esm/src/api/exchange/spotUser.d.ts.map +1 -1
- package/esm/src/api/exchange/spotUser.js +5 -4
- package/esm/src/api/exchange/spotUser.js.map +1 -1
- package/esm/src/api/exchange/subAccountModify.d.ts +6 -6
- package/esm/src/api/exchange/subAccountModify.d.ts.map +1 -1
- package/esm/src/api/exchange/subAccountModify.js +5 -4
- package/esm/src/api/exchange/subAccountModify.js.map +1 -1
- package/esm/src/api/exchange/subAccountSpotTransfer.d.ts +6 -6
- package/esm/src/api/exchange/subAccountSpotTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/subAccountSpotTransfer.js +5 -4
- package/esm/src/api/exchange/subAccountSpotTransfer.js.map +1 -1
- package/esm/src/api/exchange/subAccountTransfer.d.ts +6 -6
- package/esm/src/api/exchange/subAccountTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/subAccountTransfer.js +5 -4
- package/esm/src/api/exchange/subAccountTransfer.js.map +1 -1
- package/esm/src/api/exchange/tokenDelegate.d.ts +6 -6
- package/esm/src/api/exchange/tokenDelegate.d.ts.map +1 -1
- package/esm/src/api/exchange/tokenDelegate.js +4 -4
- package/esm/src/api/exchange/tokenDelegate.js.map +1 -1
- package/esm/src/api/exchange/twapCancel.d.ts +5 -5
- package/esm/src/api/exchange/twapCancel.d.ts.map +1 -1
- package/esm/src/api/exchange/twapCancel.js +6 -4
- package/esm/src/api/exchange/twapCancel.js.map +1 -1
- package/esm/src/api/exchange/twapOrder.d.ts +5 -5
- package/esm/src/api/exchange/twapOrder.d.ts.map +1 -1
- package/esm/src/api/exchange/twapOrder.js +6 -4
- package/esm/src/api/exchange/twapOrder.js.map +1 -1
- package/esm/src/api/exchange/updateIsolatedMargin.d.ts +7 -7
- package/esm/src/api/exchange/updateIsolatedMargin.d.ts.map +1 -1
- package/esm/src/api/exchange/updateIsolatedMargin.js +8 -6
- package/esm/src/api/exchange/updateIsolatedMargin.js.map +1 -1
- package/esm/src/api/exchange/updateLeverage.d.ts +6 -6
- package/esm/src/api/exchange/updateLeverage.d.ts.map +1 -1
- package/esm/src/api/exchange/updateLeverage.js +7 -5
- package/esm/src/api/exchange/updateLeverage.js.map +1 -1
- package/esm/src/api/exchange/usdClassTransfer.d.ts +6 -6
- package/esm/src/api/exchange/usdClassTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/usdClassTransfer.js +4 -4
- package/esm/src/api/exchange/usdClassTransfer.js.map +1 -1
- package/esm/src/api/exchange/usdSend.d.ts +6 -6
- package/esm/src/api/exchange/usdSend.d.ts.map +1 -1
- package/esm/src/api/exchange/usdSend.js +4 -4
- package/esm/src/api/exchange/usdSend.js.map +1 -1
- package/esm/src/api/exchange/userDexAbstraction.d.ts +6 -6
- package/esm/src/api/exchange/userDexAbstraction.d.ts.map +1 -1
- package/esm/src/api/exchange/userDexAbstraction.js +4 -4
- package/esm/src/api/exchange/userDexAbstraction.js.map +1 -1
- package/esm/src/api/exchange/vaultDistribute.d.ts +6 -6
- package/esm/src/api/exchange/vaultDistribute.d.ts.map +1 -1
- package/esm/src/api/exchange/vaultDistribute.js +5 -4
- package/esm/src/api/exchange/vaultDistribute.js.map +1 -1
- package/esm/src/api/exchange/vaultModify.d.ts +6 -6
- package/esm/src/api/exchange/vaultModify.d.ts.map +1 -1
- package/esm/src/api/exchange/vaultModify.js +5 -4
- package/esm/src/api/exchange/vaultModify.js.map +1 -1
- package/esm/src/api/exchange/vaultTransfer.d.ts +6 -6
- package/esm/src/api/exchange/vaultTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/vaultTransfer.js +5 -4
- package/esm/src/api/exchange/vaultTransfer.js.map +1 -1
- package/esm/src/api/exchange/withdraw3.d.ts +6 -6
- package/esm/src/api/exchange/withdraw3.d.ts.map +1 -1
- package/esm/src/api/exchange/withdraw3.js +4 -4
- package/esm/src/api/exchange/withdraw3.js.map +1 -1
- package/esm/src/api/exchange/~client.d.ts +27 -27
- package/esm/src/api/exchange/~client.d.ts.map +1 -1
- package/esm/src/api/exchange/~client.js +5 -5
- package/esm/src/api/exchange/~client.js.map +1 -1
- package/esm/src/api/exchange/~mod.d.ts +1 -1
- package/esm/src/api/exchange/~mod.d.ts.map +1 -1
- package/esm/src/api/exchange/~mod.js +1 -0
- package/esm/src/api/exchange/~mod.js.map +1 -1
- package/esm/src/api/info/{_base.d.ts → _types.d.ts} +1 -1
- package/esm/src/api/info/_types.d.ts.map +1 -0
- package/esm/src/api/info/_types.js +2 -0
- package/esm/src/api/info/_types.js.map +1 -0
- package/esm/src/api/info/activeAssetData.d.ts +1 -1
- package/esm/src/api/info/activeAssetData.d.ts.map +1 -1
- package/esm/src/api/info/alignedQuoteTokenInfo.d.ts +1 -1
- package/esm/src/api/info/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/esm/src/api/info/allMids.d.ts +1 -1
- package/esm/src/api/info/allMids.d.ts.map +1 -1
- package/esm/src/api/info/allPerpMetas.d.ts +130 -0
- package/esm/src/api/info/allPerpMetas.d.ts.map +1 -0
- package/esm/src/api/info/allPerpMetas.js +46 -0
- package/esm/src/api/info/allPerpMetas.js.map +1 -0
- package/esm/src/api/info/blockDetails.d.ts +1 -1
- package/esm/src/api/info/blockDetails.d.ts.map +1 -1
- package/esm/src/api/info/candleSnapshot.d.ts +1 -1
- package/esm/src/api/info/candleSnapshot.d.ts.map +1 -1
- package/esm/src/api/info/clearinghouseState.d.ts +1 -1
- package/esm/src/api/info/clearinghouseState.d.ts.map +1 -1
- package/esm/src/api/info/delegations.d.ts +1 -1
- package/esm/src/api/info/delegations.d.ts.map +1 -1
- package/esm/src/api/info/delegatorHistory.d.ts +1 -1
- package/esm/src/api/info/delegatorHistory.d.ts.map +1 -1
- package/esm/src/api/info/delegatorRewards.d.ts +1 -1
- package/esm/src/api/info/delegatorRewards.d.ts.map +1 -1
- package/esm/src/api/info/delegatorSummary.d.ts +1 -1
- package/esm/src/api/info/delegatorSummary.d.ts.map +1 -1
- package/esm/src/api/info/exchangeStatus.d.ts +1 -1
- package/esm/src/api/info/exchangeStatus.d.ts.map +1 -1
- package/esm/src/api/info/extraAgents.d.ts +1 -1
- package/esm/src/api/info/extraAgents.d.ts.map +1 -1
- package/esm/src/api/info/frontendOpenOrders.d.ts +1 -1
- package/esm/src/api/info/frontendOpenOrders.d.ts.map +1 -1
- package/esm/src/api/info/fundingHistory.d.ts +1 -1
- package/esm/src/api/info/fundingHistory.d.ts.map +1 -1
- package/esm/src/api/info/gossipRootIps.d.ts +1 -1
- package/esm/src/api/info/gossipRootIps.d.ts.map +1 -1
- package/esm/src/api/info/historicalOrders.d.ts +1 -1
- package/esm/src/api/info/historicalOrders.d.ts.map +1 -1
- package/esm/src/api/info/isVip.d.ts +1 -1
- package/esm/src/api/info/isVip.d.ts.map +1 -1
- package/esm/src/api/info/l2Book.d.ts +1 -1
- package/esm/src/api/info/l2Book.d.ts.map +1 -1
- package/esm/src/api/info/leadingVaults.d.ts +1 -1
- package/esm/src/api/info/leadingVaults.d.ts.map +1 -1
- package/esm/src/api/info/legalCheck.d.ts +1 -1
- package/esm/src/api/info/legalCheck.d.ts.map +1 -1
- package/esm/src/api/info/liquidatable.d.ts +1 -1
- package/esm/src/api/info/liquidatable.d.ts.map +1 -1
- package/esm/src/api/info/marginTable.d.ts +1 -1
- package/esm/src/api/info/marginTable.d.ts.map +1 -1
- package/esm/src/api/info/maxBuilderFee.d.ts +1 -1
- package/esm/src/api/info/maxBuilderFee.d.ts.map +1 -1
- package/esm/src/api/info/maxMarketOrderNtls.d.ts +1 -1
- package/esm/src/api/info/maxMarketOrderNtls.d.ts.map +1 -1
- package/esm/src/api/info/meta.d.ts +1 -1
- package/esm/src/api/info/meta.d.ts.map +1 -1
- package/esm/src/api/info/metaAndAssetCtxs.d.ts +1 -1
- package/esm/src/api/info/metaAndAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/info/openOrders.d.ts +1 -1
- package/esm/src/api/info/openOrders.d.ts.map +1 -1
- package/esm/src/api/info/orderStatus.d.ts +1 -1
- package/esm/src/api/info/orderStatus.d.ts.map +1 -1
- package/esm/src/api/info/perpDeployAuctionStatus.d.ts +1 -1
- package/esm/src/api/info/perpDeployAuctionStatus.d.ts.map +1 -1
- package/esm/src/api/info/perpDexLimits.d.ts +1 -1
- package/esm/src/api/info/perpDexLimits.d.ts.map +1 -1
- package/esm/src/api/info/perpDexs.d.ts +1 -1
- package/esm/src/api/info/perpDexs.d.ts.map +1 -1
- package/esm/src/api/info/perpsAtOpenInterestCap.d.ts +1 -1
- package/esm/src/api/info/perpsAtOpenInterestCap.d.ts.map +1 -1
- package/esm/src/api/info/portfolio.d.ts +1 -1
- package/esm/src/api/info/portfolio.d.ts.map +1 -1
- package/esm/src/api/info/preTransferCheck.d.ts +1 -1
- package/esm/src/api/info/preTransferCheck.d.ts.map +1 -1
- package/esm/src/api/info/predictedFundings.d.ts +1 -1
- package/esm/src/api/info/predictedFundings.d.ts.map +1 -1
- package/esm/src/api/info/recentTrades.d.ts +1 -1
- package/esm/src/api/info/recentTrades.d.ts.map +1 -1
- package/esm/src/api/info/referral.d.ts +1 -1
- package/esm/src/api/info/referral.d.ts.map +1 -1
- package/esm/src/api/info/spotClearinghouseState.d.ts +1 -1
- package/esm/src/api/info/spotClearinghouseState.d.ts.map +1 -1
- package/esm/src/api/info/spotDeployState.d.ts +1 -1
- package/esm/src/api/info/spotDeployState.d.ts.map +1 -1
- package/esm/src/api/info/spotMeta.d.ts +1 -1
- package/esm/src/api/info/spotMeta.d.ts.map +1 -1
- package/esm/src/api/info/spotMetaAndAssetCtxs.d.ts +1 -1
- package/esm/src/api/info/spotMetaAndAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/info/spotPairDeployAuctionStatus.d.ts +1 -1
- package/esm/src/api/info/spotPairDeployAuctionStatus.d.ts.map +1 -1
- package/esm/src/api/info/subAccounts.d.ts +1 -1
- package/esm/src/api/info/subAccounts.d.ts.map +1 -1
- package/esm/src/api/info/subAccounts2.d.ts +498 -0
- package/esm/src/api/info/subAccounts2.d.ts.map +1 -0
- package/esm/src/api/info/subAccounts2.js +70 -0
- package/esm/src/api/info/subAccounts2.js.map +1 -0
- package/esm/src/api/info/tokenDetails.d.ts +1 -1
- package/esm/src/api/info/tokenDetails.d.ts.map +1 -1
- package/esm/src/api/info/twapHistory.d.ts +1 -1
- package/esm/src/api/info/twapHistory.d.ts.map +1 -1
- package/esm/src/api/info/txDetails.d.ts +1 -1
- package/esm/src/api/info/txDetails.d.ts.map +1 -1
- package/esm/src/api/info/userDetails.d.ts +1 -1
- package/esm/src/api/info/userDetails.d.ts.map +1 -1
- package/esm/src/api/info/userDexAbstraction.d.ts +1 -1
- package/esm/src/api/info/userDexAbstraction.d.ts.map +1 -1
- package/esm/src/api/info/userFees.d.ts +1 -1
- package/esm/src/api/info/userFees.d.ts.map +1 -1
- package/esm/src/api/info/userFills.d.ts +1 -1
- package/esm/src/api/info/userFills.d.ts.map +1 -1
- package/esm/src/api/info/userFillsByTime.d.ts +1 -1
- package/esm/src/api/info/userFillsByTime.d.ts.map +1 -1
- package/esm/src/api/info/userFunding.d.ts +1 -1
- package/esm/src/api/info/userFunding.d.ts.map +1 -1
- package/esm/src/api/info/userNonFundingLedgerUpdates.d.ts +1 -1
- package/esm/src/api/info/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/esm/src/api/info/userRateLimit.d.ts +1 -1
- package/esm/src/api/info/userRateLimit.d.ts.map +1 -1
- package/esm/src/api/info/userRole.d.ts +1 -1
- package/esm/src/api/info/userRole.d.ts.map +1 -1
- package/esm/src/api/info/userToMultiSigSigners.d.ts +1 -1
- package/esm/src/api/info/userToMultiSigSigners.d.ts.map +1 -1
- package/esm/src/api/info/userTwapSliceFills.d.ts +1 -1
- package/esm/src/api/info/userTwapSliceFills.d.ts.map +1 -1
- package/esm/src/api/info/userTwapSliceFillsByTime.d.ts +1 -1
- package/esm/src/api/info/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/esm/src/api/info/userVaultEquities.d.ts +1 -1
- package/esm/src/api/info/userVaultEquities.d.ts.map +1 -1
- package/esm/src/api/info/validatorL1Votes.d.ts +1 -1
- package/esm/src/api/info/validatorL1Votes.d.ts.map +1 -1
- package/esm/src/api/info/validatorSummaries.d.ts +1 -1
- package/esm/src/api/info/validatorSummaries.d.ts.map +1 -1
- package/esm/src/api/info/vaultDetails.d.ts +1 -1
- package/esm/src/api/info/vaultDetails.d.ts.map +1 -1
- package/esm/src/api/info/vaultSummaries.d.ts +1 -1
- package/esm/src/api/info/vaultSummaries.d.ts.map +1 -1
- package/esm/src/api/info/webData2.d.ts +147 -24
- package/esm/src/api/info/webData2.d.ts.map +1 -1
- package/esm/src/api/info/webData2.js +3 -54
- package/esm/src/api/info/webData2.js.map +1 -1
- package/esm/src/api/info/~client.d.ts +125 -3
- package/esm/src/api/info/~client.d.ts.map +1 -1
- package/esm/src/api/info/~client.js +45 -0
- package/esm/src/api/info/~client.js.map +1 -1
- package/esm/src/api/info/~mod.d.ts +3 -1
- package/esm/src/api/info/~mod.d.ts.map +1 -1
- package/esm/src/api/info/~mod.js +2 -0
- package/esm/src/api/info/~mod.js.map +1 -1
- package/esm/src/api/subscription/{_base.d.ts → _types.d.ts} +1 -1
- package/esm/src/api/subscription/_types.d.ts.map +1 -0
- package/esm/src/api/subscription/_types.js +2 -0
- package/esm/src/api/subscription/_types.js.map +1 -0
- package/esm/src/api/subscription/activeAssetCtx.d.ts +1 -1
- package/esm/src/api/subscription/activeAssetCtx.d.ts.map +1 -1
- package/esm/src/api/subscription/activeAssetData.d.ts +1 -1
- package/esm/src/api/subscription/activeAssetData.d.ts.map +1 -1
- package/esm/src/api/subscription/activeSpotAssetCtx.d.ts +1 -1
- package/esm/src/api/subscription/activeSpotAssetCtx.d.ts.map +1 -1
- package/esm/src/api/subscription/allMids.d.ts +1 -1
- package/esm/src/api/subscription/allMids.d.ts.map +1 -1
- package/esm/src/api/subscription/assetCtxs.d.ts +1 -1
- package/esm/src/api/subscription/assetCtxs.d.ts.map +1 -1
- package/esm/src/api/subscription/bbo.d.ts +1 -1
- package/esm/src/api/subscription/bbo.d.ts.map +1 -1
- package/esm/src/api/subscription/candle.d.ts +1 -1
- package/esm/src/api/subscription/candle.d.ts.map +1 -1
- package/esm/src/api/subscription/clearinghouseState.d.ts +1 -1
- package/esm/src/api/subscription/clearinghouseState.d.ts.map +1 -1
- package/esm/src/api/subscription/explorerBlock.d.ts +1 -1
- package/esm/src/api/subscription/explorerBlock.d.ts.map +1 -1
- package/esm/src/api/subscription/explorerTxs.d.ts +1 -1
- package/esm/src/api/subscription/explorerTxs.d.ts.map +1 -1
- package/esm/src/api/subscription/l2Book.d.ts +1 -1
- package/esm/src/api/subscription/l2Book.d.ts.map +1 -1
- package/esm/src/api/subscription/notification.d.ts +1 -1
- package/esm/src/api/subscription/notification.d.ts.map +1 -1
- package/esm/src/api/subscription/openOrders.d.ts +1 -1
- package/esm/src/api/subscription/openOrders.d.ts.map +1 -1
- package/esm/src/api/subscription/orderUpdates.d.ts +1 -1
- package/esm/src/api/subscription/orderUpdates.d.ts.map +1 -1
- package/esm/src/api/subscription/trades.d.ts +1 -1
- package/esm/src/api/subscription/trades.d.ts.map +1 -1
- package/esm/src/api/subscription/userEvents.d.ts +1 -1
- package/esm/src/api/subscription/userEvents.d.ts.map +1 -1
- package/esm/src/api/subscription/userFills.d.ts +1 -1
- package/esm/src/api/subscription/userFills.d.ts.map +1 -1
- package/esm/src/api/subscription/userFundings.d.ts +1 -1
- package/esm/src/api/subscription/userFundings.d.ts.map +1 -1
- package/esm/src/api/subscription/userHistoricalOrders.d.ts +1 -1
- package/esm/src/api/subscription/userHistoricalOrders.d.ts.map +1 -1
- package/esm/src/api/subscription/userNonFundingLedgerUpdates.d.ts +1 -1
- package/esm/src/api/subscription/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/esm/src/api/subscription/userTwapHistory.d.ts +1 -1
- package/esm/src/api/subscription/userTwapHistory.d.ts.map +1 -1
- package/esm/src/api/subscription/userTwapSliceFills.d.ts +1 -1
- package/esm/src/api/subscription/userTwapSliceFills.d.ts.map +1 -1
- package/esm/src/api/subscription/webData2.d.ts +5 -5
- package/esm/src/api/subscription/webData2.d.ts.map +1 -1
- package/esm/src/api/subscription/webData2.js +1 -1
- package/esm/src/api/subscription/webData2.js.map +1 -1
- package/esm/src/api/subscription/webData3.d.ts +541 -0
- package/esm/src/api/subscription/webData3.d.ts.map +1 -0
- package/esm/src/api/subscription/webData3.js +94 -0
- package/esm/src/api/subscription/webData3.js.map +1 -0
- package/esm/src/api/subscription/~client.d.ts +24 -1
- package/esm/src/api/subscription/~client.d.ts.map +1 -1
- package/esm/src/api/subscription/~client.js +23 -0
- package/esm/src/api/subscription/~client.js.map +1 -1
- package/esm/src/api/subscription/~mod.d.ts +2 -1
- package/esm/src/api/subscription/~mod.d.ts.map +1 -1
- package/esm/src/api/subscription/~mod.js +1 -0
- package/esm/src/api/subscription/~mod.js.map +1 -1
- package/esm/src/signing/_signTypedData.d.ts.map +1 -1
- package/esm/src/signing/_signTypedData.js +4 -3
- package/esm/src/signing/_signTypedData.js.map +1 -1
- package/esm/src/transport/http/mod.d.ts +3 -3
- package/esm/src/transport/websocket/_reconnecting_websocket.d.ts +4 -4
- package/esm/src/transport/websocket/mod.d.ts +5 -5
- package/esm/src/utils/_format.d.ts +29 -0
- package/esm/src/utils/_format.d.ts.map +1 -0
- package/esm/src/utils/_format.js +147 -0
- package/esm/src/utils/_format.js.map +1 -0
- package/esm/src/utils/_symbolConverter.d.ts +13 -0
- package/esm/src/utils/_symbolConverter.d.ts.map +1 -1
- package/esm/src/utils/_symbolConverter.js +17 -0
- package/esm/src/utils/_symbolConverter.js.map +1 -1
- package/esm/src/utils/mod.d.ts +1 -0
- package/esm/src/utils/mod.d.ts.map +1 -1
- package/esm/src/utils/mod.js +1 -0
- package/esm/src/utils/mod.js.map +1 -1
- package/package.json +1 -1
- package/script/bin/cli.js +7 -2
- package/script/bin/cli.js.map +1 -1
- package/script/src/api/_base.d.ts +1 -0
- package/script/src/api/_base.d.ts.map +1 -1
- package/script/src/api/_base.js.map +1 -1
- package/script/src/api/exchange/_base/_errors.d.ts +14 -0
- package/script/src/api/exchange/_base/_errors.d.ts.map +1 -0
- package/script/src/api/exchange/_base/_errors.js +56 -0
- package/script/src/api/exchange/_base/_errors.js.map +1 -0
- package/script/src/api/exchange/_base/_execute.d.ts +34 -0
- package/script/src/api/exchange/_base/_execute.d.ts.map +1 -0
- package/script/src/api/exchange/_base/_execute.js +147 -0
- package/script/src/api/exchange/_base/_execute.js.map +1 -0
- package/script/src/api/exchange/_base/_helpers.d.ts +11 -0
- package/script/src/api/exchange/_base/_helpers.d.ts.map +1 -0
- package/script/src/api/exchange/_base/_helpers.js +21 -0
- package/script/src/api/exchange/_base/_helpers.js.map +1 -0
- package/script/src/api/exchange/_base/_nonce.d.ts +11 -0
- package/script/src/api/exchange/_base/_nonce.d.ts.map +1 -0
- package/script/src/api/exchange/_base/_nonce.js +22 -0
- package/script/src/api/exchange/_base/_nonce.js.map +1 -0
- package/script/src/api/exchange/_base/_schemas.d.ts +45 -0
- package/script/src/api/exchange/_base/_schemas.d.ts.map +1 -0
- package/script/src/api/exchange/_base/_schemas.js +71 -0
- package/script/src/api/exchange/_base/_schemas.js.map +1 -0
- package/script/src/api/exchange/_base/_sequential.d.ts +30 -0
- package/script/src/api/exchange/_base/_sequential.d.ts.map +1 -0
- package/script/src/api/exchange/_base/_sequential.js +72 -0
- package/script/src/api/exchange/_base/_sequential.js.map +1 -0
- package/script/src/api/exchange/_base/_types.d.ts +68 -0
- package/script/src/api/exchange/_base/_types.d.ts.map +1 -0
- package/script/src/api/{info/_base.js → exchange/_base/_types.js} +1 -1
- package/script/src/api/exchange/_base/_types.js.map +1 -0
- package/script/src/api/exchange/_base/mod.d.ts +8 -0
- package/script/src/api/exchange/_base/mod.d.ts.map +1 -0
- package/script/src/api/exchange/_base/mod.js +24 -0
- package/script/src/api/exchange/_base/mod.js.map +1 -0
- package/script/src/api/exchange/agentEnableDexAbstraction.d.ts +5 -5
- package/script/src/api/exchange/agentEnableDexAbstraction.d.ts.map +1 -1
- package/script/src/api/exchange/agentEnableDexAbstraction.js +8 -7
- package/script/src/api/exchange/agentEnableDexAbstraction.js.map +1 -1
- package/script/src/api/exchange/approveAgent.d.ts +6 -6
- package/script/src/api/exchange/approveAgent.d.ts.map +1 -1
- package/script/src/api/exchange/approveAgent.js +8 -8
- package/script/src/api/exchange/approveAgent.js.map +1 -1
- package/script/src/api/exchange/approveBuilderFee.d.ts +6 -6
- package/script/src/api/exchange/approveBuilderFee.d.ts.map +1 -1
- package/script/src/api/exchange/approveBuilderFee.js +8 -8
- package/script/src/api/exchange/approveBuilderFee.js.map +1 -1
- package/script/src/api/exchange/batchModify.d.ts +5 -5
- package/script/src/api/exchange/batchModify.d.ts.map +1 -1
- package/script/src/api/exchange/batchModify.js +8 -6
- package/script/src/api/exchange/batchModify.js.map +1 -1
- package/script/src/api/exchange/cDeposit.d.ts +6 -6
- package/script/src/api/exchange/cDeposit.d.ts.map +1 -1
- package/script/src/api/exchange/cDeposit.js +8 -8
- package/script/src/api/exchange/cDeposit.js.map +1 -1
- package/script/src/api/exchange/cSignerAction.d.ts +7 -7
- package/script/src/api/exchange/cSignerAction.d.ts.map +1 -1
- package/script/src/api/exchange/cSignerAction.js +9 -8
- package/script/src/api/exchange/cSignerAction.js.map +1 -1
- package/script/src/api/exchange/cValidatorAction.d.ts +7 -7
- package/script/src/api/exchange/cValidatorAction.d.ts.map +1 -1
- package/script/src/api/exchange/cValidatorAction.js +9 -8
- package/script/src/api/exchange/cValidatorAction.js.map +1 -1
- package/script/src/api/exchange/cWithdraw.d.ts +6 -6
- package/script/src/api/exchange/cWithdraw.d.ts.map +1 -1
- package/script/src/api/exchange/cWithdraw.js +8 -8
- package/script/src/api/exchange/cWithdraw.js.map +1 -1
- package/script/src/api/exchange/cancel.d.ts +5 -5
- package/script/src/api/exchange/cancel.d.ts.map +1 -1
- package/script/src/api/exchange/cancel.js +8 -6
- package/script/src/api/exchange/cancel.js.map +1 -1
- package/script/src/api/exchange/cancelByCloid.d.ts +5 -5
- package/script/src/api/exchange/cancelByCloid.d.ts.map +1 -1
- package/script/src/api/exchange/cancelByCloid.js +8 -6
- package/script/src/api/exchange/cancelByCloid.js.map +1 -1
- package/script/src/api/exchange/claimRewards.d.ts +5 -5
- package/script/src/api/exchange/claimRewards.d.ts.map +1 -1
- package/script/src/api/exchange/claimRewards.js +8 -7
- package/script/src/api/exchange/claimRewards.js.map +1 -1
- package/script/src/api/exchange/convertToMultiSigUser.d.ts +6 -6
- package/script/src/api/exchange/convertToMultiSigUser.d.ts.map +1 -1
- package/script/src/api/exchange/convertToMultiSigUser.js +8 -8
- package/script/src/api/exchange/convertToMultiSigUser.js.map +1 -1
- package/script/src/api/exchange/createSubAccount.d.ts +5 -5
- package/script/src/api/exchange/createSubAccount.d.ts.map +1 -1
- package/script/src/api/exchange/createSubAccount.js +6 -5
- package/script/src/api/exchange/createSubAccount.js.map +1 -1
- package/script/src/api/exchange/createVault.d.ts +5 -5
- package/script/src/api/exchange/createVault.d.ts.map +1 -1
- package/script/src/api/exchange/createVault.js +6 -5
- package/script/src/api/exchange/createVault.js.map +1 -1
- package/script/src/api/exchange/evmUserModify.d.ts +6 -6
- package/script/src/api/exchange/evmUserModify.d.ts.map +1 -1
- package/script/src/api/exchange/evmUserModify.js +8 -7
- package/script/src/api/exchange/evmUserModify.js.map +1 -1
- package/script/src/api/exchange/modify.d.ts +6 -6
- package/script/src/api/exchange/modify.d.ts.map +1 -1
- package/script/src/api/exchange/modify.js +10 -8
- package/script/src/api/exchange/modify.js.map +1 -1
- package/script/src/api/exchange/multiSig.d.ts +231 -41
- package/script/src/api/exchange/multiSig.d.ts.map +1 -1
- package/script/src/api/exchange/multiSig.js +13 -11
- package/script/src/api/exchange/multiSig.js.map +1 -1
- package/script/src/api/exchange/noop.d.ts +5 -5
- package/script/src/api/exchange/noop.d.ts.map +1 -1
- package/script/src/api/exchange/noop.js +8 -7
- package/script/src/api/exchange/noop.js.map +1 -1
- package/script/src/api/exchange/order.d.ts +5 -5
- package/script/src/api/exchange/order.d.ts.map +1 -1
- package/script/src/api/exchange/order.js +8 -6
- package/script/src/api/exchange/order.js.map +1 -1
- package/script/src/api/exchange/perpDeploy.d.ts +110 -8
- package/script/src/api/exchange/perpDeploy.d.ts.map +1 -1
- package/script/src/api/exchange/perpDeploy.js +47 -8
- package/script/src/api/exchange/perpDeploy.js.map +1 -1
- package/script/src/api/exchange/registerReferrer.d.ts +6 -6
- package/script/src/api/exchange/registerReferrer.d.ts.map +1 -1
- package/script/src/api/exchange/registerReferrer.js +8 -7
- package/script/src/api/exchange/registerReferrer.js.map +1 -1
- package/script/src/api/exchange/reserveRequestWeight.d.ts +6 -6
- package/script/src/api/exchange/reserveRequestWeight.d.ts.map +1 -1
- package/script/src/api/exchange/reserveRequestWeight.js +8 -7
- package/script/src/api/exchange/reserveRequestWeight.js.map +1 -1
- package/script/src/api/exchange/scheduleCancel.d.ts +6 -6
- package/script/src/api/exchange/scheduleCancel.d.ts.map +1 -1
- package/script/src/api/exchange/scheduleCancel.js +10 -8
- package/script/src/api/exchange/scheduleCancel.js.map +1 -1
- package/script/src/api/exchange/sendAsset.d.ts +6 -6
- package/script/src/api/exchange/sendAsset.d.ts.map +1 -1
- package/script/src/api/exchange/sendAsset.js +8 -8
- package/script/src/api/exchange/sendAsset.js.map +1 -1
- package/script/src/api/exchange/setDisplayName.d.ts +6 -6
- package/script/src/api/exchange/setDisplayName.d.ts.map +1 -1
- package/script/src/api/exchange/setDisplayName.js +8 -7
- package/script/src/api/exchange/setDisplayName.js.map +1 -1
- package/script/src/api/exchange/setReferrer.d.ts +6 -6
- package/script/src/api/exchange/setReferrer.d.ts.map +1 -1
- package/script/src/api/exchange/setReferrer.js +8 -7
- package/script/src/api/exchange/setReferrer.js.map +1 -1
- package/script/src/api/exchange/spotDeploy.d.ts +33 -8
- package/script/src/api/exchange/spotDeploy.d.ts.map +1 -1
- package/script/src/api/exchange/spotDeploy.js +18 -8
- package/script/src/api/exchange/spotDeploy.js.map +1 -1
- package/script/src/api/exchange/spotSend.d.ts +6 -6
- package/script/src/api/exchange/spotSend.d.ts.map +1 -1
- package/script/src/api/exchange/spotSend.js +8 -8
- package/script/src/api/exchange/spotSend.js.map +1 -1
- package/script/src/api/exchange/spotUser.d.ts +6 -6
- package/script/src/api/exchange/spotUser.d.ts.map +1 -1
- package/script/src/api/exchange/spotUser.js +8 -7
- package/script/src/api/exchange/spotUser.js.map +1 -1
- package/script/src/api/exchange/subAccountModify.d.ts +6 -6
- package/script/src/api/exchange/subAccountModify.d.ts.map +1 -1
- package/script/src/api/exchange/subAccountModify.js +8 -7
- package/script/src/api/exchange/subAccountModify.js.map +1 -1
- package/script/src/api/exchange/subAccountSpotTransfer.d.ts +6 -6
- package/script/src/api/exchange/subAccountSpotTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/subAccountSpotTransfer.js +8 -7
- package/script/src/api/exchange/subAccountSpotTransfer.js.map +1 -1
- package/script/src/api/exchange/subAccountTransfer.d.ts +6 -6
- package/script/src/api/exchange/subAccountTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/subAccountTransfer.js +8 -7
- package/script/src/api/exchange/subAccountTransfer.js.map +1 -1
- package/script/src/api/exchange/tokenDelegate.d.ts +6 -6
- package/script/src/api/exchange/tokenDelegate.d.ts.map +1 -1
- package/script/src/api/exchange/tokenDelegate.js +8 -8
- package/script/src/api/exchange/tokenDelegate.js.map +1 -1
- package/script/src/api/exchange/twapCancel.d.ts +5 -5
- package/script/src/api/exchange/twapCancel.d.ts.map +1 -1
- package/script/src/api/exchange/twapCancel.js +8 -6
- package/script/src/api/exchange/twapCancel.js.map +1 -1
- package/script/src/api/exchange/twapOrder.d.ts +5 -5
- package/script/src/api/exchange/twapOrder.d.ts.map +1 -1
- package/script/src/api/exchange/twapOrder.js +8 -6
- package/script/src/api/exchange/twapOrder.js.map +1 -1
- package/script/src/api/exchange/updateIsolatedMargin.d.ts +7 -7
- package/script/src/api/exchange/updateIsolatedMargin.d.ts.map +1 -1
- package/script/src/api/exchange/updateIsolatedMargin.js +11 -9
- package/script/src/api/exchange/updateIsolatedMargin.js.map +1 -1
- package/script/src/api/exchange/updateLeverage.d.ts +6 -6
- package/script/src/api/exchange/updateLeverage.d.ts.map +1 -1
- package/script/src/api/exchange/updateLeverage.js +10 -8
- package/script/src/api/exchange/updateLeverage.js.map +1 -1
- package/script/src/api/exchange/usdClassTransfer.d.ts +6 -6
- package/script/src/api/exchange/usdClassTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/usdClassTransfer.js +8 -8
- package/script/src/api/exchange/usdClassTransfer.js.map +1 -1
- package/script/src/api/exchange/usdSend.d.ts +6 -6
- package/script/src/api/exchange/usdSend.d.ts.map +1 -1
- package/script/src/api/exchange/usdSend.js +8 -8
- package/script/src/api/exchange/usdSend.js.map +1 -1
- package/script/src/api/exchange/userDexAbstraction.d.ts +6 -6
- package/script/src/api/exchange/userDexAbstraction.d.ts.map +1 -1
- package/script/src/api/exchange/userDexAbstraction.js +8 -8
- package/script/src/api/exchange/userDexAbstraction.js.map +1 -1
- package/script/src/api/exchange/vaultDistribute.d.ts +6 -6
- package/script/src/api/exchange/vaultDistribute.d.ts.map +1 -1
- package/script/src/api/exchange/vaultDistribute.js +8 -7
- package/script/src/api/exchange/vaultDistribute.js.map +1 -1
- package/script/src/api/exchange/vaultModify.d.ts +6 -6
- package/script/src/api/exchange/vaultModify.d.ts.map +1 -1
- package/script/src/api/exchange/vaultModify.js +8 -7
- package/script/src/api/exchange/vaultModify.js.map +1 -1
- package/script/src/api/exchange/vaultTransfer.d.ts +6 -6
- package/script/src/api/exchange/vaultTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/vaultTransfer.js +8 -7
- package/script/src/api/exchange/vaultTransfer.js.map +1 -1
- package/script/src/api/exchange/withdraw3.d.ts +6 -6
- package/script/src/api/exchange/withdraw3.d.ts.map +1 -1
- package/script/src/api/exchange/withdraw3.js +8 -8
- package/script/src/api/exchange/withdraw3.js.map +1 -1
- package/script/src/api/exchange/~client.d.ts +27 -27
- package/script/src/api/exchange/~client.d.ts.map +1 -1
- package/script/src/api/exchange/~client.js +6 -6
- package/script/src/api/exchange/~client.js.map +1 -1
- package/script/src/api/exchange/~mod.d.ts +1 -1
- package/script/src/api/exchange/~mod.d.ts.map +1 -1
- package/script/src/api/exchange/~mod.js +3 -1
- package/script/src/api/exchange/~mod.js.map +1 -1
- package/script/src/api/info/{_base.d.ts → _types.d.ts} +1 -1
- package/script/src/api/info/_types.d.ts.map +1 -0
- package/script/src/api/{subscription/_base.js → info/_types.js} +1 -1
- package/script/src/api/info/_types.js.map +1 -0
- package/script/src/api/info/activeAssetData.d.ts +1 -1
- package/script/src/api/info/activeAssetData.d.ts.map +1 -1
- package/script/src/api/info/alignedQuoteTokenInfo.d.ts +1 -1
- package/script/src/api/info/alignedQuoteTokenInfo.d.ts.map +1 -1
- package/script/src/api/info/allMids.d.ts +1 -1
- package/script/src/api/info/allMids.d.ts.map +1 -1
- package/script/src/api/info/allPerpMetas.d.ts +130 -0
- package/script/src/api/info/allPerpMetas.d.ts.map +1 -0
- package/script/src/api/info/allPerpMetas.js +83 -0
- package/script/src/api/info/allPerpMetas.js.map +1 -0
- package/script/src/api/info/blockDetails.d.ts +1 -1
- package/script/src/api/info/blockDetails.d.ts.map +1 -1
- package/script/src/api/info/candleSnapshot.d.ts +1 -1
- package/script/src/api/info/candleSnapshot.d.ts.map +1 -1
- package/script/src/api/info/clearinghouseState.d.ts +1 -1
- package/script/src/api/info/clearinghouseState.d.ts.map +1 -1
- package/script/src/api/info/delegations.d.ts +1 -1
- package/script/src/api/info/delegations.d.ts.map +1 -1
- package/script/src/api/info/delegatorHistory.d.ts +1 -1
- package/script/src/api/info/delegatorHistory.d.ts.map +1 -1
- package/script/src/api/info/delegatorRewards.d.ts +1 -1
- package/script/src/api/info/delegatorRewards.d.ts.map +1 -1
- package/script/src/api/info/delegatorSummary.d.ts +1 -1
- package/script/src/api/info/delegatorSummary.d.ts.map +1 -1
- package/script/src/api/info/exchangeStatus.d.ts +1 -1
- package/script/src/api/info/exchangeStatus.d.ts.map +1 -1
- package/script/src/api/info/extraAgents.d.ts +1 -1
- package/script/src/api/info/extraAgents.d.ts.map +1 -1
- package/script/src/api/info/frontendOpenOrders.d.ts +1 -1
- package/script/src/api/info/frontendOpenOrders.d.ts.map +1 -1
- package/script/src/api/info/fundingHistory.d.ts +1 -1
- package/script/src/api/info/fundingHistory.d.ts.map +1 -1
- package/script/src/api/info/gossipRootIps.d.ts +1 -1
- package/script/src/api/info/gossipRootIps.d.ts.map +1 -1
- package/script/src/api/info/historicalOrders.d.ts +1 -1
- package/script/src/api/info/historicalOrders.d.ts.map +1 -1
- package/script/src/api/info/isVip.d.ts +1 -1
- package/script/src/api/info/isVip.d.ts.map +1 -1
- package/script/src/api/info/l2Book.d.ts +1 -1
- package/script/src/api/info/l2Book.d.ts.map +1 -1
- package/script/src/api/info/leadingVaults.d.ts +1 -1
- package/script/src/api/info/leadingVaults.d.ts.map +1 -1
- package/script/src/api/info/legalCheck.d.ts +1 -1
- package/script/src/api/info/legalCheck.d.ts.map +1 -1
- package/script/src/api/info/liquidatable.d.ts +1 -1
- package/script/src/api/info/liquidatable.d.ts.map +1 -1
- package/script/src/api/info/marginTable.d.ts +1 -1
- package/script/src/api/info/marginTable.d.ts.map +1 -1
- package/script/src/api/info/maxBuilderFee.d.ts +1 -1
- package/script/src/api/info/maxBuilderFee.d.ts.map +1 -1
- package/script/src/api/info/maxMarketOrderNtls.d.ts +1 -1
- package/script/src/api/info/maxMarketOrderNtls.d.ts.map +1 -1
- package/script/src/api/info/meta.d.ts +1 -1
- package/script/src/api/info/meta.d.ts.map +1 -1
- package/script/src/api/info/metaAndAssetCtxs.d.ts +1 -1
- package/script/src/api/info/metaAndAssetCtxs.d.ts.map +1 -1
- package/script/src/api/info/openOrders.d.ts +1 -1
- package/script/src/api/info/openOrders.d.ts.map +1 -1
- package/script/src/api/info/orderStatus.d.ts +1 -1
- package/script/src/api/info/orderStatus.d.ts.map +1 -1
- package/script/src/api/info/perpDeployAuctionStatus.d.ts +1 -1
- package/script/src/api/info/perpDeployAuctionStatus.d.ts.map +1 -1
- package/script/src/api/info/perpDexLimits.d.ts +1 -1
- package/script/src/api/info/perpDexLimits.d.ts.map +1 -1
- package/script/src/api/info/perpDexs.d.ts +1 -1
- package/script/src/api/info/perpDexs.d.ts.map +1 -1
- package/script/src/api/info/perpsAtOpenInterestCap.d.ts +1 -1
- package/script/src/api/info/perpsAtOpenInterestCap.d.ts.map +1 -1
- package/script/src/api/info/portfolio.d.ts +1 -1
- package/script/src/api/info/portfolio.d.ts.map +1 -1
- package/script/src/api/info/preTransferCheck.d.ts +1 -1
- package/script/src/api/info/preTransferCheck.d.ts.map +1 -1
- package/script/src/api/info/predictedFundings.d.ts +1 -1
- package/script/src/api/info/predictedFundings.d.ts.map +1 -1
- package/script/src/api/info/recentTrades.d.ts +1 -1
- package/script/src/api/info/recentTrades.d.ts.map +1 -1
- package/script/src/api/info/referral.d.ts +1 -1
- package/script/src/api/info/referral.d.ts.map +1 -1
- package/script/src/api/info/spotClearinghouseState.d.ts +1 -1
- package/script/src/api/info/spotClearinghouseState.d.ts.map +1 -1
- package/script/src/api/info/spotDeployState.d.ts +1 -1
- package/script/src/api/info/spotDeployState.d.ts.map +1 -1
- package/script/src/api/info/spotMeta.d.ts +1 -1
- package/script/src/api/info/spotMeta.d.ts.map +1 -1
- package/script/src/api/info/spotMetaAndAssetCtxs.d.ts +1 -1
- package/script/src/api/info/spotMetaAndAssetCtxs.d.ts.map +1 -1
- package/script/src/api/info/spotPairDeployAuctionStatus.d.ts +1 -1
- package/script/src/api/info/spotPairDeployAuctionStatus.d.ts.map +1 -1
- package/script/src/api/info/subAccounts.d.ts +1 -1
- package/script/src/api/info/subAccounts.d.ts.map +1 -1
- package/script/src/api/info/subAccounts2.d.ts +498 -0
- package/script/src/api/info/subAccounts2.d.ts.map +1 -0
- package/script/src/api/info/subAccounts2.js +107 -0
- package/script/src/api/info/subAccounts2.js.map +1 -0
- package/script/src/api/info/tokenDetails.d.ts +1 -1
- package/script/src/api/info/tokenDetails.d.ts.map +1 -1
- package/script/src/api/info/twapHistory.d.ts +1 -1
- package/script/src/api/info/twapHistory.d.ts.map +1 -1
- package/script/src/api/info/txDetails.d.ts +1 -1
- package/script/src/api/info/txDetails.d.ts.map +1 -1
- package/script/src/api/info/userDetails.d.ts +1 -1
- package/script/src/api/info/userDetails.d.ts.map +1 -1
- package/script/src/api/info/userDexAbstraction.d.ts +1 -1
- package/script/src/api/info/userDexAbstraction.d.ts.map +1 -1
- package/script/src/api/info/userFees.d.ts +1 -1
- package/script/src/api/info/userFees.d.ts.map +1 -1
- package/script/src/api/info/userFills.d.ts +1 -1
- package/script/src/api/info/userFills.d.ts.map +1 -1
- package/script/src/api/info/userFillsByTime.d.ts +1 -1
- package/script/src/api/info/userFillsByTime.d.ts.map +1 -1
- package/script/src/api/info/userFunding.d.ts +1 -1
- package/script/src/api/info/userFunding.d.ts.map +1 -1
- package/script/src/api/info/userNonFundingLedgerUpdates.d.ts +1 -1
- package/script/src/api/info/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/script/src/api/info/userRateLimit.d.ts +1 -1
- package/script/src/api/info/userRateLimit.d.ts.map +1 -1
- package/script/src/api/info/userRole.d.ts +1 -1
- package/script/src/api/info/userRole.d.ts.map +1 -1
- package/script/src/api/info/userToMultiSigSigners.d.ts +1 -1
- package/script/src/api/info/userToMultiSigSigners.d.ts.map +1 -1
- package/script/src/api/info/userTwapSliceFills.d.ts +1 -1
- package/script/src/api/info/userTwapSliceFills.d.ts.map +1 -1
- package/script/src/api/info/userTwapSliceFillsByTime.d.ts +1 -1
- package/script/src/api/info/userTwapSliceFillsByTime.d.ts.map +1 -1
- package/script/src/api/info/userVaultEquities.d.ts +1 -1
- package/script/src/api/info/userVaultEquities.d.ts.map +1 -1
- package/script/src/api/info/validatorL1Votes.d.ts +1 -1
- package/script/src/api/info/validatorL1Votes.d.ts.map +1 -1
- package/script/src/api/info/validatorSummaries.d.ts +1 -1
- package/script/src/api/info/validatorSummaries.d.ts.map +1 -1
- package/script/src/api/info/vaultDetails.d.ts +1 -1
- package/script/src/api/info/vaultDetails.d.ts.map +1 -1
- package/script/src/api/info/vaultSummaries.d.ts +1 -1
- package/script/src/api/info/vaultSummaries.d.ts.map +1 -1
- package/script/src/api/info/webData2.d.ts +147 -24
- package/script/src/api/info/webData2.d.ts.map +1 -1
- package/script/src/api/info/webData2.js +2 -53
- package/script/src/api/info/webData2.js.map +1 -1
- package/script/src/api/info/~client.d.ts +125 -3
- package/script/src/api/info/~client.d.ts.map +1 -1
- package/script/src/api/info/~client.js +45 -0
- package/script/src/api/info/~client.js.map +1 -1
- package/script/src/api/info/~mod.d.ts +3 -1
- package/script/src/api/info/~mod.d.ts.map +1 -1
- package/script/src/api/info/~mod.js +2 -0
- package/script/src/api/info/~mod.js.map +1 -1
- package/script/src/api/subscription/{_base.d.ts → _types.d.ts} +1 -1
- package/script/src/api/subscription/_types.d.ts.map +1 -0
- package/script/src/api/subscription/_types.js +3 -0
- package/script/src/api/subscription/_types.js.map +1 -0
- package/script/src/api/subscription/activeAssetCtx.d.ts +1 -1
- package/script/src/api/subscription/activeAssetCtx.d.ts.map +1 -1
- package/script/src/api/subscription/activeAssetData.d.ts +1 -1
- package/script/src/api/subscription/activeAssetData.d.ts.map +1 -1
- package/script/src/api/subscription/activeSpotAssetCtx.d.ts +1 -1
- package/script/src/api/subscription/activeSpotAssetCtx.d.ts.map +1 -1
- package/script/src/api/subscription/allMids.d.ts +1 -1
- package/script/src/api/subscription/allMids.d.ts.map +1 -1
- package/script/src/api/subscription/assetCtxs.d.ts +1 -1
- package/script/src/api/subscription/assetCtxs.d.ts.map +1 -1
- package/script/src/api/subscription/bbo.d.ts +1 -1
- package/script/src/api/subscription/bbo.d.ts.map +1 -1
- package/script/src/api/subscription/candle.d.ts +1 -1
- package/script/src/api/subscription/candle.d.ts.map +1 -1
- package/script/src/api/subscription/clearinghouseState.d.ts +1 -1
- package/script/src/api/subscription/clearinghouseState.d.ts.map +1 -1
- package/script/src/api/subscription/explorerBlock.d.ts +1 -1
- package/script/src/api/subscription/explorerBlock.d.ts.map +1 -1
- package/script/src/api/subscription/explorerTxs.d.ts +1 -1
- package/script/src/api/subscription/explorerTxs.d.ts.map +1 -1
- package/script/src/api/subscription/l2Book.d.ts +1 -1
- package/script/src/api/subscription/l2Book.d.ts.map +1 -1
- package/script/src/api/subscription/notification.d.ts +1 -1
- package/script/src/api/subscription/notification.d.ts.map +1 -1
- package/script/src/api/subscription/openOrders.d.ts +1 -1
- package/script/src/api/subscription/openOrders.d.ts.map +1 -1
- package/script/src/api/subscription/orderUpdates.d.ts +1 -1
- package/script/src/api/subscription/orderUpdates.d.ts.map +1 -1
- package/script/src/api/subscription/trades.d.ts +1 -1
- package/script/src/api/subscription/trades.d.ts.map +1 -1
- package/script/src/api/subscription/userEvents.d.ts +1 -1
- package/script/src/api/subscription/userEvents.d.ts.map +1 -1
- package/script/src/api/subscription/userFills.d.ts +1 -1
- package/script/src/api/subscription/userFills.d.ts.map +1 -1
- package/script/src/api/subscription/userFundings.d.ts +1 -1
- package/script/src/api/subscription/userFundings.d.ts.map +1 -1
- package/script/src/api/subscription/userHistoricalOrders.d.ts +1 -1
- package/script/src/api/subscription/userHistoricalOrders.d.ts.map +1 -1
- package/script/src/api/subscription/userNonFundingLedgerUpdates.d.ts +1 -1
- package/script/src/api/subscription/userNonFundingLedgerUpdates.d.ts.map +1 -1
- package/script/src/api/subscription/userTwapHistory.d.ts +1 -1
- package/script/src/api/subscription/userTwapHistory.d.ts.map +1 -1
- package/script/src/api/subscription/userTwapSliceFills.d.ts +1 -1
- package/script/src/api/subscription/userTwapSliceFills.d.ts.map +1 -1
- package/script/src/api/subscription/webData2.d.ts +5 -5
- package/script/src/api/subscription/webData2.d.ts.map +1 -1
- package/script/src/api/subscription/webData2.js +1 -1
- package/script/src/api/subscription/webData2.js.map +1 -1
- package/script/src/api/subscription/webData3.d.ts +541 -0
- package/script/src/api/subscription/webData3.d.ts.map +1 -0
- package/script/src/api/subscription/webData3.js +131 -0
- package/script/src/api/subscription/webData3.js.map +1 -0
- package/script/src/api/subscription/~client.d.ts +24 -1
- package/script/src/api/subscription/~client.d.ts.map +1 -1
- package/script/src/api/subscription/~client.js +23 -0
- package/script/src/api/subscription/~client.js.map +1 -1
- package/script/src/api/subscription/~mod.d.ts +2 -1
- package/script/src/api/subscription/~mod.d.ts.map +1 -1
- package/script/src/api/subscription/~mod.js +1 -0
- package/script/src/api/subscription/~mod.js.map +1 -1
- package/script/src/signing/_signTypedData.d.ts.map +1 -1
- package/script/src/signing/_signTypedData.js +4 -3
- package/script/src/signing/_signTypedData.js.map +1 -1
- package/script/src/transport/http/mod.d.ts +3 -3
- package/script/src/transport/websocket/_reconnecting_websocket.d.ts +4 -4
- package/script/src/transport/websocket/mod.d.ts +5 -5
- package/script/src/utils/_format.d.ts +29 -0
- package/script/src/utils/_format.d.ts.map +1 -0
- package/script/src/utils/_format.js +151 -0
- package/script/src/utils/_format.js.map +1 -0
- package/script/src/utils/_symbolConverter.d.ts +13 -0
- package/script/src/utils/_symbolConverter.d.ts.map +1 -1
- package/script/src/utils/_symbolConverter.js +17 -0
- package/script/src/utils/_symbolConverter.js.map +1 -1
- package/script/src/utils/mod.d.ts +1 -0
- package/script/src/utils/mod.d.ts.map +1 -1
- package/script/src/utils/mod.js +1 -0
- package/script/src/utils/mod.js.map +1 -1
- package/src/bin/cli.ts +7 -2
- package/src/src/api/_base.ts +2 -0
- package/src/src/api/exchange/_base/_errors.ts +60 -0
- package/src/src/api/exchange/_base/_execute.ts +220 -0
- package/src/src/api/exchange/_base/_helpers.ts +26 -0
- package/src/src/api/exchange/_base/_nonce.ts +18 -0
- package/src/src/api/exchange/_base/_schemas.ts +73 -0
- package/src/src/api/exchange/_base/_sequential.ts +82 -0
- package/src/src/api/exchange/_base/_types.ts +95 -0
- package/src/src/api/exchange/_base/mod.ts +7 -0
- package/src/src/api/exchange/agentEnableDexAbstraction.ts +7 -4
- package/src/src/api/exchange/approveAgent.ts +5 -5
- package/src/src/api/exchange/approveBuilderFee.ts +5 -5
- package/src/src/api/exchange/batchModify.ts +9 -4
- package/src/src/api/exchange/cDeposit.ts +5 -5
- package/src/src/api/exchange/cSignerAction.ts +8 -5
- package/src/src/api/exchange/cValidatorAction.ts +8 -5
- package/src/src/api/exchange/cWithdraw.ts +5 -5
- package/src/src/api/exchange/cancel.ts +9 -4
- package/src/src/api/exchange/cancelByCloid.ts +9 -4
- package/src/src/api/exchange/claimRewards.ts +7 -4
- package/src/src/api/exchange/convertToMultiSigUser.ts +5 -5
- package/src/src/api/exchange/createSubAccount.ts +6 -3
- package/src/src/api/exchange/createVault.ts +6 -3
- package/src/src/api/exchange/evmUserModify.ts +7 -4
- package/src/src/api/exchange/modify.ts +10 -5
- package/src/src/api/exchange/multiSig.ts +11 -6
- package/src/src/api/exchange/noop.ts +7 -4
- package/src/src/api/exchange/order.ts +9 -4
- package/src/src/api/exchange/perpDeploy.ts +103 -5
- package/src/src/api/exchange/registerReferrer.ts +7 -4
- package/src/src/api/exchange/reserveRequestWeight.ts +7 -4
- package/src/src/api/exchange/scheduleCancel.ts +10 -5
- package/src/src/api/exchange/sendAsset.ts +5 -5
- package/src/src/api/exchange/setDisplayName.ts +7 -4
- package/src/src/api/exchange/setReferrer.ts +7 -4
- package/src/src/api/exchange/spotDeploy.ts +29 -5
- package/src/src/api/exchange/spotSend.ts +5 -5
- package/src/src/api/exchange/spotUser.ts +7 -4
- package/src/src/api/exchange/subAccountModify.ts +7 -4
- package/src/src/api/exchange/subAccountSpotTransfer.ts +7 -4
- package/src/src/api/exchange/subAccountTransfer.ts +7 -4
- package/src/src/api/exchange/tokenDelegate.ts +5 -5
- package/src/src/api/exchange/twapCancel.ts +9 -4
- package/src/src/api/exchange/twapOrder.ts +9 -4
- package/src/src/api/exchange/updateIsolatedMargin.ts +12 -7
- package/src/src/api/exchange/updateLeverage.ts +10 -5
- package/src/src/api/exchange/usdClassTransfer.ts +5 -5
- package/src/src/api/exchange/usdSend.ts +5 -5
- package/src/src/api/exchange/userDexAbstraction.ts +5 -5
- package/src/src/api/exchange/vaultDistribute.ts +7 -4
- package/src/src/api/exchange/vaultModify.ts +7 -4
- package/src/src/api/exchange/vaultTransfer.ts +7 -4
- package/src/src/api/exchange/withdraw3.ts +5 -5
- package/src/src/api/exchange/~client.ts +8 -8
- package/src/src/api/exchange/~mod.ts +1 -1
- package/src/src/api/info/activeAssetData.ts +1 -1
- package/src/src/api/info/alignedQuoteTokenInfo.ts +1 -1
- package/src/src/api/info/allMids.ts +1 -1
- package/src/src/api/info/allPerpMetas.ts +70 -0
- package/src/src/api/info/blockDetails.ts +1 -1
- package/src/src/api/info/candleSnapshot.ts +1 -1
- package/src/src/api/info/clearinghouseState.ts +1 -1
- package/src/src/api/info/delegations.ts +1 -1
- package/src/src/api/info/delegatorHistory.ts +1 -1
- package/src/src/api/info/delegatorRewards.ts +1 -1
- package/src/src/api/info/delegatorSummary.ts +1 -1
- package/src/src/api/info/exchangeStatus.ts +1 -1
- package/src/src/api/info/extraAgents.ts +1 -1
- package/src/src/api/info/frontendOpenOrders.ts +1 -1
- package/src/src/api/info/fundingHistory.ts +1 -1
- package/src/src/api/info/gossipRootIps.ts +1 -1
- package/src/src/api/info/historicalOrders.ts +1 -1
- package/src/src/api/info/isVip.ts +1 -1
- package/src/src/api/info/l2Book.ts +1 -1
- package/src/src/api/info/leadingVaults.ts +1 -1
- package/src/src/api/info/legalCheck.ts +1 -1
- package/src/src/api/info/liquidatable.ts +1 -1
- package/src/src/api/info/marginTable.ts +1 -1
- package/src/src/api/info/maxBuilderFee.ts +1 -1
- package/src/src/api/info/maxMarketOrderNtls.ts +1 -1
- package/src/src/api/info/meta.ts +1 -1
- package/src/src/api/info/metaAndAssetCtxs.ts +1 -1
- package/src/src/api/info/openOrders.ts +1 -1
- package/src/src/api/info/orderStatus.ts +1 -1
- package/src/src/api/info/perpDeployAuctionStatus.ts +1 -1
- package/src/src/api/info/perpDexLimits.ts +1 -1
- package/src/src/api/info/perpDexs.ts +1 -1
- package/src/src/api/info/perpsAtOpenInterestCap.ts +1 -1
- package/src/src/api/info/portfolio.ts +1 -1
- package/src/src/api/info/preTransferCheck.ts +1 -1
- package/src/src/api/info/predictedFundings.ts +1 -1
- package/src/src/api/info/recentTrades.ts +1 -1
- package/src/src/api/info/referral.ts +1 -1
- package/src/src/api/info/spotClearinghouseState.ts +1 -1
- package/src/src/api/info/spotDeployState.ts +1 -1
- package/src/src/api/info/spotMeta.ts +1 -1
- package/src/src/api/info/spotMetaAndAssetCtxs.ts +1 -1
- package/src/src/api/info/spotPairDeployAuctionStatus.ts +1 -1
- package/src/src/api/info/subAccounts.ts +1 -1
- package/src/src/api/info/subAccounts2.ts +120 -0
- package/src/src/api/info/tokenDetails.ts +1 -1
- package/src/src/api/info/twapHistory.ts +1 -1
- package/src/src/api/info/txDetails.ts +1 -1
- package/src/src/api/info/userDetails.ts +1 -1
- package/src/src/api/info/userDexAbstraction.ts +1 -1
- package/src/src/api/info/userFees.ts +1 -1
- package/src/src/api/info/userFills.ts +1 -1
- package/src/src/api/info/userFillsByTime.ts +1 -1
- package/src/src/api/info/userFunding.ts +1 -1
- package/src/src/api/info/userNonFundingLedgerUpdates.ts +1 -1
- package/src/src/api/info/userRateLimit.ts +1 -1
- package/src/src/api/info/userRole.ts +1 -1
- package/src/src/api/info/userToMultiSigSigners.ts +1 -1
- package/src/src/api/info/userTwapSliceFills.ts +1 -1
- package/src/src/api/info/userTwapSliceFillsByTime.ts +1 -1
- package/src/src/api/info/userVaultEquities.ts +1 -1
- package/src/src/api/info/validatorL1Votes.ts +1 -1
- package/src/src/api/info/validatorSummaries.ts +1 -1
- package/src/src/api/info/vaultDetails.ts +1 -1
- package/src/src/api/info/vaultSummaries.ts +1 -1
- package/src/src/api/info/webData2.ts +4 -105
- package/src/src/api/info/~client.ts +52 -1
- package/src/src/api/info/~mod.ts +3 -1
- package/src/src/api/subscription/activeAssetCtx.ts +1 -1
- package/src/src/api/subscription/activeAssetData.ts +1 -1
- package/src/src/api/subscription/activeSpotAssetCtx.ts +1 -1
- package/src/src/api/subscription/allMids.ts +1 -1
- package/src/src/api/subscription/assetCtxs.ts +1 -1
- package/src/src/api/subscription/bbo.ts +1 -1
- package/src/src/api/subscription/candle.ts +1 -1
- package/src/src/api/subscription/clearinghouseState.ts +1 -1
- package/src/src/api/subscription/explorerBlock.ts +1 -1
- package/src/src/api/subscription/explorerTxs.ts +1 -1
- package/src/src/api/subscription/l2Book.ts +1 -1
- package/src/src/api/subscription/notification.ts +1 -1
- package/src/src/api/subscription/openOrders.ts +1 -1
- package/src/src/api/subscription/orderUpdates.ts +1 -1
- package/src/src/api/subscription/trades.ts +1 -1
- package/src/src/api/subscription/userEvents.ts +1 -1
- package/src/src/api/subscription/userFills.ts +1 -1
- package/src/src/api/subscription/userFundings.ts +1 -1
- package/src/src/api/subscription/userHistoricalOrders.ts +1 -1
- package/src/src/api/subscription/userNonFundingLedgerUpdates.ts +1 -1
- package/src/src/api/subscription/userTwapHistory.ts +1 -1
- package/src/src/api/subscription/userTwapSliceFills.ts +1 -1
- package/src/src/api/subscription/webData2.ts +2 -2
- package/src/src/api/subscription/webData3.ts +179 -0
- package/src/src/api/subscription/~client.ts +28 -1
- package/src/src/api/subscription/~mod.ts +2 -1
- package/src/src/signing/_signTypedData.ts +4 -3
- package/src/src/transport/http/mod.ts +3 -3
- package/src/src/transport/websocket/_reconnecting_websocket.ts +4 -4
- package/src/src/transport/websocket/mod.ts +5 -5
- package/src/src/utils/_format.ts +172 -0
- package/src/src/utils/_symbolConverter.ts +18 -0
- package/src/src/utils/mod.ts +1 -0
- package/esm/src/api/exchange/_base.d.ts +0 -163
- package/esm/src/api/exchange/_base.d.ts.map +0 -1
- package/esm/src/api/exchange/_base.js +0 -236
- package/esm/src/api/exchange/_base.js.map +0 -1
- package/esm/src/api/info/_base.d.ts.map +0 -1
- package/esm/src/api/info/_base.js +0 -2
- package/esm/src/api/info/_base.js.map +0 -1
- package/esm/src/api/subscription/_base.d.ts.map +0 -1
- package/esm/src/api/subscription/_base.js +0 -2
- package/esm/src/api/subscription/_base.js.map +0 -1
- package/script/src/api/exchange/_base.d.ts +0 -163
- package/script/src/api/exchange/_base.d.ts.map +0 -1
- package/script/src/api/exchange/_base.js +0 -278
- package/script/src/api/exchange/_base.js.map +0 -1
- package/script/src/api/info/_base.d.ts.map +0 -1
- package/script/src/api/info/_base.js.map +0 -1
- package/script/src/api/subscription/_base.d.ts.map +0 -1
- package/script/src/api/subscription/_base.js.map +0 -1
- package/src/src/api/exchange/_base.ts +0 -510
- /package/src/src/api/info/{_base.ts → _types.ts} +0 -0
- /package/src/src/api/subscription/{_base.ts → _types.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { type DeepImmutable } from "../_base.js";
|
|
2
|
-
import { type ExchangeRequestConfig, type ExtractRequestAction, type ExtractRequestOptions } from "./_base.js";
|
|
3
1
|
import * as v from "valibot";
|
|
2
|
+
import { type DeepImmutable } from "../_base.js";
|
|
3
|
+
import { type ExchangeRequestConfig, type ExtractRequestAction, type ExtractRequestOptions } from "./_base/mod.js";
|
|
4
4
|
import { CancelSuccessResponse } from "./cancel.js";
|
|
5
5
|
import { CreateSubAccountResponse } from "./createSubAccount.js";
|
|
6
6
|
import { CreateVaultResponse } from "./createVault.js";
|
|
@@ -20,9 +20,9 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
20
20
|
readonly signatureChainId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Chain ID used for signing.">]>;
|
|
21
21
|
/** List of signatures from authorized signers. */
|
|
22
22
|
readonly signatures: v.SchemaWithPipe<readonly [v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
23
|
-
readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined
|
|
24
|
-
readonly s: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined
|
|
25
|
-
readonly v: v.SchemaWithPipe<readonly [v.
|
|
23
|
+
readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "First 32-byte component of ECDSA signature.">]>;
|
|
24
|
+
readonly s: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "Second 32-byte component of ECDSA signature.">]>;
|
|
25
|
+
readonly v: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<27, undefined>, v.LiteralSchema<28, undefined>], undefined>, v.DescriptionAction<27 | 28, "Recovery identifier.">]>;
|
|
26
26
|
}, undefined>, v.DescriptionAction<{
|
|
27
27
|
r: `0x${string}`;
|
|
28
28
|
s: `0x${string}`;
|
|
@@ -39,7 +39,7 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
39
39
|
/** Address of the authorized user initiating the request (any authorized user). */
|
|
40
40
|
readonly outerSigner: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the authorized user initiating the request (any authorized user).">]>;
|
|
41
41
|
/** The underlying action to be executed through multi-sig. */
|
|
42
|
-
readonly action: v.SchemaWithPipe<readonly [v.
|
|
42
|
+
readonly action: v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
43
43
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"approveAgent", undefined>, v.DescriptionAction<"approveAgent", "Type of action.">]>;
|
|
44
44
|
readonly signatureChainId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Chain ID used for signing.">]>;
|
|
45
45
|
readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Mainnet", undefined>, v.LiteralSchema<"Testnet", undefined>], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network.">]>;
|
|
@@ -264,7 +264,7 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
264
264
|
description: string;
|
|
265
265
|
initialUsd: number;
|
|
266
266
|
nonce: number;
|
|
267
|
-
}, "Action to perform.">]>, v.SchemaWithPipe<readonly [v.
|
|
267
|
+
}, "Action to perform.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
268
268
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"CSignerAction", undefined>, v.DescriptionAction<"CSignerAction", "Type of action.">]>;
|
|
269
269
|
readonly jailSelf: v.SchemaWithPipe<readonly [v.NullSchema<undefined>, v.DescriptionAction<null, "Jail the signer.">]>;
|
|
270
270
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -276,7 +276,7 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
276
276
|
} | {
|
|
277
277
|
type: "CSignerAction";
|
|
278
278
|
unjailSelf: null;
|
|
279
|
-
}, "Action to perform.">]>, v.SchemaWithPipe<readonly [v.
|
|
279
|
+
}, "Action to perform.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.ObjectSchema<{
|
|
280
280
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"CValidatorAction", undefined>, v.DescriptionAction<"CValidatorAction", "Type of action.">]>;
|
|
281
281
|
readonly changeProfile: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
282
282
|
readonly node_ip: v.SchemaWithPipe<readonly [v.NullableSchema<v.ObjectSchema<{
|
|
@@ -583,7 +583,7 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
583
583
|
b: `0x${string}`;
|
|
584
584
|
f: number;
|
|
585
585
|
} | undefined;
|
|
586
|
-
}, "Action to perform.">]>, v.SchemaWithPipe<readonly [v.
|
|
586
|
+
}, "Action to perform.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
587
587
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"perpDeploy", undefined>, v.DescriptionAction<"perpDeploy", "Type of action.">]>;
|
|
588
588
|
readonly registerAsset: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
589
589
|
readonly maxGas: v.SchemaWithPipe<readonly [v.NullableSchema<v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, v.DescriptionAction<number | null, "Max gas in native token wei. If not provided, then uses current deploy auction price.">]>;
|
|
@@ -665,7 +665,55 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
665
665
|
markPxs: [string, string][][];
|
|
666
666
|
externalPerpPxs: [string, string][];
|
|
667
667
|
};
|
|
668
|
-
}, "Set oracle variant">]
|
|
668
|
+
}, "Set oracle variant">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
669
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"perpDeploy", undefined>, v.DescriptionAction<"perpDeploy", "Type of action.">]>;
|
|
670
|
+
readonly setFundingMultipliers: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, string>, v.TrimAction, v.RegexAction<string, undefined>, v.TransformAction<string, string>]>], undefined>, undefined>, v.DescriptionAction<[string, string][], "A list (sorted by key) of asset and funding multiplier.">]>;
|
|
671
|
+
}, undefined>, v.DescriptionAction<{
|
|
672
|
+
type: "perpDeploy";
|
|
673
|
+
setFundingMultipliers: [string, string][];
|
|
674
|
+
}, "Set funding multipliers variant">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
675
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"perpDeploy", undefined>, v.DescriptionAction<"perpDeploy", "Type of action.">]>;
|
|
676
|
+
readonly haltTrading: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
677
|
+
readonly coin: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Coin symbol for the asset to halt or resume.">]>;
|
|
678
|
+
readonly isHalted: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Whether trading should be halted (true) or resumed (false).">]>;
|
|
679
|
+
}, undefined>, v.DescriptionAction<{
|
|
680
|
+
coin: string;
|
|
681
|
+
isHalted: boolean;
|
|
682
|
+
}, "Parameters for halting or resuming trading for an asset.">]>;
|
|
683
|
+
}, undefined>, v.DescriptionAction<{
|
|
684
|
+
type: "perpDeploy";
|
|
685
|
+
haltTrading: {
|
|
686
|
+
coin: string;
|
|
687
|
+
isHalted: boolean;
|
|
688
|
+
};
|
|
689
|
+
}, "Halt trading variant">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
690
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"perpDeploy", undefined>, v.DescriptionAction<"perpDeploy", "Type of action.">]>;
|
|
691
|
+
readonly setMarginTableIds: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>], undefined>, undefined>, v.DescriptionAction<[string, number][], "A list (sorted by key) of asset and margin table ids.">]>;
|
|
692
|
+
}, undefined>, v.DescriptionAction<{
|
|
693
|
+
type: "perpDeploy";
|
|
694
|
+
setMarginTableIds: [string, number][];
|
|
695
|
+
}, "Set margin table ids variant">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
696
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"perpDeploy", undefined>, v.DescriptionAction<"perpDeploy", "Type of action.">]>;
|
|
697
|
+
readonly setFeeRecipient: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
698
|
+
readonly dex: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.DescriptionAction<string, "Name of the DEX.">]>;
|
|
699
|
+
readonly feeRecipient: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 42, undefined>]>, v.DescriptionAction<`0x${string}`, "Address of the fee recipient.">]>;
|
|
700
|
+
}, undefined>, v.DescriptionAction<{
|
|
701
|
+
dex: string;
|
|
702
|
+
feeRecipient: `0x${string}`;
|
|
703
|
+
}, "Parameters for setting the fee recipient.">]>;
|
|
704
|
+
}, undefined>, v.DescriptionAction<{
|
|
705
|
+
type: "perpDeploy";
|
|
706
|
+
setFeeRecipient: {
|
|
707
|
+
dex: string;
|
|
708
|
+
feeRecipient: `0x${string}`;
|
|
709
|
+
};
|
|
710
|
+
}, "Set fee recipient variant">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
711
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"perpDeploy", undefined>, v.DescriptionAction<"perpDeploy", "Type of action.">]>;
|
|
712
|
+
readonly setOpenInterestCaps: v.SchemaWithPipe<readonly [v.ArraySchema<v.TupleSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>], undefined>, undefined>, v.DescriptionAction<[string, number][], "A list (sorted by key) of asset and open interest cap notionals.">]>;
|
|
713
|
+
}, undefined>, v.DescriptionAction<{
|
|
714
|
+
type: "perpDeploy";
|
|
715
|
+
setOpenInterestCaps: [string, number][];
|
|
716
|
+
}, "Set open interest caps variant">]>], undefined>, v.DescriptionAction<{
|
|
669
717
|
type: "perpDeploy";
|
|
670
718
|
registerAsset: {
|
|
671
719
|
maxGas: number | null;
|
|
@@ -691,6 +739,27 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
691
739
|
markPxs: [string, string][][];
|
|
692
740
|
externalPerpPxs: [string, string][];
|
|
693
741
|
};
|
|
742
|
+
} | {
|
|
743
|
+
type: "perpDeploy";
|
|
744
|
+
setFundingMultipliers: [string, string][];
|
|
745
|
+
} | {
|
|
746
|
+
type: "perpDeploy";
|
|
747
|
+
haltTrading: {
|
|
748
|
+
coin: string;
|
|
749
|
+
isHalted: boolean;
|
|
750
|
+
};
|
|
751
|
+
} | {
|
|
752
|
+
type: "perpDeploy";
|
|
753
|
+
setMarginTableIds: [string, number][];
|
|
754
|
+
} | {
|
|
755
|
+
type: "perpDeploy";
|
|
756
|
+
setFeeRecipient: {
|
|
757
|
+
dex: string;
|
|
758
|
+
feeRecipient: `0x${string}`;
|
|
759
|
+
};
|
|
760
|
+
} | {
|
|
761
|
+
type: "perpDeploy";
|
|
762
|
+
setOpenInterestCaps: [string, number][];
|
|
694
763
|
}, "Action to perform.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
695
764
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"registerReferrer", undefined>, v.DescriptionAction<"registerReferrer", "Type of action.">]>;
|
|
696
765
|
readonly code: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MinLengthAction<string, 1, undefined>, v.DescriptionAction<string, "Referral code to create.">]>;
|
|
@@ -743,7 +812,7 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
743
812
|
}, undefined>, v.DescriptionAction<{
|
|
744
813
|
type: "setReferrer";
|
|
745
814
|
code: string;
|
|
746
|
-
}, "Action to perform.">]>, v.SchemaWithPipe<readonly [v.
|
|
815
|
+
}, "Action to perform.">]>, v.SchemaWithPipe<readonly [v.UnionSchema<[v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
747
816
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"spotDeploy", undefined>, v.DescriptionAction<"spotDeploy", "Type of action.">]>;
|
|
748
817
|
readonly genesis: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
749
818
|
readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Token identifier.">]>;
|
|
@@ -867,7 +936,19 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
867
936
|
existingTokenAndWei: [number, string][];
|
|
868
937
|
blacklistUsers?: [`0x${string}`, boolean][] | undefined;
|
|
869
938
|
};
|
|
870
|
-
}, "User genesis variant">]
|
|
939
|
+
}, "User genesis variant">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
940
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"spotDeploy", undefined>, v.DescriptionAction<"spotDeploy", "Type of action.">]>;
|
|
941
|
+
readonly enableQuoteToken: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
942
|
+
readonly token: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "The token ID to convert to a quote token.">]>;
|
|
943
|
+
}, undefined>, v.DescriptionAction<{
|
|
944
|
+
token: number;
|
|
945
|
+
}, "Enable quote token parameters.">]>;
|
|
946
|
+
}, undefined>, v.DescriptionAction<{
|
|
947
|
+
type: "spotDeploy";
|
|
948
|
+
enableQuoteToken: {
|
|
949
|
+
token: number;
|
|
950
|
+
};
|
|
951
|
+
}, "Convert token to quote token variant">]>], undefined>, v.DescriptionAction<{
|
|
871
952
|
type: "spotDeploy";
|
|
872
953
|
genesis: {
|
|
873
954
|
token: number;
|
|
@@ -913,6 +994,11 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
913
994
|
existingTokenAndWei: [number, string][];
|
|
914
995
|
blacklistUsers?: [`0x${string}`, boolean][] | undefined;
|
|
915
996
|
};
|
|
997
|
+
} | {
|
|
998
|
+
type: "spotDeploy";
|
|
999
|
+
enableQuoteToken: {
|
|
1000
|
+
token: number;
|
|
1001
|
+
};
|
|
916
1002
|
}, "Action to perform.">]>, v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
917
1003
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"spotSend", undefined>, v.DescriptionAction<"spotSend", "Type of action.">]>;
|
|
918
1004
|
readonly signatureChainId: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Chain ID used for signing.">]>;
|
|
@@ -1026,7 +1112,7 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1026
1112
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"updateIsolatedMargin", undefined>, v.DescriptionAction<"updateIsolatedMargin", "Type of action.">]>;
|
|
1027
1113
|
readonly asset: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Asset ID.">]>;
|
|
1028
1114
|
readonly isBuy: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "Position side (`true` for long, `false` for short).">]>;
|
|
1029
|
-
readonly ntli: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined
|
|
1115
|
+
readonly ntli: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>]>, v.DescriptionAction<number, "Amount to adjust (float * 1e6).">]>;
|
|
1030
1116
|
}, undefined>, v.DescriptionAction<{
|
|
1031
1117
|
type: "updateIsolatedMargin";
|
|
1032
1118
|
asset: number;
|
|
@@ -1113,6 +1199,12 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1113
1199
|
amount: string;
|
|
1114
1200
|
time: number;
|
|
1115
1201
|
}, "Action to perform.">]>], undefined>, v.DescriptionAction<{
|
|
1202
|
+
type: "cancel";
|
|
1203
|
+
cancels: {
|
|
1204
|
+
a: number;
|
|
1205
|
+
o: number;
|
|
1206
|
+
}[];
|
|
1207
|
+
} | {
|
|
1116
1208
|
type: "order";
|
|
1117
1209
|
orders: {
|
|
1118
1210
|
a: number;
|
|
@@ -1138,12 +1230,6 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1138
1230
|
b: `0x${string}`;
|
|
1139
1231
|
f: number;
|
|
1140
1232
|
} | undefined;
|
|
1141
|
-
} | {
|
|
1142
|
-
type: "cancel";
|
|
1143
|
-
cancels: {
|
|
1144
|
-
a: number;
|
|
1145
|
-
o: number;
|
|
1146
|
-
}[];
|
|
1147
1233
|
} | {
|
|
1148
1234
|
type: "twapOrder";
|
|
1149
1235
|
twap: {
|
|
@@ -1357,6 +1443,11 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1357
1443
|
existingTokenAndWei: [number, string][];
|
|
1358
1444
|
blacklistUsers?: [`0x${string}`, boolean][] | undefined;
|
|
1359
1445
|
};
|
|
1446
|
+
} | {
|
|
1447
|
+
type: "spotDeploy";
|
|
1448
|
+
enableQuoteToken: {
|
|
1449
|
+
token: number;
|
|
1450
|
+
};
|
|
1360
1451
|
} | {
|
|
1361
1452
|
type: "subAccountModify";
|
|
1362
1453
|
subAccountUser: `0x${string}`;
|
|
@@ -1413,6 +1504,27 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1413
1504
|
markPxs: [string, string][][];
|
|
1414
1505
|
externalPerpPxs: [string, string][];
|
|
1415
1506
|
};
|
|
1507
|
+
} | {
|
|
1508
|
+
type: "perpDeploy";
|
|
1509
|
+
setFundingMultipliers: [string, string][];
|
|
1510
|
+
} | {
|
|
1511
|
+
type: "perpDeploy";
|
|
1512
|
+
haltTrading: {
|
|
1513
|
+
coin: string;
|
|
1514
|
+
isHalted: boolean;
|
|
1515
|
+
};
|
|
1516
|
+
} | {
|
|
1517
|
+
type: "perpDeploy";
|
|
1518
|
+
setMarginTableIds: [string, number][];
|
|
1519
|
+
} | {
|
|
1520
|
+
type: "perpDeploy";
|
|
1521
|
+
setFeeRecipient: {
|
|
1522
|
+
dex: string;
|
|
1523
|
+
feeRecipient: `0x${string}`;
|
|
1524
|
+
};
|
|
1525
|
+
} | {
|
|
1526
|
+
type: "perpDeploy";
|
|
1527
|
+
setOpenInterestCaps: [string, number][];
|
|
1416
1528
|
} | {
|
|
1417
1529
|
type: "sendAsset";
|
|
1418
1530
|
signatureChainId: `0x${string}`;
|
|
@@ -1480,6 +1592,12 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1480
1592
|
multiSigUser: `0x${string}`;
|
|
1481
1593
|
outerSigner: `0x${string}`;
|
|
1482
1594
|
action: {
|
|
1595
|
+
type: "cancel";
|
|
1596
|
+
cancels: {
|
|
1597
|
+
a: number;
|
|
1598
|
+
o: number;
|
|
1599
|
+
}[];
|
|
1600
|
+
} | {
|
|
1483
1601
|
type: "order";
|
|
1484
1602
|
orders: {
|
|
1485
1603
|
a: number;
|
|
@@ -1505,12 +1623,6 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1505
1623
|
b: `0x${string}`;
|
|
1506
1624
|
f: number;
|
|
1507
1625
|
} | undefined;
|
|
1508
|
-
} | {
|
|
1509
|
-
type: "cancel";
|
|
1510
|
-
cancels: {
|
|
1511
|
-
a: number;
|
|
1512
|
-
o: number;
|
|
1513
|
-
}[];
|
|
1514
1626
|
} | {
|
|
1515
1627
|
type: "twapOrder";
|
|
1516
1628
|
twap: {
|
|
@@ -1724,6 +1836,11 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1724
1836
|
existingTokenAndWei: [number, string][];
|
|
1725
1837
|
blacklistUsers?: [`0x${string}`, boolean][] | undefined;
|
|
1726
1838
|
};
|
|
1839
|
+
} | {
|
|
1840
|
+
type: "spotDeploy";
|
|
1841
|
+
enableQuoteToken: {
|
|
1842
|
+
token: number;
|
|
1843
|
+
};
|
|
1727
1844
|
} | {
|
|
1728
1845
|
type: "subAccountModify";
|
|
1729
1846
|
subAccountUser: `0x${string}`;
|
|
@@ -1780,6 +1897,27 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1780
1897
|
markPxs: [string, string][][];
|
|
1781
1898
|
externalPerpPxs: [string, string][];
|
|
1782
1899
|
};
|
|
1900
|
+
} | {
|
|
1901
|
+
type: "perpDeploy";
|
|
1902
|
+
setFundingMultipliers: [string, string][];
|
|
1903
|
+
} | {
|
|
1904
|
+
type: "perpDeploy";
|
|
1905
|
+
haltTrading: {
|
|
1906
|
+
coin: string;
|
|
1907
|
+
isHalted: boolean;
|
|
1908
|
+
};
|
|
1909
|
+
} | {
|
|
1910
|
+
type: "perpDeploy";
|
|
1911
|
+
setMarginTableIds: [string, number][];
|
|
1912
|
+
} | {
|
|
1913
|
+
type: "perpDeploy";
|
|
1914
|
+
setFeeRecipient: {
|
|
1915
|
+
dex: string;
|
|
1916
|
+
feeRecipient: `0x${string}`;
|
|
1917
|
+
};
|
|
1918
|
+
} | {
|
|
1919
|
+
type: "perpDeploy";
|
|
1920
|
+
setOpenInterestCaps: [string, number][];
|
|
1783
1921
|
} | {
|
|
1784
1922
|
type: "sendAsset";
|
|
1785
1923
|
signatureChainId: `0x${string}`;
|
|
@@ -1856,6 +1994,12 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1856
1994
|
multiSigUser: `0x${string}`;
|
|
1857
1995
|
outerSigner: `0x${string}`;
|
|
1858
1996
|
action: {
|
|
1997
|
+
type: "cancel";
|
|
1998
|
+
cancels: {
|
|
1999
|
+
a: number;
|
|
2000
|
+
o: number;
|
|
2001
|
+
}[];
|
|
2002
|
+
} | {
|
|
1859
2003
|
type: "order";
|
|
1860
2004
|
orders: {
|
|
1861
2005
|
a: number;
|
|
@@ -1881,12 +2025,6 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1881
2025
|
b: `0x${string}`;
|
|
1882
2026
|
f: number;
|
|
1883
2027
|
} | undefined;
|
|
1884
|
-
} | {
|
|
1885
|
-
type: "cancel";
|
|
1886
|
-
cancels: {
|
|
1887
|
-
a: number;
|
|
1888
|
-
o: number;
|
|
1889
|
-
}[];
|
|
1890
2028
|
} | {
|
|
1891
2029
|
type: "twapOrder";
|
|
1892
2030
|
twap: {
|
|
@@ -2100,6 +2238,11 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
2100
2238
|
existingTokenAndWei: [number, string][];
|
|
2101
2239
|
blacklistUsers?: [`0x${string}`, boolean][] | undefined;
|
|
2102
2240
|
};
|
|
2241
|
+
} | {
|
|
2242
|
+
type: "spotDeploy";
|
|
2243
|
+
enableQuoteToken: {
|
|
2244
|
+
token: number;
|
|
2245
|
+
};
|
|
2103
2246
|
} | {
|
|
2104
2247
|
type: "subAccountModify";
|
|
2105
2248
|
subAccountUser: `0x${string}`;
|
|
@@ -2156,6 +2299,27 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
2156
2299
|
markPxs: [string, string][][];
|
|
2157
2300
|
externalPerpPxs: [string, string][];
|
|
2158
2301
|
};
|
|
2302
|
+
} | {
|
|
2303
|
+
type: "perpDeploy";
|
|
2304
|
+
setFundingMultipliers: [string, string][];
|
|
2305
|
+
} | {
|
|
2306
|
+
type: "perpDeploy";
|
|
2307
|
+
haltTrading: {
|
|
2308
|
+
coin: string;
|
|
2309
|
+
isHalted: boolean;
|
|
2310
|
+
};
|
|
2311
|
+
} | {
|
|
2312
|
+
type: "perpDeploy";
|
|
2313
|
+
setMarginTableIds: [string, number][];
|
|
2314
|
+
} | {
|
|
2315
|
+
type: "perpDeploy";
|
|
2316
|
+
setFeeRecipient: {
|
|
2317
|
+
dex: string;
|
|
2318
|
+
feeRecipient: `0x${string}`;
|
|
2319
|
+
};
|
|
2320
|
+
} | {
|
|
2321
|
+
type: "perpDeploy";
|
|
2322
|
+
setOpenInterestCaps: [string, number][];
|
|
2159
2323
|
} | {
|
|
2160
2324
|
type: "sendAsset";
|
|
2161
2325
|
signatureChainId: `0x${string}`;
|
|
@@ -2225,9 +2389,9 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
2225
2389
|
readonly nonce: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique request identifier (current timestamp in ms).">]>;
|
|
2226
2390
|
/** Cryptographic signature. */
|
|
2227
2391
|
readonly signature: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
2228
|
-
readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined
|
|
2229
|
-
readonly s: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined
|
|
2230
|
-
readonly v: v.SchemaWithPipe<readonly [v.
|
|
2392
|
+
readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "First 32-byte component of ECDSA signature.">]>;
|
|
2393
|
+
readonly s: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "Second 32-byte component of ECDSA signature.">]>;
|
|
2394
|
+
readonly v: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<27, undefined>, v.LiteralSchema<28, undefined>], undefined>, v.DescriptionAction<27 | 28, "Recovery identifier.">]>;
|
|
2231
2395
|
}, undefined>, v.DescriptionAction<{
|
|
2232
2396
|
r: `0x${string}`;
|
|
2233
2397
|
s: `0x${string}`;
|
|
@@ -2254,6 +2418,12 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
2254
2418
|
multiSigUser: `0x${string}`;
|
|
2255
2419
|
outerSigner: `0x${string}`;
|
|
2256
2420
|
action: {
|
|
2421
|
+
type: "cancel";
|
|
2422
|
+
cancels: {
|
|
2423
|
+
a: number;
|
|
2424
|
+
o: number;
|
|
2425
|
+
}[];
|
|
2426
|
+
} | {
|
|
2257
2427
|
type: "order";
|
|
2258
2428
|
orders: {
|
|
2259
2429
|
a: number;
|
|
@@ -2279,12 +2449,6 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
2279
2449
|
b: `0x${string}`;
|
|
2280
2450
|
f: number;
|
|
2281
2451
|
} | undefined;
|
|
2282
|
-
} | {
|
|
2283
|
-
type: "cancel";
|
|
2284
|
-
cancels: {
|
|
2285
|
-
a: number;
|
|
2286
|
-
o: number;
|
|
2287
|
-
}[];
|
|
2288
2452
|
} | {
|
|
2289
2453
|
type: "twapOrder";
|
|
2290
2454
|
twap: {
|
|
@@ -2498,6 +2662,11 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
2498
2662
|
existingTokenAndWei: [number, string][];
|
|
2499
2663
|
blacklistUsers?: [`0x${string}`, boolean][] | undefined;
|
|
2500
2664
|
};
|
|
2665
|
+
} | {
|
|
2666
|
+
type: "spotDeploy";
|
|
2667
|
+
enableQuoteToken: {
|
|
2668
|
+
token: number;
|
|
2669
|
+
};
|
|
2501
2670
|
} | {
|
|
2502
2671
|
type: "subAccountModify";
|
|
2503
2672
|
subAccountUser: `0x${string}`;
|
|
@@ -2554,6 +2723,27 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
2554
2723
|
markPxs: [string, string][][];
|
|
2555
2724
|
externalPerpPxs: [string, string][];
|
|
2556
2725
|
};
|
|
2726
|
+
} | {
|
|
2727
|
+
type: "perpDeploy";
|
|
2728
|
+
setFundingMultipliers: [string, string][];
|
|
2729
|
+
} | {
|
|
2730
|
+
type: "perpDeploy";
|
|
2731
|
+
haltTrading: {
|
|
2732
|
+
coin: string;
|
|
2733
|
+
isHalted: boolean;
|
|
2734
|
+
};
|
|
2735
|
+
} | {
|
|
2736
|
+
type: "perpDeploy";
|
|
2737
|
+
setMarginTableIds: [string, number][];
|
|
2738
|
+
} | {
|
|
2739
|
+
type: "perpDeploy";
|
|
2740
|
+
setFeeRecipient: {
|
|
2741
|
+
dex: string;
|
|
2742
|
+
feeRecipient: `0x${string}`;
|
|
2743
|
+
};
|
|
2744
|
+
} | {
|
|
2745
|
+
type: "perpDeploy";
|
|
2746
|
+
setOpenInterestCaps: [string, number][];
|
|
2557
2747
|
} | {
|
|
2558
2748
|
type: "sendAsset";
|
|
2559
2749
|
signatureChainId: `0x${string}`;
|
|
@@ -2629,7 +2819,7 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
2629
2819
|
expiresAfter?: number | undefined;
|
|
2630
2820
|
}, "A multi-signature request.">]>;
|
|
2631
2821
|
export type MultiSigRequest = v.InferOutput<typeof MultiSigRequest>;
|
|
2632
|
-
import { SuccessResponse } from "./_base.js";
|
|
2822
|
+
import { SuccessResponse } from "./_base/mod.js";
|
|
2633
2823
|
export { CancelSuccessResponse, CreateSubAccountResponse, CreateVaultResponse, OrderSuccessResponse, SuccessResponse, TwapCancelSuccessResponse, TwapOrderSuccessResponse, };
|
|
2634
2824
|
/** Action parameters for the {@linkcode multiSig} function. */
|
|
2635
2825
|
export type MultiSigParameters = ExtractRequestAction<v.InferInput<typeof MultiSigRequest>> & Pick<v.InferInput<typeof MultiSigRequest>, "nonce">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiSig.d.ts","sourceRoot":"","sources":["../../../../src/src/api/exchange/multiSig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,aAAa,EAAgC,MAAM,aAAa,CAAC;AACxF,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,oBAAoB,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;;;;;;;;;;;;;;;;;;;;;;;;GAgEG;AACH,wBAAsB,QAAQ,CAC5B,CAAC,SACG,eAAe,GACf,qBAAqB,GACrB,wBAAwB,GACxB,mBAAmB,GACnB,oBAAoB,GACpB,wBAAwB,GACxB,yBAAyB,EAE7B,MAAM,EAAE,qBAAqB,EAC7B,cAAc,EAAE,aAAa,CAAC,kBAAkB,CAAC,EACjD,IAAI,CAAC,EAAE,eAAe,GACrB,OAAO,CAAC,CAAC,CAAC,CA2BZ"}
|
|
@@ -35,9 +35,9 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.MultiSigTypes = exports.TwapOrderSuccessResponse = exports.TwapCancelSuccessResponse = exports.SuccessResponse = exports.OrderSuccessResponse = exports.CreateVaultResponse = exports.CreateSubAccountResponse = exports.CancelSuccessResponse = exports.MultiSigRequest = void 0;
|
|
37
37
|
exports.multiSig = multiSig;
|
|
38
|
-
const _base_js_1 = require("../_base.js");
|
|
39
|
-
const _base_js_2 = require("./_base.js");
|
|
40
38
|
const v = __importStar(require("valibot"));
|
|
39
|
+
const _base_js_1 = require("../_base.js");
|
|
40
|
+
const mod_js_1 = require("./_base/mod.js");
|
|
41
41
|
const approveAgent_js_1 = require("./approveAgent.js");
|
|
42
42
|
const approveBuilderFee_js_1 = require("./approveBuilderFee.js");
|
|
43
43
|
const batchModify_js_1 = require("./batchModify.js");
|
|
@@ -99,7 +99,7 @@ exports.MultiSigRequest = (() => {
|
|
|
99
99
|
/** Chain ID used for signing. */
|
|
100
100
|
signatureChainId: v.pipe(_base_js_1.Hex, v.description("Chain ID used for signing.")),
|
|
101
101
|
/** List of signatures from authorized signers. */
|
|
102
|
-
signatures: v.pipe(v.array(
|
|
102
|
+
signatures: v.pipe(v.array(mod_js_1.Signature), v.description("List of signatures from authorized signers.")),
|
|
103
103
|
/** Multi-signature payload information. */
|
|
104
104
|
payload: v.pipe(v.object({
|
|
105
105
|
/** Address of the multi-signature user account. */
|
|
@@ -107,7 +107,7 @@ exports.MultiSigRequest = (() => {
|
|
|
107
107
|
/** Address of the authorized user initiating the request (any authorized user). */
|
|
108
108
|
outerSigner: v.pipe(_base_js_1.Address, v.description("Address of the authorized user initiating the request (any authorized user).")),
|
|
109
109
|
/** The underlying action to be executed through multi-sig. */
|
|
110
|
-
action: v.pipe(v.
|
|
110
|
+
action: v.pipe(v.union([
|
|
111
111
|
approveAgent_js_1.ApproveAgentRequest.entries.action,
|
|
112
112
|
approveBuilderFee_js_1.ApproveBuilderFeeRequest.entries.action,
|
|
113
113
|
batchModify_js_1.BatchModifyRequest.entries.action,
|
|
@@ -155,15 +155,15 @@ exports.MultiSigRequest = (() => {
|
|
|
155
155
|
/** Unique request identifier (current timestamp in ms). */
|
|
156
156
|
nonce: v.pipe(_base_js_1.UnsignedInteger, v.description("Unique request identifier (current timestamp in ms).")),
|
|
157
157
|
/** Cryptographic signature. */
|
|
158
|
-
signature: v.pipe(
|
|
158
|
+
signature: v.pipe(mod_js_1.Signature, v.description("Cryptographic signature.")),
|
|
159
159
|
/** Vault address (for vault trading). */
|
|
160
160
|
vaultAddress: v.pipe(v.optional(_base_js_1.Address), v.description("Vault address (for vault trading).")),
|
|
161
161
|
/** Expiration time of the action. */
|
|
162
162
|
expiresAfter: v.pipe(v.optional(_base_js_1.UnsignedInteger), v.description("Expiration time of the action.")),
|
|
163
163
|
}), v.description("A multi-signature request."));
|
|
164
164
|
})();
|
|
165
|
-
const
|
|
166
|
-
Object.defineProperty(exports, "SuccessResponse", { enumerable: true, get: function () { return
|
|
165
|
+
const mod_js_2 = require("./_base/mod.js");
|
|
166
|
+
Object.defineProperty(exports, "SuccessResponse", { enumerable: true, get: function () { return mod_js_2.SuccessResponse; } });
|
|
167
167
|
/** EIP-712 types for the {@linkcode multiSig} function. */
|
|
168
168
|
exports.MultiSigTypes = {
|
|
169
169
|
"HyperliquidTransaction:SendMultiSig": [
|
|
@@ -241,14 +241,16 @@ async function multiSig(config, paramsAndNonce, opts) {
|
|
|
241
241
|
const { nonce, ...params } = paramsAndNonce;
|
|
242
242
|
const action = (0, _base_js_1.parser)(exports.MultiSigRequest.entries.action)({
|
|
243
243
|
type: "multiSig",
|
|
244
|
-
signatureChainId: await (0,
|
|
244
|
+
signatureChainId: await (0, mod_js_1.getSignatureChainId)(config),
|
|
245
245
|
...params,
|
|
246
246
|
});
|
|
247
|
-
const
|
|
248
|
-
const
|
|
247
|
+
const vaultAddress_ = opts?.vaultAddress ?? config.defaultVaultAddress;
|
|
248
|
+
const vaultAddress = (0, _base_js_1.parser)(v.optional(_base_js_1.Address))(vaultAddress_);
|
|
249
|
+
const expiresAfter_ = typeof config.defaultExpiresAfter === "number"
|
|
249
250
|
? config.defaultExpiresAfter
|
|
250
251
|
: await config.defaultExpiresAfter?.();
|
|
251
|
-
|
|
252
|
+
const expiresAfter = (0, _base_js_1.parser)(v.optional(_base_js_1.UnsignedInteger))(expiresAfter_);
|
|
253
|
+
return await (0, mod_js_1.executeMultiSigAction)(config, {
|
|
252
254
|
action,
|
|
253
255
|
vaultAddress,
|
|
254
256
|
expiresAfter,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"multiSig.js","sourceRoot":"","sources":["../../../../src/src/api/exchange/multiSig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4QA,
|
|
1
|
+
{"version":3,"file":"multiSig.js","sourceRoot":"","sources":["../../../../src/src/api/exchange/multiSig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4QA,4BAwCC;AApTD,2CAA6B;AAC7B,0CAAwF;AACxF,2CAOwB;AAExB,uDAAwD;AACxD,iEAAkE;AAClE,qDAAsD;AACtD,2CAAmE;AAkKjE,sGAlKsB,iCAAqB,OAkKtB;AAjKvB,yDAA0D;AAC1D,uDAAwD;AACxD,+CAAgD;AAChD,yEAA0E;AAC1E,+DAA0F;AA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AG,IAAA,iBAAM,EAAC,CAAC,CAAC,QAAQ,CAAC,kBAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;IAEhE,MAAM,aAAa,GAAG,OAAO,MAAM,CAAC,mBAAmB,KAAK,QAAQ;QAClE,CAAC,CAAC,MAAM,CAAC,mBAAmB;QAC5B,CAAC,CAAC,MAAM,MAAM,CAAC,mBAAmB,EAAE,EAAE,CAAC;IACzC,MAAM,YAAY,GAAG,IAAA,iBAAM,EAAC,CAAC,CAAC,QAAQ,CAAC,0BAAe,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;IAExE,OAAO,MAAM,IAAA,8BAAqB,EAChC,MAAM,EACN;QACE,MAAM;QACN,YAAY;QACZ,YAAY;QACZ,KAAK,EAAE,MAAM,CAAC,KAAK,CAAC;KACrB,EACD,IAAI,EAAE,MAAM,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type ExchangeRequestConfig, type ExtractRequestOptions, type MultiSignRequestConfig } from "./_base.js";
|
|
2
1
|
import * as v from "valibot";
|
|
2
|
+
import { type ExchangeRequestConfig, type ExtractRequestOptions, type MultiSignRequestConfig } from "./_base/mod.js";
|
|
3
3
|
/**
|
|
4
4
|
* This action does not do anything (no operation), but causes the nonce to be marked as used.
|
|
5
5
|
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/exchange-endpoint#invalidate-pending-nonce-noop
|
|
@@ -16,9 +16,9 @@ export declare const NoopRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
16
16
|
readonly nonce: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, v.DescriptionAction<number, "Unique request identifier (current timestamp in ms).">]>;
|
|
17
17
|
/** Cryptographic signature. */
|
|
18
18
|
readonly signature: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
19
|
-
readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined
|
|
20
|
-
readonly s: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined
|
|
21
|
-
readonly v: v.SchemaWithPipe<readonly [v.
|
|
19
|
+
readonly r: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "First 32-byte component of ECDSA signature.">]>;
|
|
20
|
+
readonly s: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.TransformAction<string, `0x${string}`>]>, v.LengthAction<`0x${string}`, 66, undefined>]>, v.DescriptionAction<`0x${string}`, "Second 32-byte component of ECDSA signature.">]>;
|
|
21
|
+
readonly v: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<27, undefined>, v.LiteralSchema<28, undefined>], undefined>, v.DescriptionAction<27 | 28, "Recovery identifier.">]>;
|
|
22
22
|
}, undefined>, v.DescriptionAction<{
|
|
23
23
|
r: `0x${string}`;
|
|
24
24
|
s: `0x${string}`;
|
|
@@ -43,7 +43,7 @@ export declare const NoopRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
43
43
|
expiresAfter?: number | undefined;
|
|
44
44
|
}, "This action does not do anything (no operation), but causes the nonce to be marked as used.">]>;
|
|
45
45
|
export type NoopRequest = v.InferOutput<typeof NoopRequest>;
|
|
46
|
-
import { SuccessResponse } from "./_base.js";
|
|
46
|
+
import { SuccessResponse } from "./_base/mod.js";
|
|
47
47
|
export { SuccessResponse };
|
|
48
48
|
/** Request options for the {@linkcode noop} function. */
|
|
49
49
|
export type NoopOptions = ExtractRequestOptions<v.InferInput<typeof NoopRequest>>;
|