@uniswap/client-data-api 0.0.228 → 0.0.229

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.
@@ -686,6 +686,16 @@ export declare class Auction extends Message<Auction> {
686
686
  * @generated from field: optional string hooks = 56;
687
687
  */
688
688
  hooks?: string;
689
+ /**
690
+ * Badges earned by the auction's token (LP badges), one per badge type,
691
+ * highest tier only, canonical order — the data.v1 twin of
692
+ * data.v2.Launch.badges, because a crowd launch's canonical row on every
693
+ * client surface (list rows AND the token page) is the auction, which a
694
+ * graduated token never leaves. Empty until the token has earned any.
695
+ *
696
+ * @generated from field: repeated data.v1.LaunchBadge badges = 57;
697
+ */
698
+ badges: LaunchBadge[];
689
699
  constructor(data?: PartialMessage<Auction>);
690
700
  static readonly runtime: typeof proto3;
691
701
  static readonly typeName = "data.v1.Auction";
@@ -695,6 +705,56 @@ export declare class Auction extends Message<Auction> {
695
705
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Auction;
696
706
  static equals(a: Auction | PlainMessage<Auction> | undefined, b: Auction | PlainMessage<Auction> | undefined): boolean;
697
707
  }
708
+ /**
709
+ * One badge earned by a launch's token — the data.v1 twin of
710
+ * data.v2.LaunchBadge (data/v1 cannot import data/v2). type/tier are
711
+ * deliberately plain strings, NOT enums: the client contract pins the
712
+ * lowercase ids on the wire, and proto-JSON would serialize an enum's
713
+ * VALUE NAMES instead.
714
+ *
715
+ * @generated from message data.v1.LaunchBadge
716
+ */
717
+ export declare class LaunchBadge extends Message<LaunchBadge> {
718
+ /**
719
+ * "original" | "frontrunner" | "volume" | "holders" | "badger".
720
+ *
721
+ * @generated from field: string type = 1;
722
+ */
723
+ type: string;
724
+ /**
725
+ * Tier id, present only for the tiered types — volume: "5m" | "10m" |
726
+ * "50m"; holders: "100" | "1k" | "10k". Unset for untiered types.
727
+ *
728
+ * @generated from field: optional string tier = 2;
729
+ */
730
+ tier?: string;
731
+ /**
732
+ * When the badge was earned (proto-JSON serializes this as an ISO-8601
733
+ * string, which is the client contract). Exact on-chain launch time for
734
+ * original/frontrunner; observation time for tier crossings.
735
+ *
736
+ * @generated from field: google.protobuf.Timestamp earned_at = 3;
737
+ */
738
+ earnedAt?: Timestamp;
739
+ /**
740
+ * Rarity: percentage (0-100) of eligible tokens that hold this badge
741
+ * TYPE (any tier), for the client's rarity-tag hover. The denominator is
742
+ * every factory-launched token (the launched_tokens registry). Served
743
+ * from a short-TTL cached aggregate; unset when the aggregate is
744
+ * unavailable — clients hide the rarity detail rather than showing 0.
745
+ *
746
+ * @generated from field: optional double holder_percentage = 4;
747
+ */
748
+ holderPercentage?: number;
749
+ constructor(data?: PartialMessage<LaunchBadge>);
750
+ static readonly runtime: typeof proto3;
751
+ static readonly typeName = "data.v1.LaunchBadge";
752
+ static readonly fields: FieldList;
753
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LaunchBadge;
754
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LaunchBadge;
755
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LaunchBadge;
756
+ static equals(a: LaunchBadge | PlainMessage<LaunchBadge> | undefined, b: LaunchBadge | PlainMessage<LaunchBadge> | undefined): boolean;
757
+ }
698
758
  /**
699
759
  * Response containing auctions.
700
760
  *
@@ -632,6 +632,16 @@ export class Auction extends Message {
632
632
  * @generated from field: bool is_blocked = 51;
633
633
  */
634
634
  this.isBlocked = false;
635
+ /**
636
+ * Badges earned by the auction's token (LP badges), one per badge type,
637
+ * highest tier only, canonical order — the data.v1 twin of
638
+ * data.v2.Launch.badges, because a crowd launch's canonical row on every
639
+ * client surface (list rows AND the token page) is the auction, which a
640
+ * graduated token never leaves. Empty until the token has earned any.
641
+ *
642
+ * @generated from field: repeated data.v1.LaunchBadge badges = 57;
643
+ */
644
+ this.badges = [];
635
645
  proto3.util.initPartial(data, this);
636
646
  }
637
647
  static fromBinary(bytes, options) {
@@ -706,6 +716,48 @@ Auction.fields = proto3.util.newFieldList(() => [
706
716
  { no: 54, name: "fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
707
717
  { no: 55, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
708
718
  { no: 56, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
719
+ { no: 57, name: "badges", kind: "message", T: LaunchBadge, repeated: true },
720
+ ]);
721
+ /**
722
+ * One badge earned by a launch's token — the data.v1 twin of
723
+ * data.v2.LaunchBadge (data/v1 cannot import data/v2). type/tier are
724
+ * deliberately plain strings, NOT enums: the client contract pins the
725
+ * lowercase ids on the wire, and proto-JSON would serialize an enum's
726
+ * VALUE NAMES instead.
727
+ *
728
+ * @generated from message data.v1.LaunchBadge
729
+ */
730
+ export class LaunchBadge extends Message {
731
+ constructor(data) {
732
+ super();
733
+ /**
734
+ * "original" | "frontrunner" | "volume" | "holders" | "badger".
735
+ *
736
+ * @generated from field: string type = 1;
737
+ */
738
+ this.type = "";
739
+ proto3.util.initPartial(data, this);
740
+ }
741
+ static fromBinary(bytes, options) {
742
+ return new LaunchBadge().fromBinary(bytes, options);
743
+ }
744
+ static fromJson(jsonValue, options) {
745
+ return new LaunchBadge().fromJson(jsonValue, options);
746
+ }
747
+ static fromJsonString(jsonString, options) {
748
+ return new LaunchBadge().fromJsonString(jsonString, options);
749
+ }
750
+ static equals(a, b) {
751
+ return proto3.util.equals(LaunchBadge, a, b);
752
+ }
753
+ }
754
+ LaunchBadge.runtime = proto3;
755
+ LaunchBadge.typeName = "data.v1.LaunchBadge";
756
+ LaunchBadge.fields = proto3.util.newFieldList(() => [
757
+ { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
758
+ { no: 2, name: "tier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
759
+ { no: 3, name: "earned_at", kind: "message", T: Timestamp },
760
+ { no: 4, name: "holder_percentage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
709
761
  ]);
710
762
  /**
711
763
  * Response containing auctions.
@@ -1885,6 +1885,15 @@ export declare class Launch extends Message<Launch> {
1885
1885
  * @generated from field: repeated data.v2.TokenTrade recent_trades = 24;
1886
1886
  */
1887
1887
  recentTrades: TokenTrade[];
1888
+ /**
1889
+ * Badges earned by the launch's token (LP badges), one per badge type,
1890
+ * highest tier only, canonical order. Empty until the token has earned
1891
+ * any (badges are awarded at ingest and by a slow tier cron, so the
1892
+ * common row serves an empty list).
1893
+ *
1894
+ * @generated from field: repeated data.v2.LaunchBadge badges = 25;
1895
+ */
1896
+ badges: LaunchBadge[];
1888
1897
  constructor(data?: PartialMessage<Launch>);
1889
1898
  static readonly runtime: typeof proto3;
1890
1899
  static readonly typeName = "data.v2.Launch";
@@ -1894,6 +1903,54 @@ export declare class Launch extends Message<Launch> {
1894
1903
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Launch;
1895
1904
  static equals(a: Launch | PlainMessage<Launch> | undefined, b: Launch | PlainMessage<Launch> | undefined): boolean;
1896
1905
  }
1906
+ /**
1907
+ * One badge earned by a launch's token. type/tier are deliberately plain
1908
+ * strings, NOT enums: the client contract pins the lowercase ids on the
1909
+ * wire, and proto-JSON would serialize an enum's VALUE NAMES instead.
1910
+ *
1911
+ * @generated from message data.v2.LaunchBadge
1912
+ */
1913
+ export declare class LaunchBadge extends Message<LaunchBadge> {
1914
+ /**
1915
+ * "original" | "frontrunner" | "volume" | "holders" | "badger".
1916
+ *
1917
+ * @generated from field: string type = 1;
1918
+ */
1919
+ type: string;
1920
+ /**
1921
+ * Tier id, present only for the tiered types — volume: "5m" | "10m" |
1922
+ * "50m"; holders: "100" | "1k" | "10k". Unset for untiered types.
1923
+ *
1924
+ * @generated from field: optional string tier = 2;
1925
+ */
1926
+ tier?: string;
1927
+ /**
1928
+ * When the badge was earned (proto-JSON serializes this as an ISO-8601
1929
+ * string, which is the client contract). Exact on-chain launch time for
1930
+ * original/frontrunner; observation time for tier crossings.
1931
+ *
1932
+ * @generated from field: google.protobuf.Timestamp earned_at = 3;
1933
+ */
1934
+ earnedAt?: Timestamp;
1935
+ /**
1936
+ * Rarity: percentage (0-100) of eligible tokens that hold this badge
1937
+ * TYPE (any tier), for the client's rarity-tag hover. The denominator is
1938
+ * every factory-launched token (the launched_tokens registry). Served
1939
+ * from a short-TTL cached aggregate; unset when the aggregate is
1940
+ * unavailable — clients hide the rarity detail rather than showing 0.
1941
+ *
1942
+ * @generated from field: optional double holder_percentage = 4;
1943
+ */
1944
+ holderPercentage?: number;
1945
+ constructor(data?: PartialMessage<LaunchBadge>);
1946
+ static readonly runtime: typeof proto3;
1947
+ static readonly typeName = "data.v2.LaunchBadge";
1948
+ static readonly fields: FieldList;
1949
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LaunchBadge;
1950
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LaunchBadge;
1951
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LaunchBadge;
1952
+ static equals(a: LaunchBadge | PlainMessage<LaunchBadge> | undefined, b: LaunchBadge | PlainMessage<LaunchBadge> | undefined): boolean;
1953
+ }
1897
1954
  /**
1898
1955
  * One row of a launch token's holder list (GetLaunchHolders).
1899
1956
  *
@@ -1833,6 +1833,15 @@ export class Launch extends Message {
1833
1833
  * @generated from field: repeated data.v2.TokenTrade recent_trades = 24;
1834
1834
  */
1835
1835
  this.recentTrades = [];
1836
+ /**
1837
+ * Badges earned by the launch's token (LP badges), one per badge type,
1838
+ * highest tier only, canonical order. Empty until the token has earned
1839
+ * any (badges are awarded at ingest and by a slow tier cron, so the
1840
+ * common row serves an empty list).
1841
+ *
1842
+ * @generated from field: repeated data.v2.LaunchBadge badges = 25;
1843
+ */
1844
+ this.badges = [];
1836
1845
  proto3.util.initPartial(data, this);
1837
1846
  }
1838
1847
  static fromBinary(bytes, options) {
@@ -1875,6 +1884,46 @@ Launch.fields = proto3.util.newFieldList(() => [
1875
1884
  { no: 22, name: "x_profile_image_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1876
1885
  { no: 23, name: "x_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1877
1886
  { no: 24, name: "recent_trades", kind: "message", T: TokenTrade, repeated: true },
1887
+ { no: 25, name: "badges", kind: "message", T: LaunchBadge, repeated: true },
1888
+ ]);
1889
+ /**
1890
+ * One badge earned by a launch's token. type/tier are deliberately plain
1891
+ * strings, NOT enums: the client contract pins the lowercase ids on the
1892
+ * wire, and proto-JSON would serialize an enum's VALUE NAMES instead.
1893
+ *
1894
+ * @generated from message data.v2.LaunchBadge
1895
+ */
1896
+ export class LaunchBadge extends Message {
1897
+ constructor(data) {
1898
+ super();
1899
+ /**
1900
+ * "original" | "frontrunner" | "volume" | "holders" | "badger".
1901
+ *
1902
+ * @generated from field: string type = 1;
1903
+ */
1904
+ this.type = "";
1905
+ proto3.util.initPartial(data, this);
1906
+ }
1907
+ static fromBinary(bytes, options) {
1908
+ return new LaunchBadge().fromBinary(bytes, options);
1909
+ }
1910
+ static fromJson(jsonValue, options) {
1911
+ return new LaunchBadge().fromJson(jsonValue, options);
1912
+ }
1913
+ static fromJsonString(jsonString, options) {
1914
+ return new LaunchBadge().fromJsonString(jsonString, options);
1915
+ }
1916
+ static equals(a, b) {
1917
+ return proto3.util.equals(LaunchBadge, a, b);
1918
+ }
1919
+ }
1920
+ LaunchBadge.runtime = proto3;
1921
+ LaunchBadge.typeName = "data.v2.LaunchBadge";
1922
+ LaunchBadge.fields = proto3.util.newFieldList(() => [
1923
+ { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1924
+ { no: 2, name: "tier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1925
+ { no: 3, name: "earned_at", kind: "message", T: Timestamp },
1926
+ { no: 4, name: "holder_percentage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1878
1927
  ]);
1879
1928
  /**
1880
1929
  * One row of a launch token's holder list (GetLaunchHolders).
@@ -505,6 +505,15 @@ export declare class Launch extends Message<Launch> {
505
505
  * @generated from field: repeated launches.v1.TokenTrade recent_trades = 24;
506
506
  */
507
507
  recentTrades: TokenTrade[];
508
+ /**
509
+ * Badges earned by the launch's token (LP badges), one per badge type,
510
+ * highest tier only, canonical order. Empty until the token has earned
511
+ * any (badges are awarded at ingest and by a slow tier cron, so the
512
+ * common row serves an empty list).
513
+ *
514
+ * @generated from field: repeated launches.v1.LaunchBadge badges = 25;
515
+ */
516
+ badges: LaunchBadge[];
508
517
  constructor(data?: PartialMessage<Launch>);
509
518
  static readonly runtime: typeof proto3;
510
519
  static readonly typeName = "launches.v1.Launch";
@@ -514,6 +523,54 @@ export declare class Launch extends Message<Launch> {
514
523
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Launch;
515
524
  static equals(a: Launch | PlainMessage<Launch> | undefined, b: Launch | PlainMessage<Launch> | undefined): boolean;
516
525
  }
526
+ /**
527
+ * One badge earned by a launch's token. type/tier are deliberately plain
528
+ * strings, NOT enums: the client contract pins the lowercase ids on the
529
+ * wire, and proto-JSON would serialize an enum's VALUE NAMES instead.
530
+ *
531
+ * @generated from message launches.v1.LaunchBadge
532
+ */
533
+ export declare class LaunchBadge extends Message<LaunchBadge> {
534
+ /**
535
+ * "original" | "frontrunner" | "volume" | "holders" | "badger".
536
+ *
537
+ * @generated from field: string type = 1;
538
+ */
539
+ type: string;
540
+ /**
541
+ * Tier id, present only for the tiered types — volume: "5m" | "10m" |
542
+ * "50m"; holders: "100" | "1k" | "10k". Unset for untiered types.
543
+ *
544
+ * @generated from field: optional string tier = 2;
545
+ */
546
+ tier?: string;
547
+ /**
548
+ * When the badge was earned (proto-JSON serializes this as an ISO-8601
549
+ * string, which is the client contract). Exact on-chain launch time for
550
+ * original/frontrunner; observation time for tier crossings.
551
+ *
552
+ * @generated from field: google.protobuf.Timestamp earned_at = 3;
553
+ */
554
+ earnedAt?: Timestamp;
555
+ /**
556
+ * Rarity: percentage (0-100) of eligible tokens that hold this badge
557
+ * TYPE (any tier), for the client's rarity-tag hover. The denominator is
558
+ * every factory-launched token (the launched_tokens registry). Served
559
+ * from a short-TTL cached aggregate; unset when the aggregate is
560
+ * unavailable — clients hide the rarity detail rather than showing 0.
561
+ *
562
+ * @generated from field: optional double holder_percentage = 4;
563
+ */
564
+ holderPercentage?: number;
565
+ constructor(data?: PartialMessage<LaunchBadge>);
566
+ static readonly runtime: typeof proto3;
567
+ static readonly typeName = "launches.v1.LaunchBadge";
568
+ static readonly fields: FieldList;
569
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LaunchBadge;
570
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LaunchBadge;
571
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LaunchBadge;
572
+ static equals(a: LaunchBadge | PlainMessage<LaunchBadge> | undefined, b: LaunchBadge | PlainMessage<LaunchBadge> | undefined): boolean;
573
+ }
517
574
  /**
518
575
  * One row of a launch token's holder list (GetLaunchHolders).
519
576
  *
@@ -401,6 +401,15 @@ export class Launch extends Message {
401
401
  * @generated from field: repeated launches.v1.TokenTrade recent_trades = 24;
402
402
  */
403
403
  this.recentTrades = [];
404
+ /**
405
+ * Badges earned by the launch's token (LP badges), one per badge type,
406
+ * highest tier only, canonical order. Empty until the token has earned
407
+ * any (badges are awarded at ingest and by a slow tier cron, so the
408
+ * common row serves an empty list).
409
+ *
410
+ * @generated from field: repeated launches.v1.LaunchBadge badges = 25;
411
+ */
412
+ this.badges = [];
404
413
  proto3.util.initPartial(data, this);
405
414
  }
406
415
  static fromBinary(bytes, options) {
@@ -443,6 +452,46 @@ Launch.fields = proto3.util.newFieldList(() => [
443
452
  { no: 22, name: "x_profile_image_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
444
453
  { no: 23, name: "x_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
445
454
  { no: 24, name: "recent_trades", kind: "message", T: TokenTrade, repeated: true },
455
+ { no: 25, name: "badges", kind: "message", T: LaunchBadge, repeated: true },
456
+ ]);
457
+ /**
458
+ * One badge earned by a launch's token. type/tier are deliberately plain
459
+ * strings, NOT enums: the client contract pins the lowercase ids on the
460
+ * wire, and proto-JSON would serialize an enum's VALUE NAMES instead.
461
+ *
462
+ * @generated from message launches.v1.LaunchBadge
463
+ */
464
+ export class LaunchBadge extends Message {
465
+ constructor(data) {
466
+ super();
467
+ /**
468
+ * "original" | "frontrunner" | "volume" | "holders" | "badger".
469
+ *
470
+ * @generated from field: string type = 1;
471
+ */
472
+ this.type = "";
473
+ proto3.util.initPartial(data, this);
474
+ }
475
+ static fromBinary(bytes, options) {
476
+ return new LaunchBadge().fromBinary(bytes, options);
477
+ }
478
+ static fromJson(jsonValue, options) {
479
+ return new LaunchBadge().fromJson(jsonValue, options);
480
+ }
481
+ static fromJsonString(jsonString, options) {
482
+ return new LaunchBadge().fromJsonString(jsonString, options);
483
+ }
484
+ static equals(a, b) {
485
+ return proto3.util.equals(LaunchBadge, a, b);
486
+ }
487
+ }
488
+ LaunchBadge.runtime = proto3;
489
+ LaunchBadge.typeName = "launches.v1.LaunchBadge";
490
+ LaunchBadge.fields = proto3.util.newFieldList(() => [
491
+ { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
492
+ { no: 2, name: "tier", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
493
+ { no: 3, name: "earned_at", kind: "message", T: Timestamp },
494
+ { no: 4, name: "holder_percentage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
446
495
  ]);
447
496
  /**
448
497
  * One row of a launch token's holder list (GetLaunchHolders).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.228",
3
+ "version": "0.0.229",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },