@uniswap/client-data-api 0.0.40 → 0.0.41

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.
@@ -319,6 +319,12 @@ export declare class Auction extends Message<Auction> {
319
319
  * @generated from field: optional string token_total_supply = 24;
320
320
  */
321
321
  tokenTotalSupply?: string;
322
+ /**
323
+ * Parsed auction steps
324
+ *
325
+ * @generated from field: repeated data.v1.AuctionStep parsed_auction_steps = 25;
326
+ */
327
+ parsedAuctionSteps: AuctionStep[];
322
328
  constructor(data?: PartialMessage<Auction>);
323
329
  static readonly runtime: typeof proto3;
324
330
  static readonly typeName = "data.v1.Auction";
@@ -370,6 +376,37 @@ export declare class GetLatestCheckpointRequest extends Message<GetLatestCheckpo
370
376
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLatestCheckpointRequest;
371
377
  static equals(a: GetLatestCheckpointRequest | PlainMessage<GetLatestCheckpointRequest> | undefined, b: GetLatestCheckpointRequest | PlainMessage<GetLatestCheckpointRequest> | undefined): boolean;
372
378
  }
379
+ /**
380
+ * A single step in the auction's time-weighted pricing curve.
381
+ *
382
+ * @generated from message data.v1.AuctionStep
383
+ */
384
+ export declare class AuctionStep extends Message<AuctionStep> {
385
+ /**
386
+ * @generated from field: uint32 mps = 1;
387
+ */
388
+ mps: number;
389
+ /**
390
+ * Block number when this step begins (inclusive)
391
+ *
392
+ * @generated from field: string start_block = 2;
393
+ */
394
+ startBlock: string;
395
+ /**
396
+ * Block number when this step ends (exclusive)
397
+ *
398
+ * @generated from field: string end_block = 3;
399
+ */
400
+ endBlock: string;
401
+ constructor(data?: PartialMessage<AuctionStep>);
402
+ static readonly runtime: typeof proto3;
403
+ static readonly typeName = "data.v1.AuctionStep";
404
+ static readonly fields: FieldList;
405
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AuctionStep;
406
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AuctionStep;
407
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AuctionStep;
408
+ static equals(a: AuctionStep | PlainMessage<AuctionStep> | undefined, b: AuctionStep | PlainMessage<AuctionStep> | undefined): boolean;
409
+ }
373
410
  /**
374
411
  * A checkpoint for an auction.
375
412
  *
@@ -422,6 +422,12 @@ export class Auction extends Message {
422
422
  * @generated from field: string auction_steps_data = 23;
423
423
  */
424
424
  this.auctionStepsData = "";
425
+ /**
426
+ * Parsed auction steps
427
+ *
428
+ * @generated from field: repeated data.v1.AuctionStep parsed_auction_steps = 25;
429
+ */
430
+ this.parsedAuctionSteps = [];
425
431
  proto3.util.initPartial(data, this);
426
432
  }
427
433
  static fromBinary(bytes, options) {
@@ -464,6 +470,7 @@ Auction.fields = proto3.util.newFieldList(() => [
464
470
  { no: 22, name: "required_currency_raised", kind: "scalar", T: 9 /* ScalarType.STRING */ },
465
471
  { no: 23, name: "auction_steps_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
466
472
  { no: 24, name: "token_total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
473
+ { no: 25, name: "parsed_auction_steps", kind: "message", T: AuctionStep, repeated: true },
467
474
  ]);
468
475
  /**
469
476
  * Response containing auctions.
@@ -534,6 +541,52 @@ GetLatestCheckpointRequest.fields = proto3.util.newFieldList(() => [
534
541
  { no: 1, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
535
542
  { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
536
543
  ]);
544
+ /**
545
+ * A single step in the auction's time-weighted pricing curve.
546
+ *
547
+ * @generated from message data.v1.AuctionStep
548
+ */
549
+ export class AuctionStep extends Message {
550
+ constructor(data) {
551
+ super();
552
+ /**
553
+ * @generated from field: uint32 mps = 1;
554
+ */
555
+ this.mps = 0;
556
+ /**
557
+ * Block number when this step begins (inclusive)
558
+ *
559
+ * @generated from field: string start_block = 2;
560
+ */
561
+ this.startBlock = "";
562
+ /**
563
+ * Block number when this step ends (exclusive)
564
+ *
565
+ * @generated from field: string end_block = 3;
566
+ */
567
+ this.endBlock = "";
568
+ proto3.util.initPartial(data, this);
569
+ }
570
+ static fromBinary(bytes, options) {
571
+ return new AuctionStep().fromBinary(bytes, options);
572
+ }
573
+ static fromJson(jsonValue, options) {
574
+ return new AuctionStep().fromJson(jsonValue, options);
575
+ }
576
+ static fromJsonString(jsonString, options) {
577
+ return new AuctionStep().fromJsonString(jsonString, options);
578
+ }
579
+ static equals(a, b) {
580
+ return proto3.util.equals(AuctionStep, a, b);
581
+ }
582
+ }
583
+ AuctionStep.runtime = proto3;
584
+ AuctionStep.typeName = "data.v1.AuctionStep";
585
+ AuctionStep.fields = proto3.util.newFieldList(() => [
586
+ { no: 1, name: "mps", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
587
+ { no: 2, name: "start_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
588
+ { no: 3, name: "end_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
589
+ ]);
537
590
  /**
538
591
  * A checkpoint for an auction.
539
592
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },