@sui-tracker/shared 1.0.57 → 1.0.58

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.
@@ -24,6 +24,32 @@ export interface PoolData {
24
24
  score: string;
25
25
  currentPrice: string;
26
26
  }
27
+ export interface PoolDataDetail {
28
+ id: string;
29
+ baseToken: TokenData;
30
+ quoteToken: TokenData;
31
+ reserveA?: number;
32
+ reserveB?: number;
33
+ currentPrice: string;
34
+ dex: string;
35
+ statsData: {
36
+ volume: {
37
+ [key: string]: string;
38
+ };
39
+ price: {
40
+ [key: string]: string;
41
+ };
42
+ totalA2b: {
43
+ [key: string]: string;
44
+ };
45
+ totalTx: {
46
+ [key: string]: string;
47
+ };
48
+ totalMakers: {
49
+ [key: string]: string;
50
+ };
51
+ };
52
+ }
27
53
  export interface CandleData {
28
54
  timestamp: string;
29
55
  open: string;
@@ -60,7 +86,7 @@ export interface GetNewPoolsResponse extends BaseResponse {
60
86
  data: PoolData[];
61
87
  }
62
88
  export interface GetPoolResponse extends BaseResponse {
63
- data: PoolData | null;
89
+ data: PoolDataDetail | null;
64
90
  }
65
91
  export interface GetCandleChartResponse extends BaseResponse {
66
92
  data: CandleData[];
@@ -26,6 +26,15 @@ message TokenData {
26
26
  optional string description = 9;
27
27
  }
28
28
 
29
+ // Stats data structure for PoolDataDetail
30
+ message StatsData {
31
+ map<string, string> volume = 1;
32
+ map<string, string> price = 2;
33
+ map<string, string> totalA2b = 3;
34
+ map<string, string> totalTx = 4;
35
+ map<string, string> totalMakers = 5;
36
+ }
37
+
29
38
  // Pool data structure matching PoolData interface
30
39
  message PoolData {
31
40
  string id = 1;
@@ -40,6 +49,18 @@ message PoolData {
40
49
  string currentPrice = 10;
41
50
  }
42
51
 
52
+ // Pool data detail structure matching PoolDataDetail interface
53
+ message PoolDataDetail {
54
+ string id = 1;
55
+ TokenData baseToken = 2;
56
+ TokenData quoteToken = 3;
57
+ optional double reserveA = 4;
58
+ optional double reserveB = 5;
59
+ string currentPrice = 6;
60
+ string dex = 7;
61
+ StatsData statsData = 8;
62
+ }
63
+
43
64
  // Candle data structure matching CandleData interface
44
65
  message CandleData {
45
66
  string timestamp = 1;
@@ -143,7 +164,7 @@ message GetNewPoolsResponse {
143
164
  message GetPoolResponse {
144
165
  bool success = 1;
145
166
  string message = 2;
146
- optional PoolData data = 3; // null in TypeScript becomes optional in proto
167
+ optional PoolDataDetail data = 3; // Updated to use PoolDataDetail instead of PoolData
147
168
  }
148
169
 
149
170
  message GetCandleChartResponse {