@uniswap/client-data-api 0.0.29 → 0.0.31

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 { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
2
+ import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v1.AuctionService.GetBidsByWallet
5
5
  */
@@ -52,3 +52,16 @@ export declare const getLatestCheckpoint: {
52
52
  readonly typeName: "data.v1.AuctionService";
53
53
  };
54
54
  };
55
+ /**
56
+ * @generated from rpc data.v1.AuctionService.GetClearingPriceHistory
57
+ */
58
+ export declare const getClearingPriceHistory: {
59
+ readonly localName: "getClearingPriceHistory";
60
+ readonly name: "GetClearingPriceHistory";
61
+ readonly kind: MethodKind.Unary;
62
+ readonly I: typeof GetClearingPriceHistoryRequest;
63
+ readonly O: typeof GetClearingPriceHistoryResponse;
64
+ readonly service: {
65
+ readonly typeName: "data.v1.AuctionService";
66
+ };
67
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
6
+ import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v1.AuctionService.GetBidsByWallet
9
9
  */
@@ -56,3 +56,16 @@ export const getLatestCheckpoint = {
56
56
  typeName: "data.v1.AuctionService"
57
57
  }
58
58
  };
59
+ /**
60
+ * @generated from rpc data.v1.AuctionService.GetClearingPriceHistory
61
+ */
62
+ export const getClearingPriceHistory = {
63
+ localName: "getClearingPriceHistory",
64
+ name: "GetClearingPriceHistory",
65
+ kind: MethodKind.Unary,
66
+ I: GetClearingPriceHistoryRequest,
67
+ O: GetClearingPriceHistoryResponse,
68
+ service: {
69
+ typeName: "data.v1.AuctionService"
70
+ }
71
+ };
@@ -1,4 +1,4 @@
1
- import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
1
+ import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service data.v1.AuctionService
@@ -42,5 +42,14 @@ export declare const AuctionService: {
42
42
  readonly O: typeof GetLatestCheckpointResponse;
43
43
  readonly kind: MethodKind.Unary;
44
44
  };
45
+ /**
46
+ * @generated from rpc data.v1.AuctionService.GetClearingPriceHistory
47
+ */
48
+ readonly getClearingPriceHistory: {
49
+ readonly name: "GetClearingPriceHistory";
50
+ readonly I: typeof GetClearingPriceHistoryRequest;
51
+ readonly O: typeof GetClearingPriceHistoryResponse;
52
+ readonly kind: MethodKind.Unary;
53
+ };
45
54
  };
46
55
  };
@@ -2,7 +2,7 @@
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, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
5
+ import { GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse } from "./auction_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service data.v1.AuctionService
@@ -46,5 +46,14 @@ export const AuctionService = {
46
46
  O: GetLatestCheckpointResponse,
47
47
  kind: MethodKind.Unary,
48
48
  },
49
+ /**
50
+ * @generated from rpc data.v1.AuctionService.GetClearingPriceHistory
51
+ */
52
+ getClearingPriceHistory: {
53
+ name: "GetClearingPriceHistory",
54
+ I: GetClearingPriceHistoryRequest,
55
+ O: GetClearingPriceHistoryResponse,
56
+ kind: MethodKind.Unary,
57
+ },
49
58
  }
50
59
  };
@@ -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";
@@ -386,6 +392,10 @@ export declare class Checkpoint extends Message<Checkpoint> {
386
392
  * @generated from field: int32 cumulative_mps = 4;
387
393
  */
388
394
  cumulativeMps: number;
395
+ /**
396
+ * @generated from field: int32 total_bid_count = 5;
397
+ */
398
+ totalBidCount: number;
389
399
  constructor(data?: PartialMessage<Checkpoint>);
390
400
  static readonly runtime: typeof proto3;
391
401
  static readonly typeName = "data.v1.Checkpoint";
@@ -414,3 +424,74 @@ export declare class GetLatestCheckpointResponse extends Message<GetLatestCheckp
414
424
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLatestCheckpointResponse;
415
425
  static equals(a: GetLatestCheckpointResponse | PlainMessage<GetLatestCheckpointResponse> | undefined, b: GetLatestCheckpointResponse | PlainMessage<GetLatestCheckpointResponse> | undefined): boolean;
416
426
  }
427
+ /**
428
+ * Request to fetch clearing price history for an auction.
429
+ *
430
+ * @generated from message data.v1.GetClearingPriceHistoryRequest
431
+ */
432
+ export declare class GetClearingPriceHistoryRequest extends Message<GetClearingPriceHistoryRequest> {
433
+ /**
434
+ * @generated from field: int32 chain_id = 1;
435
+ */
436
+ chainId: number;
437
+ /**
438
+ * @generated from field: string address = 2;
439
+ */
440
+ address: string;
441
+ constructor(data?: PartialMessage<GetClearingPriceHistoryRequest>);
442
+ static readonly runtime: typeof proto3;
443
+ static readonly typeName = "data.v1.GetClearingPriceHistoryRequest";
444
+ static readonly fields: FieldList;
445
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetClearingPriceHistoryRequest;
446
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetClearingPriceHistoryRequest;
447
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetClearingPriceHistoryRequest;
448
+ static equals(a: GetClearingPriceHistoryRequest | PlainMessage<GetClearingPriceHistoryRequest> | undefined, b: GetClearingPriceHistoryRequest | PlainMessage<GetClearingPriceHistoryRequest> | undefined): boolean;
449
+ }
450
+ /**
451
+ * A single clearing price change point.
452
+ *
453
+ * @generated from message data.v1.ClearingPriceChange
454
+ */
455
+ export declare class ClearingPriceChange extends Message<ClearingPriceChange> {
456
+ /**
457
+ * @generated from field: string clearing_price = 1;
458
+ */
459
+ clearingPrice: string;
460
+ /**
461
+ * ISO 8601 timestamp
462
+ *
463
+ * @generated from field: string created_at = 2;
464
+ */
465
+ createdAt: string;
466
+ /**
467
+ * @generated from field: string start_block = 3;
468
+ */
469
+ startBlock: string;
470
+ constructor(data?: PartialMessage<ClearingPriceChange>);
471
+ static readonly runtime: typeof proto3;
472
+ static readonly typeName = "data.v1.ClearingPriceChange";
473
+ static readonly fields: FieldList;
474
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ClearingPriceChange;
475
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ClearingPriceChange;
476
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClearingPriceChange;
477
+ static equals(a: ClearingPriceChange | PlainMessage<ClearingPriceChange> | undefined, b: ClearingPriceChange | PlainMessage<ClearingPriceChange> | undefined): boolean;
478
+ }
479
+ /**
480
+ * Response containing clearing price history.
481
+ *
482
+ * @generated from message data.v1.GetClearingPriceHistoryResponse
483
+ */
484
+ export declare class GetClearingPriceHistoryResponse extends Message<GetClearingPriceHistoryResponse> {
485
+ /**
486
+ * @generated from field: repeated data.v1.ClearingPriceChange changes = 1;
487
+ */
488
+ changes: ClearingPriceChange[];
489
+ constructor(data?: PartialMessage<GetClearingPriceHistoryResponse>);
490
+ static readonly runtime: typeof proto3;
491
+ static readonly typeName = "data.v1.GetClearingPriceHistoryResponse";
492
+ static readonly fields: FieldList;
493
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetClearingPriceHistoryResponse;
494
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetClearingPriceHistoryResponse;
495
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetClearingPriceHistoryResponse;
496
+ static equals(a: GetClearingPriceHistoryResponse | PlainMessage<GetClearingPriceHistoryResponse> | undefined, b: GetClearingPriceHistoryResponse | PlainMessage<GetClearingPriceHistoryResponse> | undefined): boolean;
497
+ }
@@ -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.
@@ -557,6 +558,10 @@ export class Checkpoint extends Message {
557
558
  * @generated from field: int32 cumulative_mps = 4;
558
559
  */
559
560
  this.cumulativeMps = 0;
561
+ /**
562
+ * @generated from field: int32 total_bid_count = 5;
563
+ */
564
+ this.totalBidCount = 0;
560
565
  proto3.util.initPartial(data, this);
561
566
  }
562
567
  static fromBinary(bytes, options) {
@@ -579,6 +584,7 @@ Checkpoint.fields = proto3.util.newFieldList(() => [
579
584
  { no: 2, name: "currency_raised_at_clearing_price_q96_x7", kind: "scalar", T: 9 /* ScalarType.STRING */ },
580
585
  { no: 3, name: "cumulative_mps_per_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
581
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 */ },
582
588
  ]);
583
589
  /**
584
590
  * Response containing the latest checkpoint.
@@ -608,3 +614,116 @@ GetLatestCheckpointResponse.typeName = "data.v1.GetLatestCheckpointResponse";
608
614
  GetLatestCheckpointResponse.fields = proto3.util.newFieldList(() => [
609
615
  { no: 1, name: "checkpoint", kind: "message", T: Checkpoint },
610
616
  ]);
617
+ /**
618
+ * Request to fetch clearing price history for an auction.
619
+ *
620
+ * @generated from message data.v1.GetClearingPriceHistoryRequest
621
+ */
622
+ export class GetClearingPriceHistoryRequest extends Message {
623
+ constructor(data) {
624
+ super();
625
+ /**
626
+ * @generated from field: int32 chain_id = 1;
627
+ */
628
+ this.chainId = 0;
629
+ /**
630
+ * @generated from field: string address = 2;
631
+ */
632
+ this.address = "";
633
+ proto3.util.initPartial(data, this);
634
+ }
635
+ static fromBinary(bytes, options) {
636
+ return new GetClearingPriceHistoryRequest().fromBinary(bytes, options);
637
+ }
638
+ static fromJson(jsonValue, options) {
639
+ return new GetClearingPriceHistoryRequest().fromJson(jsonValue, options);
640
+ }
641
+ static fromJsonString(jsonString, options) {
642
+ return new GetClearingPriceHistoryRequest().fromJsonString(jsonString, options);
643
+ }
644
+ static equals(a, b) {
645
+ return proto3.util.equals(GetClearingPriceHistoryRequest, a, b);
646
+ }
647
+ }
648
+ GetClearingPriceHistoryRequest.runtime = proto3;
649
+ GetClearingPriceHistoryRequest.typeName = "data.v1.GetClearingPriceHistoryRequest";
650
+ GetClearingPriceHistoryRequest.fields = proto3.util.newFieldList(() => [
651
+ { no: 1, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
652
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
653
+ ]);
654
+ /**
655
+ * A single clearing price change point.
656
+ *
657
+ * @generated from message data.v1.ClearingPriceChange
658
+ */
659
+ export class ClearingPriceChange extends Message {
660
+ constructor(data) {
661
+ super();
662
+ /**
663
+ * @generated from field: string clearing_price = 1;
664
+ */
665
+ this.clearingPrice = "";
666
+ /**
667
+ * ISO 8601 timestamp
668
+ *
669
+ * @generated from field: string created_at = 2;
670
+ */
671
+ this.createdAt = "";
672
+ /**
673
+ * @generated from field: string start_block = 3;
674
+ */
675
+ this.startBlock = "";
676
+ proto3.util.initPartial(data, this);
677
+ }
678
+ static fromBinary(bytes, options) {
679
+ return new ClearingPriceChange().fromBinary(bytes, options);
680
+ }
681
+ static fromJson(jsonValue, options) {
682
+ return new ClearingPriceChange().fromJson(jsonValue, options);
683
+ }
684
+ static fromJsonString(jsonString, options) {
685
+ return new ClearingPriceChange().fromJsonString(jsonString, options);
686
+ }
687
+ static equals(a, b) {
688
+ return proto3.util.equals(ClearingPriceChange, a, b);
689
+ }
690
+ }
691
+ ClearingPriceChange.runtime = proto3;
692
+ ClearingPriceChange.typeName = "data.v1.ClearingPriceChange";
693
+ ClearingPriceChange.fields = proto3.util.newFieldList(() => [
694
+ { no: 1, name: "clearing_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
695
+ { no: 2, name: "created_at", kind: "scalar", T: 9 /* ScalarType.STRING */ },
696
+ { no: 3, name: "start_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
697
+ ]);
698
+ /**
699
+ * Response containing clearing price history.
700
+ *
701
+ * @generated from message data.v1.GetClearingPriceHistoryResponse
702
+ */
703
+ export class GetClearingPriceHistoryResponse extends Message {
704
+ constructor(data) {
705
+ super();
706
+ /**
707
+ * @generated from field: repeated data.v1.ClearingPriceChange changes = 1;
708
+ */
709
+ this.changes = [];
710
+ proto3.util.initPartial(data, this);
711
+ }
712
+ static fromBinary(bytes, options) {
713
+ return new GetClearingPriceHistoryResponse().fromBinary(bytes, options);
714
+ }
715
+ static fromJson(jsonValue, options) {
716
+ return new GetClearingPriceHistoryResponse().fromJson(jsonValue, options);
717
+ }
718
+ static fromJsonString(jsonString, options) {
719
+ return new GetClearingPriceHistoryResponse().fromJsonString(jsonString, options);
720
+ }
721
+ static equals(a, b) {
722
+ return proto3.util.equals(GetClearingPriceHistoryResponse, a, b);
723
+ }
724
+ }
725
+ GetClearingPriceHistoryResponse.runtime = proto3;
726
+ GetClearingPriceHistoryResponse.typeName = "data.v1.GetClearingPriceHistoryResponse";
727
+ GetClearingPriceHistoryResponse.fields = proto3.util.newFieldList(() => [
728
+ { no: 1, name: "changes", kind: "message", T: ClearingPriceChange, repeated: true },
729
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.29",
3
+ "version": "0.0.31",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },