@uniswap/client-data-api 0.0.37 → 0.0.38
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/v1/api_pb.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
-
import { Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction } from "./types_pb.js";
|
|
3
|
+
import { Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction, TransactionTypeFilter } from "./types_pb.js";
|
|
4
4
|
import { Pair, Pool, Position, PositionStatus, ProtocolVersion } from "./poolTypes_pb.js";
|
|
5
5
|
/**
|
|
6
6
|
* @generated from enum data.v1.Platform
|
|
@@ -519,6 +519,10 @@ export declare class ListTransactionsRequest extends Message<ListTransactionsReq
|
|
|
519
519
|
* @generated from field: optional bool include_plans = 6;
|
|
520
520
|
*/
|
|
521
521
|
includePlans?: boolean;
|
|
522
|
+
/**
|
|
523
|
+
* @generated from field: repeated data.v1.TransactionTypeFilter filter_transaction_types = 7;
|
|
524
|
+
*/
|
|
525
|
+
filterTransactionTypes: TransactionTypeFilter[];
|
|
522
526
|
constructor(data?: PartialMessage<ListTransactionsRequest>);
|
|
523
527
|
static readonly runtime: typeof proto3;
|
|
524
528
|
static readonly typeName = "data.v1.ListTransactionsRequest";
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
6
|
-
import { Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction } from "./types_pb.js";
|
|
6
|
+
import { Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction, TransactionTypeFilter } from "./types_pb.js";
|
|
7
7
|
import { Pair, Pool, Position, PositionStatus, ProtocolVersion } from "./poolTypes_pb.js";
|
|
8
8
|
/**
|
|
9
9
|
* @generated from enum data.v1.Platform
|
|
@@ -744,6 +744,10 @@ export class ListTransactionsRequest extends Message {
|
|
|
744
744
|
* @generated from field: repeated uint32 chain_ids = 1;
|
|
745
745
|
*/
|
|
746
746
|
this.chainIds = [];
|
|
747
|
+
/**
|
|
748
|
+
* @generated from field: repeated data.v1.TransactionTypeFilter filter_transaction_types = 7;
|
|
749
|
+
*/
|
|
750
|
+
this.filterTransactionTypes = [];
|
|
747
751
|
proto3.util.initPartial(data, this);
|
|
748
752
|
}
|
|
749
753
|
static fromBinary(bytes, options) {
|
|
@@ -768,6 +772,7 @@ ListTransactionsRequest.fields = proto3.util.newFieldList(() => [
|
|
|
768
772
|
{ no: 4, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
769
773
|
{ no: 5, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
770
774
|
{ no: 6, name: "include_plans", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
775
|
+
{ no: 7, name: "filter_transaction_types", kind: "enum", T: proto3.getEnumType(TransactionTypeFilter), repeated: true },
|
|
771
776
|
]);
|
|
772
777
|
/**
|
|
773
778
|
* @generated from message data.v1.FiatOnRampParams
|
|
@@ -224,6 +224,77 @@ export declare enum OnChainTransactionLabel {
|
|
|
224
224
|
*/
|
|
225
225
|
DECREASE_LIQUIDITY = 26
|
|
226
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* @generated from enum data.v1.TransactionTypeFilter
|
|
229
|
+
*/
|
|
230
|
+
export declare enum TransactionTypeFilter {
|
|
231
|
+
/**
|
|
232
|
+
* All types (no filter)
|
|
233
|
+
*
|
|
234
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_UNSPECIFIED = 0;
|
|
235
|
+
*/
|
|
236
|
+
UNSPECIFIED = 0,
|
|
237
|
+
/**
|
|
238
|
+
* Swaps (includes UniswapX, excludes wrap/unwrap)
|
|
239
|
+
*
|
|
240
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_SWAP = 1;
|
|
241
|
+
*/
|
|
242
|
+
SWAP = 1,
|
|
243
|
+
/**
|
|
244
|
+
* Sends
|
|
245
|
+
*
|
|
246
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_SEND = 2;
|
|
247
|
+
*/
|
|
248
|
+
SEND = 2,
|
|
249
|
+
/**
|
|
250
|
+
* Receives
|
|
251
|
+
*
|
|
252
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_RECEIVE = 3;
|
|
253
|
+
*/
|
|
254
|
+
RECEIVE = 3,
|
|
255
|
+
/**
|
|
256
|
+
* Wraps (includes both wrap and unwrap)
|
|
257
|
+
*
|
|
258
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_WRAP = 4;
|
|
259
|
+
*/
|
|
260
|
+
WRAP = 4,
|
|
261
|
+
/**
|
|
262
|
+
* Approvals
|
|
263
|
+
*
|
|
264
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_APPROVE = 5;
|
|
265
|
+
*/
|
|
266
|
+
APPROVE = 5,
|
|
267
|
+
/**
|
|
268
|
+
* Added liquidity (Uniswap deposits)
|
|
269
|
+
*
|
|
270
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_INCREASE_LIQUIDITY = 6;
|
|
271
|
+
*/
|
|
272
|
+
INCREASE_LIQUIDITY = 6,
|
|
273
|
+
/**
|
|
274
|
+
* Removed liquidity (Uniswap withdrawals)
|
|
275
|
+
*
|
|
276
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_DECREASE_LIQUIDITY = 7;
|
|
277
|
+
*/
|
|
278
|
+
DECREASE_LIQUIDITY = 7,
|
|
279
|
+
/**
|
|
280
|
+
* Claimed fees/rewards
|
|
281
|
+
*
|
|
282
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_CLAIM = 8;
|
|
283
|
+
*/
|
|
284
|
+
CLAIM = 8,
|
|
285
|
+
/**
|
|
286
|
+
* Mints
|
|
287
|
+
*
|
|
288
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_MINT = 9;
|
|
289
|
+
*/
|
|
290
|
+
MINT = 9,
|
|
291
|
+
/**
|
|
292
|
+
* Pool creations (includes CREATE_PAIR and CREATE_POOL)
|
|
293
|
+
*
|
|
294
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_CREATE_POOL = 10;
|
|
295
|
+
*/
|
|
296
|
+
CREATE_POOL = 10
|
|
297
|
+
}
|
|
227
298
|
/**
|
|
228
299
|
* @generated from enum data.v1.OnChainTransactionStatus
|
|
229
300
|
*/
|
package/dist/data/v1/types_pb.js
CHANGED
|
@@ -299,6 +299,92 @@ proto3.util.setEnumType(OnChainTransactionLabel, "data.v1.OnChainTransactionLabe
|
|
|
299
299
|
{ no: 25, name: "ON_CHAIN_TRANSACTION_LABEL_INCREASE_LIQUIDITY" },
|
|
300
300
|
{ no: 26, name: "ON_CHAIN_TRANSACTION_LABEL_DECREASE_LIQUIDITY" },
|
|
301
301
|
]);
|
|
302
|
+
/**
|
|
303
|
+
* @generated from enum data.v1.TransactionTypeFilter
|
|
304
|
+
*/
|
|
305
|
+
export var TransactionTypeFilter;
|
|
306
|
+
(function (TransactionTypeFilter) {
|
|
307
|
+
/**
|
|
308
|
+
* All types (no filter)
|
|
309
|
+
*
|
|
310
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_UNSPECIFIED = 0;
|
|
311
|
+
*/
|
|
312
|
+
TransactionTypeFilter[TransactionTypeFilter["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
313
|
+
/**
|
|
314
|
+
* Swaps (includes UniswapX, excludes wrap/unwrap)
|
|
315
|
+
*
|
|
316
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_SWAP = 1;
|
|
317
|
+
*/
|
|
318
|
+
TransactionTypeFilter[TransactionTypeFilter["SWAP"] = 1] = "SWAP";
|
|
319
|
+
/**
|
|
320
|
+
* Sends
|
|
321
|
+
*
|
|
322
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_SEND = 2;
|
|
323
|
+
*/
|
|
324
|
+
TransactionTypeFilter[TransactionTypeFilter["SEND"] = 2] = "SEND";
|
|
325
|
+
/**
|
|
326
|
+
* Receives
|
|
327
|
+
*
|
|
328
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_RECEIVE = 3;
|
|
329
|
+
*/
|
|
330
|
+
TransactionTypeFilter[TransactionTypeFilter["RECEIVE"] = 3] = "RECEIVE";
|
|
331
|
+
/**
|
|
332
|
+
* Wraps (includes both wrap and unwrap)
|
|
333
|
+
*
|
|
334
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_WRAP = 4;
|
|
335
|
+
*/
|
|
336
|
+
TransactionTypeFilter[TransactionTypeFilter["WRAP"] = 4] = "WRAP";
|
|
337
|
+
/**
|
|
338
|
+
* Approvals
|
|
339
|
+
*
|
|
340
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_APPROVE = 5;
|
|
341
|
+
*/
|
|
342
|
+
TransactionTypeFilter[TransactionTypeFilter["APPROVE"] = 5] = "APPROVE";
|
|
343
|
+
/**
|
|
344
|
+
* Added liquidity (Uniswap deposits)
|
|
345
|
+
*
|
|
346
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_INCREASE_LIQUIDITY = 6;
|
|
347
|
+
*/
|
|
348
|
+
TransactionTypeFilter[TransactionTypeFilter["INCREASE_LIQUIDITY"] = 6] = "INCREASE_LIQUIDITY";
|
|
349
|
+
/**
|
|
350
|
+
* Removed liquidity (Uniswap withdrawals)
|
|
351
|
+
*
|
|
352
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_DECREASE_LIQUIDITY = 7;
|
|
353
|
+
*/
|
|
354
|
+
TransactionTypeFilter[TransactionTypeFilter["DECREASE_LIQUIDITY"] = 7] = "DECREASE_LIQUIDITY";
|
|
355
|
+
/**
|
|
356
|
+
* Claimed fees/rewards
|
|
357
|
+
*
|
|
358
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_CLAIM = 8;
|
|
359
|
+
*/
|
|
360
|
+
TransactionTypeFilter[TransactionTypeFilter["CLAIM"] = 8] = "CLAIM";
|
|
361
|
+
/**
|
|
362
|
+
* Mints
|
|
363
|
+
*
|
|
364
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_MINT = 9;
|
|
365
|
+
*/
|
|
366
|
+
TransactionTypeFilter[TransactionTypeFilter["MINT"] = 9] = "MINT";
|
|
367
|
+
/**
|
|
368
|
+
* Pool creations (includes CREATE_PAIR and CREATE_POOL)
|
|
369
|
+
*
|
|
370
|
+
* @generated from enum value: TRANSACTION_TYPE_FILTER_CREATE_POOL = 10;
|
|
371
|
+
*/
|
|
372
|
+
TransactionTypeFilter[TransactionTypeFilter["CREATE_POOL"] = 10] = "CREATE_POOL";
|
|
373
|
+
})(TransactionTypeFilter || (TransactionTypeFilter = {}));
|
|
374
|
+
// Retrieve enum metadata with: proto3.getEnumType(TransactionTypeFilter)
|
|
375
|
+
proto3.util.setEnumType(TransactionTypeFilter, "data.v1.TransactionTypeFilter", [
|
|
376
|
+
{ no: 0, name: "TRANSACTION_TYPE_FILTER_UNSPECIFIED" },
|
|
377
|
+
{ no: 1, name: "TRANSACTION_TYPE_FILTER_SWAP" },
|
|
378
|
+
{ no: 2, name: "TRANSACTION_TYPE_FILTER_SEND" },
|
|
379
|
+
{ no: 3, name: "TRANSACTION_TYPE_FILTER_RECEIVE" },
|
|
380
|
+
{ no: 4, name: "TRANSACTION_TYPE_FILTER_WRAP" },
|
|
381
|
+
{ no: 5, name: "TRANSACTION_TYPE_FILTER_APPROVE" },
|
|
382
|
+
{ no: 6, name: "TRANSACTION_TYPE_FILTER_INCREASE_LIQUIDITY" },
|
|
383
|
+
{ no: 7, name: "TRANSACTION_TYPE_FILTER_DECREASE_LIQUIDITY" },
|
|
384
|
+
{ no: 8, name: "TRANSACTION_TYPE_FILTER_CLAIM" },
|
|
385
|
+
{ no: 9, name: "TRANSACTION_TYPE_FILTER_MINT" },
|
|
386
|
+
{ no: 10, name: "TRANSACTION_TYPE_FILTER_CREATE_POOL" },
|
|
387
|
+
]);
|
|
302
388
|
/**
|
|
303
389
|
* @generated from enum data.v1.OnChainTransactionStatus
|
|
304
390
|
*/
|