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