@uniswap/client-data-api 0.0.43 → 0.0.45

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 { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetCheckpointsRequest, GetCheckpointsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse, ListTopAuctionsRequest, ListTopAuctionsResponse } from "./auction_pb.js";
2
+ import { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetCheckpointsForBidRequest, GetCheckpointsForBidResponse, GetCheckpointsRequest, GetCheckpointsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse, ListTopAuctionsRequest, ListTopAuctionsResponse } from "./auction_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v1.AuctionService.GetBidsByWallet
5
5
  */
@@ -104,3 +104,16 @@ export declare const listTopAuctions: {
104
104
  readonly typeName: "data.v1.AuctionService";
105
105
  };
106
106
  };
107
+ /**
108
+ * @generated from rpc data.v1.AuctionService.GetCheckpointsForBid
109
+ */
110
+ export declare const getCheckpointsForBid: {
111
+ readonly localName: "getCheckpointsForBid";
112
+ readonly name: "GetCheckpointsForBid";
113
+ readonly kind: MethodKind.Unary;
114
+ readonly I: typeof GetCheckpointsForBidRequest;
115
+ readonly O: typeof GetCheckpointsForBidResponse;
116
+ readonly service: {
117
+ readonly typeName: "data.v1.AuctionService";
118
+ };
119
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetCheckpointsRequest, GetCheckpointsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse, ListTopAuctionsRequest, ListTopAuctionsResponse } from "./auction_pb.js";
6
+ import { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetCheckpointsForBidRequest, GetCheckpointsForBidResponse, GetCheckpointsRequest, GetCheckpointsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse, ListTopAuctionsRequest, ListTopAuctionsResponse } from "./auction_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v1.AuctionService.GetBidsByWallet
9
9
  */
@@ -108,3 +108,16 @@ export const listTopAuctions = {
108
108
  typeName: "data.v1.AuctionService"
109
109
  }
110
110
  };
111
+ /**
112
+ * @generated from rpc data.v1.AuctionService.GetCheckpointsForBid
113
+ */
114
+ export const getCheckpointsForBid = {
115
+ localName: "getCheckpointsForBid",
116
+ name: "GetCheckpointsForBid",
117
+ kind: MethodKind.Unary,
118
+ I: GetCheckpointsForBidRequest,
119
+ O: GetCheckpointsForBidResponse,
120
+ service: {
121
+ typeName: "data.v1.AuctionService"
122
+ }
123
+ };
@@ -1,4 +1,4 @@
1
- import { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetCheckpointsRequest, GetCheckpointsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse, ListTopAuctionsRequest, ListTopAuctionsResponse } from "./auction_pb.js";
1
+ import { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetCheckpointsForBidRequest, GetCheckpointsForBidResponse, GetCheckpointsRequest, GetCheckpointsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse, ListTopAuctionsRequest, ListTopAuctionsResponse } from "./auction_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service data.v1.AuctionService
@@ -78,5 +78,14 @@ export declare const AuctionService: {
78
78
  readonly O: typeof ListTopAuctionsResponse;
79
79
  readonly kind: MethodKind.Unary;
80
80
  };
81
+ /**
82
+ * @generated from rpc data.v1.AuctionService.GetCheckpointsForBid
83
+ */
84
+ readonly getCheckpointsForBid: {
85
+ readonly name: "GetCheckpointsForBid";
86
+ readonly I: typeof GetCheckpointsForBidRequest;
87
+ readonly O: typeof GetCheckpointsForBidResponse;
88
+ readonly kind: MethodKind.Unary;
89
+ };
81
90
  };
82
91
  };
@@ -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 { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetCheckpointsRequest, GetCheckpointsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse, ListTopAuctionsRequest, ListTopAuctionsResponse } from "./auction_pb.js";
5
+ import { GetAuctionActivityRequest, GetAuctionActivityResponse, GetAuctionRequest, GetAuctionResponse, GetBidsByWalletRequest, GetBidsByWalletResponse, GetBidsRequest, GetBidsResponse, GetCheckpointsForBidRequest, GetCheckpointsForBidResponse, GetCheckpointsRequest, GetCheckpointsResponse, GetClearingPriceHistoryRequest, GetClearingPriceHistoryResponse, GetLatestCheckpointRequest, GetLatestCheckpointResponse, ListTopAuctionsRequest, ListTopAuctionsResponse } from "./auction_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service data.v1.AuctionService
@@ -82,5 +82,14 @@ export const AuctionService = {
82
82
  O: ListTopAuctionsResponse,
83
83
  kind: MethodKind.Unary,
84
84
  },
85
+ /**
86
+ * @generated from rpc data.v1.AuctionService.GetCheckpointsForBid
87
+ */
88
+ getCheckpointsForBid: {
89
+ name: "GetCheckpointsForBid",
90
+ I: GetCheckpointsForBidRequest,
91
+ O: GetCheckpointsForBidResponse,
92
+ kind: MethodKind.Unary,
93
+ },
85
94
  }
86
95
  };
@@ -325,6 +325,10 @@ export declare class Auction extends Message<Auction> {
325
325
  * @generated from field: repeated data.v1.AuctionStep parsed_auction_steps = 25;
326
326
  */
327
327
  parsedAuctionSteps: AuctionStep[];
328
+ /**
329
+ * @generated from field: optional string total_bid_volume = 26;
330
+ */
331
+ totalBidVolume?: string;
328
332
  constructor(data?: PartialMessage<Auction>);
329
333
  static readonly runtime: typeof proto3;
330
334
  static readonly typeName = "data.v1.Auction";
@@ -430,11 +434,13 @@ export declare class Checkpoint extends Message<Checkpoint> {
430
434
  */
431
435
  cumulativeMps: number;
432
436
  /**
433
- * @generated from field: int32 total_bid_count = 5;
437
+ * @generated from field: int32 total_bid_count = 5 [deprecated = true];
438
+ * @deprecated
434
439
  */
435
440
  totalBidCount: number;
436
441
  /**
437
- * @generated from field: string currency_raised = 6;
442
+ * @generated from field: string currency_raised = 6 [deprecated = true];
443
+ * @deprecated
438
444
  */
439
445
  currencyRaised: string;
440
446
  /**
@@ -472,7 +478,8 @@ export declare class Checkpoint extends Message<Checkpoint> {
472
478
  /**
473
479
  * bigint as string - total tokens cleared
474
480
  *
475
- * @generated from field: string total_cleared = 13;
481
+ * @generated from field: string total_cleared = 13 [deprecated = true];
482
+ * @deprecated
476
483
  */
477
484
  totalCleared: string;
478
485
  constructor(data?: PartialMessage<Checkpoint>);
@@ -494,6 +501,22 @@ export declare class GetLatestCheckpointResponse extends Message<GetLatestCheckp
494
501
  * @generated from field: data.v1.Checkpoint checkpoint = 1;
495
502
  */
496
503
  checkpoint?: Checkpoint;
504
+ /**
505
+ * @generated from field: data.v1.Checkpoint simulated_checkpoint = 2;
506
+ */
507
+ simulatedCheckpoint?: Checkpoint;
508
+ /**
509
+ * @generated from field: int32 total_bid_count = 3;
510
+ */
511
+ totalBidCount: number;
512
+ /**
513
+ * @generated from field: string currency_raised = 4;
514
+ */
515
+ currencyRaised: string;
516
+ /**
517
+ * @generated from field: string total_cleared = 5;
518
+ */
519
+ totalCleared: string;
497
520
  constructor(data?: PartialMessage<GetLatestCheckpointResponse>);
498
521
  static readonly runtime: typeof proto3;
499
522
  static readonly typeName = "data.v1.GetLatestCheckpointResponse";
@@ -743,9 +766,10 @@ export declare class AuctionWithStats extends Message<AuctionWithStats> {
743
766
  */
744
767
  auction?: Auction;
745
768
  /**
746
- * Sum of all bid volumes (numeric as string)
769
+ * DEPRECATED: Use auction.total_bid_volume instead. This field is maintained for backwards compatibility only.
747
770
  *
748
- * @generated from field: string total_bid_volume = 2;
771
+ * @generated from field: string total_bid_volume = 2 [deprecated = true];
772
+ * @deprecated
749
773
  */
750
774
  totalBidVolume: string;
751
775
  constructor(data?: PartialMessage<AuctionWithStats>);
@@ -776,3 +800,53 @@ export declare class ListTopAuctionsResponse extends Message<ListTopAuctionsResp
776
800
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTopAuctionsResponse;
777
801
  static equals(a: ListTopAuctionsResponse | PlainMessage<ListTopAuctionsResponse> | undefined, b: ListTopAuctionsResponse | PlainMessage<ListTopAuctionsResponse> | undefined): boolean;
778
802
  }
803
+ /**
804
+ * @generated from message data.v1.GetCheckpointsForBidRequest
805
+ */
806
+ export declare class GetCheckpointsForBidRequest extends Message<GetCheckpointsForBidRequest> {
807
+ /**
808
+ * @generated from field: string bid_id = 1;
809
+ */
810
+ bidId: string;
811
+ /**
812
+ * @generated from field: int32 chain_id = 2;
813
+ */
814
+ chainId: number;
815
+ /**
816
+ * @generated from field: string auction_address = 3;
817
+ */
818
+ auctionAddress: string;
819
+ /**
820
+ * @generated from field: string bid_price = 4;
821
+ */
822
+ bidPrice: string;
823
+ constructor(data?: PartialMessage<GetCheckpointsForBidRequest>);
824
+ static readonly runtime: typeof proto3;
825
+ static readonly typeName = "data.v1.GetCheckpointsForBidRequest";
826
+ static readonly fields: FieldList;
827
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetCheckpointsForBidRequest;
828
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetCheckpointsForBidRequest;
829
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetCheckpointsForBidRequest;
830
+ static equals(a: GetCheckpointsForBidRequest | PlainMessage<GetCheckpointsForBidRequest> | undefined, b: GetCheckpointsForBidRequest | PlainMessage<GetCheckpointsForBidRequest> | undefined): boolean;
831
+ }
832
+ /**
833
+ * @generated from message data.v1.GetCheckpointsForBidResponse
834
+ */
835
+ export declare class GetCheckpointsForBidResponse extends Message<GetCheckpointsForBidResponse> {
836
+ /**
837
+ * @generated from field: data.v1.Checkpoint checkpoint_A = 1;
838
+ */
839
+ checkpointA?: Checkpoint;
840
+ /**
841
+ * @generated from field: optional data.v1.Checkpoint checkpoint_B = 2;
842
+ */
843
+ checkpointB?: Checkpoint;
844
+ constructor(data?: PartialMessage<GetCheckpointsForBidResponse>);
845
+ static readonly runtime: typeof proto3;
846
+ static readonly typeName = "data.v1.GetCheckpointsForBidResponse";
847
+ static readonly fields: FieldList;
848
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetCheckpointsForBidResponse;
849
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetCheckpointsForBidResponse;
850
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetCheckpointsForBidResponse;
851
+ static equals(a: GetCheckpointsForBidResponse | PlainMessage<GetCheckpointsForBidResponse> | undefined, b: GetCheckpointsForBidResponse | PlainMessage<GetCheckpointsForBidResponse> | undefined): boolean;
852
+ }
@@ -471,6 +471,7 @@ Auction.fields = proto3.util.newFieldList(() => [
471
471
  { no: 23, name: "auction_steps_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
472
472
  { no: 24, name: "token_total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
473
473
  { no: 25, name: "parsed_auction_steps", kind: "message", T: AuctionStep, repeated: true },
474
+ { no: 26, name: "total_bid_volume", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
474
475
  ]);
475
476
  /**
476
477
  * Response containing auctions.
@@ -612,17 +613,20 @@ export class Checkpoint extends Message {
612
613
  */
613
614
  this.cumulativeMps = 0;
614
615
  /**
615
- * @generated from field: int32 total_bid_count = 5;
616
+ * @generated from field: int32 total_bid_count = 5 [deprecated = true];
617
+ * @deprecated
616
618
  */
617
619
  this.totalBidCount = 0;
618
620
  /**
619
- * @generated from field: string currency_raised = 6;
621
+ * @generated from field: string currency_raised = 6 [deprecated = true];
622
+ * @deprecated
620
623
  */
621
624
  this.currencyRaised = "";
622
625
  /**
623
626
  * bigint as string - total tokens cleared
624
627
  *
625
- * @generated from field: string total_cleared = 13;
628
+ * @generated from field: string total_cleared = 13 [deprecated = true];
629
+ * @deprecated
626
630
  */
627
631
  this.totalCleared = "";
628
632
  proto3.util.initPartial(data, this);
@@ -665,6 +669,18 @@ Checkpoint.fields = proto3.util.newFieldList(() => [
665
669
  export class GetLatestCheckpointResponse extends Message {
666
670
  constructor(data) {
667
671
  super();
672
+ /**
673
+ * @generated from field: int32 total_bid_count = 3;
674
+ */
675
+ this.totalBidCount = 0;
676
+ /**
677
+ * @generated from field: string currency_raised = 4;
678
+ */
679
+ this.currencyRaised = "";
680
+ /**
681
+ * @generated from field: string total_cleared = 5;
682
+ */
683
+ this.totalCleared = "";
668
684
  proto3.util.initPartial(data, this);
669
685
  }
670
686
  static fromBinary(bytes, options) {
@@ -684,6 +700,10 @@ GetLatestCheckpointResponse.runtime = proto3;
684
700
  GetLatestCheckpointResponse.typeName = "data.v1.GetLatestCheckpointResponse";
685
701
  GetLatestCheckpointResponse.fields = proto3.util.newFieldList(() => [
686
702
  { no: 1, name: "checkpoint", kind: "message", T: Checkpoint },
703
+ { no: 2, name: "simulated_checkpoint", kind: "message", T: Checkpoint },
704
+ { no: 3, name: "total_bid_count", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
705
+ { no: 4, name: "currency_raised", kind: "scalar", T: 9 /* ScalarType.STRING */ },
706
+ { no: 5, name: "total_cleared", kind: "scalar", T: 9 /* ScalarType.STRING */ },
687
707
  ]);
688
708
  /**
689
709
  * Request to fetch clearing price history for an auction.
@@ -1053,9 +1073,10 @@ export class AuctionWithStats extends Message {
1053
1073
  constructor(data) {
1054
1074
  super();
1055
1075
  /**
1056
- * Sum of all bid volumes (numeric as string)
1076
+ * DEPRECATED: Use auction.total_bid_volume instead. This field is maintained for backwards compatibility only.
1057
1077
  *
1058
- * @generated from field: string total_bid_volume = 2;
1078
+ * @generated from field: string total_bid_volume = 2 [deprecated = true];
1079
+ * @deprecated
1059
1080
  */
1060
1081
  this.totalBidVolume = "";
1061
1082
  proto3.util.initPartial(data, this);
@@ -1111,3 +1132,75 @@ ListTopAuctionsResponse.typeName = "data.v1.ListTopAuctionsResponse";
1111
1132
  ListTopAuctionsResponse.fields = proto3.util.newFieldList(() => [
1112
1133
  { no: 1, name: "auctions", kind: "message", T: AuctionWithStats, repeated: true },
1113
1134
  ]);
1135
+ /**
1136
+ * @generated from message data.v1.GetCheckpointsForBidRequest
1137
+ */
1138
+ export class GetCheckpointsForBidRequest extends Message {
1139
+ constructor(data) {
1140
+ super();
1141
+ /**
1142
+ * @generated from field: string bid_id = 1;
1143
+ */
1144
+ this.bidId = "";
1145
+ /**
1146
+ * @generated from field: int32 chain_id = 2;
1147
+ */
1148
+ this.chainId = 0;
1149
+ /**
1150
+ * @generated from field: string auction_address = 3;
1151
+ */
1152
+ this.auctionAddress = "";
1153
+ /**
1154
+ * @generated from field: string bid_price = 4;
1155
+ */
1156
+ this.bidPrice = "";
1157
+ proto3.util.initPartial(data, this);
1158
+ }
1159
+ static fromBinary(bytes, options) {
1160
+ return new GetCheckpointsForBidRequest().fromBinary(bytes, options);
1161
+ }
1162
+ static fromJson(jsonValue, options) {
1163
+ return new GetCheckpointsForBidRequest().fromJson(jsonValue, options);
1164
+ }
1165
+ static fromJsonString(jsonString, options) {
1166
+ return new GetCheckpointsForBidRequest().fromJsonString(jsonString, options);
1167
+ }
1168
+ static equals(a, b) {
1169
+ return proto3.util.equals(GetCheckpointsForBidRequest, a, b);
1170
+ }
1171
+ }
1172
+ GetCheckpointsForBidRequest.runtime = proto3;
1173
+ GetCheckpointsForBidRequest.typeName = "data.v1.GetCheckpointsForBidRequest";
1174
+ GetCheckpointsForBidRequest.fields = proto3.util.newFieldList(() => [
1175
+ { no: 1, name: "bid_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1176
+ { no: 2, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1177
+ { no: 3, name: "auction_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1178
+ { no: 4, name: "bid_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1179
+ ]);
1180
+ /**
1181
+ * @generated from message data.v1.GetCheckpointsForBidResponse
1182
+ */
1183
+ export class GetCheckpointsForBidResponse extends Message {
1184
+ constructor(data) {
1185
+ super();
1186
+ proto3.util.initPartial(data, this);
1187
+ }
1188
+ static fromBinary(bytes, options) {
1189
+ return new GetCheckpointsForBidResponse().fromBinary(bytes, options);
1190
+ }
1191
+ static fromJson(jsonValue, options) {
1192
+ return new GetCheckpointsForBidResponse().fromJson(jsonValue, options);
1193
+ }
1194
+ static fromJsonString(jsonString, options) {
1195
+ return new GetCheckpointsForBidResponse().fromJsonString(jsonString, options);
1196
+ }
1197
+ static equals(a, b) {
1198
+ return proto3.util.equals(GetCheckpointsForBidResponse, a, b);
1199
+ }
1200
+ }
1201
+ GetCheckpointsForBidResponse.runtime = proto3;
1202
+ GetCheckpointsForBidResponse.typeName = "data.v1.GetCheckpointsForBidResponse";
1203
+ GetCheckpointsForBidResponse.fields = proto3.util.newFieldList(() => [
1204
+ { no: 1, name: "checkpoint_A", kind: "message", T: Checkpoint },
1205
+ { no: 2, name: "checkpoint_B", kind: "message", T: Checkpoint, opt: true },
1206
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.43",
3
+ "version": "0.0.45",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },