@uniswap/client-data-api 0.0.295 → 0.0.297
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.
- package/dist/buf/validate/validate_pb.d.ts +4833 -0
- package/dist/buf/validate/validate_pb.js +356 -0
- package/dist/data/v1/api-DataApiService_connectquery.d.ts +88 -200
- package/dist/data/v1/api-DataApiService_connectquery.js +24 -224
- package/dist/data/v1/api_pb.d.ts +843 -845
- package/dist/data/v1/api_pb.js +393 -2676
- package/dist/data/v1/featureGating_pb.d.ts +31 -26
- package/dist/data/v1/featureGating_pb.js +13 -50
- package/dist/data/v1/plan_pb.d.ts +29 -0
- package/dist/data/v1/plan_pb.js +30 -69
- package/dist/data/v1/poolTypes_pb.d.ts +118 -127
- package/dist/data/v1/poolTypes_pb.js +47 -438
- package/dist/data/v1/types_pb.d.ts +1276 -1334
- package/dist/data/v1/types_pb.js +249 -2021
- package/dist/data/v1/workerService-WorkerService_connectquery.d.ts +16 -38
- package/dist/data/v1/workerService-WorkerService_connectquery.js +6 -44
- package/dist/data/v1/workerService_pb.d.ts +99 -92
- package/dist/data/v1/workerService_pb.js +37 -248
- package/dist/data/v2/api-DataApiService_connectquery.d.ts +148 -335
- package/dist/data/v2/api-DataApiService_connectquery.js +39 -374
- package/dist/data/v2/api_pb.d.ts +1087 -1054
- package/dist/data/v2/api_pb.js +483 -3805
- package/dist/data/v2/categories_pb.d.ts +130 -142
- package/dist/data/v2/categories_pb.js +55 -457
- package/dist/data/v2/common_pb.d.ts +23 -25
- package/dist/data/v2/common_pb.js +12 -59
- package/dist/data/v2/earn_pb.d.ts +92 -92
- package/dist/data/v2/earn_pb.js +33 -229
- package/dist/data/v2/hooks_pb.d.ts +119 -135
- package/dist/data/v2/hooks_pb.js +49 -315
- package/dist/data/v2/search-SearchService_connectquery.d.ts +4 -11
- package/dist/data/v2/search-SearchService_connectquery.js +3 -14
- package/dist/data/v2/search_pb.d.ts +139 -120
- package/dist/data/v2/search_pb.js +34 -225
- package/dist/data/v2/tokenGroups_pb.d.ts +31 -36
- package/dist/data/v2/tokenGroups_pb.js +16 -126
- package/dist/data/v2/types_pb.d.ts +1823 -1846
- package/dist/data/v2/types_pb.js +282 -2141
- package/dist/data/v2/workerService-WorkerService_connectquery.d.ts +4 -11
- package/dist/data/v2/workerService-WorkerService_connectquery.js +3 -14
- package/dist/data/v2/workerService_pb.d.ts +35 -22
- package/dist/data/v2/workerService_pb.js +20 -47
- package/package.json +1 -1
- package/dist/data/v1/api_connect.d.ts +0 -208
- package/dist/data/v1/api_connect.js +0 -212
- package/dist/data/v1/workerService_connect.d.ts +0 -46
- package/dist/data/v1/workerService_connect.js +0 -50
- package/dist/data/v2/api_connect.d.ts +0 -343
- package/dist/data/v2/api_connect.js +0 -347
- package/dist/data/v2/search_connect.d.ts +0 -21
- package/dist/data/v2/search_connect.js +0 -25
- package/dist/data/v2/workerService_connect.d.ts +0 -23
- package/dist/data/v2/workerService_connect.js +0 -27
|
@@ -1,88 +1,16 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import {
|
|
3
|
-
import { RankedMultichainToken, RankedPool, TokenLaunchProvenance } from "./types_pb
|
|
4
|
-
import {
|
|
1
|
+
import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";
|
|
2
|
+
import type { RankedTokenGroup } from "./tokenGroups_pb";
|
|
3
|
+
import type { RankedMultichainToken, RankedPool, TokenLaunchProvenance } from "./types_pb";
|
|
4
|
+
import type { Timestamp } from "@bufbuild/protobuf/wkt";
|
|
5
|
+
import type { Message } from "@bufbuild/protobuf";
|
|
5
6
|
/**
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
export declare enum SearchType {
|
|
9
|
-
/**
|
|
10
|
-
* @generated from enum value: SEARCH_TYPE_UNSPECIFIED = 0;
|
|
11
|
-
*/
|
|
12
|
-
UNSPECIFIED = 0,
|
|
13
|
-
/**
|
|
14
|
-
* @generated from enum value: SEARCH_TYPE_TOKEN = 1;
|
|
15
|
-
*/
|
|
16
|
-
TOKEN = 1,
|
|
17
|
-
/**
|
|
18
|
-
* @generated from enum value: SEARCH_TYPE_POOL = 2;
|
|
19
|
-
*/
|
|
20
|
-
POOL = 2,
|
|
21
|
-
/**
|
|
22
|
-
* @generated from enum value: SEARCH_TYPE_AUCTION = 3;
|
|
23
|
-
*/
|
|
24
|
-
AUCTION = 3,
|
|
25
|
-
/**
|
|
26
|
-
* @generated from enum value: SEARCH_TYPE_CATEGORY = 4;
|
|
27
|
-
*/
|
|
28
|
-
CATEGORY = 4,
|
|
29
|
-
/**
|
|
30
|
-
* Groups whose name, ticker, or a member's name or symbol has a word that
|
|
31
|
-
* starts with the query ("nordisk" hits Novo Nordisk); a "0x" query
|
|
32
|
-
* matches member addresses instead. TokenGroupListFilter.search_query rule.
|
|
33
|
-
*
|
|
34
|
-
* @generated from enum value: SEARCH_TYPE_TOKEN_GROUP = 5;
|
|
35
|
-
*/
|
|
36
|
-
TOKEN_GROUP = 5,
|
|
37
|
-
/**
|
|
38
|
-
* Pool categories whose name has a word that starts with the query.
|
|
39
|
-
* CATEGORY stays token-only.
|
|
40
|
-
*
|
|
41
|
-
* @generated from enum value: SEARCH_TYPE_POOL_CATEGORY = 6;
|
|
42
|
-
*/
|
|
43
|
-
POOL_CATEGORY = 6
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Where an auction is in its life, decided server-side from the chain head against start_block/end_block and, once ended, from the raise outcome.
|
|
47
|
-
*
|
|
48
|
-
* @generated from enum data.v2.AuctionLifecycle
|
|
7
|
+
* Describes the file data/v2/search.proto.
|
|
49
8
|
*/
|
|
50
|
-
export declare
|
|
51
|
-
/**
|
|
52
|
-
* The current row, the chain head or the raise figures were unavailable; the block times and raw raise fields, when set, still let a client classify.
|
|
53
|
-
*
|
|
54
|
-
* @generated from enum value: AUCTION_LIFECYCLE_UNSPECIFIED = 0;
|
|
55
|
-
*/
|
|
56
|
-
UNSPECIFIED = 0,
|
|
57
|
-
/**
|
|
58
|
-
* start_block not yet reached.
|
|
59
|
-
*
|
|
60
|
-
* @generated from enum value: AUCTION_LIFECYCLE_UPCOMING = 1;
|
|
61
|
-
*/
|
|
62
|
-
UPCOMING = 1,
|
|
63
|
-
/**
|
|
64
|
-
* start_block reached and end_block not yet reached (the data.v1 AuctionStatusFilter ACTIVE rule).
|
|
65
|
-
*
|
|
66
|
-
* @generated from enum value: AUCTION_LIFECYCLE_LIVE = 2;
|
|
67
|
-
*/
|
|
68
|
-
LIVE = 2,
|
|
69
|
-
/**
|
|
70
|
-
* Ended with total_bid_volume >= required_currency_raised, or already migrated into its pool; the migration itself may still be pending.
|
|
71
|
-
*
|
|
72
|
-
* @generated from enum value: AUCTION_LIFECYCLE_GRADUATED = 3;
|
|
73
|
-
*/
|
|
74
|
-
GRADUATED = 3,
|
|
75
|
-
/**
|
|
76
|
-
* Ended with total_bid_volume < required_currency_raised.
|
|
77
|
-
*
|
|
78
|
-
* @generated from enum value: AUCTION_LIFECYCLE_FAILED = 4;
|
|
79
|
-
*/
|
|
80
|
-
FAILED = 4
|
|
81
|
-
}
|
|
9
|
+
export declare const file_data_v2_search: GenFile;
|
|
82
10
|
/**
|
|
83
11
|
* @generated from message data.v2.SearchRequest
|
|
84
12
|
*/
|
|
85
|
-
export
|
|
13
|
+
export type SearchRequest = Message<"data.v2.SearchRequest"> & {
|
|
86
14
|
/**
|
|
87
15
|
* free text, or a token/pool/auction address
|
|
88
16
|
*
|
|
@@ -106,20 +34,17 @@ export declare class SearchRequest extends Message<SearchRequest> {
|
|
|
106
34
|
*
|
|
107
35
|
* @generated from field: optional uint32 max_results = 4;
|
|
108
36
|
*/
|
|
109
|
-
maxResults?: number;
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchRequest;
|
|
117
|
-
static equals(a: SearchRequest | PlainMessage<SearchRequest> | undefined, b: SearchRequest | PlainMessage<SearchRequest> | undefined): boolean;
|
|
118
|
-
}
|
|
37
|
+
maxResults?: number | undefined;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Describes the message data.v2.SearchRequest.
|
|
41
|
+
* Use `create(SearchRequestSchema)` to create a new message.
|
|
42
|
+
*/
|
|
43
|
+
export declare const SearchRequestSchema: GenMessage<SearchRequest>;
|
|
119
44
|
/**
|
|
120
45
|
* @generated from message data.v2.SearchResponse
|
|
121
46
|
*/
|
|
122
|
-
export
|
|
47
|
+
export type SearchResponse = Message<"data.v2.SearchResponse"> & {
|
|
123
48
|
/**
|
|
124
49
|
* Ranker-ordered, same row shape as ListTokens; hidden results (malicious,
|
|
125
50
|
* blocklisted, URL in name) are dropped server-side, except the token a
|
|
@@ -171,19 +96,16 @@ export declare class SearchResponse extends Message<SearchResponse> {
|
|
|
171
96
|
* @generated from field: repeated string pool_category_ids = 7;
|
|
172
97
|
*/
|
|
173
98
|
poolCategoryIds: string[];
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchResponse;
|
|
181
|
-
static equals(a: SearchResponse | PlainMessage<SearchResponse> | undefined, b: SearchResponse | PlainMessage<SearchResponse> | undefined): boolean;
|
|
182
|
-
}
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* Describes the message data.v2.SearchResponse.
|
|
102
|
+
* Use `create(SearchResponseSchema)` to create a new message.
|
|
103
|
+
*/
|
|
104
|
+
export declare const SearchResponseSchema: GenMessage<SearchResponse>;
|
|
183
105
|
/**
|
|
184
106
|
* @generated from message data.v2.SearchAuction
|
|
185
107
|
*/
|
|
186
|
-
export
|
|
108
|
+
export type SearchAuction = Message<"data.v2.SearchAuction"> & {
|
|
187
109
|
/**
|
|
188
110
|
* @generated from field: string auction_id = 1;
|
|
189
111
|
*/
|
|
@@ -217,19 +139,19 @@ export declare class SearchAuction extends Message<SearchAuction> {
|
|
|
217
139
|
*
|
|
218
140
|
* @generated from field: optional string fdv_usd = 8;
|
|
219
141
|
*/
|
|
220
|
-
fdvUsd?: string;
|
|
142
|
+
fdvUsd?: string | undefined;
|
|
221
143
|
/**
|
|
222
144
|
* Same rules as data.v1.Auction.estimated_end_time, served for every lifecycle (a graduated auction's end is its "launched x ago" anchor); unset when unresolvable.
|
|
223
145
|
*
|
|
224
146
|
* @generated from field: optional google.protobuf.Timestamp estimated_end_time = 9;
|
|
225
147
|
*/
|
|
226
|
-
estimatedEndTime?: Timestamp;
|
|
148
|
+
estimatedEndTime?: Timestamp | undefined;
|
|
227
149
|
/**
|
|
228
150
|
* Same rules as data.v1.Auction.estimated_start_time; unset when unresolvable.
|
|
229
151
|
*
|
|
230
152
|
* @generated from field: optional google.protobuf.Timestamp estimated_start_time = 10;
|
|
231
153
|
*/
|
|
232
|
-
estimatedStartTime?: Timestamp;
|
|
154
|
+
estimatedStartTime?: Timestamp | undefined;
|
|
233
155
|
/**
|
|
234
156
|
* @generated from field: data.v2.AuctionLifecycle lifecycle = 11;
|
|
235
157
|
*/
|
|
@@ -239,55 +161,152 @@ export declare class SearchAuction extends Message<SearchAuction> {
|
|
|
239
161
|
*
|
|
240
162
|
* @generated from field: optional data.v2.TokenLaunchProvenance launch_provenance = 12;
|
|
241
163
|
*/
|
|
242
|
-
launchProvenance?: TokenLaunchProvenance;
|
|
164
|
+
launchProvenance?: TokenLaunchProvenance | undefined;
|
|
243
165
|
/**
|
|
244
166
|
* Raw bid volume, an integer string in the raise currency's smallest unit; unset when unavailable or not an integer.
|
|
245
167
|
*
|
|
246
168
|
* @generated from field: optional string total_bid_volume = 13;
|
|
247
169
|
*/
|
|
248
|
-
totalBidVolume?: string;
|
|
170
|
+
totalBidVolume?: string | undefined;
|
|
249
171
|
/**
|
|
250
172
|
* Raw raise target that decides GRADUATED vs FAILED, in the units of total_bid_volume; unset when unavailable or not an integer.
|
|
251
173
|
*
|
|
252
174
|
* @generated from field: optional string required_currency_raised = 14;
|
|
253
175
|
*/
|
|
254
|
-
requiredCurrencyRaised?: string;
|
|
176
|
+
requiredCurrencyRaised?: string | undefined;
|
|
255
177
|
/**
|
|
256
178
|
* EIP-55 checksummed raise currency, the zero address for the chain's native currency; unset when unavailable or not an address.
|
|
257
179
|
*
|
|
258
180
|
* @generated from field: optional string currency_address = 15;
|
|
259
181
|
*/
|
|
260
|
-
currencyAddress?: string;
|
|
182
|
+
currencyAddress?: string | undefined;
|
|
261
183
|
/**
|
|
262
184
|
* Raise currency decimals (0-255), for rendering the raw raise fields; unset when unknown.
|
|
263
185
|
*
|
|
264
186
|
* @generated from field: optional uint32 currency_decimals = 16;
|
|
265
187
|
*/
|
|
266
|
-
currencyDecimals?: number;
|
|
188
|
+
currencyDecimals?: number | undefined;
|
|
267
189
|
/**
|
|
268
190
|
* True when the token's pool listing is non-empty: data.v2 ListPools for token_address on this chain, as the token details page requests it; false when that listing is empty; unset when the lookup failed. Cached per token and refreshed after 60s, never read from the index.
|
|
269
191
|
*
|
|
270
192
|
* @generated from field: optional bool is_tradeable = 17;
|
|
271
193
|
*/
|
|
272
|
-
isTradeable?: boolean;
|
|
194
|
+
isTradeable?: boolean | undefined;
|
|
273
195
|
/**
|
|
274
196
|
* Distinct wallets that have bid, all-time, exited bids included (data.v1 unique_bidder_count); unset when unavailable.
|
|
275
197
|
*
|
|
276
198
|
* @generated from field: optional int32 bidder_count = 18;
|
|
277
199
|
*/
|
|
278
|
-
bidderCount?: number;
|
|
200
|
+
bidderCount?: number | undefined;
|
|
279
201
|
/**
|
|
280
202
|
* Same rules as data.v1.Auction.token_image_url: the ops-set override (liquidity's auction_token_logo_overrides config key), else the creator's moderation-passed image, else a provider-attributed logo when the launch has no servable image; an ipfs:// or https URL, unset when none applies.
|
|
281
203
|
*
|
|
282
204
|
* @generated from field: optional string token_image_url = 19;
|
|
283
205
|
*/
|
|
284
|
-
tokenImageUrl?: string;
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
206
|
+
tokenImageUrl?: string | undefined;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Describes the message data.v2.SearchAuction.
|
|
210
|
+
* Use `create(SearchAuctionSchema)` to create a new message.
|
|
211
|
+
*/
|
|
212
|
+
export declare const SearchAuctionSchema: GenMessage<SearchAuction>;
|
|
213
|
+
/**
|
|
214
|
+
* @generated from enum data.v2.SearchType
|
|
215
|
+
*/
|
|
216
|
+
export declare enum SearchType {
|
|
217
|
+
/**
|
|
218
|
+
* @generated from enum value: SEARCH_TYPE_UNSPECIFIED = 0;
|
|
219
|
+
*/
|
|
220
|
+
UNSPECIFIED = 0,
|
|
221
|
+
/**
|
|
222
|
+
* @generated from enum value: SEARCH_TYPE_TOKEN = 1;
|
|
223
|
+
*/
|
|
224
|
+
TOKEN = 1,
|
|
225
|
+
/**
|
|
226
|
+
* @generated from enum value: SEARCH_TYPE_POOL = 2;
|
|
227
|
+
*/
|
|
228
|
+
POOL = 2,
|
|
229
|
+
/**
|
|
230
|
+
* @generated from enum value: SEARCH_TYPE_AUCTION = 3;
|
|
231
|
+
*/
|
|
232
|
+
AUCTION = 3,
|
|
233
|
+
/**
|
|
234
|
+
* @generated from enum value: SEARCH_TYPE_CATEGORY = 4;
|
|
235
|
+
*/
|
|
236
|
+
CATEGORY = 4,
|
|
237
|
+
/**
|
|
238
|
+
* Groups whose name, ticker, or a member's name or symbol has a word that
|
|
239
|
+
* starts with the query ("nordisk" hits Novo Nordisk); a "0x" query
|
|
240
|
+
* matches member addresses instead. TokenGroupListFilter.search_query rule.
|
|
241
|
+
*
|
|
242
|
+
* @generated from enum value: SEARCH_TYPE_TOKEN_GROUP = 5;
|
|
243
|
+
*/
|
|
244
|
+
TOKEN_GROUP = 5,
|
|
245
|
+
/**
|
|
246
|
+
* Pool categories whose name has a word that starts with the query.
|
|
247
|
+
* CATEGORY stays token-only.
|
|
248
|
+
*
|
|
249
|
+
* @generated from enum value: SEARCH_TYPE_POOL_CATEGORY = 6;
|
|
250
|
+
*/
|
|
251
|
+
POOL_CATEGORY = 6
|
|
252
|
+
}
|
|
253
|
+
/**
|
|
254
|
+
* Describes the enum data.v2.SearchType.
|
|
255
|
+
*/
|
|
256
|
+
export declare const SearchTypeSchema: GenEnum<SearchType>;
|
|
257
|
+
/**
|
|
258
|
+
* Where an auction is in its life, decided server-side from the chain head against start_block/end_block and, once ended, from the raise outcome.
|
|
259
|
+
*
|
|
260
|
+
* @generated from enum data.v2.AuctionLifecycle
|
|
261
|
+
*/
|
|
262
|
+
export declare enum AuctionLifecycle {
|
|
263
|
+
/**
|
|
264
|
+
* The current row, the chain head or the raise figures were unavailable; the block times and raw raise fields, when set, still let a client classify.
|
|
265
|
+
*
|
|
266
|
+
* @generated from enum value: AUCTION_LIFECYCLE_UNSPECIFIED = 0;
|
|
267
|
+
*/
|
|
268
|
+
UNSPECIFIED = 0,
|
|
269
|
+
/**
|
|
270
|
+
* start_block not yet reached.
|
|
271
|
+
*
|
|
272
|
+
* @generated from enum value: AUCTION_LIFECYCLE_UPCOMING = 1;
|
|
273
|
+
*/
|
|
274
|
+
UPCOMING = 1,
|
|
275
|
+
/**
|
|
276
|
+
* start_block reached and end_block not yet reached (the data.v1 AuctionStatusFilter ACTIVE rule).
|
|
277
|
+
*
|
|
278
|
+
* @generated from enum value: AUCTION_LIFECYCLE_LIVE = 2;
|
|
279
|
+
*/
|
|
280
|
+
LIVE = 2,
|
|
281
|
+
/**
|
|
282
|
+
* Ended with total_bid_volume >= required_currency_raised, or already migrated into its pool; the migration itself may still be pending.
|
|
283
|
+
*
|
|
284
|
+
* @generated from enum value: AUCTION_LIFECYCLE_GRADUATED = 3;
|
|
285
|
+
*/
|
|
286
|
+
GRADUATED = 3,
|
|
287
|
+
/**
|
|
288
|
+
* Ended with total_bid_volume < required_currency_raised.
|
|
289
|
+
*
|
|
290
|
+
* @generated from enum value: AUCTION_LIFECYCLE_FAILED = 4;
|
|
291
|
+
*/
|
|
292
|
+
FAILED = 4
|
|
293
293
|
}
|
|
294
|
+
/**
|
|
295
|
+
* Describes the enum data.v2.AuctionLifecycle.
|
|
296
|
+
*/
|
|
297
|
+
export declare const AuctionLifecycleSchema: GenEnum<AuctionLifecycle>;
|
|
298
|
+
/**
|
|
299
|
+
* Search V2 (see PRD). Standalone service, mirroring data.v1's SearchService.
|
|
300
|
+
*
|
|
301
|
+
* @generated from service data.v2.SearchService
|
|
302
|
+
*/
|
|
303
|
+
export declare const SearchService: GenService<{
|
|
304
|
+
/**
|
|
305
|
+
* @generated from rpc data.v2.SearchService.Search
|
|
306
|
+
*/
|
|
307
|
+
search: {
|
|
308
|
+
methodKind: "unary";
|
|
309
|
+
input: typeof SearchRequestSchema;
|
|
310
|
+
output: typeof SearchResponseSchema;
|
|
311
|
+
};
|
|
312
|
+
}>;
|
|
@@ -1,10 +1,29 @@
|
|
|
1
|
-
// @generated by protoc-gen-es
|
|
1
|
+
// @generated by protoc-gen-es v2.16.0 with parameter "target=ts"
|
|
2
2
|
// @generated from file data/v2/search.proto (package data.v2, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2";
|
|
5
|
+
import { file_data_v2_tokenGroups } from "./tokenGroups_pb";
|
|
6
|
+
import { file_data_v2_types } from "./types_pb";
|
|
7
|
+
import { file_google_protobuf_timestamp } from "@bufbuild/protobuf/wkt";
|
|
8
|
+
/**
|
|
9
|
+
* Describes the file data/v2/search.proto.
|
|
10
|
+
*/
|
|
11
|
+
export const file_data_v2_search = /*@__PURE__*/ fileDesc("ChRkYXRhL3YyL3NlYXJjaC5wcm90bxIHZGF0YS52MiKGAQoNU2VhcmNoUmVxdWVzdB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SU9OX0xJRkVDWUNMRV9MSVZFEAISHwobQVVDVElPTl9MSUZFQ1lDTEVfR1JBRFVBVEVEEAMSHAoYQVVDVElPTl9MSUZFQ1lDTEVfRkFJTEVEEAQyTAoNU2VhcmNoU2VydmljZRI7CgZTZWFyY2gSFi5kYXRhLnYyLlNlYXJjaFJlcXVlc3QaFy5kYXRhLnYyLlNlYXJjaFJlc3BvbnNlIgBiBnByb3RvMw", [file_data_v2_tokenGroups, file_data_v2_types, file_google_protobuf_timestamp]);
|
|
12
|
+
/**
|
|
13
|
+
* Describes the message data.v2.SearchRequest.
|
|
14
|
+
* Use `create(SearchRequestSchema)` to create a new message.
|
|
15
|
+
*/
|
|
16
|
+
export const SearchRequestSchema = /*@__PURE__*/ messageDesc(file_data_v2_search, 0);
|
|
17
|
+
/**
|
|
18
|
+
* Describes the message data.v2.SearchResponse.
|
|
19
|
+
* Use `create(SearchResponseSchema)` to create a new message.
|
|
20
|
+
*/
|
|
21
|
+
export const SearchResponseSchema = /*@__PURE__*/ messageDesc(file_data_v2_search, 1);
|
|
22
|
+
/**
|
|
23
|
+
* Describes the message data.v2.SearchAuction.
|
|
24
|
+
* Use `create(SearchAuctionSchema)` to create a new message.
|
|
25
|
+
*/
|
|
26
|
+
export const SearchAuctionSchema = /*@__PURE__*/ messageDesc(file_data_v2_search, 2);
|
|
8
27
|
/**
|
|
9
28
|
* @generated from enum data.v2.SearchType
|
|
10
29
|
*/
|
|
@@ -46,16 +65,10 @@ export var SearchType;
|
|
|
46
65
|
*/
|
|
47
66
|
SearchType[SearchType["POOL_CATEGORY"] = 6] = "POOL_CATEGORY";
|
|
48
67
|
})(SearchType || (SearchType = {}));
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
{ no: 2, name: "SEARCH_TYPE_POOL" },
|
|
54
|
-
{ no: 3, name: "SEARCH_TYPE_AUCTION" },
|
|
55
|
-
{ no: 4, name: "SEARCH_TYPE_CATEGORY" },
|
|
56
|
-
{ no: 5, name: "SEARCH_TYPE_TOKEN_GROUP" },
|
|
57
|
-
{ no: 6, name: "SEARCH_TYPE_POOL_CATEGORY" },
|
|
58
|
-
]);
|
|
68
|
+
/**
|
|
69
|
+
* Describes the enum data.v2.SearchType.
|
|
70
|
+
*/
|
|
71
|
+
export const SearchTypeSchema = /*@__PURE__*/ enumDesc(file_data_v2_search, 0);
|
|
59
72
|
/**
|
|
60
73
|
* Where an auction is in its life, decided server-side from the chain head against start_block/end_block and, once ended, from the raise outcome.
|
|
61
74
|
*
|
|
@@ -94,217 +107,13 @@ export var AuctionLifecycle;
|
|
|
94
107
|
*/
|
|
95
108
|
AuctionLifecycle[AuctionLifecycle["FAILED"] = 4] = "FAILED";
|
|
96
109
|
})(AuctionLifecycle || (AuctionLifecycle = {}));
|
|
97
|
-
// Retrieve enum metadata with: proto3.getEnumType(AuctionLifecycle)
|
|
98
|
-
proto3.util.setEnumType(AuctionLifecycle, "data.v2.AuctionLifecycle", [
|
|
99
|
-
{ no: 0, name: "AUCTION_LIFECYCLE_UNSPECIFIED" },
|
|
100
|
-
{ no: 1, name: "AUCTION_LIFECYCLE_UPCOMING" },
|
|
101
|
-
{ no: 2, name: "AUCTION_LIFECYCLE_LIVE" },
|
|
102
|
-
{ no: 3, name: "AUCTION_LIFECYCLE_GRADUATED" },
|
|
103
|
-
{ no: 4, name: "AUCTION_LIFECYCLE_FAILED" },
|
|
104
|
-
]);
|
|
105
110
|
/**
|
|
106
|
-
*
|
|
111
|
+
* Describes the enum data.v2.AuctionLifecycle.
|
|
107
112
|
*/
|
|
108
|
-
export
|
|
109
|
-
constructor(data) {
|
|
110
|
-
super();
|
|
111
|
-
/**
|
|
112
|
-
* free text, or a token/pool/auction address
|
|
113
|
-
*
|
|
114
|
-
* @generated from field: string search_query = 1;
|
|
115
|
-
*/
|
|
116
|
-
this.searchQuery = "";
|
|
117
|
-
/**
|
|
118
|
-
* required
|
|
119
|
-
*
|
|
120
|
-
* @generated from field: repeated uint32 chain_ids = 2;
|
|
121
|
-
*/
|
|
122
|
-
this.chainIds = [];
|
|
123
|
-
/**
|
|
124
|
-
* Required; only the listed result types are returned (empty returns nothing).
|
|
125
|
-
*
|
|
126
|
-
* @generated from field: repeated data.v2.SearchType types = 3;
|
|
127
|
-
*/
|
|
128
|
-
this.types = [];
|
|
129
|
-
proto3.util.initPartial(data, this);
|
|
130
|
-
}
|
|
131
|
-
static fromBinary(bytes, options) {
|
|
132
|
-
return new SearchRequest().fromBinary(bytes, options);
|
|
133
|
-
}
|
|
134
|
-
static fromJson(jsonValue, options) {
|
|
135
|
-
return new SearchRequest().fromJson(jsonValue, options);
|
|
136
|
-
}
|
|
137
|
-
static fromJsonString(jsonString, options) {
|
|
138
|
-
return new SearchRequest().fromJsonString(jsonString, options);
|
|
139
|
-
}
|
|
140
|
-
static equals(a, b) {
|
|
141
|
-
return proto3.util.equals(SearchRequest, a, b);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
SearchRequest.runtime = proto3;
|
|
145
|
-
SearchRequest.typeName = "data.v2.SearchRequest";
|
|
146
|
-
SearchRequest.fields = proto3.util.newFieldList(() => [
|
|
147
|
-
{ no: 1, name: "search_query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
148
|
-
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
149
|
-
{ no: 3, name: "types", kind: "enum", T: proto3.getEnumType(SearchType), repeated: true },
|
|
150
|
-
{ no: 4, name: "max_results", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
151
|
-
]);
|
|
113
|
+
export const AuctionLifecycleSchema = /*@__PURE__*/ enumDesc(file_data_v2_search, 1);
|
|
152
114
|
/**
|
|
153
|
-
*
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
constructor(data) {
|
|
157
|
-
super();
|
|
158
|
-
/**
|
|
159
|
-
* Ranker-ordered, same row shape as ListTokens; hidden results (malicious,
|
|
160
|
-
* blocklisted, URL in name) are dropped server-side, except the token a
|
|
161
|
-
* pasted address names, which is returned here with its safety fields set
|
|
162
|
-
* unless its auction replaces it (see auctions).
|
|
163
|
-
* A single-chain (ungrouped) row carries its own multichain_id here and in
|
|
164
|
-
* suppressed_tokens, as a row key; GetTokenMultiChain does not resolve it.
|
|
165
|
-
*
|
|
166
|
-
* @generated from field: repeated data.v2.RankedMultichainToken tokens = 1;
|
|
167
|
-
*/
|
|
168
|
-
this.tokens = [];
|
|
169
|
-
/**
|
|
170
|
-
* Lower-quality matches, rendered behind the "see more" expando.
|
|
171
|
-
*
|
|
172
|
-
* @generated from field: repeated data.v2.RankedMultichainToken suppressed_tokens = 2;
|
|
173
|
-
*/
|
|
174
|
-
this.suppressedTokens = [];
|
|
175
|
-
/**
|
|
176
|
-
* ordered by 24h volume
|
|
177
|
-
*
|
|
178
|
-
* @generated from field: repeated data.v2.RankedPool pools = 3;
|
|
179
|
-
*/
|
|
180
|
-
this.pools = [];
|
|
181
|
-
/**
|
|
182
|
-
* LIVE first, then UPCOMING, then GRADUATED or FAILED, then UNSPECIFIED; each group ordered by total bid volume. On a name query an auction whose token or name fails the server's safety checks is dropped; a pasted address serves it. Without TOKEN, a name query looks each auction's token up by address and serves the auction only when that token is servable or not found; a pasted address serves every match. With both TOKEN and AUCTION requested, one primary result per Custom CCA token, matched on chain + token address: an UPCOMING or LIVE auction whose token is not tradeable yet (is_tradeable false) replaces its token's rows in tokens and suppressed_tokens; for any other auction a matching token row wins. An auction with no matching token row gives way to its token, appended after the ranked rows while tokens has room, when it is GRADUATED or FAILED or its token is tradeable; a GRADUATED or FAILED auction whose token is not appended is dropped, and so is an open one whose token cannot be checked, except that a pasted address keeps an auction whose token lookup finds no servable token. With TOKEN, an UNSPECIFIED auction is dropped. At most 30 tokens are looked up per request, open auctions first; on a name query an auction left unchecked beyond them is dropped. Kept rows keep their order. Auctions are capped before any token is replaced, so a replaced token's auction is always served.
|
|
183
|
-
*
|
|
184
|
-
* @generated from field: repeated data.v2.SearchAuction auctions = 4;
|
|
185
|
-
*/
|
|
186
|
-
this.auctions = [];
|
|
187
|
-
/**
|
|
188
|
-
* Matching category ids; hydrate display data from ListCategories.
|
|
189
|
-
*
|
|
190
|
-
* @generated from field: repeated string category_ids = 5;
|
|
191
|
-
*/
|
|
192
|
-
this.categoryIds = [];
|
|
193
|
-
/**
|
|
194
|
-
* Stock / ETF groups matched by the query, ordered by 1d volume: the rows
|
|
195
|
-
* ListTokenGroups serves (group, stats, members with issuer). A token hit
|
|
196
|
-
* that is a member of a served group is still in `tokens`; the client
|
|
197
|
-
* folds it under the group.
|
|
198
|
-
*
|
|
199
|
-
* @generated from field: repeated data.v2.RankedTokenGroup token_groups = 6;
|
|
200
|
-
*/
|
|
201
|
-
this.tokenGroups = [];
|
|
202
|
-
/**
|
|
203
|
-
* Matching pool-category ids; hydrate display data from
|
|
204
|
-
* ListCategories(kind: POOL). Only with SEARCH_TYPE_POOL_CATEGORY.
|
|
205
|
-
*
|
|
206
|
-
* @generated from field: repeated string pool_category_ids = 7;
|
|
207
|
-
*/
|
|
208
|
-
this.poolCategoryIds = [];
|
|
209
|
-
proto3.util.initPartial(data, this);
|
|
210
|
-
}
|
|
211
|
-
static fromBinary(bytes, options) {
|
|
212
|
-
return new SearchResponse().fromBinary(bytes, options);
|
|
213
|
-
}
|
|
214
|
-
static fromJson(jsonValue, options) {
|
|
215
|
-
return new SearchResponse().fromJson(jsonValue, options);
|
|
216
|
-
}
|
|
217
|
-
static fromJsonString(jsonString, options) {
|
|
218
|
-
return new SearchResponse().fromJsonString(jsonString, options);
|
|
219
|
-
}
|
|
220
|
-
static equals(a, b) {
|
|
221
|
-
return proto3.util.equals(SearchResponse, a, b);
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
SearchResponse.runtime = proto3;
|
|
225
|
-
SearchResponse.typeName = "data.v2.SearchResponse";
|
|
226
|
-
SearchResponse.fields = proto3.util.newFieldList(() => [
|
|
227
|
-
{ no: 1, name: "tokens", kind: "message", T: RankedMultichainToken, repeated: true },
|
|
228
|
-
{ no: 2, name: "suppressed_tokens", kind: "message", T: RankedMultichainToken, repeated: true },
|
|
229
|
-
{ no: 3, name: "pools", kind: "message", T: RankedPool, repeated: true },
|
|
230
|
-
{ no: 4, name: "auctions", kind: "message", T: SearchAuction, repeated: true },
|
|
231
|
-
{ no: 5, name: "category_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
232
|
-
{ no: 6, name: "token_groups", kind: "message", T: RankedTokenGroup, repeated: true },
|
|
233
|
-
{ no: 7, name: "pool_category_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
234
|
-
]);
|
|
235
|
-
/**
|
|
236
|
-
* @generated from message data.v2.SearchAuction
|
|
115
|
+
* Search V2 (see PRD). Standalone service, mirroring data.v1's SearchService.
|
|
116
|
+
*
|
|
117
|
+
* @generated from service data.v2.SearchService
|
|
237
118
|
*/
|
|
238
|
-
export
|
|
239
|
-
constructor(data) {
|
|
240
|
-
super();
|
|
241
|
-
/**
|
|
242
|
-
* @generated from field: string auction_id = 1;
|
|
243
|
-
*/
|
|
244
|
-
this.auctionId = "";
|
|
245
|
-
/**
|
|
246
|
-
* @generated from field: uint32 chain_id = 2;
|
|
247
|
-
*/
|
|
248
|
-
this.chainId = 0;
|
|
249
|
-
/**
|
|
250
|
-
* @generated from field: string auction_address = 3;
|
|
251
|
-
*/
|
|
252
|
-
this.auctionAddress = "";
|
|
253
|
-
/**
|
|
254
|
-
* @generated from field: string token_address = 4;
|
|
255
|
-
*/
|
|
256
|
-
this.tokenAddress = "";
|
|
257
|
-
/**
|
|
258
|
-
* @generated from field: string token_name = 5;
|
|
259
|
-
*/
|
|
260
|
-
this.tokenName = "";
|
|
261
|
-
/**
|
|
262
|
-
* @generated from field: string token_symbol = 6;
|
|
263
|
-
*/
|
|
264
|
-
this.tokenSymbol = "";
|
|
265
|
-
/**
|
|
266
|
-
* @generated from field: string total_bid_volume_usd = 7;
|
|
267
|
-
*/
|
|
268
|
-
this.totalBidVolumeUsd = "";
|
|
269
|
-
/**
|
|
270
|
-
* @generated from field: data.v2.AuctionLifecycle lifecycle = 11;
|
|
271
|
-
*/
|
|
272
|
-
this.lifecycle = AuctionLifecycle.UNSPECIFIED;
|
|
273
|
-
proto3.util.initPartial(data, this);
|
|
274
|
-
}
|
|
275
|
-
static fromBinary(bytes, options) {
|
|
276
|
-
return new SearchAuction().fromBinary(bytes, options);
|
|
277
|
-
}
|
|
278
|
-
static fromJson(jsonValue, options) {
|
|
279
|
-
return new SearchAuction().fromJson(jsonValue, options);
|
|
280
|
-
}
|
|
281
|
-
static fromJsonString(jsonString, options) {
|
|
282
|
-
return new SearchAuction().fromJsonString(jsonString, options);
|
|
283
|
-
}
|
|
284
|
-
static equals(a, b) {
|
|
285
|
-
return proto3.util.equals(SearchAuction, a, b);
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
SearchAuction.runtime = proto3;
|
|
289
|
-
SearchAuction.typeName = "data.v2.SearchAuction";
|
|
290
|
-
SearchAuction.fields = proto3.util.newFieldList(() => [
|
|
291
|
-
{ no: 1, name: "auction_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
292
|
-
{ no: 2, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
293
|
-
{ no: 3, name: "auction_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
294
|
-
{ no: 4, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
295
|
-
{ no: 5, name: "token_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
296
|
-
{ no: 6, name: "token_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
297
|
-
{ no: 7, name: "total_bid_volume_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
298
|
-
{ no: 8, name: "fdv_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
299
|
-
{ no: 9, name: "estimated_end_time", kind: "message", T: Timestamp, opt: true },
|
|
300
|
-
{ no: 10, name: "estimated_start_time", kind: "message", T: Timestamp, opt: true },
|
|
301
|
-
{ no: 11, name: "lifecycle", kind: "enum", T: proto3.getEnumType(AuctionLifecycle) },
|
|
302
|
-
{ no: 12, name: "launch_provenance", kind: "message", T: TokenLaunchProvenance, opt: true },
|
|
303
|
-
{ no: 13, name: "total_bid_volume", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
304
|
-
{ no: 14, name: "required_currency_raised", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
305
|
-
{ no: 15, name: "currency_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
306
|
-
{ no: 16, name: "currency_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
307
|
-
{ no: 17, name: "is_tradeable", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
308
|
-
{ no: 18, name: "bidder_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
309
|
-
{ no: 19, name: "token_image_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
310
|
-
]);
|
|
119
|
+
export const SearchService = /*@__PURE__*/ serviceDesc(file_data_v2_search, 0);
|