@uniswap/client-liquidity 1.4.10 → 1.4.12

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.
@@ -763,6 +763,14 @@ export declare class PoolSummary extends Message<PoolSummary> {
763
763
  * @generated from field: optional bool is_dynamic_fee = 24;
764
764
  */
765
765
  isDynamicFee?: boolean;
766
+ /**
767
+ * Live Merkl LP-incentive campaigns for this pool (V3/V4). Composed at read
768
+ * time from Merkl (not Aurora); empty when the pool has no live allowlisted
769
+ * campaign or the lookup degrades. One entry per campaign — not aggregated.
770
+ *
771
+ * @generated from field: repeated uniswap.liquidity.v2.RewardsCampaign rewards_campaigns = 25;
772
+ */
773
+ rewardsCampaigns: RewardsCampaign[];
766
774
  constructor(data?: PartialMessage<PoolSummary>);
767
775
  static readonly runtime: typeof proto3;
768
776
  static readonly typeName = "uniswap.liquidity.v2.PoolSummary";
@@ -772,6 +780,104 @@ export declare class PoolSummary extends Message<PoolSummary> {
772
780
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolSummary;
773
781
  static equals(a: PoolSummary | PlainMessage<PoolSummary> | undefined, b: PoolSummary | PlainMessage<PoolSummary> | undefined): boolean;
774
782
  }
783
+ /**
784
+ * A reward token's on-chain identity, so a client can interpret and format a
785
+ * campaign's amounts (they're in this token's own units, on its distribution
786
+ * chain). Mirrors the APR backend reward-token shape (data-api pools.v1.Token).
787
+ *
788
+ * @generated from message uniswap.liquidity.v2.RewardToken
789
+ */
790
+ export declare class RewardToken extends Message<RewardToken> {
791
+ /**
792
+ * @generated from field: int32 chain_id = 1;
793
+ */
794
+ chainId: number;
795
+ /**
796
+ * @generated from field: string address = 2;
797
+ */
798
+ address: string;
799
+ /**
800
+ * @generated from field: optional string symbol = 3;
801
+ */
802
+ symbol?: string;
803
+ /**
804
+ * @generated from field: optional int32 decimals = 4;
805
+ */
806
+ decimals?: number;
807
+ /**
808
+ * @generated from field: optional string name = 5;
809
+ */
810
+ name?: string;
811
+ /**
812
+ * @generated from field: bool is_native = 6;
813
+ */
814
+ isNative: boolean;
815
+ constructor(data?: PartialMessage<RewardToken>);
816
+ static readonly runtime: typeof proto3;
817
+ static readonly typeName = "uniswap.liquidity.v2.RewardToken";
818
+ static readonly fields: FieldList;
819
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RewardToken;
820
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RewardToken;
821
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RewardToken;
822
+ static equals(a: RewardToken | PlainMessage<RewardToken> | undefined, b: RewardToken | PlainMessage<RewardToken> | undefined): boolean;
823
+ }
824
+ /**
825
+ * One live Merkl LP-incentive campaign for a pool (V3/V4). A pool may run
826
+ * several concurrent campaigns in different reward tokens; each entry is a
827
+ * single campaign, carrying its own reward token so amounts stay per-token.
828
+ *
829
+ * @generated from message uniswap.liquidity.v2.RewardsCampaign
830
+ */
831
+ export declare class RewardsCampaign extends Message<RewardsCampaign> {
832
+ /**
833
+ * Merkl campaign id.
834
+ *
835
+ * @generated from field: string id = 1;
836
+ */
837
+ id: string;
838
+ /**
839
+ * Extra APR from this campaign's incentives, on top of PoolSummary.apr
840
+ * (fees). Percent.
841
+ *
842
+ * @generated from field: double boosted_apr = 2;
843
+ */
844
+ boostedApr: number;
845
+ /**
846
+ * Campaign window, unix seconds.
847
+ *
848
+ * @generated from field: int64 start_timestamp = 3;
849
+ */
850
+ startTimestamp: bigint;
851
+ /**
852
+ * @generated from field: int64 end_timestamp = 4;
853
+ */
854
+ endTimestamp: bigint;
855
+ /**
856
+ * Total reward tokens allocated + distributed so far (uint256 decimal
857
+ * strings, in reward_token's own units).
858
+ *
859
+ * @generated from field: string total_reward_allocation = 5;
860
+ */
861
+ totalRewardAllocation: string;
862
+ /**
863
+ * @generated from field: string distributed_rewards = 6;
864
+ */
865
+ distributedRewards: string;
866
+ /**
867
+ * The token this campaign pays out; interprets the amounts above.
868
+ *
869
+ * @generated from field: uniswap.liquidity.v2.RewardToken reward_token = 7;
870
+ */
871
+ rewardToken?: RewardToken;
872
+ constructor(data?: PartialMessage<RewardsCampaign>);
873
+ static readonly runtime: typeof proto3;
874
+ static readonly typeName = "uniswap.liquidity.v2.RewardsCampaign";
875
+ static readonly fields: FieldList;
876
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RewardsCampaign;
877
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RewardsCampaign;
878
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RewardsCampaign;
879
+ static equals(a: RewardsCampaign | PlainMessage<RewardsCampaign> | undefined, b: RewardsCampaign | PlainMessage<RewardsCampaign> | undefined): boolean;
880
+ }
775
881
  /**
776
882
  * @generated from message uniswap.liquidity.v2.PoolListCursor
777
883
  */
@@ -934,6 +934,14 @@ export class PoolSummary extends Message {
934
934
  * @generated from field: double volume_usd_1d = 8;
935
935
  */
936
936
  this.volumeUsd1d = 0;
937
+ /**
938
+ * Live Merkl LP-incentive campaigns for this pool (V3/V4). Composed at read
939
+ * time from Merkl (not Aurora); empty when the pool has no live allowlisted
940
+ * campaign or the lookup degrades. One entry per campaign — not aggregated.
941
+ *
942
+ * @generated from field: repeated uniswap.liquidity.v2.RewardsCampaign rewards_campaigns = 25;
943
+ */
944
+ this.rewardsCampaigns = [];
937
945
  proto3.util.initPartial(data, this);
938
946
  }
939
947
  static fromBinary(bytes, options) {
@@ -976,6 +984,124 @@ PoolSummary.fields = proto3.util.newFieldList(() => [
976
984
  { no: 22, name: "token0_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
977
985
  { no: 23, name: "token1_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
978
986
  { no: 24, name: "is_dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
987
+ { no: 25, name: "rewards_campaigns", kind: "message", T: RewardsCampaign, repeated: true },
988
+ ]);
989
+ /**
990
+ * A reward token's on-chain identity, so a client can interpret and format a
991
+ * campaign's amounts (they're in this token's own units, on its distribution
992
+ * chain). Mirrors the APR backend reward-token shape (data-api pools.v1.Token).
993
+ *
994
+ * @generated from message uniswap.liquidity.v2.RewardToken
995
+ */
996
+ export class RewardToken extends Message {
997
+ constructor(data) {
998
+ super();
999
+ /**
1000
+ * @generated from field: int32 chain_id = 1;
1001
+ */
1002
+ this.chainId = 0;
1003
+ /**
1004
+ * @generated from field: string address = 2;
1005
+ */
1006
+ this.address = "";
1007
+ /**
1008
+ * @generated from field: bool is_native = 6;
1009
+ */
1010
+ this.isNative = false;
1011
+ proto3.util.initPartial(data, this);
1012
+ }
1013
+ static fromBinary(bytes, options) {
1014
+ return new RewardToken().fromBinary(bytes, options);
1015
+ }
1016
+ static fromJson(jsonValue, options) {
1017
+ return new RewardToken().fromJson(jsonValue, options);
1018
+ }
1019
+ static fromJsonString(jsonString, options) {
1020
+ return new RewardToken().fromJsonString(jsonString, options);
1021
+ }
1022
+ static equals(a, b) {
1023
+ return proto3.util.equals(RewardToken, a, b);
1024
+ }
1025
+ }
1026
+ RewardToken.runtime = proto3;
1027
+ RewardToken.typeName = "uniswap.liquidity.v2.RewardToken";
1028
+ RewardToken.fields = proto3.util.newFieldList(() => [
1029
+ { no: 1, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1030
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1031
+ { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1032
+ { no: 4, name: "decimals", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1033
+ { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1034
+ { no: 6, name: "is_native", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1035
+ ]);
1036
+ /**
1037
+ * One live Merkl LP-incentive campaign for a pool (V3/V4). A pool may run
1038
+ * several concurrent campaigns in different reward tokens; each entry is a
1039
+ * single campaign, carrying its own reward token so amounts stay per-token.
1040
+ *
1041
+ * @generated from message uniswap.liquidity.v2.RewardsCampaign
1042
+ */
1043
+ export class RewardsCampaign extends Message {
1044
+ constructor(data) {
1045
+ super();
1046
+ /**
1047
+ * Merkl campaign id.
1048
+ *
1049
+ * @generated from field: string id = 1;
1050
+ */
1051
+ this.id = "";
1052
+ /**
1053
+ * Extra APR from this campaign's incentives, on top of PoolSummary.apr
1054
+ * (fees). Percent.
1055
+ *
1056
+ * @generated from field: double boosted_apr = 2;
1057
+ */
1058
+ this.boostedApr = 0;
1059
+ /**
1060
+ * Campaign window, unix seconds.
1061
+ *
1062
+ * @generated from field: int64 start_timestamp = 3;
1063
+ */
1064
+ this.startTimestamp = protoInt64.zero;
1065
+ /**
1066
+ * @generated from field: int64 end_timestamp = 4;
1067
+ */
1068
+ this.endTimestamp = protoInt64.zero;
1069
+ /**
1070
+ * Total reward tokens allocated + distributed so far (uint256 decimal
1071
+ * strings, in reward_token's own units).
1072
+ *
1073
+ * @generated from field: string total_reward_allocation = 5;
1074
+ */
1075
+ this.totalRewardAllocation = "";
1076
+ /**
1077
+ * @generated from field: string distributed_rewards = 6;
1078
+ */
1079
+ this.distributedRewards = "";
1080
+ proto3.util.initPartial(data, this);
1081
+ }
1082
+ static fromBinary(bytes, options) {
1083
+ return new RewardsCampaign().fromBinary(bytes, options);
1084
+ }
1085
+ static fromJson(jsonValue, options) {
1086
+ return new RewardsCampaign().fromJson(jsonValue, options);
1087
+ }
1088
+ static fromJsonString(jsonString, options) {
1089
+ return new RewardsCampaign().fromJsonString(jsonString, options);
1090
+ }
1091
+ static equals(a, b) {
1092
+ return proto3.util.equals(RewardsCampaign, a, b);
1093
+ }
1094
+ }
1095
+ RewardsCampaign.runtime = proto3;
1096
+ RewardsCampaign.typeName = "uniswap.liquidity.v2.RewardsCampaign";
1097
+ RewardsCampaign.fields = proto3.util.newFieldList(() => [
1098
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1099
+ { no: 2, name: "boosted_apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1100
+ { no: 3, name: "start_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1101
+ { no: 4, name: "end_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1102
+ { no: 5, name: "total_reward_allocation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1103
+ { no: 6, name: "distributed_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1104
+ { no: 7, name: "reward_token", kind: "message", T: RewardToken },
979
1105
  ]);
980
1106
  /**
981
1107
  * @generated from message uniswap.liquidity.v2.PoolListCursor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-liquidity",
3
- "version": "1.4.10",
3
+ "version": "1.4.12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },