@nktkas/hyperliquid 0.21.1 → 0.22.1
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 +19 -34
- package/README.md +212 -87
- package/esm/mod.d.ts +4 -3
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +3 -2
- package/esm/src/clients/exchange.d.ts +102 -59
- package/esm/src/clients/exchange.d.ts.map +1 -1
- package/esm/src/clients/exchange.js +234 -517
- package/esm/src/clients/info.d.ts +55 -55
- package/esm/src/clients/info.d.ts.map +1 -1
- package/esm/src/clients/info.js +57 -54
- package/esm/src/clients/multiSign.d.ts +1299 -0
- package/esm/src/clients/multiSign.d.ts.map +1 -0
- package/esm/src/clients/multiSign.js +2158 -0
- package/esm/src/clients/subscription.d.ts +19 -19
- package/esm/src/clients/subscription.d.ts.map +1 -1
- package/esm/src/clients/subscription.js +17 -17
- package/esm/src/signing.d.ts +164 -40
- package/esm/src/signing.d.ts.map +1 -1
- package/esm/src/signing.js +710 -9
- package/esm/src/types/exchange/requests.d.ts +241 -246
- package/esm/src/types/exchange/requests.d.ts.map +1 -1
- package/package.json +2 -1
- package/script/mod.d.ts +4 -3
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +4 -3
- package/script/src/clients/exchange.d.ts +102 -59
- package/script/src/clients/exchange.d.ts.map +1 -1
- package/script/src/clients/exchange.js +233 -516
- package/script/src/clients/info.d.ts +55 -55
- package/script/src/clients/info.d.ts.map +1 -1
- package/script/src/clients/info.js +57 -54
- package/script/src/clients/multiSign.d.ts +1299 -0
- package/script/src/clients/multiSign.d.ts.map +1 -0
- package/script/src/clients/multiSign.js +2172 -0
- package/script/src/clients/subscription.d.ts +19 -19
- package/script/src/clients/subscription.d.ts.map +1 -1
- package/script/src/clients/subscription.js +17 -17
- package/script/src/signing.d.ts +164 -40
- package/script/src/signing.d.ts.map +1 -1
- package/script/src/signing.js +711 -10
- package/script/src/types/exchange/requests.d.ts +241 -246
- package/script/src/types/exchange/requests.d.ts.map +1 -1
package/esm/src/clients/info.js
CHANGED
|
@@ -42,15 +42,16 @@ export class InfoClient {
|
|
|
42
42
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
43
43
|
* const infoClient = new hl.InfoClient({ transport });
|
|
44
44
|
*
|
|
45
|
-
* const
|
|
45
|
+
* const data = await infoClient.blockDetails({ height: 123 });
|
|
46
46
|
* ```
|
|
47
47
|
*/
|
|
48
|
-
blockDetails(args, signal) {
|
|
48
|
+
async blockDetails(args, signal) {
|
|
49
49
|
const request = {
|
|
50
50
|
type: "blockDetails",
|
|
51
51
|
...args,
|
|
52
52
|
};
|
|
53
|
-
|
|
53
|
+
const { blockDetails } = await this.transport.request("explorer", request, signal);
|
|
54
|
+
return blockDetails;
|
|
54
55
|
}
|
|
55
56
|
/**
|
|
56
57
|
* Request candlestick snapshots.
|
|
@@ -66,7 +67,7 @@ export class InfoClient {
|
|
|
66
67
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
67
68
|
* const infoClient = new hl.InfoClient({ transport });
|
|
68
69
|
*
|
|
69
|
-
* const
|
|
70
|
+
* const data = await infoClient.candleSnapshot({
|
|
70
71
|
* coin: "ETH",
|
|
71
72
|
* interval: "1h",
|
|
72
73
|
* startTime: Date.now() - 1000 * 60 * 60 * 24
|
|
@@ -94,7 +95,7 @@ export class InfoClient {
|
|
|
94
95
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
95
96
|
* const infoClient = new hl.InfoClient({ transport });
|
|
96
97
|
*
|
|
97
|
-
* const
|
|
98
|
+
* const data = await infoClient.clearinghouseState({ user: "0x..." });
|
|
98
99
|
* ```
|
|
99
100
|
*/
|
|
100
101
|
clearinghouseState(args, signal) {
|
|
@@ -118,7 +119,7 @@ export class InfoClient {
|
|
|
118
119
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
119
120
|
* const infoClient = new hl.InfoClient({ transport });
|
|
120
121
|
*
|
|
121
|
-
* const
|
|
122
|
+
* const data = await infoClient.delegations({ user: "0x..." });
|
|
122
123
|
* ```
|
|
123
124
|
*/
|
|
124
125
|
delegations(args, signal) {
|
|
@@ -142,7 +143,7 @@ export class InfoClient {
|
|
|
142
143
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
143
144
|
* const infoClient = new hl.InfoClient({ transport });
|
|
144
145
|
*
|
|
145
|
-
* const
|
|
146
|
+
* const data = await infoClient.delegatorHistory({ user: "0x..." });
|
|
146
147
|
* ```
|
|
147
148
|
*/
|
|
148
149
|
delegatorHistory(args, signal) {
|
|
@@ -166,7 +167,7 @@ export class InfoClient {
|
|
|
166
167
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
167
168
|
* const infoClient = new hl.InfoClient({ transport });
|
|
168
169
|
*
|
|
169
|
-
* const
|
|
170
|
+
* const data = await infoClient.delegatorRewards({ user: "0x..." });
|
|
170
171
|
* ```
|
|
171
172
|
*/
|
|
172
173
|
delegatorRewards(args, signal) {
|
|
@@ -190,7 +191,7 @@ export class InfoClient {
|
|
|
190
191
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
191
192
|
* const infoClient = new hl.InfoClient({ transport });
|
|
192
193
|
*
|
|
193
|
-
* const
|
|
194
|
+
* const data = await infoClient.delegatorSummary({ user: "0x..." });
|
|
194
195
|
* ```
|
|
195
196
|
*/
|
|
196
197
|
delegatorSummary(args, signal) {
|
|
@@ -214,7 +215,7 @@ export class InfoClient {
|
|
|
214
215
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
215
216
|
* const infoClient = new hl.InfoClient({ transport });
|
|
216
217
|
*
|
|
217
|
-
* const
|
|
218
|
+
* const data = await infoClient.extraAgents({ user: "0x..." });
|
|
218
219
|
* ```
|
|
219
220
|
*/
|
|
220
221
|
extraAgents(args, signal) {
|
|
@@ -238,7 +239,7 @@ export class InfoClient {
|
|
|
238
239
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
239
240
|
* const infoClient = new hl.InfoClient({ transport });
|
|
240
241
|
*
|
|
241
|
-
* const
|
|
242
|
+
* const data = await infoClient.frontendOpenOrders({ user: "0x..." });
|
|
242
243
|
* ```
|
|
243
244
|
*/
|
|
244
245
|
frontendOpenOrders(args, signal) {
|
|
@@ -262,7 +263,7 @@ export class InfoClient {
|
|
|
262
263
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
263
264
|
* const infoClient = new hl.InfoClient({ transport });
|
|
264
265
|
*
|
|
265
|
-
* const
|
|
266
|
+
* const data = await infoClient.fundingHistory({
|
|
266
267
|
* coin: "ETH",
|
|
267
268
|
* startTime: Date.now() - 1000 * 60 * 60 * 24
|
|
268
269
|
* });
|
|
@@ -289,7 +290,7 @@ export class InfoClient {
|
|
|
289
290
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
290
291
|
* const infoClient = new hl.InfoClient({ transport });
|
|
291
292
|
*
|
|
292
|
-
* const
|
|
293
|
+
* const data = await infoClient.historicalOrders({ user: "0x..." });
|
|
293
294
|
* ```
|
|
294
295
|
*/
|
|
295
296
|
historicalOrders(args, signal) {
|
|
@@ -313,7 +314,7 @@ export class InfoClient {
|
|
|
313
314
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
314
315
|
* const infoClient = new hl.InfoClient({ transport });
|
|
315
316
|
*
|
|
316
|
-
* const
|
|
317
|
+
* const data = await infoClient.isVip({ user: "0x..." });
|
|
317
318
|
* ```
|
|
318
319
|
*/
|
|
319
320
|
isVip(args, signal) {
|
|
@@ -337,7 +338,7 @@ export class InfoClient {
|
|
|
337
338
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
338
339
|
* const infoClient = new hl.InfoClient({ transport });
|
|
339
340
|
*
|
|
340
|
-
* const
|
|
341
|
+
* const data = await infoClient.l2Book({ coin: "ETH", nSigFigs: 2 });
|
|
341
342
|
* ```
|
|
342
343
|
*/
|
|
343
344
|
l2Book(args, signal) {
|
|
@@ -361,7 +362,7 @@ export class InfoClient {
|
|
|
361
362
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
362
363
|
* const infoClient = new hl.InfoClient({ transport });
|
|
363
364
|
*
|
|
364
|
-
* const
|
|
365
|
+
* const data = await infoClient.legalCheck({ user: "0x..." });
|
|
365
366
|
* ```
|
|
366
367
|
*/
|
|
367
368
|
legalCheck(args, signal) {
|
|
@@ -385,7 +386,7 @@ export class InfoClient {
|
|
|
385
386
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
386
387
|
* const infoClient = new hl.InfoClient({ transport });
|
|
387
388
|
*
|
|
388
|
-
* const
|
|
389
|
+
* const data = await infoClient.maxBuilderFee({ user: "0x...", builder: "0x..." });
|
|
389
390
|
* ```
|
|
390
391
|
*/
|
|
391
392
|
maxBuilderFee(args, signal) {
|
|
@@ -417,7 +418,7 @@ export class InfoClient {
|
|
|
417
418
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
418
419
|
* const infoClient = new hl.InfoClient({ transport });
|
|
419
420
|
*
|
|
420
|
-
* const
|
|
421
|
+
* const data = await infoClient.metaAndAssetCtxs();
|
|
421
422
|
* ```
|
|
422
423
|
*/
|
|
423
424
|
metaAndAssetCtxs(signal) {
|
|
@@ -440,7 +441,7 @@ export class InfoClient {
|
|
|
440
441
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
441
442
|
* const infoClient = new hl.InfoClient({ transport });
|
|
442
443
|
*
|
|
443
|
-
* const
|
|
444
|
+
* const data = await infoClient.openOrders({ user: "0x..." });
|
|
444
445
|
* ```
|
|
445
446
|
*/
|
|
446
447
|
openOrders(args, signal) {
|
|
@@ -464,7 +465,7 @@ export class InfoClient {
|
|
|
464
465
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
465
466
|
* const infoClient = new hl.InfoClient({ transport });
|
|
466
467
|
*
|
|
467
|
-
* const
|
|
468
|
+
* const data = await infoClient.orderStatus({ user: "0x...", oid: 12345 });
|
|
468
469
|
* ```
|
|
469
470
|
*/
|
|
470
471
|
orderStatus(args, signal) {
|
|
@@ -487,7 +488,7 @@ export class InfoClient {
|
|
|
487
488
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
488
489
|
* const infoClient = new hl.InfoClient({ transport });
|
|
489
490
|
*
|
|
490
|
-
* const
|
|
491
|
+
* const data = await infoClient.perpDeployAuctionStatus();
|
|
491
492
|
* ```
|
|
492
493
|
*/
|
|
493
494
|
perpDeployAuctionStatus(signal) {
|
|
@@ -509,7 +510,7 @@ export class InfoClient {
|
|
|
509
510
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
510
511
|
* const infoClient = new hl.InfoClient({ transport });
|
|
511
512
|
*
|
|
512
|
-
* const
|
|
513
|
+
* const data = await infoClient.perpDexs();
|
|
513
514
|
* ```
|
|
514
515
|
*/
|
|
515
516
|
perpDexs(signal) {
|
|
@@ -532,7 +533,7 @@ export class InfoClient {
|
|
|
532
533
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
533
534
|
* const infoClient = new hl.InfoClient({ transport });
|
|
534
535
|
*
|
|
535
|
-
* const
|
|
536
|
+
* const data = await infoClient.perpsAtOpenInterestCap();
|
|
536
537
|
* ```
|
|
537
538
|
*/
|
|
538
539
|
perpsAtOpenInterestCap(signal) {
|
|
@@ -555,7 +556,7 @@ export class InfoClient {
|
|
|
555
556
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
556
557
|
* const infoClient = new hl.InfoClient({ transport });
|
|
557
558
|
*
|
|
558
|
-
* const
|
|
559
|
+
* const data = await infoClient.portfolio({ user: "0x..." });
|
|
559
560
|
* ```
|
|
560
561
|
*/
|
|
561
562
|
portfolio(args, signal) {
|
|
@@ -578,7 +579,7 @@ export class InfoClient {
|
|
|
578
579
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
579
580
|
* const infoClient = new hl.InfoClient({ transport });
|
|
580
581
|
*
|
|
581
|
-
* const
|
|
582
|
+
* const data = await infoClient.predictedFundings();
|
|
582
583
|
* ```
|
|
583
584
|
*/
|
|
584
585
|
predictedFundings(signal) {
|
|
@@ -601,7 +602,7 @@ export class InfoClient {
|
|
|
601
602
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
602
603
|
* const infoClient = new hl.InfoClient({ transport });
|
|
603
604
|
*
|
|
604
|
-
* const
|
|
605
|
+
* const data = await infoClient.preTransferCheck({ user: "0x...", source: "0x..." });
|
|
605
606
|
* ```
|
|
606
607
|
*/
|
|
607
608
|
preTransferCheck(args, signal) {
|
|
@@ -625,7 +626,7 @@ export class InfoClient {
|
|
|
625
626
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
626
627
|
* const infoClient = new hl.InfoClient({ transport });
|
|
627
628
|
*
|
|
628
|
-
* const
|
|
629
|
+
* const data = await infoClient.referral({ user: "0x..." });
|
|
629
630
|
* ```
|
|
630
631
|
*/
|
|
631
632
|
referral(args, signal) {
|
|
@@ -649,7 +650,7 @@ export class InfoClient {
|
|
|
649
650
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
650
651
|
* const infoClient = new hl.InfoClient({ transport });
|
|
651
652
|
*
|
|
652
|
-
* const
|
|
653
|
+
* const data = await infoClient.spotClearinghouseState({ user: "0x..." });
|
|
653
654
|
* ```
|
|
654
655
|
*/
|
|
655
656
|
spotClearinghouseState(args, signal) {
|
|
@@ -673,7 +674,7 @@ export class InfoClient {
|
|
|
673
674
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
674
675
|
* const infoClient = new hl.InfoClient({ transport });
|
|
675
676
|
*
|
|
676
|
-
* const
|
|
677
|
+
* const data = await infoClient.spotDeployState({ user: "0x..." });
|
|
677
678
|
* ```
|
|
678
679
|
*/
|
|
679
680
|
spotDeployState(args, signal) {
|
|
@@ -696,7 +697,7 @@ export class InfoClient {
|
|
|
696
697
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
697
698
|
* const infoClient = new hl.InfoClient({ transport });
|
|
698
699
|
*
|
|
699
|
-
* const
|
|
700
|
+
* const data = await infoClient.spotMeta();
|
|
700
701
|
* ```
|
|
701
702
|
*/
|
|
702
703
|
spotMeta(signal) {
|
|
@@ -718,7 +719,7 @@ export class InfoClient {
|
|
|
718
719
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
719
720
|
* const infoClient = new hl.InfoClient({ transport });
|
|
720
721
|
*
|
|
721
|
-
* const
|
|
722
|
+
* const data = await infoClient.spotMetaAndAssetCtxs();
|
|
722
723
|
* ```
|
|
723
724
|
*/
|
|
724
725
|
spotMetaAndAssetCtxs(signal) {
|
|
@@ -741,7 +742,7 @@ export class InfoClient {
|
|
|
741
742
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
742
743
|
* const infoClient = new hl.InfoClient({ transport });
|
|
743
744
|
*
|
|
744
|
-
* const
|
|
745
|
+
* const data = await infoClient.subAccounts({ user: "0x..." });
|
|
745
746
|
* ```
|
|
746
747
|
*/
|
|
747
748
|
subAccounts(args, signal) {
|
|
@@ -765,7 +766,7 @@ export class InfoClient {
|
|
|
765
766
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
766
767
|
* const infoClient = new hl.InfoClient({ transport });
|
|
767
768
|
*
|
|
768
|
-
* const
|
|
769
|
+
* const data = await infoClient.tokenDetails({ tokenId: "0x..." });
|
|
769
770
|
* ```
|
|
770
771
|
*/
|
|
771
772
|
tokenDetails(args, signal) {
|
|
@@ -789,7 +790,7 @@ export class InfoClient {
|
|
|
789
790
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
790
791
|
* const infoClient = new hl.InfoClient({ transport });
|
|
791
792
|
*
|
|
792
|
-
* const
|
|
793
|
+
* const data = await infoClient.twapHistory({ user: "0x..." });
|
|
793
794
|
* ```
|
|
794
795
|
*/
|
|
795
796
|
twapHistory(args, signal) {
|
|
@@ -813,15 +814,16 @@ export class InfoClient {
|
|
|
813
814
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
814
815
|
* const infoClient = new hl.InfoClient({ transport });
|
|
815
816
|
*
|
|
816
|
-
* const
|
|
817
|
+
* const data = await infoClient.txDetails({ hash: "0x..." });
|
|
817
818
|
* ```
|
|
818
819
|
*/
|
|
819
|
-
txDetails(args, signal) {
|
|
820
|
+
async txDetails(args, signal) {
|
|
820
821
|
const request = {
|
|
821
822
|
type: "txDetails",
|
|
822
823
|
...args,
|
|
823
824
|
};
|
|
824
|
-
|
|
825
|
+
const { tx } = await this.transport.request("explorer", request, signal);
|
|
826
|
+
return tx;
|
|
825
827
|
}
|
|
826
828
|
/**
|
|
827
829
|
* User details by user's address.
|
|
@@ -837,15 +839,16 @@ export class InfoClient {
|
|
|
837
839
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
838
840
|
* const infoClient = new hl.InfoClient({ transport });
|
|
839
841
|
*
|
|
840
|
-
* const
|
|
842
|
+
* const data = await infoClient.userDetails({ user: "0x..." });
|
|
841
843
|
* ```
|
|
842
844
|
*/
|
|
843
|
-
userDetails(args, signal) {
|
|
845
|
+
async userDetails(args, signal) {
|
|
844
846
|
const request = {
|
|
845
847
|
type: "userDetails",
|
|
846
848
|
...args,
|
|
847
849
|
};
|
|
848
|
-
|
|
850
|
+
const { txs } = await this.transport.request("explorer", request, signal);
|
|
851
|
+
return txs;
|
|
849
852
|
}
|
|
850
853
|
/**
|
|
851
854
|
* Request user fees.
|
|
@@ -861,7 +864,7 @@ export class InfoClient {
|
|
|
861
864
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
862
865
|
* const infoClient = new hl.InfoClient({ transport });
|
|
863
866
|
*
|
|
864
|
-
* const
|
|
867
|
+
* const data = await infoClient.userFees({ user: "0x..." });
|
|
865
868
|
* ```
|
|
866
869
|
*/
|
|
867
870
|
userFees(args, signal) {
|
|
@@ -885,7 +888,7 @@ export class InfoClient {
|
|
|
885
888
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
886
889
|
* const infoClient = new hl.InfoClient({ transport });
|
|
887
890
|
*
|
|
888
|
-
* const
|
|
891
|
+
* const data = await infoClient.userFills({ user: "0x..." });
|
|
889
892
|
* ```
|
|
890
893
|
*/
|
|
891
894
|
userFills(args, signal) {
|
|
@@ -909,7 +912,7 @@ export class InfoClient {
|
|
|
909
912
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
910
913
|
* const infoClient = new hl.InfoClient({ transport });
|
|
911
914
|
*
|
|
912
|
-
* const
|
|
915
|
+
* const data = await infoClient.userFillsByTime({
|
|
913
916
|
* user: "0x...",
|
|
914
917
|
* startTime: Date.now() - 1000 * 60 * 60 * 24
|
|
915
918
|
* });
|
|
@@ -936,7 +939,7 @@ export class InfoClient {
|
|
|
936
939
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
937
940
|
* const infoClient = new hl.InfoClient({ transport });
|
|
938
941
|
*
|
|
939
|
-
* const
|
|
942
|
+
* const data = await infoClient.userFunding({
|
|
940
943
|
* user: "0x...",
|
|
941
944
|
* startTime: Date.now() - 1000 * 60 * 60 * 24
|
|
942
945
|
* });
|
|
@@ -963,7 +966,7 @@ export class InfoClient {
|
|
|
963
966
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
964
967
|
* const infoClient = new hl.InfoClient({ transport });
|
|
965
968
|
*
|
|
966
|
-
* const
|
|
969
|
+
* const data = await infoClient.userNonFundingLedgerUpdates({
|
|
967
970
|
* user: "0x...",
|
|
968
971
|
* startTime: Date.now() - 1000 * 60 * 60 * 24
|
|
969
972
|
* });
|
|
@@ -990,7 +993,7 @@ export class InfoClient {
|
|
|
990
993
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
991
994
|
* const infoClient = new hl.InfoClient({ transport });
|
|
992
995
|
*
|
|
993
|
-
* const
|
|
996
|
+
* const data = await infoClient.userRateLimit({ user: "0x..." });
|
|
994
997
|
* ```
|
|
995
998
|
*/
|
|
996
999
|
userRateLimit(args, signal) {
|
|
@@ -1014,7 +1017,7 @@ export class InfoClient {
|
|
|
1014
1017
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1015
1018
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1016
1019
|
*
|
|
1017
|
-
* const
|
|
1020
|
+
* const data = await infoClient.userRole({ user: "0x..." });
|
|
1018
1021
|
* ```
|
|
1019
1022
|
*/
|
|
1020
1023
|
userRole(args, signal) {
|
|
@@ -1038,7 +1041,7 @@ export class InfoClient {
|
|
|
1038
1041
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1039
1042
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1040
1043
|
*
|
|
1041
|
-
* const
|
|
1044
|
+
* const data = await infoClient.userToMultiSigSigners({ user: "0x..." });
|
|
1042
1045
|
* ```
|
|
1043
1046
|
*/
|
|
1044
1047
|
userToMultiSigSigners(args, signal) {
|
|
@@ -1062,7 +1065,7 @@ export class InfoClient {
|
|
|
1062
1065
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1063
1066
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1064
1067
|
*
|
|
1065
|
-
* const
|
|
1068
|
+
* const data = await infoClient.userTwapSliceFills({ user: "0x..." });
|
|
1066
1069
|
* ```
|
|
1067
1070
|
*/
|
|
1068
1071
|
userTwapSliceFills(args, signal) {
|
|
@@ -1086,7 +1089,7 @@ export class InfoClient {
|
|
|
1086
1089
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1087
1090
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1088
1091
|
*
|
|
1089
|
-
* const
|
|
1092
|
+
* const data = await infoClient.userTwapSliceFillsByTime({
|
|
1090
1093
|
* user: "0x...",
|
|
1091
1094
|
* startTime: Date.now() - 1000 * 60 * 60 * 24
|
|
1092
1095
|
* });
|
|
@@ -1113,7 +1116,7 @@ export class InfoClient {
|
|
|
1113
1116
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1114
1117
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1115
1118
|
*
|
|
1116
|
-
* const
|
|
1119
|
+
* const data = await infoClient.userVaultDeposits({ user: "0x..." });
|
|
1117
1120
|
* ```
|
|
1118
1121
|
*/
|
|
1119
1122
|
userVaultEquities(args, signal) {
|
|
@@ -1136,7 +1139,7 @@ export class InfoClient {
|
|
|
1136
1139
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1137
1140
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1138
1141
|
*
|
|
1139
|
-
* const
|
|
1142
|
+
* const data = await infoClient.validatorSummaries();
|
|
1140
1143
|
* ```
|
|
1141
1144
|
*/
|
|
1142
1145
|
validatorSummaries(signal) {
|
|
@@ -1159,7 +1162,7 @@ export class InfoClient {
|
|
|
1159
1162
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1160
1163
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1161
1164
|
*
|
|
1162
|
-
* const
|
|
1165
|
+
* const data = await infoClient.vaultDetails({ vaultAddress: "0x..." });
|
|
1163
1166
|
* ```
|
|
1164
1167
|
*/
|
|
1165
1168
|
vaultDetails(args, signal) {
|
|
@@ -1183,7 +1186,7 @@ export class InfoClient {
|
|
|
1183
1186
|
* const transport = new hl.HttpTransport(); // or WebSocketTransport
|
|
1184
1187
|
* const infoClient = new hl.InfoClient({ transport });
|
|
1185
1188
|
*
|
|
1186
|
-
* const
|
|
1189
|
+
* const data = await infoClient.vaultSummaries();
|
|
1187
1190
|
* ```
|
|
1188
1191
|
*/
|
|
1189
1192
|
vaultSummaries(signal) {
|