@nadohq/indexer-client 0.15.0 → 0.18.0
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/dist/CandlestickPeriod-1DtcEiOb.d.ts +15 -0
- package/dist/CandlestickPeriod-1DtcEiOb.d.ts.map +1 -0
- package/dist/CandlestickPeriod-D3_IoSev.d.cts +15 -0
- package/dist/CandlestickPeriod-D3_IoSev.d.cts.map +1 -0
- package/dist/IndexerBaseClient-3KfzA2ph.cjs +639 -0
- package/dist/IndexerBaseClient-3KfzA2ph.cjs.map +1 -0
- package/dist/IndexerBaseClient.cjs +3 -788
- package/dist/IndexerBaseClient.d.cts +223 -229
- package/dist/IndexerBaseClient.d.cts.map +1 -0
- package/dist/IndexerBaseClient.d.ts +223 -229
- package/dist/IndexerBaseClient.d.ts.map +1 -0
- package/dist/IndexerBaseClient.js +601 -783
- package/dist/IndexerBaseClient.js.map +1 -1
- package/dist/IndexerClient.cjs +275 -381
- package/dist/IndexerClient.cjs.map +1 -1
- package/dist/IndexerClient.d.cts +32 -43
- package/dist/IndexerClient.d.cts.map +1 -0
- package/dist/IndexerClient.d.ts +32 -43
- package/dist/IndexerClient.d.ts.map +1 -0
- package/dist/IndexerClient.js +273 -362
- package/dist/IndexerClient.js.map +1 -1
- package/dist/IndexerEventType-B-uXsf-a.d.cts +5 -0
- package/dist/IndexerEventType-B-uXsf-a.d.cts.map +1 -0
- package/dist/IndexerEventType-DCLkSlgR.d.ts +5 -0
- package/dist/IndexerEventType-DCLkSlgR.d.ts.map +1 -0
- package/dist/IndexerLeaderboardType-Ck12QVWR.d.cts +13 -0
- package/dist/IndexerLeaderboardType-Ck12QVWR.d.cts.map +1 -0
- package/dist/IndexerLeaderboardType-DAKw2tfI.d.ts +13 -0
- package/dist/IndexerLeaderboardType-DAKw2tfI.d.ts.map +1 -0
- package/dist/NadoTx-CWCklgY4.d.ts +50 -0
- package/dist/NadoTx-CWCklgY4.d.ts.map +1 -0
- package/dist/NadoTx-MYNIlXyq.d.cts +50 -0
- package/dist/NadoTx-MYNIlXyq.d.cts.map +1 -0
- package/dist/clientTypes-BpxOUu1q.d.ts +709 -0
- package/dist/clientTypes-BpxOUu1q.d.ts.map +1 -0
- package/dist/clientTypes-BsJ2yIC4.d.cts +709 -0
- package/dist/clientTypes-BsJ2yIC4.d.cts.map +1 -0
- package/dist/collateralEventType-CzH_2iTV.d.ts +5 -0
- package/dist/collateralEventType-CzH_2iTV.d.ts.map +1 -0
- package/dist/collateralEventType-DIm6Te7F.d.cts +5 -0
- package/dist/collateralEventType-DIm6Te7F.d.cts.map +1 -0
- package/dist/dataMappers.cjs +269 -346
- package/dist/dataMappers.cjs.map +1 -1
- package/dist/dataMappers.d.cts +7 -12
- package/dist/dataMappers.d.cts.map +1 -0
- package/dist/dataMappers.d.ts +7 -12
- package/dist/dataMappers.d.ts.map +1 -0
- package/dist/dataMappers.js +248 -314
- package/dist/dataMappers.js.map +1 -1
- package/dist/endpoints.cjs +8 -32
- package/dist/endpoints.cjs.map +1 -1
- package/dist/endpoints.d.cts +4 -2
- package/dist/endpoints.d.cts.map +1 -0
- package/dist/endpoints.d.ts +4 -2
- package/dist/endpoints.d.ts.map +1 -0
- package/dist/endpoints.js +8 -8
- package/dist/endpoints.js.map +1 -1
- package/dist/index-D6CnpA_r.d.cts +1 -0
- package/dist/index-DhI2LvVQ.d.ts +1 -0
- package/dist/index.cjs +15 -33
- package/dist/index.d.cts +14 -18
- package/dist/index.d.ts +14 -18
- package/dist/index.js +8 -7
- package/dist/indexerBalanceValue-4AuNuTAc.d.cts +32 -0
- package/dist/indexerBalanceValue-4AuNuTAc.d.cts.map +1 -0
- package/dist/indexerBalanceValue-B0OggI67.d.ts +32 -0
- package/dist/indexerBalanceValue-B0OggI67.d.ts.map +1 -0
- package/dist/paginatedEventsTypes-DtGDU-kI.d.cts +110 -0
- package/dist/paginatedEventsTypes-DtGDU-kI.d.cts.map +1 -0
- package/dist/paginatedEventsTypes-RwXoQrEa.d.ts +110 -0
- package/dist/paginatedEventsTypes-RwXoQrEa.d.ts.map +1 -0
- package/dist/serverModelTypes-CM2g040o.d.cts +262 -0
- package/dist/serverModelTypes-CM2g040o.d.cts.map +1 -0
- package/dist/serverModelTypes-DPHMUSZe.d.ts +262 -0
- package/dist/serverModelTypes-DPHMUSZe.d.ts.map +1 -0
- package/dist/serverTypes-BMSNh2GK.d.cts +452 -0
- package/dist/serverTypes-BMSNh2GK.d.cts.map +1 -0
- package/dist/serverTypes-c8IABU73.d.ts +452 -0
- package/dist/serverTypes-c8IABU73.d.ts.map +1 -0
- package/dist/types/CandlestickPeriod.cjs +16 -40
- package/dist/types/CandlestickPeriod.cjs.map +1 -1
- package/dist/types/CandlestickPeriod.d.cts +2 -13
- package/dist/types/CandlestickPeriod.d.ts +2 -13
- package/dist/types/CandlestickPeriod.js +16 -16
- package/dist/types/CandlestickPeriod.js.map +1 -1
- package/dist/types/IndexerEventType.cjs +0 -19
- package/dist/types/IndexerEventType.d.cts +2 -3
- package/dist/types/IndexerEventType.d.ts +2 -3
- package/dist/types/IndexerEventType.js +1 -1
- package/dist/types/IndexerLeaderboardType.cjs +0 -19
- package/dist/types/IndexerLeaderboardType.d.cts +2 -11
- package/dist/types/IndexerLeaderboardType.d.ts +2 -11
- package/dist/types/IndexerLeaderboardType.js +1 -1
- package/dist/types/NadoTx.cjs +0 -19
- package/dist/types/NadoTx.d.cts +2 -48
- package/dist/types/NadoTx.d.ts +2 -48
- package/dist/types/NadoTx.js +1 -1
- package/dist/types/clientTypes.cjs +0 -19
- package/dist/types/clientTypes.d.cts +2 -709
- package/dist/types/clientTypes.d.ts +2 -709
- package/dist/types/clientTypes.js +1 -1
- package/dist/types/collateralEventType.cjs +0 -19
- package/dist/types/collateralEventType.d.cts +2 -3
- package/dist/types/collateralEventType.d.ts +2 -3
- package/dist/types/collateralEventType.js +1 -1
- package/dist/types/index.cjs +3 -41
- package/dist/types/index.d.cts +10 -13
- package/dist/types/index.d.ts +10 -13
- package/dist/types/index.js +2 -11
- package/dist/types/paginatedEventsTypes.cjs +0 -19
- package/dist/types/paginatedEventsTypes.d.cts +2 -115
- package/dist/types/paginatedEventsTypes.d.ts +2 -115
- package/dist/types/paginatedEventsTypes.js +1 -1
- package/dist/types/serverModelTypes.cjs +0 -19
- package/dist/types/serverModelTypes.d.cts +2 -260
- package/dist/types/serverModelTypes.d.ts +2 -260
- package/dist/types/serverModelTypes.js +1 -1
- package/dist/types/serverTypes.cjs +0 -19
- package/dist/types/serverTypes.d.cts +2 -451
- package/dist/types/serverTypes.d.ts +2 -451
- package/dist/types/serverTypes.js +1 -1
- package/dist/utils/index.cjs +5 -25
- package/dist/utils/index.d.cts +2 -12
- package/dist/utils/index.d.ts +2 -12
- package/dist/utils/index.js +2 -3
- package/dist/utils/indexerBalanceValue.cjs +32 -36
- package/dist/utils/indexerBalanceValue.cjs.map +1 -1
- package/dist/utils/indexerBalanceValue.d.cts +2 -39
- package/dist/utils/indexerBalanceValue.d.ts +2 -39
- package/dist/utils/indexerBalanceValue.js +29 -9
- package/dist/utils/indexerBalanceValue.js.map +1 -1
- package/package.json +10 -10
- package/dist/IndexerBaseClient.cjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types/IndexerEventType.cjs.map +0 -1
- package/dist/types/IndexerEventType.js.map +0 -1
- package/dist/types/IndexerLeaderboardType.cjs.map +0 -1
- package/dist/types/IndexerLeaderboardType.js.map +0 -1
- package/dist/types/NadoTx.cjs.map +0 -1
- package/dist/types/NadoTx.js.map +0 -1
- package/dist/types/clientTypes.cjs.map +0 -1
- package/dist/types/clientTypes.js.map +0 -1
- package/dist/types/collateralEventType.cjs.map +0 -1
- package/dist/types/collateralEventType.js.map +0 -1
- package/dist/types/index.cjs.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/paginatedEventsTypes.cjs.map +0 -1
- package/dist/types/paginatedEventsTypes.js.map +0 -1
- package/dist/types/serverModelTypes.cjs.map +0 -1
- package/dist/types/serverModelTypes.js.map +0 -1
- package/dist/types/serverTypes.cjs.map +0 -1
- package/dist/types/serverTypes.js.map +0 -1
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.js.map +0 -1
|
@@ -1,260 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { IndexerEventType } from './IndexerEventType.cjs';
|
|
4
|
-
import { IndexerLeaderboardRankType } from './IndexerLeaderboardType.cjs';
|
|
5
|
-
import { NadoTx } from './NadoTx.cjs';
|
|
6
|
-
|
|
7
|
-
interface IndexerServerSnapshotsInterval {
|
|
8
|
-
count: number;
|
|
9
|
-
granularity: number;
|
|
10
|
-
max_time?: string;
|
|
11
|
-
}
|
|
12
|
-
type IndexerServerProduct = {
|
|
13
|
-
spot: EngineServerSpotProduct;
|
|
14
|
-
} | {
|
|
15
|
-
perp: EngineServerPerpProduct;
|
|
16
|
-
};
|
|
17
|
-
type IndexerServerBalance = {
|
|
18
|
-
spot: EngineServerSpotBalance;
|
|
19
|
-
} | {
|
|
20
|
-
perp: EngineServerPerpBalance;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Candlesticks
|
|
24
|
-
*/
|
|
25
|
-
interface IndexerServerCandlestick {
|
|
26
|
-
product_id: number;
|
|
27
|
-
granularity: string;
|
|
28
|
-
submission_idx: string;
|
|
29
|
-
timestamp: string;
|
|
30
|
-
open_x18: string;
|
|
31
|
-
high_x18: string;
|
|
32
|
-
low_x18: string;
|
|
33
|
-
close_x18: string;
|
|
34
|
-
volume: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Product snapshots
|
|
38
|
-
*/
|
|
39
|
-
interface IndexerServerProductSnapshot {
|
|
40
|
-
product_id: number;
|
|
41
|
-
submission_idx: string;
|
|
42
|
-
product: IndexerServerProduct;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Base Events
|
|
46
|
-
*/
|
|
47
|
-
interface IndexerServerEvent {
|
|
48
|
-
subaccount: string;
|
|
49
|
-
isolated: boolean;
|
|
50
|
-
isolated_product_id: number | null;
|
|
51
|
-
product_id: number;
|
|
52
|
-
submission_idx: string;
|
|
53
|
-
event_type: IndexerEventType;
|
|
54
|
-
pre_balance: IndexerServerBalance;
|
|
55
|
-
post_balance: IndexerServerBalance;
|
|
56
|
-
product: IndexerServerProduct;
|
|
57
|
-
net_interest_unrealized: string;
|
|
58
|
-
net_interest_cumulative: string;
|
|
59
|
-
net_funding_unrealized: string;
|
|
60
|
-
net_funding_cumulative: string;
|
|
61
|
-
net_entry_unrealized: string;
|
|
62
|
-
net_entry_cumulative: string;
|
|
63
|
-
/**
|
|
64
|
-
* Total traded volume in terms of the primary quote (i.e in terms of USDT) for this product
|
|
65
|
-
*/
|
|
66
|
-
quote_volume_cumulative: string;
|
|
67
|
-
}
|
|
68
|
-
interface IndexerServerTx {
|
|
69
|
-
submission_idx: string;
|
|
70
|
-
timestamp: string;
|
|
71
|
-
tx: NadoTx;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Orders
|
|
75
|
-
*/
|
|
76
|
-
interface IndexerServerOrder {
|
|
77
|
-
digest: string;
|
|
78
|
-
subaccount: string;
|
|
79
|
-
product_id: number;
|
|
80
|
-
submission_idx: string;
|
|
81
|
-
last_fill_submission_idx: string;
|
|
82
|
-
amount: string;
|
|
83
|
-
price_x18: string;
|
|
84
|
-
expiration: string;
|
|
85
|
-
appendix: string;
|
|
86
|
-
nonce: string;
|
|
87
|
-
isolated: boolean;
|
|
88
|
-
base_filled: string;
|
|
89
|
-
quote_filled: string;
|
|
90
|
-
fee: string;
|
|
91
|
-
builder_fee: string;
|
|
92
|
-
realized_pnl: string;
|
|
93
|
-
closed_amount: string;
|
|
94
|
-
closed_net_entry: string;
|
|
95
|
-
closed_margin: string | null;
|
|
96
|
-
first_fill_timestamp: string;
|
|
97
|
-
last_fill_timestamp: string;
|
|
98
|
-
pre_balance: IndexerServerMatchEventBalances;
|
|
99
|
-
post_balance: IndexerServerMatchEventBalances;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Match events
|
|
103
|
-
*/
|
|
104
|
-
interface IndexerServerMatchEvent {
|
|
105
|
-
digest: string;
|
|
106
|
-
isolated: boolean;
|
|
107
|
-
order: EIP712OrderValues;
|
|
108
|
-
base_filled: string;
|
|
109
|
-
quote_filled: string;
|
|
110
|
-
fee: string;
|
|
111
|
-
sequencer_fee: string;
|
|
112
|
-
builder_fee: string;
|
|
113
|
-
cumulative_fee: string;
|
|
114
|
-
cumulative_base_filled: string;
|
|
115
|
-
cumulative_quote_filled: string;
|
|
116
|
-
submission_idx: string;
|
|
117
|
-
net_entry_unrealized: string;
|
|
118
|
-
net_entry_cumulative: string;
|
|
119
|
-
pre_balance: IndexerServerMatchEventBalances;
|
|
120
|
-
post_balance: IndexerServerMatchEventBalances;
|
|
121
|
-
is_taker: boolean;
|
|
122
|
-
realized_pnl: string;
|
|
123
|
-
closed_amount: string;
|
|
124
|
-
closed_net_entry: string;
|
|
125
|
-
margin: string | null;
|
|
126
|
-
}
|
|
127
|
-
interface IndexerServerMatchEventBalances {
|
|
128
|
-
base: IndexerServerBalance;
|
|
129
|
-
quote?: IndexerServerBalance;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Oracle price
|
|
133
|
-
*/
|
|
134
|
-
interface IndexerServerOraclePrice {
|
|
135
|
-
product_id: number;
|
|
136
|
-
oracle_price_x18: string;
|
|
137
|
-
update_time: number;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Market snapshots
|
|
141
|
-
*/
|
|
142
|
-
interface IndexerServerMarketSnapshotInterval {
|
|
143
|
-
count: number;
|
|
144
|
-
granularity: number;
|
|
145
|
-
max_time?: string;
|
|
146
|
-
}
|
|
147
|
-
interface IndexerServerMarketSnapshot {
|
|
148
|
-
timestamp: string;
|
|
149
|
-
cumulative_users: string;
|
|
150
|
-
daily_active_users: string;
|
|
151
|
-
tvl: string;
|
|
152
|
-
cumulative_volumes: Record<string, string>;
|
|
153
|
-
cumulative_taker_fees: Record<string, string>;
|
|
154
|
-
cumulative_sequencer_fees: Record<string, string>;
|
|
155
|
-
cumulative_maker_fees: Record<string, string>;
|
|
156
|
-
cumulative_trades: Record<string, string>;
|
|
157
|
-
cumulative_liquidation_amounts: Record<string, string>;
|
|
158
|
-
open_interests: Record<string, string>;
|
|
159
|
-
total_deposits: Record<string, string>;
|
|
160
|
-
total_borrows: Record<string, string>;
|
|
161
|
-
funding_rates: Record<string, string>;
|
|
162
|
-
deposit_rates: Record<string, string>;
|
|
163
|
-
borrow_rates: Record<string, string>;
|
|
164
|
-
cumulative_trade_sizes: Record<string, string>;
|
|
165
|
-
cumulative_inflows: Record<string, string>;
|
|
166
|
-
cumulative_outflows: Record<string, string>;
|
|
167
|
-
oracle_prices: Record<string, string>;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Interest / funding
|
|
171
|
-
*/
|
|
172
|
-
interface IndexerServerProductPayment {
|
|
173
|
-
product_id: number;
|
|
174
|
-
idx: string;
|
|
175
|
-
timestamp: string;
|
|
176
|
-
amount: string;
|
|
177
|
-
balance_amount: string;
|
|
178
|
-
rate_x18: string;
|
|
179
|
-
oracle_price_x18: string;
|
|
180
|
-
isolated: boolean;
|
|
181
|
-
isolated_product_id: number | null;
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Maker stats
|
|
185
|
-
*/
|
|
186
|
-
interface IndexerServerMakerData {
|
|
187
|
-
timestamp: string;
|
|
188
|
-
maker_fee: string;
|
|
189
|
-
uptime: string;
|
|
190
|
-
sum_q_min: string;
|
|
191
|
-
q_score: string;
|
|
192
|
-
maker_share: string;
|
|
193
|
-
expected_maker_reward: string;
|
|
194
|
-
}
|
|
195
|
-
interface IndexerServerMaker {
|
|
196
|
-
address: string;
|
|
197
|
-
data: IndexerServerMakerData[];
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Leaderboard
|
|
201
|
-
*/
|
|
202
|
-
interface IndexerServerSocialAccount {
|
|
203
|
-
provider: 'twitter';
|
|
204
|
-
username: string;
|
|
205
|
-
display_name: string;
|
|
206
|
-
profile_image_url: string;
|
|
207
|
-
}
|
|
208
|
-
interface IndexerServerLeaderboardTrackPosition {
|
|
209
|
-
value: string;
|
|
210
|
-
rank: string;
|
|
211
|
-
qualification_status: 'qualified' | 'insufficient_account_value';
|
|
212
|
-
}
|
|
213
|
-
interface IndexerServerLeaderboardContestTrack {
|
|
214
|
-
track_id: number;
|
|
215
|
-
rank_type: IndexerLeaderboardRankType;
|
|
216
|
-
sort_order: 'ASC' | 'DESC';
|
|
217
|
-
threshold: string;
|
|
218
|
-
}
|
|
219
|
-
interface IndexerServerLeaderboardPosition {
|
|
220
|
-
subaccount: string;
|
|
221
|
-
contest_id: number;
|
|
222
|
-
account_value: string;
|
|
223
|
-
update_time: string;
|
|
224
|
-
tracks: Partial<Record<IndexerLeaderboardRankType, IndexerServerLeaderboardTrackPosition>>;
|
|
225
|
-
social_accounts: IndexerServerSocialAccount[];
|
|
226
|
-
}
|
|
227
|
-
interface IndexerServerLeaderboardContest {
|
|
228
|
-
contest_id: number;
|
|
229
|
-
start_time: string;
|
|
230
|
-
end_time: string;
|
|
231
|
-
count: string;
|
|
232
|
-
last_updated: string;
|
|
233
|
-
product_ids: number[];
|
|
234
|
-
active: boolean;
|
|
235
|
-
title: string;
|
|
236
|
-
description: string;
|
|
237
|
-
tracks: IndexerServerLeaderboardContestTrack[];
|
|
238
|
-
}
|
|
239
|
-
interface IndexerServerLeaderboardRegistration {
|
|
240
|
-
subaccount: string;
|
|
241
|
-
contest_id: number;
|
|
242
|
-
update_time: string;
|
|
243
|
-
}
|
|
244
|
-
/**
|
|
245
|
-
* NLP
|
|
246
|
-
*/
|
|
247
|
-
interface IndexerServerNlpSnapshot {
|
|
248
|
-
cumulative_burn_quote: string;
|
|
249
|
-
cumulative_mint_quote: string;
|
|
250
|
-
cumulative_pnl: string;
|
|
251
|
-
cumulative_trades: string;
|
|
252
|
-
cumulative_volume: string;
|
|
253
|
-
depositors: string;
|
|
254
|
-
oracle_price_x18: string;
|
|
255
|
-
submission_idx: string;
|
|
256
|
-
timestamp: string;
|
|
257
|
-
tvl: string;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export type { IndexerServerBalance, IndexerServerCandlestick, IndexerServerEvent, IndexerServerLeaderboardContest, IndexerServerLeaderboardContestTrack, IndexerServerLeaderboardPosition, IndexerServerLeaderboardRegistration, IndexerServerLeaderboardTrackPosition, IndexerServerMaker, IndexerServerMakerData, IndexerServerMarketSnapshot, IndexerServerMarketSnapshotInterval, IndexerServerMatchEvent, IndexerServerMatchEventBalances, IndexerServerNlpSnapshot, IndexerServerOraclePrice, IndexerServerOrder, IndexerServerProduct, IndexerServerProductPayment, IndexerServerProductSnapshot, IndexerServerSnapshotsInterval, IndexerServerSocialAccount, IndexerServerTx };
|
|
1
|
+
import { C as IndexerServerTx, S as IndexerServerSocialAccount, _ as IndexerServerOrder, a as IndexerServerLeaderboardContestTrack, b as IndexerServerProductSnapshot, c as IndexerServerLeaderboardTrackPosition, d as IndexerServerMarketSnapshot, f as IndexerServerMarketSnapshotInterval, g as IndexerServerOraclePrice, h as IndexerServerNlpSnapshot, i as IndexerServerLeaderboardContest, l as IndexerServerMaker, m as IndexerServerMatchEventBalances, n as IndexerServerCandlestick, o as IndexerServerLeaderboardPosition, p as IndexerServerMatchEvent, r as IndexerServerEvent, s as IndexerServerLeaderboardRegistration, t as IndexerServerBalance, u as IndexerServerMakerData, v as IndexerServerProduct, x as IndexerServerSnapshotsInterval, y as IndexerServerProductPayment } from "../serverModelTypes-CM2g040o.cjs";
|
|
2
|
+
export { IndexerServerBalance, IndexerServerCandlestick, IndexerServerEvent, IndexerServerLeaderboardContest, IndexerServerLeaderboardContestTrack, IndexerServerLeaderboardPosition, IndexerServerLeaderboardRegistration, IndexerServerLeaderboardTrackPosition, IndexerServerMaker, IndexerServerMakerData, IndexerServerMarketSnapshot, IndexerServerMarketSnapshotInterval, IndexerServerMatchEvent, IndexerServerMatchEventBalances, IndexerServerNlpSnapshot, IndexerServerOraclePrice, IndexerServerOrder, IndexerServerProduct, IndexerServerProductPayment, IndexerServerProductSnapshot, IndexerServerSnapshotsInterval, IndexerServerSocialAccount, IndexerServerTx };
|
|
@@ -1,260 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { IndexerEventType } from './IndexerEventType.js';
|
|
4
|
-
import { IndexerLeaderboardRankType } from './IndexerLeaderboardType.js';
|
|
5
|
-
import { NadoTx } from './NadoTx.js';
|
|
6
|
-
|
|
7
|
-
interface IndexerServerSnapshotsInterval {
|
|
8
|
-
count: number;
|
|
9
|
-
granularity: number;
|
|
10
|
-
max_time?: string;
|
|
11
|
-
}
|
|
12
|
-
type IndexerServerProduct = {
|
|
13
|
-
spot: EngineServerSpotProduct;
|
|
14
|
-
} | {
|
|
15
|
-
perp: EngineServerPerpProduct;
|
|
16
|
-
};
|
|
17
|
-
type IndexerServerBalance = {
|
|
18
|
-
spot: EngineServerSpotBalance;
|
|
19
|
-
} | {
|
|
20
|
-
perp: EngineServerPerpBalance;
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Candlesticks
|
|
24
|
-
*/
|
|
25
|
-
interface IndexerServerCandlestick {
|
|
26
|
-
product_id: number;
|
|
27
|
-
granularity: string;
|
|
28
|
-
submission_idx: string;
|
|
29
|
-
timestamp: string;
|
|
30
|
-
open_x18: string;
|
|
31
|
-
high_x18: string;
|
|
32
|
-
low_x18: string;
|
|
33
|
-
close_x18: string;
|
|
34
|
-
volume: string;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Product snapshots
|
|
38
|
-
*/
|
|
39
|
-
interface IndexerServerProductSnapshot {
|
|
40
|
-
product_id: number;
|
|
41
|
-
submission_idx: string;
|
|
42
|
-
product: IndexerServerProduct;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Base Events
|
|
46
|
-
*/
|
|
47
|
-
interface IndexerServerEvent {
|
|
48
|
-
subaccount: string;
|
|
49
|
-
isolated: boolean;
|
|
50
|
-
isolated_product_id: number | null;
|
|
51
|
-
product_id: number;
|
|
52
|
-
submission_idx: string;
|
|
53
|
-
event_type: IndexerEventType;
|
|
54
|
-
pre_balance: IndexerServerBalance;
|
|
55
|
-
post_balance: IndexerServerBalance;
|
|
56
|
-
product: IndexerServerProduct;
|
|
57
|
-
net_interest_unrealized: string;
|
|
58
|
-
net_interest_cumulative: string;
|
|
59
|
-
net_funding_unrealized: string;
|
|
60
|
-
net_funding_cumulative: string;
|
|
61
|
-
net_entry_unrealized: string;
|
|
62
|
-
net_entry_cumulative: string;
|
|
63
|
-
/**
|
|
64
|
-
* Total traded volume in terms of the primary quote (i.e in terms of USDT) for this product
|
|
65
|
-
*/
|
|
66
|
-
quote_volume_cumulative: string;
|
|
67
|
-
}
|
|
68
|
-
interface IndexerServerTx {
|
|
69
|
-
submission_idx: string;
|
|
70
|
-
timestamp: string;
|
|
71
|
-
tx: NadoTx;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Orders
|
|
75
|
-
*/
|
|
76
|
-
interface IndexerServerOrder {
|
|
77
|
-
digest: string;
|
|
78
|
-
subaccount: string;
|
|
79
|
-
product_id: number;
|
|
80
|
-
submission_idx: string;
|
|
81
|
-
last_fill_submission_idx: string;
|
|
82
|
-
amount: string;
|
|
83
|
-
price_x18: string;
|
|
84
|
-
expiration: string;
|
|
85
|
-
appendix: string;
|
|
86
|
-
nonce: string;
|
|
87
|
-
isolated: boolean;
|
|
88
|
-
base_filled: string;
|
|
89
|
-
quote_filled: string;
|
|
90
|
-
fee: string;
|
|
91
|
-
builder_fee: string;
|
|
92
|
-
realized_pnl: string;
|
|
93
|
-
closed_amount: string;
|
|
94
|
-
closed_net_entry: string;
|
|
95
|
-
closed_margin: string | null;
|
|
96
|
-
first_fill_timestamp: string;
|
|
97
|
-
last_fill_timestamp: string;
|
|
98
|
-
pre_balance: IndexerServerMatchEventBalances;
|
|
99
|
-
post_balance: IndexerServerMatchEventBalances;
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Match events
|
|
103
|
-
*/
|
|
104
|
-
interface IndexerServerMatchEvent {
|
|
105
|
-
digest: string;
|
|
106
|
-
isolated: boolean;
|
|
107
|
-
order: EIP712OrderValues;
|
|
108
|
-
base_filled: string;
|
|
109
|
-
quote_filled: string;
|
|
110
|
-
fee: string;
|
|
111
|
-
sequencer_fee: string;
|
|
112
|
-
builder_fee: string;
|
|
113
|
-
cumulative_fee: string;
|
|
114
|
-
cumulative_base_filled: string;
|
|
115
|
-
cumulative_quote_filled: string;
|
|
116
|
-
submission_idx: string;
|
|
117
|
-
net_entry_unrealized: string;
|
|
118
|
-
net_entry_cumulative: string;
|
|
119
|
-
pre_balance: IndexerServerMatchEventBalances;
|
|
120
|
-
post_balance: IndexerServerMatchEventBalances;
|
|
121
|
-
is_taker: boolean;
|
|
122
|
-
realized_pnl: string;
|
|
123
|
-
closed_amount: string;
|
|
124
|
-
closed_net_entry: string;
|
|
125
|
-
margin: string | null;
|
|
126
|
-
}
|
|
127
|
-
interface IndexerServerMatchEventBalances {
|
|
128
|
-
base: IndexerServerBalance;
|
|
129
|
-
quote?: IndexerServerBalance;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Oracle price
|
|
133
|
-
*/
|
|
134
|
-
interface IndexerServerOraclePrice {
|
|
135
|
-
product_id: number;
|
|
136
|
-
oracle_price_x18: string;
|
|
137
|
-
update_time: number;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Market snapshots
|
|
141
|
-
*/
|
|
142
|
-
interface IndexerServerMarketSnapshotInterval {
|
|
143
|
-
count: number;
|
|
144
|
-
granularity: number;
|
|
145
|
-
max_time?: string;
|
|
146
|
-
}
|
|
147
|
-
interface IndexerServerMarketSnapshot {
|
|
148
|
-
timestamp: string;
|
|
149
|
-
cumulative_users: string;
|
|
150
|
-
daily_active_users: string;
|
|
151
|
-
tvl: string;
|
|
152
|
-
cumulative_volumes: Record<string, string>;
|
|
153
|
-
cumulative_taker_fees: Record<string, string>;
|
|
154
|
-
cumulative_sequencer_fees: Record<string, string>;
|
|
155
|
-
cumulative_maker_fees: Record<string, string>;
|
|
156
|
-
cumulative_trades: Record<string, string>;
|
|
157
|
-
cumulative_liquidation_amounts: Record<string, string>;
|
|
158
|
-
open_interests: Record<string, string>;
|
|
159
|
-
total_deposits: Record<string, string>;
|
|
160
|
-
total_borrows: Record<string, string>;
|
|
161
|
-
funding_rates: Record<string, string>;
|
|
162
|
-
deposit_rates: Record<string, string>;
|
|
163
|
-
borrow_rates: Record<string, string>;
|
|
164
|
-
cumulative_trade_sizes: Record<string, string>;
|
|
165
|
-
cumulative_inflows: Record<string, string>;
|
|
166
|
-
cumulative_outflows: Record<string, string>;
|
|
167
|
-
oracle_prices: Record<string, string>;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Interest / funding
|
|
171
|
-
*/
|
|
172
|
-
interface IndexerServerProductPayment {
|
|
173
|
-
product_id: number;
|
|
174
|
-
idx: string;
|
|
175
|
-
timestamp: string;
|
|
176
|
-
amount: string;
|
|
177
|
-
balance_amount: string;
|
|
178
|
-
rate_x18: string;
|
|
179
|
-
oracle_price_x18: string;
|
|
180
|
-
isolated: boolean;
|
|
181
|
-
isolated_product_id: number | null;
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Maker stats
|
|
185
|
-
*/
|
|
186
|
-
interface IndexerServerMakerData {
|
|
187
|
-
timestamp: string;
|
|
188
|
-
maker_fee: string;
|
|
189
|
-
uptime: string;
|
|
190
|
-
sum_q_min: string;
|
|
191
|
-
q_score: string;
|
|
192
|
-
maker_share: string;
|
|
193
|
-
expected_maker_reward: string;
|
|
194
|
-
}
|
|
195
|
-
interface IndexerServerMaker {
|
|
196
|
-
address: string;
|
|
197
|
-
data: IndexerServerMakerData[];
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Leaderboard
|
|
201
|
-
*/
|
|
202
|
-
interface IndexerServerSocialAccount {
|
|
203
|
-
provider: 'twitter';
|
|
204
|
-
username: string;
|
|
205
|
-
display_name: string;
|
|
206
|
-
profile_image_url: string;
|
|
207
|
-
}
|
|
208
|
-
interface IndexerServerLeaderboardTrackPosition {
|
|
209
|
-
value: string;
|
|
210
|
-
rank: string;
|
|
211
|
-
qualification_status: 'qualified' | 'insufficient_account_value';
|
|
212
|
-
}
|
|
213
|
-
interface IndexerServerLeaderboardContestTrack {
|
|
214
|
-
track_id: number;
|
|
215
|
-
rank_type: IndexerLeaderboardRankType;
|
|
216
|
-
sort_order: 'ASC' | 'DESC';
|
|
217
|
-
threshold: string;
|
|
218
|
-
}
|
|
219
|
-
interface IndexerServerLeaderboardPosition {
|
|
220
|
-
subaccount: string;
|
|
221
|
-
contest_id: number;
|
|
222
|
-
account_value: string;
|
|
223
|
-
update_time: string;
|
|
224
|
-
tracks: Partial<Record<IndexerLeaderboardRankType, IndexerServerLeaderboardTrackPosition>>;
|
|
225
|
-
social_accounts: IndexerServerSocialAccount[];
|
|
226
|
-
}
|
|
227
|
-
interface IndexerServerLeaderboardContest {
|
|
228
|
-
contest_id: number;
|
|
229
|
-
start_time: string;
|
|
230
|
-
end_time: string;
|
|
231
|
-
count: string;
|
|
232
|
-
last_updated: string;
|
|
233
|
-
product_ids: number[];
|
|
234
|
-
active: boolean;
|
|
235
|
-
title: string;
|
|
236
|
-
description: string;
|
|
237
|
-
tracks: IndexerServerLeaderboardContestTrack[];
|
|
238
|
-
}
|
|
239
|
-
interface IndexerServerLeaderboardRegistration {
|
|
240
|
-
subaccount: string;
|
|
241
|
-
contest_id: number;
|
|
242
|
-
update_time: string;
|
|
243
|
-
}
|
|
244
|
-
/**
|
|
245
|
-
* NLP
|
|
246
|
-
*/
|
|
247
|
-
interface IndexerServerNlpSnapshot {
|
|
248
|
-
cumulative_burn_quote: string;
|
|
249
|
-
cumulative_mint_quote: string;
|
|
250
|
-
cumulative_pnl: string;
|
|
251
|
-
cumulative_trades: string;
|
|
252
|
-
cumulative_volume: string;
|
|
253
|
-
depositors: string;
|
|
254
|
-
oracle_price_x18: string;
|
|
255
|
-
submission_idx: string;
|
|
256
|
-
timestamp: string;
|
|
257
|
-
tvl: string;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export type { IndexerServerBalance, IndexerServerCandlestick, IndexerServerEvent, IndexerServerLeaderboardContest, IndexerServerLeaderboardContestTrack, IndexerServerLeaderboardPosition, IndexerServerLeaderboardRegistration, IndexerServerLeaderboardTrackPosition, IndexerServerMaker, IndexerServerMakerData, IndexerServerMarketSnapshot, IndexerServerMarketSnapshotInterval, IndexerServerMatchEvent, IndexerServerMatchEventBalances, IndexerServerNlpSnapshot, IndexerServerOraclePrice, IndexerServerOrder, IndexerServerProduct, IndexerServerProductPayment, IndexerServerProductSnapshot, IndexerServerSnapshotsInterval, IndexerServerSocialAccount, IndexerServerTx };
|
|
1
|
+
import { C as IndexerServerTx, S as IndexerServerSocialAccount, _ as IndexerServerOrder, a as IndexerServerLeaderboardContestTrack, b as IndexerServerProductSnapshot, c as IndexerServerLeaderboardTrackPosition, d as IndexerServerMarketSnapshot, f as IndexerServerMarketSnapshotInterval, g as IndexerServerOraclePrice, h as IndexerServerNlpSnapshot, i as IndexerServerLeaderboardContest, l as IndexerServerMaker, m as IndexerServerMatchEventBalances, n as IndexerServerCandlestick, o as IndexerServerLeaderboardPosition, p as IndexerServerMatchEvent, r as IndexerServerEvent, s as IndexerServerLeaderboardRegistration, t as IndexerServerBalance, u as IndexerServerMakerData, v as IndexerServerProduct, x as IndexerServerSnapshotsInterval, y as IndexerServerProductPayment } from "../serverModelTypes-DPHMUSZe.js";
|
|
2
|
+
export { IndexerServerBalance, IndexerServerCandlestick, IndexerServerEvent, IndexerServerLeaderboardContest, IndexerServerLeaderboardContestTrack, IndexerServerLeaderboardPosition, IndexerServerLeaderboardRegistration, IndexerServerLeaderboardTrackPosition, IndexerServerMaker, IndexerServerMakerData, IndexerServerMarketSnapshot, IndexerServerMarketSnapshotInterval, IndexerServerMatchEvent, IndexerServerMatchEventBalances, IndexerServerNlpSnapshot, IndexerServerOraclePrice, IndexerServerOrder, IndexerServerProduct, IndexerServerProductPayment, IndexerServerProductSnapshot, IndexerServerSnapshotsInterval, IndexerServerSocialAccount, IndexerServerTx };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
-
|
|
16
|
-
// src/types/serverTypes.ts
|
|
17
|
-
var serverTypes_exports = {};
|
|
18
|
-
module.exports = __toCommonJS(serverTypes_exports);
|
|
19
|
-
//# sourceMappingURL=serverTypes.cjs.map
|