@nktkas/hyperliquid 0.24.2 → 0.25.0-beta.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/README.md +197 -117
- package/esm/mod.d.ts +11 -11
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -1
- package/esm/src/clients/exchange.d.ts +29 -18
- package/esm/src/clients/exchange.d.ts.map +1 -1
- package/esm/src/clients/exchange.js +50 -48
- package/esm/src/clients/info.d.ts +79 -75
- package/esm/src/clients/info.d.ts.map +1 -1
- package/esm/src/clients/info.js +294 -163
- package/esm/src/clients/multiSign.d.ts +11 -7
- package/esm/src/clients/multiSign.d.ts.map +1 -1
- package/esm/src/clients/subscription.d.ts +105 -32
- package/esm/src/clients/subscription.d.ts.map +1 -1
- package/esm/src/clients/subscription.js +114 -33
- package/esm/src/{base.d.ts → errors.d.ts} +1 -1
- package/esm/src/errors.d.ts.map +1 -0
- package/esm/src/schemas/_base.d.ts +10 -0
- package/esm/src/schemas/_base.d.ts.map +1 -0
- package/esm/src/schemas/_base.js +12 -0
- package/esm/src/schemas/exchange/requests.d.ts +8953 -0
- package/esm/src/schemas/exchange/requests.d.ts.map +1 -0
- package/esm/src/schemas/exchange/requests.js +1413 -0
- package/esm/src/schemas/exchange/responses.d.ts +567 -0
- package/esm/src/schemas/exchange/responses.d.ts.map +1 -0
- package/esm/src/schemas/exchange/responses.js +243 -0
- package/esm/src/schemas/explorer/requests.d.ts +44 -0
- package/esm/src/schemas/explorer/requests.d.ts.map +1 -0
- package/esm/src/schemas/explorer/requests.js +32 -0
- package/esm/src/schemas/explorer/responses.d.ts +360 -0
- package/esm/src/schemas/explorer/responses.d.ts.map +1 -0
- package/esm/src/schemas/explorer/responses.js +56 -0
- package/esm/src/schemas/info/accounts.d.ts +2159 -0
- package/esm/src/schemas/info/accounts.d.ts.map +1 -0
- package/esm/src/schemas/info/accounts.js +622 -0
- package/esm/src/schemas/info/assets.d.ts +945 -0
- package/esm/src/schemas/info/assets.d.ts.map +1 -0
- package/esm/src/schemas/info/assets.js +265 -0
- package/esm/src/schemas/info/markets.d.ts +138 -0
- package/esm/src/schemas/info/markets.d.ts.map +1 -0
- package/esm/src/schemas/info/markets.js +58 -0
- package/esm/src/schemas/info/orders.d.ts +957 -0
- package/esm/src/schemas/info/orders.d.ts.map +1 -0
- package/esm/src/schemas/info/orders.js +297 -0
- package/esm/src/schemas/info/requests.d.ts +882 -0
- package/esm/src/schemas/info/requests.d.ts.map +1 -0
- package/esm/src/schemas/info/requests.js +655 -0
- package/esm/src/schemas/info/validators.d.ts +305 -0
- package/esm/src/schemas/info/validators.d.ts.map +1 -0
- package/esm/src/schemas/info/validators.js +112 -0
- package/esm/src/schemas/info/vaults.d.ts +447 -0
- package/esm/src/schemas/info/vaults.d.ts.map +1 -0
- package/esm/src/schemas/info/vaults.js +110 -0
- package/esm/src/schemas/mod.d.ts +100 -0
- package/esm/src/schemas/mod.d.ts.map +1 -0
- package/esm/src/schemas/mod.js +113 -0
- package/esm/src/schemas/subscriptions/requests.d.ts +332 -0
- package/esm/src/schemas/subscriptions/requests.d.ts.map +1 -0
- package/esm/src/schemas/subscriptions/requests.js +258 -0
- package/esm/src/schemas/subscriptions/responses.d.ts +3643 -0
- package/esm/src/schemas/subscriptions/responses.d.ts.map +1 -0
- package/esm/src/schemas/subscriptions/responses.js +233 -0
- package/esm/src/signing/mod.d.ts +109 -29
- package/esm/src/signing/mod.d.ts.map +1 -1
- package/esm/src/signing/mod.js +135 -29
- package/esm/src/transports/base.d.ts +2 -2
- package/esm/src/transports/base.d.ts.map +1 -1
- package/esm/src/transports/base.js +2 -2
- package/esm/src/transports/http/http_transport.d.ts +2 -1
- package/esm/src/transports/http/http_transport.d.ts.map +1 -1
- package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts +1 -1
- package/esm/src/transports/websocket/_hyperliquid_event_target.d.ts.map +1 -1
- package/esm/src/transports/websocket/websocket_transport.d.ts +2 -1
- package/esm/src/transports/websocket/websocket_transport.d.ts.map +1 -1
- package/package.json +6 -5
- package/script/mod.d.ts +11 -11
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +1 -1
- package/script/src/clients/exchange.d.ts +29 -18
- package/script/src/clients/exchange.d.ts.map +1 -1
- package/script/src/clients/exchange.js +56 -54
- package/script/src/clients/info.d.ts +79 -75
- package/script/src/clients/info.d.ts.map +1 -1
- package/script/src/clients/info.js +294 -163
- package/script/src/clients/multiSign.d.ts +11 -7
- package/script/src/clients/multiSign.d.ts.map +1 -1
- package/script/src/clients/subscription.d.ts +105 -32
- package/script/src/clients/subscription.d.ts.map +1 -1
- package/script/src/clients/subscription.js +114 -33
- package/script/src/{base.d.ts → errors.d.ts} +1 -1
- package/script/src/errors.d.ts.map +1 -0
- package/script/src/schemas/_base.d.ts +10 -0
- package/script/src/schemas/_base.d.ts.map +1 -0
- package/script/src/schemas/_base.js +48 -0
- package/script/src/schemas/exchange/requests.d.ts +8953 -0
- package/script/src/schemas/exchange/requests.d.ts.map +1 -0
- package/script/src/schemas/exchange/requests.js +1449 -0
- package/script/src/schemas/exchange/responses.d.ts +567 -0
- package/script/src/schemas/exchange/responses.d.ts.map +1 -0
- package/script/src/schemas/exchange/responses.js +279 -0
- package/script/src/schemas/explorer/requests.d.ts +44 -0
- package/script/src/schemas/explorer/requests.d.ts.map +1 -0
- package/script/src/schemas/explorer/requests.js +68 -0
- package/script/src/schemas/explorer/responses.d.ts +360 -0
- package/script/src/schemas/explorer/responses.d.ts.map +1 -0
- package/script/src/schemas/explorer/responses.js +92 -0
- package/script/src/schemas/info/accounts.d.ts +2159 -0
- package/script/src/schemas/info/accounts.d.ts.map +1 -0
- package/script/src/schemas/info/accounts.js +658 -0
- package/script/src/schemas/info/assets.d.ts +945 -0
- package/script/src/schemas/info/assets.d.ts.map +1 -0
- package/script/src/schemas/info/assets.js +301 -0
- package/script/src/schemas/info/markets.d.ts +138 -0
- package/script/src/schemas/info/markets.d.ts.map +1 -0
- package/script/src/schemas/info/markets.js +94 -0
- package/script/src/schemas/info/orders.d.ts +957 -0
- package/script/src/schemas/info/orders.d.ts.map +1 -0
- package/script/src/schemas/info/orders.js +333 -0
- package/script/src/schemas/info/requests.d.ts +882 -0
- package/script/src/schemas/info/requests.d.ts.map +1 -0
- package/script/src/schemas/info/requests.js +692 -0
- package/script/src/schemas/info/validators.d.ts +305 -0
- package/script/src/schemas/info/validators.d.ts.map +1 -0
- package/script/src/schemas/info/validators.js +148 -0
- package/script/src/schemas/info/vaults.d.ts +447 -0
- package/script/src/schemas/info/vaults.d.ts.map +1 -0
- package/script/src/schemas/info/vaults.js +146 -0
- package/script/src/schemas/mod.d.ts +100 -0
- package/script/src/schemas/mod.d.ts.map +1 -0
- package/script/src/schemas/mod.js +154 -0
- package/script/src/schemas/subscriptions/requests.d.ts +332 -0
- package/script/src/schemas/subscriptions/requests.d.ts.map +1 -0
- package/script/src/schemas/subscriptions/requests.js +294 -0
- package/script/src/schemas/subscriptions/responses.d.ts +3643 -0
- package/script/src/schemas/subscriptions/responses.d.ts.map +1 -0
- package/script/src/schemas/subscriptions/responses.js +269 -0
- package/script/src/signing/mod.d.ts +109 -29
- package/script/src/signing/mod.d.ts.map +1 -1
- package/script/src/signing/mod.js +137 -33
- package/script/src/transports/base.d.ts +2 -2
- package/script/src/transports/base.d.ts.map +1 -1
- package/script/src/transports/base.js +3 -3
- package/script/src/transports/http/http_transport.d.ts +2 -1
- package/script/src/transports/http/http_transport.d.ts.map +1 -1
- package/script/src/transports/websocket/_hyperliquid_event_target.d.ts +1 -1
- package/script/src/transports/websocket/_hyperliquid_event_target.d.ts.map +1 -1
- package/script/src/transports/websocket/websocket_transport.d.ts +2 -1
- package/script/src/transports/websocket/websocket_transport.d.ts.map +1 -1
- package/esm/src/base.d.ts.map +0 -1
- package/esm/src/signing/_sorter.d.ts +0 -127
- package/esm/src/signing/_sorter.d.ts.map +0 -1
- package/esm/src/signing/_sorter.js +0 -693
- package/esm/src/types/exchange/requests.d.ts +0 -1345
- package/esm/src/types/exchange/requests.d.ts.map +0 -1
- package/esm/src/types/exchange/requests.js +0 -1
- package/esm/src/types/exchange/responses.d.ts +0 -233
- package/esm/src/types/exchange/responses.d.ts.map +0 -1
- package/esm/src/types/exchange/responses.js +0 -1
- package/esm/src/types/explorer/requests.d.ts +0 -32
- package/esm/src/types/explorer/requests.d.ts.map +0 -1
- package/esm/src/types/explorer/requests.js +0 -1
- package/esm/src/types/explorer/responses.d.ts +0 -58
- package/esm/src/types/explorer/responses.d.ts.map +0 -1
- package/esm/src/types/explorer/responses.js +0 -1
- package/esm/src/types/info/accounts.d.ts +0 -864
- package/esm/src/types/info/accounts.d.ts.map +0 -1
- package/esm/src/types/info/accounts.js +0 -1
- package/esm/src/types/info/assets.d.ts +0 -354
- package/esm/src/types/info/assets.d.ts.map +0 -1
- package/esm/src/types/info/assets.js +0 -1
- package/esm/src/types/info/markets.d.ts +0 -79
- package/esm/src/types/info/markets.d.ts.map +0 -1
- package/esm/src/types/info/markets.js +0 -1
- package/esm/src/types/info/orders.d.ts +0 -266
- package/esm/src/types/info/orders.d.ts.map +0 -1
- package/esm/src/types/info/orders.js +0 -1
- package/esm/src/types/info/requests.d.ts +0 -634
- package/esm/src/types/info/requests.d.ts.map +0 -1
- package/esm/src/types/info/requests.js +0 -1
- package/esm/src/types/info/validators.d.ts +0 -147
- package/esm/src/types/info/validators.d.ts.map +0 -1
- package/esm/src/types/info/validators.js +0 -1
- package/esm/src/types/info/vaults.d.ts +0 -119
- package/esm/src/types/info/vaults.d.ts.map +0 -1
- package/esm/src/types/info/vaults.js +0 -1
- package/esm/src/types/mod.d.ts +0 -38
- package/esm/src/types/mod.d.ts.map +0 -1
- package/esm/src/types/mod.js +0 -24
- package/esm/src/types/subscriptions/requests.d.ts +0 -143
- package/esm/src/types/subscriptions/requests.d.ts.map +0 -1
- package/esm/src/types/subscriptions/requests.js +0 -1
- package/esm/src/types/subscriptions/responses.d.ts +0 -213
- package/esm/src/types/subscriptions/responses.d.ts.map +0 -1
- package/esm/src/types/subscriptions/responses.js +0 -1
- package/script/src/base.d.ts.map +0 -1
- package/script/src/signing/_sorter.d.ts +0 -127
- package/script/src/signing/_sorter.d.ts.map +0 -1
- package/script/src/signing/_sorter.js +0 -696
- package/script/src/types/exchange/requests.d.ts +0 -1345
- package/script/src/types/exchange/requests.d.ts.map +0 -1
- package/script/src/types/exchange/requests.js +0 -2
- package/script/src/types/exchange/responses.d.ts +0 -233
- package/script/src/types/exchange/responses.d.ts.map +0 -1
- package/script/src/types/exchange/responses.js +0 -2
- package/script/src/types/explorer/requests.d.ts +0 -32
- package/script/src/types/explorer/requests.d.ts.map +0 -1
- package/script/src/types/explorer/requests.js +0 -2
- package/script/src/types/explorer/responses.d.ts +0 -58
- package/script/src/types/explorer/responses.d.ts.map +0 -1
- package/script/src/types/explorer/responses.js +0 -2
- package/script/src/types/info/accounts.d.ts +0 -864
- package/script/src/types/info/accounts.d.ts.map +0 -1
- package/script/src/types/info/accounts.js +0 -2
- package/script/src/types/info/assets.d.ts +0 -354
- package/script/src/types/info/assets.d.ts.map +0 -1
- package/script/src/types/info/assets.js +0 -2
- package/script/src/types/info/markets.d.ts +0 -79
- package/script/src/types/info/markets.d.ts.map +0 -1
- package/script/src/types/info/markets.js +0 -2
- package/script/src/types/info/orders.d.ts +0 -266
- package/script/src/types/info/orders.d.ts.map +0 -1
- package/script/src/types/info/orders.js +0 -2
- package/script/src/types/info/requests.d.ts +0 -634
- package/script/src/types/info/requests.d.ts.map +0 -1
- package/script/src/types/info/requests.js +0 -2
- package/script/src/types/info/validators.d.ts +0 -147
- package/script/src/types/info/validators.d.ts.map +0 -1
- package/script/src/types/info/validators.js +0 -2
- package/script/src/types/info/vaults.d.ts +0 -119
- package/script/src/types/info/vaults.d.ts.map +0 -1
- package/script/src/types/info/vaults.js +0 -2
- package/script/src/types/mod.d.ts +0 -38
- package/script/src/types/mod.d.ts.map +0 -1
- package/script/src/types/mod.js +0 -25
- package/script/src/types/subscriptions/requests.d.ts +0 -143
- package/script/src/types/subscriptions/requests.d.ts.map +0 -1
- package/script/src/types/subscriptions/requests.js +0 -2
- package/script/src/types/subscriptions/responses.d.ts +0 -213
- package/script/src/types/subscriptions/responses.d.ts.map +0 -1
- package/script/src/types/subscriptions/responses.js +0 -2
- /package/esm/src/{base.js → errors.js} +0 -0
- /package/script/src/{base.js → errors.js} +0 -0
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import type { Hex } from "../mod.js";
|
|
2
|
-
/** User delegation to a validator. */
|
|
3
|
-
export interface Delegation {
|
|
4
|
-
/** Validator address. */
|
|
5
|
-
validator: Hex;
|
|
6
|
-
/**
|
|
7
|
-
* Amount of tokens delegated to the validator.
|
|
8
|
-
* @pattern ^[0-9]+(\.[0-9]+)?$
|
|
9
|
-
*/
|
|
10
|
-
amount: string;
|
|
11
|
-
/** Locked until timestamp (in ms since epoch). */
|
|
12
|
-
lockedUntilTimestamp: number;
|
|
13
|
-
}
|
|
14
|
-
/** Reward received from staking activities. */
|
|
15
|
-
export interface DelegatorReward {
|
|
16
|
-
/** Timestamp when the reward was received (in ms since epoch). */
|
|
17
|
-
time: number;
|
|
18
|
-
/** Source of the reward. */
|
|
19
|
-
source: "delegation" | "commission";
|
|
20
|
-
/**
|
|
21
|
-
* Total reward amount.
|
|
22
|
-
* @pattern ^[0-9]+(\.[0-9]+)?$
|
|
23
|
-
*/
|
|
24
|
-
totalAmount: string;
|
|
25
|
-
}
|
|
26
|
-
/** Summary of a user staking delegations. */
|
|
27
|
-
export interface DelegatorSummary {
|
|
28
|
-
/**
|
|
29
|
-
* Total amount of delegated tokens.
|
|
30
|
-
* @pattern ^[0-9]+(\.[0-9]+)?$
|
|
31
|
-
*/
|
|
32
|
-
delegated: string;
|
|
33
|
-
/**
|
|
34
|
-
* Total amount of undelegated tokens.
|
|
35
|
-
* @pattern ^[0-9]+(\.[0-9]+)?$
|
|
36
|
-
*/
|
|
37
|
-
undelegated: string;
|
|
38
|
-
/**
|
|
39
|
-
* Total amount of tokens pending withdrawal.
|
|
40
|
-
* @pattern ^[0-9]+(\.[0-9]+)?$
|
|
41
|
-
*/
|
|
42
|
-
totalPendingWithdrawal: string;
|
|
43
|
-
/** Number of pending withdrawals. */
|
|
44
|
-
nPendingWithdrawals: number;
|
|
45
|
-
}
|
|
46
|
-
/** Record of a staking event by a delegator. */
|
|
47
|
-
export interface DelegatorUpdate {
|
|
48
|
-
/** Timestamp of the delegation event (in ms since epoch). */
|
|
49
|
-
time: number;
|
|
50
|
-
/** Transaction hash of the delegation event. */
|
|
51
|
-
hash: Hex;
|
|
52
|
-
/** Details of the update. */
|
|
53
|
-
delta: DelegatorUpdateDelegate | DelegatorUpdateDeposit | DelegatorUpdateWithdrawal;
|
|
54
|
-
}
|
|
55
|
-
/** Delegation operation in a delegator update. */
|
|
56
|
-
export interface DelegatorUpdateDelegate {
|
|
57
|
-
/** Delegation operation details. */
|
|
58
|
-
delegate: {
|
|
59
|
-
/** Address of the validator receiving or losing delegation. */
|
|
60
|
-
validator: Hex;
|
|
61
|
-
/**
|
|
62
|
-
* Amount of tokens being delegated or undelegated.
|
|
63
|
-
* @pattern ^[0-9]+(\.[0-9]+)?$
|
|
64
|
-
*/
|
|
65
|
-
amount: string;
|
|
66
|
-
/** Whether this is an undelegation operation. */
|
|
67
|
-
isUndelegate: boolean;
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
/** Deposit operation in a delegator update. */
|
|
71
|
-
export interface DelegatorUpdateDeposit {
|
|
72
|
-
/** Deposit details. */
|
|
73
|
-
cDeposit: {
|
|
74
|
-
/**
|
|
75
|
-
* Amount of tokens being deposited.
|
|
76
|
-
* @pattern ^[0-9]+(\.[0-9]+)?$
|
|
77
|
-
*/
|
|
78
|
-
amount: string;
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
/** Withdrawal operation in a delegator update. */
|
|
82
|
-
export interface DelegatorUpdateWithdrawal {
|
|
83
|
-
/** Withdrawal details. */
|
|
84
|
-
withdrawal: {
|
|
85
|
-
/**
|
|
86
|
-
* Amount of tokens being withdrawn.
|
|
87
|
-
* @pattern ^[0-9]+(\.[0-9]+)?$
|
|
88
|
-
*/
|
|
89
|
-
amount: string;
|
|
90
|
-
/** Phase of the withdrawal process. */
|
|
91
|
-
phase: "initiated" | "finalized";
|
|
92
|
-
};
|
|
93
|
-
}
|
|
94
|
-
/** Statistics for validator performance over a time period. */
|
|
95
|
-
export interface ValidatorStats {
|
|
96
|
-
/** Fraction of time the validator was online. */
|
|
97
|
-
uptimeFraction: string;
|
|
98
|
-
/**
|
|
99
|
-
* Predicted annual percentage rate of returns.
|
|
100
|
-
* @pattern ^[0-9]+(\.[0-9]+)?$
|
|
101
|
-
*/
|
|
102
|
-
predictedApr: string;
|
|
103
|
-
/** Number of samples used for statistics calculation. */
|
|
104
|
-
nSamples: number;
|
|
105
|
-
}
|
|
106
|
-
/** Summary of a validator status and performance. */
|
|
107
|
-
export interface ValidatorSummary {
|
|
108
|
-
/** Address of the validator. */
|
|
109
|
-
validator: Hex;
|
|
110
|
-
/** Address of the validator signer. */
|
|
111
|
-
signer: Hex;
|
|
112
|
-
/** Name of the validator. */
|
|
113
|
-
name: string;
|
|
114
|
-
/** Description of the validator. */
|
|
115
|
-
description: string;
|
|
116
|
-
/** Number of blocks produced recently. */
|
|
117
|
-
nRecentBlocks: number;
|
|
118
|
-
/** Total amount of tokens staked. */
|
|
119
|
-
stake: number;
|
|
120
|
-
/** Whether the validator is currently jailed. */
|
|
121
|
-
isJailed: boolean;
|
|
122
|
-
/** Timestamp when the validator can be unjailed (in ms since epoch). */
|
|
123
|
-
unjailableAfter: number | null;
|
|
124
|
-
/** Whether the validator is currently active. */
|
|
125
|
-
isActive: boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Commission rate charged by the validator.
|
|
128
|
-
* @pattern ^[0-9]+(\.[0-9]+)?$
|
|
129
|
-
*/
|
|
130
|
-
commission: string;
|
|
131
|
-
/** Performance statistics over different time periods. */
|
|
132
|
-
stats: [
|
|
133
|
-
[
|
|
134
|
-
"day",
|
|
135
|
-
ValidatorStats
|
|
136
|
-
],
|
|
137
|
-
[
|
|
138
|
-
"week",
|
|
139
|
-
ValidatorStats
|
|
140
|
-
],
|
|
141
|
-
[
|
|
142
|
-
"month",
|
|
143
|
-
ValidatorStats
|
|
144
|
-
]
|
|
145
|
-
];
|
|
146
|
-
}
|
|
147
|
-
//# sourceMappingURL=validators.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/src/types/info/validators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC,sCAAsC;AACtC,MAAM,WAAW,UAAU;IACvB,yBAAyB;IACzB,SAAS,EAAE,GAAG,CAAC;IACf;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,kDAAkD;IAClD,oBAAoB,EAAE,MAAM,CAAC;CAChC;AAED,+CAA+C;AAC/C,MAAM,WAAW,eAAe;IAC5B,kEAAkE;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,4BAA4B;IAC5B,MAAM,EAAE,YAAY,GAAG,YAAY,CAAC;IACpC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAED,6CAA6C;AAC7C,MAAM,WAAW,gBAAgB;IAC7B;;;OAGG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B,qCAAqC;IACrC,mBAAmB,EAAE,MAAM,CAAC;CAC/B;AAED,gDAAgD;AAChD,MAAM,WAAW,eAAe;IAC5B,6DAA6D;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,IAAI,EAAE,GAAG,CAAC;IACV,6BAA6B;IAC7B,KAAK,EAAE,uBAAuB,GAAG,sBAAsB,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E,MAAM,CAAC;IACnB,0DAA0D;IAC1D,KAAK,EAAE;QACH;YAAC,KAAK;YAAE,cAAc;SAAC;QACvB;YAAC,MAAM;YAAE,cAAc;SAAC;QACxB;YAAC,OAAO;YAAE,cAAc;SAAC;KAC5B,CAAC;CACL"}
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import type { Hex } from "../mod.js";
|
|
2
|
-
import type { PortfolioPeriods } from "./accounts.js";
|
|
3
|
-
/** Details about a vault. */
|
|
4
|
-
export interface VaultDetails {
|
|
5
|
-
/** Vault name. */
|
|
6
|
-
name: string;
|
|
7
|
-
/** Vault address. */
|
|
8
|
-
vaultAddress: Hex;
|
|
9
|
-
/** Leader address. */
|
|
10
|
-
leader: Hex;
|
|
11
|
-
/** Vault description. */
|
|
12
|
-
description: string;
|
|
13
|
-
/** Vault portfolio metrics grouped by time periods. */
|
|
14
|
-
portfolio: PortfolioPeriods;
|
|
15
|
-
/** Annual percentage rate. */
|
|
16
|
-
apr: number;
|
|
17
|
-
/** Current user follower state */
|
|
18
|
-
followerState: VaultFollowerState | null;
|
|
19
|
-
/** Ownership percentage held by leader. */
|
|
20
|
-
leaderFraction: number;
|
|
21
|
-
/** Leader commission percentage. */
|
|
22
|
-
leaderCommission: number;
|
|
23
|
-
/** Vault followers list. */
|
|
24
|
-
followers: (Omit<VaultFollowerState, "user"> & {
|
|
25
|
-
/** Follower address or Leader. */
|
|
26
|
-
user: Hex | "Leader";
|
|
27
|
-
})[];
|
|
28
|
-
/** Maximum distributable amount. */
|
|
29
|
-
maxDistributable: number;
|
|
30
|
-
/** Maximum withdrawable amount. */
|
|
31
|
-
maxWithdrawable: number;
|
|
32
|
-
/** Vault closure status. */
|
|
33
|
-
isClosed: boolean;
|
|
34
|
-
/** Vault relationship type. */
|
|
35
|
-
relationship: VaultRelationship;
|
|
36
|
-
/** Deposit permission status. */
|
|
37
|
-
allowDeposits: boolean;
|
|
38
|
-
/** Position closure policy on withdrawal. */
|
|
39
|
-
alwaysCloseOnWithdraw: boolean;
|
|
40
|
-
}
|
|
41
|
-
/** User vault equity details. */
|
|
42
|
-
export interface VaultEquity {
|
|
43
|
-
/** Vault address. */
|
|
44
|
-
vaultAddress: Hex;
|
|
45
|
-
/**
|
|
46
|
-
* User deposited equity.
|
|
47
|
-
* @pattern ^[0-9]+(\.[0-9]+)?$
|
|
48
|
-
*/
|
|
49
|
-
equity: string;
|
|
50
|
-
/** Timestamp when the user can withdraw their equity. */
|
|
51
|
-
lockedUntilTimestamp: number;
|
|
52
|
-
}
|
|
53
|
-
/** Vault follower state. */
|
|
54
|
-
export interface VaultFollowerState {
|
|
55
|
-
/** Follower address. */
|
|
56
|
-
user: Hex;
|
|
57
|
-
/**
|
|
58
|
-
* Follower vault equity.
|
|
59
|
-
* @pattern ^[0-9]+(\.[0-9]+)?$
|
|
60
|
-
*/
|
|
61
|
-
vaultEquity: string;
|
|
62
|
-
/**
|
|
63
|
-
* Current profit and loss.
|
|
64
|
-
* @pattern ^-?[0-9]+(\.[0-9]+)?$
|
|
65
|
-
*/
|
|
66
|
-
pnl: string;
|
|
67
|
-
/**
|
|
68
|
-
* All-time profit and loss.
|
|
69
|
-
* @pattern ^-?[0-9]+(\.[0-9]+)?$
|
|
70
|
-
*/
|
|
71
|
-
allTimePnl: string;
|
|
72
|
-
/** Subscription duration in days. */
|
|
73
|
-
daysFollowing: number;
|
|
74
|
-
/** Vault entry timestamp. */
|
|
75
|
-
vaultEntryTime: number;
|
|
76
|
-
/** Timestamp when funds become unlocked. */
|
|
77
|
-
lockupUntil: number;
|
|
78
|
-
}
|
|
79
|
-
/** Vault relationship configuration. */
|
|
80
|
-
export type VaultRelationship = {
|
|
81
|
-
/** Relationship type. */
|
|
82
|
-
type: "normal" | "child";
|
|
83
|
-
} | {
|
|
84
|
-
/** Relationship type. */
|
|
85
|
-
type: "parent";
|
|
86
|
-
/** Child vault information. */
|
|
87
|
-
data: {
|
|
88
|
-
/** Child vault addresses. */
|
|
89
|
-
childAddresses: Hex[];
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
/** Summary of a vault. */
|
|
93
|
-
export interface VaultSummary {
|
|
94
|
-
/** Vault name. */
|
|
95
|
-
name: string;
|
|
96
|
-
/** Vault address. */
|
|
97
|
-
vaultAddress: Hex;
|
|
98
|
-
/** Leader address. */
|
|
99
|
-
leader: Hex;
|
|
100
|
-
/**
|
|
101
|
-
* Total value locked.
|
|
102
|
-
* @pattern ^[0-9]+(\.[0-9]+)?$
|
|
103
|
-
*/
|
|
104
|
-
tvl: string;
|
|
105
|
-
/** Vault closure status. */
|
|
106
|
-
isClosed: boolean;
|
|
107
|
-
/** Vault relationship type. */
|
|
108
|
-
relationship: VaultRelationship;
|
|
109
|
-
/** Creation timestamp. */
|
|
110
|
-
createTimeMillis: number;
|
|
111
|
-
}
|
|
112
|
-
/** Vault that a user is leading. */
|
|
113
|
-
export interface VaultLeading {
|
|
114
|
-
/** Vault address. */
|
|
115
|
-
address: Hex;
|
|
116
|
-
/** Vault name. */
|
|
117
|
-
name: string;
|
|
118
|
-
}
|
|
119
|
-
//# sourceMappingURL=vaults.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vaults.d.ts","sourceRoot":"","sources":["../../../../src/src/types/info/vaults.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAEtD,6BAA6B;AAC7B,MAAM,WAAW,YAAY;IACzB,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,YAAY,EAAE,GAAG,CAAC;IAClB,sBAAsB;IACtB,MAAM,EAAE,GAAG,CAAC;IACZ,yBAAyB;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,uDAAuD;IACvD,SAAS,EAAE,gBAAgB,CAAC;IAC5B,8BAA8B;IAC9B,GAAG,EAAE,MAAM,CAAC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CAAC;CAC5B,GACC;IACE,yBAAyB;IACzB,IAAI,EAAE,QAAQ,CAAC;IACf,+BAA+B;IAC/B,IAAI,EAAE;QACF,6BAA6B;QAC7B,cAAc,EAAE,GAAG,EAAE,CAAC;KACzB,CAAC;CACL,CAAC;AAEN,0BAA0B;AAC1B,MAAM,WAAW,YAAY;IACzB,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB;IACrB,YAAY,EAAE,GAAG,CAAC;IAClB,sBAAsB;IACtB,MAAM,EAAE,GAAG,CAAC;IACZ;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,4BAA4B;IAC5B,QAAQ,EAAE,OAAO,CAAC;IAClB,+BAA+B;IAC/B,YAAY,EAAE,iBAAiB,CAAC;IAChC,0BAA0B;IAC1B,gBAAgB,EAAE,MAAM,CAAC;CAC5B;AAED,oCAAoC;AACpC,MAAM,WAAW,YAAY;IACzB,qBAAqB;IACrB,OAAO,EAAE,GAAG,CAAC;IACb,kBAAkB;IAClB,IAAI,EAAE,MAAM,CAAC;CAChB"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This module contains all types related to the Hyperliquid API.
|
|
3
|
-
*
|
|
4
|
-
* @example
|
|
5
|
-
* ```ts
|
|
6
|
-
* import type { OrderParams } from "@nktkas/hyperliquid/types";
|
|
7
|
-
*
|
|
8
|
-
* const myOrder: OrderParams = {
|
|
9
|
-
* a: 0, // Asset index
|
|
10
|
-
* b: true, // Buy order
|
|
11
|
-
* p: "30000", // Price
|
|
12
|
-
* s: "0.1", // Size
|
|
13
|
-
* r: false, // Not reduce-only
|
|
14
|
-
* t: {
|
|
15
|
-
* limit: {
|
|
16
|
-
* tif: "Gtc", // Good-til-cancelled
|
|
17
|
-
* },
|
|
18
|
-
* },
|
|
19
|
-
* };
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @module
|
|
23
|
-
*/
|
|
24
|
-
export type Hex = `0x${string}`;
|
|
25
|
-
export type * from "./exchange/requests.js";
|
|
26
|
-
export type * from "./exchange/responses.js";
|
|
27
|
-
export type * from "./explorer/requests.js";
|
|
28
|
-
export type * from "./explorer/responses.js";
|
|
29
|
-
export type * from "./info/accounts.js";
|
|
30
|
-
export type * from "./info/assets.js";
|
|
31
|
-
export type * from "./info/markets.js";
|
|
32
|
-
export type * from "./info/orders.js";
|
|
33
|
-
export type * from "./info/requests.js";
|
|
34
|
-
export type * from "./info/validators.js";
|
|
35
|
-
export type * from "./info/vaults.js";
|
|
36
|
-
export type * from "./subscriptions/responses.js";
|
|
37
|
-
export type * from "./subscriptions/requests.js";
|
|
38
|
-
//# sourceMappingURL=mod.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/types/mod.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,MAAM,MAAM,GAAG,GAAG,KAAK,MAAM,EAAE,CAAC;AAEhC,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,yBAAyB,CAAC;AAE7C,mBAAmB,wBAAwB,CAAC;AAC5C,mBAAmB,yBAAyB,CAAC;AAE7C,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,mBAAmB,CAAC;AACvC,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,oBAAoB,CAAC;AACxC,mBAAmB,sBAAsB,CAAC;AAC1C,mBAAmB,kBAAkB,CAAC;AAEtC,mBAAmB,8BAA8B,CAAC;AAClD,mBAAmB,6BAA6B,CAAC"}
|
package/script/src/types/mod.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* This module contains all types related to the Hyperliquid API.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* ```ts
|
|
7
|
-
* import type { OrderParams } from "@nktkas/hyperliquid/types";
|
|
8
|
-
*
|
|
9
|
-
* const myOrder: OrderParams = {
|
|
10
|
-
* a: 0, // Asset index
|
|
11
|
-
* b: true, // Buy order
|
|
12
|
-
* p: "30000", // Price
|
|
13
|
-
* s: "0.1", // Size
|
|
14
|
-
* r: false, // Not reduce-only
|
|
15
|
-
* t: {
|
|
16
|
-
* limit: {
|
|
17
|
-
* tif: "Gtc", // Good-til-cancelled
|
|
18
|
-
* },
|
|
19
|
-
* },
|
|
20
|
-
* };
|
|
21
|
-
* ```
|
|
22
|
-
*
|
|
23
|
-
* @module
|
|
24
|
-
*/
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import type { Hex } from "../mod.js";
|
|
2
|
-
/**
|
|
3
|
-
* Context events for a specific perpetual asset.
|
|
4
|
-
* @returns {WsActiveAssetCtx | WsActiveSpotAssetCtx}
|
|
5
|
-
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
6
|
-
*/
|
|
7
|
-
export interface WsActiveAssetCtxRequest {
|
|
8
|
-
/** Type of subscription. */
|
|
9
|
-
type: "activeAssetCtx";
|
|
10
|
-
/** Asset symbol (e.g., BTC). */
|
|
11
|
-
coin: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Best bid and offer events for a specific asset.
|
|
15
|
-
* @returns {WsBbo}
|
|
16
|
-
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
17
|
-
*/
|
|
18
|
-
export interface WsBboRequest {
|
|
19
|
-
/** Type of subscription. */
|
|
20
|
-
type: "bbo";
|
|
21
|
-
/** Asset symbol (e.g., BTC). */
|
|
22
|
-
coin: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Candlestick data events for a specific asset.
|
|
26
|
-
* @returns {Candle}
|
|
27
|
-
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
28
|
-
*/
|
|
29
|
-
export interface WsCandleRequest {
|
|
30
|
-
/** Type of subscription. */
|
|
31
|
-
type: "candle";
|
|
32
|
-
/** Asset symbol (e.g., BTC). */
|
|
33
|
-
coin: string;
|
|
34
|
-
/** Time interval. */
|
|
35
|
-
interval: "1m" | "3m" | "5m" | "15m" | "30m" | "1h" | "2h" | "4h" | "8h" | "12h" | "1d" | "3d" | "1w" | "1M";
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Explorer block events.
|
|
39
|
-
* @returns {WsBlockDetails[]}
|
|
40
|
-
* @see null
|
|
41
|
-
*/
|
|
42
|
-
export interface WsExplorerBlockRequest {
|
|
43
|
-
/** Type of subscription. */
|
|
44
|
-
type: "explorerBlock";
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Explorer transaction events.
|
|
48
|
-
* @returns {TxDetails[]}
|
|
49
|
-
* @see null
|
|
50
|
-
*/
|
|
51
|
-
export interface WsExplorerTxsRequest {
|
|
52
|
-
/** Type of subscription. */
|
|
53
|
-
type: "explorerTxs";
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Notification events for a specific user.
|
|
57
|
-
* @returns {WsNotification}
|
|
58
|
-
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
59
|
-
*/
|
|
60
|
-
export interface WsNotificationRequest {
|
|
61
|
-
/** Type of subscription. */
|
|
62
|
-
type: "notification";
|
|
63
|
-
/** User address. */
|
|
64
|
-
user: Hex;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Order status events for a specific user.
|
|
68
|
-
* @returns {OrderStatus<Order>[]}
|
|
69
|
-
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
70
|
-
*/
|
|
71
|
-
export interface WsOrderUpdatesRequest {
|
|
72
|
-
/** Type of subscription. */
|
|
73
|
-
type: "orderUpdates";
|
|
74
|
-
/** User address. */
|
|
75
|
-
user: Hex;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Real-time trade updates for a specific asset.
|
|
79
|
-
* @returns {WsTrade[]}
|
|
80
|
-
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
81
|
-
*/
|
|
82
|
-
export interface WsTradesRequest {
|
|
83
|
-
/** Type of subscription. */
|
|
84
|
-
type: "trades";
|
|
85
|
-
/** Asset symbol (e.g., BTC). */
|
|
86
|
-
coin: string;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Non-order events for a specific user.
|
|
90
|
-
* @returns {WsUserEvent}
|
|
91
|
-
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
92
|
-
*/
|
|
93
|
-
export interface WsUserEventsRequest {
|
|
94
|
-
/** Type of subscription. */
|
|
95
|
-
type: "userEvents";
|
|
96
|
-
/** User address. */
|
|
97
|
-
user: Hex;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Funding payment events for a specific user.
|
|
101
|
-
* @returns {WsUserFundings}
|
|
102
|
-
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
103
|
-
*/
|
|
104
|
-
export interface WsUserFundingsRequest {
|
|
105
|
-
/** Type of subscription. */
|
|
106
|
-
type: "userFundings";
|
|
107
|
-
/** User address. */
|
|
108
|
-
user: Hex;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Non-funding ledger events for a specific user.
|
|
112
|
-
* @returns {WsUserNonFundingLedgerUpdates}
|
|
113
|
-
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
114
|
-
*/
|
|
115
|
-
export interface WsUserNonFundingLedgerUpdatesRequest {
|
|
116
|
-
/** Type of subscription. */
|
|
117
|
-
type: "userNonFundingLedgerUpdates";
|
|
118
|
-
/** User address. */
|
|
119
|
-
user: Hex;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* TWAP order history events for a specific user.
|
|
123
|
-
* @returns {WsUserTwapHistory}
|
|
124
|
-
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
125
|
-
*/
|
|
126
|
-
export interface WsUserTwapHistoryRequest {
|
|
127
|
-
/** Type of subscription. */
|
|
128
|
-
type: "userTwapHistory";
|
|
129
|
-
/** User address. */
|
|
130
|
-
user: Hex;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Comprehensive user and market data events.
|
|
134
|
-
* @returns {WsWebData2}
|
|
135
|
-
* @see https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/api/websocket/subscriptions
|
|
136
|
-
*/
|
|
137
|
-
export interface WsWebData2Request {
|
|
138
|
-
/** Type of subscription. */
|
|
139
|
-
type: "webData2";
|
|
140
|
-
/** User address. */
|
|
141
|
-
user: Hex;
|
|
142
|
-
}
|
|
143
|
-
//# sourceMappingURL=requests.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"requests.d.ts","sourceRoot":"","sources":["../../../../src/src/types/subscriptions/requests.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC,4BAA4B;IAC5B,IAAI,EAAE,gBAAgB,CAAC;IACvB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB,4BAA4B;IAC5B,IAAI,EAAE,KAAK,CAAC;IACZ,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B,4BAA4B;IAC5B,IAAI,EAAE,QAAQ,CAAC;IACf,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,qBAAqB;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