@uniswap/client-data-api 0.0.205 → 0.0.207
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.
|
@@ -20,7 +20,11 @@ export declare enum SearchType {
|
|
|
20
20
|
/**
|
|
21
21
|
* @generated from enum value: AUCTION = 3;
|
|
22
22
|
*/
|
|
23
|
-
AUCTION = 3
|
|
23
|
+
AUCTION = 3,
|
|
24
|
+
/**
|
|
25
|
+
* @generated from enum value: CATEGORY = 4;
|
|
26
|
+
*/
|
|
27
|
+
CATEGORY = 4
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
26
30
|
* @generated from enum search.v1.SpamCode
|
|
@@ -310,6 +314,27 @@ export declare class FeeData extends Message<FeeData> {
|
|
|
310
314
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeeData;
|
|
311
315
|
static equals(a: FeeData | PlainMessage<FeeData> | undefined, b: FeeData | PlainMessage<FeeData> | undefined): boolean;
|
|
312
316
|
}
|
|
317
|
+
/**
|
|
318
|
+
* A token-category search result. Deliberately id-only: clients hydrate
|
|
319
|
+
* name/icon/stats locally from their cached ListCategories response
|
|
320
|
+
* (agreed convention — see the category_ids thread on PR #11417).
|
|
321
|
+
*
|
|
322
|
+
* @generated from message search.v1.SearchCategory
|
|
323
|
+
*/
|
|
324
|
+
export declare class SearchCategory extends Message<SearchCategory> {
|
|
325
|
+
/**
|
|
326
|
+
* @generated from field: string category_id = 1;
|
|
327
|
+
*/
|
|
328
|
+
categoryId: string;
|
|
329
|
+
constructor(data?: PartialMessage<SearchCategory>);
|
|
330
|
+
static readonly runtime: typeof proto3;
|
|
331
|
+
static readonly typeName = "search.v1.SearchCategory";
|
|
332
|
+
static readonly fields: FieldList;
|
|
333
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchCategory;
|
|
334
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchCategory;
|
|
335
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchCategory;
|
|
336
|
+
static equals(a: SearchCategory | PlainMessage<SearchCategory> | undefined, b: SearchCategory | PlainMessage<SearchCategory> | undefined): boolean;
|
|
337
|
+
}
|
|
313
338
|
/**
|
|
314
339
|
* @generated from message search.v1.SearchAuction
|
|
315
340
|
*/
|
|
@@ -25,6 +25,10 @@ export var SearchType;
|
|
|
25
25
|
* @generated from enum value: AUCTION = 3;
|
|
26
26
|
*/
|
|
27
27
|
SearchType[SearchType["AUCTION"] = 3] = "AUCTION";
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum value: CATEGORY = 4;
|
|
30
|
+
*/
|
|
31
|
+
SearchType[SearchType["CATEGORY"] = 4] = "CATEGORY";
|
|
28
32
|
})(SearchType || (SearchType = {}));
|
|
29
33
|
// Retrieve enum metadata with: proto3.getEnumType(SearchType)
|
|
30
34
|
proto3.util.setEnumType(SearchType, "search.v1.SearchType", [
|
|
@@ -32,6 +36,7 @@ proto3.util.setEnumType(SearchType, "search.v1.SearchType", [
|
|
|
32
36
|
{ no: 1, name: "TOKEN" },
|
|
33
37
|
{ no: 2, name: "POOL" },
|
|
34
38
|
{ no: 3, name: "AUCTION" },
|
|
39
|
+
{ no: 4, name: "CATEGORY" },
|
|
35
40
|
]);
|
|
36
41
|
/**
|
|
37
42
|
* @generated from enum search.v1.SpamCode
|
|
@@ -408,6 +413,40 @@ FeeData.fields = proto3.util.newFieldList(() => [
|
|
|
408
413
|
{ no: 4, name: "external_transfer_failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
409
414
|
{ no: 5, name: "sell_reverted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
410
415
|
]);
|
|
416
|
+
/**
|
|
417
|
+
* A token-category search result. Deliberately id-only: clients hydrate
|
|
418
|
+
* name/icon/stats locally from their cached ListCategories response
|
|
419
|
+
* (agreed convention — see the category_ids thread on PR #11417).
|
|
420
|
+
*
|
|
421
|
+
* @generated from message search.v1.SearchCategory
|
|
422
|
+
*/
|
|
423
|
+
export class SearchCategory extends Message {
|
|
424
|
+
constructor(data) {
|
|
425
|
+
super();
|
|
426
|
+
/**
|
|
427
|
+
* @generated from field: string category_id = 1;
|
|
428
|
+
*/
|
|
429
|
+
this.categoryId = "";
|
|
430
|
+
proto3.util.initPartial(data, this);
|
|
431
|
+
}
|
|
432
|
+
static fromBinary(bytes, options) {
|
|
433
|
+
return new SearchCategory().fromBinary(bytes, options);
|
|
434
|
+
}
|
|
435
|
+
static fromJson(jsonValue, options) {
|
|
436
|
+
return new SearchCategory().fromJson(jsonValue, options);
|
|
437
|
+
}
|
|
438
|
+
static fromJsonString(jsonString, options) {
|
|
439
|
+
return new SearchCategory().fromJsonString(jsonString, options);
|
|
440
|
+
}
|
|
441
|
+
static equals(a, b) {
|
|
442
|
+
return proto3.util.equals(SearchCategory, a, b);
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
SearchCategory.runtime = proto3;
|
|
446
|
+
SearchCategory.typeName = "search.v1.SearchCategory";
|
|
447
|
+
SearchCategory.fields = proto3.util.newFieldList(() => [
|
|
448
|
+
{ no: 1, name: "category_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
449
|
+
]);
|
|
411
450
|
/**
|
|
412
451
|
* @generated from message search.v1.SearchAuction
|
|
413
452
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
-
import { MultichainToken, Pool, SearchAuction, SearchType, Token } from "./searchTypes_pb.js";
|
|
3
|
+
import { MultichainToken, Pool, SearchAuction, SearchCategory, SearchType, Token } from "./searchTypes_pb.js";
|
|
4
4
|
/**
|
|
5
5
|
* @generated from message data.v1.SearchTokensRequest
|
|
6
6
|
*/
|
|
@@ -69,6 +69,10 @@ export declare class SearchTokensResponse extends Message<SearchTokensResponse>
|
|
|
69
69
|
* @generated from field: repeated search.v1.MultichainToken multichain_tokens = 4;
|
|
70
70
|
*/
|
|
71
71
|
multichainTokens: MultichainToken[];
|
|
72
|
+
/**
|
|
73
|
+
* @generated from field: repeated search.v1.SearchCategory categories = 5;
|
|
74
|
+
*/
|
|
75
|
+
categories: SearchCategory[];
|
|
72
76
|
constructor(data?: PartialMessage<SearchTokensResponse>);
|
|
73
77
|
static readonly runtime: typeof proto3;
|
|
74
78
|
static readonly typeName = "data.v1.SearchTokensResponse";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
-
import { MultichainToken, Pool, SearchAuction, SearchType, Token } from "./searchTypes_pb.js";
|
|
6
|
+
import { MultichainToken, Pool, SearchAuction, SearchCategory, SearchType, Token } from "./searchTypes_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from message data.v1.SearchTokensRequest
|
|
9
9
|
*/
|
|
@@ -94,6 +94,10 @@ export class SearchTokensResponse extends Message {
|
|
|
94
94
|
* @generated from field: repeated search.v1.MultichainToken multichain_tokens = 4;
|
|
95
95
|
*/
|
|
96
96
|
this.multichainTokens = [];
|
|
97
|
+
/**
|
|
98
|
+
* @generated from field: repeated search.v1.SearchCategory categories = 5;
|
|
99
|
+
*/
|
|
100
|
+
this.categories = [];
|
|
97
101
|
proto3.util.initPartial(data, this);
|
|
98
102
|
}
|
|
99
103
|
static fromBinary(bytes, options) {
|
|
@@ -116,4 +120,5 @@ SearchTokensResponse.fields = proto3.util.newFieldList(() => [
|
|
|
116
120
|
{ no: 2, name: "pools", kind: "message", T: Pool, repeated: true },
|
|
117
121
|
{ no: 3, name: "auctions", kind: "message", T: SearchAuction, repeated: true },
|
|
118
122
|
{ no: 4, name: "multichain_tokens", kind: "message", T: MultichainToken, repeated: true },
|
|
123
|
+
{ no: 5, name: "categories", kind: "message", T: SearchCategory, repeated: true },
|
|
119
124
|
]);
|
|
@@ -1245,8 +1245,10 @@ export declare class PoolListFilter extends Message<PoolListFilter> {
|
|
|
1245
1245
|
* shape; scoped flows (exact-pool lookups, fee-tier discovery) that need
|
|
1246
1246
|
* complete listings must send false explicitly. Gates: wash trading (1D
|
|
1247
1247
|
* volume must not exceed 10,000x the pool's TVL; fails open on missing
|
|
1248
|
-
* values)
|
|
1249
|
-
*
|
|
1248
|
+
* values), valuation trust (both tokens priced with confidence >= 0.005,
|
|
1249
|
+
* ListTokens' exact rule; fails closed on a missing price), and discovery
|
|
1250
|
+
* (each token native, on a token list, or priced with confidence >= 0.2 —
|
|
1251
|
+
* ListTokens' on-list-or-earned-trust rule).
|
|
1250
1252
|
*
|
|
1251
1253
|
* @generated from field: optional bool apply_top_level_filters = 8;
|
|
1252
1254
|
*/
|