@uniswap/client-data-api 0.0.28 → 0.0.30

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,4 +1,4 @@
1
- // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
2
2
  // @generated from file data/v1/api.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file data/v1/api.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file data/v1/api.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
2
+ import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v1.AuctionService.GetBidsByWallet
5
5
  */
@@ -39,3 +39,16 @@ export declare const getAuction: {
39
39
  readonly typeName: "data.v1.AuctionService";
40
40
  };
41
41
  };
42
+ /**
43
+ * @generated from rpc data.v1.AuctionService.GetLatestCheckpoint
44
+ */
45
+ export declare const getLatestCheckpoint: {
46
+ readonly localName: "getLatestCheckpoint";
47
+ readonly name: "GetLatestCheckpoint";
48
+ readonly kind: MethodKind.Unary;
49
+ readonly I: typeof GetLatestCheckpointRequest;
50
+ readonly O: typeof GetLatestCheckpointResponse;
51
+ readonly service: {
52
+ readonly typeName: "data.v1.AuctionService";
53
+ };
54
+ };
@@ -1,9 +1,9 @@
1
- // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
2
2
  // @generated from file data/v1/auction.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
6
+ import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v1.AuctionService.GetBidsByWallet
9
9
  */
@@ -43,3 +43,16 @@ export const getAuction = {
43
43
  typeName: "data.v1.AuctionService"
44
44
  }
45
45
  };
46
+ /**
47
+ * @generated from rpc data.v1.AuctionService.GetLatestCheckpoint
48
+ */
49
+ export const getLatestCheckpoint = {
50
+ localName: "getLatestCheckpoint",
51
+ name: "GetLatestCheckpoint",
52
+ kind: MethodKind.Unary,
53
+ I: GetLatestCheckpointRequest,
54
+ O: GetLatestCheckpointResponse,
55
+ service: {
56
+ typeName: "data.v1.AuctionService"
57
+ }
58
+ };
@@ -1,4 +1,4 @@
1
- import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
1
+ import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service data.v1.AuctionService
@@ -33,5 +33,14 @@ export declare const AuctionService: {
33
33
  readonly O: typeof GetAuctionResponse;
34
34
  readonly kind: MethodKind.Unary;
35
35
  };
36
+ /**
37
+ * @generated from rpc data.v1.AuctionService.GetLatestCheckpoint
38
+ */
39
+ readonly getLatestCheckpoint: {
40
+ readonly name: "GetLatestCheckpoint";
41
+ readonly I: typeof GetLatestCheckpointRequest;
42
+ readonly O: typeof GetLatestCheckpointResponse;
43
+ readonly kind: MethodKind.Unary;
44
+ };
36
45
  };
37
46
  };
@@ -1,8 +1,8 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file data/v1/auction.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse } from "./auction_pb.js";
5
+ import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service data.v1.AuctionService
@@ -37,5 +37,14 @@ export const AuctionService = {
37
37
  O: GetAuctionResponse,
38
38
  kind: MethodKind.Unary,
39
39
  },
40
+ /**
41
+ * @generated from rpc data.v1.AuctionService.GetLatestCheckpoint
42
+ */
43
+ getLatestCheckpoint: {
44
+ name: "GetLatestCheckpoint",
45
+ I: GetLatestCheckpointRequest,
46
+ O: GetLatestCheckpointResponse,
47
+ kind: MethodKind.Unary,
48
+ },
40
49
  }
41
50
  };
@@ -313,6 +313,12 @@ export declare class Auction extends Message<Auction> {
313
313
  * @generated from field: string auction_steps_data = 23;
314
314
  */
315
315
  auctionStepsData: string;
316
+ /**
317
+ * null if error on rpc call
318
+ *
319
+ * @generated from field: optional string token_total_supply = 24;
320
+ */
321
+ tokenTotalSupply?: string;
316
322
  constructor(data?: PartialMessage<Auction>);
317
323
  static readonly runtime: typeof proto3;
318
324
  static readonly typeName = "data.v1.Auction";
@@ -341,3 +347,80 @@ export declare class GetAuctionResponse extends Message<GetAuctionResponse> {
341
347
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetAuctionResponse;
342
348
  static equals(a: GetAuctionResponse | PlainMessage<GetAuctionResponse> | undefined, b: GetAuctionResponse | PlainMessage<GetAuctionResponse> | undefined): boolean;
343
349
  }
350
+ /**
351
+ * Request to fetch the latest checkpoint for an auction.
352
+ *
353
+ * @generated from message data.v1.GetLatestCheckpointRequest
354
+ */
355
+ export declare class GetLatestCheckpointRequest extends Message<GetLatestCheckpointRequest> {
356
+ /**
357
+ * @generated from field: int32 chain_id = 1;
358
+ */
359
+ chainId: number;
360
+ /**
361
+ * @generated from field: string address = 2;
362
+ */
363
+ address: string;
364
+ constructor(data?: PartialMessage<GetLatestCheckpointRequest>);
365
+ static readonly runtime: typeof proto3;
366
+ static readonly typeName = "data.v1.GetLatestCheckpointRequest";
367
+ static readonly fields: FieldList;
368
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetLatestCheckpointRequest;
369
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetLatestCheckpointRequest;
370
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLatestCheckpointRequest;
371
+ static equals(a: GetLatestCheckpointRequest | PlainMessage<GetLatestCheckpointRequest> | undefined, b: GetLatestCheckpointRequest | PlainMessage<GetLatestCheckpointRequest> | undefined): boolean;
372
+ }
373
+ /**
374
+ * A checkpoint for an auction.
375
+ *
376
+ * @generated from message data.v1.Checkpoint
377
+ */
378
+ export declare class Checkpoint extends Message<Checkpoint> {
379
+ /**
380
+ * @generated from field: string clearing_price = 1;
381
+ */
382
+ clearingPrice: string;
383
+ /**
384
+ * @generated from field: string currency_raised_at_clearing_price_q96_x7 = 2;
385
+ */
386
+ currencyRaisedAtClearingPriceQ96X7: string;
387
+ /**
388
+ * @generated from field: string cumulative_mps_per_price = 3;
389
+ */
390
+ cumulativeMpsPerPrice: string;
391
+ /**
392
+ * @generated from field: int32 cumulative_mps = 4;
393
+ */
394
+ cumulativeMps: number;
395
+ /**
396
+ * @generated from field: int32 total_bid_count = 5;
397
+ */
398
+ totalBidCount: number;
399
+ constructor(data?: PartialMessage<Checkpoint>);
400
+ static readonly runtime: typeof proto3;
401
+ static readonly typeName = "data.v1.Checkpoint";
402
+ static readonly fields: FieldList;
403
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Checkpoint;
404
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Checkpoint;
405
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Checkpoint;
406
+ static equals(a: Checkpoint | PlainMessage<Checkpoint> | undefined, b: Checkpoint | PlainMessage<Checkpoint> | undefined): boolean;
407
+ }
408
+ /**
409
+ * Response containing the latest checkpoint.
410
+ *
411
+ * @generated from message data.v1.GetLatestCheckpointResponse
412
+ */
413
+ export declare class GetLatestCheckpointResponse extends Message<GetLatestCheckpointResponse> {
414
+ /**
415
+ * @generated from field: data.v1.Checkpoint checkpoint = 1;
416
+ */
417
+ checkpoint?: Checkpoint;
418
+ constructor(data?: PartialMessage<GetLatestCheckpointResponse>);
419
+ static readonly runtime: typeof proto3;
420
+ static readonly typeName = "data.v1.GetLatestCheckpointResponse";
421
+ static readonly fields: FieldList;
422
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetLatestCheckpointResponse;
423
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetLatestCheckpointResponse;
424
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLatestCheckpointResponse;
425
+ static equals(a: GetLatestCheckpointResponse | PlainMessage<GetLatestCheckpointResponse> | undefined, b: GetLatestCheckpointResponse | PlainMessage<GetLatestCheckpointResponse> | undefined): boolean;
426
+ }
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file data/v1/auction.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -463,6 +463,7 @@ Auction.fields = proto3.util.newFieldList(() => [
463
463
  { no: 21, name: "floor_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
464
464
  { no: 22, name: "required_currency_raised", kind: "scalar", T: 9 /* ScalarType.STRING */ },
465
465
  { no: 23, name: "auction_steps_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
466
+ { no: 24, name: "token_total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
466
467
  ]);
467
468
  /**
468
469
  * Response containing auctions.
@@ -496,3 +497,120 @@ GetAuctionResponse.typeName = "data.v1.GetAuctionResponse";
496
497
  GetAuctionResponse.fields = proto3.util.newFieldList(() => [
497
498
  { no: 1, name: "auctions", kind: "message", T: Auction, repeated: true },
498
499
  ]);
500
+ /**
501
+ * Request to fetch the latest checkpoint for an auction.
502
+ *
503
+ * @generated from message data.v1.GetLatestCheckpointRequest
504
+ */
505
+ export class GetLatestCheckpointRequest extends Message {
506
+ constructor(data) {
507
+ super();
508
+ /**
509
+ * @generated from field: int32 chain_id = 1;
510
+ */
511
+ this.chainId = 0;
512
+ /**
513
+ * @generated from field: string address = 2;
514
+ */
515
+ this.address = "";
516
+ proto3.util.initPartial(data, this);
517
+ }
518
+ static fromBinary(bytes, options) {
519
+ return new GetLatestCheckpointRequest().fromBinary(bytes, options);
520
+ }
521
+ static fromJson(jsonValue, options) {
522
+ return new GetLatestCheckpointRequest().fromJson(jsonValue, options);
523
+ }
524
+ static fromJsonString(jsonString, options) {
525
+ return new GetLatestCheckpointRequest().fromJsonString(jsonString, options);
526
+ }
527
+ static equals(a, b) {
528
+ return proto3.util.equals(GetLatestCheckpointRequest, a, b);
529
+ }
530
+ }
531
+ GetLatestCheckpointRequest.runtime = proto3;
532
+ GetLatestCheckpointRequest.typeName = "data.v1.GetLatestCheckpointRequest";
533
+ GetLatestCheckpointRequest.fields = proto3.util.newFieldList(() => [
534
+ { no: 1, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
535
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
536
+ ]);
537
+ /**
538
+ * A checkpoint for an auction.
539
+ *
540
+ * @generated from message data.v1.Checkpoint
541
+ */
542
+ export class Checkpoint extends Message {
543
+ constructor(data) {
544
+ super();
545
+ /**
546
+ * @generated from field: string clearing_price = 1;
547
+ */
548
+ this.clearingPrice = "";
549
+ /**
550
+ * @generated from field: string currency_raised_at_clearing_price_q96_x7 = 2;
551
+ */
552
+ this.currencyRaisedAtClearingPriceQ96X7 = "";
553
+ /**
554
+ * @generated from field: string cumulative_mps_per_price = 3;
555
+ */
556
+ this.cumulativeMpsPerPrice = "";
557
+ /**
558
+ * @generated from field: int32 cumulative_mps = 4;
559
+ */
560
+ this.cumulativeMps = 0;
561
+ /**
562
+ * @generated from field: int32 total_bid_count = 5;
563
+ */
564
+ this.totalBidCount = 0;
565
+ proto3.util.initPartial(data, this);
566
+ }
567
+ static fromBinary(bytes, options) {
568
+ return new Checkpoint().fromBinary(bytes, options);
569
+ }
570
+ static fromJson(jsonValue, options) {
571
+ return new Checkpoint().fromJson(jsonValue, options);
572
+ }
573
+ static fromJsonString(jsonString, options) {
574
+ return new Checkpoint().fromJsonString(jsonString, options);
575
+ }
576
+ static equals(a, b) {
577
+ return proto3.util.equals(Checkpoint, a, b);
578
+ }
579
+ }
580
+ Checkpoint.runtime = proto3;
581
+ Checkpoint.typeName = "data.v1.Checkpoint";
582
+ Checkpoint.fields = proto3.util.newFieldList(() => [
583
+ { no: 1, name: "clearing_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
584
+ { no: 2, name: "currency_raised_at_clearing_price_q96_x7", kind: "scalar", T: 9 /* ScalarType.STRING */ },
585
+ { no: 3, name: "cumulative_mps_per_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
586
+ { no: 4, name: "cumulative_mps", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
587
+ { no: 5, name: "total_bid_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
588
+ ]);
589
+ /**
590
+ * Response containing the latest checkpoint.
591
+ *
592
+ * @generated from message data.v1.GetLatestCheckpointResponse
593
+ */
594
+ export class GetLatestCheckpointResponse extends Message {
595
+ constructor(data) {
596
+ super();
597
+ proto3.util.initPartial(data, this);
598
+ }
599
+ static fromBinary(bytes, options) {
600
+ return new GetLatestCheckpointResponse().fromBinary(bytes, options);
601
+ }
602
+ static fromJson(jsonValue, options) {
603
+ return new GetLatestCheckpointResponse().fromJson(jsonValue, options);
604
+ }
605
+ static fromJsonString(jsonString, options) {
606
+ return new GetLatestCheckpointResponse().fromJsonString(jsonString, options);
607
+ }
608
+ static equals(a, b) {
609
+ return proto3.util.equals(GetLatestCheckpointResponse, a, b);
610
+ }
611
+ }
612
+ GetLatestCheckpointResponse.runtime = proto3;
613
+ GetLatestCheckpointResponse.typeName = "data.v1.GetLatestCheckpointResponse";
614
+ GetLatestCheckpointResponse.fields = proto3.util.newFieldList(() => [
615
+ { no: 1, name: "checkpoint", kind: "message", T: Checkpoint },
616
+ ]);
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file data/v1/plan.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file data/v1/poolTypes.proto (package pools.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file data/v1/reorged_block.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
2
2
  // @generated from file data/v1/search.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file data/v1/searchTypes.proto (package search.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file data/v1/search.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file data/v1/search.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file data/v1/types.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
2
2
  // @generated from file data/v1/workerService.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-connect-es v1.4.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
2
2
  // @generated from file data/v1/workerService.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
@@ -1,4 +1,4 @@
1
- // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
2
2
  // @generated from file data/v1/workerService.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.28",
3
+ "version": "0.0.30",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },