@uniswap/client-data-api 0.0.18 → 0.0.20

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.
@@ -0,0 +1,471 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
+ // @generated from file data/v1/searchTypes.proto (package search.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
6
+ /**
7
+ * @generated from enum search.v1.SearchType
8
+ */
9
+ export var SearchType;
10
+ (function (SearchType) {
11
+ /**
12
+ * @generated from enum value: SEARCH_TYPE_UNSPECIFIED = 0;
13
+ */
14
+ SearchType[SearchType["SEARCH_TYPE_UNSPECIFIED"] = 0] = "SEARCH_TYPE_UNSPECIFIED";
15
+ /**
16
+ * @generated from enum value: TOKEN = 1;
17
+ */
18
+ SearchType[SearchType["TOKEN"] = 1] = "TOKEN";
19
+ /**
20
+ * @generated from enum value: POOL = 2;
21
+ */
22
+ SearchType[SearchType["POOL"] = 2] = "POOL";
23
+ })(SearchType || (SearchType = {}));
24
+ // Retrieve enum metadata with: proto3.getEnumType(SearchType)
25
+ proto3.util.setEnumType(SearchType, "search.v1.SearchType", [
26
+ { no: 0, name: "SEARCH_TYPE_UNSPECIFIED" },
27
+ { no: 1, name: "TOKEN" },
28
+ { no: 2, name: "POOL" },
29
+ ]);
30
+ /**
31
+ * @generated from enum search.v1.SpamCode
32
+ */
33
+ export var SpamCode;
34
+ (function (SpamCode) {
35
+ /**
36
+ * @generated from enum value: NOT_SPAM = 0;
37
+ */
38
+ SpamCode[SpamCode["NOT_SPAM"] = 0] = "NOT_SPAM";
39
+ /**
40
+ * @generated from enum value: SPAM = 1;
41
+ */
42
+ SpamCode[SpamCode["SPAM"] = 1] = "SPAM";
43
+ /**
44
+ * @generated from enum value: SPAM_URL = 2;
45
+ */
46
+ SpamCode[SpamCode["SPAM_URL"] = 2] = "SPAM_URL";
47
+ })(SpamCode || (SpamCode = {}));
48
+ // Retrieve enum metadata with: proto3.getEnumType(SpamCode)
49
+ proto3.util.setEnumType(SpamCode, "search.v1.SpamCode", [
50
+ { no: 0, name: "NOT_SPAM" },
51
+ { no: 1, name: "SPAM" },
52
+ { no: 2, name: "SPAM_URL" },
53
+ ]);
54
+ /**
55
+ * @generated from enum search.v1.AttackType
56
+ */
57
+ export var AttackType;
58
+ (function (AttackType) {
59
+ /**
60
+ * @generated from enum value: ATTACK_TYPE_UNSPECIFIED = 0;
61
+ */
62
+ AttackType[AttackType["ATTACK_TYPE_UNSPECIFIED"] = 0] = "ATTACK_TYPE_UNSPECIFIED";
63
+ /**
64
+ * @generated from enum value: METADATA = 1;
65
+ */
66
+ AttackType[AttackType["METADATA"] = 1] = "METADATA";
67
+ /**
68
+ * @generated from enum value: INORGANIC_VOLUME = 2;
69
+ */
70
+ AttackType[AttackType["INORGANIC_VOLUME"] = 2] = "INORGANIC_VOLUME";
71
+ /**
72
+ * @generated from enum value: AIRDROP_PATTERN = 3;
73
+ */
74
+ AttackType[AttackType["AIRDROP_PATTERN"] = 3] = "AIRDROP_PATTERN";
75
+ /**
76
+ * @generated from enum value: DYNAMIC_ANALYSIS = 4;
77
+ */
78
+ AttackType[AttackType["DYNAMIC_ANALYSIS"] = 4] = "DYNAMIC_ANALYSIS";
79
+ /**
80
+ * @generated from enum value: STATIC_CODE_SIGNATURE = 5;
81
+ */
82
+ AttackType[AttackType["STATIC_CODE_SIGNATURE"] = 5] = "STATIC_CODE_SIGNATURE";
83
+ /**
84
+ * @generated from enum value: KNOWN_MALICIOUS = 6;
85
+ */
86
+ AttackType[AttackType["KNOWN_MALICIOUS"] = 6] = "KNOWN_MALICIOUS";
87
+ /**
88
+ * @generated from enum value: IMPERSONATOR = 7;
89
+ */
90
+ AttackType[AttackType["IMPERSONATOR"] = 7] = "IMPERSONATOR";
91
+ /**
92
+ * @generated from enum value: UNSTABLE_TOKEN_PRICE = 8;
93
+ */
94
+ AttackType[AttackType["UNSTABLE_TOKEN_PRICE"] = 8] = "UNSTABLE_TOKEN_PRICE";
95
+ /**
96
+ * @generated from enum value: RUGPULL = 9;
97
+ */
98
+ AttackType[AttackType["RUGPULL"] = 9] = "RUGPULL";
99
+ /**
100
+ * @generated from enum value: HIGH_FEES = 10;
101
+ */
102
+ AttackType[AttackType["HIGH_FEES"] = 10] = "HIGH_FEES";
103
+ })(AttackType || (AttackType = {}));
104
+ // Retrieve enum metadata with: proto3.getEnumType(AttackType)
105
+ proto3.util.setEnumType(AttackType, "search.v1.AttackType", [
106
+ { no: 0, name: "ATTACK_TYPE_UNSPECIFIED" },
107
+ { no: 1, name: "METADATA" },
108
+ { no: 2, name: "INORGANIC_VOLUME" },
109
+ { no: 3, name: "AIRDROP_PATTERN" },
110
+ { no: 4, name: "DYNAMIC_ANALYSIS" },
111
+ { no: 5, name: "STATIC_CODE_SIGNATURE" },
112
+ { no: 6, name: "KNOWN_MALICIOUS" },
113
+ { no: 7, name: "IMPERSONATOR" },
114
+ { no: 8, name: "UNSTABLE_TOKEN_PRICE" },
115
+ { no: 9, name: "RUGPULL" },
116
+ { no: 10, name: "HIGH_FEES" },
117
+ ]);
118
+ /**
119
+ * @generated from message search.v1.Token
120
+ */
121
+ export class Token extends Message {
122
+ constructor(data) {
123
+ super();
124
+ /**
125
+ * @generated from field: string token_id = 1;
126
+ */
127
+ this.tokenId = "";
128
+ /**
129
+ * @generated from field: uint32 chain_id = 2;
130
+ */
131
+ this.chainId = 0;
132
+ /**
133
+ * @generated from field: string address = 3;
134
+ */
135
+ this.address = "";
136
+ /**
137
+ * @generated from field: uint32 decimals = 4;
138
+ */
139
+ this.decimals = 0;
140
+ /**
141
+ * @generated from field: string symbol = 5;
142
+ */
143
+ this.symbol = "";
144
+ /**
145
+ * @generated from field: string name = 6;
146
+ */
147
+ this.name = "";
148
+ /**
149
+ * @generated from field: string standard = 7;
150
+ */
151
+ this.standard = "";
152
+ /**
153
+ * @generated from field: string project_name = 8;
154
+ */
155
+ this.projectName = "";
156
+ /**
157
+ * @generated from field: string logo_url = 9;
158
+ */
159
+ this.logoUrl = "";
160
+ /**
161
+ * @generated from field: string is_spam = 10;
162
+ */
163
+ this.isSpam = "";
164
+ /**
165
+ * @generated from field: string safety_level = 11;
166
+ */
167
+ this.safetyLevel = "";
168
+ /**
169
+ * @generated from field: search.v1.SpamCode spam_code = 12;
170
+ */
171
+ this.spamCode = SpamCode.NOT_SPAM;
172
+ proto3.util.initPartial(data, this);
173
+ }
174
+ static fromBinary(bytes, options) {
175
+ return new Token().fromBinary(bytes, options);
176
+ }
177
+ static fromJson(jsonValue, options) {
178
+ return new Token().fromJson(jsonValue, options);
179
+ }
180
+ static fromJsonString(jsonString, options) {
181
+ return new Token().fromJsonString(jsonString, options);
182
+ }
183
+ static equals(a, b) {
184
+ return proto3.util.equals(Token, a, b);
185
+ }
186
+ }
187
+ Token.runtime = proto3;
188
+ Token.typeName = "search.v1.Token";
189
+ Token.fields = proto3.util.newFieldList(() => [
190
+ { no: 1, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
191
+ { no: 2, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
192
+ { no: 3, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
193
+ { no: 4, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
194
+ { no: 5, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
195
+ { no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
196
+ { no: 7, name: "standard", kind: "scalar", T: 9 /* ScalarType.STRING */ },
197
+ { no: 8, name: "project_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
198
+ { no: 9, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
199
+ { no: 10, name: "is_spam", kind: "scalar", T: 9 /* ScalarType.STRING */ },
200
+ { no: 11, name: "safety_level", kind: "scalar", T: 9 /* ScalarType.STRING */ },
201
+ { no: 12, name: "spam_code", kind: "enum", T: proto3.getEnumType(SpamCode) },
202
+ { no: 13, name: "fee_data", kind: "message", T: FeeData },
203
+ { no: 14, name: "protection_info", kind: "message", T: TokenProtectionInfo },
204
+ ]);
205
+ /**
206
+ * @generated from message search.v1.FeeData
207
+ */
208
+ export class FeeData extends Message {
209
+ constructor(data) {
210
+ super();
211
+ /**
212
+ * @generated from field: string sell_fee_bps = 1;
213
+ */
214
+ this.sellFeeBps = "";
215
+ /**
216
+ * @generated from field: string buy_fee_bps = 2;
217
+ */
218
+ this.buyFeeBps = "";
219
+ /**
220
+ * @generated from field: bool fee_taken_on_transfer = 3;
221
+ */
222
+ this.feeTakenOnTransfer = false;
223
+ /**
224
+ * @generated from field: bool external_transfer_failed = 4;
225
+ */
226
+ this.externalTransferFailed = false;
227
+ /**
228
+ * @generated from field: bool sell_reverted = 5;
229
+ */
230
+ this.sellReverted = false;
231
+ proto3.util.initPartial(data, this);
232
+ }
233
+ static fromBinary(bytes, options) {
234
+ return new FeeData().fromBinary(bytes, options);
235
+ }
236
+ static fromJson(jsonValue, options) {
237
+ return new FeeData().fromJson(jsonValue, options);
238
+ }
239
+ static fromJsonString(jsonString, options) {
240
+ return new FeeData().fromJsonString(jsonString, options);
241
+ }
242
+ static equals(a, b) {
243
+ return proto3.util.equals(FeeData, a, b);
244
+ }
245
+ }
246
+ FeeData.runtime = proto3;
247
+ FeeData.typeName = "search.v1.FeeData";
248
+ FeeData.fields = proto3.util.newFieldList(() => [
249
+ { no: 1, name: "sell_fee_bps", kind: "scalar", T: 9 /* ScalarType.STRING */ },
250
+ { no: 2, name: "buy_fee_bps", kind: "scalar", T: 9 /* ScalarType.STRING */ },
251
+ { no: 3, name: "fee_taken_on_transfer", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
252
+ { no: 4, name: "external_transfer_failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
253
+ { no: 5, name: "sell_reverted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
254
+ ]);
255
+ /**
256
+ * @generated from message search.v1.BlockaidFees
257
+ */
258
+ export class BlockaidFees extends Message {
259
+ constructor(data) {
260
+ super();
261
+ /**
262
+ * @generated from field: double transfer = 1;
263
+ */
264
+ this.transfer = 0;
265
+ /**
266
+ * @generated from field: double buy = 2;
267
+ */
268
+ this.buy = 0;
269
+ /**
270
+ * @generated from field: double sell = 3;
271
+ */
272
+ this.sell = 0;
273
+ proto3.util.initPartial(data, this);
274
+ }
275
+ static fromBinary(bytes, options) {
276
+ return new BlockaidFees().fromBinary(bytes, options);
277
+ }
278
+ static fromJson(jsonValue, options) {
279
+ return new BlockaidFees().fromJson(jsonValue, options);
280
+ }
281
+ static fromJsonString(jsonString, options) {
282
+ return new BlockaidFees().fromJsonString(jsonString, options);
283
+ }
284
+ static equals(a, b) {
285
+ return proto3.util.equals(BlockaidFees, a, b);
286
+ }
287
+ }
288
+ BlockaidFees.runtime = proto3;
289
+ BlockaidFees.typeName = "search.v1.BlockaidFees";
290
+ BlockaidFees.fields = proto3.util.newFieldList(() => [
291
+ { no: 1, name: "transfer", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
292
+ { no: 2, name: "buy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
293
+ { no: 3, name: "sell", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
294
+ ]);
295
+ /**
296
+ * @generated from message search.v1.TokenProtectionInfo
297
+ */
298
+ export class TokenProtectionInfo extends Message {
299
+ constructor(data) {
300
+ super();
301
+ /**
302
+ * @generated from field: string result = 1;
303
+ */
304
+ this.result = "";
305
+ /**
306
+ * @generated from field: string token_id = 2;
307
+ */
308
+ this.tokenId = "";
309
+ /**
310
+ * @generated from field: uint32 chain_id = 3;
311
+ */
312
+ this.chainId = 0;
313
+ /**
314
+ * @generated from field: repeated string attack_types = 4;
315
+ */
316
+ this.attackTypes = [];
317
+ /**
318
+ * @generated from field: string address = 5;
319
+ */
320
+ this.address = "";
321
+ /**
322
+ * @generated from field: uint32 updated_at = 7;
323
+ */
324
+ this.updatedAt = 0;
325
+ proto3.util.initPartial(data, this);
326
+ }
327
+ static fromBinary(bytes, options) {
328
+ return new TokenProtectionInfo().fromBinary(bytes, options);
329
+ }
330
+ static fromJson(jsonValue, options) {
331
+ return new TokenProtectionInfo().fromJson(jsonValue, options);
332
+ }
333
+ static fromJsonString(jsonString, options) {
334
+ return new TokenProtectionInfo().fromJsonString(jsonString, options);
335
+ }
336
+ static equals(a, b) {
337
+ return proto3.util.equals(TokenProtectionInfo, a, b);
338
+ }
339
+ }
340
+ TokenProtectionInfo.runtime = proto3;
341
+ TokenProtectionInfo.typeName = "search.v1.TokenProtectionInfo";
342
+ TokenProtectionInfo.fields = proto3.util.newFieldList(() => [
343
+ { no: 1, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ },
344
+ { no: 2, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
345
+ { no: 3, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
346
+ { no: 4, name: "attack_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
347
+ { no: 5, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
348
+ { no: 6, name: "blockaid_fees", kind: "message", T: BlockaidFees },
349
+ { no: 7, name: "updated_at", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
350
+ { no: 8, name: "fee_data", kind: "message", T: FeeData },
351
+ ]);
352
+ /**
353
+ * @generated from message search.v1.PoolTokenData
354
+ */
355
+ export class PoolTokenData extends Message {
356
+ constructor(data) {
357
+ super();
358
+ /**
359
+ * @generated from field: uint32 chain_id = 1;
360
+ */
361
+ this.chainId = 0;
362
+ /**
363
+ * @generated from field: string address = 2;
364
+ */
365
+ this.address = "";
366
+ /**
367
+ * @generated from field: string symbol = 3;
368
+ */
369
+ this.symbol = "";
370
+ /**
371
+ * @generated from field: string name = 4;
372
+ */
373
+ this.name = "";
374
+ /**
375
+ * @generated from field: uint32 decimals = 5;
376
+ */
377
+ this.decimals = 0;
378
+ /**
379
+ * @generated from field: string logo_url = 6;
380
+ */
381
+ this.logoUrl = "";
382
+ proto3.util.initPartial(data, this);
383
+ }
384
+ static fromBinary(bytes, options) {
385
+ return new PoolTokenData().fromBinary(bytes, options);
386
+ }
387
+ static fromJson(jsonValue, options) {
388
+ return new PoolTokenData().fromJson(jsonValue, options);
389
+ }
390
+ static fromJsonString(jsonString, options) {
391
+ return new PoolTokenData().fromJsonString(jsonString, options);
392
+ }
393
+ static equals(a, b) {
394
+ return proto3.util.equals(PoolTokenData, a, b);
395
+ }
396
+ }
397
+ PoolTokenData.runtime = proto3;
398
+ PoolTokenData.typeName = "search.v1.PoolTokenData";
399
+ PoolTokenData.fields = proto3.util.newFieldList(() => [
400
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
401
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
402
+ { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
403
+ { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
404
+ { no: 5, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
405
+ { no: 6, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
406
+ ]);
407
+ /**
408
+ * @generated from message search.v1.Pool
409
+ */
410
+ export class Pool extends Message {
411
+ constructor(data) {
412
+ super();
413
+ /**
414
+ * @generated from field: double volume_usd_24hr = 1;
415
+ */
416
+ this.volumeUsd24hr = 0;
417
+ /**
418
+ * @generated from field: double volume_usd_12hr = 2;
419
+ */
420
+ this.volumeUsd12hr = 0;
421
+ /**
422
+ * @generated from field: double volume_usd_6hr = 3;
423
+ */
424
+ this.volumeUsd6hr = 0;
425
+ /**
426
+ * @generated from field: string id = 6;
427
+ */
428
+ this.id = "";
429
+ /**
430
+ * @generated from field: uint32 chain_id = 7;
431
+ */
432
+ this.chainId = 0;
433
+ /**
434
+ * V4, V3, or V2
435
+ *
436
+ * @generated from field: string protocol_version = 9;
437
+ */
438
+ this.protocolVersion = "";
439
+ /**
440
+ * @generated from field: uint32 fee_tier = 10;
441
+ */
442
+ this.feeTier = 0;
443
+ proto3.util.initPartial(data, this);
444
+ }
445
+ static fromBinary(bytes, options) {
446
+ return new Pool().fromBinary(bytes, options);
447
+ }
448
+ static fromJson(jsonValue, options) {
449
+ return new Pool().fromJson(jsonValue, options);
450
+ }
451
+ static fromJsonString(jsonString, options) {
452
+ return new Pool().fromJsonString(jsonString, options);
453
+ }
454
+ static equals(a, b) {
455
+ return proto3.util.equals(Pool, a, b);
456
+ }
457
+ }
458
+ Pool.runtime = proto3;
459
+ Pool.typeName = "search.v1.Pool";
460
+ Pool.fields = proto3.util.newFieldList(() => [
461
+ { no: 1, name: "volume_usd_24hr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
462
+ { no: 2, name: "volume_usd_12hr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
463
+ { no: 3, name: "volume_usd_6hr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
464
+ { no: 4, name: "token0", kind: "message", T: PoolTokenData },
465
+ { no: 5, name: "token1", kind: "message", T: PoolTokenData },
466
+ { no: 6, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
467
+ { no: 7, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
468
+ { no: 8, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
469
+ { no: 9, name: "protocol_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
470
+ { no: 10, name: "fee_tier", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
471
+ ]);
@@ -0,0 +1,19 @@
1
+ import { SearchTokensRequest, SearchTokensResponse } from "./search_pb.js";
2
+ import { MethodKind } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from service data.v1.SearchService
5
+ */
6
+ export declare const SearchService: {
7
+ readonly typeName: "data.v1.SearchService";
8
+ readonly methods: {
9
+ /**
10
+ * @generated from rpc data.v1.SearchService.SearchTokens
11
+ */
12
+ readonly searchTokens: {
13
+ readonly name: "SearchTokens";
14
+ readonly I: typeof SearchTokensRequest;
15
+ readonly O: typeof SearchTokensResponse;
16
+ readonly kind: MethodKind.Unary;
17
+ };
18
+ };
19
+ };
@@ -0,0 +1,23 @@
1
+ // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
2
+ // @generated from file data/v1/search.proto (package data.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { SearchTokensRequest, SearchTokensResponse } from "./search_pb.js";
6
+ import { MethodKind } from "@bufbuild/protobuf";
7
+ /**
8
+ * @generated from service data.v1.SearchService
9
+ */
10
+ export const SearchService = {
11
+ typeName: "data.v1.SearchService",
12
+ methods: {
13
+ /**
14
+ * @generated from rpc data.v1.SearchService.SearchTokens
15
+ */
16
+ searchTokens: {
17
+ name: "SearchTokens",
18
+ I: SearchTokensRequest,
19
+ O: SearchTokensResponse,
20
+ kind: MethodKind.Unary,
21
+ },
22
+ }
23
+ };
@@ -0,0 +1,57 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ import { Pool, SearchType, Token } from "./searchTypes_pb.js";
4
+ /**
5
+ * @generated from message data.v1.SearchTokensRequest
6
+ */
7
+ export declare class SearchTokensRequest extends Message<SearchTokensRequest> {
8
+ /**
9
+ * @generated from field: string search_query = 1;
10
+ */
11
+ searchQuery: string;
12
+ /**
13
+ * @generated from field: repeated uint32 chain_ids = 2;
14
+ */
15
+ chainIds: number[];
16
+ /**
17
+ * @generated from field: search.v1.SearchType search_type = 3;
18
+ */
19
+ searchType: SearchType;
20
+ /**
21
+ * @generated from field: uint32 page = 4;
22
+ */
23
+ page: number;
24
+ /**
25
+ * @generated from field: uint32 size = 5;
26
+ */
27
+ size: number;
28
+ constructor(data?: PartialMessage<SearchTokensRequest>);
29
+ static readonly runtime: typeof proto3;
30
+ static readonly typeName = "data.v1.SearchTokensRequest";
31
+ static readonly fields: FieldList;
32
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchTokensRequest;
33
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchTokensRequest;
34
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchTokensRequest;
35
+ static equals(a: SearchTokensRequest | PlainMessage<SearchTokensRequest> | undefined, b: SearchTokensRequest | PlainMessage<SearchTokensRequest> | undefined): boolean;
36
+ }
37
+ /**
38
+ * @generated from message data.v1.SearchTokensResponse
39
+ */
40
+ export declare class SearchTokensResponse extends Message<SearchTokensResponse> {
41
+ /**
42
+ * @generated from field: repeated search.v1.Token tokens = 1;
43
+ */
44
+ tokens: Token[];
45
+ /**
46
+ * @generated from field: repeated search.v1.Pool pools = 2;
47
+ */
48
+ pools: Pool[];
49
+ constructor(data?: PartialMessage<SearchTokensResponse>);
50
+ static readonly runtime: typeof proto3;
51
+ static readonly typeName = "data.v1.SearchTokensResponse";
52
+ static readonly fields: FieldList;
53
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchTokensResponse;
54
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchTokensResponse;
55
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchTokensResponse;
56
+ static equals(a: SearchTokensResponse | PlainMessage<SearchTokensResponse> | undefined, b: SearchTokensResponse | PlainMessage<SearchTokensResponse> | undefined): boolean;
57
+ }
@@ -0,0 +1,91 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
+ // @generated from file data/v1/search.proto (package data.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
6
+ import { Pool, SearchType, Token } from "./searchTypes_pb.js";
7
+ /**
8
+ * @generated from message data.v1.SearchTokensRequest
9
+ */
10
+ export class SearchTokensRequest extends Message {
11
+ constructor(data) {
12
+ super();
13
+ /**
14
+ * @generated from field: string search_query = 1;
15
+ */
16
+ this.searchQuery = "";
17
+ /**
18
+ * @generated from field: repeated uint32 chain_ids = 2;
19
+ */
20
+ this.chainIds = [];
21
+ /**
22
+ * @generated from field: search.v1.SearchType search_type = 3;
23
+ */
24
+ this.searchType = SearchType.SEARCH_TYPE_UNSPECIFIED;
25
+ /**
26
+ * @generated from field: uint32 page = 4;
27
+ */
28
+ this.page = 0;
29
+ /**
30
+ * @generated from field: uint32 size = 5;
31
+ */
32
+ this.size = 0;
33
+ proto3.util.initPartial(data, this);
34
+ }
35
+ static fromBinary(bytes, options) {
36
+ return new SearchTokensRequest().fromBinary(bytes, options);
37
+ }
38
+ static fromJson(jsonValue, options) {
39
+ return new SearchTokensRequest().fromJson(jsonValue, options);
40
+ }
41
+ static fromJsonString(jsonString, options) {
42
+ return new SearchTokensRequest().fromJsonString(jsonString, options);
43
+ }
44
+ static equals(a, b) {
45
+ return proto3.util.equals(SearchTokensRequest, a, b);
46
+ }
47
+ }
48
+ SearchTokensRequest.runtime = proto3;
49
+ SearchTokensRequest.typeName = "data.v1.SearchTokensRequest";
50
+ SearchTokensRequest.fields = proto3.util.newFieldList(() => [
51
+ { no: 1, name: "search_query", kind: "scalar", T: 9 /* ScalarType.STRING */ },
52
+ { no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
53
+ { no: 3, name: "search_type", kind: "enum", T: proto3.getEnumType(SearchType) },
54
+ { no: 4, name: "page", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
55
+ { no: 5, name: "size", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
56
+ ]);
57
+ /**
58
+ * @generated from message data.v1.SearchTokensResponse
59
+ */
60
+ export class SearchTokensResponse extends Message {
61
+ constructor(data) {
62
+ super();
63
+ /**
64
+ * @generated from field: repeated search.v1.Token tokens = 1;
65
+ */
66
+ this.tokens = [];
67
+ /**
68
+ * @generated from field: repeated search.v1.Pool pools = 2;
69
+ */
70
+ this.pools = [];
71
+ proto3.util.initPartial(data, this);
72
+ }
73
+ static fromBinary(bytes, options) {
74
+ return new SearchTokensResponse().fromBinary(bytes, options);
75
+ }
76
+ static fromJson(jsonValue, options) {
77
+ return new SearchTokensResponse().fromJson(jsonValue, options);
78
+ }
79
+ static fromJsonString(jsonString, options) {
80
+ return new SearchTokensResponse().fromJsonString(jsonString, options);
81
+ }
82
+ static equals(a, b) {
83
+ return proto3.util.equals(SearchTokensResponse, a, b);
84
+ }
85
+ }
86
+ SearchTokensResponse.runtime = proto3;
87
+ SearchTokensResponse.typeName = "data.v1.SearchTokensResponse";
88
+ SearchTokensResponse.fields = proto3.util.newFieldList(() => [
89
+ { no: 1, name: "tokens", kind: "message", T: Token, repeated: true },
90
+ { no: 2, name: "pools", kind: "message", T: Pool, repeated: true },
91
+ ]);