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