@sui-tracker/shared 1.0.99 → 1.1.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.
|
@@ -23,19 +23,34 @@ export interface GetListPoolsFilter {
|
|
|
23
23
|
maxAge?: number;
|
|
24
24
|
dex?: DexType[];
|
|
25
25
|
}
|
|
26
|
+
export interface GetListTokensFilter {
|
|
27
|
+
minMaker?: number;
|
|
28
|
+
maxMaker?: number;
|
|
29
|
+
minTx?: number;
|
|
30
|
+
maxTx?: number;
|
|
31
|
+
minVolume?: number;
|
|
32
|
+
maxVolume?: number;
|
|
33
|
+
minPriceChange5m?: number;
|
|
34
|
+
maxPriceChange5m?: number;
|
|
35
|
+
minPriceChange60m?: number;
|
|
36
|
+
maxPriceChange60m?: number;
|
|
37
|
+
minPriceChange360m?: number;
|
|
38
|
+
maxPriceChange360m?: number;
|
|
39
|
+
minPriceChange1440m?: number;
|
|
40
|
+
maxPriceChange1440m?: number;
|
|
41
|
+
minAge?: number;
|
|
42
|
+
maxAge?: number;
|
|
43
|
+
}
|
|
26
44
|
export interface TokenData {
|
|
27
45
|
id: string;
|
|
28
46
|
name?: string | null;
|
|
29
47
|
symbol?: string | null;
|
|
30
48
|
address?: string | null;
|
|
31
49
|
decimals?: number | null;
|
|
32
|
-
iconUrl?: string | null;
|
|
33
50
|
isActive?: boolean | null;
|
|
34
51
|
totalSupply?: string | null;
|
|
35
52
|
description?: string | null;
|
|
36
|
-
|
|
37
|
-
createdTime?: Date | null;
|
|
38
|
-
creator?: string | null;
|
|
53
|
+
price?: number | null;
|
|
39
54
|
}
|
|
40
55
|
export interface PoolData {
|
|
41
56
|
id: string;
|
|
@@ -262,15 +277,41 @@ export interface SearchTokensResponse extends BaseResponse {
|
|
|
262
277
|
data: TokenData[];
|
|
263
278
|
count: number;
|
|
264
279
|
}
|
|
280
|
+
export interface ListToken {
|
|
281
|
+
token: string;
|
|
282
|
+
totalVolume: number;
|
|
283
|
+
totalTx: number;
|
|
284
|
+
totalMaker: number;
|
|
285
|
+
trendingScore: number;
|
|
286
|
+
id: string;
|
|
287
|
+
tokenData: TokenData;
|
|
288
|
+
tokenCreatedTime?: string | null;
|
|
289
|
+
priceChange5m: number;
|
|
290
|
+
priceChange60m: number;
|
|
291
|
+
priceChange360m: number;
|
|
292
|
+
priceChange1440m: number;
|
|
293
|
+
txBuy: number;
|
|
294
|
+
txSell: number;
|
|
295
|
+
makerBuy: number;
|
|
296
|
+
makerSell: number;
|
|
297
|
+
totalBuy: number;
|
|
298
|
+
totalSell: number;
|
|
299
|
+
totalVolumeAgo: number;
|
|
300
|
+
priceAgo: number;
|
|
301
|
+
price: number;
|
|
302
|
+
}
|
|
265
303
|
export interface GetListTokensRequest {
|
|
266
304
|
type: 'trending' | 'top-volume' | 'new-tokens';
|
|
267
305
|
label: number;
|
|
268
306
|
page?: number;
|
|
269
307
|
limit?: number;
|
|
308
|
+
filter?: GetListTokensFilter;
|
|
270
309
|
}
|
|
271
310
|
export interface GetListTokensResponse extends BaseResponse {
|
|
272
|
-
data:
|
|
273
|
-
|
|
311
|
+
data: {
|
|
312
|
+
list: ListToken[];
|
|
313
|
+
total: number;
|
|
314
|
+
};
|
|
274
315
|
}
|
|
275
316
|
export interface GetTokenChartRequest {
|
|
276
317
|
tokenAddress: string;
|
|
@@ -295,13 +336,15 @@ export interface GetTokenTransactionsResponse extends BaseResponse {
|
|
|
295
336
|
data: TokenSwapData[];
|
|
296
337
|
}
|
|
297
338
|
export interface TokenStatsData {
|
|
298
|
-
priceChange: number;
|
|
299
339
|
totalVolume: number;
|
|
300
340
|
totalTx: number;
|
|
301
341
|
totalMaker: number;
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
342
|
+
totalVolumeBuy: number;
|
|
343
|
+
totalVolumeSell: number;
|
|
344
|
+
totalTxBuy: number;
|
|
345
|
+
totalTxSell: number;
|
|
346
|
+
totalMakerBuy: number;
|
|
347
|
+
totalMakerSell: number;
|
|
305
348
|
}
|
|
306
349
|
export interface TokenDetailData {
|
|
307
350
|
token: TokenData;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap-order.interface.js","sourceRoot":"","sources":["../../../src/modules/interfaces/swap-order.interface.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"swap-order.interface.js","sourceRoot":"","sources":["../../../src/modules/interfaces/swap-order.interface.ts"],"names":[],"mappings":";;AAgKC,EAAE,CAAA"}
|
|
@@ -30,13 +30,10 @@ message TokenData {
|
|
|
30
30
|
optional string symbol = 3;
|
|
31
31
|
optional string address = 4;
|
|
32
32
|
optional int32 decimals = 5;
|
|
33
|
-
optional
|
|
34
|
-
optional
|
|
35
|
-
optional string
|
|
36
|
-
optional
|
|
37
|
-
optional string circulatingSupply = 10;
|
|
38
|
-
optional string createdTime = 11;
|
|
39
|
-
optional string creator = 12;
|
|
33
|
+
optional bool isActive = 6;
|
|
34
|
+
optional string totalSupply = 7;
|
|
35
|
+
optional string description = 8;
|
|
36
|
+
optional double price = 9;
|
|
40
37
|
}
|
|
41
38
|
|
|
42
39
|
|
|
@@ -128,17 +125,28 @@ message ListToken {
|
|
|
128
125
|
double priceChange60m = 10;
|
|
129
126
|
double priceChange360m = 11;
|
|
130
127
|
double priceChange1440m = 12;
|
|
128
|
+
int32 txBuy = 13;
|
|
129
|
+
int32 txSell = 14;
|
|
130
|
+
int32 makerBuy = 15;
|
|
131
|
+
int32 makerSell = 16;
|
|
132
|
+
double totalBuy = 17;
|
|
133
|
+
double totalSell = 18;
|
|
134
|
+
double totalVolumeAgo = 19;
|
|
135
|
+
double priceAgo = 20;
|
|
136
|
+
double price = 21;
|
|
131
137
|
}
|
|
132
138
|
|
|
133
139
|
// Token stats structure matching TokenStats entity
|
|
134
140
|
message TokenStatsData {
|
|
135
|
-
double
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
double
|
|
139
|
-
double
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
double totalVolume = 1;
|
|
142
|
+
int32 totalTx = 2;
|
|
143
|
+
double totalMaker = 3;
|
|
144
|
+
double totalVolumeBuy = 4;
|
|
145
|
+
double totalVolumeSell = 5;
|
|
146
|
+
int32 totalTxBuy = 6;
|
|
147
|
+
int32 totalTxSell = 7;
|
|
148
|
+
int32 totalMakerBuy = 8;
|
|
149
|
+
int32 totalMakerSell = 9;
|
|
142
150
|
}
|
|
143
151
|
|
|
144
152
|
// Token detail data structure
|