@nktkas/hyperliquid 0.25.7 → 0.25.9
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/CONTRIBUTING.md +26 -19
- package/README.md +57 -5
- package/esm/bin/cli.js +2 -1
- package/esm/bin/cli.js.map +1 -1
- package/esm/src/api/_common_schemas.d.ts +19 -0
- package/esm/src/api/_common_schemas.d.ts.map +1 -1
- package/esm/src/api/_common_schemas.js +15 -0
- package/esm/src/api/_common_schemas.js.map +1 -1
- package/esm/src/api/exchange/_base/_execute.d.ts +6 -7
- package/esm/src/api/exchange/_base/_execute.d.ts.map +1 -1
- package/esm/src/api/exchange/_base/_execute.js +67 -43
- package/esm/src/api/exchange/_base/_execute.js.map +1 -1
- package/esm/src/api/exchange/_base/_types.d.ts +0 -7
- package/esm/src/api/exchange/_base/_types.d.ts.map +1 -1
- package/esm/src/api/exchange/_base/mod.d.ts +0 -2
- package/esm/src/api/exchange/_base/mod.d.ts.map +1 -1
- package/esm/src/api/exchange/_base/mod.js +0 -2
- package/esm/src/api/exchange/_base/mod.js.map +1 -1
- package/esm/src/api/exchange/agentEnableDexAbstraction.d.ts.map +1 -1
- package/esm/src/api/exchange/agentEnableDexAbstraction.js +14 -7
- package/esm/src/api/exchange/agentEnableDexAbstraction.js.map +1 -1
- package/esm/src/api/exchange/approveAgent.d.ts.map +1 -1
- package/esm/src/api/exchange/approveAgent.js +16 -8
- package/esm/src/api/exchange/approveAgent.js.map +1 -1
- package/esm/src/api/exchange/approveBuilderFee.d.ts.map +1 -1
- package/esm/src/api/exchange/approveBuilderFee.js +16 -8
- package/esm/src/api/exchange/approveBuilderFee.js.map +1 -1
- package/esm/src/api/exchange/batchModify.d.ts.map +1 -1
- package/esm/src/api/exchange/batchModify.js +16 -10
- package/esm/src/api/exchange/batchModify.js.map +1 -1
- package/esm/src/api/exchange/cDeposit.d.ts.map +1 -1
- package/esm/src/api/exchange/cDeposit.js +16 -8
- package/esm/src/api/exchange/cDeposit.js.map +1 -1
- package/esm/src/api/exchange/cSignerAction.d.ts.map +1 -1
- package/esm/src/api/exchange/cSignerAction.js +15 -8
- package/esm/src/api/exchange/cSignerAction.js.map +1 -1
- package/esm/src/api/exchange/cValidatorAction.d.ts.map +1 -1
- package/esm/src/api/exchange/cValidatorAction.js +15 -8
- package/esm/src/api/exchange/cValidatorAction.js.map +1 -1
- package/esm/src/api/exchange/cWithdraw.d.ts.map +1 -1
- package/esm/src/api/exchange/cWithdraw.js +16 -8
- package/esm/src/api/exchange/cWithdraw.js.map +1 -1
- package/esm/src/api/exchange/cancel.d.ts.map +1 -1
- package/esm/src/api/exchange/cancel.js +16 -10
- package/esm/src/api/exchange/cancel.js.map +1 -1
- package/esm/src/api/exchange/cancelByCloid.d.ts.map +1 -1
- package/esm/src/api/exchange/cancelByCloid.js +16 -10
- package/esm/src/api/exchange/cancelByCloid.js.map +1 -1
- package/esm/src/api/exchange/claimRewards.d.ts.map +1 -1
- package/esm/src/api/exchange/claimRewards.js +14 -7
- package/esm/src/api/exchange/claimRewards.js.map +1 -1
- package/esm/src/api/exchange/convertToMultiSigUser.d.ts.map +1 -1
- package/esm/src/api/exchange/convertToMultiSigUser.js +16 -8
- package/esm/src/api/exchange/convertToMultiSigUser.js.map +1 -1
- package/esm/src/api/exchange/createSubAccount.d.ts.map +1 -1
- package/esm/src/api/exchange/createSubAccount.js +15 -8
- package/esm/src/api/exchange/createSubAccount.js.map +1 -1
- package/esm/src/api/exchange/createVault.d.ts.map +1 -1
- package/esm/src/api/exchange/createVault.js +15 -8
- package/esm/src/api/exchange/createVault.js.map +1 -1
- package/esm/src/api/exchange/evmUserModify.d.ts +1 -1
- package/esm/src/api/exchange/evmUserModify.d.ts.map +1 -1
- package/esm/src/api/exchange/evmUserModify.js +16 -9
- package/esm/src/api/exchange/evmUserModify.js.map +1 -1
- package/esm/src/api/exchange/linkStakingUser.d.ts +112 -0
- package/esm/src/api/exchange/linkStakingUser.d.ts.map +1 -0
- package/esm/src/api/exchange/linkStakingUser.js +99 -0
- package/esm/src/api/exchange/linkStakingUser.js.map +1 -0
- package/esm/src/api/exchange/modify.d.ts.map +1 -1
- package/esm/src/api/exchange/modify.js +16 -10
- package/esm/src/api/exchange/modify.js.map +1 -1
- package/esm/src/api/exchange/multiSig.d.ts +81 -0
- package/esm/src/api/exchange/multiSig.d.ts.map +1 -1
- package/esm/src/api/exchange/multiSig.js +17 -16
- package/esm/src/api/exchange/multiSig.js.map +1 -1
- package/esm/src/api/exchange/noop.d.ts.map +1 -1
- package/esm/src/api/exchange/noop.js +14 -7
- package/esm/src/api/exchange/noop.js.map +1 -1
- package/esm/src/api/exchange/order.d.ts.map +1 -1
- package/esm/src/api/exchange/order.js +16 -10
- package/esm/src/api/exchange/order.js.map +1 -1
- package/esm/src/api/exchange/perpDeploy.d.ts +58 -0
- package/esm/src/api/exchange/perpDeploy.d.ts.map +1 -1
- package/esm/src/api/exchange/perpDeploy.js +33 -8
- package/esm/src/api/exchange/perpDeploy.js.map +1 -1
- package/esm/src/api/exchange/registerReferrer.d.ts.map +1 -1
- package/esm/src/api/exchange/registerReferrer.js +15 -8
- package/esm/src/api/exchange/registerReferrer.js.map +1 -1
- package/esm/src/api/exchange/reserveRequestWeight.d.ts.map +1 -1
- package/esm/src/api/exchange/reserveRequestWeight.js +15 -8
- package/esm/src/api/exchange/reserveRequestWeight.js.map +1 -1
- package/esm/src/api/exchange/scheduleCancel.js +16 -10
- package/esm/src/api/exchange/scheduleCancel.js.map +1 -1
- package/esm/src/api/exchange/sendAsset.d.ts.map +1 -1
- package/esm/src/api/exchange/sendAsset.js +16 -8
- package/esm/src/api/exchange/sendAsset.js.map +1 -1
- package/esm/src/api/exchange/setDisplayName.d.ts.map +1 -1
- package/esm/src/api/exchange/setDisplayName.js +15 -8
- package/esm/src/api/exchange/setDisplayName.js.map +1 -1
- package/esm/src/api/exchange/setReferrer.d.ts.map +1 -1
- package/esm/src/api/exchange/setReferrer.js +15 -8
- package/esm/src/api/exchange/setReferrer.js.map +1 -1
- package/esm/src/api/exchange/spotDeploy.d.ts.map +1 -1
- package/esm/src/api/exchange/spotDeploy.js +15 -8
- package/esm/src/api/exchange/spotDeploy.js.map +1 -1
- package/esm/src/api/exchange/spotSend.d.ts.map +1 -1
- package/esm/src/api/exchange/spotSend.js +16 -8
- package/esm/src/api/exchange/spotSend.js.map +1 -1
- package/esm/src/api/exchange/spotUser.d.ts.map +1 -1
- package/esm/src/api/exchange/spotUser.js +15 -8
- package/esm/src/api/exchange/spotUser.js.map +1 -1
- package/esm/src/api/exchange/subAccountModify.d.ts.map +1 -1
- package/esm/src/api/exchange/subAccountModify.js +15 -8
- package/esm/src/api/exchange/subAccountModify.js.map +1 -1
- package/esm/src/api/exchange/subAccountSpotTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/subAccountSpotTransfer.js +15 -8
- package/esm/src/api/exchange/subAccountSpotTransfer.js.map +1 -1
- package/esm/src/api/exchange/subAccountTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/subAccountTransfer.js +15 -8
- package/esm/src/api/exchange/subAccountTransfer.js.map +1 -1
- package/esm/src/api/exchange/tokenDelegate.d.ts.map +1 -1
- package/esm/src/api/exchange/tokenDelegate.js +16 -8
- package/esm/src/api/exchange/tokenDelegate.js.map +1 -1
- package/esm/src/api/exchange/twapCancel.d.ts.map +1 -1
- package/esm/src/api/exchange/twapCancel.js +16 -10
- package/esm/src/api/exchange/twapCancel.js.map +1 -1
- package/esm/src/api/exchange/twapOrder.d.ts.map +1 -1
- package/esm/src/api/exchange/twapOrder.js +16 -10
- package/esm/src/api/exchange/twapOrder.js.map +1 -1
- package/esm/src/api/exchange/updateIsolatedMargin.d.ts.map +1 -1
- package/esm/src/api/exchange/updateIsolatedMargin.js +16 -10
- package/esm/src/api/exchange/updateIsolatedMargin.js.map +1 -1
- package/esm/src/api/exchange/updateLeverage.d.ts.map +1 -1
- package/esm/src/api/exchange/updateLeverage.js +16 -10
- package/esm/src/api/exchange/updateLeverage.js.map +1 -1
- package/esm/src/api/exchange/usdClassTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/usdClassTransfer.js +16 -8
- package/esm/src/api/exchange/usdClassTransfer.js.map +1 -1
- package/esm/src/api/exchange/usdSend.d.ts.map +1 -1
- package/esm/src/api/exchange/usdSend.js +16 -8
- package/esm/src/api/exchange/usdSend.js.map +1 -1
- package/esm/src/api/exchange/userDexAbstraction.d.ts.map +1 -1
- package/esm/src/api/exchange/userDexAbstraction.js +16 -8
- package/esm/src/api/exchange/userDexAbstraction.js.map +1 -1
- package/esm/src/api/exchange/vaultDistribute.d.ts.map +1 -1
- package/esm/src/api/exchange/vaultDistribute.js +15 -8
- package/esm/src/api/exchange/vaultDistribute.js.map +1 -1
- package/esm/src/api/exchange/vaultModify.d.ts.map +1 -1
- package/esm/src/api/exchange/vaultModify.js +15 -8
- package/esm/src/api/exchange/vaultModify.js.map +1 -1
- package/esm/src/api/exchange/vaultTransfer.d.ts.map +1 -1
- package/esm/src/api/exchange/vaultTransfer.js +15 -8
- package/esm/src/api/exchange/vaultTransfer.js.map +1 -1
- package/esm/src/api/exchange/withdraw3.d.ts.map +1 -1
- package/esm/src/api/exchange/withdraw3.js +16 -8
- package/esm/src/api/exchange/withdraw3.js.map +1 -1
- package/esm/src/api/exchange/~client.d.ts +31 -3
- package/esm/src/api/exchange/~client.d.ts.map +1 -1
- package/esm/src/api/exchange/~client.js +27 -4
- package/esm/src/api/exchange/~client.js.map +1 -1
- package/esm/src/api/exchange/~mod.d.ts +1 -0
- 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/allPerpMetas.d.ts +5 -0
- package/esm/src/api/info/allPerpMetas.d.ts.map +1 -1
- package/esm/src/api/info/meta.d.ts +5 -0
- package/esm/src/api/info/meta.d.ts.map +1 -1
- package/esm/src/api/info/meta.js +2 -0
- package/esm/src/api/info/meta.js.map +1 -1
- package/esm/src/api/info/metaAndAssetCtxs.d.ts +5 -0
- package/esm/src/api/info/metaAndAssetCtxs.d.ts.map +1 -1
- package/esm/src/api/info/perpDexs.d.ts +4 -0
- package/esm/src/api/info/perpDexs.d.ts.map +1 -1
- package/esm/src/api/info/perpDexs.js +5 -0
- package/esm/src/api/info/perpDexs.js.map +1 -1
- package/esm/src/api/info/spotClearinghouseState.d.ts +0 -5
- package/esm/src/api/info/spotClearinghouseState.d.ts.map +1 -1
- package/esm/src/api/info/spotClearinghouseState.js +2 -14
- package/esm/src/api/info/spotClearinghouseState.js.map +1 -1
- package/esm/src/api/info/userFees.d.ts +27 -2
- package/esm/src/api/info/userFees.d.ts.map +1 -1
- package/esm/src/api/info/userFees.js +29 -1
- package/esm/src/api/info/userFees.js.map +1 -1
- package/esm/src/api/info/webData2.d.ts +6 -0
- package/esm/src/api/info/webData2.d.ts.map +1 -1
- package/esm/src/api/info/~client.d.ts +9 -1
- package/esm/src/api/info/~client.d.ts.map +1 -1
- package/esm/src/api/subscription/spotState.d.ts +91 -0
- package/esm/src/api/subscription/spotState.d.ts.map +1 -0
- package/esm/src/api/subscription/spotState.js +58 -0
- package/esm/src/api/subscription/spotState.js.map +1 -0
- package/esm/src/api/subscription/userEvents.d.ts +166 -141
- package/esm/src/api/subscription/userEvents.d.ts.map +1 -1
- package/esm/src/api/subscription/userEvents.js +6 -1
- package/esm/src/api/subscription/userEvents.js.map +1 -1
- package/esm/src/api/subscription/webData2.d.ts +5 -0
- package/esm/src/api/subscription/webData2.d.ts.map +1 -1
- package/esm/src/api/subscription/~client.d.ts +22 -0
- 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 +1 -0
- 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 +1 -1
- package/esm/src/signing/_signTypedData.d.ts.map +1 -1
- package/esm/src/signing/_signTypedData.js +1 -1
- package/esm/src/signing/_signTypedData.js.map +1 -1
- package/esm/src/transport/websocket/_hyperliquid_event_target.d.ts +7 -0
- package/esm/src/transport/websocket/_hyperliquid_event_target.d.ts.map +1 -1
- package/esm/src/transport/websocket/_hyperliquid_event_target.js.map +1 -1
- package/esm/src/transport/websocket/_websocket_async_request.d.ts.map +1 -1
- package/esm/src/transport/websocket/_websocket_async_request.js +6 -0
- package/esm/src/transport/websocket/_websocket_async_request.js.map +1 -1
- package/esm/src/utils/{_minimalEIP712Signer.d.ts → _eip712.d.ts} +16 -1
- package/esm/src/utils/_eip712.d.ts.map +1 -0
- package/esm/src/utils/{_minimalEIP712Signer.js → _eip712.js} +14 -11
- package/esm/src/utils/_eip712.js.map +1 -0
- package/esm/src/utils/_format.d.ts +3 -4
- package/esm/src/utils/_format.d.ts.map +1 -1
- package/esm/src/utils/_format.js +98 -88
- package/esm/src/utils/_format.js.map +1 -1
- package/esm/src/utils/_recover.d.ts +89 -0
- package/esm/src/utils/_recover.d.ts.map +1 -0
- package/esm/src/utils/_recover.js +119 -0
- package/esm/src/utils/_recover.js.map +1 -0
- 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 +3 -2
- package/script/bin/cli.js +2 -1
- package/script/bin/cli.js.map +1 -1
- package/script/src/api/_common_schemas.d.ts +19 -0
- package/script/src/api/_common_schemas.d.ts.map +1 -1
- package/script/src/api/_common_schemas.js +16 -1
- package/script/src/api/_common_schemas.js.map +1 -1
- package/script/src/api/exchange/_base/_execute.d.ts +6 -7
- package/script/src/api/exchange/_base/_execute.d.ts.map +1 -1
- package/script/src/api/exchange/_base/_execute.js +67 -43
- package/script/src/api/exchange/_base/_execute.js.map +1 -1
- package/script/src/api/exchange/_base/_types.d.ts +0 -7
- package/script/src/api/exchange/_base/_types.d.ts.map +1 -1
- package/script/src/api/exchange/_base/mod.d.ts +0 -2
- package/script/src/api/exchange/_base/mod.d.ts.map +1 -1
- package/script/src/api/exchange/_base/mod.js +0 -2
- package/script/src/api/exchange/_base/mod.js.map +1 -1
- package/script/src/api/exchange/agentEnableDexAbstraction.d.ts.map +1 -1
- package/script/src/api/exchange/agentEnableDexAbstraction.js +14 -7
- package/script/src/api/exchange/agentEnableDexAbstraction.js.map +1 -1
- package/script/src/api/exchange/approveAgent.d.ts.map +1 -1
- package/script/src/api/exchange/approveAgent.js +15 -7
- package/script/src/api/exchange/approveAgent.js.map +1 -1
- package/script/src/api/exchange/approveBuilderFee.d.ts.map +1 -1
- package/script/src/api/exchange/approveBuilderFee.js +15 -7
- package/script/src/api/exchange/approveBuilderFee.js.map +1 -1
- package/script/src/api/exchange/batchModify.d.ts.map +1 -1
- package/script/src/api/exchange/batchModify.js +16 -10
- package/script/src/api/exchange/batchModify.js.map +1 -1
- package/script/src/api/exchange/cDeposit.d.ts.map +1 -1
- package/script/src/api/exchange/cDeposit.js +15 -7
- package/script/src/api/exchange/cDeposit.js.map +1 -1
- package/script/src/api/exchange/cSignerAction.d.ts.map +1 -1
- package/script/src/api/exchange/cSignerAction.js +15 -8
- package/script/src/api/exchange/cSignerAction.js.map +1 -1
- package/script/src/api/exchange/cValidatorAction.d.ts.map +1 -1
- package/script/src/api/exchange/cValidatorAction.js +15 -8
- package/script/src/api/exchange/cValidatorAction.js.map +1 -1
- package/script/src/api/exchange/cWithdraw.d.ts.map +1 -1
- package/script/src/api/exchange/cWithdraw.js +15 -7
- package/script/src/api/exchange/cWithdraw.js.map +1 -1
- package/script/src/api/exchange/cancel.d.ts.map +1 -1
- package/script/src/api/exchange/cancel.js +16 -10
- package/script/src/api/exchange/cancel.js.map +1 -1
- package/script/src/api/exchange/cancelByCloid.d.ts.map +1 -1
- package/script/src/api/exchange/cancelByCloid.js +16 -10
- package/script/src/api/exchange/cancelByCloid.js.map +1 -1
- package/script/src/api/exchange/claimRewards.d.ts.map +1 -1
- package/script/src/api/exchange/claimRewards.js +14 -7
- package/script/src/api/exchange/claimRewards.js.map +1 -1
- package/script/src/api/exchange/convertToMultiSigUser.d.ts.map +1 -1
- package/script/src/api/exchange/convertToMultiSigUser.js +15 -7
- package/script/src/api/exchange/convertToMultiSigUser.js.map +1 -1
- package/script/src/api/exchange/createSubAccount.d.ts.map +1 -1
- package/script/src/api/exchange/createSubAccount.js +15 -8
- package/script/src/api/exchange/createSubAccount.js.map +1 -1
- package/script/src/api/exchange/createVault.d.ts.map +1 -1
- package/script/src/api/exchange/createVault.js +15 -8
- package/script/src/api/exchange/createVault.js.map +1 -1
- package/script/src/api/exchange/evmUserModify.d.ts +1 -1
- package/script/src/api/exchange/evmUserModify.d.ts.map +1 -1
- package/script/src/api/exchange/evmUserModify.js +16 -9
- package/script/src/api/exchange/evmUserModify.js.map +1 -1
- package/script/src/api/exchange/linkStakingUser.d.ts +112 -0
- package/script/src/api/exchange/linkStakingUser.d.ts.map +1 -0
- package/script/src/api/exchange/linkStakingUser.js +136 -0
- package/script/src/api/exchange/linkStakingUser.js.map +1 -0
- package/script/src/api/exchange/modify.d.ts.map +1 -1
- package/script/src/api/exchange/modify.js +16 -10
- package/script/src/api/exchange/modify.js.map +1 -1
- package/script/src/api/exchange/multiSig.d.ts +81 -0
- package/script/src/api/exchange/multiSig.d.ts.map +1 -1
- package/script/src/api/exchange/multiSig.js +17 -16
- package/script/src/api/exchange/multiSig.js.map +1 -1
- package/script/src/api/exchange/noop.d.ts.map +1 -1
- package/script/src/api/exchange/noop.js +14 -7
- package/script/src/api/exchange/noop.js.map +1 -1
- package/script/src/api/exchange/order.d.ts.map +1 -1
- package/script/src/api/exchange/order.js +16 -10
- package/script/src/api/exchange/order.js.map +1 -1
- package/script/src/api/exchange/perpDeploy.d.ts +58 -0
- package/script/src/api/exchange/perpDeploy.d.ts.map +1 -1
- package/script/src/api/exchange/perpDeploy.js +33 -8
- package/script/src/api/exchange/perpDeploy.js.map +1 -1
- package/script/src/api/exchange/registerReferrer.d.ts.map +1 -1
- package/script/src/api/exchange/registerReferrer.js +15 -8
- package/script/src/api/exchange/registerReferrer.js.map +1 -1
- package/script/src/api/exchange/reserveRequestWeight.d.ts.map +1 -1
- package/script/src/api/exchange/reserveRequestWeight.js +15 -8
- package/script/src/api/exchange/reserveRequestWeight.js.map +1 -1
- package/script/src/api/exchange/scheduleCancel.js +16 -10
- package/script/src/api/exchange/scheduleCancel.js.map +1 -1
- package/script/src/api/exchange/sendAsset.d.ts.map +1 -1
- package/script/src/api/exchange/sendAsset.js +15 -7
- package/script/src/api/exchange/sendAsset.js.map +1 -1
- package/script/src/api/exchange/setDisplayName.d.ts.map +1 -1
- package/script/src/api/exchange/setDisplayName.js +15 -8
- package/script/src/api/exchange/setDisplayName.js.map +1 -1
- package/script/src/api/exchange/setReferrer.d.ts.map +1 -1
- package/script/src/api/exchange/setReferrer.js +15 -8
- package/script/src/api/exchange/setReferrer.js.map +1 -1
- package/script/src/api/exchange/spotDeploy.d.ts.map +1 -1
- package/script/src/api/exchange/spotDeploy.js +15 -8
- package/script/src/api/exchange/spotDeploy.js.map +1 -1
- package/script/src/api/exchange/spotSend.d.ts.map +1 -1
- package/script/src/api/exchange/spotSend.js +15 -7
- package/script/src/api/exchange/spotSend.js.map +1 -1
- package/script/src/api/exchange/spotUser.d.ts.map +1 -1
- package/script/src/api/exchange/spotUser.js +15 -8
- package/script/src/api/exchange/spotUser.js.map +1 -1
- package/script/src/api/exchange/subAccountModify.d.ts.map +1 -1
- package/script/src/api/exchange/subAccountModify.js +15 -8
- package/script/src/api/exchange/subAccountModify.js.map +1 -1
- package/script/src/api/exchange/subAccountSpotTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/subAccountSpotTransfer.js +15 -8
- package/script/src/api/exchange/subAccountSpotTransfer.js.map +1 -1
- package/script/src/api/exchange/subAccountTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/subAccountTransfer.js +15 -8
- package/script/src/api/exchange/subAccountTransfer.js.map +1 -1
- package/script/src/api/exchange/tokenDelegate.d.ts.map +1 -1
- package/script/src/api/exchange/tokenDelegate.js +15 -7
- package/script/src/api/exchange/tokenDelegate.js.map +1 -1
- package/script/src/api/exchange/twapCancel.d.ts.map +1 -1
- package/script/src/api/exchange/twapCancel.js +16 -10
- package/script/src/api/exchange/twapCancel.js.map +1 -1
- package/script/src/api/exchange/twapOrder.d.ts.map +1 -1
- package/script/src/api/exchange/twapOrder.js +16 -10
- package/script/src/api/exchange/twapOrder.js.map +1 -1
- package/script/src/api/exchange/updateIsolatedMargin.d.ts.map +1 -1
- package/script/src/api/exchange/updateIsolatedMargin.js +16 -10
- package/script/src/api/exchange/updateIsolatedMargin.js.map +1 -1
- package/script/src/api/exchange/updateLeverage.d.ts.map +1 -1
- package/script/src/api/exchange/updateLeverage.js +16 -10
- package/script/src/api/exchange/updateLeverage.js.map +1 -1
- package/script/src/api/exchange/usdClassTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/usdClassTransfer.js +15 -7
- package/script/src/api/exchange/usdClassTransfer.js.map +1 -1
- package/script/src/api/exchange/usdSend.d.ts.map +1 -1
- package/script/src/api/exchange/usdSend.js +15 -7
- package/script/src/api/exchange/usdSend.js.map +1 -1
- package/script/src/api/exchange/userDexAbstraction.d.ts.map +1 -1
- package/script/src/api/exchange/userDexAbstraction.js +15 -7
- package/script/src/api/exchange/userDexAbstraction.js.map +1 -1
- package/script/src/api/exchange/vaultDistribute.d.ts.map +1 -1
- package/script/src/api/exchange/vaultDistribute.js +15 -8
- package/script/src/api/exchange/vaultDistribute.js.map +1 -1
- package/script/src/api/exchange/vaultModify.d.ts.map +1 -1
- package/script/src/api/exchange/vaultModify.js +15 -8
- package/script/src/api/exchange/vaultModify.js.map +1 -1
- package/script/src/api/exchange/vaultTransfer.d.ts.map +1 -1
- package/script/src/api/exchange/vaultTransfer.js +15 -8
- package/script/src/api/exchange/vaultTransfer.js.map +1 -1
- package/script/src/api/exchange/withdraw3.d.ts.map +1 -1
- package/script/src/api/exchange/withdraw3.js +15 -7
- package/script/src/api/exchange/withdraw3.js.map +1 -1
- package/script/src/api/exchange/~client.d.ts +31 -3
- package/script/src/api/exchange/~client.d.ts.map +1 -1
- package/script/src/api/exchange/~client.js +29 -6
- package/script/src/api/exchange/~client.js.map +1 -1
- package/script/src/api/exchange/~mod.d.ts +1 -0
- package/script/src/api/exchange/~mod.d.ts.map +1 -1
- package/script/src/api/exchange/~mod.js +1 -0
- package/script/src/api/exchange/~mod.js.map +1 -1
- package/script/src/api/info/allPerpMetas.d.ts +5 -0
- package/script/src/api/info/allPerpMetas.d.ts.map +1 -1
- package/script/src/api/info/meta.d.ts +5 -0
- package/script/src/api/info/meta.d.ts.map +1 -1
- package/script/src/api/info/meta.js +2 -0
- package/script/src/api/info/meta.js.map +1 -1
- package/script/src/api/info/metaAndAssetCtxs.d.ts +5 -0
- package/script/src/api/info/metaAndAssetCtxs.d.ts.map +1 -1
- package/script/src/api/info/perpDexs.d.ts +4 -0
- package/script/src/api/info/perpDexs.d.ts.map +1 -1
- package/script/src/api/info/perpDexs.js +5 -0
- package/script/src/api/info/perpDexs.js.map +1 -1
- package/script/src/api/info/spotClearinghouseState.d.ts +0 -5
- package/script/src/api/info/spotClearinghouseState.d.ts.map +1 -1
- package/script/src/api/info/spotClearinghouseState.js +2 -14
- package/script/src/api/info/spotClearinghouseState.js.map +1 -1
- package/script/src/api/info/userFees.d.ts +27 -2
- package/script/src/api/info/userFees.d.ts.map +1 -1
- package/script/src/api/info/userFees.js +29 -1
- package/script/src/api/info/userFees.js.map +1 -1
- package/script/src/api/info/webData2.d.ts +6 -0
- package/script/src/api/info/webData2.d.ts.map +1 -1
- package/script/src/api/info/~client.d.ts +9 -1
- package/script/src/api/info/~client.d.ts.map +1 -1
- package/script/src/api/subscription/spotState.d.ts +91 -0
- package/script/src/api/subscription/spotState.d.ts.map +1 -0
- package/script/src/api/subscription/spotState.js +95 -0
- package/script/src/api/subscription/spotState.js.map +1 -0
- package/script/src/api/subscription/userEvents.d.ts +166 -141
- package/script/src/api/subscription/userEvents.d.ts.map +1 -1
- package/script/src/api/subscription/userEvents.js +6 -1
- package/script/src/api/subscription/userEvents.js.map +1 -1
- package/script/src/api/subscription/webData2.d.ts +5 -0
- package/script/src/api/subscription/webData2.d.ts.map +1 -1
- package/script/src/api/subscription/~client.d.ts +22 -0
- 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 +1 -0
- 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 +1 -1
- package/script/src/signing/_signTypedData.d.ts.map +1 -1
- package/script/src/signing/_signTypedData.js +1 -1
- package/script/src/signing/_signTypedData.js.map +1 -1
- package/script/src/transport/websocket/_hyperliquid_event_target.d.ts +7 -0
- package/script/src/transport/websocket/_hyperliquid_event_target.d.ts.map +1 -1
- package/script/src/transport/websocket/_hyperliquid_event_target.js.map +1 -1
- package/script/src/transport/websocket/_websocket_async_request.d.ts.map +1 -1
- package/script/src/transport/websocket/_websocket_async_request.js +6 -0
- package/script/src/transport/websocket/_websocket_async_request.js.map +1 -1
- package/script/src/utils/{_minimalEIP712Signer.d.ts → _eip712.d.ts} +16 -1
- package/script/src/utils/_eip712.d.ts.map +1 -0
- package/script/src/utils/{_minimalEIP712Signer.js → _eip712.js} +14 -9
- package/script/src/utils/_eip712.js.map +1 -0
- package/script/src/utils/_format.d.ts +3 -4
- package/script/src/utils/_format.d.ts.map +1 -1
- package/script/src/utils/_format.js +98 -88
- package/script/src/utils/_format.js.map +1 -1
- package/script/src/utils/_recover.d.ts +89 -0
- package/script/src/utils/_recover.d.ts.map +1 -0
- package/script/src/utils/_recover.js +156 -0
- package/script/src/utils/_recover.js.map +1 -0
- 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 +2 -1
- package/src/src/api/_common_schemas.ts +34 -0
- package/src/src/api/exchange/_base/_execute.ts +73 -49
- package/src/src/api/exchange/_base/_types.ts +0 -7
- package/src/src/api/exchange/_base/mod.ts +0 -2
- package/src/src/api/exchange/agentEnableDexAbstraction.ts +14 -9
- package/src/src/api/exchange/approveAgent.ts +15 -12
- package/src/src/api/exchange/approveBuilderFee.ts +15 -12
- package/src/src/api/exchange/batchModify.ts +16 -13
- package/src/src/api/exchange/cDeposit.ts +15 -12
- package/src/src/api/exchange/cSignerAction.ts +15 -10
- package/src/src/api/exchange/cValidatorAction.ts +15 -10
- package/src/src/api/exchange/cWithdraw.ts +15 -12
- package/src/src/api/exchange/cancel.ts +16 -13
- package/src/src/api/exchange/cancelByCloid.ts +16 -13
- package/src/src/api/exchange/claimRewards.ts +14 -9
- package/src/src/api/exchange/convertToMultiSigUser.ts +15 -12
- package/src/src/api/exchange/createSubAccount.ts +15 -10
- package/src/src/api/exchange/createVault.ts +15 -10
- package/src/src/api/exchange/evmUserModify.ts +16 -11
- package/src/src/api/exchange/linkStakingUser.ts +157 -0
- package/src/src/api/exchange/modify.ts +16 -13
- package/src/src/api/exchange/multiSig.ts +17 -23
- package/src/src/api/exchange/noop.ts +14 -9
- package/src/src/api/exchange/order.ts +16 -13
- package/src/src/api/exchange/perpDeploy.ts +61 -10
- package/src/src/api/exchange/registerReferrer.ts +15 -10
- package/src/src/api/exchange/reserveRequestWeight.ts +15 -10
- package/src/src/api/exchange/scheduleCancel.ts +16 -13
- package/src/src/api/exchange/sendAsset.ts +15 -12
- package/src/src/api/exchange/setDisplayName.ts +15 -10
- package/src/src/api/exchange/setReferrer.ts +15 -10
- package/src/src/api/exchange/spotDeploy.ts +15 -10
- package/src/src/api/exchange/spotSend.ts +15 -12
- package/src/src/api/exchange/spotUser.ts +15 -10
- package/src/src/api/exchange/subAccountModify.ts +15 -10
- package/src/src/api/exchange/subAccountSpotTransfer.ts +15 -10
- package/src/src/api/exchange/subAccountTransfer.ts +15 -10
- package/src/src/api/exchange/tokenDelegate.ts +15 -12
- package/src/src/api/exchange/twapCancel.ts +16 -13
- package/src/src/api/exchange/twapOrder.ts +16 -13
- package/src/src/api/exchange/updateIsolatedMargin.ts +16 -13
- package/src/src/api/exchange/updateLeverage.ts +16 -13
- package/src/src/api/exchange/usdClassTransfer.ts +15 -12
- package/src/src/api/exchange/usdSend.ts +15 -12
- package/src/src/api/exchange/userDexAbstraction.ts +15 -12
- package/src/src/api/exchange/vaultDistribute.ts +15 -10
- package/src/src/api/exchange/vaultModify.ts +15 -10
- package/src/src/api/exchange/vaultTransfer.ts +15 -10
- package/src/src/api/exchange/withdraw3.ts +15 -12
- package/src/src/api/exchange/~client.ts +30 -5
- package/src/src/api/exchange/~mod.ts +1 -0
- package/src/src/api/info/meta.ts +7 -0
- package/src/src/api/info/perpDexs.ts +10 -0
- package/src/src/api/info/spotClearinghouseState.ts +3 -33
- package/src/src/api/info/userFees.ts +46 -1
- package/src/src/api/subscription/spotState.ts +96 -0
- package/src/src/api/subscription/userEvents.ts +11 -1
- package/src/src/api/subscription/~client.ts +25 -0
- package/src/src/api/subscription/~mod.ts +1 -0
- package/src/src/signing/_signTypedData.ts +1 -1
- package/src/src/transport/websocket/_hyperliquid_event_target.ts +7 -0
- package/src/src/transport/websocket/_websocket_async_request.ts +6 -0
- package/src/src/utils/{_minimalEIP712Signer.ts → _eip712.ts} +22 -29
- package/src/src/utils/_format.ts +99 -98
- package/src/src/utils/_recover.ts +178 -0
- package/src/src/utils/mod.ts +1 -0
- package/esm/src/api/exchange/_base/_sequential.d.ts +0 -30
- package/esm/src/api/exchange/_base/_sequential.d.ts.map +0 -1
- package/esm/src/api/exchange/_base/_sequential.js +0 -69
- package/esm/src/api/exchange/_base/_sequential.js.map +0 -1
- package/esm/src/utils/_minimalEIP712Signer.d.ts.map +0 -1
- package/esm/src/utils/_minimalEIP712Signer.js.map +0 -1
- package/script/src/api/exchange/_base/_sequential.d.ts +0 -30
- package/script/src/api/exchange/_base/_sequential.d.ts.map +0 -1
- package/script/src/api/exchange/_base/_sequential.js +0 -72
- package/script/src/api/exchange/_base/_sequential.js.map +0 -1
- package/script/src/utils/_minimalEIP712Signer.d.ts.map +0 -1
- package/script/src/utils/_minimalEIP712Signer.js.map +0 -1
- package/src/src/api/exchange/_base/_sequential.ts +0 -82
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
type ExtractRequestAction,
|
|
7
7
|
type ExtractRequestOptions,
|
|
8
8
|
getSignatureChainId,
|
|
9
|
-
globalNonceManager,
|
|
10
9
|
type MultiSignRequestConfig,
|
|
11
10
|
Signature,
|
|
12
11
|
} from "./_base/mod.js";
|
|
@@ -129,16 +128,20 @@ export async function tokenDelegate(
|
|
|
129
128
|
params: DeepImmutable<TokenDelegateParameters>,
|
|
130
129
|
opts?: TokenDelegateOptions,
|
|
131
130
|
): Promise<SuccessResponse> {
|
|
132
|
-
const
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
131
|
+
const request = parser(TokenDelegateRequest)({
|
|
132
|
+
action: {
|
|
133
|
+
type: "tokenDelegate",
|
|
134
|
+
hyperliquidChain: config.transport.isTestnet ? "Testnet" : "Mainnet",
|
|
135
|
+
signatureChainId: await getSignatureChainId(config),
|
|
136
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeUserSignedAction` to prevent race conditions
|
|
137
|
+
...params,
|
|
138
|
+
},
|
|
139
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeUserSignedAction` to prevent race conditions
|
|
140
|
+
signature: { // Placeholder; actual signature generated in `executeUserSignedAction`
|
|
141
|
+
r: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
142
|
+
s: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
143
|
+
v: 27,
|
|
144
|
+
},
|
|
138
145
|
});
|
|
139
|
-
return await executeUserSignedAction(
|
|
140
|
-
config,
|
|
141
|
-
{ action, types: TokenDelegateTypes },
|
|
142
|
-
opts?.signal,
|
|
143
|
-
);
|
|
146
|
+
return await executeUserSignedAction(config, request, TokenDelegateTypes, opts?.signal);
|
|
144
147
|
}
|
|
@@ -186,18 +186,21 @@ export async function twapCancel(
|
|
|
186
186
|
params: DeepImmutable<TwapCancelParameters>,
|
|
187
187
|
opts?: TwapCancelOptions,
|
|
188
188
|
): Promise<TwapCancelSuccessResponse> {
|
|
189
|
-
const
|
|
190
|
-
|
|
191
|
-
|
|
189
|
+
const request = parser(TwapCancelRequest)({
|
|
190
|
+
action: {
|
|
191
|
+
type: "twapCancel",
|
|
192
|
+
...params,
|
|
193
|
+
},
|
|
194
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeL1Action`
|
|
195
|
+
signature: { // Placeholder; actual signature generated in `executeL1Action`
|
|
196
|
+
r: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
197
|
+
s: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
198
|
+
v: 27,
|
|
199
|
+
},
|
|
200
|
+
vaultAddress: opts?.vaultAddress ?? config.defaultVaultAddress,
|
|
201
|
+
expiresAfter: typeof config.defaultExpiresAfter === "number"
|
|
202
|
+
? config.defaultExpiresAfter
|
|
203
|
+
: await config.defaultExpiresAfter?.(),
|
|
192
204
|
});
|
|
193
|
-
|
|
194
|
-
const vaultAddress_ = opts?.vaultAddress ?? config.defaultVaultAddress;
|
|
195
|
-
const vaultAddress = parser(v.optional(Address))(vaultAddress_);
|
|
196
|
-
|
|
197
|
-
const expiresAfter_ = typeof config.defaultExpiresAfter === "number"
|
|
198
|
-
? config.defaultExpiresAfter
|
|
199
|
-
: await config.defaultExpiresAfter?.();
|
|
200
|
-
const expiresAfter = parser(v.optional(UnsignedInteger))(expiresAfter_);
|
|
201
|
-
|
|
202
|
-
return await executeL1Action(config, { action, vaultAddress, expiresAfter }, opts?.signal);
|
|
205
|
+
return await executeL1Action(config, request, opts?.signal);
|
|
203
206
|
}
|
|
@@ -245,18 +245,21 @@ export async function twapOrder(
|
|
|
245
245
|
params: DeepImmutable<TwapOrderParameters>,
|
|
246
246
|
opts?: TwapOrderOptions,
|
|
247
247
|
): Promise<TwapOrderSuccessResponse> {
|
|
248
|
-
const
|
|
249
|
-
|
|
250
|
-
|
|
248
|
+
const request = parser(TwapOrderRequest)({
|
|
249
|
+
action: {
|
|
250
|
+
type: "twapOrder",
|
|
251
|
+
...params,
|
|
252
|
+
},
|
|
253
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeL1Action`
|
|
254
|
+
signature: { // Placeholder; actual signature generated in `executeL1Action`
|
|
255
|
+
r: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
256
|
+
s: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
257
|
+
v: 27,
|
|
258
|
+
},
|
|
259
|
+
vaultAddress: opts?.vaultAddress ?? config.defaultVaultAddress,
|
|
260
|
+
expiresAfter: typeof config.defaultExpiresAfter === "number"
|
|
261
|
+
? config.defaultExpiresAfter
|
|
262
|
+
: await config.defaultExpiresAfter?.(),
|
|
251
263
|
});
|
|
252
|
-
|
|
253
|
-
const vaultAddress_ = opts?.vaultAddress ?? config.defaultVaultAddress;
|
|
254
|
-
const vaultAddress = parser(v.optional(Address))(vaultAddress_);
|
|
255
|
-
|
|
256
|
-
const expiresAfter_ = typeof config.defaultExpiresAfter === "number"
|
|
257
|
-
? config.defaultExpiresAfter
|
|
258
|
-
: await config.defaultExpiresAfter?.();
|
|
259
|
-
const expiresAfter = parser(v.optional(UnsignedInteger))(expiresAfter_);
|
|
260
|
-
|
|
261
|
-
return await executeL1Action(config, { action, vaultAddress, expiresAfter }, opts?.signal);
|
|
264
|
+
return await executeL1Action(config, request, opts?.signal);
|
|
262
265
|
}
|
|
@@ -111,18 +111,21 @@ export async function updateIsolatedMargin(
|
|
|
111
111
|
params: DeepImmutable<UpdateIsolatedMarginParameters>,
|
|
112
112
|
opts?: UpdateIsolatedMarginOptions,
|
|
113
113
|
): Promise<SuccessResponse> {
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
const request = parser(UpdateIsolatedMarginRequest)({
|
|
115
|
+
action: {
|
|
116
|
+
type: "updateIsolatedMargin",
|
|
117
|
+
...params,
|
|
118
|
+
},
|
|
119
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeL1Action`
|
|
120
|
+
signature: { // Placeholder; actual signature generated in `executeL1Action`
|
|
121
|
+
r: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
122
|
+
s: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
123
|
+
v: 27,
|
|
124
|
+
},
|
|
125
|
+
vaultAddress: opts?.vaultAddress ?? config.defaultVaultAddress,
|
|
126
|
+
expiresAfter: typeof config.defaultExpiresAfter === "number"
|
|
127
|
+
? config.defaultExpiresAfter
|
|
128
|
+
: await config.defaultExpiresAfter?.(),
|
|
117
129
|
});
|
|
118
|
-
|
|
119
|
-
const vaultAddress_ = opts?.vaultAddress ?? config.defaultVaultAddress;
|
|
120
|
-
const vaultAddress = parser(v.optional(Address))(vaultAddress_);
|
|
121
|
-
|
|
122
|
-
const expiresAfter_ = typeof config.defaultExpiresAfter === "number"
|
|
123
|
-
? config.defaultExpiresAfter
|
|
124
|
-
: await config.defaultExpiresAfter?.();
|
|
125
|
-
const expiresAfter = parser(v.optional(UnsignedInteger))(expiresAfter_);
|
|
126
|
-
|
|
127
|
-
return await executeL1Action(config, { action, vaultAddress, expiresAfter }, opts?.signal);
|
|
130
|
+
return await executeL1Action(config, request, opts?.signal);
|
|
128
131
|
}
|
|
@@ -111,18 +111,21 @@ export async function updateLeverage(
|
|
|
111
111
|
params: DeepImmutable<UpdateLeverageParameters>,
|
|
112
112
|
opts?: UpdateLeverageOptions,
|
|
113
113
|
): Promise<SuccessResponse> {
|
|
114
|
-
const
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
const request = parser(UpdateLeverageRequest)({
|
|
115
|
+
action: {
|
|
116
|
+
type: "updateLeverage",
|
|
117
|
+
...params,
|
|
118
|
+
},
|
|
119
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeL1Action`
|
|
120
|
+
signature: { // Placeholder; actual signature generated in `executeL1Action`
|
|
121
|
+
r: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
122
|
+
s: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
123
|
+
v: 27,
|
|
124
|
+
},
|
|
125
|
+
vaultAddress: opts?.vaultAddress ?? config.defaultVaultAddress,
|
|
126
|
+
expiresAfter: typeof config.defaultExpiresAfter === "number"
|
|
127
|
+
? config.defaultExpiresAfter
|
|
128
|
+
: await config.defaultExpiresAfter?.(),
|
|
117
129
|
});
|
|
118
|
-
|
|
119
|
-
const vaultAddress_ = opts?.vaultAddress ?? config.defaultVaultAddress;
|
|
120
|
-
const vaultAddress = parser(v.optional(Address))(vaultAddress_);
|
|
121
|
-
|
|
122
|
-
const expiresAfter_ = typeof config.defaultExpiresAfter === "number"
|
|
123
|
-
? config.defaultExpiresAfter
|
|
124
|
-
: await config.defaultExpiresAfter?.();
|
|
125
|
-
const expiresAfter = parser(v.optional(UnsignedInteger))(expiresAfter_);
|
|
126
|
-
|
|
127
|
-
return await executeL1Action(config, { action, vaultAddress, expiresAfter }, opts?.signal);
|
|
130
|
+
return await executeL1Action(config, request, opts?.signal);
|
|
128
131
|
}
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
type ExtractRequestAction,
|
|
7
7
|
type ExtractRequestOptions,
|
|
8
8
|
getSignatureChainId,
|
|
9
|
-
globalNonceManager,
|
|
10
9
|
type MultiSignRequestConfig,
|
|
11
10
|
Signature,
|
|
12
11
|
} from "./_base/mod.js";
|
|
@@ -123,16 +122,20 @@ export async function usdClassTransfer(
|
|
|
123
122
|
params: DeepImmutable<UsdClassTransferParameters>,
|
|
124
123
|
opts?: UsdClassTransferOptions,
|
|
125
124
|
): Promise<SuccessResponse> {
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
125
|
+
const request = parser(UsdClassTransferRequest)({
|
|
126
|
+
action: {
|
|
127
|
+
type: "usdClassTransfer",
|
|
128
|
+
hyperliquidChain: config.transport.isTestnet ? "Testnet" : "Mainnet",
|
|
129
|
+
signatureChainId: await getSignatureChainId(config),
|
|
130
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeUserSignedAction` to prevent race conditions
|
|
131
|
+
...params,
|
|
132
|
+
},
|
|
133
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeUserSignedAction` to prevent race conditions
|
|
134
|
+
signature: { // Placeholder; actual signature generated in `executeUserSignedAction`
|
|
135
|
+
r: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
136
|
+
s: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
137
|
+
v: 27,
|
|
138
|
+
},
|
|
132
139
|
});
|
|
133
|
-
return await executeUserSignedAction(
|
|
134
|
-
config,
|
|
135
|
-
{ action, types: UsdClassTransferTypes },
|
|
136
|
-
opts?.signal,
|
|
137
|
-
);
|
|
140
|
+
return await executeUserSignedAction(config, request, UsdClassTransferTypes, opts?.signal);
|
|
138
141
|
}
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
type ExtractRequestAction,
|
|
7
7
|
type ExtractRequestOptions,
|
|
8
8
|
getSignatureChainId,
|
|
9
|
-
globalNonceManager,
|
|
10
9
|
type MultiSignRequestConfig,
|
|
11
10
|
Signature,
|
|
12
11
|
} from "./_base/mod.js";
|
|
@@ -123,16 +122,20 @@ export async function usdSend(
|
|
|
123
122
|
params: DeepImmutable<UsdSendParameters>,
|
|
124
123
|
opts?: UsdSendOptions,
|
|
125
124
|
): Promise<SuccessResponse> {
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
125
|
+
const request = parser(UsdSendRequest)({
|
|
126
|
+
action: {
|
|
127
|
+
type: "usdSend",
|
|
128
|
+
hyperliquidChain: config.transport.isTestnet ? "Testnet" : "Mainnet",
|
|
129
|
+
signatureChainId: await getSignatureChainId(config),
|
|
130
|
+
time: 0, // Placeholder; actual nonce generated in `executeUserSignedAction` to prevent race conditions
|
|
131
|
+
...params,
|
|
132
|
+
},
|
|
133
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeUserSignedAction` to prevent race conditions
|
|
134
|
+
signature: { // Placeholder; actual signature generated in `executeUserSignedAction`
|
|
135
|
+
r: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
136
|
+
s: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
137
|
+
v: 27,
|
|
138
|
+
},
|
|
132
139
|
});
|
|
133
|
-
return await executeUserSignedAction(
|
|
134
|
-
config,
|
|
135
|
-
{ action, types: UsdSendTypes },
|
|
136
|
-
opts?.signal,
|
|
137
|
-
);
|
|
140
|
+
return await executeUserSignedAction(config, request, UsdSendTypes, opts?.signal);
|
|
138
141
|
}
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
type ExtractRequestAction,
|
|
7
7
|
type ExtractRequestOptions,
|
|
8
8
|
getSignatureChainId,
|
|
9
|
-
globalNonceManager,
|
|
10
9
|
type MultiSignRequestConfig,
|
|
11
10
|
Signature,
|
|
12
11
|
} from "./_base/mod.js";
|
|
@@ -127,16 +126,20 @@ export async function userDexAbstraction(
|
|
|
127
126
|
params: DeepImmutable<UserDexAbstractionExchangeParameters>,
|
|
128
127
|
opts?: UserDexAbstractionExchangeOptions,
|
|
129
128
|
): Promise<SuccessResponse> {
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
129
|
+
const request = parser(UserDexAbstractionExchangeRequest)({
|
|
130
|
+
action: {
|
|
131
|
+
type: "userDexAbstraction",
|
|
132
|
+
hyperliquidChain: config.transport.isTestnet ? "Testnet" : "Mainnet",
|
|
133
|
+
signatureChainId: await getSignatureChainId(config),
|
|
134
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeUserSignedAction` to prevent race conditions
|
|
135
|
+
...params,
|
|
136
|
+
},
|
|
137
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeUserSignedAction` to prevent race conditions
|
|
138
|
+
signature: { // Placeholder; actual signature generated in `executeUserSignedAction`
|
|
139
|
+
r: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
140
|
+
s: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
141
|
+
v: 27,
|
|
142
|
+
},
|
|
136
143
|
});
|
|
137
|
-
return await executeUserSignedAction(
|
|
138
|
-
config,
|
|
139
|
-
{ action, types: UserDexAbstractionTypes },
|
|
140
|
-
opts?.signal,
|
|
141
|
-
);
|
|
144
|
+
return await executeUserSignedAction(config, request, UserDexAbstractionTypes, opts?.signal);
|
|
142
145
|
}
|
|
@@ -108,15 +108,20 @@ export async function vaultDistribute(
|
|
|
108
108
|
params: DeepImmutable<VaultDistributeParameters>,
|
|
109
109
|
opts?: VaultDistributeOptions,
|
|
110
110
|
): Promise<SuccessResponse> {
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
const request = parser(VaultDistributeRequest)({
|
|
112
|
+
action: {
|
|
113
|
+
type: "vaultDistribute",
|
|
114
|
+
...params,
|
|
115
|
+
},
|
|
116
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeL1Action`
|
|
117
|
+
signature: { // Placeholder; actual signature generated in `executeL1Action`
|
|
118
|
+
r: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
119
|
+
s: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
120
|
+
v: 27,
|
|
121
|
+
},
|
|
122
|
+
expiresAfter: typeof config.defaultExpiresAfter === "number"
|
|
123
|
+
? config.defaultExpiresAfter
|
|
124
|
+
: await config.defaultExpiresAfter?.(),
|
|
114
125
|
});
|
|
115
|
-
|
|
116
|
-
const expiresAfter_ = typeof config.defaultExpiresAfter === "number"
|
|
117
|
-
? config.defaultExpiresAfter
|
|
118
|
-
: await config.defaultExpiresAfter?.();
|
|
119
|
-
const expiresAfter = parser(v.optional(UnsignedInteger))(expiresAfter_);
|
|
120
|
-
|
|
121
|
-
return await executeL1Action(config, { action, expiresAfter }, opts?.signal);
|
|
126
|
+
return await executeL1Action(config, request, opts?.signal);
|
|
122
127
|
}
|
|
@@ -110,15 +110,20 @@ export async function vaultModify(
|
|
|
110
110
|
params: DeepImmutable<VaultModifyParameters>,
|
|
111
111
|
opts?: VaultModifyOptions,
|
|
112
112
|
): Promise<SuccessResponse> {
|
|
113
|
-
const
|
|
114
|
-
|
|
115
|
-
|
|
113
|
+
const request = parser(VaultModifyRequest)({
|
|
114
|
+
action: {
|
|
115
|
+
type: "vaultModify",
|
|
116
|
+
...params,
|
|
117
|
+
},
|
|
118
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeL1Action`
|
|
119
|
+
signature: { // Placeholder; actual signature generated in `executeL1Action`
|
|
120
|
+
r: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
121
|
+
s: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
122
|
+
v: 27,
|
|
123
|
+
},
|
|
124
|
+
expiresAfter: typeof config.defaultExpiresAfter === "number"
|
|
125
|
+
? config.defaultExpiresAfter
|
|
126
|
+
: await config.defaultExpiresAfter?.(),
|
|
116
127
|
});
|
|
117
|
-
|
|
118
|
-
const expiresAfter_ = typeof config.defaultExpiresAfter === "number"
|
|
119
|
-
? config.defaultExpiresAfter
|
|
120
|
-
: await config.defaultExpiresAfter?.();
|
|
121
|
-
const expiresAfter = parser(v.optional(UnsignedInteger))(expiresAfter_);
|
|
122
|
-
|
|
123
|
-
return await executeL1Action(config, { action, expiresAfter }, opts?.signal);
|
|
128
|
+
return await executeL1Action(config, request, opts?.signal);
|
|
124
129
|
}
|
|
@@ -106,15 +106,20 @@ export async function vaultTransfer(
|
|
|
106
106
|
params: DeepImmutable<VaultTransferParameters>,
|
|
107
107
|
opts?: VaultTransferOptions,
|
|
108
108
|
): Promise<SuccessResponse> {
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
109
|
+
const request = parser(VaultTransferRequest)({
|
|
110
|
+
action: {
|
|
111
|
+
type: "vaultTransfer",
|
|
112
|
+
...params,
|
|
113
|
+
},
|
|
114
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeL1Action`
|
|
115
|
+
signature: { // Placeholder; actual signature generated in `executeL1Action`
|
|
116
|
+
r: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
117
|
+
s: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
118
|
+
v: 27,
|
|
119
|
+
},
|
|
120
|
+
expiresAfter: typeof config.defaultExpiresAfter === "number"
|
|
121
|
+
? config.defaultExpiresAfter
|
|
122
|
+
: await config.defaultExpiresAfter?.(),
|
|
112
123
|
});
|
|
113
|
-
|
|
114
|
-
const expiresAfter_ = typeof config.defaultExpiresAfter === "number"
|
|
115
|
-
? config.defaultExpiresAfter
|
|
116
|
-
: await config.defaultExpiresAfter?.();
|
|
117
|
-
const expiresAfter = parser(v.optional(UnsignedInteger))(expiresAfter_);
|
|
118
|
-
|
|
119
|
-
return await executeL1Action(config, { action, expiresAfter }, opts?.signal);
|
|
124
|
+
return await executeL1Action(config, request, opts?.signal);
|
|
120
125
|
}
|
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
type ExtractRequestAction,
|
|
7
7
|
type ExtractRequestOptions,
|
|
8
8
|
getSignatureChainId,
|
|
9
|
-
globalNonceManager,
|
|
10
9
|
type MultiSignRequestConfig,
|
|
11
10
|
Signature,
|
|
12
11
|
} from "./_base/mod.js";
|
|
@@ -123,16 +122,20 @@ export async function withdraw3(
|
|
|
123
122
|
params: DeepImmutable<Withdraw3Parameters>,
|
|
124
123
|
opts?: Withdraw3Options,
|
|
125
124
|
): Promise<SuccessResponse> {
|
|
126
|
-
const
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
125
|
+
const request = parser(Withdraw3Request)({
|
|
126
|
+
action: {
|
|
127
|
+
type: "withdraw3",
|
|
128
|
+
hyperliquidChain: config.transport.isTestnet ? "Testnet" : "Mainnet",
|
|
129
|
+
signatureChainId: await getSignatureChainId(config),
|
|
130
|
+
time: 0, // Placeholder; actual nonce generated in `executeUserSignedAction` to prevent race conditions
|
|
131
|
+
...params,
|
|
132
|
+
},
|
|
133
|
+
nonce: 0, // Placeholder; actual nonce generated in `executeUserSignedAction` to prevent race conditions
|
|
134
|
+
signature: { // Placeholder; actual signature generated in `executeUserSignedAction`
|
|
135
|
+
r: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
136
|
+
s: "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
137
|
+
v: 27,
|
|
138
|
+
},
|
|
132
139
|
});
|
|
133
|
-
return await executeUserSignedAction(
|
|
134
|
-
config,
|
|
135
|
-
{ action, types: Withdraw3Types },
|
|
136
|
-
opts?.signal,
|
|
137
|
-
);
|
|
140
|
+
return await executeUserSignedAction(config, request, Withdraw3Types, opts?.signal);
|
|
138
141
|
}
|
|
@@ -2,7 +2,7 @@ import type { MaybePromise, OmitFirst, OverloadedParameters } from "../_base.js"
|
|
|
2
2
|
import type { ExchangeRequestConfig, MultiSignRequestConfig } from "./_base/mod.js";
|
|
3
3
|
import type { IRequestTransport } from "../../transport/base.js";
|
|
4
4
|
import type { AbstractWallet } from "../../signing/mod.js";
|
|
5
|
-
import { PrivateKeyEIP712Signer } from "../../utils/
|
|
5
|
+
import { PrivateKeyEIP712Signer } from "../../utils/_eip712.js";
|
|
6
6
|
|
|
7
7
|
import { agentEnableDexAbstraction } from "./agentEnableDexAbstraction.js";
|
|
8
8
|
import { approveAgent } from "./approveAgent.js";
|
|
@@ -19,6 +19,7 @@ import { cSignerAction } from "./cSignerAction.js";
|
|
|
19
19
|
import { cValidatorAction } from "./cValidatorAction.js";
|
|
20
20
|
import { cWithdraw } from "./cWithdraw.js";
|
|
21
21
|
import { evmUserModify } from "./evmUserModify.js";
|
|
22
|
+
import { linkStakingUser } from "./linkStakingUser.js";
|
|
22
23
|
import { modify } from "./modify.js";
|
|
23
24
|
import { multiSig } from "./multiSig.js";
|
|
24
25
|
import { order } from "./order.js";
|
|
@@ -64,6 +65,7 @@ export type { CSignerActionOptions, CSignerActionParameters } from "./cSignerAct
|
|
|
64
65
|
export type { CValidatorActionOptions, CValidatorActionParameters } from "./cValidatorAction.js";
|
|
65
66
|
export type { CWithdrawOptions, CWithdrawParameters } from "./cWithdraw.js";
|
|
66
67
|
export type { EvmUserModifyOptions, EvmUserModifyParameters } from "./evmUserModify.js";
|
|
68
|
+
export type { LinkStakingUserOptions, LinkStakingUserParameters } from "./linkStakingUser.js";
|
|
67
69
|
export type { ModifyOptions, ModifyParameters } from "./modify.js";
|
|
68
70
|
export type { MultiSigOptions, MultiSigParameters } from "./multiSig.js";
|
|
69
71
|
export type { OrderOptions, OrderParameters } from "./order.js";
|
|
@@ -118,7 +120,6 @@ export class ExchangeClient<
|
|
|
118
120
|
signatureChainId?: string | (() => MaybePromise<string>);
|
|
119
121
|
defaultVaultAddress?: string;
|
|
120
122
|
defaultExpiresAfter?: number | (() => MaybePromise<number>);
|
|
121
|
-
sequentialRequests?: boolean;
|
|
122
123
|
|
|
123
124
|
/**
|
|
124
125
|
* Initialises a new instance.
|
|
@@ -181,7 +182,6 @@ export class ExchangeClient<
|
|
|
181
182
|
this.defaultVaultAddress = args.defaultVaultAddress;
|
|
182
183
|
this.defaultExpiresAfter = args.defaultExpiresAfter;
|
|
183
184
|
this.signatureChainId = args.signatureChainId;
|
|
184
|
-
this.sequentialRequests = args.sequentialRequests;
|
|
185
185
|
}
|
|
186
186
|
|
|
187
187
|
/**
|
|
@@ -609,7 +609,7 @@ export class ExchangeClient<
|
|
|
609
609
|
* Configure block type for EVM transactions.
|
|
610
610
|
* @param params - Parameters specific to the API request.
|
|
611
611
|
* @param opts - Request execution options.
|
|
612
|
-
* @returns
|
|
612
|
+
* @returns Successful response without specific data.
|
|
613
613
|
*
|
|
614
614
|
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
615
615
|
* @throws {TransportError} When the transport layer throws an error.
|
|
@@ -630,6 +630,31 @@ export class ExchangeClient<
|
|
|
630
630
|
return evmUserModify(this, ...args);
|
|
631
631
|
}
|
|
632
632
|
|
|
633
|
+
/**
|
|
634
|
+
* Link staking and trading accounts for fee discount attribution.
|
|
635
|
+
* @param params - Parameters specific to the API request.
|
|
636
|
+
* @param opts - Request execution options.
|
|
637
|
+
* @returns Successful response without specific data.
|
|
638
|
+
*
|
|
639
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
640
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
641
|
+
*
|
|
642
|
+
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/trading/fees#staking-linking
|
|
643
|
+
* @example
|
|
644
|
+
* ```ts
|
|
645
|
+
* import * as hl from "@nktkas/hyperliquid";
|
|
646
|
+
*
|
|
647
|
+
* const pk = "0x..."; // viem, ethers or private key
|
|
648
|
+
* const transport = new hl.HttpTransport(); // or `WebSocketTransport`
|
|
649
|
+
*
|
|
650
|
+
* const client = new hl.ExchangeClient({ transport, wallet: pk });
|
|
651
|
+
* await client.linkStakingUser({ user: "0x...", isFinalize: false });
|
|
652
|
+
* ```
|
|
653
|
+
*/
|
|
654
|
+
linkStakingUser(...args: OmitFirst<OverloadedParameters<typeof linkStakingUser>>) {
|
|
655
|
+
return linkStakingUser(this, ...args);
|
|
656
|
+
}
|
|
657
|
+
|
|
633
658
|
/**
|
|
634
659
|
* Modify an order.
|
|
635
660
|
* @param params - Parameters specific to the API request.
|
|
@@ -1492,7 +1517,7 @@ export class MultiSignClient<
|
|
|
1492
1517
|
/**
|
|
1493
1518
|
* @note Is the first wallet from {@linkcode signers}. Changing the property also changes the first element in the {@linkcode signers} array.
|
|
1494
1519
|
*/
|
|
1495
|
-
declare
|
|
1520
|
+
declare wallet: S[0];
|
|
1496
1521
|
|
|
1497
1522
|
/**
|
|
1498
1523
|
* Initialises a new multi-signature client instance.
|
|
@@ -55,6 +55,7 @@ export * from "./cSignerAction.js";
|
|
|
55
55
|
export * from "./cValidatorAction.js";
|
|
56
56
|
export * from "./cWithdraw.js";
|
|
57
57
|
export * from "./evmUserModify.js";
|
|
58
|
+
export * from "./linkStakingUser.js";
|
|
58
59
|
export * from "./modify.js";
|
|
59
60
|
export * from "./multiSig.js";
|
|
60
61
|
export * from "./order.js";
|
package/src/src/api/info/meta.ts
CHANGED
|
@@ -73,6 +73,13 @@ export const MetaResponse = /* @__PURE__ */ (() => {
|
|
|
73
73
|
v.optional(v.literal(true)),
|
|
74
74
|
v.description("Indicates if the universe is delisted."),
|
|
75
75
|
),
|
|
76
|
+
/** Trading margin mode constraint. */
|
|
77
|
+
marginMode: v.pipe(
|
|
78
|
+
v.optional(
|
|
79
|
+
v.union([v.literal("strictIsolated"), v.literal("noCross")]),
|
|
80
|
+
),
|
|
81
|
+
v.description("Trading margin mode constraint."),
|
|
82
|
+
),
|
|
76
83
|
}),
|
|
77
84
|
v.description("Trading universe parameters for perpetual asset."),
|
|
78
85
|
),
|
|
@@ -63,6 +63,16 @@ export const PerpDexsResponse = /* @__PURE__ */ (() => {
|
|
|
63
63
|
v.array(v.tuple([v.string(), v.string()])),
|
|
64
64
|
v.description("Mapping of asset names to their streaming open interest caps."),
|
|
65
65
|
),
|
|
66
|
+
/** List of delegated function names and their authorized executor addresses. */
|
|
67
|
+
subDeployers: v.pipe(
|
|
68
|
+
v.array(
|
|
69
|
+
v.tuple([
|
|
70
|
+
v.string(),
|
|
71
|
+
v.array(Address),
|
|
72
|
+
]),
|
|
73
|
+
),
|
|
74
|
+
v.description("List of delegated function names and their authorized executor addresses."),
|
|
75
|
+
),
|
|
66
76
|
}),
|
|
67
77
|
v.description(" Perpetual dex metadata."),
|
|
68
78
|
),
|
|
@@ -2,6 +2,8 @@ import * as v from "valibot";
|
|
|
2
2
|
import { Address, type DeepImmutable, parser, UnsignedDecimal, UnsignedInteger } from "../_base.js";
|
|
3
3
|
import type { InfoRequestConfig } from "./_types.js";
|
|
4
4
|
|
|
5
|
+
import { BalanceSchema } from "../_common_schemas.js";
|
|
6
|
+
|
|
5
7
|
// -------------------- Schemas --------------------
|
|
6
8
|
|
|
7
9
|
/**
|
|
@@ -41,39 +43,7 @@ export const SpotClearinghouseStateResponse = /* @__PURE__ */ (() => {
|
|
|
41
43
|
v.object({
|
|
42
44
|
/** Balance for each token. */
|
|
43
45
|
balances: v.pipe(
|
|
44
|
-
v.array(
|
|
45
|
-
/** Balance for a specific spot token. */
|
|
46
|
-
v.pipe(
|
|
47
|
-
v.object({
|
|
48
|
-
/** Asset symbol. */
|
|
49
|
-
coin: v.pipe(
|
|
50
|
-
v.string(),
|
|
51
|
-
v.description("Asset symbol."),
|
|
52
|
-
),
|
|
53
|
-
/** Unique identifier for the token. */
|
|
54
|
-
token: v.pipe(
|
|
55
|
-
UnsignedInteger,
|
|
56
|
-
v.description("Unique identifier for the token."),
|
|
57
|
-
),
|
|
58
|
-
/** Total balance. */
|
|
59
|
-
total: v.pipe(
|
|
60
|
-
UnsignedDecimal,
|
|
61
|
-
v.description("Total balance."),
|
|
62
|
-
),
|
|
63
|
-
/** Amount on hold. */
|
|
64
|
-
hold: v.pipe(
|
|
65
|
-
UnsignedDecimal,
|
|
66
|
-
v.description("Amount on hold."),
|
|
67
|
-
),
|
|
68
|
-
/** Entry notional value. */
|
|
69
|
-
entryNtl: v.pipe(
|
|
70
|
-
UnsignedDecimal,
|
|
71
|
-
v.description("Entry notional value."),
|
|
72
|
-
),
|
|
73
|
-
}),
|
|
74
|
-
v.description("Balance for a specific spot token."),
|
|
75
|
-
),
|
|
76
|
-
),
|
|
46
|
+
v.array(BalanceSchema),
|
|
77
47
|
v.description("Balance for each token."),
|
|
78
48
|
),
|
|
79
49
|
/** Escrowed balances. */
|