@uniswap/client-liquidity 1.4.12 → 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.
- package/dist/uniswap/liquidity/v2/api-LiquidityService_connectquery.d.ts +15 -1
- package/dist/uniswap/liquidity/v2/api-LiquidityService_connectquery.js +15 -1
- package/dist/uniswap/liquidity/v2/api_connect.d.ts +11 -1
- package/dist/uniswap/liquidity/v2/api_connect.js +11 -1
- package/dist/uniswap/liquidity/v2/api_pb.d.ts +61 -1
- package/dist/uniswap/liquidity/v2/api_pb.js +67 -1
- package/dist/uniswap/liquidity/v2/types_pb.d.ts +124 -0
- package/dist/uniswap/liquidity/v2/types_pb.js +153 -0
- package/package.json +1 -1
|
@@ -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
|
*/
|
|
@@ -1303,3 +1328,102 @@ export declare class PoolTick extends Message<PoolTick> {
|
|
|
1303
1328
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolTick;
|
|
1304
1329
|
static equals(a: PoolTick | PlainMessage<PoolTick> | undefined, b: PoolTick | PlainMessage<PoolTick> | undefined): boolean;
|
|
1305
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
|
*/
|
|
@@ -1565,3 +1598,123 @@ PoolTick.fields = proto3.util.newFieldList(() => [
|
|
|
1565
1598
|
{ no: 4, name: "price_token0_in_token1", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1566
1599
|
{ no: 5, name: "price_token1_in_token0", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1567
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
|
+
]);
|