@uniswap/client-data-api 0.0.269 → 0.0.271
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.
|
|
@@ -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.
|
|
@@ -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
|
]);
|
|
@@ -963,6 +963,30 @@ export declare class TokenMultichain extends Message<TokenMultichain> {
|
|
|
963
963
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenMultichain;
|
|
964
964
|
static equals(a: TokenMultichain | PlainMessage<TokenMultichain> | undefined, b: TokenMultichain | PlainMessage<TokenMultichain> | undefined): boolean;
|
|
965
965
|
}
|
|
966
|
+
/**
|
|
967
|
+
* One logo as a light-theme and a dark-theme URL; remote art can't be
|
|
968
|
+
* recoloured by the client's theme.
|
|
969
|
+
*
|
|
970
|
+
* @generated from message data.v2.ThemedLogoUrls
|
|
971
|
+
*/
|
|
972
|
+
export declare class ThemedLogoUrls extends Message<ThemedLogoUrls> {
|
|
973
|
+
/**
|
|
974
|
+
* @generated from field: string light = 1;
|
|
975
|
+
*/
|
|
976
|
+
light: string;
|
|
977
|
+
/**
|
|
978
|
+
* @generated from field: string dark = 2;
|
|
979
|
+
*/
|
|
980
|
+
dark: string;
|
|
981
|
+
constructor(data?: PartialMessage<ThemedLogoUrls>);
|
|
982
|
+
static readonly runtime: typeof proto3;
|
|
983
|
+
static readonly typeName = "data.v2.ThemedLogoUrls";
|
|
984
|
+
static readonly fields: FieldList;
|
|
985
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ThemedLogoUrls;
|
|
986
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ThemedLogoUrls;
|
|
987
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ThemedLogoUrls;
|
|
988
|
+
static equals(a: ThemedLogoUrls | PlainMessage<ThemedLogoUrls> | undefined, b: ThemedLogoUrls | PlainMessage<ThemedLogoUrls> | undefined): boolean;
|
|
989
|
+
}
|
|
966
990
|
/**
|
|
967
991
|
* Issuer of a tokenized real-world asset; absent = not an RWA or issuer unknown.
|
|
968
992
|
*
|
|
@@ -978,9 +1002,25 @@ export declare class TokenIssuerInfo extends Message<TokenIssuerInfo> {
|
|
|
978
1002
|
*/
|
|
979
1003
|
displayName: string;
|
|
980
1004
|
/**
|
|
1005
|
+
* Full-colour light-theme logo: the curated one when a set exists, else the
|
|
1006
|
+
* issuer's CoinGecko image (canvas and background vary).
|
|
1007
|
+
*
|
|
981
1008
|
* @generated from field: string logo_url = 3;
|
|
982
1009
|
*/
|
|
983
1010
|
logoUrl: string;
|
|
1011
|
+
/**
|
|
1012
|
+
* Curated sets on a uniform square canvas; without one, every slot carries the
|
|
1013
|
+
* CoinGecko image (absent only when the issuer has no logo at all).
|
|
1014
|
+
*
|
|
1015
|
+
* @generated from field: optional data.v2.ThemedLogoUrls color_logo_urls = 4;
|
|
1016
|
+
*/
|
|
1017
|
+
colorLogoUrls?: ThemedLogoUrls;
|
|
1018
|
+
/**
|
|
1019
|
+
* Drawn for small dimmed treatments (12px at 50%).
|
|
1020
|
+
*
|
|
1021
|
+
* @generated from field: optional data.v2.ThemedLogoUrls grayscale_logo_urls = 5;
|
|
1022
|
+
*/
|
|
1023
|
+
grayscaleLogoUrls?: ThemedLogoUrls;
|
|
984
1024
|
constructor(data?: PartialMessage<TokenIssuerInfo>);
|
|
985
1025
|
static readonly runtime: typeof proto3;
|
|
986
1026
|
static readonly typeName = "data.v2.TokenIssuerInfo";
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -1092,6 +1092,44 @@ TokenMultichain.fields = proto3.util.newFieldList(() => [
|
|
|
1092
1092
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1093
1093
|
{ no: 2, name: "addresses", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
1094
1094
|
]);
|
|
1095
|
+
/**
|
|
1096
|
+
* One logo as a light-theme and a dark-theme URL; remote art can't be
|
|
1097
|
+
* recoloured by the client's theme.
|
|
1098
|
+
*
|
|
1099
|
+
* @generated from message data.v2.ThemedLogoUrls
|
|
1100
|
+
*/
|
|
1101
|
+
export class ThemedLogoUrls extends Message {
|
|
1102
|
+
constructor(data) {
|
|
1103
|
+
super();
|
|
1104
|
+
/**
|
|
1105
|
+
* @generated from field: string light = 1;
|
|
1106
|
+
*/
|
|
1107
|
+
this.light = "";
|
|
1108
|
+
/**
|
|
1109
|
+
* @generated from field: string dark = 2;
|
|
1110
|
+
*/
|
|
1111
|
+
this.dark = "";
|
|
1112
|
+
proto3.util.initPartial(data, this);
|
|
1113
|
+
}
|
|
1114
|
+
static fromBinary(bytes, options) {
|
|
1115
|
+
return new ThemedLogoUrls().fromBinary(bytes, options);
|
|
1116
|
+
}
|
|
1117
|
+
static fromJson(jsonValue, options) {
|
|
1118
|
+
return new ThemedLogoUrls().fromJson(jsonValue, options);
|
|
1119
|
+
}
|
|
1120
|
+
static fromJsonString(jsonString, options) {
|
|
1121
|
+
return new ThemedLogoUrls().fromJsonString(jsonString, options);
|
|
1122
|
+
}
|
|
1123
|
+
static equals(a, b) {
|
|
1124
|
+
return proto3.util.equals(ThemedLogoUrls, a, b);
|
|
1125
|
+
}
|
|
1126
|
+
}
|
|
1127
|
+
ThemedLogoUrls.runtime = proto3;
|
|
1128
|
+
ThemedLogoUrls.typeName = "data.v2.ThemedLogoUrls";
|
|
1129
|
+
ThemedLogoUrls.fields = proto3.util.newFieldList(() => [
|
|
1130
|
+
{ no: 1, name: "light", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1131
|
+
{ no: 2, name: "dark", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1132
|
+
]);
|
|
1095
1133
|
/**
|
|
1096
1134
|
* Issuer of a tokenized real-world asset; absent = not an RWA or issuer unknown.
|
|
1097
1135
|
*
|
|
@@ -1109,6 +1147,9 @@ export class TokenIssuerInfo extends Message {
|
|
|
1109
1147
|
*/
|
|
1110
1148
|
this.displayName = "";
|
|
1111
1149
|
/**
|
|
1150
|
+
* Full-colour light-theme logo: the curated one when a set exists, else the
|
|
1151
|
+
* issuer's CoinGecko image (canvas and background vary).
|
|
1152
|
+
*
|
|
1112
1153
|
* @generated from field: string logo_url = 3;
|
|
1113
1154
|
*/
|
|
1114
1155
|
this.logoUrl = "";
|
|
@@ -1133,6 +1174,8 @@ TokenIssuerInfo.fields = proto3.util.newFieldList(() => [
|
|
|
1133
1174
|
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1134
1175
|
{ no: 2, name: "display_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1135
1176
|
{ no: 3, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1177
|
+
{ no: 4, name: "color_logo_urls", kind: "message", T: ThemedLogoUrls, opt: true },
|
|
1178
|
+
{ no: 5, name: "grayscale_logo_urls", kind: "message", T: ThemedLogoUrls, opt: true },
|
|
1136
1179
|
]);
|
|
1137
1180
|
/**
|
|
1138
1181
|
* One chain's deployment of a multichain token. Decimals differ across a
|