@uniswap/client-data-api 0.0.287 → 0.0.289
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/types_pb.d.ts +8 -0
- package/dist/data/v2/types_pb.js +1 -0
- package/package.json +1 -1
- package/dist/data/v1/search-SearchService_connectquery.d.ts +0 -15
- package/dist/data/v1/search-SearchService_connectquery.js +0 -19
- package/dist/data/v1/searchTypes_pb.d.ts +0 -554
- package/dist/data/v1/searchTypes_pb.js +0 -728
- package/dist/data/v1/search_connect.d.ts +0 -19
- package/dist/data/v1/search_connect.js +0 -23
- package/dist/data/v1/search_pb.d.ts +0 -84
- package/dist/data/v1/search_pb.js +0 -124
|
@@ -1,728 +0,0 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.1 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
|
-
import { TokenRestriction } from "./featureGating_pb.js";
|
|
7
|
-
/**
|
|
8
|
-
* @generated from enum search.v1.SearchType
|
|
9
|
-
*/
|
|
10
|
-
export var SearchType;
|
|
11
|
-
(function (SearchType) {
|
|
12
|
-
/**
|
|
13
|
-
* @generated from enum value: SEARCH_TYPE_UNSPECIFIED = 0;
|
|
14
|
-
*/
|
|
15
|
-
SearchType[SearchType["SEARCH_TYPE_UNSPECIFIED"] = 0] = "SEARCH_TYPE_UNSPECIFIED";
|
|
16
|
-
/**
|
|
17
|
-
* @generated from enum value: TOKEN = 1;
|
|
18
|
-
*/
|
|
19
|
-
SearchType[SearchType["TOKEN"] = 1] = "TOKEN";
|
|
20
|
-
/**
|
|
21
|
-
* @generated from enum value: POOL = 2;
|
|
22
|
-
*/
|
|
23
|
-
SearchType[SearchType["POOL"] = 2] = "POOL";
|
|
24
|
-
/**
|
|
25
|
-
* @generated from enum value: AUCTION = 3;
|
|
26
|
-
*/
|
|
27
|
-
SearchType[SearchType["AUCTION"] = 3] = "AUCTION";
|
|
28
|
-
/**
|
|
29
|
-
* @generated from enum value: CATEGORY = 4;
|
|
30
|
-
*/
|
|
31
|
-
SearchType[SearchType["CATEGORY"] = 4] = "CATEGORY";
|
|
32
|
-
})(SearchType || (SearchType = {}));
|
|
33
|
-
// Retrieve enum metadata with: proto3.getEnumType(SearchType)
|
|
34
|
-
proto3.util.setEnumType(SearchType, "search.v1.SearchType", [
|
|
35
|
-
{ no: 0, name: "SEARCH_TYPE_UNSPECIFIED" },
|
|
36
|
-
{ no: 1, name: "TOKEN" },
|
|
37
|
-
{ no: 2, name: "POOL" },
|
|
38
|
-
{ no: 3, name: "AUCTION" },
|
|
39
|
-
{ no: 4, name: "CATEGORY" },
|
|
40
|
-
]);
|
|
41
|
-
/**
|
|
42
|
-
* @generated from enum search.v1.SpamCode
|
|
43
|
-
*/
|
|
44
|
-
export var SpamCode;
|
|
45
|
-
(function (SpamCode) {
|
|
46
|
-
/**
|
|
47
|
-
* @generated from enum value: NOT_SPAM = 0;
|
|
48
|
-
*/
|
|
49
|
-
SpamCode[SpamCode["NOT_SPAM"] = 0] = "NOT_SPAM";
|
|
50
|
-
/**
|
|
51
|
-
* @generated from enum value: SPAM = 1;
|
|
52
|
-
*/
|
|
53
|
-
SpamCode[SpamCode["SPAM"] = 1] = "SPAM";
|
|
54
|
-
/**
|
|
55
|
-
* @generated from enum value: SPAM_URL = 2;
|
|
56
|
-
*/
|
|
57
|
-
SpamCode[SpamCode["SPAM_URL"] = 2] = "SPAM_URL";
|
|
58
|
-
})(SpamCode || (SpamCode = {}));
|
|
59
|
-
// Retrieve enum metadata with: proto3.getEnumType(SpamCode)
|
|
60
|
-
proto3.util.setEnumType(SpamCode, "search.v1.SpamCode", [
|
|
61
|
-
{ no: 0, name: "NOT_SPAM" },
|
|
62
|
-
{ no: 1, name: "SPAM" },
|
|
63
|
-
{ no: 2, name: "SPAM_URL" },
|
|
64
|
-
]);
|
|
65
|
-
/**
|
|
66
|
-
* @generated from enum search.v1.AttackType
|
|
67
|
-
*/
|
|
68
|
-
export var AttackType;
|
|
69
|
-
(function (AttackType) {
|
|
70
|
-
/**
|
|
71
|
-
* @generated from enum value: ATTACK_TYPE_UNSPECIFIED = 0;
|
|
72
|
-
*/
|
|
73
|
-
AttackType[AttackType["ATTACK_TYPE_UNSPECIFIED"] = 0] = "ATTACK_TYPE_UNSPECIFIED";
|
|
74
|
-
/**
|
|
75
|
-
* @generated from enum value: METADATA = 1;
|
|
76
|
-
*/
|
|
77
|
-
AttackType[AttackType["METADATA"] = 1] = "METADATA";
|
|
78
|
-
/**
|
|
79
|
-
* @generated from enum value: INORGANIC_VOLUME = 2;
|
|
80
|
-
*/
|
|
81
|
-
AttackType[AttackType["INORGANIC_VOLUME"] = 2] = "INORGANIC_VOLUME";
|
|
82
|
-
/**
|
|
83
|
-
* @generated from enum value: AIRDROP_PATTERN = 3;
|
|
84
|
-
*/
|
|
85
|
-
AttackType[AttackType["AIRDROP_PATTERN"] = 3] = "AIRDROP_PATTERN";
|
|
86
|
-
/**
|
|
87
|
-
* @generated from enum value: DYNAMIC_ANALYSIS = 4;
|
|
88
|
-
*/
|
|
89
|
-
AttackType[AttackType["DYNAMIC_ANALYSIS"] = 4] = "DYNAMIC_ANALYSIS";
|
|
90
|
-
/**
|
|
91
|
-
* @generated from enum value: STATIC_CODE_SIGNATURE = 5;
|
|
92
|
-
*/
|
|
93
|
-
AttackType[AttackType["STATIC_CODE_SIGNATURE"] = 5] = "STATIC_CODE_SIGNATURE";
|
|
94
|
-
/**
|
|
95
|
-
* @generated from enum value: KNOWN_MALICIOUS = 6;
|
|
96
|
-
*/
|
|
97
|
-
AttackType[AttackType["KNOWN_MALICIOUS"] = 6] = "KNOWN_MALICIOUS";
|
|
98
|
-
/**
|
|
99
|
-
* @generated from enum value: IMPERSONATOR = 7;
|
|
100
|
-
*/
|
|
101
|
-
AttackType[AttackType["IMPERSONATOR"] = 7] = "IMPERSONATOR";
|
|
102
|
-
/**
|
|
103
|
-
* @generated from enum value: UNSTABLE_TOKEN_PRICE = 8;
|
|
104
|
-
*/
|
|
105
|
-
AttackType[AttackType["UNSTABLE_TOKEN_PRICE"] = 8] = "UNSTABLE_TOKEN_PRICE";
|
|
106
|
-
/**
|
|
107
|
-
* @generated from enum value: RUGPULL = 9;
|
|
108
|
-
*/
|
|
109
|
-
AttackType[AttackType["RUGPULL"] = 9] = "RUGPULL";
|
|
110
|
-
/**
|
|
111
|
-
* @generated from enum value: HIGH_FEES = 10;
|
|
112
|
-
*/
|
|
113
|
-
AttackType[AttackType["HIGH_FEES"] = 10] = "HIGH_FEES";
|
|
114
|
-
})(AttackType || (AttackType = {}));
|
|
115
|
-
// Retrieve enum metadata with: proto3.getEnumType(AttackType)
|
|
116
|
-
proto3.util.setEnumType(AttackType, "search.v1.AttackType", [
|
|
117
|
-
{ no: 0, name: "ATTACK_TYPE_UNSPECIFIED" },
|
|
118
|
-
{ no: 1, name: "METADATA" },
|
|
119
|
-
{ no: 2, name: "INORGANIC_VOLUME" },
|
|
120
|
-
{ no: 3, name: "AIRDROP_PATTERN" },
|
|
121
|
-
{ no: 4, name: "DYNAMIC_ANALYSIS" },
|
|
122
|
-
{ no: 5, name: "STATIC_CODE_SIGNATURE" },
|
|
123
|
-
{ no: 6, name: "KNOWN_MALICIOUS" },
|
|
124
|
-
{ no: 7, name: "IMPERSONATOR" },
|
|
125
|
-
{ no: 8, name: "UNSTABLE_TOKEN_PRICE" },
|
|
126
|
-
{ no: 9, name: "RUGPULL" },
|
|
127
|
-
{ no: 10, name: "HIGH_FEES" },
|
|
128
|
-
]);
|
|
129
|
-
/**
|
|
130
|
-
* @generated from message search.v1.Token
|
|
131
|
-
*/
|
|
132
|
-
export class Token extends Message {
|
|
133
|
-
constructor(data) {
|
|
134
|
-
super();
|
|
135
|
-
/**
|
|
136
|
-
* @generated from field: string token_id = 1;
|
|
137
|
-
*/
|
|
138
|
-
this.tokenId = "";
|
|
139
|
-
/**
|
|
140
|
-
* @generated from field: uint32 chain_id = 2;
|
|
141
|
-
*/
|
|
142
|
-
this.chainId = 0;
|
|
143
|
-
/**
|
|
144
|
-
* @generated from field: string address = 3;
|
|
145
|
-
*/
|
|
146
|
-
this.address = "";
|
|
147
|
-
/**
|
|
148
|
-
* @generated from field: uint32 decimals = 4;
|
|
149
|
-
*/
|
|
150
|
-
this.decimals = 0;
|
|
151
|
-
/**
|
|
152
|
-
* @generated from field: string symbol = 5;
|
|
153
|
-
*/
|
|
154
|
-
this.symbol = "";
|
|
155
|
-
/**
|
|
156
|
-
* @generated from field: string name = 6;
|
|
157
|
-
*/
|
|
158
|
-
this.name = "";
|
|
159
|
-
/**
|
|
160
|
-
* @generated from field: string standard = 7;
|
|
161
|
-
*/
|
|
162
|
-
this.standard = "";
|
|
163
|
-
/**
|
|
164
|
-
* @generated from field: string project_name = 8;
|
|
165
|
-
*/
|
|
166
|
-
this.projectName = "";
|
|
167
|
-
/**
|
|
168
|
-
* @generated from field: string logo_url = 9;
|
|
169
|
-
*/
|
|
170
|
-
this.logoUrl = "";
|
|
171
|
-
/**
|
|
172
|
-
* @generated from field: string is_spam = 10;
|
|
173
|
-
*/
|
|
174
|
-
this.isSpam = "";
|
|
175
|
-
/**
|
|
176
|
-
* @generated from field: string safety_level = 11;
|
|
177
|
-
*/
|
|
178
|
-
this.safetyLevel = "";
|
|
179
|
-
/**
|
|
180
|
-
* @generated from field: search.v1.SpamCode spam_code = 12;
|
|
181
|
-
*/
|
|
182
|
-
this.spamCode = SpamCode.NOT_SPAM;
|
|
183
|
-
/**
|
|
184
|
-
* Compliance restrictions evaluated server-side from ctx.auth. Empty =
|
|
185
|
-
* no restrictions.
|
|
186
|
-
*
|
|
187
|
-
* @generated from field: repeated data.v1.TokenRestriction restrictions = 15;
|
|
188
|
-
*/
|
|
189
|
-
this.restrictions = [];
|
|
190
|
-
proto3.util.initPartial(data, this);
|
|
191
|
-
}
|
|
192
|
-
static fromBinary(bytes, options) {
|
|
193
|
-
return new Token().fromBinary(bytes, options);
|
|
194
|
-
}
|
|
195
|
-
static fromJson(jsonValue, options) {
|
|
196
|
-
return new Token().fromJson(jsonValue, options);
|
|
197
|
-
}
|
|
198
|
-
static fromJsonString(jsonString, options) {
|
|
199
|
-
return new Token().fromJsonString(jsonString, options);
|
|
200
|
-
}
|
|
201
|
-
static equals(a, b) {
|
|
202
|
-
return proto3.util.equals(Token, a, b);
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
Token.runtime = proto3;
|
|
206
|
-
Token.typeName = "search.v1.Token";
|
|
207
|
-
Token.fields = proto3.util.newFieldList(() => [
|
|
208
|
-
{ no: 1, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
209
|
-
{ no: 2, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
210
|
-
{ no: 3, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
211
|
-
{ no: 4, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
212
|
-
{ no: 5, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
213
|
-
{ no: 6, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
214
|
-
{ no: 7, name: "standard", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
215
|
-
{ no: 8, name: "project_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
216
|
-
{ no: 9, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
217
|
-
{ no: 10, name: "is_spam", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
218
|
-
{ no: 11, name: "safety_level", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
219
|
-
{ no: 12, name: "spam_code", kind: "enum", T: proto3.getEnumType(SpamCode) },
|
|
220
|
-
{ no: 13, name: "fee_data", kind: "message", T: FeeData },
|
|
221
|
-
{ no: 14, name: "protection_info", kind: "message", T: TokenProtectionInfo },
|
|
222
|
-
{ no: 15, name: "restrictions", kind: "message", T: TokenRestriction, repeated: true },
|
|
223
|
-
]);
|
|
224
|
-
/**
|
|
225
|
-
* @generated from message search.v1.ChainToken
|
|
226
|
-
*/
|
|
227
|
-
export class ChainToken extends Message {
|
|
228
|
-
constructor(data) {
|
|
229
|
-
super();
|
|
230
|
-
/**
|
|
231
|
-
* @generated from field: uint32 chain_id = 1;
|
|
232
|
-
*/
|
|
233
|
-
this.chainId = 0;
|
|
234
|
-
/**
|
|
235
|
-
* @generated from field: string address = 2;
|
|
236
|
-
*/
|
|
237
|
-
this.address = "";
|
|
238
|
-
/**
|
|
239
|
-
* @generated from field: uint32 decimals = 3;
|
|
240
|
-
*/
|
|
241
|
-
this.decimals = 0;
|
|
242
|
-
/**
|
|
243
|
-
* @generated from field: string safety_level = 4;
|
|
244
|
-
*/
|
|
245
|
-
this.safetyLevel = "";
|
|
246
|
-
/**
|
|
247
|
-
* @generated from field: search.v1.SpamCode spam_code = 5;
|
|
248
|
-
*/
|
|
249
|
-
this.spamCode = SpamCode.NOT_SPAM;
|
|
250
|
-
/**
|
|
251
|
-
* @generated from field: string is_spam = 6;
|
|
252
|
-
*/
|
|
253
|
-
this.isSpam = "";
|
|
254
|
-
proto3.util.initPartial(data, this);
|
|
255
|
-
}
|
|
256
|
-
static fromBinary(bytes, options) {
|
|
257
|
-
return new ChainToken().fromBinary(bytes, options);
|
|
258
|
-
}
|
|
259
|
-
static fromJson(jsonValue, options) {
|
|
260
|
-
return new ChainToken().fromJson(jsonValue, options);
|
|
261
|
-
}
|
|
262
|
-
static fromJsonString(jsonString, options) {
|
|
263
|
-
return new ChainToken().fromJsonString(jsonString, options);
|
|
264
|
-
}
|
|
265
|
-
static equals(a, b) {
|
|
266
|
-
return proto3.util.equals(ChainToken, a, b);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
ChainToken.runtime = proto3;
|
|
270
|
-
ChainToken.typeName = "search.v1.ChainToken";
|
|
271
|
-
ChainToken.fields = proto3.util.newFieldList(() => [
|
|
272
|
-
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
273
|
-
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
274
|
-
{ no: 3, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
275
|
-
{ no: 4, name: "safety_level", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
276
|
-
{ no: 5, name: "spam_code", kind: "enum", T: proto3.getEnumType(SpamCode) },
|
|
277
|
-
{ no: 6, name: "is_spam", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
278
|
-
{ no: 7, name: "fee_data", kind: "message", T: FeeData },
|
|
279
|
-
{ no: 8, name: "protection_info", kind: "message", T: TokenProtectionInfo },
|
|
280
|
-
]);
|
|
281
|
-
/**
|
|
282
|
-
* @generated from message search.v1.MultichainToken
|
|
283
|
-
*/
|
|
284
|
-
export class MultichainToken extends Message {
|
|
285
|
-
constructor(data) {
|
|
286
|
-
super();
|
|
287
|
-
/**
|
|
288
|
-
* @generated from field: string multichain_id = 1;
|
|
289
|
-
*/
|
|
290
|
-
this.multichainId = "";
|
|
291
|
-
/**
|
|
292
|
-
* @generated from field: string symbol = 2;
|
|
293
|
-
*/
|
|
294
|
-
this.symbol = "";
|
|
295
|
-
/**
|
|
296
|
-
* @generated from field: string name = 3;
|
|
297
|
-
*/
|
|
298
|
-
this.name = "";
|
|
299
|
-
/**
|
|
300
|
-
* @generated from field: string standard = 4;
|
|
301
|
-
*/
|
|
302
|
-
this.standard = "";
|
|
303
|
-
/**
|
|
304
|
-
* @generated from field: string project_name = 5;
|
|
305
|
-
*/
|
|
306
|
-
this.projectName = "";
|
|
307
|
-
/**
|
|
308
|
-
* @generated from field: string logo_url = 6;
|
|
309
|
-
*/
|
|
310
|
-
this.logoUrl = "";
|
|
311
|
-
/**
|
|
312
|
-
* @generated from field: string safety_level = 7;
|
|
313
|
-
*/
|
|
314
|
-
this.safetyLevel = "";
|
|
315
|
-
/**
|
|
316
|
-
* @generated from field: search.v1.SpamCode spam_code = 8;
|
|
317
|
-
*/
|
|
318
|
-
this.spamCode = SpamCode.NOT_SPAM;
|
|
319
|
-
/**
|
|
320
|
-
* @generated from field: string is_spam = 9;
|
|
321
|
-
*/
|
|
322
|
-
this.isSpam = "";
|
|
323
|
-
/**
|
|
324
|
-
* @generated from field: repeated search.v1.ChainToken chain_tokens = 12;
|
|
325
|
-
*/
|
|
326
|
-
this.chainTokens = [];
|
|
327
|
-
/**
|
|
328
|
-
* Compliance restrictions evaluated server-side from ctx.auth. Empty =
|
|
329
|
-
* no restrictions.
|
|
330
|
-
*
|
|
331
|
-
* @generated from field: repeated data.v1.TokenRestriction restrictions = 13;
|
|
332
|
-
*/
|
|
333
|
-
this.restrictions = [];
|
|
334
|
-
proto3.util.initPartial(data, this);
|
|
335
|
-
}
|
|
336
|
-
static fromBinary(bytes, options) {
|
|
337
|
-
return new MultichainToken().fromBinary(bytes, options);
|
|
338
|
-
}
|
|
339
|
-
static fromJson(jsonValue, options) {
|
|
340
|
-
return new MultichainToken().fromJson(jsonValue, options);
|
|
341
|
-
}
|
|
342
|
-
static fromJsonString(jsonString, options) {
|
|
343
|
-
return new MultichainToken().fromJsonString(jsonString, options);
|
|
344
|
-
}
|
|
345
|
-
static equals(a, b) {
|
|
346
|
-
return proto3.util.equals(MultichainToken, a, b);
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
MultichainToken.runtime = proto3;
|
|
350
|
-
MultichainToken.typeName = "search.v1.MultichainToken";
|
|
351
|
-
MultichainToken.fields = proto3.util.newFieldList(() => [
|
|
352
|
-
{ no: 1, name: "multichain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
353
|
-
{ no: 2, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
354
|
-
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
355
|
-
{ no: 4, name: "standard", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
356
|
-
{ no: 5, name: "project_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
357
|
-
{ no: 6, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
358
|
-
{ no: 7, name: "safety_level", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
359
|
-
{ no: 8, name: "spam_code", kind: "enum", T: proto3.getEnumType(SpamCode) },
|
|
360
|
-
{ no: 9, name: "is_spam", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
361
|
-
{ no: 10, name: "fee_data", kind: "message", T: FeeData },
|
|
362
|
-
{ no: 11, name: "protection_info", kind: "message", T: TokenProtectionInfo },
|
|
363
|
-
{ no: 12, name: "chain_tokens", kind: "message", T: ChainToken, repeated: true },
|
|
364
|
-
{ no: 13, name: "restrictions", kind: "message", T: TokenRestriction, repeated: true },
|
|
365
|
-
]);
|
|
366
|
-
/**
|
|
367
|
-
* @generated from message search.v1.FeeData
|
|
368
|
-
*/
|
|
369
|
-
export class FeeData extends Message {
|
|
370
|
-
constructor(data) {
|
|
371
|
-
super();
|
|
372
|
-
/**
|
|
373
|
-
* @generated from field: string sell_fee_bps = 1;
|
|
374
|
-
*/
|
|
375
|
-
this.sellFeeBps = "";
|
|
376
|
-
/**
|
|
377
|
-
* @generated from field: string buy_fee_bps = 2;
|
|
378
|
-
*/
|
|
379
|
-
this.buyFeeBps = "";
|
|
380
|
-
/**
|
|
381
|
-
* @generated from field: bool fee_taken_on_transfer = 3;
|
|
382
|
-
*/
|
|
383
|
-
this.feeTakenOnTransfer = false;
|
|
384
|
-
/**
|
|
385
|
-
* @generated from field: bool external_transfer_failed = 4;
|
|
386
|
-
*/
|
|
387
|
-
this.externalTransferFailed = false;
|
|
388
|
-
/**
|
|
389
|
-
* @generated from field: bool sell_reverted = 5;
|
|
390
|
-
*/
|
|
391
|
-
this.sellReverted = false;
|
|
392
|
-
proto3.util.initPartial(data, this);
|
|
393
|
-
}
|
|
394
|
-
static fromBinary(bytes, options) {
|
|
395
|
-
return new FeeData().fromBinary(bytes, options);
|
|
396
|
-
}
|
|
397
|
-
static fromJson(jsonValue, options) {
|
|
398
|
-
return new FeeData().fromJson(jsonValue, options);
|
|
399
|
-
}
|
|
400
|
-
static fromJsonString(jsonString, options) {
|
|
401
|
-
return new FeeData().fromJsonString(jsonString, options);
|
|
402
|
-
}
|
|
403
|
-
static equals(a, b) {
|
|
404
|
-
return proto3.util.equals(FeeData, a, b);
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
FeeData.runtime = proto3;
|
|
408
|
-
FeeData.typeName = "search.v1.FeeData";
|
|
409
|
-
FeeData.fields = proto3.util.newFieldList(() => [
|
|
410
|
-
{ no: 1, name: "sell_fee_bps", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
411
|
-
{ no: 2, name: "buy_fee_bps", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
412
|
-
{ no: 3, name: "fee_taken_on_transfer", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
413
|
-
{ no: 4, name: "external_transfer_failed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
414
|
-
{ no: 5, name: "sell_reverted", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
415
|
-
]);
|
|
416
|
-
/**
|
|
417
|
-
* A token-category search result. Deliberately id-only: clients hydrate
|
|
418
|
-
* name/icon/stats locally from their cached ListCategories response
|
|
419
|
-
* (agreed convention — see the category_ids thread on PR #11417).
|
|
420
|
-
*
|
|
421
|
-
* @generated from message search.v1.SearchCategory
|
|
422
|
-
*/
|
|
423
|
-
export class SearchCategory extends Message {
|
|
424
|
-
constructor(data) {
|
|
425
|
-
super();
|
|
426
|
-
/**
|
|
427
|
-
* @generated from field: string category_id = 1;
|
|
428
|
-
*/
|
|
429
|
-
this.categoryId = "";
|
|
430
|
-
proto3.util.initPartial(data, this);
|
|
431
|
-
}
|
|
432
|
-
static fromBinary(bytes, options) {
|
|
433
|
-
return new SearchCategory().fromBinary(bytes, options);
|
|
434
|
-
}
|
|
435
|
-
static fromJson(jsonValue, options) {
|
|
436
|
-
return new SearchCategory().fromJson(jsonValue, options);
|
|
437
|
-
}
|
|
438
|
-
static fromJsonString(jsonString, options) {
|
|
439
|
-
return new SearchCategory().fromJsonString(jsonString, options);
|
|
440
|
-
}
|
|
441
|
-
static equals(a, b) {
|
|
442
|
-
return proto3.util.equals(SearchCategory, a, b);
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
SearchCategory.runtime = proto3;
|
|
446
|
-
SearchCategory.typeName = "search.v1.SearchCategory";
|
|
447
|
-
SearchCategory.fields = proto3.util.newFieldList(() => [
|
|
448
|
-
{ no: 1, name: "category_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
449
|
-
]);
|
|
450
|
-
/**
|
|
451
|
-
* @generated from message search.v1.SearchAuction
|
|
452
|
-
*/
|
|
453
|
-
export class SearchAuction extends Message {
|
|
454
|
-
constructor(data) {
|
|
455
|
-
super();
|
|
456
|
-
/**
|
|
457
|
-
* @generated from field: string auction_id = 1;
|
|
458
|
-
*/
|
|
459
|
-
this.auctionId = "";
|
|
460
|
-
/**
|
|
461
|
-
* @generated from field: uint32 chain_id = 2;
|
|
462
|
-
*/
|
|
463
|
-
this.chainId = 0;
|
|
464
|
-
/**
|
|
465
|
-
* @generated from field: string auction_address = 3;
|
|
466
|
-
*/
|
|
467
|
-
this.auctionAddress = "";
|
|
468
|
-
/**
|
|
469
|
-
* @generated from field: string token_address = 4;
|
|
470
|
-
*/
|
|
471
|
-
this.tokenAddress = "";
|
|
472
|
-
/**
|
|
473
|
-
* @generated from field: string token_name = 5;
|
|
474
|
-
*/
|
|
475
|
-
this.tokenName = "";
|
|
476
|
-
/**
|
|
477
|
-
* @generated from field: string token_symbol = 6;
|
|
478
|
-
*/
|
|
479
|
-
this.tokenSymbol = "";
|
|
480
|
-
/**
|
|
481
|
-
* @generated from field: string total_bid_volume_usd = 7;
|
|
482
|
-
*/
|
|
483
|
-
this.totalBidVolumeUsd = "";
|
|
484
|
-
proto3.util.initPartial(data, this);
|
|
485
|
-
}
|
|
486
|
-
static fromBinary(bytes, options) {
|
|
487
|
-
return new SearchAuction().fromBinary(bytes, options);
|
|
488
|
-
}
|
|
489
|
-
static fromJson(jsonValue, options) {
|
|
490
|
-
return new SearchAuction().fromJson(jsonValue, options);
|
|
491
|
-
}
|
|
492
|
-
static fromJsonString(jsonString, options) {
|
|
493
|
-
return new SearchAuction().fromJsonString(jsonString, options);
|
|
494
|
-
}
|
|
495
|
-
static equals(a, b) {
|
|
496
|
-
return proto3.util.equals(SearchAuction, a, b);
|
|
497
|
-
}
|
|
498
|
-
}
|
|
499
|
-
SearchAuction.runtime = proto3;
|
|
500
|
-
SearchAuction.typeName = "search.v1.SearchAuction";
|
|
501
|
-
SearchAuction.fields = proto3.util.newFieldList(() => [
|
|
502
|
-
{ no: 1, name: "auction_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
503
|
-
{ no: 2, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
504
|
-
{ no: 3, name: "auction_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
505
|
-
{ no: 4, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
506
|
-
{ no: 5, name: "token_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
507
|
-
{ no: 6, name: "token_symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
508
|
-
{ no: 7, name: "total_bid_volume_usd", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
509
|
-
]);
|
|
510
|
-
/**
|
|
511
|
-
* @generated from message search.v1.BlockaidFees
|
|
512
|
-
*/
|
|
513
|
-
export class BlockaidFees extends Message {
|
|
514
|
-
constructor(data) {
|
|
515
|
-
super();
|
|
516
|
-
/**
|
|
517
|
-
* @generated from field: double transfer = 1;
|
|
518
|
-
*/
|
|
519
|
-
this.transfer = 0;
|
|
520
|
-
/**
|
|
521
|
-
* @generated from field: double buy = 2;
|
|
522
|
-
*/
|
|
523
|
-
this.buy = 0;
|
|
524
|
-
/**
|
|
525
|
-
* @generated from field: double sell = 3;
|
|
526
|
-
*/
|
|
527
|
-
this.sell = 0;
|
|
528
|
-
proto3.util.initPartial(data, this);
|
|
529
|
-
}
|
|
530
|
-
static fromBinary(bytes, options) {
|
|
531
|
-
return new BlockaidFees().fromBinary(bytes, options);
|
|
532
|
-
}
|
|
533
|
-
static fromJson(jsonValue, options) {
|
|
534
|
-
return new BlockaidFees().fromJson(jsonValue, options);
|
|
535
|
-
}
|
|
536
|
-
static fromJsonString(jsonString, options) {
|
|
537
|
-
return new BlockaidFees().fromJsonString(jsonString, options);
|
|
538
|
-
}
|
|
539
|
-
static equals(a, b) {
|
|
540
|
-
return proto3.util.equals(BlockaidFees, a, b);
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
BlockaidFees.runtime = proto3;
|
|
544
|
-
BlockaidFees.typeName = "search.v1.BlockaidFees";
|
|
545
|
-
BlockaidFees.fields = proto3.util.newFieldList(() => [
|
|
546
|
-
{ no: 1, name: "transfer", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
547
|
-
{ no: 2, name: "buy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
548
|
-
{ no: 3, name: "sell", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
549
|
-
]);
|
|
550
|
-
/**
|
|
551
|
-
* @generated from message search.v1.TokenProtectionInfo
|
|
552
|
-
*/
|
|
553
|
-
export class TokenProtectionInfo extends Message {
|
|
554
|
-
constructor(data) {
|
|
555
|
-
super();
|
|
556
|
-
/**
|
|
557
|
-
* @generated from field: string result = 1;
|
|
558
|
-
*/
|
|
559
|
-
this.result = "";
|
|
560
|
-
/**
|
|
561
|
-
* @generated from field: string token_id = 2;
|
|
562
|
-
*/
|
|
563
|
-
this.tokenId = "";
|
|
564
|
-
/**
|
|
565
|
-
* @generated from field: uint32 chain_id = 3;
|
|
566
|
-
*/
|
|
567
|
-
this.chainId = 0;
|
|
568
|
-
/**
|
|
569
|
-
* @generated from field: repeated string attack_types = 4;
|
|
570
|
-
*/
|
|
571
|
-
this.attackTypes = [];
|
|
572
|
-
/**
|
|
573
|
-
* @generated from field: string address = 5;
|
|
574
|
-
*/
|
|
575
|
-
this.address = "";
|
|
576
|
-
/**
|
|
577
|
-
* @generated from field: uint32 updated_at = 7;
|
|
578
|
-
*/
|
|
579
|
-
this.updatedAt = 0;
|
|
580
|
-
proto3.util.initPartial(data, this);
|
|
581
|
-
}
|
|
582
|
-
static fromBinary(bytes, options) {
|
|
583
|
-
return new TokenProtectionInfo().fromBinary(bytes, options);
|
|
584
|
-
}
|
|
585
|
-
static fromJson(jsonValue, options) {
|
|
586
|
-
return new TokenProtectionInfo().fromJson(jsonValue, options);
|
|
587
|
-
}
|
|
588
|
-
static fromJsonString(jsonString, options) {
|
|
589
|
-
return new TokenProtectionInfo().fromJsonString(jsonString, options);
|
|
590
|
-
}
|
|
591
|
-
static equals(a, b) {
|
|
592
|
-
return proto3.util.equals(TokenProtectionInfo, a, b);
|
|
593
|
-
}
|
|
594
|
-
}
|
|
595
|
-
TokenProtectionInfo.runtime = proto3;
|
|
596
|
-
TokenProtectionInfo.typeName = "search.v1.TokenProtectionInfo";
|
|
597
|
-
TokenProtectionInfo.fields = proto3.util.newFieldList(() => [
|
|
598
|
-
{ no: 1, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
599
|
-
{ no: 2, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
600
|
-
{ no: 3, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
601
|
-
{ no: 4, name: "attack_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
602
|
-
{ no: 5, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
603
|
-
{ no: 6, name: "blockaid_fees", kind: "message", T: BlockaidFees },
|
|
604
|
-
{ no: 7, name: "updated_at", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
605
|
-
{ no: 8, name: "fee_data", kind: "message", T: FeeData },
|
|
606
|
-
]);
|
|
607
|
-
/**
|
|
608
|
-
* @generated from message search.v1.PoolTokenData
|
|
609
|
-
*/
|
|
610
|
-
export class PoolTokenData extends Message {
|
|
611
|
-
constructor(data) {
|
|
612
|
-
super();
|
|
613
|
-
/**
|
|
614
|
-
* @generated from field: uint32 chain_id = 1;
|
|
615
|
-
*/
|
|
616
|
-
this.chainId = 0;
|
|
617
|
-
/**
|
|
618
|
-
* @generated from field: string address = 2;
|
|
619
|
-
*/
|
|
620
|
-
this.address = "";
|
|
621
|
-
/**
|
|
622
|
-
* @generated from field: string symbol = 3;
|
|
623
|
-
*/
|
|
624
|
-
this.symbol = "";
|
|
625
|
-
/**
|
|
626
|
-
* @generated from field: string name = 4;
|
|
627
|
-
*/
|
|
628
|
-
this.name = "";
|
|
629
|
-
/**
|
|
630
|
-
* @generated from field: uint32 decimals = 5;
|
|
631
|
-
*/
|
|
632
|
-
this.decimals = 0;
|
|
633
|
-
/**
|
|
634
|
-
* @generated from field: string logo_url = 6;
|
|
635
|
-
*/
|
|
636
|
-
this.logoUrl = "";
|
|
637
|
-
proto3.util.initPartial(data, this);
|
|
638
|
-
}
|
|
639
|
-
static fromBinary(bytes, options) {
|
|
640
|
-
return new PoolTokenData().fromBinary(bytes, options);
|
|
641
|
-
}
|
|
642
|
-
static fromJson(jsonValue, options) {
|
|
643
|
-
return new PoolTokenData().fromJson(jsonValue, options);
|
|
644
|
-
}
|
|
645
|
-
static fromJsonString(jsonString, options) {
|
|
646
|
-
return new PoolTokenData().fromJsonString(jsonString, options);
|
|
647
|
-
}
|
|
648
|
-
static equals(a, b) {
|
|
649
|
-
return proto3.util.equals(PoolTokenData, a, b);
|
|
650
|
-
}
|
|
651
|
-
}
|
|
652
|
-
PoolTokenData.runtime = proto3;
|
|
653
|
-
PoolTokenData.typeName = "search.v1.PoolTokenData";
|
|
654
|
-
PoolTokenData.fields = proto3.util.newFieldList(() => [
|
|
655
|
-
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
656
|
-
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
657
|
-
{ no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
658
|
-
{ no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
659
|
-
{ no: 5, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
660
|
-
{ no: 6, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
661
|
-
]);
|
|
662
|
-
/**
|
|
663
|
-
* @generated from message search.v1.Pool
|
|
664
|
-
*/
|
|
665
|
-
export class Pool extends Message {
|
|
666
|
-
constructor(data) {
|
|
667
|
-
super();
|
|
668
|
-
/**
|
|
669
|
-
* @generated from field: double volume_usd_24hr = 1;
|
|
670
|
-
*/
|
|
671
|
-
this.volumeUsd24hr = 0;
|
|
672
|
-
/**
|
|
673
|
-
* @generated from field: double volume_usd_12hr = 2;
|
|
674
|
-
*/
|
|
675
|
-
this.volumeUsd12hr = 0;
|
|
676
|
-
/**
|
|
677
|
-
* @generated from field: double volume_usd_6hr = 3;
|
|
678
|
-
*/
|
|
679
|
-
this.volumeUsd6hr = 0;
|
|
680
|
-
/**
|
|
681
|
-
* @generated from field: string id = 6;
|
|
682
|
-
*/
|
|
683
|
-
this.id = "";
|
|
684
|
-
/**
|
|
685
|
-
* @generated from field: uint32 chain_id = 7;
|
|
686
|
-
*/
|
|
687
|
-
this.chainId = 0;
|
|
688
|
-
/**
|
|
689
|
-
* V4, V3, or V2
|
|
690
|
-
*
|
|
691
|
-
* @generated from field: string protocol_version = 9;
|
|
692
|
-
*/
|
|
693
|
-
this.protocolVersion = "";
|
|
694
|
-
/**
|
|
695
|
-
* @generated from field: uint32 fee_tier = 10;
|
|
696
|
-
*/
|
|
697
|
-
this.feeTier = 0;
|
|
698
|
-
proto3.util.initPartial(data, this);
|
|
699
|
-
}
|
|
700
|
-
static fromBinary(bytes, options) {
|
|
701
|
-
return new Pool().fromBinary(bytes, options);
|
|
702
|
-
}
|
|
703
|
-
static fromJson(jsonValue, options) {
|
|
704
|
-
return new Pool().fromJson(jsonValue, options);
|
|
705
|
-
}
|
|
706
|
-
static fromJsonString(jsonString, options) {
|
|
707
|
-
return new Pool().fromJsonString(jsonString, options);
|
|
708
|
-
}
|
|
709
|
-
static equals(a, b) {
|
|
710
|
-
return proto3.util.equals(Pool, a, b);
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
Pool.runtime = proto3;
|
|
714
|
-
Pool.typeName = "search.v1.Pool";
|
|
715
|
-
Pool.fields = proto3.util.newFieldList(() => [
|
|
716
|
-
{ no: 1, name: "volume_usd_24hr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
717
|
-
{ no: 2, name: "volume_usd_12hr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
718
|
-
{ no: 3, name: "volume_usd_6hr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
719
|
-
{ no: 4, name: "token0", kind: "message", T: PoolTokenData },
|
|
720
|
-
{ no: 5, name: "token1", kind: "message", T: PoolTokenData },
|
|
721
|
-
{ no: 6, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
722
|
-
{ no: 7, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
723
|
-
{ no: 8, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
724
|
-
{ no: 9, name: "protocol_version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
725
|
-
{ no: 10, name: "fee_tier", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
726
|
-
{ no: 11, name: "protocol_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
727
|
-
{ no: 12, name: "effective_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
728
|
-
]);
|