@uniswap/client-data-api 0.0.288 → 0.0.290

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.
@@ -651,10 +651,15 @@ export declare class GetRewardsRequest extends Message<GetRewardsRequest> {
651
651
  */
652
652
  walletAddress: string;
653
653
  /**
654
+ * Chains to read. Empty reads every chain the rewards provider (Merkl)
655
+ * supports; ids it doesn't support are dropped rather than failing the call.
656
+ *
654
657
  * @generated from field: repeated uint32 chain_ids = 2;
655
658
  */
656
659
  chainIds: number[];
657
660
  /**
661
+ * Bypasses the provider's cache. Requires exactly one entry in chain_ids.
662
+ *
658
663
  * @generated from field: optional bool reload = 3;
659
664
  */
660
665
  reload?: boolean;
@@ -924,6 +924,9 @@ export class GetRewardsRequest extends Message {
924
924
  */
925
925
  this.walletAddress = "";
926
926
  /**
927
+ * Chains to read. Empty reads every chain the rewards provider (Merkl)
928
+ * supports; ids it doesn't support are dropped rather than failing the call.
929
+ *
927
930
  * @generated from field: repeated uint32 chain_ids = 2;
928
931
  */
929
932
  this.chainIds = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.288",
3
+ "version": "0.0.290",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,15 +0,0 @@
1
- import { MethodKind } from "@bufbuild/protobuf";
2
- import { SearchTokensRequest, SearchTokensResponse } from "./search_pb.js";
3
- /**
4
- * @generated from rpc data.v1.SearchService.SearchTokens
5
- */
6
- export declare const searchTokens: {
7
- readonly localName: "searchTokens";
8
- readonly name: "SearchTokens";
9
- readonly kind: MethodKind.Unary;
10
- readonly I: typeof SearchTokensRequest;
11
- readonly O: typeof SearchTokensResponse;
12
- readonly service: {
13
- readonly typeName: "data.v1.SearchService";
14
- };
15
- };
@@ -1,19 +0,0 @@
1
- // @generated by protoc-gen-connect-query v1.4.2 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 { MethodKind } from "@bufbuild/protobuf";
6
- import { SearchTokensRequest, SearchTokensResponse } from "./search_pb.js";
7
- /**
8
- * @generated from rpc data.v1.SearchService.SearchTokens
9
- */
10
- export const searchTokens = {
11
- localName: "searchTokens",
12
- name: "SearchTokens",
13
- kind: MethodKind.Unary,
14
- I: SearchTokensRequest,
15
- O: SearchTokensResponse,
16
- service: {
17
- typeName: "data.v1.SearchService"
18
- }
19
- };
@@ -1,554 +0,0 @@
1
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
- import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { TokenRestriction } from "./featureGating_pb.js";
4
- /**
5
- * @generated from enum search.v1.SearchType
6
- */
7
- export declare enum SearchType {
8
- /**
9
- * @generated from enum value: SEARCH_TYPE_UNSPECIFIED = 0;
10
- */
11
- SEARCH_TYPE_UNSPECIFIED = 0,
12
- /**
13
- * @generated from enum value: TOKEN = 1;
14
- */
15
- TOKEN = 1,
16
- /**
17
- * @generated from enum value: POOL = 2;
18
- */
19
- POOL = 2,
20
- /**
21
- * @generated from enum value: AUCTION = 3;
22
- */
23
- AUCTION = 3,
24
- /**
25
- * @generated from enum value: CATEGORY = 4;
26
- */
27
- CATEGORY = 4
28
- }
29
- /**
30
- * @generated from enum search.v1.SpamCode
31
- */
32
- export declare enum SpamCode {
33
- /**
34
- * @generated from enum value: NOT_SPAM = 0;
35
- */
36
- NOT_SPAM = 0,
37
- /**
38
- * @generated from enum value: SPAM = 1;
39
- */
40
- SPAM = 1,
41
- /**
42
- * @generated from enum value: SPAM_URL = 2;
43
- */
44
- SPAM_URL = 2
45
- }
46
- /**
47
- * @generated from enum search.v1.AttackType
48
- */
49
- export declare enum AttackType {
50
- /**
51
- * @generated from enum value: ATTACK_TYPE_UNSPECIFIED = 0;
52
- */
53
- ATTACK_TYPE_UNSPECIFIED = 0,
54
- /**
55
- * @generated from enum value: METADATA = 1;
56
- */
57
- METADATA = 1,
58
- /**
59
- * @generated from enum value: INORGANIC_VOLUME = 2;
60
- */
61
- INORGANIC_VOLUME = 2,
62
- /**
63
- * @generated from enum value: AIRDROP_PATTERN = 3;
64
- */
65
- AIRDROP_PATTERN = 3,
66
- /**
67
- * @generated from enum value: DYNAMIC_ANALYSIS = 4;
68
- */
69
- DYNAMIC_ANALYSIS = 4,
70
- /**
71
- * @generated from enum value: STATIC_CODE_SIGNATURE = 5;
72
- */
73
- STATIC_CODE_SIGNATURE = 5,
74
- /**
75
- * @generated from enum value: KNOWN_MALICIOUS = 6;
76
- */
77
- KNOWN_MALICIOUS = 6,
78
- /**
79
- * @generated from enum value: IMPERSONATOR = 7;
80
- */
81
- IMPERSONATOR = 7,
82
- /**
83
- * @generated from enum value: UNSTABLE_TOKEN_PRICE = 8;
84
- */
85
- UNSTABLE_TOKEN_PRICE = 8,
86
- /**
87
- * @generated from enum value: RUGPULL = 9;
88
- */
89
- RUGPULL = 9,
90
- /**
91
- * @generated from enum value: HIGH_FEES = 10;
92
- */
93
- HIGH_FEES = 10
94
- }
95
- /**
96
- * @generated from message search.v1.Token
97
- */
98
- export declare class Token extends Message<Token> {
99
- /**
100
- * @generated from field: string token_id = 1;
101
- */
102
- tokenId: string;
103
- /**
104
- * @generated from field: uint32 chain_id = 2;
105
- */
106
- chainId: number;
107
- /**
108
- * @generated from field: string address = 3;
109
- */
110
- address: string;
111
- /**
112
- * @generated from field: uint32 decimals = 4;
113
- */
114
- decimals: number;
115
- /**
116
- * @generated from field: string symbol = 5;
117
- */
118
- symbol: string;
119
- /**
120
- * @generated from field: string name = 6;
121
- */
122
- name: string;
123
- /**
124
- * @generated from field: string standard = 7;
125
- */
126
- standard: string;
127
- /**
128
- * @generated from field: string project_name = 8;
129
- */
130
- projectName: string;
131
- /**
132
- * @generated from field: string logo_url = 9;
133
- */
134
- logoUrl: string;
135
- /**
136
- * @generated from field: string is_spam = 10;
137
- */
138
- isSpam: string;
139
- /**
140
- * @generated from field: string safety_level = 11;
141
- */
142
- safetyLevel: string;
143
- /**
144
- * @generated from field: search.v1.SpamCode spam_code = 12;
145
- */
146
- spamCode: SpamCode;
147
- /**
148
- * @generated from field: search.v1.FeeData fee_data = 13;
149
- */
150
- feeData?: FeeData;
151
- /**
152
- * @generated from field: search.v1.TokenProtectionInfo protection_info = 14;
153
- */
154
- protectionInfo?: TokenProtectionInfo;
155
- /**
156
- * Compliance restrictions evaluated server-side from ctx.auth. Empty =
157
- * no restrictions.
158
- *
159
- * @generated from field: repeated data.v1.TokenRestriction restrictions = 15;
160
- */
161
- restrictions: TokenRestriction[];
162
- constructor(data?: PartialMessage<Token>);
163
- static readonly runtime: typeof proto3;
164
- static readonly typeName = "search.v1.Token";
165
- static readonly fields: FieldList;
166
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Token;
167
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Token;
168
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Token;
169
- static equals(a: Token | PlainMessage<Token> | undefined, b: Token | PlainMessage<Token> | undefined): boolean;
170
- }
171
- /**
172
- * @generated from message search.v1.ChainToken
173
- */
174
- export declare class ChainToken extends Message<ChainToken> {
175
- /**
176
- * @generated from field: uint32 chain_id = 1;
177
- */
178
- chainId: number;
179
- /**
180
- * @generated from field: string address = 2;
181
- */
182
- address: string;
183
- /**
184
- * @generated from field: uint32 decimals = 3;
185
- */
186
- decimals: number;
187
- /**
188
- * @generated from field: string safety_level = 4;
189
- */
190
- safetyLevel: string;
191
- /**
192
- * @generated from field: search.v1.SpamCode spam_code = 5;
193
- */
194
- spamCode: SpamCode;
195
- /**
196
- * @generated from field: string is_spam = 6;
197
- */
198
- isSpam: string;
199
- /**
200
- * @generated from field: search.v1.FeeData fee_data = 7;
201
- */
202
- feeData?: FeeData;
203
- /**
204
- * @generated from field: search.v1.TokenProtectionInfo protection_info = 8;
205
- */
206
- protectionInfo?: TokenProtectionInfo;
207
- constructor(data?: PartialMessage<ChainToken>);
208
- static readonly runtime: typeof proto3;
209
- static readonly typeName = "search.v1.ChainToken";
210
- static readonly fields: FieldList;
211
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainToken;
212
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainToken;
213
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainToken;
214
- static equals(a: ChainToken | PlainMessage<ChainToken> | undefined, b: ChainToken | PlainMessage<ChainToken> | undefined): boolean;
215
- }
216
- /**
217
- * @generated from message search.v1.MultichainToken
218
- */
219
- export declare class MultichainToken extends Message<MultichainToken> {
220
- /**
221
- * @generated from field: string multichain_id = 1;
222
- */
223
- multichainId: string;
224
- /**
225
- * @generated from field: string symbol = 2;
226
- */
227
- symbol: string;
228
- /**
229
- * @generated from field: string name = 3;
230
- */
231
- name: string;
232
- /**
233
- * @generated from field: string standard = 4;
234
- */
235
- standard: string;
236
- /**
237
- * @generated from field: string project_name = 5;
238
- */
239
- projectName: string;
240
- /**
241
- * @generated from field: string logo_url = 6;
242
- */
243
- logoUrl: string;
244
- /**
245
- * @generated from field: string safety_level = 7;
246
- */
247
- safetyLevel: string;
248
- /**
249
- * @generated from field: search.v1.SpamCode spam_code = 8;
250
- */
251
- spamCode: SpamCode;
252
- /**
253
- * @generated from field: string is_spam = 9;
254
- */
255
- isSpam: string;
256
- /**
257
- * @generated from field: search.v1.FeeData fee_data = 10;
258
- */
259
- feeData?: FeeData;
260
- /**
261
- * @generated from field: search.v1.TokenProtectionInfo protection_info = 11;
262
- */
263
- protectionInfo?: TokenProtectionInfo;
264
- /**
265
- * @generated from field: repeated search.v1.ChainToken chain_tokens = 12;
266
- */
267
- chainTokens: ChainToken[];
268
- /**
269
- * Compliance restrictions evaluated server-side from ctx.auth. Empty =
270
- * no restrictions.
271
- *
272
- * @generated from field: repeated data.v1.TokenRestriction restrictions = 13;
273
- */
274
- restrictions: TokenRestriction[];
275
- constructor(data?: PartialMessage<MultichainToken>);
276
- static readonly runtime: typeof proto3;
277
- static readonly typeName = "search.v1.MultichainToken";
278
- static readonly fields: FieldList;
279
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MultichainToken;
280
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MultichainToken;
281
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MultichainToken;
282
- static equals(a: MultichainToken | PlainMessage<MultichainToken> | undefined, b: MultichainToken | PlainMessage<MultichainToken> | undefined): boolean;
283
- }
284
- /**
285
- * @generated from message search.v1.FeeData
286
- */
287
- export declare class FeeData extends Message<FeeData> {
288
- /**
289
- * @generated from field: string sell_fee_bps = 1;
290
- */
291
- sellFeeBps: string;
292
- /**
293
- * @generated from field: string buy_fee_bps = 2;
294
- */
295
- buyFeeBps: string;
296
- /**
297
- * @generated from field: bool fee_taken_on_transfer = 3;
298
- */
299
- feeTakenOnTransfer: boolean;
300
- /**
301
- * @generated from field: bool external_transfer_failed = 4;
302
- */
303
- externalTransferFailed: boolean;
304
- /**
305
- * @generated from field: bool sell_reverted = 5;
306
- */
307
- sellReverted: boolean;
308
- constructor(data?: PartialMessage<FeeData>);
309
- static readonly runtime: typeof proto3;
310
- static readonly typeName = "search.v1.FeeData";
311
- static readonly fields: FieldList;
312
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeeData;
313
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeeData;
314
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeeData;
315
- static equals(a: FeeData | PlainMessage<FeeData> | undefined, b: FeeData | PlainMessage<FeeData> | undefined): boolean;
316
- }
317
- /**
318
- * A token-category search result. Deliberately id-only: clients hydrate
319
- * name/icon/stats locally from their cached ListCategories response
320
- * (agreed convention — see the category_ids thread on PR #11417).
321
- *
322
- * @generated from message search.v1.SearchCategory
323
- */
324
- export declare class SearchCategory extends Message<SearchCategory> {
325
- /**
326
- * @generated from field: string category_id = 1;
327
- */
328
- categoryId: string;
329
- constructor(data?: PartialMessage<SearchCategory>);
330
- static readonly runtime: typeof proto3;
331
- static readonly typeName = "search.v1.SearchCategory";
332
- static readonly fields: FieldList;
333
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchCategory;
334
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchCategory;
335
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchCategory;
336
- static equals(a: SearchCategory | PlainMessage<SearchCategory> | undefined, b: SearchCategory | PlainMessage<SearchCategory> | undefined): boolean;
337
- }
338
- /**
339
- * @generated from message search.v1.SearchAuction
340
- */
341
- export declare class SearchAuction extends Message<SearchAuction> {
342
- /**
343
- * @generated from field: string auction_id = 1;
344
- */
345
- auctionId: string;
346
- /**
347
- * @generated from field: uint32 chain_id = 2;
348
- */
349
- chainId: number;
350
- /**
351
- * @generated from field: string auction_address = 3;
352
- */
353
- auctionAddress: string;
354
- /**
355
- * @generated from field: string token_address = 4;
356
- */
357
- tokenAddress: string;
358
- /**
359
- * @generated from field: string token_name = 5;
360
- */
361
- tokenName: string;
362
- /**
363
- * @generated from field: string token_symbol = 6;
364
- */
365
- tokenSymbol: string;
366
- /**
367
- * @generated from field: string total_bid_volume_usd = 7;
368
- */
369
- totalBidVolumeUsd: string;
370
- constructor(data?: PartialMessage<SearchAuction>);
371
- static readonly runtime: typeof proto3;
372
- static readonly typeName = "search.v1.SearchAuction";
373
- static readonly fields: FieldList;
374
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SearchAuction;
375
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SearchAuction;
376
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SearchAuction;
377
- static equals(a: SearchAuction | PlainMessage<SearchAuction> | undefined, b: SearchAuction | PlainMessage<SearchAuction> | undefined): boolean;
378
- }
379
- /**
380
- * @generated from message search.v1.BlockaidFees
381
- */
382
- export declare class BlockaidFees extends Message<BlockaidFees> {
383
- /**
384
- * @generated from field: double transfer = 1;
385
- */
386
- transfer: number;
387
- /**
388
- * @generated from field: double buy = 2;
389
- */
390
- buy: number;
391
- /**
392
- * @generated from field: double sell = 3;
393
- */
394
- sell: number;
395
- constructor(data?: PartialMessage<BlockaidFees>);
396
- static readonly runtime: typeof proto3;
397
- static readonly typeName = "search.v1.BlockaidFees";
398
- static readonly fields: FieldList;
399
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BlockaidFees;
400
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BlockaidFees;
401
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BlockaidFees;
402
- static equals(a: BlockaidFees | PlainMessage<BlockaidFees> | undefined, b: BlockaidFees | PlainMessage<BlockaidFees> | undefined): boolean;
403
- }
404
- /**
405
- * @generated from message search.v1.TokenProtectionInfo
406
- */
407
- export declare class TokenProtectionInfo extends Message<TokenProtectionInfo> {
408
- /**
409
- * @generated from field: string result = 1;
410
- */
411
- result: string;
412
- /**
413
- * @generated from field: string token_id = 2;
414
- */
415
- tokenId: string;
416
- /**
417
- * @generated from field: uint32 chain_id = 3;
418
- */
419
- chainId: number;
420
- /**
421
- * @generated from field: repeated string attack_types = 4;
422
- */
423
- attackTypes: string[];
424
- /**
425
- * @generated from field: string address = 5;
426
- */
427
- address: string;
428
- /**
429
- * @generated from field: search.v1.BlockaidFees blockaid_fees = 6;
430
- */
431
- blockaidFees?: BlockaidFees;
432
- /**
433
- * @generated from field: uint32 updated_at = 7;
434
- */
435
- updatedAt: number;
436
- /**
437
- * @generated from field: search.v1.FeeData fee_data = 8;
438
- */
439
- feeData?: FeeData;
440
- constructor(data?: PartialMessage<TokenProtectionInfo>);
441
- static readonly runtime: typeof proto3;
442
- static readonly typeName = "search.v1.TokenProtectionInfo";
443
- static readonly fields: FieldList;
444
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenProtectionInfo;
445
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenProtectionInfo;
446
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenProtectionInfo;
447
- static equals(a: TokenProtectionInfo | PlainMessage<TokenProtectionInfo> | undefined, b: TokenProtectionInfo | PlainMessage<TokenProtectionInfo> | undefined): boolean;
448
- }
449
- /**
450
- * @generated from message search.v1.PoolTokenData
451
- */
452
- export declare class PoolTokenData extends Message<PoolTokenData> {
453
- /**
454
- * @generated from field: uint32 chain_id = 1;
455
- */
456
- chainId: number;
457
- /**
458
- * @generated from field: string address = 2;
459
- */
460
- address: string;
461
- /**
462
- * @generated from field: string symbol = 3;
463
- */
464
- symbol: string;
465
- /**
466
- * @generated from field: string name = 4;
467
- */
468
- name: string;
469
- /**
470
- * @generated from field: uint32 decimals = 5;
471
- */
472
- decimals: number;
473
- /**
474
- * @generated from field: string logo_url = 6;
475
- */
476
- logoUrl: string;
477
- constructor(data?: PartialMessage<PoolTokenData>);
478
- static readonly runtime: typeof proto3;
479
- static readonly typeName = "search.v1.PoolTokenData";
480
- static readonly fields: FieldList;
481
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolTokenData;
482
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolTokenData;
483
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolTokenData;
484
- static equals(a: PoolTokenData | PlainMessage<PoolTokenData> | undefined, b: PoolTokenData | PlainMessage<PoolTokenData> | undefined): boolean;
485
- }
486
- /**
487
- * @generated from message search.v1.Pool
488
- */
489
- export declare class Pool extends Message<Pool> {
490
- /**
491
- * @generated from field: double volume_usd_24hr = 1;
492
- */
493
- volumeUsd24hr: number;
494
- /**
495
- * @generated from field: double volume_usd_12hr = 2;
496
- */
497
- volumeUsd12hr: number;
498
- /**
499
- * @generated from field: double volume_usd_6hr = 3;
500
- */
501
- volumeUsd6hr: number;
502
- /**
503
- * @generated from field: search.v1.PoolTokenData token0 = 4;
504
- */
505
- token0?: PoolTokenData;
506
- /**
507
- * @generated from field: search.v1.PoolTokenData token1 = 5;
508
- */
509
- token1?: PoolTokenData;
510
- /**
511
- * @generated from field: string id = 6;
512
- */
513
- id: string;
514
- /**
515
- * @generated from field: uint32 chain_id = 7;
516
- */
517
- chainId: number;
518
- /**
519
- * @generated from field: optional string hook_address = 8;
520
- */
521
- hookAddress?: string;
522
- /**
523
- * V4, V3, or V2
524
- *
525
- * @generated from field: string protocol_version = 9;
526
- */
527
- protocolVersion: string;
528
- /**
529
- * @generated from field: uint32 fee_tier = 10;
530
- */
531
- feeTier: number;
532
- /**
533
- * Protocol fee (pips), same unit as `fee_tier`. v4: ADDITIVE on top of it;
534
- * v2/v3: SUBTRACTIVE share of it. Optional: unset = unknown, set 0 = off.
535
- *
536
- * @generated from field: optional uint32 protocol_fee = 11;
537
- */
538
- protocolFee?: number;
539
- /**
540
- * Effective (all-in) fee (pips). v4: fee_tier+protocol_fee; v2/v3: fee_tier.
541
- * Optional: unset when protocol_fee is unavailable (incl. v4 dynamic-fee).
542
- *
543
- * @generated from field: optional uint32 effective_fee = 12;
544
- */
545
- effectiveFee?: number;
546
- constructor(data?: PartialMessage<Pool>);
547
- static readonly runtime: typeof proto3;
548
- static readonly typeName = "search.v1.Pool";
549
- static readonly fields: FieldList;
550
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Pool;
551
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Pool;
552
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Pool;
553
- static equals(a: Pool | PlainMessage<Pool> | undefined, b: Pool | PlainMessage<Pool> | undefined): boolean;
554
- }