@sui-tracker/shared 1.0.77 → 1.0.78
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.
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import { Observable } from "rxjs";
|
|
2
2
|
import { BaseResponse } from "./base-request.interface";
|
|
3
|
-
import { TradeType } from "src/interfaces/ISwapOrder.type";
|
|
3
|
+
import { TradeType, DexType } from "src/interfaces/ISwapOrder.type";
|
|
4
|
+
export interface GetListPoolsFilter {
|
|
5
|
+
minMaker?: number;
|
|
6
|
+
maxMaker?: number;
|
|
7
|
+
minTx?: number;
|
|
8
|
+
maxTx?: number;
|
|
9
|
+
minVolume?: number;
|
|
10
|
+
maxVolume?: number;
|
|
11
|
+
minPriceChange5m?: number;
|
|
12
|
+
maxPriceChange5m?: number;
|
|
13
|
+
minPriceChange60m?: number;
|
|
14
|
+
maxPriceChange60m?: number;
|
|
15
|
+
minPriceChange360m?: number;
|
|
16
|
+
maxPriceChange360m?: number;
|
|
17
|
+
minPriceChange1440m?: number;
|
|
18
|
+
maxPriceChange1440m?: number;
|
|
19
|
+
maxPriceChange?: number;
|
|
20
|
+
minMarketCap?: number;
|
|
21
|
+
maxMarketCap?: number;
|
|
22
|
+
minAge?: number;
|
|
23
|
+
maxAge?: number;
|
|
24
|
+
dex?: DexType[];
|
|
25
|
+
}
|
|
4
26
|
export interface TokenData {
|
|
5
27
|
id: string;
|
|
6
28
|
name?: string | null;
|
|
@@ -65,6 +87,7 @@ export interface GetListPoolsRequest {
|
|
|
65
87
|
label: 5 | 60 | 360 | 1440;
|
|
66
88
|
page?: number;
|
|
67
89
|
limit?: number;
|
|
90
|
+
filter?: GetListPoolsFilter;
|
|
68
91
|
}
|
|
69
92
|
export interface GetPoolRequest {
|
|
70
93
|
id: string;
|
|
@@ -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":";;AA0IC,EAAE,CAAA"}
|
|
@@ -149,12 +149,37 @@ message TrendingTokenData {
|
|
|
149
149
|
string score = 14;
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
// Filter message for GetListPoolsRequest
|
|
153
|
+
message GetListPoolsFilter {
|
|
154
|
+
optional double minMaker = 1;
|
|
155
|
+
optional double maxMaker = 2;
|
|
156
|
+
optional int32 minTx = 3;
|
|
157
|
+
optional int32 maxTx = 4;
|
|
158
|
+
optional double minVolume = 5;
|
|
159
|
+
optional double maxVolume = 6;
|
|
160
|
+
optional double minPriceChange5m = 7;
|
|
161
|
+
optional double maxPriceChange5m = 8;
|
|
162
|
+
optional double minPriceChange60m = 9;
|
|
163
|
+
optional double maxPriceChange60m = 10;
|
|
164
|
+
optional double minPriceChange360m = 11;
|
|
165
|
+
optional double maxPriceChange360m = 12;
|
|
166
|
+
optional double minPriceChange1440m = 13;
|
|
167
|
+
optional double maxPriceChange1440m = 14;
|
|
168
|
+
optional double maxPriceChange = 15;
|
|
169
|
+
optional double minMarketCap = 16;
|
|
170
|
+
optional double maxMarketCap = 17;
|
|
171
|
+
optional int32 minAge = 18;
|
|
172
|
+
optional int32 maxAge = 19;
|
|
173
|
+
repeated string dex = 20;
|
|
174
|
+
}
|
|
175
|
+
|
|
152
176
|
// Request messages matching TypeScript interfaces
|
|
153
177
|
message GetListPoolsRequest {
|
|
154
178
|
string type = 1; // 'trending' | 'top-volume' | 'new-pools'
|
|
155
179
|
int32 label = 2; // 5 | 60 | 360 | 1440
|
|
156
180
|
optional int32 page = 3;
|
|
157
181
|
optional int32 limit = 4;
|
|
182
|
+
optional GetListPoolsFilter filter = 5;
|
|
158
183
|
}
|
|
159
184
|
|
|
160
185
|
message GetNewPoolsRequest {
|