@uniswap/client-data-api 0.0.259 → 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 /
@@ -1,6 +1,6 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
3
- import { RankedMultichainToken, RankedPool } from "./types_pb.js";
3
+ import { RankedMultichainToken, RankedPool, TokenLaunchProvenance } from "./types_pb.js";
4
4
  /**
5
5
  * @generated from enum data.v2.SearchType
6
6
  */
@@ -26,6 +26,43 @@ export declare enum SearchType {
26
26
  */
27
27
  CATEGORY = 4
28
28
  }
29
+ /**
30
+ * 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.
31
+ *
32
+ * @generated from enum data.v2.AuctionLifecycle
33
+ */
34
+ export declare enum AuctionLifecycle {
35
+ /**
36
+ * The current row, the chain head or the raise figures were unavailable; the block times and raw raise fields, when set, still let a client classify.
37
+ *
38
+ * @generated from enum value: AUCTION_LIFECYCLE_UNSPECIFIED = 0;
39
+ */
40
+ UNSPECIFIED = 0,
41
+ /**
42
+ * start_block not yet reached.
43
+ *
44
+ * @generated from enum value: AUCTION_LIFECYCLE_UPCOMING = 1;
45
+ */
46
+ UPCOMING = 1,
47
+ /**
48
+ * start_block reached and end_block not yet reached (the data.v1 AuctionStatusFilter ACTIVE rule).
49
+ *
50
+ * @generated from enum value: AUCTION_LIFECYCLE_LIVE = 2;
51
+ */
52
+ LIVE = 2,
53
+ /**
54
+ * Ended with total_bid_volume >= required_currency_raised, or already migrated into its pool; the migration itself may still be pending.
55
+ *
56
+ * @generated from enum value: AUCTION_LIFECYCLE_GRADUATED = 3;
57
+ */
58
+ GRADUATED = 3,
59
+ /**
60
+ * Ended with total_bid_volume < required_currency_raised.
61
+ *
62
+ * @generated from enum value: AUCTION_LIFECYCLE_FAILED = 4;
63
+ */
64
+ FAILED = 4
65
+ }
29
66
  /**
30
67
  * @generated from message data.v2.SearchRequest
31
68
  */
@@ -149,11 +186,51 @@ export declare class SearchAuction extends Message<SearchAuction> {
149
186
  */
150
187
  fdvUsd?: string;
151
188
  /**
152
- * Same rules as data.v1.Auction.estimated_end_time; unset when unresolvable or the auction has graduated.
189
+ * Same rules as data.v1.Auction.estimated_end_time, served for every lifecycle (a graduated auction's end is its "launched x ago" anchor); unset when unresolvable.
153
190
  *
154
191
  * @generated from field: optional google.protobuf.Timestamp estimated_end_time = 9;
155
192
  */
156
193
  estimatedEndTime?: Timestamp;
194
+ /**
195
+ * Same rules as data.v1.Auction.estimated_start_time; unset when unresolvable.
196
+ *
197
+ * @generated from field: optional google.protobuf.Timestamp estimated_start_time = 10;
198
+ */
199
+ estimatedStartTime?: Timestamp;
200
+ /**
201
+ * @generated from field: data.v2.AuctionLifecycle lifecycle = 11;
202
+ */
203
+ lifecycle: AuctionLifecycle;
204
+ /**
205
+ * Same shape as Token.launch_provenance: the Uniswap CCA launchpad, with launch_method CROWD/CUSTOM from the quick-launch classification (UNSPECIFIED until classified).
206
+ *
207
+ * @generated from field: optional data.v2.TokenLaunchProvenance launch_provenance = 12;
208
+ */
209
+ launchProvenance?: TokenLaunchProvenance;
210
+ /**
211
+ * Raw bid volume, an integer string in the raise currency's smallest unit; unset when unavailable or not an integer.
212
+ *
213
+ * @generated from field: optional string total_bid_volume = 13;
214
+ */
215
+ totalBidVolume?: string;
216
+ /**
217
+ * Raw raise target that decides GRADUATED vs FAILED, in the units of total_bid_volume; unset when unavailable or not an integer.
218
+ *
219
+ * @generated from field: optional string required_currency_raised = 14;
220
+ */
221
+ requiredCurrencyRaised?: string;
222
+ /**
223
+ * EIP-55 checksummed raise currency, the zero address for the chain's native currency; unset when unavailable or not an address.
224
+ *
225
+ * @generated from field: optional string currency_address = 15;
226
+ */
227
+ currencyAddress?: string;
228
+ /**
229
+ * Raise currency decimals (0-255), for rendering the raw raise fields; unset when unknown.
230
+ *
231
+ * @generated from field: optional uint32 currency_decimals = 16;
232
+ */
233
+ currencyDecimals?: number;
157
234
  constructor(data?: PartialMessage<SearchAuction>);
158
235
  static readonly runtime: typeof proto3;
159
236
  static readonly typeName = "data.v2.SearchAuction";
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3, Timestamp } from "@bufbuild/protobuf";
6
- import { RankedMultichainToken, RankedPool } from "./types_pb.js";
6
+ import { RankedMultichainToken, RankedPool, TokenLaunchProvenance } from "./types_pb.js";
7
7
  /**
8
8
  * @generated from enum data.v2.SearchType
9
9
  */
@@ -38,6 +38,52 @@ proto3.util.setEnumType(SearchType, "data.v2.SearchType", [
38
38
  { no: 3, name: "SEARCH_TYPE_AUCTION" },
39
39
  { no: 4, name: "SEARCH_TYPE_CATEGORY" },
40
40
  ]);
41
+ /**
42
+ * 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.
43
+ *
44
+ * @generated from enum data.v2.AuctionLifecycle
45
+ */
46
+ export var AuctionLifecycle;
47
+ (function (AuctionLifecycle) {
48
+ /**
49
+ * The current row, the chain head or the raise figures were unavailable; the block times and raw raise fields, when set, still let a client classify.
50
+ *
51
+ * @generated from enum value: AUCTION_LIFECYCLE_UNSPECIFIED = 0;
52
+ */
53
+ AuctionLifecycle[AuctionLifecycle["UNSPECIFIED"] = 0] = "UNSPECIFIED";
54
+ /**
55
+ * start_block not yet reached.
56
+ *
57
+ * @generated from enum value: AUCTION_LIFECYCLE_UPCOMING = 1;
58
+ */
59
+ AuctionLifecycle[AuctionLifecycle["UPCOMING"] = 1] = "UPCOMING";
60
+ /**
61
+ * start_block reached and end_block not yet reached (the data.v1 AuctionStatusFilter ACTIVE rule).
62
+ *
63
+ * @generated from enum value: AUCTION_LIFECYCLE_LIVE = 2;
64
+ */
65
+ AuctionLifecycle[AuctionLifecycle["LIVE"] = 2] = "LIVE";
66
+ /**
67
+ * Ended with total_bid_volume >= required_currency_raised, or already migrated into its pool; the migration itself may still be pending.
68
+ *
69
+ * @generated from enum value: AUCTION_LIFECYCLE_GRADUATED = 3;
70
+ */
71
+ AuctionLifecycle[AuctionLifecycle["GRADUATED"] = 3] = "GRADUATED";
72
+ /**
73
+ * Ended with total_bid_volume < required_currency_raised.
74
+ *
75
+ * @generated from enum value: AUCTION_LIFECYCLE_FAILED = 4;
76
+ */
77
+ AuctionLifecycle[AuctionLifecycle["FAILED"] = 4] = "FAILED";
78
+ })(AuctionLifecycle || (AuctionLifecycle = {}));
79
+ // Retrieve enum metadata with: proto3.getEnumType(AuctionLifecycle)
80
+ proto3.util.setEnumType(AuctionLifecycle, "data.v2.AuctionLifecycle", [
81
+ { no: 0, name: "AUCTION_LIFECYCLE_UNSPECIFIED" },
82
+ { no: 1, name: "AUCTION_LIFECYCLE_UPCOMING" },
83
+ { no: 2, name: "AUCTION_LIFECYCLE_LIVE" },
84
+ { no: 3, name: "AUCTION_LIFECYCLE_GRADUATED" },
85
+ { no: 4, name: "AUCTION_LIFECYCLE_FAILED" },
86
+ ]);
41
87
  /**
42
88
  * @generated from message data.v2.SearchRequest
43
89
  */
@@ -183,6 +229,10 @@ export class SearchAuction extends Message {
183
229
  * @generated from field: string total_bid_volume_usd = 7;
184
230
  */
185
231
  this.totalBidVolumeUsd = "";
232
+ /**
233
+ * @generated from field: data.v2.AuctionLifecycle lifecycle = 11;
234
+ */
235
+ this.lifecycle = AuctionLifecycle.UNSPECIFIED;
186
236
  proto3.util.initPartial(data, this);
187
237
  }
188
238
  static fromBinary(bytes, options) {
@@ -210,4 +260,11 @@ SearchAuction.fields = proto3.util.newFieldList(() => [
210
260
  { no: 7, name: "total_bid_volume_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ },
211
261
  { no: 8, name: "fdv_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
212
262
  { no: 9, name: "estimated_end_time", kind: "message", T: Timestamp, opt: true },
263
+ { no: 10, name: "estimated_start_time", kind: "message", T: Timestamp, opt: true },
264
+ { no: 11, name: "lifecycle", kind: "enum", T: proto3.getEnumType(AuctionLifecycle) },
265
+ { no: 12, name: "launch_provenance", kind: "message", T: TokenLaunchProvenance, opt: true },
266
+ { no: 13, name: "total_bid_volume", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
267
+ { no: 14, name: "required_currency_raised", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
268
+ { no: 15, name: "currency_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
269
+ { no: 16, name: "currency_decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
213
270
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.259",
3
+ "version": "0.0.261",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },