@uniswap/client-liquidity 1.4.30 → 1.4.32
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 +1 -15
- package/dist/uniswap/liquidity/v2/api-LiquidityService_connectquery.js +1 -15
- package/dist/uniswap/liquidity/v2/api_connect.d.ts +1 -11
- package/dist/uniswap/liquidity/v2/api_connect.js +1 -11
- package/dist/uniswap/liquidity/v2/api_pb.d.ts +4 -79
- package/dist/uniswap/liquidity/v2/api_pb.js +4 -75
- package/dist/uniswap/liquidity/v2/types_pb.d.ts +9 -51
- package/dist/uniswap/liquidity/v2/types_pb.js +14 -66
- 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, GetPoolTransactionsRequest, GetPoolTransactionsResponse, GetPositionRequest, GetPositionResponse, GetWalletPositionsBalanceRequest, GetWalletPositionsBalanceResponse, GetWalletPositionsRequest, GetWalletPositionsResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse,
|
|
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, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
|
|
5
5
|
*/
|
|
@@ -112,20 +112,6 @@ export declare const hookList: {
|
|
|
112
112
|
readonly typeName: "uniswap.liquidity.v2.LiquidityService";
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
|
-
/**
|
|
116
|
-
* @generated from rpc uniswap.liquidity.v2.LiquidityService.ListPools
|
|
117
|
-
*/
|
|
118
|
-
export declare const listPools: {
|
|
119
|
-
readonly localName: "listPools";
|
|
120
|
-
readonly name: "ListPools";
|
|
121
|
-
readonly kind: MethodKind.Unary;
|
|
122
|
-
readonly I: typeof ListPoolsRequest;
|
|
123
|
-
readonly O: typeof ListPoolsResponse;
|
|
124
|
-
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
125
|
-
readonly service: {
|
|
126
|
-
readonly typeName: "uniswap.liquidity.v2.LiquidityService";
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
115
|
/**
|
|
130
116
|
* @generated from rpc uniswap.liquidity.v2.LiquidityService.GetPool
|
|
131
117
|
*/
|
|
@@ -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, GetPoolTransactionsRequest, GetPoolTransactionsResponse, GetPositionRequest, GetPositionResponse, GetWalletPositionsBalanceRequest, GetWalletPositionsBalanceResponse, GetWalletPositionsRequest, GetWalletPositionsResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse,
|
|
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, LPApprovalRequest, LPApprovalResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc uniswap.liquidity.v2.LiquidityService.MigrateV2ToV3LPPosition
|
|
9
9
|
*/
|
|
@@ -116,20 +116,6 @@ export const hookList = {
|
|
|
116
116
|
typeName: "uniswap.liquidity.v2.LiquidityService"
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
|
-
/**
|
|
120
|
-
* @generated from rpc uniswap.liquidity.v2.LiquidityService.ListPools
|
|
121
|
-
*/
|
|
122
|
-
export const listPools = {
|
|
123
|
-
localName: "listPools",
|
|
124
|
-
name: "ListPools",
|
|
125
|
-
kind: MethodKind.Unary,
|
|
126
|
-
I: ListPoolsRequest,
|
|
127
|
-
O: ListPoolsResponse,
|
|
128
|
-
idempotency: MethodIdempotency.NoSideEffects,
|
|
129
|
-
service: {
|
|
130
|
-
typeName: "uniswap.liquidity.v2.LiquidityService"
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
119
|
/**
|
|
134
120
|
* @generated from rpc uniswap.liquidity.v2.LiquidityService.GetPool
|
|
135
121
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
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,
|
|
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, 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
|
|
@@ -86,16 +86,6 @@ export declare const LiquidityService: {
|
|
|
86
86
|
readonly kind: MethodKind.Unary;
|
|
87
87
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
88
88
|
};
|
|
89
|
-
/**
|
|
90
|
-
* @generated from rpc uniswap.liquidity.v2.LiquidityService.ListPools
|
|
91
|
-
*/
|
|
92
|
-
readonly listPools: {
|
|
93
|
-
readonly name: "ListPools";
|
|
94
|
-
readonly I: typeof ListPoolsRequest;
|
|
95
|
-
readonly O: typeof ListPoolsResponse;
|
|
96
|
-
readonly kind: MethodKind.Unary;
|
|
97
|
-
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
98
|
-
};
|
|
99
89
|
/**
|
|
100
90
|
* @generated from rpc uniswap.liquidity.v2.LiquidityService.GetPool
|
|
101
91
|
*/
|
|
@@ -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, GetPoolTransactionsRequest, GetPoolTransactionsResponse, GetPositionRequest, GetPositionResponse, GetWalletPositionsBalanceRequest, GetWalletPositionsBalanceResponse, GetWalletPositionsRequest, GetWalletPositionsResponse, HookListRequest, HookListResponse, IncreasePositionRequest, IncreasePositionResponse,
|
|
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, 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
|
|
@@ -90,16 +90,6 @@ export const LiquidityService = {
|
|
|
90
90
|
kind: MethodKind.Unary,
|
|
91
91
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
92
92
|
},
|
|
93
|
-
/**
|
|
94
|
-
* @generated from rpc uniswap.liquidity.v2.LiquidityService.ListPools
|
|
95
|
-
*/
|
|
96
|
-
listPools: {
|
|
97
|
-
name: "ListPools",
|
|
98
|
-
I: ListPoolsRequest,
|
|
99
|
-
O: ListPoolsResponse,
|
|
100
|
-
kind: MethodKind.Unary,
|
|
101
|
-
idempotency: MethodIdempotency.NoSideEffects,
|
|
102
|
-
},
|
|
103
93
|
/**
|
|
104
94
|
* @generated from rpc uniswap.liquidity.v2.LiquidityService.GetPool
|
|
105
95
|
*/
|
|
@@ -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,
|
|
4
|
+
import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HistoryDuration, HookEntry, LPAction, LPToken, PoolPricePoint, PoolReference, 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
|
*
|
|
@@ -795,85 +795,10 @@ export declare class HookListResponse extends Message<HookListResponse> {
|
|
|
795
795
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HookListResponse;
|
|
796
796
|
static equals(a: HookListResponse | PlainMessage<HookListResponse> | undefined, b: HookListResponse | PlainMessage<HookListResponse> | undefined): boolean;
|
|
797
797
|
}
|
|
798
|
-
/**
|
|
799
|
-
* ListPools
|
|
800
|
-
*
|
|
801
|
-
* @generated from message uniswap.liquidity.v2.ListPoolsRequest
|
|
802
|
-
*/
|
|
803
|
-
export declare class ListPoolsRequest extends Message<ListPoolsRequest> {
|
|
804
|
-
/**
|
|
805
|
-
* @generated from field: repeated uniswap.liquidity.v1.ChainId chain_ids = 1;
|
|
806
|
-
*/
|
|
807
|
-
chainIds: ChainId[];
|
|
808
|
-
/**
|
|
809
|
-
* @generated from field: optional string token_address = 2;
|
|
810
|
-
*/
|
|
811
|
-
tokenAddress?: string;
|
|
812
|
-
/**
|
|
813
|
-
* @generated from field: optional string token0_address = 3;
|
|
814
|
-
*/
|
|
815
|
-
token0Address?: string;
|
|
816
|
-
/**
|
|
817
|
-
* @generated from field: optional string token1_address = 4;
|
|
818
|
-
*/
|
|
819
|
-
token1Address?: string;
|
|
820
|
-
/**
|
|
821
|
-
* @generated from field: optional uniswap.liquidity.v2.PoolSortBy sort_by = 5;
|
|
822
|
-
*/
|
|
823
|
-
sortBy?: PoolSortBy;
|
|
824
|
-
/**
|
|
825
|
-
* @generated from field: optional bool ascending = 6;
|
|
826
|
-
*/
|
|
827
|
-
ascending?: boolean;
|
|
828
|
-
/**
|
|
829
|
-
* @generated from field: optional int32 limit = 7;
|
|
830
|
-
*/
|
|
831
|
-
limit?: number;
|
|
832
|
-
/**
|
|
833
|
-
* @generated from field: optional uniswap.liquidity.v2.PoolListCursor cursor = 8;
|
|
834
|
-
*/
|
|
835
|
-
cursor?: PoolListCursor;
|
|
836
|
-
/**
|
|
837
|
-
* When true, exclude pools where either token is flagged as spam/unsafe
|
|
838
|
-
* (canonical safety verdict not BENIGN). Defaults to false.
|
|
839
|
-
*
|
|
840
|
-
* @generated from field: optional bool filter_spam = 9;
|
|
841
|
-
*/
|
|
842
|
-
filterSpam?: boolean;
|
|
843
|
-
constructor(data?: PartialMessage<ListPoolsRequest>);
|
|
844
|
-
static readonly runtime: typeof proto3;
|
|
845
|
-
static readonly typeName = "uniswap.liquidity.v2.ListPoolsRequest";
|
|
846
|
-
static readonly fields: FieldList;
|
|
847
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPoolsRequest;
|
|
848
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPoolsRequest;
|
|
849
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPoolsRequest;
|
|
850
|
-
static equals(a: ListPoolsRequest | PlainMessage<ListPoolsRequest> | undefined, b: ListPoolsRequest | PlainMessage<ListPoolsRequest> | undefined): boolean;
|
|
851
|
-
}
|
|
852
|
-
/**
|
|
853
|
-
* @generated from message uniswap.liquidity.v2.ListPoolsResponse
|
|
854
|
-
*/
|
|
855
|
-
export declare class ListPoolsResponse extends Message<ListPoolsResponse> {
|
|
856
|
-
/**
|
|
857
|
-
* @generated from field: repeated uniswap.liquidity.v2.PoolSummary pools = 1;
|
|
858
|
-
*/
|
|
859
|
-
pools: PoolSummary[];
|
|
860
|
-
/**
|
|
861
|
-
* @generated from field: optional uniswap.liquidity.v2.PoolListCursor next_cursor = 2;
|
|
862
|
-
*/
|
|
863
|
-
nextCursor?: PoolListCursor;
|
|
864
|
-
constructor(data?: PartialMessage<ListPoolsResponse>);
|
|
865
|
-
static readonly runtime: typeof proto3;
|
|
866
|
-
static readonly typeName = "uniswap.liquidity.v2.ListPoolsResponse";
|
|
867
|
-
static readonly fields: FieldList;
|
|
868
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPoolsResponse;
|
|
869
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPoolsResponse;
|
|
870
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPoolsResponse;
|
|
871
|
-
static equals(a: ListPoolsResponse | PlainMessage<ListPoolsResponse> | undefined, b: ListPoolsResponse | PlainMessage<ListPoolsResponse> | undefined): boolean;
|
|
872
|
-
}
|
|
873
798
|
/**
|
|
874
799
|
* GetPool — unified V2/V3/V4 pool details for the Pool Details Page.
|
|
875
|
-
*
|
|
876
|
-
*
|
|
800
|
+
* The response carries a PoolSummary (TVL included), enriched with 1d
|
|
801
|
+
* TVL/volume change from the ClickHouse pool-stat history.
|
|
877
802
|
*
|
|
878
803
|
* @generated from message uniswap.liquidity.v2.GetPoolRequest
|
|
879
804
|
*/
|
|
@@ -1168,7 +1093,7 @@ export declare class GetPositionResponse extends Message<GetPositionResponse> {
|
|
|
1168
1093
|
}
|
|
1169
1094
|
/**
|
|
1170
1095
|
* GetWalletPositions — a wallet's LP positions (Positions Page), paginated
|
|
1171
|
-
* with the service's structured-cursor convention
|
|
1096
|
+
* with the service's structured-cursor convention.
|
|
1172
1097
|
*
|
|
1173
1098
|
* @generated from message uniswap.liquidity.v2.GetWalletPositionsRequest
|
|
1174
1099
|
*/
|
|
@@ -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,
|
|
7
|
+
import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HistoryDuration, HookEntry, LPAction, LPToken, PoolPricePoint, PoolReference, 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
|
*
|
|
@@ -763,81 +763,10 @@ HookListResponse.fields = proto3.util.newFieldList(() => [
|
|
|
763
763
|
{ no: 1, name: "hooks", kind: "message", T: HookEntry, repeated: true },
|
|
764
764
|
{ no: 2, name: "total", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
765
765
|
]);
|
|
766
|
-
/**
|
|
767
|
-
* ListPools
|
|
768
|
-
*
|
|
769
|
-
* @generated from message uniswap.liquidity.v2.ListPoolsRequest
|
|
770
|
-
*/
|
|
771
|
-
export class ListPoolsRequest extends Message {
|
|
772
|
-
constructor(data) {
|
|
773
|
-
super();
|
|
774
|
-
/**
|
|
775
|
-
* @generated from field: repeated uniswap.liquidity.v1.ChainId chain_ids = 1;
|
|
776
|
-
*/
|
|
777
|
-
this.chainIds = [];
|
|
778
|
-
proto3.util.initPartial(data, this);
|
|
779
|
-
}
|
|
780
|
-
static fromBinary(bytes, options) {
|
|
781
|
-
return new ListPoolsRequest().fromBinary(bytes, options);
|
|
782
|
-
}
|
|
783
|
-
static fromJson(jsonValue, options) {
|
|
784
|
-
return new ListPoolsRequest().fromJson(jsonValue, options);
|
|
785
|
-
}
|
|
786
|
-
static fromJsonString(jsonString, options) {
|
|
787
|
-
return new ListPoolsRequest().fromJsonString(jsonString, options);
|
|
788
|
-
}
|
|
789
|
-
static equals(a, b) {
|
|
790
|
-
return proto3.util.equals(ListPoolsRequest, a, b);
|
|
791
|
-
}
|
|
792
|
-
}
|
|
793
|
-
ListPoolsRequest.runtime = proto3;
|
|
794
|
-
ListPoolsRequest.typeName = "uniswap.liquidity.v2.ListPoolsRequest";
|
|
795
|
-
ListPoolsRequest.fields = proto3.util.newFieldList(() => [
|
|
796
|
-
{ no: 1, name: "chain_ids", kind: "enum", T: proto3.getEnumType(ChainId), repeated: true },
|
|
797
|
-
{ no: 2, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
798
|
-
{ no: 3, name: "token0_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
799
|
-
{ no: 4, name: "token1_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
800
|
-
{ no: 5, name: "sort_by", kind: "enum", T: proto3.getEnumType(PoolSortBy), opt: true },
|
|
801
|
-
{ no: 6, name: "ascending", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
802
|
-
{ no: 7, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
803
|
-
{ no: 8, name: "cursor", kind: "message", T: PoolListCursor, opt: true },
|
|
804
|
-
{ no: 9, name: "filter_spam", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
805
|
-
]);
|
|
806
|
-
/**
|
|
807
|
-
* @generated from message uniswap.liquidity.v2.ListPoolsResponse
|
|
808
|
-
*/
|
|
809
|
-
export class ListPoolsResponse extends Message {
|
|
810
|
-
constructor(data) {
|
|
811
|
-
super();
|
|
812
|
-
/**
|
|
813
|
-
* @generated from field: repeated uniswap.liquidity.v2.PoolSummary pools = 1;
|
|
814
|
-
*/
|
|
815
|
-
this.pools = [];
|
|
816
|
-
proto3.util.initPartial(data, this);
|
|
817
|
-
}
|
|
818
|
-
static fromBinary(bytes, options) {
|
|
819
|
-
return new ListPoolsResponse().fromBinary(bytes, options);
|
|
820
|
-
}
|
|
821
|
-
static fromJson(jsonValue, options) {
|
|
822
|
-
return new ListPoolsResponse().fromJson(jsonValue, options);
|
|
823
|
-
}
|
|
824
|
-
static fromJsonString(jsonString, options) {
|
|
825
|
-
return new ListPoolsResponse().fromJsonString(jsonString, options);
|
|
826
|
-
}
|
|
827
|
-
static equals(a, b) {
|
|
828
|
-
return proto3.util.equals(ListPoolsResponse, a, b);
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
ListPoolsResponse.runtime = proto3;
|
|
832
|
-
ListPoolsResponse.typeName = "uniswap.liquidity.v2.ListPoolsResponse";
|
|
833
|
-
ListPoolsResponse.fields = proto3.util.newFieldList(() => [
|
|
834
|
-
{ no: 1, name: "pools", kind: "message", T: PoolSummary, repeated: true },
|
|
835
|
-
{ no: 2, name: "next_cursor", kind: "message", T: PoolListCursor, opt: true },
|
|
836
|
-
]);
|
|
837
766
|
/**
|
|
838
767
|
* GetPool — unified V2/V3/V4 pool details for the Pool Details Page.
|
|
839
|
-
*
|
|
840
|
-
*
|
|
768
|
+
* The response carries a PoolSummary (TVL included), enriched with 1d
|
|
769
|
+
* TVL/volume change from the ClickHouse pool-stat history.
|
|
841
770
|
*
|
|
842
771
|
* @generated from message uniswap.liquidity.v2.GetPoolRequest
|
|
843
772
|
*/
|
|
@@ -1222,7 +1151,7 @@ GetPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
|
1222
1151
|
]);
|
|
1223
1152
|
/**
|
|
1224
1153
|
* GetWalletPositions — a wallet's LP positions (Positions Page), paginated
|
|
1225
|
-
* with the service's structured-cursor convention
|
|
1154
|
+
* with the service's structured-cursor convention.
|
|
1226
1155
|
*
|
|
1227
1156
|
* @generated from message uniswap.liquidity.v2.GetWalletPositionsRequest
|
|
1228
1157
|
*/
|
|
@@ -67,23 +67,6 @@ export declare enum PoolProtocol {
|
|
|
67
67
|
*/
|
|
68
68
|
V4 = 3
|
|
69
69
|
}
|
|
70
|
-
/**
|
|
71
|
-
* @generated from enum uniswap.liquidity.v2.PoolSortBy
|
|
72
|
-
*/
|
|
73
|
-
export declare enum PoolSortBy {
|
|
74
|
-
/**
|
|
75
|
-
* @generated from enum value: POOL_SORT_BY_TVL_USD = 0;
|
|
76
|
-
*/
|
|
77
|
-
TVL_USD = 0,
|
|
78
|
-
/**
|
|
79
|
-
* @generated from enum value: POOL_SORT_BY_VOLUME_USD = 1;
|
|
80
|
-
*/
|
|
81
|
-
VOLUME_USD = 1,
|
|
82
|
-
/**
|
|
83
|
-
* @generated from enum value: POOL_SORT_BY_APR = 2;
|
|
84
|
-
*/
|
|
85
|
-
APR = 2
|
|
86
|
-
}
|
|
87
70
|
/**
|
|
88
71
|
* Chart time window. Mirrors data.v2's HistoryDuration (shared data.v2 protos
|
|
89
72
|
* are not importable from this package; duplication is the accepted approach
|
|
@@ -980,18 +963,18 @@ export declare class PoolCampaign extends Message<PoolCampaign> {
|
|
|
980
963
|
*/
|
|
981
964
|
totalRewardAllocation: string;
|
|
982
965
|
/**
|
|
983
|
-
*
|
|
984
|
-
*
|
|
966
|
+
* Share of total_reward_allocation emitted so far, same units — for a
|
|
967
|
+
* distributed-vs-total progress figure.
|
|
985
968
|
*
|
|
986
|
-
*
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
*
|
|
969
|
+
* ESTIMATE, not an upstream fact: Merkl reports no distributed or claimed
|
|
970
|
+
* amount per campaign, so data-api derives this as total_reward_allocation
|
|
971
|
+
* scaled by the fraction of the campaign window elapsed. It assumes uniform
|
|
972
|
+
* emission, so a campaign that pauses, fails, or pays on a curve still reads
|
|
973
|
+
* as exactly on schedule. Don't reconcile it against on-chain claims.
|
|
991
974
|
*
|
|
992
|
-
* @generated from field:
|
|
975
|
+
* @generated from field: string distributed_rewards = 8;
|
|
993
976
|
*/
|
|
994
|
-
|
|
977
|
+
distributedRewards: string;
|
|
995
978
|
constructor(data?: PartialMessage<PoolCampaign>);
|
|
996
979
|
static readonly runtime: typeof proto3;
|
|
997
980
|
static readonly typeName = "uniswap.liquidity.v2.PoolCampaign";
|
|
@@ -1088,31 +1071,6 @@ export declare class PositionReward extends Message<PositionReward> {
|
|
|
1088
1071
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PositionReward;
|
|
1089
1072
|
static equals(a: PositionReward | PlainMessage<PositionReward> | undefined, b: PositionReward | PlainMessage<PositionReward> | undefined): boolean;
|
|
1090
1073
|
}
|
|
1091
|
-
/**
|
|
1092
|
-
* @generated from message uniswap.liquidity.v2.PoolListCursor
|
|
1093
|
-
*/
|
|
1094
|
-
export declare class PoolListCursor extends Message<PoolListCursor> {
|
|
1095
|
-
/**
|
|
1096
|
-
* @generated from field: string sort_value = 1;
|
|
1097
|
-
*/
|
|
1098
|
-
sortValue: string;
|
|
1099
|
-
/**
|
|
1100
|
-
* @generated from field: string pool_identifier = 2;
|
|
1101
|
-
*/
|
|
1102
|
-
poolIdentifier: string;
|
|
1103
|
-
/**
|
|
1104
|
-
* @generated from field: int32 chain_id = 3;
|
|
1105
|
-
*/
|
|
1106
|
-
chainId: number;
|
|
1107
|
-
constructor(data?: PartialMessage<PoolListCursor>);
|
|
1108
|
-
static readonly runtime: typeof proto3;
|
|
1109
|
-
static readonly typeName = "uniswap.liquidity.v2.PoolListCursor";
|
|
1110
|
-
static readonly fields: FieldList;
|
|
1111
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolListCursor;
|
|
1112
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolListCursor;
|
|
1113
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolListCursor;
|
|
1114
|
-
static equals(a: PoolListCursor | PlainMessage<PoolListCursor> | undefined, b: PoolListCursor | PlainMessage<PoolListCursor> | undefined): boolean;
|
|
1115
|
-
}
|
|
1116
1074
|
/**
|
|
1117
1075
|
* Identifies one pool. address_or_id is the pair/pool address for V2/V3
|
|
1118
1076
|
* (0x + 40 hex chars) or the pool id for V4 (0x + 64 hex chars).
|
|
@@ -94,30 +94,6 @@ proto3.util.setEnumType(PoolProtocol, "uniswap.liquidity.v2.PoolProtocol", [
|
|
|
94
94
|
{ no: 2, name: "POOL_PROTOCOL_V3" },
|
|
95
95
|
{ no: 3, name: "POOL_PROTOCOL_V4" },
|
|
96
96
|
]);
|
|
97
|
-
/**
|
|
98
|
-
* @generated from enum uniswap.liquidity.v2.PoolSortBy
|
|
99
|
-
*/
|
|
100
|
-
export var PoolSortBy;
|
|
101
|
-
(function (PoolSortBy) {
|
|
102
|
-
/**
|
|
103
|
-
* @generated from enum value: POOL_SORT_BY_TVL_USD = 0;
|
|
104
|
-
*/
|
|
105
|
-
PoolSortBy[PoolSortBy["TVL_USD"] = 0] = "TVL_USD";
|
|
106
|
-
/**
|
|
107
|
-
* @generated from enum value: POOL_SORT_BY_VOLUME_USD = 1;
|
|
108
|
-
*/
|
|
109
|
-
PoolSortBy[PoolSortBy["VOLUME_USD"] = 1] = "VOLUME_USD";
|
|
110
|
-
/**
|
|
111
|
-
* @generated from enum value: POOL_SORT_BY_APR = 2;
|
|
112
|
-
*/
|
|
113
|
-
PoolSortBy[PoolSortBy["APR"] = 2] = "APR";
|
|
114
|
-
})(PoolSortBy || (PoolSortBy = {}));
|
|
115
|
-
// Retrieve enum metadata with: proto3.getEnumType(PoolSortBy)
|
|
116
|
-
proto3.util.setEnumType(PoolSortBy, "uniswap.liquidity.v2.PoolSortBy", [
|
|
117
|
-
{ no: 0, name: "POOL_SORT_BY_TVL_USD" },
|
|
118
|
-
{ no: 1, name: "POOL_SORT_BY_VOLUME_USD" },
|
|
119
|
-
{ no: 2, name: "POOL_SORT_BY_APR" },
|
|
120
|
-
]);
|
|
121
97
|
/**
|
|
122
98
|
* Chart time window. Mirrors data.v2's HistoryDuration (shared data.v2 protos
|
|
123
99
|
* are not importable from this package; duplication is the accepted approach
|
|
@@ -1192,6 +1168,19 @@ export class PoolCampaign extends Message {
|
|
|
1192
1168
|
* @generated from field: string total_reward_allocation = 5;
|
|
1193
1169
|
*/
|
|
1194
1170
|
this.totalRewardAllocation = "";
|
|
1171
|
+
/**
|
|
1172
|
+
* Share of total_reward_allocation emitted so far, same units — for a
|
|
1173
|
+
* distributed-vs-total progress figure.
|
|
1174
|
+
*
|
|
1175
|
+
* ESTIMATE, not an upstream fact: Merkl reports no distributed or claimed
|
|
1176
|
+
* amount per campaign, so data-api derives this as total_reward_allocation
|
|
1177
|
+
* scaled by the fraction of the campaign window elapsed. It assumes uniform
|
|
1178
|
+
* emission, so a campaign that pauses, fails, or pays on a curve still reads
|
|
1179
|
+
* as exactly on schedule. Don't reconcile it against on-chain claims.
|
|
1180
|
+
*
|
|
1181
|
+
* @generated from field: string distributed_rewards = 8;
|
|
1182
|
+
*/
|
|
1183
|
+
this.distributedRewards = "";
|
|
1195
1184
|
proto3.util.initPartial(data, this);
|
|
1196
1185
|
}
|
|
1197
1186
|
static fromBinary(bytes, options) {
|
|
@@ -1215,8 +1204,7 @@ PoolCampaign.fields = proto3.util.newFieldList(() => [
|
|
|
1215
1204
|
{ no: 3, name: "start_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1216
1205
|
{ no: 4, name: "end_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1217
1206
|
{ no: 5, name: "total_reward_allocation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1218
|
-
{ no:
|
|
1219
|
-
{ no: 7, name: "daily_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1207
|
+
{ no: 8, name: "distributed_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1220
1208
|
]);
|
|
1221
1209
|
/**
|
|
1222
1210
|
* A pool's live rewards in one reward token: the summed boost plus the campaigns
|
|
@@ -1311,46 +1299,6 @@ PositionReward.fields = proto3.util.newFieldList(() => [
|
|
|
1311
1299
|
{ no: 3, name: "unclaimed_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1312
1300
|
{ no: 4, name: "unclaimed_amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1313
1301
|
]);
|
|
1314
|
-
/**
|
|
1315
|
-
* @generated from message uniswap.liquidity.v2.PoolListCursor
|
|
1316
|
-
*/
|
|
1317
|
-
export class PoolListCursor extends Message {
|
|
1318
|
-
constructor(data) {
|
|
1319
|
-
super();
|
|
1320
|
-
/**
|
|
1321
|
-
* @generated from field: string sort_value = 1;
|
|
1322
|
-
*/
|
|
1323
|
-
this.sortValue = "";
|
|
1324
|
-
/**
|
|
1325
|
-
* @generated from field: string pool_identifier = 2;
|
|
1326
|
-
*/
|
|
1327
|
-
this.poolIdentifier = "";
|
|
1328
|
-
/**
|
|
1329
|
-
* @generated from field: int32 chain_id = 3;
|
|
1330
|
-
*/
|
|
1331
|
-
this.chainId = 0;
|
|
1332
|
-
proto3.util.initPartial(data, this);
|
|
1333
|
-
}
|
|
1334
|
-
static fromBinary(bytes, options) {
|
|
1335
|
-
return new PoolListCursor().fromBinary(bytes, options);
|
|
1336
|
-
}
|
|
1337
|
-
static fromJson(jsonValue, options) {
|
|
1338
|
-
return new PoolListCursor().fromJson(jsonValue, options);
|
|
1339
|
-
}
|
|
1340
|
-
static fromJsonString(jsonString, options) {
|
|
1341
|
-
return new PoolListCursor().fromJsonString(jsonString, options);
|
|
1342
|
-
}
|
|
1343
|
-
static equals(a, b) {
|
|
1344
|
-
return proto3.util.equals(PoolListCursor, a, b);
|
|
1345
|
-
}
|
|
1346
|
-
}
|
|
1347
|
-
PoolListCursor.runtime = proto3;
|
|
1348
|
-
PoolListCursor.typeName = "uniswap.liquidity.v2.PoolListCursor";
|
|
1349
|
-
PoolListCursor.fields = proto3.util.newFieldList(() => [
|
|
1350
|
-
{ no: 1, name: "sort_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1351
|
-
{ no: 2, name: "pool_identifier", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1352
|
-
{ no: 3, name: "chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1353
|
-
]);
|
|
1354
1302
|
/**
|
|
1355
1303
|
* Identifies one pool. address_or_id is the pair/pool address for V2/V3
|
|
1356
1304
|
* (0x + 40 hex chars) or the pool id for V4 (0x + 64 hex chars).
|