@sui-tracker/shared 1.0.98 → 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;
|
|
@@ -61,6 +76,8 @@ export interface PoolDataDetail {
|
|
|
61
76
|
stats: {
|
|
62
77
|
[key: number]: IPoolStats;
|
|
63
78
|
};
|
|
79
|
+
reserveA?: number;
|
|
80
|
+
reserveB?: number;
|
|
64
81
|
}
|
|
65
82
|
export interface IPoolStats {
|
|
66
83
|
priceChange: number;
|
|
@@ -126,6 +143,8 @@ export interface ListPool {
|
|
|
126
143
|
priceChange1440m: number;
|
|
127
144
|
aIsBase: boolean;
|
|
128
145
|
volumeChangePercentage: number;
|
|
146
|
+
reserveA?: number;
|
|
147
|
+
reserveB?: number;
|
|
129
148
|
}
|
|
130
149
|
export interface GetListPoolsResponse extends BaseResponse {
|
|
131
150
|
data: {
|
|
@@ -258,15 +277,41 @@ export interface SearchTokensResponse extends BaseResponse {
|
|
|
258
277
|
data: TokenData[];
|
|
259
278
|
count: number;
|
|
260
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
|
+
}
|
|
261
303
|
export interface GetListTokensRequest {
|
|
262
304
|
type: 'trending' | 'top-volume' | 'new-tokens';
|
|
263
305
|
label: number;
|
|
264
306
|
page?: number;
|
|
265
307
|
limit?: number;
|
|
308
|
+
filter?: GetListTokensFilter;
|
|
266
309
|
}
|
|
267
310
|
export interface GetListTokensResponse extends BaseResponse {
|
|
268
|
-
data:
|
|
269
|
-
|
|
311
|
+
data: {
|
|
312
|
+
list: ListToken[];
|
|
313
|
+
total: number;
|
|
314
|
+
};
|
|
270
315
|
}
|
|
271
316
|
export interface GetTokenChartRequest {
|
|
272
317
|
tokenAddress: string;
|
|
@@ -291,13 +336,15 @@ export interface GetTokenTransactionsResponse extends BaseResponse {
|
|
|
291
336
|
data: TokenSwapData[];
|
|
292
337
|
}
|
|
293
338
|
export interface TokenStatsData {
|
|
294
|
-
priceChange: number;
|
|
295
339
|
totalVolume: number;
|
|
296
340
|
totalTx: number;
|
|
297
341
|
totalMaker: number;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
342
|
+
totalVolumeBuy: number;
|
|
343
|
+
totalVolumeSell: number;
|
|
344
|
+
totalTxBuy: number;
|
|
345
|
+
totalTxSell: number;
|
|
346
|
+
totalMakerBuy: number;
|
|
347
|
+
totalMakerSell: number;
|
|
301
348
|
}
|
|
302
349
|
export interface TokenDetailData {
|
|
303
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
|
|
|
@@ -79,6 +76,8 @@ message PoolDataDetail {
|
|
|
79
76
|
string pool = 7;
|
|
80
77
|
bool aIsBase = 8;
|
|
81
78
|
map<int32, IPoolStats> stats = 9;
|
|
79
|
+
optional double reserveA = 10;
|
|
80
|
+
optional double reserveB = 11;
|
|
82
81
|
}
|
|
83
82
|
|
|
84
83
|
// List pool structure matching ListPool interface
|
|
@@ -108,6 +107,8 @@ message ListPool {
|
|
|
108
107
|
double priceChange1440m = 23;
|
|
109
108
|
bool aIsBase = 24;
|
|
110
109
|
double volumeChangePercentage = 25;
|
|
110
|
+
optional double reserveA = 26;
|
|
111
|
+
optional double reserveB = 27;
|
|
111
112
|
}
|
|
112
113
|
|
|
113
114
|
// List token structure matching ListToken interface
|
|
@@ -124,17 +125,28 @@ message ListToken {
|
|
|
124
125
|
double priceChange60m = 10;
|
|
125
126
|
double priceChange360m = 11;
|
|
126
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;
|
|
127
137
|
}
|
|
128
138
|
|
|
129
139
|
// Token stats structure matching TokenStats entity
|
|
130
140
|
message TokenStatsData {
|
|
131
|
-
double
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
double
|
|
135
|
-
double
|
|
136
|
-
|
|
137
|
-
|
|
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;
|
|
138
150
|
}
|
|
139
151
|
|
|
140
152
|
// Token detail data structure
|