@uniswap/client-data-api 0.0.8 → 0.0.10

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,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
2
+ import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v1.DataApiService.GetToken
5
5
  */
@@ -52,6 +52,19 @@ export declare const listPortfolios: {
52
52
  readonly typeName: "data.v1.DataApiService";
53
53
  };
54
54
  };
55
+ /**
56
+ * @generated from rpc data.v1.DataApiService.GetTransaction
57
+ */
58
+ export declare const getTransaction: {
59
+ readonly localName: "getTransaction";
60
+ readonly name: "GetTransaction";
61
+ readonly kind: MethodKind.Unary;
62
+ readonly I: typeof GetTransactionRequest;
63
+ readonly O: typeof GetTransactionResponse;
64
+ readonly service: {
65
+ readonly typeName: "data.v1.DataApiService";
66
+ };
67
+ };
55
68
  /**
56
69
  * @generated from rpc data.v1.DataApiService.ListTransactions
57
70
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
6
+ import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v1.DataApiService.GetToken
9
9
  */
@@ -56,6 +56,19 @@ export const listPortfolios = {
56
56
  typeName: "data.v1.DataApiService"
57
57
  }
58
58
  };
59
+ /**
60
+ * @generated from rpc data.v1.DataApiService.GetTransaction
61
+ */
62
+ export const getTransaction = {
63
+ localName: "getTransaction",
64
+ name: "GetTransaction",
65
+ kind: MethodKind.Unary,
66
+ I: GetTransactionRequest,
67
+ O: GetTransactionResponse,
68
+ service: {
69
+ typeName: "data.v1.DataApiService"
70
+ }
71
+ };
59
72
  /**
60
73
  * @generated from rpc data.v1.DataApiService.ListTransactions
61
74
  */
@@ -1,4 +1,4 @@
1
- import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
1
+ import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service data.v1.DataApiService
@@ -42,6 +42,15 @@ export declare const DataApiService: {
42
42
  readonly O: typeof ListPortfoliosResponse;
43
43
  readonly kind: MethodKind.Unary;
44
44
  };
45
+ /**
46
+ * @generated from rpc data.v1.DataApiService.GetTransaction
47
+ */
48
+ readonly getTransaction: {
49
+ readonly name: "GetTransaction";
50
+ readonly I: typeof GetTransactionRequest;
51
+ readonly O: typeof GetTransactionResponse;
52
+ readonly kind: MethodKind.Unary;
53
+ };
45
54
  /**
46
55
  * @generated from rpc data.v1.DataApiService.ListTransactions
47
56
  */
@@ -2,7 +2,7 @@
2
2
  // @generated from file data/v1/api.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
5
+ import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service data.v1.DataApiService
@@ -46,6 +46,15 @@ export const DataApiService = {
46
46
  O: ListPortfoliosResponse,
47
47
  kind: MethodKind.Unary,
48
48
  },
49
+ /**
50
+ * @generated from rpc data.v1.DataApiService.GetTransaction
51
+ */
52
+ getTransaction: {
53
+ name: "GetTransaction",
54
+ I: GetTransactionRequest,
55
+ O: GetTransactionResponse,
56
+ kind: MethodKind.Unary,
57
+ },
49
58
  /**
50
59
  * @generated from rpc data.v1.DataApiService.ListTransactions
51
60
  */
@@ -169,6 +169,48 @@ export declare class SubmitReportResponse extends Message<SubmitReportResponse>
169
169
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubmitReportResponse;
170
170
  static equals(a: SubmitReportResponse | PlainMessage<SubmitReportResponse> | undefined, b: SubmitReportResponse | PlainMessage<SubmitReportResponse> | undefined): boolean;
171
171
  }
172
+ /**
173
+ * @generated from message data.v1.GetTransactionRequest
174
+ */
175
+ export declare class GetTransactionRequest extends Message<GetTransactionRequest> {
176
+ /**
177
+ * @generated from field: uint32 chain_id = 1;
178
+ */
179
+ chainId: number;
180
+ /**
181
+ * @generated from field: string hash = 2;
182
+ */
183
+ hash: string;
184
+ /**
185
+ * @generated from field: optional string address = 3;
186
+ */
187
+ address?: string;
188
+ constructor(data?: PartialMessage<GetTransactionRequest>);
189
+ static readonly runtime: typeof proto3;
190
+ static readonly typeName = "data.v1.GetTransactionRequest";
191
+ static readonly fields: FieldList;
192
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTransactionRequest;
193
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTransactionRequest;
194
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTransactionRequest;
195
+ static equals(a: GetTransactionRequest | PlainMessage<GetTransactionRequest> | undefined, b: GetTransactionRequest | PlainMessage<GetTransactionRequest> | undefined): boolean;
196
+ }
197
+ /**
198
+ * @generated from message data.v1.GetTransactionResponse
199
+ */
200
+ export declare class GetTransactionResponse extends Message<GetTransactionResponse> {
201
+ /**
202
+ * @generated from field: data.v1.Transaction transaction = 1;
203
+ */
204
+ transaction?: Transaction;
205
+ constructor(data?: PartialMessage<GetTransactionResponse>);
206
+ static readonly runtime: typeof proto3;
207
+ static readonly typeName = "data.v1.GetTransactionResponse";
208
+ static readonly fields: FieldList;
209
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTransactionResponse;
210
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTransactionResponse;
211
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTransactionResponse;
212
+ static equals(a: GetTransactionResponse | PlainMessage<GetTransactionResponse> | undefined, b: GetTransactionResponse | PlainMessage<GetTransactionResponse> | undefined): boolean;
213
+ }
172
214
  /**
173
215
  * @generated from message data.v1.ListTransactionsRequest
174
216
  */
@@ -190,9 +232,9 @@ export declare class ListTransactionsRequest extends Message<ListTransactionsReq
190
232
  */
191
233
  pageToken?: string;
192
234
  /**
193
- * @generated from field: optional uint32 page_limit = 5;
235
+ * @generated from field: optional uint32 page_size = 5;
194
236
  */
195
- pageLimit?: number;
237
+ pageSize?: number;
196
238
  constructor(data?: PartialMessage<ListTransactionsRequest>);
197
239
  static readonly runtime: typeof proto3;
198
240
  static readonly typeName = "data.v1.ListTransactionsRequest";
@@ -272,6 +272,68 @@ SubmitReportResponse.typeName = "data.v1.SubmitReportResponse";
272
272
  SubmitReportResponse.fields = proto3.util.newFieldList(() => [
273
273
  { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
274
274
  ]);
275
+ /**
276
+ * @generated from message data.v1.GetTransactionRequest
277
+ */
278
+ export class GetTransactionRequest extends Message {
279
+ constructor(data) {
280
+ super();
281
+ /**
282
+ * @generated from field: uint32 chain_id = 1;
283
+ */
284
+ this.chainId = 0;
285
+ /**
286
+ * @generated from field: string hash = 2;
287
+ */
288
+ this.hash = "";
289
+ proto3.util.initPartial(data, this);
290
+ }
291
+ static fromBinary(bytes, options) {
292
+ return new GetTransactionRequest().fromBinary(bytes, options);
293
+ }
294
+ static fromJson(jsonValue, options) {
295
+ return new GetTransactionRequest().fromJson(jsonValue, options);
296
+ }
297
+ static fromJsonString(jsonString, options) {
298
+ return new GetTransactionRequest().fromJsonString(jsonString, options);
299
+ }
300
+ static equals(a, b) {
301
+ return proto3.util.equals(GetTransactionRequest, a, b);
302
+ }
303
+ }
304
+ GetTransactionRequest.runtime = proto3;
305
+ GetTransactionRequest.typeName = "data.v1.GetTransactionRequest";
306
+ GetTransactionRequest.fields = proto3.util.newFieldList(() => [
307
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
308
+ { no: 2, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
309
+ { no: 3, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
310
+ ]);
311
+ /**
312
+ * @generated from message data.v1.GetTransactionResponse
313
+ */
314
+ export class GetTransactionResponse extends Message {
315
+ constructor(data) {
316
+ super();
317
+ proto3.util.initPartial(data, this);
318
+ }
319
+ static fromBinary(bytes, options) {
320
+ return new GetTransactionResponse().fromBinary(bytes, options);
321
+ }
322
+ static fromJson(jsonValue, options) {
323
+ return new GetTransactionResponse().fromJson(jsonValue, options);
324
+ }
325
+ static fromJsonString(jsonString, options) {
326
+ return new GetTransactionResponse().fromJsonString(jsonString, options);
327
+ }
328
+ static equals(a, b) {
329
+ return proto3.util.equals(GetTransactionResponse, a, b);
330
+ }
331
+ }
332
+ GetTransactionResponse.runtime = proto3;
333
+ GetTransactionResponse.typeName = "data.v1.GetTransactionResponse";
334
+ GetTransactionResponse.fields = proto3.util.newFieldList(() => [
335
+ { no: 1, name: "transaction", kind: "message", T: Transaction },
336
+ ]);
275
337
  /**
276
338
  * @generated from message data.v1.ListTransactionsRequest
277
339
  */
@@ -308,7 +370,7 @@ ListTransactionsRequest.fields = proto3.util.newFieldList(() => [
308
370
  { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
309
371
  { no: 3, name: "fiat_on_ramp_params", kind: "message", T: FiatOnRampParams, opt: true },
310
372
  { no: 4, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
311
- { no: 5, name: "page_limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
373
+ { no: 5, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
312
374
  ]);
313
375
  /**
314
376
  * @generated from message data.v1.FiatOnRampParams
@@ -282,6 +282,88 @@ export declare enum FiatOnRampTransactionStatus {
282
282
  */
283
283
  PENDING = 2
284
284
  }
285
+ /**
286
+ * @generated from enum data.v1.ProtectionResult
287
+ */
288
+ export declare enum ProtectionResult {
289
+ /**
290
+ * @generated from enum value: PROTECTION_RESULT_UNKNOWN = 0;
291
+ */
292
+ UNKNOWN = 0,
293
+ /**
294
+ * @generated from enum value: PROTECTION_RESULT_BENIGN = 1;
295
+ */
296
+ BENIGN = 1,
297
+ /**
298
+ * @generated from enum value: PROTECTION_RESULT_MALICIOUS = 2;
299
+ */
300
+ MALICIOUS = 2,
301
+ /**
302
+ * @generated from enum value: PROTECTION_RESULT_SPAM = 3;
303
+ */
304
+ SPAM = 3,
305
+ /**
306
+ * @generated from enum value: PROTECTION_RESULT_WARNING = 4;
307
+ */
308
+ WARNING = 4
309
+ }
310
+ /**
311
+ * @generated from enum data.v1.AttackType
312
+ */
313
+ export declare enum AttackType {
314
+ /**
315
+ * @generated from enum value: ATTACK_TYPE_UNKNOWN = 0;
316
+ */
317
+ UNKNOWN = 0,
318
+ /**
319
+ * @generated from enum value: ATTACK_TYPE_AIRDROP_PATTERN = 1;
320
+ */
321
+ AIRDROP_PATTERN = 1,
322
+ /**
323
+ * @generated from enum value: ATTACK_TYPE_DYNAMIC_ANALYSIS = 2;
324
+ */
325
+ DYNAMIC_ANALYSIS = 2,
326
+ /**
327
+ * @generated from enum value: ATTACK_TYPE_HIGH_FEES = 3;
328
+ */
329
+ HIGH_FEES = 3,
330
+ /**
331
+ * @generated from enum value: ATTACK_TYPE_IMPERSONATOR = 4;
332
+ */
333
+ IMPERSONATOR = 4,
334
+ /**
335
+ * @generated from enum value: ATTACK_TYPE_INORGANIC_VOLUME = 5;
336
+ */
337
+ INORGANIC_VOLUME = 5,
338
+ /**
339
+ * @generated from enum value: ATTACK_TYPE_KNOWN_MALICIOUS = 6;
340
+ */
341
+ KNOWN_MALICIOUS = 6,
342
+ /**
343
+ * @generated from enum value: ATTACK_TYPE_METADATA = 7;
344
+ */
345
+ METADATA = 7,
346
+ /**
347
+ * @generated from enum value: ATTACK_TYPE_RUGPULL = 8;
348
+ */
349
+ RUGPULL = 8,
350
+ /**
351
+ * @generated from enum value: ATTACK_TYPE_HONEYPOT = 9;
352
+ */
353
+ HONEYPOT = 9,
354
+ /**
355
+ * @generated from enum value: ATTACK_TYPE_SPAM_TEXT = 10;
356
+ */
357
+ SPAM_TEXT = 10,
358
+ /**
359
+ * @generated from enum value: ATTACK_TYPE_STATIC_CODE_SIGNATURE = 11;
360
+ */
361
+ STATIC_CODE_SIGNATURE = 11,
362
+ /**
363
+ * @generated from enum value: ATTACK_TYPE_UNSTABLE_TOKEN_PRICE = 12;
364
+ */
365
+ UNSTABLE_TOKEN_PRICE = 12
366
+ }
285
367
  /**
286
368
  * @generated from message data.v1.Token
287
369
  */
@@ -367,13 +449,13 @@ export declare class TokenMetadata extends Message<TokenMetadata> {
367
449
  */
368
450
  export declare class ProtectionInfo extends Message<ProtectionInfo> {
369
451
  /**
370
- * @generated from field: string result = 1;
452
+ * @generated from field: data.v1.ProtectionResult result = 1;
371
453
  */
372
- result: string;
454
+ result: ProtectionResult;
373
455
  /**
374
- * @generated from field: repeated string attack_types = 2;
456
+ * @generated from field: repeated data.v1.AttackType attack_types = 2;
375
457
  */
376
- attackTypes: string[];
458
+ attackTypes: AttackType[];
377
459
  constructor(data?: PartialMessage<ProtectionInfo>);
378
460
  static readonly runtime: typeof proto3;
379
461
  static readonly typeName = "data.v1.ProtectionInfo";
@@ -383,6 +383,114 @@ proto3.util.setEnumType(FiatOnRampTransactionStatus, "data.v1.FiatOnRampTransact
383
383
  { no: 1, name: "FIAT_ON_RAMP_TRANSACTION_STATUS_SETTLED" },
384
384
  { no: 2, name: "FIAT_ON_RAMP_TRANSACTION_STATUS_PENDING" },
385
385
  ]);
386
+ /**
387
+ * @generated from enum data.v1.ProtectionResult
388
+ */
389
+ export var ProtectionResult;
390
+ (function (ProtectionResult) {
391
+ /**
392
+ * @generated from enum value: PROTECTION_RESULT_UNKNOWN = 0;
393
+ */
394
+ ProtectionResult[ProtectionResult["UNKNOWN"] = 0] = "UNKNOWN";
395
+ /**
396
+ * @generated from enum value: PROTECTION_RESULT_BENIGN = 1;
397
+ */
398
+ ProtectionResult[ProtectionResult["BENIGN"] = 1] = "BENIGN";
399
+ /**
400
+ * @generated from enum value: PROTECTION_RESULT_MALICIOUS = 2;
401
+ */
402
+ ProtectionResult[ProtectionResult["MALICIOUS"] = 2] = "MALICIOUS";
403
+ /**
404
+ * @generated from enum value: PROTECTION_RESULT_SPAM = 3;
405
+ */
406
+ ProtectionResult[ProtectionResult["SPAM"] = 3] = "SPAM";
407
+ /**
408
+ * @generated from enum value: PROTECTION_RESULT_WARNING = 4;
409
+ */
410
+ ProtectionResult[ProtectionResult["WARNING"] = 4] = "WARNING";
411
+ })(ProtectionResult || (ProtectionResult = {}));
412
+ // Retrieve enum metadata with: proto3.getEnumType(ProtectionResult)
413
+ proto3.util.setEnumType(ProtectionResult, "data.v1.ProtectionResult", [
414
+ { no: 0, name: "PROTECTION_RESULT_UNKNOWN" },
415
+ { no: 1, name: "PROTECTION_RESULT_BENIGN" },
416
+ { no: 2, name: "PROTECTION_RESULT_MALICIOUS" },
417
+ { no: 3, name: "PROTECTION_RESULT_SPAM" },
418
+ { no: 4, name: "PROTECTION_RESULT_WARNING" },
419
+ ]);
420
+ /**
421
+ * @generated from enum data.v1.AttackType
422
+ */
423
+ export var AttackType;
424
+ (function (AttackType) {
425
+ /**
426
+ * @generated from enum value: ATTACK_TYPE_UNKNOWN = 0;
427
+ */
428
+ AttackType[AttackType["UNKNOWN"] = 0] = "UNKNOWN";
429
+ /**
430
+ * @generated from enum value: ATTACK_TYPE_AIRDROP_PATTERN = 1;
431
+ */
432
+ AttackType[AttackType["AIRDROP_PATTERN"] = 1] = "AIRDROP_PATTERN";
433
+ /**
434
+ * @generated from enum value: ATTACK_TYPE_DYNAMIC_ANALYSIS = 2;
435
+ */
436
+ AttackType[AttackType["DYNAMIC_ANALYSIS"] = 2] = "DYNAMIC_ANALYSIS";
437
+ /**
438
+ * @generated from enum value: ATTACK_TYPE_HIGH_FEES = 3;
439
+ */
440
+ AttackType[AttackType["HIGH_FEES"] = 3] = "HIGH_FEES";
441
+ /**
442
+ * @generated from enum value: ATTACK_TYPE_IMPERSONATOR = 4;
443
+ */
444
+ AttackType[AttackType["IMPERSONATOR"] = 4] = "IMPERSONATOR";
445
+ /**
446
+ * @generated from enum value: ATTACK_TYPE_INORGANIC_VOLUME = 5;
447
+ */
448
+ AttackType[AttackType["INORGANIC_VOLUME"] = 5] = "INORGANIC_VOLUME";
449
+ /**
450
+ * @generated from enum value: ATTACK_TYPE_KNOWN_MALICIOUS = 6;
451
+ */
452
+ AttackType[AttackType["KNOWN_MALICIOUS"] = 6] = "KNOWN_MALICIOUS";
453
+ /**
454
+ * @generated from enum value: ATTACK_TYPE_METADATA = 7;
455
+ */
456
+ AttackType[AttackType["METADATA"] = 7] = "METADATA";
457
+ /**
458
+ * @generated from enum value: ATTACK_TYPE_RUGPULL = 8;
459
+ */
460
+ AttackType[AttackType["RUGPULL"] = 8] = "RUGPULL";
461
+ /**
462
+ * @generated from enum value: ATTACK_TYPE_HONEYPOT = 9;
463
+ */
464
+ AttackType[AttackType["HONEYPOT"] = 9] = "HONEYPOT";
465
+ /**
466
+ * @generated from enum value: ATTACK_TYPE_SPAM_TEXT = 10;
467
+ */
468
+ AttackType[AttackType["SPAM_TEXT"] = 10] = "SPAM_TEXT";
469
+ /**
470
+ * @generated from enum value: ATTACK_TYPE_STATIC_CODE_SIGNATURE = 11;
471
+ */
472
+ AttackType[AttackType["STATIC_CODE_SIGNATURE"] = 11] = "STATIC_CODE_SIGNATURE";
473
+ /**
474
+ * @generated from enum value: ATTACK_TYPE_UNSTABLE_TOKEN_PRICE = 12;
475
+ */
476
+ AttackType[AttackType["UNSTABLE_TOKEN_PRICE"] = 12] = "UNSTABLE_TOKEN_PRICE";
477
+ })(AttackType || (AttackType = {}));
478
+ // Retrieve enum metadata with: proto3.getEnumType(AttackType)
479
+ proto3.util.setEnumType(AttackType, "data.v1.AttackType", [
480
+ { no: 0, name: "ATTACK_TYPE_UNKNOWN" },
481
+ { no: 1, name: "ATTACK_TYPE_AIRDROP_PATTERN" },
482
+ { no: 2, name: "ATTACK_TYPE_DYNAMIC_ANALYSIS" },
483
+ { no: 3, name: "ATTACK_TYPE_HIGH_FEES" },
484
+ { no: 4, name: "ATTACK_TYPE_IMPERSONATOR" },
485
+ { no: 5, name: "ATTACK_TYPE_INORGANIC_VOLUME" },
486
+ { no: 6, name: "ATTACK_TYPE_KNOWN_MALICIOUS" },
487
+ { no: 7, name: "ATTACK_TYPE_METADATA" },
488
+ { no: 8, name: "ATTACK_TYPE_RUGPULL" },
489
+ { no: 9, name: "ATTACK_TYPE_HONEYPOT" },
490
+ { no: 10, name: "ATTACK_TYPE_SPAM_TEXT" },
491
+ { no: 11, name: "ATTACK_TYPE_STATIC_CODE_SIGNATURE" },
492
+ { no: 12, name: "ATTACK_TYPE_UNSTABLE_TOKEN_PRICE" },
493
+ ]);
386
494
  /**
387
495
  * @generated from message data.v1.Token
388
496
  */
@@ -495,11 +603,11 @@ export class ProtectionInfo extends Message {
495
603
  constructor(data) {
496
604
  super();
497
605
  /**
498
- * @generated from field: string result = 1;
606
+ * @generated from field: data.v1.ProtectionResult result = 1;
499
607
  */
500
- this.result = "";
608
+ this.result = ProtectionResult.UNKNOWN;
501
609
  /**
502
- * @generated from field: repeated string attack_types = 2;
610
+ * @generated from field: repeated data.v1.AttackType attack_types = 2;
503
611
  */
504
612
  this.attackTypes = [];
505
613
  proto3.util.initPartial(data, this);
@@ -520,8 +628,8 @@ export class ProtectionInfo extends Message {
520
628
  ProtectionInfo.runtime = proto3;
521
629
  ProtectionInfo.typeName = "data.v1.ProtectionInfo";
522
630
  ProtectionInfo.fields = proto3.util.newFieldList(() => [
523
- { no: 1, name: "result", kind: "scalar", T: 9 /* ScalarType.STRING */ },
524
- { no: 2, name: "attack_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
631
+ { no: 1, name: "result", kind: "enum", T: proto3.getEnumType(ProtectionResult) },
632
+ { no: 2, name: "attack_types", kind: "enum", T: proto3.getEnumType(AttackType), repeated: true },
525
633
  ]);
526
634
  /**
527
635
  * TODO(DAT-1081): dedupe these for the frontend potentially
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },