@uniswap/client-data-api 0.0.260 → 0.0.261
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.
|
@@ -137,6 +137,25 @@ export declare class Category extends Message<Category> {
|
|
|
137
137
|
* @generated from field: bool grouped = 6;
|
|
138
138
|
*/
|
|
139
139
|
grouped: boolean;
|
|
140
|
+
/**
|
|
141
|
+
* Translations of `name` / `description`, keyed by BCP-47 locale tag
|
|
142
|
+
* (es-ES, fr-FR, id-ID, ja-JP, ko-KR, nl-NL, pt-BR, pt-PT, ru-RU, tr-TR,
|
|
143
|
+
* vi-VN, zh-Hans, zh-Hant). English is the top-level field, never a key.
|
|
144
|
+
* A locale is absent (never an empty string) when it has no translation or
|
|
145
|
+
* uses the English name untranslated; clients fall back to the top-level
|
|
146
|
+
* field.
|
|
147
|
+
*
|
|
148
|
+
* @generated from field: map<string, string> name_translations = 7;
|
|
149
|
+
*/
|
|
150
|
+
nameTranslations: {
|
|
151
|
+
[key: string]: string;
|
|
152
|
+
};
|
|
153
|
+
/**
|
|
154
|
+
* @generated from field: map<string, string> description_translations = 8;
|
|
155
|
+
*/
|
|
156
|
+
descriptionTranslations: {
|
|
157
|
+
[key: string]: string;
|
|
158
|
+
};
|
|
140
159
|
constructor(data?: PartialMessage<Category>);
|
|
141
160
|
static readonly runtime: typeof proto3;
|
|
142
161
|
static readonly typeName = "data.v2.Category";
|
|
@@ -179,6 +179,21 @@ export class Category extends Message {
|
|
|
179
179
|
* @generated from field: bool grouped = 6;
|
|
180
180
|
*/
|
|
181
181
|
this.grouped = false;
|
|
182
|
+
/**
|
|
183
|
+
* Translations of `name` / `description`, keyed by BCP-47 locale tag
|
|
184
|
+
* (es-ES, fr-FR, id-ID, ja-JP, ko-KR, nl-NL, pt-BR, pt-PT, ru-RU, tr-TR,
|
|
185
|
+
* vi-VN, zh-Hans, zh-Hant). English is the top-level field, never a key.
|
|
186
|
+
* A locale is absent (never an empty string) when it has no translation or
|
|
187
|
+
* uses the English name untranslated; clients fall back to the top-level
|
|
188
|
+
* field.
|
|
189
|
+
*
|
|
190
|
+
* @generated from field: map<string, string> name_translations = 7;
|
|
191
|
+
*/
|
|
192
|
+
this.nameTranslations = {};
|
|
193
|
+
/**
|
|
194
|
+
* @generated from field: map<string, string> description_translations = 8;
|
|
195
|
+
*/
|
|
196
|
+
this.descriptionTranslations = {};
|
|
182
197
|
proto3.util.initPartial(data, this);
|
|
183
198
|
}
|
|
184
199
|
static fromBinary(bytes, options) {
|
|
@@ -202,6 +217,8 @@ Category.fields = proto3.util.newFieldList(() => [
|
|
|
202
217
|
{ no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
203
218
|
{ no: 5, name: "class", kind: "enum", T: proto3.getEnumType(CategoryClass) },
|
|
204
219
|
{ no: 6, name: "grouped", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
220
|
+
{ no: 7, name: "name_translations", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
221
|
+
{ no: 8, name: "description_translations", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
205
222
|
]);
|
|
206
223
|
/**
|
|
207
224
|
* A category plus its chain-scoped market view (mirrors RankedPool /
|