@uniswap/client-data-api 0.0.268 → 0.0.270
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,7 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
3
3
|
import { RankedMultichainToken, RankedPool, TokenLaunchProvenance } from "./types_pb.js";
|
|
4
|
+
import { RankedTokenGroup } from "./tokenGroups_pb.js";
|
|
4
5
|
/**
|
|
5
6
|
* @generated from enum data.v2.SearchType
|
|
6
7
|
*/
|
|
@@ -24,7 +25,15 @@ export declare enum SearchType {
|
|
|
24
25
|
/**
|
|
25
26
|
* @generated from enum value: SEARCH_TYPE_CATEGORY = 4;
|
|
26
27
|
*/
|
|
27
|
-
CATEGORY = 4
|
|
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
|
|
28
37
|
}
|
|
29
38
|
/**
|
|
30
39
|
* 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.
|
|
@@ -127,7 +136,7 @@ export declare class SearchResponse extends Message<SearchResponse> {
|
|
|
127
136
|
*/
|
|
128
137
|
pools: RankedPool[];
|
|
129
138
|
/**
|
|
130
|
-
* Ordered by total bid volume. With both TOKEN and AUCTION requested, one primary result per Custom CCA token, matched on chain + token address: an
|
|
139
|
+
* Ordered by total bid volume. With both TOKEN and AUCTION requested, one primary result per Custom CCA token, matched on chain + token address and decided by lifecycle, not is_tradeable: an UPCOMING or LIVE auction replaces its token's rows in tokens and suppressed_tokens; for any other lifecycle a matching token row wins and the auction is served only without TOKEN. An auction with no matching token row is always served. Kept rows keep their order. Auctions are capped before any token is replaced, so a replaced token's auction is always served.
|
|
131
140
|
*
|
|
132
141
|
* @generated from field: repeated data.v2.SearchAuction auctions = 4;
|
|
133
142
|
*/
|
|
@@ -138,6 +147,15 @@ export declare class SearchResponse extends Message<SearchResponse> {
|
|
|
138
147
|
* @generated from field: repeated string category_ids = 5;
|
|
139
148
|
*/
|
|
140
149
|
categoryIds: string[];
|
|
150
|
+
/**
|
|
151
|
+
* Stock / ETF groups matched by the query, ordered by 1d volume: the rows
|
|
152
|
+
* ListTokenGroups serves (group, stats, members with issuer). A token hit
|
|
153
|
+
* that is a member of a served group is still in `tokens`; the client
|
|
154
|
+
* folds it under the group.
|
|
155
|
+
*
|
|
156
|
+
* @generated from field: repeated data.v2.RankedTokenGroup token_groups = 6;
|
|
157
|
+
*/
|
|
158
|
+
tokenGroups: RankedTokenGroup[];
|
|
141
159
|
constructor(data?: PartialMessage<SearchResponse>);
|
|
142
160
|
static readonly runtime: typeof proto3;
|
|
143
161
|
static readonly typeName = "data.v2.SearchResponse";
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
|
|
6
6
|
import { RankedMultichainToken, RankedPool, TokenLaunchProvenance } from "./types_pb.js";
|
|
7
|
+
import { RankedTokenGroup } from "./tokenGroups_pb.js";
|
|
7
8
|
/**
|
|
8
9
|
* @generated from enum data.v2.SearchType
|
|
9
10
|
*/
|
|
@@ -29,6 +30,14 @@ export var SearchType;
|
|
|
29
30
|
* @generated from enum value: SEARCH_TYPE_CATEGORY = 4;
|
|
30
31
|
*/
|
|
31
32
|
SearchType[SearchType["CATEGORY"] = 4] = "CATEGORY";
|
|
33
|
+
/**
|
|
34
|
+
* Groups whose name, ticker, or a member's name or symbol has a word that
|
|
35
|
+
* starts with the query ("nordisk" hits Novo Nordisk); a "0x" query
|
|
36
|
+
* matches member addresses instead. TokenGroupListFilter.search_query rule.
|
|
37
|
+
*
|
|
38
|
+
* @generated from enum value: SEARCH_TYPE_TOKEN_GROUP = 5;
|
|
39
|
+
*/
|
|
40
|
+
SearchType[SearchType["TOKEN_GROUP"] = 5] = "TOKEN_GROUP";
|
|
32
41
|
})(SearchType || (SearchType = {}));
|
|
33
42
|
// Retrieve enum metadata with: proto3.getEnumType(SearchType)
|
|
34
43
|
proto3.util.setEnumType(SearchType, "data.v2.SearchType", [
|
|
@@ -37,6 +46,7 @@ proto3.util.setEnumType(SearchType, "data.v2.SearchType", [
|
|
|
37
46
|
{ no: 2, name: "SEARCH_TYPE_POOL" },
|
|
38
47
|
{ no: 3, name: "SEARCH_TYPE_AUCTION" },
|
|
39
48
|
{ no: 4, name: "SEARCH_TYPE_CATEGORY" },
|
|
49
|
+
{ no: 5, name: "SEARCH_TYPE_TOKEN_GROUP" },
|
|
40
50
|
]);
|
|
41
51
|
/**
|
|
42
52
|
* 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.
|
|
@@ -160,7 +170,7 @@ export class SearchResponse extends Message {
|
|
|
160
170
|
*/
|
|
161
171
|
this.pools = [];
|
|
162
172
|
/**
|
|
163
|
-
* Ordered by total bid volume. With both TOKEN and AUCTION requested, one primary result per Custom CCA token, matched on chain + token address: an
|
|
173
|
+
* Ordered by total bid volume. With both TOKEN and AUCTION requested, one primary result per Custom CCA token, matched on chain + token address and decided by lifecycle, not is_tradeable: an UPCOMING or LIVE auction replaces its token's rows in tokens and suppressed_tokens; for any other lifecycle a matching token row wins and the auction is served only without TOKEN. An auction with no matching token row is always served. Kept rows keep their order. Auctions are capped before any token is replaced, so a replaced token's auction is always served.
|
|
164
174
|
*
|
|
165
175
|
* @generated from field: repeated data.v2.SearchAuction auctions = 4;
|
|
166
176
|
*/
|
|
@@ -171,6 +181,15 @@ export class SearchResponse extends Message {
|
|
|
171
181
|
* @generated from field: repeated string category_ids = 5;
|
|
172
182
|
*/
|
|
173
183
|
this.categoryIds = [];
|
|
184
|
+
/**
|
|
185
|
+
* Stock / ETF groups matched by the query, ordered by 1d volume: the rows
|
|
186
|
+
* ListTokenGroups serves (group, stats, members with issuer). A token hit
|
|
187
|
+
* that is a member of a served group is still in `tokens`; the client
|
|
188
|
+
* folds it under the group.
|
|
189
|
+
*
|
|
190
|
+
* @generated from field: repeated data.v2.RankedTokenGroup token_groups = 6;
|
|
191
|
+
*/
|
|
192
|
+
this.tokenGroups = [];
|
|
174
193
|
proto3.util.initPartial(data, this);
|
|
175
194
|
}
|
|
176
195
|
static fromBinary(bytes, options) {
|
|
@@ -194,6 +213,7 @@ SearchResponse.fields = proto3.util.newFieldList(() => [
|
|
|
194
213
|
{ no: 3, name: "pools", kind: "message", T: RankedPool, repeated: true },
|
|
195
214
|
{ no: 4, name: "auctions", kind: "message", T: SearchAuction, repeated: true },
|
|
196
215
|
{ no: 5, name: "category_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
216
|
+
{ no: 6, name: "token_groups", kind: "message", T: RankedTokenGroup, repeated: true },
|
|
197
217
|
]);
|
|
198
218
|
/**
|
|
199
219
|
* @generated from message data.v2.SearchAuction
|
|
@@ -81,6 +81,19 @@ export declare class TokenGroupListFilter extends Message<TokenGroupListFilter>
|
|
|
81
81
|
* @generated from field: repeated string category_ids = 1;
|
|
82
82
|
*/
|
|
83
83
|
categoryIds: string[];
|
|
84
|
+
/**
|
|
85
|
+
* Search filter: free text (case-insensitive, normalized: trimmed,
|
|
86
|
+
* whitespace collapsed, capped at 100 chars) matched against the start of
|
|
87
|
+
* any word of the group's name and ticker and each member's name and
|
|
88
|
+
* symbol ("nordisk" hits Novo Nordisk, "esla" hits nothing); a
|
|
89
|
+
* "0x"-prefixed query prefix-matches member addresses instead. A group is
|
|
90
|
+
* served whole when it or any member on the requested chains matches.
|
|
91
|
+
* Narrows the listing; sort and pagination keep their meanings.
|
|
92
|
+
* Empty/whitespace = no filter.
|
|
93
|
+
*
|
|
94
|
+
* @generated from field: optional string search_query = 2;
|
|
95
|
+
*/
|
|
96
|
+
searchQuery?: string;
|
|
84
97
|
constructor(data?: PartialMessage<TokenGroupListFilter>);
|
|
85
98
|
static readonly runtime: typeof proto3;
|
|
86
99
|
static readonly typeName = "data.v2.TokenGroupListFilter";
|
|
@@ -130,4 +130,5 @@ TokenGroupListFilter.runtime = proto3;
|
|
|
130
130
|
TokenGroupListFilter.typeName = "data.v2.TokenGroupListFilter";
|
|
131
131
|
TokenGroupListFilter.fields = proto3.util.newFieldList(() => [
|
|
132
132
|
{ no: 1, name: "category_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
133
|
+
{ no: 2, name: "search_query", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
133
134
|
]);
|