@nktkas/hyperliquid 0.25.2 → 0.25.4
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 +36 -27
- package/esm/bin/cli.js +87 -87
- package/esm/src/api/exchange/agentEnableDexAbstraction.d.ts +74 -0
- package/esm/src/api/exchange/agentEnableDexAbstraction.d.ts.map +1 -0
- package/esm/src/api/exchange/agentEnableDexAbstraction.js +58 -0
- package/esm/src/api/exchange/agentEnableDexAbstraction.js.map +1 -0
- package/esm/src/api/exchange/multiSig.d.ts +3 -3
- package/esm/src/api/exchange/usdClassTransfer.d.ts +2 -2
- package/esm/src/api/exchange/usdClassTransfer.js +2 -2
- package/esm/src/api/exchange/usdSend.d.ts +2 -2
- package/esm/src/api/exchange/usdSend.js +2 -2
- package/esm/src/api/exchange/userDexAbstraction.d.ts +104 -0
- package/esm/src/api/exchange/userDexAbstraction.d.ts.map +1 -0
- package/esm/src/api/exchange/userDexAbstraction.js +79 -0
- package/esm/src/api/exchange/userDexAbstraction.js.map +1 -0
- package/esm/src/api/exchange/withdraw3.d.ts +2 -2
- package/esm/src/api/exchange/withdraw3.js +2 -2
- package/esm/src/api/exchange/~client.d.ts +100 -40
- package/esm/src/api/exchange/~client.d.ts.map +1 -1
- package/esm/src/api/exchange/~client.js +50 -0
- package/esm/src/api/exchange/~client.js.map +1 -1
- package/esm/src/api/exchange/~mod.d.ts +2 -0
- package/esm/src/api/exchange/~mod.d.ts.map +1 -1
- package/esm/src/api/exchange/~mod.js +2 -0
- package/esm/src/api/exchange/~mod.js.map +1 -1
- package/esm/src/api/info/activeAssetData.d.ts +2 -2
- package/esm/src/api/info/activeAssetData.js +2 -2
- package/esm/src/api/info/clearinghouseState.d.ts +2 -2
- package/esm/src/api/info/clearinghouseState.js +2 -2
- package/esm/src/api/info/subAccounts.d.ts +1 -1
- package/esm/src/api/info/twapHistory.d.ts +4 -0
- package/esm/src/api/info/twapHistory.d.ts.map +1 -1
- package/esm/src/api/info/twapHistory.js +2 -0
- package/esm/src/api/info/twapHistory.js.map +1 -1
- package/esm/src/api/info/userDexAbstraction.d.ts +49 -0
- package/esm/src/api/info/userDexAbstraction.d.ts.map +1 -0
- package/esm/src/api/info/userDexAbstraction.js +52 -0
- package/esm/src/api/info/userDexAbstraction.js.map +1 -0
- package/esm/src/api/info/webData2.d.ts +1 -1
- package/esm/src/api/info/~client.d.ts +23 -0
- package/esm/src/api/info/~client.d.ts.map +1 -1
- package/esm/src/api/info/~client.js +23 -0
- package/esm/src/api/info/~client.js.map +1 -1
- package/esm/src/api/info/~mod.d.ts +1 -0
- package/esm/src/api/info/~mod.d.ts.map +1 -1
- package/esm/src/api/info/~mod.js +1 -0
- package/esm/src/api/info/~mod.js.map +1 -1
- package/esm/src/api/subscription/activeAssetData.d.ts +1 -1
- package/esm/src/api/subscription/clearinghouseState.d.ts +1 -1
- package/esm/src/api/subscription/userTwapHistory.d.ts +5 -0
- package/esm/src/api/subscription/userTwapHistory.d.ts.map +1 -1
- package/esm/src/api/subscription/userTwapHistory.js +2 -0
- package/esm/src/api/subscription/userTwapHistory.js.map +1 -1
- package/esm/src/api/subscription/webData2.d.ts +1 -1
- package/package.json +1 -1
- package/script/bin/cli.js +87 -87
- package/script/src/api/exchange/agentEnableDexAbstraction.d.ts +74 -0
- package/script/src/api/exchange/agentEnableDexAbstraction.d.ts.map +1 -0
- package/script/src/api/exchange/agentEnableDexAbstraction.js +95 -0
- package/script/src/api/exchange/agentEnableDexAbstraction.js.map +1 -0
- package/script/src/api/exchange/multiSig.d.ts +3 -3
- package/script/src/api/exchange/usdClassTransfer.d.ts +2 -2
- package/script/src/api/exchange/usdClassTransfer.js +2 -2
- package/script/src/api/exchange/usdSend.d.ts +2 -2
- package/script/src/api/exchange/usdSend.js +2 -2
- package/script/src/api/exchange/userDexAbstraction.d.ts +104 -0
- package/script/src/api/exchange/userDexAbstraction.d.ts.map +1 -0
- package/script/src/api/exchange/userDexAbstraction.js +116 -0
- package/script/src/api/exchange/userDexAbstraction.js.map +1 -0
- package/script/src/api/exchange/withdraw3.d.ts +2 -2
- package/script/src/api/exchange/withdraw3.js +2 -2
- package/script/src/api/exchange/~client.d.ts +100 -40
- package/script/src/api/exchange/~client.d.ts.map +1 -1
- package/script/src/api/exchange/~client.js +50 -0
- package/script/src/api/exchange/~client.js.map +1 -1
- package/script/src/api/exchange/~mod.d.ts +2 -0
- package/script/src/api/exchange/~mod.d.ts.map +1 -1
- package/script/src/api/exchange/~mod.js +2 -0
- package/script/src/api/exchange/~mod.js.map +1 -1
- package/script/src/api/info/activeAssetData.d.ts +2 -2
- package/script/src/api/info/activeAssetData.js +2 -2
- package/script/src/api/info/clearinghouseState.d.ts +2 -2
- package/script/src/api/info/clearinghouseState.js +2 -2
- package/script/src/api/info/subAccounts.d.ts +1 -1
- package/script/src/api/info/twapHistory.d.ts +4 -0
- package/script/src/api/info/twapHistory.d.ts.map +1 -1
- package/script/src/api/info/twapHistory.js +2 -0
- package/script/src/api/info/twapHistory.js.map +1 -1
- package/script/src/api/info/userDexAbstraction.d.ts +49 -0
- package/script/src/api/info/userDexAbstraction.d.ts.map +1 -0
- package/script/src/api/info/userDexAbstraction.js +89 -0
- package/script/src/api/info/userDexAbstraction.js.map +1 -0
- package/script/src/api/info/webData2.d.ts +1 -1
- package/script/src/api/info/~client.d.ts +23 -0
- package/script/src/api/info/~client.d.ts.map +1 -1
- package/script/src/api/info/~client.js +23 -0
- package/script/src/api/info/~client.js.map +1 -1
- package/script/src/api/info/~mod.d.ts +1 -0
- package/script/src/api/info/~mod.d.ts.map +1 -1
- package/script/src/api/info/~mod.js +1 -0
- package/script/src/api/info/~mod.js.map +1 -1
- package/script/src/api/subscription/activeAssetData.d.ts +1 -1
- package/script/src/api/subscription/clearinghouseState.d.ts +1 -1
- package/script/src/api/subscription/userTwapHistory.d.ts +5 -0
- package/script/src/api/subscription/userTwapHistory.d.ts.map +1 -1
- package/script/src/api/subscription/userTwapHistory.js +2 -0
- package/script/src/api/subscription/userTwapHistory.js.map +1 -1
- package/script/src/api/subscription/webData2.d.ts +1 -1
- package/src/bin/cli.ts +87 -87
- package/src/src/api/exchange/agentEnableDexAbstraction.ts +96 -0
- package/src/src/api/exchange/usdClassTransfer.ts +2 -2
- package/src/src/api/exchange/usdSend.ts +2 -2
- package/src/src/api/exchange/userDexAbstraction.ts +142 -0
- package/src/src/api/exchange/withdraw3.ts +2 -2
- package/src/src/api/exchange/~client.ts +96 -40
- package/src/src/api/exchange/~mod.ts +2 -0
- package/src/src/api/info/activeAssetData.ts +2 -2
- package/src/src/api/info/clearinghouseState.ts +2 -2
- package/src/src/api/info/twapHistory.ts +5 -0
- package/src/src/api/info/userDexAbstraction.ts +79 -0
- package/src/src/api/info/~client.ts +25 -0
- package/src/src/api/info/~mod.ts +1 -0
- package/src/src/api/subscription/userTwapHistory.ts +5 -0
package/README.md
CHANGED
|
@@ -392,7 +392,7 @@ class InfoClient {
|
|
|
392
392
|
transport: HttpTransport | WebSocketTransport;
|
|
393
393
|
});
|
|
394
394
|
|
|
395
|
-
// Market
|
|
395
|
+
// Market Data
|
|
396
396
|
alignedQuoteTokenInfo(params: AlignedQuoteTokenInfoParameters): Promise<AlignedQuoteTokenInfoResponse>;
|
|
397
397
|
allMids(params?: AllMidsParameters): Promise<AllMidsResponse>;
|
|
398
398
|
candleSnapshot(params: CandleSnapshotParameters): Promise<CandleSnapshotResponse>;
|
|
@@ -403,19 +403,15 @@ class InfoClient {
|
|
|
403
403
|
maxMarketOrderNtls(): Promise<MaxMarketOrderNtlsResponse>;
|
|
404
404
|
meta(params?: MetaParameters): Promise<MetaResponse>;
|
|
405
405
|
metaAndAssetCtxs(params?: MetaAndAssetCtxsParameters): Promise<MetaAndAssetCtxsResponse>;
|
|
406
|
-
perpDeployAuctionStatus(): Promise<PerpDeployAuctionStatusResponse>;
|
|
407
406
|
perpDexLimits(params: PerpDexLimitsParameters): Promise<PerpDexLimitsResponse>;
|
|
408
407
|
perpDexs(): Promise<PerpDexsResponse>;
|
|
409
408
|
perpsAtOpenInterestCap(params?: PerpsAtOpenInterestCapParameters): Promise<PerpsAtOpenInterestCapResponse>;
|
|
410
409
|
predictedFundings(): Promise<PredictedFundingsResponse>;
|
|
411
410
|
recentTrades(params: RecentTradesParameters): Promise<RecentTradesResponse>;
|
|
412
|
-
spotDeployState(params: SpotDeployStateParameters): Promise<SpotDeployStateResponse>;
|
|
413
411
|
spotMeta(): Promise<SpotMetaResponse>;
|
|
414
412
|
spotMetaAndAssetCtxs(): Promise<SpotMetaAndAssetCtxsResponse>;
|
|
415
|
-
spotPairDeployAuctionStatus(): Promise<SpotPairDeployAuctionStatusResponse>;
|
|
416
|
-
tokenDetails(params: TokenDetailsParameters): Promise<TokenDetailsResponse>;
|
|
417
413
|
|
|
418
|
-
// Account
|
|
414
|
+
// User Account
|
|
419
415
|
activeAssetData(params: ActiveAssetDataParameters): Promise<ActiveAssetDataResponse>;
|
|
420
416
|
clearinghouseState(params: ClearinghouseStateParameters): Promise<ClearinghouseStateResponse>;
|
|
421
417
|
extraAgents(params: ExtraAgentsParameters): Promise<ExtraAgentsResponse>;
|
|
@@ -427,6 +423,7 @@ class InfoClient {
|
|
|
427
423
|
referral(params: ReferralParameters): Promise<ReferralResponse>;
|
|
428
424
|
spotClearinghouseState(params: SpotClearinghouseStateParameters): Promise<SpotClearinghouseStateResponse>;
|
|
429
425
|
subAccounts(params: SubAccountsParameters): Promise<SubAccountsResponse>;
|
|
426
|
+
userDexAbstraction(params: UserDexAbstractionInfoParameters): Promise<UserDexAbstractionInfoResponse>;
|
|
430
427
|
userFees(params: UserFeesParameters): Promise<UserFeesResponse>;
|
|
431
428
|
userFunding(params: UserFundingParameters): Promise<UserFundingResponse>;
|
|
432
429
|
userNonFundingLedgerUpdates(
|
|
@@ -437,7 +434,7 @@ class InfoClient {
|
|
|
437
434
|
userToMultiSigSigners(params: UserToMultiSigSignersParameters): Promise<UserToMultiSigSignersResponse>;
|
|
438
435
|
webData2(params: WebData2Parameters): Promise<WebData2Response>;
|
|
439
436
|
|
|
440
|
-
//
|
|
437
|
+
// Orders & TWAP & Position
|
|
441
438
|
frontendOpenOrders(params: FrontendOpenOrdersParameters): Promise<FrontendOpenOrdersResponse>;
|
|
442
439
|
historicalOrders(params: HistoricalOrdersParameters): Promise<HistoricalOrdersResponse>;
|
|
443
440
|
openOrders(params: OpenOrdersParameters): Promise<OpenOrdersResponse>;
|
|
@@ -448,12 +445,12 @@ class InfoClient {
|
|
|
448
445
|
userTwapSliceFills(params: UserTwapSliceFillsParameters): Promise<UserTwapSliceFillsResponse>;
|
|
449
446
|
userTwapSliceFillsByTime(params: UserTwapSliceFillsByTimeParameters): Promise<UserTwapSliceFillsByTimeResponse>;
|
|
450
447
|
|
|
451
|
-
//
|
|
452
|
-
gossipRootIps(): Promise<GossipRootIpsResponse>;
|
|
448
|
+
// Delegation & Validators
|
|
453
449
|
delegations(params: DelegationsParameters): Promise<DelegationsResponse>;
|
|
454
450
|
delegatorHistory(params: DelegatorHistoryParameters): Promise<DelegatorHistoryResponse>;
|
|
455
451
|
delegatorRewards(params: DelegatorRewardsParameters): Promise<DelegatorRewardsResponse>;
|
|
456
452
|
delegatorSummary(params: DelegatorSummaryParameters): Promise<DelegatorSummaryResponse>;
|
|
453
|
+
gossipRootIps(): Promise<GossipRootIpsResponse>;
|
|
457
454
|
validatorL1Votes(): Promise<ValidatorL1VotesResponse>;
|
|
458
455
|
validatorSummaries(): Promise<ValidatorSummariesResponse>;
|
|
459
456
|
|
|
@@ -463,13 +460,19 @@ class InfoClient {
|
|
|
463
460
|
vaultDetails(params: VaultDetailsParameters): Promise<VaultDetailsResponse>;
|
|
464
461
|
vaultSummaries(): Promise<VaultSummariesResponse>;
|
|
465
462
|
|
|
466
|
-
//
|
|
463
|
+
// Deploy Market
|
|
464
|
+
perpDeployAuctionStatus(): Promise<PerpDeployAuctionStatusResponse>;
|
|
465
|
+
spotDeployState(params: SpotDeployStateParameters): Promise<SpotDeployStateResponse>;
|
|
466
|
+
spotPairDeployAuctionStatus(): Promise<SpotPairDeployAuctionStatusResponse>;
|
|
467
|
+
|
|
468
|
+
// Other
|
|
467
469
|
exchangeStatus(): Promise<ExchangeStatusResponse>;
|
|
468
470
|
|
|
469
|
-
//
|
|
471
|
+
// Transaction & Block Details (RPC endpoint)
|
|
470
472
|
blockDetails(params: BlockDetailsParameters): Promise<BlockDetailsResponse>;
|
|
471
473
|
txDetails(params: TxDetailsParameters): Promise<TxDetailsResponse>;
|
|
472
474
|
userDetails(params: UserDetailsParameters): Promise<UserDetailsResponse>;
|
|
475
|
+
tokenDetails(params: TokenDetailsParameters): Promise<TokenDetailsResponse>;
|
|
473
476
|
}
|
|
474
477
|
```
|
|
475
478
|
|
|
@@ -485,7 +488,7 @@ class ExchangeClient {
|
|
|
485
488
|
nonceManager?: () => MaybePromise<number>; // Function to get the next nonce (default: monotonically incrementing `Date.now()`)
|
|
486
489
|
});
|
|
487
490
|
|
|
488
|
-
// Order
|
|
491
|
+
// Order & TWAP & Position
|
|
489
492
|
batchModify(params: BatchModifyParameters): Promise<OrderResponseSuccess>;
|
|
490
493
|
cancel(params: CancelParameters): Promise<CancelResponseSuccess>;
|
|
491
494
|
cancelByCloid(params: CancelByCloidParameters): Promise<CancelResponseSuccess>;
|
|
@@ -498,37 +501,39 @@ class ExchangeClient {
|
|
|
498
501
|
updateLeverage(params: UpdateLeverageParameters): Promise<SuccessResponse>;
|
|
499
502
|
|
|
500
503
|
// Account
|
|
504
|
+
agentEnableDexAbstraction(): Promise<SuccessResponse>;
|
|
501
505
|
approveAgent(params: ApproveAgentParameters): Promise<SuccessResponse>;
|
|
502
506
|
approveBuilderFee(params: ApproveBuilderFeeParameters): Promise<SuccessResponse>;
|
|
503
|
-
claimRewards(): Promise<SuccessResponse>;
|
|
504
|
-
createSubAccount(params: CreateSubAccountParameters): Promise<CreateSubAccountResponse>;
|
|
505
507
|
evmUserModify(params: EvmUserModifyParameters): Promise<SuccessResponse>;
|
|
506
508
|
noop(): Promise<SuccessResponse>;
|
|
507
|
-
registerReferrer(params: RegisterReferrerParameters): Promise<SuccessResponse>;
|
|
508
509
|
reserveRequestWeight(params: ReserveRequestWeightParameters): Promise<SuccessResponse>;
|
|
509
510
|
setDisplayName(params: SetDisplayNameParameters): Promise<SuccessResponse>;
|
|
510
|
-
setReferrer(params: SetReferrerParameters): Promise<SuccessResponse>;
|
|
511
|
-
subAccountModify(params: SubAccountModifyParameters): Promise<SuccessResponse>;
|
|
512
511
|
spotUser(params: SpotUserParameters): Promise<SuccessResponse>;
|
|
512
|
+
userDexAbstraction(params: UserDexAbstractionExchangeParameters): Promise<UserDexAbstractionExchangeResponse>;
|
|
513
513
|
|
|
514
|
-
//
|
|
514
|
+
// Fund Transfers
|
|
515
515
|
sendAsset(params: SendAssetParameters): Promise<SuccessResponse>;
|
|
516
516
|
spotSend(params: SpotSendParameters): Promise<SuccessResponse>;
|
|
517
|
-
subAccountSpotTransfer(params: SubAccountSpotTransferParameters): Promise<SuccessResponse>;
|
|
518
|
-
subAccountTransfer(params: SubAccountTransferParameters): Promise<SuccessResponse>;
|
|
519
517
|
usdClassTransfer(params: UsdClassTransferParameters): Promise<SuccessResponse>;
|
|
520
518
|
usdSend(params: UsdSendParameters): Promise<SuccessResponse>;
|
|
521
519
|
withdraw3(params: Withdraw3Parameters): Promise<SuccessResponse>;
|
|
522
520
|
|
|
523
|
-
//
|
|
521
|
+
// Sub-Account
|
|
522
|
+
createSubAccount(params: CreateSubAccountParameters): Promise<CreateSubAccountResponse>;
|
|
523
|
+
subAccountModify(params: SubAccountModifyParameters): Promise<SuccessResponse>;
|
|
524
|
+
subAccountSpotTransfer(params: SubAccountSpotTransferParameters): Promise<SuccessResponse>;
|
|
525
|
+
subAccountTransfer(params: SubAccountTransferParameters): Promise<SuccessResponse>;
|
|
526
|
+
|
|
527
|
+
// Referrer
|
|
528
|
+
claimRewards(): Promise<SuccessResponse>;
|
|
529
|
+
registerReferrer(params: RegisterReferrerParameters): Promise<SuccessResponse>;
|
|
530
|
+
setReferrer(params: SetReferrerParameters): Promise<SuccessResponse>;
|
|
531
|
+
|
|
532
|
+
// Staking & Delegation
|
|
524
533
|
cDeposit(params: CDepositParameters): Promise<SuccessResponse>;
|
|
525
534
|
cWithdraw(params: CWithdrawParameters): Promise<SuccessResponse>;
|
|
526
535
|
tokenDelegate(params: TokenDelegateParameters): Promise<SuccessResponse>;
|
|
527
536
|
|
|
528
|
-
// Market
|
|
529
|
-
perpDeploy(params: PerpDeployParameters): Promise<SuccessResponse>;
|
|
530
|
-
spotDeploy(params: SpotDeployParameters): Promise<SuccessResponse>;
|
|
531
|
-
|
|
532
537
|
// Vault
|
|
533
538
|
createVault(params: CreateVaultParameters): Promise<CreateVaultResponse>;
|
|
534
539
|
vaultDistribute(params: VaultDistributeParameters): Promise<SuccessResponse>;
|
|
@@ -547,7 +552,11 @@ class ExchangeClient {
|
|
|
547
552
|
| TwapCancelSuccessResponse
|
|
548
553
|
>;
|
|
549
554
|
|
|
550
|
-
//
|
|
555
|
+
// Deploy Market
|
|
556
|
+
perpDeploy(params: PerpDeployParameters): Promise<SuccessResponse>;
|
|
557
|
+
spotDeploy(params: SpotDeployParameters): Promise<SuccessResponse>;
|
|
558
|
+
|
|
559
|
+
// Validator Actions
|
|
551
560
|
cSignerAction(params: CSignerActionParameters): Promise<SuccessResponse>;
|
|
552
561
|
cValidatorAction(params: CValidatorActionParameters): Promise<SuccessResponse>;
|
|
553
562
|
}
|
|
@@ -591,7 +600,7 @@ class SubscriptionClient {
|
|
|
591
600
|
userTwapHistory(params: WsUserTwapHistoryParameters, listener: (data: WsUserTwapHistoryEvent) => void);
|
|
592
601
|
userTwapSliceFills(params: WsUserTwapSliceFillsParameters, listener: (data: WsUserTwapSliceFillsEvent) => void);
|
|
593
602
|
|
|
594
|
-
//
|
|
603
|
+
// Transaction & Block Details (RPC endpoint)
|
|
595
604
|
explorerBlock(listener: (data: WsExplorerBlockEvent) => void);
|
|
596
605
|
explorerTxs(listener: (data: WsExplorerTxsEvent) => void);
|
|
597
606
|
}
|
package/esm/bin/cli.js
CHANGED
|
@@ -86,156 +86,156 @@ INFO ENDPOINT METHODS
|
|
|
86
86
|
Market Data:
|
|
87
87
|
alignedQuoteTokenInfo --token <number>
|
|
88
88
|
allMids [--dex <string>]
|
|
89
|
-
|
|
90
|
-
candleSnapshot --coin <string> --interval <1m|3m|5m|15m|30m|1h|2h|4h|8h|12h|1d|3d|1w|1M>
|
|
89
|
+
candleSnapshot --coin <string> --interval <1m|3m|5m|15m|30m|1h|2h|4h|8h|12h|1d|3d|1w|1M>
|
|
91
90
|
--startTime <number> [--endTime <number>]
|
|
92
91
|
fundingHistory --coin <string> --startTime <number> [--endTime <number>]
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
92
|
+
l2Book --coin <string> [--nSigFigs <2|3|4|5>] [--mantissa <2|5>]
|
|
93
|
+
liquidatable (no params)
|
|
94
|
+
marginTable --id <number>
|
|
95
|
+
maxMarketOrderNtls (no params)
|
|
97
96
|
meta [--dex <string>]
|
|
98
97
|
metaAndAssetCtxs [--dex <string>]
|
|
98
|
+
perpDexLimits --dex <string>
|
|
99
|
+
perpDexs (no params)
|
|
100
|
+
perpsAtOpenInterestCap [--dex <string>]
|
|
101
|
+
predictedFundings (no params)
|
|
102
|
+
recentTrades --coin <string>
|
|
99
103
|
spotMeta (no params)
|
|
100
104
|
spotMetaAndAssetCtxs (no params)
|
|
101
|
-
exchangeStatus (no params)
|
|
102
|
-
perpDexs (no params)
|
|
103
|
-
perpDexLimits --dex <string>
|
|
104
|
-
spotPairDeployAuctionStatus (no params)
|
|
105
|
-
perpDeployAuctionStatus (no params)
|
|
106
|
-
perpsAtOpenInterestCap [--dex <string>]
|
|
107
|
-
maxMarketOrderNtls (no params)
|
|
108
|
-
liquidatable (no params)
|
|
109
|
-
marginTable --id <number>
|
|
110
105
|
|
|
111
|
-
User Account
|
|
112
|
-
clearinghouseState --user <address> [--dex <string>]
|
|
113
|
-
spotClearinghouseState --user <address> [--dex <string>]
|
|
114
|
-
portfolio --user <address>
|
|
115
|
-
openOrders --user <address> [--dex <string>]
|
|
116
|
-
frontendOpenOrders --user <address> [--dex <string>]
|
|
117
|
-
historicalOrders --user <address>
|
|
118
|
-
orderStatus --user <address> --oid <number|hex>
|
|
119
|
-
userDetails --user <address>
|
|
120
|
-
userFees --user <address>
|
|
121
|
-
userRateLimit --user <address>
|
|
122
|
-
userRole --user <address>
|
|
106
|
+
User Account:
|
|
123
107
|
activeAssetData --user <address> --coin <string>
|
|
108
|
+
clearinghouseState --user <address> [--dex <string>]
|
|
109
|
+
extraAgents --user <address>
|
|
124
110
|
isVip --user <address>
|
|
125
111
|
legalCheck --user <address>
|
|
126
|
-
referral --user <address>
|
|
127
|
-
spotDeployState --user <address>
|
|
128
|
-
preTransferCheck --user <address> --source <address>
|
|
129
112
|
maxBuilderFee --user <address> --builder <address>
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
113
|
+
portfolio --user <address>
|
|
114
|
+
preTransferCheck --user <address> --source <address>
|
|
115
|
+
referral --user <address>
|
|
116
|
+
spotClearinghouseState --user <address> [--dex <string>]
|
|
117
|
+
subAccounts --user <address>
|
|
118
|
+
userDexAbstraction --user <address>
|
|
119
|
+
userFees --user <address>
|
|
136
120
|
userFunding --user <address> --startTime <number> [--endTime <number>]
|
|
137
121
|
userNonFundingLedgerUpdates --user <address> --startTime <number> [--endTime <number>]
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
userTwapSliceFillsByTime --user <address> --startTime <number> [--endTime <number>]
|
|
141
|
-
[--aggregateByTime <bool>]
|
|
142
|
-
|
|
143
|
-
Sub-Account & Multi-Sig:
|
|
144
|
-
subAccounts --user <address>
|
|
145
|
-
extraAgents --user <address>
|
|
122
|
+
userRateLimit --user <address>
|
|
123
|
+
userRole --user <address>
|
|
146
124
|
userToMultiSigSigners --user <address>
|
|
125
|
+
webData2 --user <address>
|
|
147
126
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
127
|
+
Orders & TWAP & Position:
|
|
128
|
+
frontendOpenOrders --user <address> [--dex <string>]
|
|
129
|
+
historicalOrders --user <address>
|
|
130
|
+
openOrders --user <address> [--dex <string>]
|
|
131
|
+
orderStatus --user <address> --oid <number|hex>
|
|
132
|
+
twapHistory --user <address>
|
|
133
|
+
userFills --user <address> [--aggregateByTime <bool>]
|
|
134
|
+
userFillsByTime --user <address> --startTime <number>
|
|
135
|
+
[--endTime <number>] [--aggregateByTime <bool>]
|
|
136
|
+
userTwapSliceFills --user <address>
|
|
137
|
+
userTwapSliceFillsByTime --user <address> --startTime <number>
|
|
138
|
+
[--endTime <number>] [--aggregateByTime <bool>]
|
|
153
139
|
|
|
154
140
|
Delegation & Validators:
|
|
155
141
|
delegations --user <address>
|
|
156
142
|
delegatorHistory --user <address>
|
|
157
143
|
delegatorRewards --user <address>
|
|
158
144
|
delegatorSummary --user <address>
|
|
145
|
+
gossipRootIps (no params)
|
|
159
146
|
validatorL1Votes (no params)
|
|
160
147
|
validatorSummaries (no params)
|
|
161
|
-
|
|
148
|
+
|
|
149
|
+
Vault:
|
|
150
|
+
leadingVaults --user <address>
|
|
151
|
+
userVaultEquities --user <address>
|
|
152
|
+
vaultDetails --vaultAddress <address> [--user <address>]
|
|
153
|
+
vaultSummaries (no params)
|
|
154
|
+
|
|
155
|
+
Deploy Market:
|
|
156
|
+
perpDeployAuctionStatus (no params)
|
|
157
|
+
spotDeployState --user <address>
|
|
158
|
+
spotPairDeployAuctionStatus (no params)
|
|
159
|
+
|
|
160
|
+
Other:
|
|
161
|
+
exchangeStatus (no params)
|
|
162
162
|
|
|
163
163
|
Transaction & Block Details:
|
|
164
|
-
txDetails --hash <hex>
|
|
165
164
|
blockDetails --height <number>
|
|
166
165
|
tokenDetails --tokenId <hex>
|
|
166
|
+
txDetails --hash <hex>
|
|
167
|
+
userDetails --user <address>
|
|
167
168
|
|
|
168
169
|
=============================================================================
|
|
169
170
|
EXCHANGE ENDPOINT METHODS
|
|
170
171
|
=============================================================================
|
|
171
172
|
|
|
172
|
-
|
|
173
|
-
order --orders <json> [--grouping <na|normalTpsl|positionTpsl>]
|
|
174
|
-
[--builder <json>]
|
|
175
|
-
modify --oid <number|hex> --order <json>
|
|
173
|
+
Order & TWAP & Position:
|
|
176
174
|
batchModify --modifies <json>
|
|
177
175
|
cancel --cancels <json>
|
|
178
176
|
cancelByCloid --cancels <json>
|
|
177
|
+
modify --oid <number|hex> --order <json>
|
|
178
|
+
order --orders <json> [--grouping <na|normalTpsl|positionTpsl>] [--builder <json>]
|
|
179
179
|
scheduleCancel [--time <number>]
|
|
180
|
-
|
|
181
|
-
TWAP Operations:
|
|
182
|
-
twapOrder --a <number> --b <bool> --s <number> --r <bool> --m <number> --t <bool>
|
|
183
180
|
twapCancel --a <number> --t <number>
|
|
184
|
-
|
|
185
|
-
Position Management:
|
|
186
|
-
updateLeverage --asset <number> --isCross <bool> --leverage <number>
|
|
181
|
+
twapOrder --a <number> --b <bool> --s <number> --r <bool> --m <number> --t <bool>
|
|
187
182
|
updateIsolatedMargin --asset <number> --isBuy <bool> --ntli <number>
|
|
183
|
+
updateLeverage --asset <number> --isCross <bool> --leverage <number>
|
|
184
|
+
|
|
185
|
+
Account:
|
|
186
|
+
agentEnableDexAbstraction (no params)
|
|
187
|
+
approveAgent --agentAddress <address> [--agentName <string>]
|
|
188
|
+
approveBuilderFee --maxFeeRate <number> --builder <address>
|
|
189
|
+
evmUserModify --usingBigBlocks <bool>
|
|
190
|
+
noop (no params)
|
|
191
|
+
reserveRequestWeight --weight <number>
|
|
192
|
+
setDisplayName --displayName <string>
|
|
193
|
+
spotUser --optOut <bool>
|
|
194
|
+
userDexAbstraction --user <address> --enabled <bool>
|
|
188
195
|
|
|
189
196
|
Fund Transfers:
|
|
190
|
-
withdraw3 --destination <address> --amount <number>
|
|
191
|
-
usdSend --destination <address> --amount <number>
|
|
192
|
-
spotSend --destination <address> --token <name:address> --amount <number>
|
|
193
197
|
sendAsset --destination <address> --token <name:address> --amount <number>
|
|
194
198
|
--sourceDex <string> --destinationDex <string> [--fromSubAccount <address>]
|
|
199
|
+
spotSend --destination <address> --token <name:address> --amount <number>
|
|
195
200
|
usdClassTransfer --amount <number> --toPerp <bool>
|
|
201
|
+
usdSend --destination <address> --amount <number>
|
|
202
|
+
withdraw3 --destination <address> --amount <number>
|
|
196
203
|
|
|
197
|
-
Sub-Account
|
|
204
|
+
Sub-Account:
|
|
198
205
|
createSubAccount --name <string>
|
|
199
206
|
subAccountModify --subAccountUser <address> --name <string>
|
|
200
|
-
|
|
201
|
-
subAccountSpotTransfer --subAccountUser <address> --isDeposit <bool>
|
|
207
|
+
subAccountSpotTransfer --subAccountUser <address> --isDeposit <bool>
|
|
202
208
|
--token <name:address> --amount <number>
|
|
209
|
+
subAccountTransfer --subAccountUser <address> --isDeposit <bool> --usd <number>
|
|
203
210
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
vaultModify --vaultAddress <address> [--allowDeposits <bool>]
|
|
207
|
-
[--alwaysCloseOnWithdraw <bool>]
|
|
208
|
-
vaultTransfer --vaultAddress <address> --isDeposit <bool> --usd <number>
|
|
209
|
-
vaultDistribute --vaultAddress <address> --usd <number>
|
|
210
|
-
|
|
211
|
-
Agent & Referrer:
|
|
212
|
-
approveAgent --agentAddress <address> [--agentName <string>]
|
|
213
|
-
approveBuilderFee --maxFeeRate <number> --builder <address>
|
|
211
|
+
Referrer:
|
|
212
|
+
claimRewards (no params)
|
|
214
213
|
registerReferrer --code <string>
|
|
215
214
|
setReferrer --code <string>
|
|
216
|
-
setDisplayName --displayName <string>
|
|
217
215
|
|
|
218
216
|
Staking & Delegation:
|
|
219
|
-
tokenDelegate --validator <address> --wei <number> --isUndelegate <bool>
|
|
220
217
|
cDeposit --wei <number>
|
|
221
218
|
cWithdraw --wei <number>
|
|
222
|
-
|
|
219
|
+
tokenDelegate --validator <address> --wei <number> --isUndelegate <bool>
|
|
223
220
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
221
|
+
Vault:
|
|
222
|
+
createVault --name <string> --description <string> --initialUsd <number>
|
|
223
|
+
vaultDistribute --vaultAddress <address> --usd <number>
|
|
224
|
+
vaultModify --vaultAddress <address> [--allowDeposits <bool>]
|
|
225
|
+
[--alwaysCloseOnWithdraw <bool>]
|
|
226
|
+
vaultTransfer --vaultAddress <address> --isDeposit <bool> --usd <number>
|
|
228
227
|
|
|
229
228
|
Deploy Market:
|
|
230
229
|
perpDeploy --registerAsset <json> | --setOracle <json>
|
|
231
230
|
spotDeploy --genesis <json> | --registerHyperliquidity <json> | --registerSpot <json> |
|
|
232
231
|
--registerToken2 <json> | --setDeployerTradingFeeShare <json> | --userGenesis <json>
|
|
233
232
|
|
|
234
|
-
|
|
235
|
-
convertToMultiSigUser --authorizedUsers <json> --threshold <number>
|
|
233
|
+
Validator Actions:
|
|
236
234
|
cSignerAction --jailSelf null | --unjailSelf null
|
|
237
235
|
cValidatorAction --changeProfile <json> | --register <json> | --unregister null
|
|
238
|
-
|
|
236
|
+
|
|
237
|
+
Other:
|
|
238
|
+
convertToMultiSigUser --authorizedUsers <json> --threshold <number>
|
|
239
239
|
|
|
240
240
|
=============================================================================
|
|
241
241
|
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { type ExchangeRequestConfig, type ExtractRequestOptions, type MultiSignRequestConfig } from "./_base.js";
|
|
2
|
+
import * as v from "valibot";
|
|
3
|
+
/**
|
|
4
|
+
* Enable HIP-3 DEX abstraction.
|
|
5
|
+
* @see null
|
|
6
|
+
*/
|
|
7
|
+
export declare const AgentEnableDexAbstractionRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
8
|
+
/** Action to perform. */
|
|
9
|
+
readonly action: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
10
|
+
/** Type of action. */
|
|
11
|
+
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"agentEnableDexAbstraction", undefined>, v.DescriptionAction<"agentEnableDexAbstraction", "Type of action.">]>;
|
|
12
|
+
}, undefined>, v.DescriptionAction<{
|
|
13
|
+
type: "agentEnableDexAbstraction";
|
|
14
|
+
}, "Action to perform.">]>;
|
|
15
|
+
/** Unique request identifier (current timestamp in ms). */
|
|
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
|
+
/** Cryptographic signature. */
|
|
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>, v.TransformAction<`0x${string}`, `0x${string}`>]>, 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.TransformAction<`0x${string}`, `0x${string}`>]>, v.DescriptionAction<`0x${string}`, "Second 32-byte component of ECDSA signature.">]>;
|
|
21
|
+
readonly v: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>], undefined>, v.TransformAction<any, number>, v.SafeIntegerAction<number, undefined>]>, v.UnionSchema<[v.LiteralSchema<27, undefined>, v.LiteralSchema<28, undefined>], undefined>]>, v.DescriptionAction<27 | 28, "Recovery identifier.">]>;
|
|
22
|
+
}, undefined>, v.DescriptionAction<{
|
|
23
|
+
r: `0x${string}`;
|
|
24
|
+
s: `0x${string}`;
|
|
25
|
+
v: 27 | 28;
|
|
26
|
+
}, "ECDSA signature components for Ethereum typed data.">]>, v.DescriptionAction<{
|
|
27
|
+
r: `0x${string}`;
|
|
28
|
+
s: `0x${string}`;
|
|
29
|
+
v: 27 | 28;
|
|
30
|
+
}, "Cryptographic signature.">]>;
|
|
31
|
+
/** Expiration time of the action. */
|
|
32
|
+
readonly expiresAfter: v.SchemaWithPipe<readonly [v.OptionalSchema<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 | undefined, "Expiration time of the action.">]>;
|
|
33
|
+
}, undefined>, v.DescriptionAction<{
|
|
34
|
+
action: {
|
|
35
|
+
type: "agentEnableDexAbstraction";
|
|
36
|
+
};
|
|
37
|
+
nonce: number;
|
|
38
|
+
signature: {
|
|
39
|
+
r: `0x${string}`;
|
|
40
|
+
s: `0x${string}`;
|
|
41
|
+
v: 27 | 28;
|
|
42
|
+
};
|
|
43
|
+
expiresAfter?: number | undefined;
|
|
44
|
+
}, "Enable HIP-3 DEX abstraction request.">]>;
|
|
45
|
+
export type AgentEnableDexAbstractionRequest = v.InferOutput<typeof AgentEnableDexAbstractionRequest>;
|
|
46
|
+
import { SuccessResponse } from "./_base.js";
|
|
47
|
+
export { SuccessResponse };
|
|
48
|
+
/** Request options for the {@linkcode agentEnableDexAbstraction} function. */
|
|
49
|
+
export type AgentEnableDexAbstractionOptions = ExtractRequestOptions<v.InferInput<typeof AgentEnableDexAbstractionRequest>>;
|
|
50
|
+
/**
|
|
51
|
+
* Enable HIP-3 DEX abstraction.
|
|
52
|
+
* @param config - General configuration for Exchange API requests.
|
|
53
|
+
* @param params - Parameters specific to the API request.
|
|
54
|
+
* @param opts - Request execution options.
|
|
55
|
+
* @returns Successful response without specific data.
|
|
56
|
+
*
|
|
57
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
58
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
59
|
+
*
|
|
60
|
+
* @see null
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* import { HttpTransport } from "@nktkas/hyperliquid";
|
|
64
|
+
* import { agentEnableDexAbstraction } from "@nktkas/hyperliquid/api/exchange";
|
|
65
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
66
|
+
*
|
|
67
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
68
|
+
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
69
|
+
*
|
|
70
|
+
* await agentEnableDexAbstraction({ transport, wallet });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export declare function agentEnableDexAbstraction(config: ExchangeRequestConfig | MultiSignRequestConfig, opts?: AgentEnableDexAbstractionOptions): Promise<SuccessResponse>;
|
|
74
|
+
//# sourceMappingURL=agentEnableDexAbstraction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentEnableDexAbstraction.d.ts","sourceRoot":"","sources":["../../../../src/src/api/exchange/agentEnableDexAbstraction.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,qBAAqB,EAE1B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAE5B,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAI7B;;;GAGG;AACH,eAAO,MAAM,gCAAgC;IAGvC,yBAAyB;;QAGrB,sBAAsB;;;;;IAQ1B,2DAA2D;;IAK3D,+BAA+B;;;;;;;;;;;;;;IAK/B,qCAAqC;;;;;;;;;;;;;6CAQvC,CAAC;AACL,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAEtG,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,CAAC;AAI3B,8EAA8E;AAC9E,MAAM,MAAM,gCAAgC,GAAG,qBAAqB,CAClE,CAAC,CAAC,UAAU,CAAC,OAAO,gCAAgC,CAAC,CACtD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAsB,yBAAyB,CAC7C,MAAM,EAAE,qBAAqB,GAAG,sBAAsB,EACtD,IAAI,CAAC,EAAE,gCAAgC,GACtC,OAAO,CAAC,eAAe,CAAC,CAQ1B"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { parser, UnsignedInteger } from "../_base.js";
|
|
2
|
+
import { executeL1Action, Signature, } from "./_base.js";
|
|
3
|
+
import * as v from "valibot";
|
|
4
|
+
// -------------------- Schemas --------------------
|
|
5
|
+
/**
|
|
6
|
+
* Enable HIP-3 DEX abstraction.
|
|
7
|
+
* @see null
|
|
8
|
+
*/
|
|
9
|
+
export const AgentEnableDexAbstractionRequest = /* @__PURE__ */ (() => {
|
|
10
|
+
return v.pipe(v.object({
|
|
11
|
+
/** Action to perform. */
|
|
12
|
+
action: v.pipe(v.object({
|
|
13
|
+
/** Type of action. */
|
|
14
|
+
type: v.pipe(v.literal("agentEnableDexAbstraction"), v.description("Type of action.")),
|
|
15
|
+
}), v.description("Action to perform.")),
|
|
16
|
+
/** Unique request identifier (current timestamp in ms). */
|
|
17
|
+
nonce: v.pipe(UnsignedInteger, v.description("Unique request identifier (current timestamp in ms).")),
|
|
18
|
+
/** Cryptographic signature. */
|
|
19
|
+
signature: v.pipe(Signature, v.description("Cryptographic signature.")),
|
|
20
|
+
/** Expiration time of the action. */
|
|
21
|
+
expiresAfter: v.pipe(v.optional(UnsignedInteger), v.description("Expiration time of the action.")),
|
|
22
|
+
}), v.description("Enable HIP-3 DEX abstraction request."));
|
|
23
|
+
})();
|
|
24
|
+
import { SuccessResponse } from "./_base.js";
|
|
25
|
+
export { SuccessResponse };
|
|
26
|
+
/**
|
|
27
|
+
* Enable HIP-3 DEX abstraction.
|
|
28
|
+
* @param config - General configuration for Exchange API requests.
|
|
29
|
+
* @param params - Parameters specific to the API request.
|
|
30
|
+
* @param opts - Request execution options.
|
|
31
|
+
* @returns Successful response without specific data.
|
|
32
|
+
*
|
|
33
|
+
* @throws {ApiRequestError} When the API returns an unsuccessful response.
|
|
34
|
+
* @throws {TransportError} When the transport layer throws an error.
|
|
35
|
+
*
|
|
36
|
+
* @see null
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* import { HttpTransport } from "@nktkas/hyperliquid";
|
|
40
|
+
* import { agentEnableDexAbstraction } from "@nktkas/hyperliquid/api/exchange";
|
|
41
|
+
* import { privateKeyToAccount } from "npm:viem/accounts";
|
|
42
|
+
*
|
|
43
|
+
* const wallet = privateKeyToAccount("0x..."); // viem or ethers
|
|
44
|
+
* const transport = new HttpTransport(); // or `WebSocketTransport`
|
|
45
|
+
*
|
|
46
|
+
* await agentEnableDexAbstraction({ transport, wallet });
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export async function agentEnableDexAbstraction(config, opts) {
|
|
50
|
+
const action = parser(AgentEnableDexAbstractionRequest.entries.action)({
|
|
51
|
+
type: "agentEnableDexAbstraction",
|
|
52
|
+
});
|
|
53
|
+
const expiresAfter = typeof config.defaultExpiresAfter === "number"
|
|
54
|
+
? config.defaultExpiresAfter
|
|
55
|
+
: await config.defaultExpiresAfter?.();
|
|
56
|
+
return await executeL1Action(config, { action, expiresAfter }, opts?.signal);
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=agentEnableDexAbstraction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentEnableDexAbstraction.js","sourceRoot":"","sources":["../../../../src/src/api/exchange/agentEnableDexAbstraction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAEL,eAAe,EAGf,SAAS,GACV,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;AAE7B,oDAAoD;AAEpD;;;GAGG;AACH,MAAM,CAAC,MAAM,gCAAgC,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE;IACpE,OAAO,CAAC,CAAC,IAAI,CACX,CAAC,CAAC,MAAM,CAAC;QACP,yBAAyB;QACzB,MAAM,EAAE,CAAC,CAAC,IAAI,CACZ,CAAC,CAAC,MAAM,CAAC;YACP,sBAAsB;YACtB,IAAI,EAAE,CAAC,CAAC,IAAI,CACV,CAAC,CAAC,OAAO,CAAC,2BAA2B,CAAC,EACtC,CAAC,CAAC,WAAW,CAAC,iBAAiB,CAAC,CACjC;SACF,CAAC,EACF,CAAC,CAAC,WAAW,CAAC,oBAAoB,CAAC,CACpC;QACD,2DAA2D;QAC3D,KAAK,EAAE,CAAC,CAAC,IAAI,CACX,eAAe,EACf,CAAC,CAAC,WAAW,CAAC,sDAAsD,CAAC,CACtE;QACD,+BAA+B;QAC/B,SAAS,EAAE,CAAC,CAAC,IAAI,CACf,SAAS,EACT,CAAC,CAAC,WAAW,CAAC,0BAA0B,CAAC,CAC1C;QACD,qCAAqC;QACrC,YAAY,EAAE,CAAC,CAAC,IAAI,CAClB,CAAC,CAAC,QAAQ,CAAC,eAAe,CAAC,EAC3B,CAAC,CAAC,WAAW,CAAC,gCAAgC,CAAC,CAChD;KACF,CAAC,EACF,CAAC,CAAC,WAAW,CAAC,uCAAuC,CAAC,CACvD,CAAC;AACJ,CAAC,CAAC,EAAE,CAAC;AAGL,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,CAAC;AAS3B;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAC7C,MAAsD,EACtD,IAAuC;IAEvC,MAAM,MAAM,GAAG,MAAM,CAAC,gCAAgC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;QACrE,IAAI,EAAE,2BAA2B;KAClC,CAAC,CAAC;IACH,MAAM,YAAY,GAAG,OAAO,MAAM,CAAC,mBAAmB,KAAK,QAAQ;QACjE,CAAC,CAAC,MAAM,CAAC,mBAAmB;QAC5B,CAAC,CAAC,MAAM,MAAM,CAAC,mBAAmB,EAAE,EAAE,CAAC;IACzC,OAAO,MAAM,eAAe,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAC/E,CAAC"}
|
|
@@ -1046,7 +1046,7 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1046
1046
|
readonly type: v.SchemaWithPipe<readonly [v.LiteralSchema<"usdClassTransfer", undefined>, v.DescriptionAction<"usdClassTransfer", "Type of action.">]>;
|
|
1047
1047
|
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.">]>;
|
|
1048
1048
|
readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Mainnet", undefined>, v.LiteralSchema<"Testnet", undefined>], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network.">]>;
|
|
1049
|
-
readonly amount: v.SchemaWithPipe<readonly [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>]>, v.DescriptionAction<string, "Amount to transfer (1 = 1
|
|
1049
|
+
readonly amount: v.SchemaWithPipe<readonly [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>]>, v.DescriptionAction<string, "Amount to transfer (1 = $1).">]>;
|
|
1050
1050
|
readonly toPerp: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "`true` for Spot to Perp, `false` for Perp to Spot.">]>;
|
|
1051
1051
|
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).">]>;
|
|
1052
1052
|
}, undefined>, v.DescriptionAction<{
|
|
@@ -1061,7 +1061,7 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1061
1061
|
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.">]>;
|
|
1062
1062
|
readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Mainnet", undefined>, v.LiteralSchema<"Testnet", undefined>], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network.">]>;
|
|
1063
1063
|
readonly destination: 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}`, "Destination address.">]>;
|
|
1064
|
-
readonly amount: v.SchemaWithPipe<readonly [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>]>, v.DescriptionAction<string, "Amount to send (1 = 1
|
|
1064
|
+
readonly amount: v.SchemaWithPipe<readonly [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>]>, v.DescriptionAction<string, "Amount to send (1 = $1).">]>;
|
|
1065
1065
|
readonly time: 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).">]>;
|
|
1066
1066
|
}, undefined>, v.DescriptionAction<{
|
|
1067
1067
|
type: "usdSend";
|
|
@@ -1103,7 +1103,7 @@ export declare const MultiSigRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<
|
|
|
1103
1103
|
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.">]>;
|
|
1104
1104
|
readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Mainnet", undefined>, v.LiteralSchema<"Testnet", undefined>], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network.">]>;
|
|
1105
1105
|
readonly destination: 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}`, "Destination address.">]>;
|
|
1106
|
-
readonly amount: v.SchemaWithPipe<readonly [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>]>, v.DescriptionAction<string, "Amount to withdraw (1 = 1
|
|
1106
|
+
readonly amount: v.SchemaWithPipe<readonly [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>]>, v.DescriptionAction<string, "Amount to withdraw (1 = $1).">]>;
|
|
1107
1107
|
readonly time: 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).">]>;
|
|
1108
1108
|
}, undefined>, v.DescriptionAction<{
|
|
1109
1109
|
type: "withdraw3";
|
|
@@ -14,8 +14,8 @@ export declare const UsdClassTransferRequest: v.SchemaWithPipe<readonly [v.Objec
|
|
|
14
14
|
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.">]>;
|
|
15
15
|
/** HyperLiquid network. */
|
|
16
16
|
readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Mainnet", undefined>, v.LiteralSchema<"Testnet", undefined>], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network.">]>;
|
|
17
|
-
/** Amount to transfer (1 = 1
|
|
18
|
-
readonly amount: v.SchemaWithPipe<readonly [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>]>, v.DescriptionAction<string, "Amount to transfer (1 = 1
|
|
17
|
+
/** Amount to transfer (1 = $1). */
|
|
18
|
+
readonly amount: v.SchemaWithPipe<readonly [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>]>, v.DescriptionAction<string, "Amount to transfer (1 = $1).">]>;
|
|
19
19
|
/** `true` for Spot to Perp, `false` for Perp to Spot. */
|
|
20
20
|
readonly toPerp: v.SchemaWithPipe<readonly [v.BooleanSchema<undefined>, v.DescriptionAction<boolean, "`true` for Spot to Perp, `false` for Perp to Spot.">]>;
|
|
21
21
|
/** Unique request identifier (current timestamp in ms). */
|
|
@@ -16,8 +16,8 @@ export const UsdClassTransferRequest = /* @__PURE__ */ (() => {
|
|
|
16
16
|
signatureChainId: v.pipe(Hex, v.description("Chain ID used for signing.")),
|
|
17
17
|
/** HyperLiquid network. */
|
|
18
18
|
hyperliquidChain: v.pipe(v.union([v.literal("Mainnet"), v.literal("Testnet")]), v.description("HyperLiquid network.")),
|
|
19
|
-
/** Amount to transfer (1 = 1
|
|
20
|
-
amount: v.pipe(UnsignedDecimal, v.description("Amount to transfer (1 = 1
|
|
19
|
+
/** Amount to transfer (1 = $1). */
|
|
20
|
+
amount: v.pipe(UnsignedDecimal, v.description("Amount to transfer (1 = $1).")),
|
|
21
21
|
/** `true` for Spot to Perp, `false` for Perp to Spot. */
|
|
22
22
|
toPerp: v.pipe(v.boolean(), v.description("`true` for Spot to Perp, `false` for Perp to Spot.")),
|
|
23
23
|
/** Unique request identifier (current timestamp in ms). */
|
|
@@ -16,8 +16,8 @@ export declare const UsdSendRequest: v.SchemaWithPipe<readonly [v.ObjectSchema<{
|
|
|
16
16
|
readonly hyperliquidChain: v.SchemaWithPipe<readonly [v.UnionSchema<[v.LiteralSchema<"Mainnet", undefined>, v.LiteralSchema<"Testnet", undefined>], undefined>, v.DescriptionAction<"Testnet" | "Mainnet", "HyperLiquid network.">]>;
|
|
17
17
|
/** Destination address. */
|
|
18
18
|
readonly destination: 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}`, "Destination address.">]>;
|
|
19
|
-
/** Amount to send (1 = 1
|
|
20
|
-
readonly amount: v.SchemaWithPipe<readonly [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>]>, v.DescriptionAction<string, "Amount to send (1 = 1
|
|
19
|
+
/** Amount to send (1 = $1). */
|
|
20
|
+
readonly amount: v.SchemaWithPipe<readonly [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>]>, v.DescriptionAction<string, "Amount to send (1 = $1).">]>;
|
|
21
21
|
/** Unique request identifier (current timestamp in ms). */
|
|
22
22
|
readonly time: 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).">]>;
|
|
23
23
|
}, undefined>, v.DescriptionAction<{
|