@uniswap/client-data-api 0.0.260 → 0.0.262

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,5 +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 { TokensSort } from "./types_pb.js";
3
4
  /**
4
5
  * @generated from enum data.v2.CategoryClass
5
6
  */
@@ -137,6 +138,32 @@ export declare class Category extends Message<Category> {
137
138
  * @generated from field: bool grouped = 6;
138
139
  */
139
140
  grouped: boolean;
141
+ /**
142
+ * Translations of `name` / `description`, keyed by BCP-47 locale tag
143
+ * (es-ES, fr-FR, id-ID, ja-JP, ko-KR, nl-NL, pt-BR, pt-PT, ru-RU, tr-TR,
144
+ * vi-VN, zh-Hans, zh-Hant). English is the top-level field, never a key.
145
+ * A locale is absent (never an empty string) when it has no translation or
146
+ * uses the English name untranslated; clients fall back to the top-level
147
+ * field.
148
+ *
149
+ * @generated from field: map<string, string> name_translations = 7;
150
+ */
151
+ nameTranslations: {
152
+ [key: string]: string;
153
+ };
154
+ /**
155
+ * @generated from field: map<string, string> description_translations = 8;
156
+ */
157
+ descriptionTranslations: {
158
+ [key: string]: string;
159
+ };
160
+ /**
161
+ * Sort the category page opens with, before the user picks a column.
162
+ * Always set. Feed it to ListTokens / ListTokenGroups as the sort.
163
+ *
164
+ * @generated from field: data.v2.TokensSort default_sort = 9;
165
+ */
166
+ defaultSort?: TokensSort;
140
167
  constructor(data?: PartialMessage<Category>);
141
168
  static readonly runtime: typeof proto3;
142
169
  static readonly typeName = "data.v2.Category";
@@ -3,6 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
6
+ import { TokensSort } from "./types_pb.js";
6
7
  /**
7
8
  * @generated from enum data.v2.CategoryClass
8
9
  */
@@ -179,6 +180,21 @@ export class Category extends Message {
179
180
  * @generated from field: bool grouped = 6;
180
181
  */
181
182
  this.grouped = false;
183
+ /**
184
+ * Translations of `name` / `description`, keyed by BCP-47 locale tag
185
+ * (es-ES, fr-FR, id-ID, ja-JP, ko-KR, nl-NL, pt-BR, pt-PT, ru-RU, tr-TR,
186
+ * vi-VN, zh-Hans, zh-Hant). English is the top-level field, never a key.
187
+ * A locale is absent (never an empty string) when it has no translation or
188
+ * uses the English name untranslated; clients fall back to the top-level
189
+ * field.
190
+ *
191
+ * @generated from field: map<string, string> name_translations = 7;
192
+ */
193
+ this.nameTranslations = {};
194
+ /**
195
+ * @generated from field: map<string, string> description_translations = 8;
196
+ */
197
+ this.descriptionTranslations = {};
182
198
  proto3.util.initPartial(data, this);
183
199
  }
184
200
  static fromBinary(bytes, options) {
@@ -202,6 +218,9 @@ Category.fields = proto3.util.newFieldList(() => [
202
218
  { no: 3, name: "description", kind: "scalar", T: 9 /* ScalarType.STRING */ },
203
219
  { no: 5, name: "class", kind: "enum", T: proto3.getEnumType(CategoryClass) },
204
220
  { no: 6, name: "grouped", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
221
+ { no: 7, name: "name_translations", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
222
+ { no: 8, name: "description_translations", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
223
+ { no: 9, name: "default_sort", kind: "message", T: TokensSort },
205
224
  ]);
206
225
  /**
207
226
  * A category plus its chain-scoped market view (mirrors RankedPool /
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.260",
3
+ "version": "0.0.262",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },