@uniswap/client-liquidity 1.4.10 → 1.4.13

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 { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
2
- import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, GetPoolHistoryPriceRequest, GetPoolHistoryPriceResponse, GetPoolHistoryVolumeRequest, GetPoolHistoryVolumeResponse, GetPoolRequest, GetPoolResponse, GetPoolTicksRequest, GetPoolTicksResponse, GetPositionRequest, GetPositionResponse, GetWalletPositionsBalanceRequest, GetWalletPositionsBalanceResponse, GetWalletPositionsRequest, GetWalletPositionsResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse, ListPoolsRequest, ListPoolsResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
2
+ import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, GetPoolHistoryPriceRequest, GetPoolHistoryPriceResponse, GetPoolHistoryVolumeRequest, GetPoolHistoryVolumeResponse, GetPoolRequest, GetPoolResponse, GetPoolTicksRequest, GetPoolTicksResponse, GetPoolTransactionsRequest, GetPoolTransactionsResponse, GetPositionRequest, GetPositionResponse, GetWalletPositionsBalanceRequest, GetWalletPositionsBalanceResponse, GetWalletPositionsRequest, GetWalletPositionsResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse, ListPoolsRequest, ListPoolsResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
5
5
  */
@@ -182,6 +182,20 @@ export declare const getPoolTicks: {
182
182
  readonly typeName: "uniswap.liquidity.v2.LiquidityService";
183
183
  };
184
184
  };
185
+ /**
186
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.GetPoolTransactions
187
+ */
188
+ export declare const getPoolTransactions: {
189
+ readonly localName: "getPoolTransactions";
190
+ readonly name: "GetPoolTransactions";
191
+ readonly kind: MethodKind.Unary;
192
+ readonly I: typeof GetPoolTransactionsRequest;
193
+ readonly O: typeof GetPoolTransactionsResponse;
194
+ readonly idempotency: MethodIdempotency.NoSideEffects;
195
+ readonly service: {
196
+ readonly typeName: "uniswap.liquidity.v2.LiquidityService";
197
+ };
198
+ };
185
199
  /**
186
200
  * @generated from rpc uniswap.liquidity.v2.LiquidityService.GetPosition
187
201
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
6
- import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, GetPoolHistoryPriceRequest, GetPoolHistoryPriceResponse, GetPoolHistoryVolumeRequest, GetPoolHistoryVolumeResponse, GetPoolRequest, GetPoolResponse, GetPoolTicksRequest, GetPoolTicksResponse, GetPositionRequest, GetPositionResponse, GetWalletPositionsBalanceRequest, GetWalletPositionsBalanceResponse, GetWalletPositionsRequest, GetWalletPositionsResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse, ListPoolsRequest, ListPoolsResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
6
+ import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, GetPoolHistoryPriceRequest, GetPoolHistoryPriceResponse, GetPoolHistoryVolumeRequest, GetPoolHistoryVolumeResponse, GetPoolRequest, GetPoolResponse, GetPoolTicksRequest, GetPoolTicksResponse, GetPoolTransactionsRequest, GetPoolTransactionsResponse, GetPositionRequest, GetPositionResponse, GetWalletPositionsBalanceRequest, GetWalletPositionsBalanceResponse, GetWalletPositionsRequest, GetWalletPositionsResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse, ListPoolsRequest, ListPoolsResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
9
9
  */
@@ -186,6 +186,20 @@ export const getPoolTicks = {
186
186
  typeName: "uniswap.liquidity.v2.LiquidityService"
187
187
  }
188
188
  };
189
+ /**
190
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.GetPoolTransactions
191
+ */
192
+ export const getPoolTransactions = {
193
+ localName: "getPoolTransactions",
194
+ name: "GetPoolTransactions",
195
+ kind: MethodKind.Unary,
196
+ I: GetPoolTransactionsRequest,
197
+ O: GetPoolTransactionsResponse,
198
+ idempotency: MethodIdempotency.NoSideEffects,
199
+ service: {
200
+ typeName: "uniswap.liquidity.v2.LiquidityService"
201
+ }
202
+ };
189
203
  /**
190
204
  * @generated from rpc uniswap.liquidity.v2.LiquidityService.GetPosition
191
205
  */
@@ -1,4 +1,4 @@
1
- import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, GetPoolHistoryPriceRequest, GetPoolHistoryPriceResponse, GetPoolHistoryVolumeRequest, GetPoolHistoryVolumeResponse, GetPoolRequest, GetPoolResponse, GetPoolTicksRequest, GetPoolTicksResponse, GetPositionRequest, GetPositionResponse, GetWalletPositionsBalanceRequest, GetWalletPositionsBalanceResponse, GetWalletPositionsRequest, GetWalletPositionsResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse, ListPoolsRequest, ListPoolsResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
1
+ import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, GetPoolHistoryPriceRequest, GetPoolHistoryPriceResponse, GetPoolHistoryVolumeRequest, GetPoolHistoryVolumeResponse, GetPoolRequest, GetPoolResponse, GetPoolTicksRequest, GetPoolTicksResponse, GetPoolTransactionsRequest, GetPoolTransactionsResponse, GetPositionRequest, GetPositionResponse, GetWalletPositionsBalanceRequest, GetWalletPositionsBalanceResponse, GetWalletPositionsRequest, GetWalletPositionsResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse, ListPoolsRequest, ListPoolsResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
2
2
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service uniswap.liquidity.v2.LiquidityService
@@ -136,6 +136,16 @@ export declare const LiquidityService: {
136
136
  readonly kind: MethodKind.Unary;
137
137
  readonly idempotency: MethodIdempotency.NoSideEffects;
138
138
  };
139
+ /**
140
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.GetPoolTransactions
141
+ */
142
+ readonly getPoolTransactions: {
143
+ readonly name: "GetPoolTransactions";
144
+ readonly I: typeof GetPoolTransactionsRequest;
145
+ readonly O: typeof GetPoolTransactionsResponse;
146
+ readonly kind: MethodKind.Unary;
147
+ readonly idempotency: MethodIdempotency.NoSideEffects;
148
+ };
139
149
  /**
140
150
  * @generated from rpc uniswap.liquidity.v2.LiquidityService.GetPosition
141
151
  */
@@ -2,7 +2,7 @@
2
2
  // @generated from file uniswap/liquidity/v2/api.proto (package uniswap.liquidity.v2, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, GetPoolHistoryPriceRequest, GetPoolHistoryPriceResponse, GetPoolHistoryVolumeRequest, GetPoolHistoryVolumeResponse, GetPoolRequest, GetPoolResponse, GetPoolTicksRequest, GetPoolTicksResponse, GetPositionRequest, GetPositionResponse, GetWalletPositionsBalanceRequest, GetWalletPositionsBalanceResponse, GetWalletPositionsRequest, GetWalletPositionsResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse, ListPoolsRequest, ListPoolsResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
5
+ import { ClaimFeesRequest, ClaimFeesResponse, CreateClassicPositionRequest, CreateClassicPositionResponse, CreatePositionRequest, CreatePositionResponse, DecreasePositionRequest, DecreasePositionResponse, GetPoolHistoryPriceRequest, GetPoolHistoryPriceResponse, GetPoolHistoryVolumeRequest, GetPoolHistoryVolumeResponse, GetPoolRequest, GetPoolResponse, GetPoolTicksRequest, GetPoolTicksResponse, GetPoolTransactionsRequest, GetPoolTransactionsResponse, GetPositionRequest, GetPositionResponse, GetWalletPositionsBalanceRequest, GetWalletPositionsBalanceResponse, GetWalletPositionsRequest, GetWalletPositionsResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse, ListPoolsRequest, ListPoolsResponse, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
6
6
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service uniswap.liquidity.v2.LiquidityService
@@ -140,6 +140,16 @@ export const LiquidityService = {
140
140
  kind: MethodKind.Unary,
141
141
  idempotency: MethodIdempotency.NoSideEffects,
142
142
  },
143
+ /**
144
+ * @generated from rpc uniswap.liquidity.v2.LiquidityService.GetPoolTransactions
145
+ */
146
+ getPoolTransactions: {
147
+ name: "GetPoolTransactions",
148
+ I: GetPoolTransactionsRequest,
149
+ O: GetPoolTransactionsResponse,
150
+ kind: MethodKind.Unary,
151
+ idempotency: MethodIdempotency.NoSideEffects,
152
+ },
143
153
  /**
144
154
  * @generated from rpc uniswap.liquidity.v2.LiquidityService.GetPosition
145
155
  */
@@ -1,7 +1,7 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
3
  import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
4
- import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HistoryDuration, HookEntry, LPAction, LPToken, PoolListCursor, PoolPricePoint, PoolReference, PoolSortBy, PoolSummary, PoolTick, PoolVolumeBucket, Position, PositionListCursor, PositionModifier, PositionPriceBounds, PositionSortBy, PositionStatus, PositionTickBounds, RangeStatus, V2PoolParameters } from "./types_pb.js";
4
+ import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HistoryDuration, HookEntry, LPAction, LPToken, PoolListCursor, PoolPricePoint, PoolReference, PoolSortBy, PoolSummary, PoolTick, PoolTransaction, PoolTransactionCursor, PoolVolumeBucket, Position, PositionListCursor, PositionModifier, PositionPriceBounds, PositionSortBy, PositionStatus, PositionTickBounds, RangeStatus, V2PoolParameters } from "./types_pb.js";
5
5
  /**
6
6
  * MigrateV2ToV3LPPosition
7
7
  *
@@ -1041,6 +1041,66 @@ export declare class GetPoolTicksResponse extends Message<GetPoolTicksResponse>
1041
1041
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolTicksResponse;
1042
1042
  static equals(a: GetPoolTicksResponse | PlainMessage<GetPoolTicksResponse> | undefined, b: GetPoolTicksResponse | PlainMessage<GetPoolTicksResponse> | undefined): boolean;
1043
1043
  }
1044
+ /**
1045
+ * GetPoolTransactions — recent swaps/adds/removes for the PDP transactions
1046
+ * table. Routes by pool version to the V2/V3/V4 ClickHouse transaction stream.
1047
+ * Keyset-paginated newest-first; pass the previous response's next_cursor to
1048
+ * page older.
1049
+ *
1050
+ * @generated from message uniswap.liquidity.v2.GetPoolTransactionsRequest
1051
+ */
1052
+ export declare class GetPoolTransactionsRequest extends Message<GetPoolTransactionsRequest> {
1053
+ /**
1054
+ * @generated from field: uniswap.liquidity.v2.PoolReference pool = 1;
1055
+ */
1056
+ pool?: PoolReference;
1057
+ /**
1058
+ * Default 25, max 100.
1059
+ *
1060
+ * @generated from field: optional int32 limit = 2;
1061
+ */
1062
+ limit?: number;
1063
+ /**
1064
+ * Omit for the newest page; pass next_cursor from the prior response to page
1065
+ * older.
1066
+ *
1067
+ * @generated from field: optional uniswap.liquidity.v2.PoolTransactionCursor cursor = 3;
1068
+ */
1069
+ cursor?: PoolTransactionCursor;
1070
+ constructor(data?: PartialMessage<GetPoolTransactionsRequest>);
1071
+ static readonly runtime: typeof proto3;
1072
+ static readonly typeName = "uniswap.liquidity.v2.GetPoolTransactionsRequest";
1073
+ static readonly fields: FieldList;
1074
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolTransactionsRequest;
1075
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolTransactionsRequest;
1076
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolTransactionsRequest;
1077
+ static equals(a: GetPoolTransactionsRequest | PlainMessage<GetPoolTransactionsRequest> | undefined, b: GetPoolTransactionsRequest | PlainMessage<GetPoolTransactionsRequest> | undefined): boolean;
1078
+ }
1079
+ /**
1080
+ * @generated from message uniswap.liquidity.v2.GetPoolTransactionsResponse
1081
+ */
1082
+ export declare class GetPoolTransactionsResponse extends Message<GetPoolTransactionsResponse> {
1083
+ /**
1084
+ * newest first
1085
+ *
1086
+ * @generated from field: repeated uniswap.liquidity.v2.PoolTransaction transactions = 1;
1087
+ */
1088
+ transactions: PoolTransaction[];
1089
+ /**
1090
+ * Cursor for the next (older) page; unset when there are no older rows.
1091
+ *
1092
+ * @generated from field: optional uniswap.liquidity.v2.PoolTransactionCursor next_cursor = 2;
1093
+ */
1094
+ nextCursor?: PoolTransactionCursor;
1095
+ constructor(data?: PartialMessage<GetPoolTransactionsResponse>);
1096
+ static readonly runtime: typeof proto3;
1097
+ static readonly typeName = "uniswap.liquidity.v2.GetPoolTransactionsResponse";
1098
+ static readonly fields: FieldList;
1099
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolTransactionsResponse;
1100
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolTransactionsResponse;
1101
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolTransactionsResponse;
1102
+ static equals(a: GetPoolTransactionsResponse | PlainMessage<GetPoolTransactionsResponse> | undefined, b: GetPoolTransactionsResponse | PlainMessage<GetPoolTransactionsResponse> | undefined): boolean;
1103
+ }
1044
1104
  /**
1045
1105
  * GetPosition — single LP position (Position Details Page).
1046
1106
  * V3/V4 positions are keyed by NFT token id; a V2 position is the wallet's
@@ -4,7 +4,7 @@
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
6
  import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
7
- import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HistoryDuration, HookEntry, LPAction, LPToken, PoolListCursor, PoolPricePoint, PoolReference, PoolSortBy, PoolSummary, PoolTick, PoolVolumeBucket, Position, PositionListCursor, PositionModifier, PositionPriceBounds, PositionSortBy, PositionStatus, PositionTickBounds, RangeStatus, V2PoolParameters } from "./types_pb.js";
7
+ import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HistoryDuration, HookEntry, LPAction, LPToken, PoolListCursor, PoolPricePoint, PoolReference, PoolSortBy, PoolSummary, PoolTick, PoolTransaction, PoolTransactionCursor, PoolVolumeBucket, Position, PositionListCursor, PositionModifier, PositionPriceBounds, PositionSortBy, PositionStatus, PositionTickBounds, RangeStatus, V2PoolParameters } from "./types_pb.js";
8
8
  /**
9
9
  * MigrateV2ToV3LPPosition
10
10
  *
@@ -1085,6 +1085,72 @@ GetPoolTicksResponse.typeName = "uniswap.liquidity.v2.GetPoolTicksResponse";
1085
1085
  GetPoolTicksResponse.fields = proto3.util.newFieldList(() => [
1086
1086
  { no: 1, name: "ticks", kind: "message", T: PoolTick, repeated: true },
1087
1087
  ]);
1088
+ /**
1089
+ * GetPoolTransactions — recent swaps/adds/removes for the PDP transactions
1090
+ * table. Routes by pool version to the V2/V3/V4 ClickHouse transaction stream.
1091
+ * Keyset-paginated newest-first; pass the previous response's next_cursor to
1092
+ * page older.
1093
+ *
1094
+ * @generated from message uniswap.liquidity.v2.GetPoolTransactionsRequest
1095
+ */
1096
+ export class GetPoolTransactionsRequest extends Message {
1097
+ constructor(data) {
1098
+ super();
1099
+ proto3.util.initPartial(data, this);
1100
+ }
1101
+ static fromBinary(bytes, options) {
1102
+ return new GetPoolTransactionsRequest().fromBinary(bytes, options);
1103
+ }
1104
+ static fromJson(jsonValue, options) {
1105
+ return new GetPoolTransactionsRequest().fromJson(jsonValue, options);
1106
+ }
1107
+ static fromJsonString(jsonString, options) {
1108
+ return new GetPoolTransactionsRequest().fromJsonString(jsonString, options);
1109
+ }
1110
+ static equals(a, b) {
1111
+ return proto3.util.equals(GetPoolTransactionsRequest, a, b);
1112
+ }
1113
+ }
1114
+ GetPoolTransactionsRequest.runtime = proto3;
1115
+ GetPoolTransactionsRequest.typeName = "uniswap.liquidity.v2.GetPoolTransactionsRequest";
1116
+ GetPoolTransactionsRequest.fields = proto3.util.newFieldList(() => [
1117
+ { no: 1, name: "pool", kind: "message", T: PoolReference },
1118
+ { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1119
+ { no: 3, name: "cursor", kind: "message", T: PoolTransactionCursor, opt: true },
1120
+ ]);
1121
+ /**
1122
+ * @generated from message uniswap.liquidity.v2.GetPoolTransactionsResponse
1123
+ */
1124
+ export class GetPoolTransactionsResponse extends Message {
1125
+ constructor(data) {
1126
+ super();
1127
+ /**
1128
+ * newest first
1129
+ *
1130
+ * @generated from field: repeated uniswap.liquidity.v2.PoolTransaction transactions = 1;
1131
+ */
1132
+ this.transactions = [];
1133
+ proto3.util.initPartial(data, this);
1134
+ }
1135
+ static fromBinary(bytes, options) {
1136
+ return new GetPoolTransactionsResponse().fromBinary(bytes, options);
1137
+ }
1138
+ static fromJson(jsonValue, options) {
1139
+ return new GetPoolTransactionsResponse().fromJson(jsonValue, options);
1140
+ }
1141
+ static fromJsonString(jsonString, options) {
1142
+ return new GetPoolTransactionsResponse().fromJsonString(jsonString, options);
1143
+ }
1144
+ static equals(a, b) {
1145
+ return proto3.util.equals(GetPoolTransactionsResponse, a, b);
1146
+ }
1147
+ }
1148
+ GetPoolTransactionsResponse.runtime = proto3;
1149
+ GetPoolTransactionsResponse.typeName = "uniswap.liquidity.v2.GetPoolTransactionsResponse";
1150
+ GetPoolTransactionsResponse.fields = proto3.util.newFieldList(() => [
1151
+ { no: 1, name: "transactions", kind: "message", T: PoolTransaction, repeated: true },
1152
+ { no: 2, name: "next_cursor", kind: "message", T: PoolTransactionCursor, opt: true },
1153
+ ]);
1088
1154
  /**
1089
1155
  * GetPosition — single LP position (Position Details Page).
1090
1156
  * V3/V4 positions are keyed by NFT token id; a V2 position is the wallet's
@@ -231,6 +231,31 @@ export declare enum PositionSortBy {
231
231
  */
232
232
  APR = 5
233
233
  }
234
+ /**
235
+ * Normalized pool transaction for the PDP transactions table, unified across
236
+ * V2/V3/V4. SWAP = swap; ADD = V2/V3 mint or V4 positive modify_liquidity;
237
+ * REMOVE = V2/V3 burn or V4 negative modify_liquidity.
238
+ *
239
+ * @generated from enum uniswap.liquidity.v2.PoolTransactionType
240
+ */
241
+ export declare enum PoolTransactionType {
242
+ /**
243
+ * @generated from enum value: POOL_TRANSACTION_TYPE_UNSPECIFIED = 0;
244
+ */
245
+ UNSPECIFIED = 0,
246
+ /**
247
+ * @generated from enum value: POOL_TRANSACTION_TYPE_SWAP = 1;
248
+ */
249
+ SWAP = 1,
250
+ /**
251
+ * @generated from enum value: POOL_TRANSACTION_TYPE_ADD = 2;
252
+ */
253
+ ADD = 2,
254
+ /**
255
+ * @generated from enum value: POOL_TRANSACTION_TYPE_REMOVE = 3;
256
+ */
257
+ REMOVE = 3
258
+ }
234
259
  /**
235
260
  * @generated from message uniswap.liquidity.v2.LPToken
236
261
  */
@@ -763,6 +788,14 @@ export declare class PoolSummary extends Message<PoolSummary> {
763
788
  * @generated from field: optional bool is_dynamic_fee = 24;
764
789
  */
765
790
  isDynamicFee?: boolean;
791
+ /**
792
+ * Live Merkl LP-incentive campaigns for this pool (V3/V4). Composed at read
793
+ * time from Merkl (not Aurora); empty when the pool has no live allowlisted
794
+ * campaign or the lookup degrades. One entry per campaign — not aggregated.
795
+ *
796
+ * @generated from field: repeated uniswap.liquidity.v2.RewardsCampaign rewards_campaigns = 25;
797
+ */
798
+ rewardsCampaigns: RewardsCampaign[];
766
799
  constructor(data?: PartialMessage<PoolSummary>);
767
800
  static readonly runtime: typeof proto3;
768
801
  static readonly typeName = "uniswap.liquidity.v2.PoolSummary";
@@ -772,6 +805,104 @@ export declare class PoolSummary extends Message<PoolSummary> {
772
805
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolSummary;
773
806
  static equals(a: PoolSummary | PlainMessage<PoolSummary> | undefined, b: PoolSummary | PlainMessage<PoolSummary> | undefined): boolean;
774
807
  }
808
+ /**
809
+ * A reward token's on-chain identity, so a client can interpret and format a
810
+ * campaign's amounts (they're in this token's own units, on its distribution
811
+ * chain). Mirrors the APR backend reward-token shape (data-api pools.v1.Token).
812
+ *
813
+ * @generated from message uniswap.liquidity.v2.RewardToken
814
+ */
815
+ export declare class RewardToken extends Message<RewardToken> {
816
+ /**
817
+ * @generated from field: int32 chain_id = 1;
818
+ */
819
+ chainId: number;
820
+ /**
821
+ * @generated from field: string address = 2;
822
+ */
823
+ address: string;
824
+ /**
825
+ * @generated from field: optional string symbol = 3;
826
+ */
827
+ symbol?: string;
828
+ /**
829
+ * @generated from field: optional int32 decimals = 4;
830
+ */
831
+ decimals?: number;
832
+ /**
833
+ * @generated from field: optional string name = 5;
834
+ */
835
+ name?: string;
836
+ /**
837
+ * @generated from field: bool is_native = 6;
838
+ */
839
+ isNative: boolean;
840
+ constructor(data?: PartialMessage<RewardToken>);
841
+ static readonly runtime: typeof proto3;
842
+ static readonly typeName = "uniswap.liquidity.v2.RewardToken";
843
+ static readonly fields: FieldList;
844
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RewardToken;
845
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RewardToken;
846
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RewardToken;
847
+ static equals(a: RewardToken | PlainMessage<RewardToken> | undefined, b: RewardToken | PlainMessage<RewardToken> | undefined): boolean;
848
+ }
849
+ /**
850
+ * One live Merkl LP-incentive campaign for a pool (V3/V4). A pool may run
851
+ * several concurrent campaigns in different reward tokens; each entry is a
852
+ * single campaign, carrying its own reward token so amounts stay per-token.
853
+ *
854
+ * @generated from message uniswap.liquidity.v2.RewardsCampaign
855
+ */
856
+ export declare class RewardsCampaign extends Message<RewardsCampaign> {
857
+ /**
858
+ * Merkl campaign id.
859
+ *
860
+ * @generated from field: string id = 1;
861
+ */
862
+ id: string;
863
+ /**
864
+ * Extra APR from this campaign's incentives, on top of PoolSummary.apr
865
+ * (fees). Percent.
866
+ *
867
+ * @generated from field: double boosted_apr = 2;
868
+ */
869
+ boostedApr: number;
870
+ /**
871
+ * Campaign window, unix seconds.
872
+ *
873
+ * @generated from field: int64 start_timestamp = 3;
874
+ */
875
+ startTimestamp: bigint;
876
+ /**
877
+ * @generated from field: int64 end_timestamp = 4;
878
+ */
879
+ endTimestamp: bigint;
880
+ /**
881
+ * Total reward tokens allocated + distributed so far (uint256 decimal
882
+ * strings, in reward_token's own units).
883
+ *
884
+ * @generated from field: string total_reward_allocation = 5;
885
+ */
886
+ totalRewardAllocation: string;
887
+ /**
888
+ * @generated from field: string distributed_rewards = 6;
889
+ */
890
+ distributedRewards: string;
891
+ /**
892
+ * The token this campaign pays out; interprets the amounts above.
893
+ *
894
+ * @generated from field: uniswap.liquidity.v2.RewardToken reward_token = 7;
895
+ */
896
+ rewardToken?: RewardToken;
897
+ constructor(data?: PartialMessage<RewardsCampaign>);
898
+ static readonly runtime: typeof proto3;
899
+ static readonly typeName = "uniswap.liquidity.v2.RewardsCampaign";
900
+ static readonly fields: FieldList;
901
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RewardsCampaign;
902
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RewardsCampaign;
903
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RewardsCampaign;
904
+ static equals(a: RewardsCampaign | PlainMessage<RewardsCampaign> | undefined, b: RewardsCampaign | PlainMessage<RewardsCampaign> | undefined): boolean;
905
+ }
775
906
  /**
776
907
  * @generated from message uniswap.liquidity.v2.PoolListCursor
777
908
  */
@@ -1197,3 +1328,102 @@ export declare class PoolTick extends Message<PoolTick> {
1197
1328
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolTick;
1198
1329
  static equals(a: PoolTick | PlainMessage<PoolTick> | undefined, b: PoolTick | PlainMessage<PoolTick> | undefined): boolean;
1199
1330
  }
1331
+ /**
1332
+ * @generated from message uniswap.liquidity.v2.PoolTransaction
1333
+ */
1334
+ export declare class PoolTransaction extends Message<PoolTransaction> {
1335
+ /**
1336
+ * @generated from field: uniswap.liquidity.v2.PoolTransactionType type = 1;
1337
+ */
1338
+ type: PoolTransactionType;
1339
+ /**
1340
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
1341
+ */
1342
+ chainId: ChainId;
1343
+ /**
1344
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol_version = 3;
1345
+ */
1346
+ protocolVersion: Protocols;
1347
+ /**
1348
+ * @generated from field: string tx_hash = 4;
1349
+ */
1350
+ txHash: string;
1351
+ /**
1352
+ * unix seconds
1353
+ *
1354
+ * @generated from field: int64 timestamp = 5;
1355
+ */
1356
+ timestamp: bigint;
1357
+ /**
1358
+ * @generated from field: int64 block_number = 6;
1359
+ */
1360
+ blockNumber: bigint;
1361
+ /**
1362
+ * The transaction's initiator (tx_from / sender), i.e. the GraphQL `account`.
1363
+ *
1364
+ * @generated from field: string maker = 7;
1365
+ */
1366
+ maker: string;
1367
+ /**
1368
+ * @generated from field: string token0_address = 8;
1369
+ */
1370
+ token0Address: string;
1371
+ /**
1372
+ * @generated from field: string token1_address = 9;
1373
+ */
1374
+ token1Address: string;
1375
+ /**
1376
+ * Signed decimal token amounts (direction in the sign, e.g. "-0.0003115");
1377
+ * token units, not raw. Unset when the source amount is missing.
1378
+ *
1379
+ * @generated from field: optional string amount0 = 10;
1380
+ */
1381
+ amount0?: string;
1382
+ /**
1383
+ * @generated from field: optional string amount1 = 11;
1384
+ */
1385
+ amount1?: string;
1386
+ /**
1387
+ * Whole-transaction USD value (GraphQL usdValue.value). Unset when a side's
1388
+ * price/decimals are unavailable.
1389
+ *
1390
+ * @generated from field: optional double amount_usd = 12;
1391
+ */
1392
+ amountUsd?: number;
1393
+ constructor(data?: PartialMessage<PoolTransaction>);
1394
+ static readonly runtime: typeof proto3;
1395
+ static readonly typeName = "uniswap.liquidity.v2.PoolTransaction";
1396
+ static readonly fields: FieldList;
1397
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolTransaction;
1398
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolTransaction;
1399
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolTransaction;
1400
+ static equals(a: PoolTransaction | PlainMessage<PoolTransaction> | undefined, b: PoolTransaction | PlainMessage<PoolTransaction> | undefined): boolean;
1401
+ }
1402
+ /**
1403
+ * Keyset cursor for GetPoolTransactions. global_sequence_number is a uint64
1404
+ * carried as a string. chain_id disambiguates rows at tied timestamps.
1405
+ *
1406
+ * @generated from message uniswap.liquidity.v2.PoolTransactionCursor
1407
+ */
1408
+ export declare class PoolTransactionCursor extends Message<PoolTransactionCursor> {
1409
+ /**
1410
+ * @generated from field: int64 timestamp = 1;
1411
+ */
1412
+ timestamp: bigint;
1413
+ /**
1414
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
1415
+ */
1416
+ chainId: ChainId;
1417
+ /**
1418
+ * @generated from field: string global_sequence_number = 3;
1419
+ */
1420
+ globalSequenceNumber: string;
1421
+ constructor(data?: PartialMessage<PoolTransactionCursor>);
1422
+ static readonly runtime: typeof proto3;
1423
+ static readonly typeName = "uniswap.liquidity.v2.PoolTransactionCursor";
1424
+ static readonly fields: FieldList;
1425
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolTransactionCursor;
1426
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolTransactionCursor;
1427
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolTransactionCursor;
1428
+ static equals(a: PoolTransactionCursor | PlainMessage<PoolTransactionCursor> | undefined, b: PoolTransactionCursor | PlainMessage<PoolTransactionCursor> | undefined): boolean;
1429
+ }
@@ -301,6 +301,39 @@ proto3.util.setEnumType(PositionSortBy, "uniswap.liquidity.v2.PositionSortBy", [
301
301
  { no: 4, name: "POSITION_SORT_BY_FEES" },
302
302
  { no: 5, name: "POSITION_SORT_BY_APR" },
303
303
  ]);
304
+ /**
305
+ * Normalized pool transaction for the PDP transactions table, unified across
306
+ * V2/V3/V4. SWAP = swap; ADD = V2/V3 mint or V4 positive modify_liquidity;
307
+ * REMOVE = V2/V3 burn or V4 negative modify_liquidity.
308
+ *
309
+ * @generated from enum uniswap.liquidity.v2.PoolTransactionType
310
+ */
311
+ export var PoolTransactionType;
312
+ (function (PoolTransactionType) {
313
+ /**
314
+ * @generated from enum value: POOL_TRANSACTION_TYPE_UNSPECIFIED = 0;
315
+ */
316
+ PoolTransactionType[PoolTransactionType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
317
+ /**
318
+ * @generated from enum value: POOL_TRANSACTION_TYPE_SWAP = 1;
319
+ */
320
+ PoolTransactionType[PoolTransactionType["SWAP"] = 1] = "SWAP";
321
+ /**
322
+ * @generated from enum value: POOL_TRANSACTION_TYPE_ADD = 2;
323
+ */
324
+ PoolTransactionType[PoolTransactionType["ADD"] = 2] = "ADD";
325
+ /**
326
+ * @generated from enum value: POOL_TRANSACTION_TYPE_REMOVE = 3;
327
+ */
328
+ PoolTransactionType[PoolTransactionType["REMOVE"] = 3] = "REMOVE";
329
+ })(PoolTransactionType || (PoolTransactionType = {}));
330
+ // Retrieve enum metadata with: proto3.getEnumType(PoolTransactionType)
331
+ proto3.util.setEnumType(PoolTransactionType, "uniswap.liquidity.v2.PoolTransactionType", [
332
+ { no: 0, name: "POOL_TRANSACTION_TYPE_UNSPECIFIED" },
333
+ { no: 1, name: "POOL_TRANSACTION_TYPE_SWAP" },
334
+ { no: 2, name: "POOL_TRANSACTION_TYPE_ADD" },
335
+ { no: 3, name: "POOL_TRANSACTION_TYPE_REMOVE" },
336
+ ]);
304
337
  /**
305
338
  * @generated from message uniswap.liquidity.v2.LPToken
306
339
  */
@@ -934,6 +967,14 @@ export class PoolSummary extends Message {
934
967
  * @generated from field: double volume_usd_1d = 8;
935
968
  */
936
969
  this.volumeUsd1d = 0;
970
+ /**
971
+ * Live Merkl LP-incentive campaigns for this pool (V3/V4). Composed at read
972
+ * time from Merkl (not Aurora); empty when the pool has no live allowlisted
973
+ * campaign or the lookup degrades. One entry per campaign — not aggregated.
974
+ *
975
+ * @generated from field: repeated uniswap.liquidity.v2.RewardsCampaign rewards_campaigns = 25;
976
+ */
977
+ this.rewardsCampaigns = [];
937
978
  proto3.util.initPartial(data, this);
938
979
  }
939
980
  static fromBinary(bytes, options) {
@@ -976,6 +1017,124 @@ PoolSummary.fields = proto3.util.newFieldList(() => [
976
1017
  { no: 22, name: "token0_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
977
1018
  { no: 23, name: "token1_supply", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
978
1019
  { no: 24, name: "is_dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1020
+ { no: 25, name: "rewards_campaigns", kind: "message", T: RewardsCampaign, repeated: true },
1021
+ ]);
1022
+ /**
1023
+ * A reward token's on-chain identity, so a client can interpret and format a
1024
+ * campaign's amounts (they're in this token's own units, on its distribution
1025
+ * chain). Mirrors the APR backend reward-token shape (data-api pools.v1.Token).
1026
+ *
1027
+ * @generated from message uniswap.liquidity.v2.RewardToken
1028
+ */
1029
+ export class RewardToken extends Message {
1030
+ constructor(data) {
1031
+ super();
1032
+ /**
1033
+ * @generated from field: int32 chain_id = 1;
1034
+ */
1035
+ this.chainId = 0;
1036
+ /**
1037
+ * @generated from field: string address = 2;
1038
+ */
1039
+ this.address = "";
1040
+ /**
1041
+ * @generated from field: bool is_native = 6;
1042
+ */
1043
+ this.isNative = false;
1044
+ proto3.util.initPartial(data, this);
1045
+ }
1046
+ static fromBinary(bytes, options) {
1047
+ return new RewardToken().fromBinary(bytes, options);
1048
+ }
1049
+ static fromJson(jsonValue, options) {
1050
+ return new RewardToken().fromJson(jsonValue, options);
1051
+ }
1052
+ static fromJsonString(jsonString, options) {
1053
+ return new RewardToken().fromJsonString(jsonString, options);
1054
+ }
1055
+ static equals(a, b) {
1056
+ return proto3.util.equals(RewardToken, a, b);
1057
+ }
1058
+ }
1059
+ RewardToken.runtime = proto3;
1060
+ RewardToken.typeName = "uniswap.liquidity.v2.RewardToken";
1061
+ RewardToken.fields = proto3.util.newFieldList(() => [
1062
+ { no: 1, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1063
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1064
+ { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1065
+ { no: 4, name: "decimals", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1066
+ { no: 5, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1067
+ { no: 6, name: "is_native", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1068
+ ]);
1069
+ /**
1070
+ * One live Merkl LP-incentive campaign for a pool (V3/V4). A pool may run
1071
+ * several concurrent campaigns in different reward tokens; each entry is a
1072
+ * single campaign, carrying its own reward token so amounts stay per-token.
1073
+ *
1074
+ * @generated from message uniswap.liquidity.v2.RewardsCampaign
1075
+ */
1076
+ export class RewardsCampaign extends Message {
1077
+ constructor(data) {
1078
+ super();
1079
+ /**
1080
+ * Merkl campaign id.
1081
+ *
1082
+ * @generated from field: string id = 1;
1083
+ */
1084
+ this.id = "";
1085
+ /**
1086
+ * Extra APR from this campaign's incentives, on top of PoolSummary.apr
1087
+ * (fees). Percent.
1088
+ *
1089
+ * @generated from field: double boosted_apr = 2;
1090
+ */
1091
+ this.boostedApr = 0;
1092
+ /**
1093
+ * Campaign window, unix seconds.
1094
+ *
1095
+ * @generated from field: int64 start_timestamp = 3;
1096
+ */
1097
+ this.startTimestamp = protoInt64.zero;
1098
+ /**
1099
+ * @generated from field: int64 end_timestamp = 4;
1100
+ */
1101
+ this.endTimestamp = protoInt64.zero;
1102
+ /**
1103
+ * Total reward tokens allocated + distributed so far (uint256 decimal
1104
+ * strings, in reward_token's own units).
1105
+ *
1106
+ * @generated from field: string total_reward_allocation = 5;
1107
+ */
1108
+ this.totalRewardAllocation = "";
1109
+ /**
1110
+ * @generated from field: string distributed_rewards = 6;
1111
+ */
1112
+ this.distributedRewards = "";
1113
+ proto3.util.initPartial(data, this);
1114
+ }
1115
+ static fromBinary(bytes, options) {
1116
+ return new RewardsCampaign().fromBinary(bytes, options);
1117
+ }
1118
+ static fromJson(jsonValue, options) {
1119
+ return new RewardsCampaign().fromJson(jsonValue, options);
1120
+ }
1121
+ static fromJsonString(jsonString, options) {
1122
+ return new RewardsCampaign().fromJsonString(jsonString, options);
1123
+ }
1124
+ static equals(a, b) {
1125
+ return proto3.util.equals(RewardsCampaign, a, b);
1126
+ }
1127
+ }
1128
+ RewardsCampaign.runtime = proto3;
1129
+ RewardsCampaign.typeName = "uniswap.liquidity.v2.RewardsCampaign";
1130
+ RewardsCampaign.fields = proto3.util.newFieldList(() => [
1131
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1132
+ { no: 2, name: "boosted_apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1133
+ { no: 3, name: "start_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1134
+ { no: 4, name: "end_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1135
+ { no: 5, name: "total_reward_allocation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1136
+ { no: 6, name: "distributed_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1137
+ { no: 7, name: "reward_token", kind: "message", T: RewardToken },
979
1138
  ]);
980
1139
  /**
981
1140
  * @generated from message uniswap.liquidity.v2.PoolListCursor
@@ -1439,3 +1598,123 @@ PoolTick.fields = proto3.util.newFieldList(() => [
1439
1598
  { no: 4, name: "price_token0_in_token1", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1440
1599
  { no: 5, name: "price_token1_in_token0", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1441
1600
  ]);
1601
+ /**
1602
+ * @generated from message uniswap.liquidity.v2.PoolTransaction
1603
+ */
1604
+ export class PoolTransaction extends Message {
1605
+ constructor(data) {
1606
+ super();
1607
+ /**
1608
+ * @generated from field: uniswap.liquidity.v2.PoolTransactionType type = 1;
1609
+ */
1610
+ this.type = PoolTransactionType.UNSPECIFIED;
1611
+ /**
1612
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
1613
+ */
1614
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1615
+ /**
1616
+ * @generated from field: uniswap.liquidity.v1.Protocols protocol_version = 3;
1617
+ */
1618
+ this.protocolVersion = Protocols.V2;
1619
+ /**
1620
+ * @generated from field: string tx_hash = 4;
1621
+ */
1622
+ this.txHash = "";
1623
+ /**
1624
+ * unix seconds
1625
+ *
1626
+ * @generated from field: int64 timestamp = 5;
1627
+ */
1628
+ this.timestamp = protoInt64.zero;
1629
+ /**
1630
+ * @generated from field: int64 block_number = 6;
1631
+ */
1632
+ this.blockNumber = protoInt64.zero;
1633
+ /**
1634
+ * The transaction's initiator (tx_from / sender), i.e. the GraphQL `account`.
1635
+ *
1636
+ * @generated from field: string maker = 7;
1637
+ */
1638
+ this.maker = "";
1639
+ /**
1640
+ * @generated from field: string token0_address = 8;
1641
+ */
1642
+ this.token0Address = "";
1643
+ /**
1644
+ * @generated from field: string token1_address = 9;
1645
+ */
1646
+ this.token1Address = "";
1647
+ proto3.util.initPartial(data, this);
1648
+ }
1649
+ static fromBinary(bytes, options) {
1650
+ return new PoolTransaction().fromBinary(bytes, options);
1651
+ }
1652
+ static fromJson(jsonValue, options) {
1653
+ return new PoolTransaction().fromJson(jsonValue, options);
1654
+ }
1655
+ static fromJsonString(jsonString, options) {
1656
+ return new PoolTransaction().fromJsonString(jsonString, options);
1657
+ }
1658
+ static equals(a, b) {
1659
+ return proto3.util.equals(PoolTransaction, a, b);
1660
+ }
1661
+ }
1662
+ PoolTransaction.runtime = proto3;
1663
+ PoolTransaction.typeName = "uniswap.liquidity.v2.PoolTransaction";
1664
+ PoolTransaction.fields = proto3.util.newFieldList(() => [
1665
+ { no: 1, name: "type", kind: "enum", T: proto3.getEnumType(PoolTransactionType) },
1666
+ { no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1667
+ { no: 3, name: "protocol_version", kind: "enum", T: proto3.getEnumType(Protocols) },
1668
+ { no: 4, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1669
+ { no: 5, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1670
+ { no: 6, name: "block_number", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1671
+ { no: 7, name: "maker", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1672
+ { no: 8, name: "token0_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1673
+ { no: 9, name: "token1_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1674
+ { no: 10, name: "amount0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1675
+ { no: 11, name: "amount1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1676
+ { no: 12, name: "amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1677
+ ]);
1678
+ /**
1679
+ * Keyset cursor for GetPoolTransactions. global_sequence_number is a uint64
1680
+ * carried as a string. chain_id disambiguates rows at tied timestamps.
1681
+ *
1682
+ * @generated from message uniswap.liquidity.v2.PoolTransactionCursor
1683
+ */
1684
+ export class PoolTransactionCursor extends Message {
1685
+ constructor(data) {
1686
+ super();
1687
+ /**
1688
+ * @generated from field: int64 timestamp = 1;
1689
+ */
1690
+ this.timestamp = protoInt64.zero;
1691
+ /**
1692
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
1693
+ */
1694
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1695
+ /**
1696
+ * @generated from field: string global_sequence_number = 3;
1697
+ */
1698
+ this.globalSequenceNumber = "";
1699
+ proto3.util.initPartial(data, this);
1700
+ }
1701
+ static fromBinary(bytes, options) {
1702
+ return new PoolTransactionCursor().fromBinary(bytes, options);
1703
+ }
1704
+ static fromJson(jsonValue, options) {
1705
+ return new PoolTransactionCursor().fromJson(jsonValue, options);
1706
+ }
1707
+ static fromJsonString(jsonString, options) {
1708
+ return new PoolTransactionCursor().fromJsonString(jsonString, options);
1709
+ }
1710
+ static equals(a, b) {
1711
+ return proto3.util.equals(PoolTransactionCursor, a, b);
1712
+ }
1713
+ }
1714
+ PoolTransactionCursor.runtime = proto3;
1715
+ PoolTransactionCursor.typeName = "uniswap.liquidity.v2.PoolTransactionCursor";
1716
+ PoolTransactionCursor.fields = proto3.util.newFieldList(() => [
1717
+ { no: 1, name: "timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1718
+ { no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1719
+ { no: 3, name: "global_sequence_number", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1720
+ ]);
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.13",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },