@uniswap/client-data-api 0.0.264 → 0.0.267

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,678 +0,0 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
- // @generated from file launches/v1/types.proto (package launches.v1, syntax proto3)
3
- /* eslint-disable */
4
- // @ts-nocheck
5
- import { Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
6
- /**
7
- * Sort field for ListLaunches; UNSPECIFIED defaults to LAUNCHED_AT (newest first).
8
- *
9
- * @generated from enum launches.v1.LaunchesOrderBy
10
- */
11
- export var LaunchesOrderBy;
12
- (function (LaunchesOrderBy) {
13
- /**
14
- * @generated from enum value: LAUNCHES_ORDER_BY_UNSPECIFIED = 0;
15
- */
16
- LaunchesOrderBy[LaunchesOrderBy["UNSPECIFIED"] = 0] = "UNSPECIFIED";
17
- /**
18
- * @generated from enum value: LAUNCHES_ORDER_BY_LAUNCHED_AT = 1;
19
- */
20
- LaunchesOrderBy[LaunchesOrderBy["LAUNCHED_AT"] = 1] = "LAUNCHED_AT";
21
- /**
22
- * @generated from enum value: LAUNCHES_ORDER_BY_VOLUME_1D = 2;
23
- */
24
- LaunchesOrderBy[LaunchesOrderBy["VOLUME_1D"] = 2] = "VOLUME_1D";
25
- /**
26
- * @generated from enum value: LAUNCHES_ORDER_BY_TVL = 3;
27
- */
28
- LaunchesOrderBy[LaunchesOrderBy["TVL"] = 3] = "TVL";
29
- /**
30
- * @generated from enum value: LAUNCHES_ORDER_BY_PRICE_CHANGE_1H = 4;
31
- */
32
- LaunchesOrderBy[LaunchesOrderBy["PRICE_CHANGE_1H"] = 4] = "PRICE_CHANGE_1H";
33
- /**
34
- * @generated from enum value: LAUNCHES_ORDER_BY_PRICE_CHANGE_1D = 5;
35
- */
36
- LaunchesOrderBy[LaunchesOrderBy["PRICE_CHANGE_1D"] = 5] = "PRICE_CHANGE_1D";
37
- /**
38
- * Trending: launches with recent buy-side momentum. Candidates are tokens
39
- * with buy activity in the trailing hour REGARDLESS of launch age; gated
40
- * (non-negative 1h price change, minimum FDV, minimum distinct 1h buyers)
41
- * and scored by volume/buyer acceleration vs the preceding hours, with the
42
- * remainder of the page backfilled by 24h volume so the module never
43
- * renders empty. Needs no LaunchListFilter.window — any window filter is
44
- * ignored under this sort.
45
- *
46
- * @generated from enum value: LAUNCHES_ORDER_BY_TRENDING = 6;
47
- */
48
- LaunchesOrderBy[LaunchesOrderBy["TRENDING"] = 6] = "TRENDING";
49
- /**
50
- * Fully-diluted valuation, descending by default. Served from the RANKED
51
- * launch_tokens read (the live attribution scan has no FDV engine), which
52
- * every non-LAUNCHED_AT sort already routes to. Unlike TRENDING, a
53
- * LaunchListFilter.window IS applied under this sort: the launch-age floor
54
- * reaches both arms, so FDV + LAST_24H ranks by FDV among launches inside
55
- * that window rather than across all launches.
56
- *
57
- * @generated from enum value: LAUNCHES_ORDER_BY_FDV = 7;
58
- */
59
- LaunchesOrderBy[LaunchesOrderBy["FDV"] = 7] = "FDV";
60
- })(LaunchesOrderBy || (LaunchesOrderBy = {}));
61
- // Retrieve enum metadata with: proto3.getEnumType(LaunchesOrderBy)
62
- proto3.util.setEnumType(LaunchesOrderBy, "launches.v1.LaunchesOrderBy", [
63
- { no: 0, name: "LAUNCHES_ORDER_BY_UNSPECIFIED" },
64
- { no: 1, name: "LAUNCHES_ORDER_BY_LAUNCHED_AT" },
65
- { no: 2, name: "LAUNCHES_ORDER_BY_VOLUME_1D" },
66
- { no: 3, name: "LAUNCHES_ORDER_BY_TVL" },
67
- { no: 4, name: "LAUNCHES_ORDER_BY_PRICE_CHANGE_1H" },
68
- { no: 5, name: "LAUNCHES_ORDER_BY_PRICE_CHANGE_1D" },
69
- { no: 6, name: "LAUNCHES_ORDER_BY_TRENDING" },
70
- { no: 7, name: "LAUNCHES_ORDER_BY_FDV" },
71
- ]);
72
- /**
73
- * Launch-recency window for ListLaunches. UNSPECIFIED applies no window (all
74
- * launches); LAST_24H / LAST_1H keep only launches whose launched_at is within
75
- * the trailing 24 hours / 1 hour respectively.
76
- *
77
- * @generated from enum launches.v1.LaunchWindow
78
- */
79
- export var LaunchWindow;
80
- (function (LaunchWindow) {
81
- /**
82
- * @generated from enum value: LAUNCH_WINDOW_UNSPECIFIED = 0;
83
- */
84
- LaunchWindow[LaunchWindow["UNSPECIFIED"] = 0] = "UNSPECIFIED";
85
- /**
86
- * @generated from enum value: LAUNCH_WINDOW_LAST_24H = 1;
87
- */
88
- LaunchWindow[LaunchWindow["LAST_24H"] = 1] = "LAST_24H";
89
- /**
90
- * @generated from enum value: LAUNCH_WINDOW_LAST_1H = 2;
91
- */
92
- LaunchWindow[LaunchWindow["LAST_1H"] = 2] = "LAST_1H";
93
- })(LaunchWindow || (LaunchWindow = {}));
94
- // Retrieve enum metadata with: proto3.getEnumType(LaunchWindow)
95
- proto3.util.setEnumType(LaunchWindow, "launches.v1.LaunchWindow", [
96
- { no: 0, name: "LAUNCH_WINDOW_UNSPECIFIED" },
97
- { no: 1, name: "LAUNCH_WINDOW_LAST_24H" },
98
- { no: 2, name: "LAUNCH_WINDOW_LAST_1H" },
99
- ]);
100
- /**
101
- * The trade's direction from the trader's perspective: BUY = the trader
102
- * received the requested token, SELL = the trader gave it up. UNSPECIFIED
103
- * when the direction can't be derived (zero/unknown amount).
104
- *
105
- * @generated from enum launches.v1.TradeSide
106
- */
107
- export var TradeSide;
108
- (function (TradeSide) {
109
- /**
110
- * @generated from enum value: TRADE_SIDE_UNSPECIFIED = 0;
111
- */
112
- TradeSide[TradeSide["UNSPECIFIED"] = 0] = "UNSPECIFIED";
113
- /**
114
- * @generated from enum value: TRADE_SIDE_BUY = 1;
115
- */
116
- TradeSide[TradeSide["BUY"] = 1] = "BUY";
117
- /**
118
- * @generated from enum value: TRADE_SIDE_SELL = 2;
119
- */
120
- TradeSide[TradeSide["SELL"] = 2] = "SELL";
121
- })(TradeSide || (TradeSide = {}));
122
- // Retrieve enum metadata with: proto3.getEnumType(TradeSide)
123
- proto3.util.setEnumType(TradeSide, "launches.v1.TradeSide", [
124
- { no: 0, name: "TRADE_SIDE_UNSPECIFIED" },
125
- { no: 1, name: "TRADE_SIDE_BUY" },
126
- { no: 2, name: "TRADE_SIDE_SELL" },
127
- ]);
128
- /**
129
- * @generated from message launches.v1.TimestampedValue
130
- */
131
- export class TimestampedValue extends Message {
132
- constructor(data) {
133
- super();
134
- /**
135
- * @generated from field: uint64 timestamp = 1;
136
- */
137
- this.timestamp = protoInt64.zero;
138
- /**
139
- * @generated from field: double value = 2;
140
- */
141
- this.value = 0;
142
- proto3.util.initPartial(data, this);
143
- }
144
- static fromBinary(bytes, options) {
145
- return new TimestampedValue().fromBinary(bytes, options);
146
- }
147
- static fromJson(jsonValue, options) {
148
- return new TimestampedValue().fromJson(jsonValue, options);
149
- }
150
- static fromJsonString(jsonString, options) {
151
- return new TimestampedValue().fromJsonString(jsonString, options);
152
- }
153
- static equals(a, b) {
154
- return proto3.util.equals(TimestampedValue, a, b);
155
- }
156
- }
157
- TimestampedValue.runtime = proto3;
158
- TimestampedValue.typeName = "launches.v1.TimestampedValue";
159
- TimestampedValue.fields = proto3.util.newFieldList(() => [
160
- { no: 1, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
161
- { no: 2, name: "value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
162
- ]);
163
- /**
164
- * @generated from message launches.v1.TokenSafety
165
- */
166
- export class TokenSafety extends Message {
167
- constructor(data) {
168
- super();
169
- /**
170
- * @generated from field: bool is_spam = 1;
171
- */
172
- this.isSpam = false;
173
- /**
174
- * @generated from field: bool is_verified = 2;
175
- */
176
- this.isVerified = false;
177
- /**
178
- * @generated from field: bool is_blocked = 3;
179
- */
180
- this.isBlocked = false;
181
- /**
182
- * @generated from field: repeated string features = 5;
183
- */
184
- this.features = [];
185
- proto3.util.initPartial(data, this);
186
- }
187
- static fromBinary(bytes, options) {
188
- return new TokenSafety().fromBinary(bytes, options);
189
- }
190
- static fromJson(jsonValue, options) {
191
- return new TokenSafety().fromJson(jsonValue, options);
192
- }
193
- static fromJsonString(jsonString, options) {
194
- return new TokenSafety().fromJsonString(jsonString, options);
195
- }
196
- static equals(a, b) {
197
- return proto3.util.equals(TokenSafety, a, b);
198
- }
199
- }
200
- TokenSafety.runtime = proto3;
201
- TokenSafety.typeName = "launches.v1.TokenSafety";
202
- TokenSafety.fields = proto3.util.newFieldList(() => [
203
- { no: 1, name: "is_spam", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
204
- { no: 2, name: "is_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
205
- { no: 3, name: "is_blocked", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
206
- { no: 4, name: "verdict", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
207
- { no: 5, name: "features", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
208
- ]);
209
- /**
210
- * A token launchpad known to the Launches surface (see the data-api
211
- * launchpad registry). A launchpad is the launching FRONTEND users see; id is
212
- * the stable slug used in launchpad_id filters.
213
- *
214
- * @generated from message launches.v1.Launchpad
215
- */
216
- export class Launchpad extends Message {
217
- constructor(data) {
218
- super();
219
- /**
220
- * @generated from field: string id = 1;
221
- */
222
- this.id = "";
223
- /**
224
- * @generated from field: string name = 2;
225
- */
226
- this.name = "";
227
- proto3.util.initPartial(data, this);
228
- }
229
- static fromBinary(bytes, options) {
230
- return new Launchpad().fromBinary(bytes, options);
231
- }
232
- static fromJson(jsonValue, options) {
233
- return new Launchpad().fromJson(jsonValue, options);
234
- }
235
- static fromJsonString(jsonString, options) {
236
- return new Launchpad().fromJsonString(jsonString, options);
237
- }
238
- static equals(a, b) {
239
- return proto3.util.equals(Launchpad, a, b);
240
- }
241
- }
242
- Launchpad.runtime = proto3;
243
- Launchpad.typeName = "launches.v1.Launchpad";
244
- Launchpad.fields = proto3.util.newFieldList(() => [
245
- { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
246
- { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
247
- { no: 3, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
248
- { no: 4, name: "protocol", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
249
- ]);
250
- /**
251
- * Optional filters for ListLaunches. When a window is set and sort_by is
252
- * UNSPECIFIED the server sorts by 24h volume (VOLUME_1D).
253
- *
254
- * @generated from message launches.v1.LaunchListFilter
255
- */
256
- export class LaunchListFilter extends Message {
257
- constructor(data) {
258
- super();
259
- /**
260
- * @generated from field: launches.v1.LaunchWindow window = 1;
261
- */
262
- this.window = LaunchWindow.UNSPECIFIED;
263
- proto3.util.initPartial(data, this);
264
- }
265
- static fromBinary(bytes, options) {
266
- return new LaunchListFilter().fromBinary(bytes, options);
267
- }
268
- static fromJson(jsonValue, options) {
269
- return new LaunchListFilter().fromJson(jsonValue, options);
270
- }
271
- static fromJsonString(jsonString, options) {
272
- return new LaunchListFilter().fromJsonString(jsonString, options);
273
- }
274
- static equals(a, b) {
275
- return proto3.util.equals(LaunchListFilter, a, b);
276
- }
277
- }
278
- LaunchListFilter.runtime = proto3;
279
- LaunchListFilter.typeName = "launches.v1.LaunchListFilter";
280
- LaunchListFilter.fields = proto3.util.newFieldList(() => [
281
- { no: 1, name: "window", kind: "enum", T: proto3.getEnumType(LaunchWindow) },
282
- ]);
283
- /**
284
- * The launched token's identity and display metadata.
285
- *
286
- * @generated from message launches.v1.LaunchToken
287
- */
288
- export class LaunchToken extends Message {
289
- constructor(data) {
290
- super();
291
- /**
292
- * @generated from field: uint32 chain_id = 1;
293
- */
294
- this.chainId = 0;
295
- /**
296
- * @generated from field: string address = 2;
297
- */
298
- this.address = "";
299
- /**
300
- * @generated from field: string symbol = 3;
301
- */
302
- this.symbol = "";
303
- /**
304
- * @generated from field: string name = 4;
305
- */
306
- this.name = "";
307
- proto3.util.initPartial(data, this);
308
- }
309
- static fromBinary(bytes, options) {
310
- return new LaunchToken().fromBinary(bytes, options);
311
- }
312
- static fromJson(jsonValue, options) {
313
- return new LaunchToken().fromJson(jsonValue, options);
314
- }
315
- static fromJsonString(jsonString, options) {
316
- return new LaunchToken().fromJsonString(jsonString, options);
317
- }
318
- static equals(a, b) {
319
- return proto3.util.equals(LaunchToken, a, b);
320
- }
321
- }
322
- LaunchToken.runtime = proto3;
323
- LaunchToken.typeName = "launches.v1.LaunchToken";
324
- LaunchToken.fields = proto3.util.newFieldList(() => [
325
- { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
326
- { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
327
- { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
328
- { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
329
- { no: 5, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
330
- { no: 6, name: "safety", kind: "message", T: TokenSafety },
331
- ]);
332
- /**
333
- * Live USD stats for a launch's pool/token. Each field is unset when its
334
- * source has no data yet (fresh launches lag the stats pipelines).
335
- *
336
- * @generated from message launches.v1.LaunchStats
337
- */
338
- export class LaunchStats extends Message {
339
- constructor(data) {
340
- super();
341
- /**
342
- * USD price sparkline over the trailing 24h, oldest first. Same shape as
343
- * RankedMultichainToken.sparkline (Aurora-side timestamps are synthesized;
344
- * CCA points are observed). Empty when no series is available.
345
- *
346
- * @generated from field: repeated launches.v1.TimestampedValue sparkline = 7;
347
- */
348
- this.sparkline = [];
349
- proto3.util.initPartial(data, this);
350
- }
351
- static fromBinary(bytes, options) {
352
- return new LaunchStats().fromBinary(bytes, options);
353
- }
354
- static fromJson(jsonValue, options) {
355
- return new LaunchStats().fromJson(jsonValue, options);
356
- }
357
- static fromJsonString(jsonString, options) {
358
- return new LaunchStats().fromJsonString(jsonString, options);
359
- }
360
- static equals(a, b) {
361
- return proto3.util.equals(LaunchStats, a, b);
362
- }
363
- }
364
- LaunchStats.runtime = proto3;
365
- LaunchStats.typeName = "launches.v1.LaunchStats";
366
- LaunchStats.fields = proto3.util.newFieldList(() => [
367
- { no: 1, name: "volume_24h_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
368
- { no: 2, name: "tvl_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
369
- { no: 3, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
370
- { no: 4, name: "fdv_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
371
- { no: 5, name: "price_change_percent_1h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
372
- { no: 6, name: "price_change_percent_24h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
373
- { no: 7, name: "sparkline", kind: "message", T: TimestampedValue, repeated: true },
374
- { no: 8, name: "price_eth", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
375
- { no: 9, name: "price_24h_ago_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
376
- ]);
377
- /**
378
- * One token launch: the earliest pool a (token, launchpad) pair created.
379
- *
380
- * @generated from message launches.v1.Launch
381
- */
382
- export class Launch extends Message {
383
- constructor(data) {
384
- super();
385
- /**
386
- * @generated from field: string launchpad_id = 1;
387
- */
388
- this.launchpadId = "";
389
- /**
390
- * v4 pool id for hook-attributed and direct launches; CCA pool key hash
391
- * once the auction has migrated to a pool, empty before then.
392
- *
393
- * @generated from field: string pool_id = 3;
394
- */
395
- this.poolId = "";
396
- /**
397
- * unix seconds
398
- *
399
- * @generated from field: int64 launched_at = 5;
400
- */
401
- this.launchedAt = protoInt64.zero;
402
- /**
403
- * Home-card trade tape: the launch token's most recent swaps, newest
404
- * first, capped at the last 5 within the trailing 24h — same rows (and
405
- * message) GetTokenTrades serves, aggregated across all the token's pools
406
- * on its chain. Served from a short-TTL cache refreshed off the request
407
- * path, so entries can lag live trades by the cache TTL (~30s) and a
408
- * cold cache serves an empty list — clients treat empty as "no recent
409
- * activity known", not an error. Pre-graduation CCA launches have no
410
- * swaps by construction (bids are not trades) — the auction tape is
411
- * AuctionWithStats.recent_bids on ListTopAuctions.
412
- *
413
- * @generated from field: repeated launches.v1.TokenTrade recent_trades = 24;
414
- */
415
- this.recentTrades = [];
416
- /**
417
- * Badges earned by the launch's token (LP badges), one per badge type,
418
- * highest tier only, canonical order. Empty until the token has earned
419
- * any (badges are awarded at ingest and by a slow tier cron, so the
420
- * common row serves an empty list).
421
- *
422
- * @generated from field: repeated launches.v1.LaunchBadge badges = 25;
423
- */
424
- this.badges = [];
425
- proto3.util.initPartial(data, this);
426
- }
427
- static fromBinary(bytes, options) {
428
- return new Launch().fromBinary(bytes, options);
429
- }
430
- static fromJson(jsonValue, options) {
431
- return new Launch().fromJson(jsonValue, options);
432
- }
433
- static fromJsonString(jsonString, options) {
434
- return new Launch().fromJsonString(jsonString, options);
435
- }
436
- static equals(a, b) {
437
- return proto3.util.equals(Launch, a, b);
438
- }
439
- }
440
- Launch.runtime = proto3;
441
- Launch.typeName = "launches.v1.Launch";
442
- Launch.fields = proto3.util.newFieldList(() => [
443
- { no: 1, name: "launchpad_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
444
- { no: 2, name: "token", kind: "message", T: LaunchToken },
445
- { no: 3, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
446
- { no: 4, name: "hooks_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
447
- { no: 5, name: "launched_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
448
- { no: 6, name: "stats", kind: "message", T: LaunchStats },
449
- { no: 7, name: "graduated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
450
- { no: 8, name: "auction_fill_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
451
- { no: 9, name: "auction_end_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
452
- { no: 10, name: "bidder_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
453
- { no: 11, name: "bonding_curve", kind: "message", T: BondingCurveInfo, opt: true },
454
- { no: 12, name: "token_description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
455
- { no: 13, name: "creator_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
456
- { no: 14, name: "website_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
457
- { no: 15, name: "x_handle", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
458
- { no: 16, name: "unique_buyer_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
459
- { no: 17, name: "buyers_last_1h", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
460
- { no: 18, name: "holder_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
461
- { no: 19, name: "burned_to_zero", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
462
- { no: 20, name: "burned_to_dead", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
463
- { no: 21, name: "auction_end_time", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
464
- { no: 22, name: "x_profile_image_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
465
- { no: 23, name: "x_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
466
- { no: 24, name: "recent_trades", kind: "message", T: TokenTrade, repeated: true },
467
- { no: 25, name: "badges", kind: "message", T: LaunchBadge, repeated: true },
468
- ]);
469
- /**
470
- * One badge earned by a launch's token. type/tier are deliberately plain
471
- * strings, NOT enums: the client contract pins the lowercase ids on the
472
- * wire, and proto-JSON would serialize an enum's VALUE NAMES instead.
473
- *
474
- * @generated from message launches.v1.LaunchBadge
475
- */
476
- export class LaunchBadge extends Message {
477
- constructor(data) {
478
- super();
479
- /**
480
- * "original" | "frontrunner" | "volume" | "holders" | "badger".
481
- *
482
- * @generated from field: string type = 1;
483
- */
484
- this.type = "";
485
- proto3.util.initPartial(data, this);
486
- }
487
- static fromBinary(bytes, options) {
488
- return new LaunchBadge().fromBinary(bytes, options);
489
- }
490
- static fromJson(jsonValue, options) {
491
- return new LaunchBadge().fromJson(jsonValue, options);
492
- }
493
- static fromJsonString(jsonString, options) {
494
- return new LaunchBadge().fromJsonString(jsonString, options);
495
- }
496
- static equals(a, b) {
497
- return proto3.util.equals(LaunchBadge, a, b);
498
- }
499
- }
500
- LaunchBadge.runtime = proto3;
501
- LaunchBadge.typeName = "launches.v1.LaunchBadge";
502
- LaunchBadge.fields = proto3.util.newFieldList(() => [
503
- { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
504
- { no: 2, name: "tier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
505
- { no: 3, name: "earned_at", kind: "message", T: Timestamp },
506
- { no: 4, name: "holder_percentage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
507
- ]);
508
- /**
509
- * One row of a launch token's holder list (GetLaunchHolders).
510
- *
511
- * @generated from message launches.v1.LaunchHolder
512
- */
513
- export class LaunchHolder extends Message {
514
- constructor(data) {
515
- super();
516
- /**
517
- * EIP-55 checksummed, so clients can equality-match against
518
- * Launch.creator_address and well-known addresses (LP, burn sinks).
519
- *
520
- * @generated from field: string address = 1;
521
- */
522
- this.address = "";
523
- /**
524
- * Net balance, raw base units as a decimal string. For the synthetic
525
- * zero-address burn row this is the cumulative amount burned to 0x0.
526
- *
527
- * @generated from field: string balance = 2;
528
- */
529
- this.balance = "";
530
- /**
531
- * balance as a percent of minted_supply, in [0, 100].
532
- *
533
- * @generated from field: double supply_pct = 3;
534
- */
535
- this.supplyPct = 0;
536
- /**
537
- * True for burn-sink rows (the zero address and 0x…dEaD). Burn rows are
538
- * served in the list (burned tokens stay visible) but excluded from
539
- * top10_supply_pct; the synthetic zero-address row is also excluded from
540
- * holder_count (0x…dEaD counts, matching Launch.holder_count).
541
- *
542
- * @generated from field: bool is_burn_address = 4;
543
- */
544
- this.isBurnAddress = false;
545
- /**
546
- * True for the launch pool's custody row — the chain's v4 PoolManager
547
- * singleton, which holds the pool's token-side balance (the LP NFT sits
548
- * in the FeeSplitter, the ERC-20 supply does not). Served in the list so
549
- * clients can label it, but excluded from top10_supply_pct like burn rows
550
- * (the pool is the market, not a dumpable holder); it stays inside
551
- * holder_count.
552
- *
553
- * @generated from field: bool is_pool_address = 5;
554
- */
555
- this.isPoolAddress = false;
556
- proto3.util.initPartial(data, this);
557
- }
558
- static fromBinary(bytes, options) {
559
- return new LaunchHolder().fromBinary(bytes, options);
560
- }
561
- static fromJson(jsonValue, options) {
562
- return new LaunchHolder().fromJson(jsonValue, options);
563
- }
564
- static fromJsonString(jsonString, options) {
565
- return new LaunchHolder().fromJsonString(jsonString, options);
566
- }
567
- static equals(a, b) {
568
- return proto3.util.equals(LaunchHolder, a, b);
569
- }
570
- }
571
- LaunchHolder.runtime = proto3;
572
- LaunchHolder.typeName = "launches.v1.LaunchHolder";
573
- LaunchHolder.fields = proto3.util.newFieldList(() => [
574
- { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
575
- { no: 2, name: "balance", kind: "scalar", T: 9 /* ScalarType.STRING */ },
576
- { no: 3, name: "supply_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
577
- { no: 4, name: "is_burn_address", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
578
- { no: 5, name: "is_pool_address", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
579
- ]);
580
- /**
581
- * Overlay for launches of the Uniswap direct-launch launchpad (launchpad_id
582
- * "uniswap-bonding-curve", kept for client compatibility). The current
583
- * launcher generation (DirectLaunchStrategy, LP-1289) is hookless with NO
584
- * on-chain graduation lifecycle: launch pools are vanilla v4 pools from
585
- * block one, and "graduation" is a serving/frontend concept (an FDV
586
- * threshold), not a contract event. Fields 1-5 and 7-9 belong to the
587
- * never-launched bonding-curve hook generation and are no longer set for
588
- * new launches; they are kept so the message shape stays wire-compatible.
589
- *
590
- * @generated from message launches.v1.BondingCurveInfo
591
- */
592
- export class BondingCurveInfo extends Message {
593
- constructor(data) {
594
- super();
595
- proto3.util.initPartial(data, this);
596
- }
597
- static fromBinary(bytes, options) {
598
- return new BondingCurveInfo().fromBinary(bytes, options);
599
- }
600
- static fromJson(jsonValue, options) {
601
- return new BondingCurveInfo().fromJson(jsonValue, options);
602
- }
603
- static fromJsonString(jsonString, options) {
604
- return new BondingCurveInfo().fromJsonString(jsonString, options);
605
- }
606
- static equals(a, b) {
607
- return proto3.util.equals(BondingCurveInfo, a, b);
608
- }
609
- }
610
- BondingCurveInfo.runtime = proto3;
611
- BondingCurveInfo.typeName = "launches.v1.BondingCurveInfo";
612
- BondingCurveInfo.fields = proto3.util.newFieldList(() => [
613
- { no: 1, name: "graduation_sqrt_price_x96", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
614
- { no: 2, name: "curve_tick_lower", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
615
- { no: 3, name: "curve_tick_upper", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
616
- { no: 4, name: "curve_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
617
- { no: 5, name: "reserve_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
618
- { no: 7, name: "graduated_tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
619
- { no: 8, name: "curve_progress_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
620
- { no: 9, name: "graduated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
621
- { no: 10, name: "fee_beneficiary", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
622
- ]);
623
- /**
624
- * One swap involving the requested token, returned by GetTokenTrades.
625
- *
626
- * @generated from message launches.v1.TokenTrade
627
- */
628
- export class TokenTrade extends Message {
629
- constructor(data) {
630
- super();
631
- /**
632
- * @generated from field: string tx_hash = 1;
633
- */
634
- this.txHash = "";
635
- /**
636
- * @generated from field: launches.v1.TradeSide side = 2;
637
- */
638
- this.side = TradeSide.UNSPECIFIED;
639
- /**
640
- * The transaction's from-address (the EOA that signed it), not the router
641
- * contract that forwarded the swap to the pool.
642
- *
643
- * @generated from field: string wallet = 3;
644
- */
645
- this.wallet = "";
646
- /**
647
- * Absolute amount of the requested token traded, decimal string in token
648
- * units (decimals applied). Empty when the token's decimals are unknown.
649
- *
650
- * @generated from field: string token_amount = 5;
651
- */
652
- this.tokenAmount = "";
653
- proto3.util.initPartial(data, this);
654
- }
655
- static fromBinary(bytes, options) {
656
- return new TokenTrade().fromBinary(bytes, options);
657
- }
658
- static fromJson(jsonValue, options) {
659
- return new TokenTrade().fromJson(jsonValue, options);
660
- }
661
- static fromJsonString(jsonString, options) {
662
- return new TokenTrade().fromJsonString(jsonString, options);
663
- }
664
- static equals(a, b) {
665
- return proto3.util.equals(TokenTrade, a, b);
666
- }
667
- }
668
- TokenTrade.runtime = proto3;
669
- TokenTrade.typeName = "launches.v1.TokenTrade";
670
- TokenTrade.fields = proto3.util.newFieldList(() => [
671
- { no: 1, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
672
- { no: 2, name: "side", kind: "enum", T: proto3.getEnumType(TradeSide) },
673
- { no: 3, name: "wallet", kind: "scalar", T: 9 /* ScalarType.STRING */ },
674
- { no: 4, name: "amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
675
- { no: 5, name: "token_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
676
- { no: 6, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
677
- { no: 7, name: "timestamp", kind: "message", T: Timestamp },
678
- ]);