@uniswap/client-liquidity 1.4.34 → 1.4.36
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.
|
@@ -771,17 +771,6 @@ export declare class PoolSummary extends Message<PoolSummary> {
|
|
|
771
771
|
* @generated from field: optional bool is_dynamic_fee = 24;
|
|
772
772
|
*/
|
|
773
773
|
isDynamicFee?: boolean;
|
|
774
|
-
/**
|
|
775
|
-
* DEPRECATED — superseded by token_rewards below, which groups campaigns under
|
|
776
|
-
* the token they pay and carries that token's summed boost. This field has never
|
|
777
|
-
* been populated and stays permanently empty; it exists only so consumers that
|
|
778
|
-
* already read it keep compiling. Removal is tracked in LP-1585 (reserve tag 25
|
|
779
|
-
* when it goes — a reused tag with a different type is wire-incompatible).
|
|
780
|
-
*
|
|
781
|
-
* @generated from field: repeated uniswap.liquidity.v2.RewardsCampaign rewards_campaigns = 25 [deprecated = true];
|
|
782
|
-
* @deprecated
|
|
783
|
-
*/
|
|
784
|
-
rewardsCampaigns: RewardsCampaign[];
|
|
785
774
|
/**
|
|
786
775
|
* Day-over-day change in TVL and 1d-volume, as a signed percentage (e.g. 5.2
|
|
787
776
|
* = +5.2%). Composed at read time from the ClickHouse pool-stat history
|
|
@@ -877,63 +866,6 @@ export declare class RewardToken extends Message<RewardToken> {
|
|
|
877
866
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RewardToken;
|
|
878
867
|
static equals(a: RewardToken | PlainMessage<RewardToken> | undefined, b: RewardToken | PlainMessage<RewardToken> | undefined): boolean;
|
|
879
868
|
}
|
|
880
|
-
/**
|
|
881
|
-
* One live Merkl LP-incentive campaign for a pool (V3/V4). A pool may run
|
|
882
|
-
* several concurrent campaigns in different reward tokens; each entry is a
|
|
883
|
-
* single campaign, carrying its own reward token so amounts stay per-token.
|
|
884
|
-
*
|
|
885
|
-
* @generated from message uniswap.liquidity.v2.RewardsCampaign
|
|
886
|
-
*/
|
|
887
|
-
export declare class RewardsCampaign extends Message<RewardsCampaign> {
|
|
888
|
-
/**
|
|
889
|
-
* Merkl campaign id.
|
|
890
|
-
*
|
|
891
|
-
* @generated from field: string id = 1;
|
|
892
|
-
*/
|
|
893
|
-
id: string;
|
|
894
|
-
/**
|
|
895
|
-
* Extra APR from this campaign's incentives, on top of PoolSummary.apr
|
|
896
|
-
* (fees). Percent.
|
|
897
|
-
*
|
|
898
|
-
* @generated from field: double boosted_apr = 2;
|
|
899
|
-
*/
|
|
900
|
-
boostedApr: number;
|
|
901
|
-
/**
|
|
902
|
-
* Campaign window, unix seconds.
|
|
903
|
-
*
|
|
904
|
-
* @generated from field: int64 start_timestamp = 3;
|
|
905
|
-
*/
|
|
906
|
-
startTimestamp: bigint;
|
|
907
|
-
/**
|
|
908
|
-
* @generated from field: int64 end_timestamp = 4;
|
|
909
|
-
*/
|
|
910
|
-
endTimestamp: bigint;
|
|
911
|
-
/**
|
|
912
|
-
* Total reward tokens allocated + distributed so far (uint256 decimal
|
|
913
|
-
* strings, in reward_token's own units).
|
|
914
|
-
*
|
|
915
|
-
* @generated from field: string total_reward_allocation = 5;
|
|
916
|
-
*/
|
|
917
|
-
totalRewardAllocation: string;
|
|
918
|
-
/**
|
|
919
|
-
* @generated from field: string distributed_rewards = 6;
|
|
920
|
-
*/
|
|
921
|
-
distributedRewards: string;
|
|
922
|
-
/**
|
|
923
|
-
* The token this campaign pays out; interprets the amounts above.
|
|
924
|
-
*
|
|
925
|
-
* @generated from field: uniswap.liquidity.v2.RewardToken reward_token = 7;
|
|
926
|
-
*/
|
|
927
|
-
rewardToken?: RewardToken;
|
|
928
|
-
constructor(data?: PartialMessage<RewardsCampaign>);
|
|
929
|
-
static readonly runtime: typeof proto3;
|
|
930
|
-
static readonly typeName = "uniswap.liquidity.v2.RewardsCampaign";
|
|
931
|
-
static readonly fields: FieldList;
|
|
932
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RewardsCampaign;
|
|
933
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RewardsCampaign;
|
|
934
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RewardsCampaign;
|
|
935
|
-
static equals(a: RewardsCampaign | PlainMessage<RewardsCampaign> | undefined, b: RewardsCampaign | PlainMessage<RewardsCampaign> | undefined): boolean;
|
|
936
|
-
}
|
|
937
869
|
/**
|
|
938
870
|
* One live campaign behind a pool's per-token boost. It carries no reward token —
|
|
939
871
|
* campaigns are always grouped under one (see PoolTokenRewards).
|
|
@@ -1486,6 +1418,18 @@ export declare class Position extends Message<Position> {
|
|
|
1486
1418
|
* @generated from field: optional double total_apr = 39;
|
|
1487
1419
|
*/
|
|
1488
1420
|
totalApr?: number;
|
|
1421
|
+
/**
|
|
1422
|
+
* The pool's protocol fee in pips, same unit and regimes as
|
|
1423
|
+
* PoolSummary.protocol_fee: V2/V3 carve it OUT of the pool's fee tier (so this
|
|
1424
|
+
* position earns fee_tier - protocol_fee), V4 charges it ON TOP. 0 = not
|
|
1425
|
+
* turned on. Carved against the implicit 3000 for V2, where fee_tier is unset.
|
|
1426
|
+
*
|
|
1427
|
+
* Unset only when the pool-metadata enrichment didn't resolve, alongside the
|
|
1428
|
+
* other pool fields above.
|
|
1429
|
+
*
|
|
1430
|
+
* @generated from field: optional uint32 protocol_fee = 40;
|
|
1431
|
+
*/
|
|
1432
|
+
protocolFee?: number;
|
|
1489
1433
|
constructor(data?: PartialMessage<Position>);
|
|
1490
1434
|
static readonly runtime: typeof proto3;
|
|
1491
1435
|
static readonly typeName = "uniswap.liquidity.v2.Position";
|
|
@@ -943,17 +943,6 @@ export class PoolSummary extends Message {
|
|
|
943
943
|
* @generated from field: double volume_usd_1d = 8;
|
|
944
944
|
*/
|
|
945
945
|
this.volumeUsd1d = 0;
|
|
946
|
-
/**
|
|
947
|
-
* DEPRECATED — superseded by token_rewards below, which groups campaigns under
|
|
948
|
-
* the token they pay and carries that token's summed boost. This field has never
|
|
949
|
-
* been populated and stays permanently empty; it exists only so consumers that
|
|
950
|
-
* already read it keep compiling. Removal is tracked in LP-1585 (reserve tag 25
|
|
951
|
-
* when it goes — a reused tag with a different type is wire-incompatible).
|
|
952
|
-
*
|
|
953
|
-
* @generated from field: repeated uniswap.liquidity.v2.RewardsCampaign rewards_campaigns = 25 [deprecated = true];
|
|
954
|
-
* @deprecated
|
|
955
|
-
*/
|
|
956
|
-
this.rewardsCampaigns = [];
|
|
957
946
|
/**
|
|
958
947
|
* Live LP-incentive rewards, grouped by the token they pay (see
|
|
959
948
|
* PoolTokenRewards). Sourced from data-api, which owns campaign scoping, so this
|
|
@@ -1007,7 +996,6 @@ PoolSummary.fields = proto3.util.newFieldList(() => [
|
|
|
1007
996
|
{ no: 22, name: "token0_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1008
997
|
{ no: 23, name: "token1_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1009
998
|
{ no: 24, name: "is_dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1010
|
-
{ no: 25, name: "rewards_campaigns", kind: "message", T: RewardsCampaign, repeated: true },
|
|
1011
999
|
{ no: 26, name: "tvl_usd_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1012
1000
|
{ no: 27, name: "volume_usd_1d_change", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1013
1001
|
{ no: 28, name: "token_rewards", kind: "message", T: PoolTokenRewards, repeated: true },
|
|
@@ -1061,76 +1049,6 @@ RewardToken.fields = proto3.util.newFieldList(() => [
|
|
|
1061
1049
|
{ no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1062
1050
|
{ no: 6, name: "is_native", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1063
1051
|
]);
|
|
1064
|
-
/**
|
|
1065
|
-
* One live Merkl LP-incentive campaign for a pool (V3/V4). A pool may run
|
|
1066
|
-
* several concurrent campaigns in different reward tokens; each entry is a
|
|
1067
|
-
* single campaign, carrying its own reward token so amounts stay per-token.
|
|
1068
|
-
*
|
|
1069
|
-
* @generated from message uniswap.liquidity.v2.RewardsCampaign
|
|
1070
|
-
*/
|
|
1071
|
-
export class RewardsCampaign extends Message {
|
|
1072
|
-
constructor(data) {
|
|
1073
|
-
super();
|
|
1074
|
-
/**
|
|
1075
|
-
* Merkl campaign id.
|
|
1076
|
-
*
|
|
1077
|
-
* @generated from field: string id = 1;
|
|
1078
|
-
*/
|
|
1079
|
-
this.id = "";
|
|
1080
|
-
/**
|
|
1081
|
-
* Extra APR from this campaign's incentives, on top of PoolSummary.apr
|
|
1082
|
-
* (fees). Percent.
|
|
1083
|
-
*
|
|
1084
|
-
* @generated from field: double boosted_apr = 2;
|
|
1085
|
-
*/
|
|
1086
|
-
this.boostedApr = 0;
|
|
1087
|
-
/**
|
|
1088
|
-
* Campaign window, unix seconds.
|
|
1089
|
-
*
|
|
1090
|
-
* @generated from field: int64 start_timestamp = 3;
|
|
1091
|
-
*/
|
|
1092
|
-
this.startTimestamp = protoInt64.zero;
|
|
1093
|
-
/**
|
|
1094
|
-
* @generated from field: int64 end_timestamp = 4;
|
|
1095
|
-
*/
|
|
1096
|
-
this.endTimestamp = protoInt64.zero;
|
|
1097
|
-
/**
|
|
1098
|
-
* Total reward tokens allocated + distributed so far (uint256 decimal
|
|
1099
|
-
* strings, in reward_token's own units).
|
|
1100
|
-
*
|
|
1101
|
-
* @generated from field: string total_reward_allocation = 5;
|
|
1102
|
-
*/
|
|
1103
|
-
this.totalRewardAllocation = "";
|
|
1104
|
-
/**
|
|
1105
|
-
* @generated from field: string distributed_rewards = 6;
|
|
1106
|
-
*/
|
|
1107
|
-
this.distributedRewards = "";
|
|
1108
|
-
proto3.util.initPartial(data, this);
|
|
1109
|
-
}
|
|
1110
|
-
static fromBinary(bytes, options) {
|
|
1111
|
-
return new RewardsCampaign().fromBinary(bytes, options);
|
|
1112
|
-
}
|
|
1113
|
-
static fromJson(jsonValue, options) {
|
|
1114
|
-
return new RewardsCampaign().fromJson(jsonValue, options);
|
|
1115
|
-
}
|
|
1116
|
-
static fromJsonString(jsonString, options) {
|
|
1117
|
-
return new RewardsCampaign().fromJsonString(jsonString, options);
|
|
1118
|
-
}
|
|
1119
|
-
static equals(a, b) {
|
|
1120
|
-
return proto3.util.equals(RewardsCampaign, a, b);
|
|
1121
|
-
}
|
|
1122
|
-
}
|
|
1123
|
-
RewardsCampaign.runtime = proto3;
|
|
1124
|
-
RewardsCampaign.typeName = "uniswap.liquidity.v2.RewardsCampaign";
|
|
1125
|
-
RewardsCampaign.fields = proto3.util.newFieldList(() => [
|
|
1126
|
-
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1127
|
-
{ no: 2, name: "boosted_apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1128
|
-
{ no: 3, name: "start_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1129
|
-
{ no: 4, name: "end_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1130
|
-
{ no: 5, name: "total_reward_allocation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1131
|
-
{ no: 6, name: "distributed_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1132
|
-
{ no: 7, name: "reward_token", kind: "message", T: RewardToken },
|
|
1133
|
-
]);
|
|
1134
1052
|
/**
|
|
1135
1053
|
* One live campaign behind a pool's per-token boost. It carries no reward token —
|
|
1136
1054
|
* campaigns are always grouped under one (see PoolTokenRewards).
|
|
@@ -1658,6 +1576,7 @@ Position.fields = proto3.util.newFieldList(() => [
|
|
|
1658
1576
|
{ no: 37, name: "total_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1659
1577
|
{ no: 38, name: "rewards", kind: "message", T: PositionReward, repeated: true },
|
|
1660
1578
|
{ no: 39, name: "total_apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1579
|
+
{ no: 40, name: "protocol_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1661
1580
|
]);
|
|
1662
1581
|
/**
|
|
1663
1582
|
* Keyset cursor for GetWalletPositions. position_key is the last returned
|