@uniswap/client-liquidity 1.4.0 → 1.4.2

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,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, HookEntry, LPAction, LPToken, PoolListCursor, PoolSortBy, PoolSummary, PositionPriceBounds, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
4
+ import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, HistoryDuration, HookEntry, LPAction, LPToken, PoolListCursor, PoolPricePoint, PoolReference, PoolSortBy, PoolSummary, PoolTick, PoolVolumeBucket, Position, PositionListCursor, PositionPriceBounds, PositionStatus, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
5
5
  /**
6
6
  * MigrateV2ToV3LPPosition
7
7
  *
@@ -870,3 +870,308 @@ export declare class ListPoolsResponse extends Message<ListPoolsResponse> {
870
870
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPoolsResponse;
871
871
  static equals(a: ListPoolsResponse | PlainMessage<ListPoolsResponse> | undefined, b: ListPoolsResponse | PlainMessage<ListPoolsResponse> | undefined): boolean;
872
872
  }
873
+ /**
874
+ * GetPool — unified V2/V3/V4 pool details for the Pool Details Page.
875
+ * Responses reuse PoolSummary (same shape as ListPools rows, TVL included).
876
+ * TODO: tx_count and tvl 24h change await the TVL pipeline / stats tables.
877
+ *
878
+ * @generated from message uniswap.liquidity.v2.GetPoolRequest
879
+ */
880
+ export declare class GetPoolRequest extends Message<GetPoolRequest> {
881
+ /**
882
+ * @generated from field: uniswap.liquidity.v2.PoolReference pool = 1;
883
+ */
884
+ pool?: PoolReference;
885
+ constructor(data?: PartialMessage<GetPoolRequest>);
886
+ static readonly runtime: typeof proto3;
887
+ static readonly typeName = "uniswap.liquidity.v2.GetPoolRequest";
888
+ static readonly fields: FieldList;
889
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolRequest;
890
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolRequest;
891
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolRequest;
892
+ static equals(a: GetPoolRequest | PlainMessage<GetPoolRequest> | undefined, b: GetPoolRequest | PlainMessage<GetPoolRequest> | undefined): boolean;
893
+ }
894
+ /**
895
+ * @generated from message uniswap.liquidity.v2.GetPoolResponse
896
+ */
897
+ export declare class GetPoolResponse extends Message<GetPoolResponse> {
898
+ /**
899
+ * @generated from field: uniswap.liquidity.v2.PoolSummary pool = 1;
900
+ */
901
+ pool?: PoolSummary;
902
+ constructor(data?: PartialMessage<GetPoolResponse>);
903
+ static readonly runtime: typeof proto3;
904
+ static readonly typeName = "uniswap.liquidity.v2.GetPoolResponse";
905
+ static readonly fields: FieldList;
906
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolResponse;
907
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolResponse;
908
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolResponse;
909
+ static equals(a: GetPoolResponse | PlainMessage<GetPoolResponse> | undefined, b: GetPoolResponse | PlainMessage<GetPoolResponse> | undefined): boolean;
910
+ }
911
+ /**
912
+ * GetPoolHistoryPrice — pool relative-price chart (PDP graphs).
913
+ *
914
+ * @generated from message uniswap.liquidity.v2.GetPoolHistoryPriceRequest
915
+ */
916
+ export declare class GetPoolHistoryPriceRequest extends Message<GetPoolHistoryPriceRequest> {
917
+ /**
918
+ * @generated from field: uniswap.liquidity.v2.PoolReference pool = 1;
919
+ */
920
+ pool?: PoolReference;
921
+ /**
922
+ * UNSPECIFIED -> DAY
923
+ *
924
+ * @generated from field: uniswap.liquidity.v2.HistoryDuration duration = 2;
925
+ */
926
+ duration: HistoryDuration;
927
+ constructor(data?: PartialMessage<GetPoolHistoryPriceRequest>);
928
+ static readonly runtime: typeof proto3;
929
+ static readonly typeName = "uniswap.liquidity.v2.GetPoolHistoryPriceRequest";
930
+ static readonly fields: FieldList;
931
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolHistoryPriceRequest;
932
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolHistoryPriceRequest;
933
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolHistoryPriceRequest;
934
+ static equals(a: GetPoolHistoryPriceRequest | PlainMessage<GetPoolHistoryPriceRequest> | undefined, b: GetPoolHistoryPriceRequest | PlainMessage<GetPoolHistoryPriceRequest> | undefined): boolean;
935
+ }
936
+ /**
937
+ * @generated from message uniswap.liquidity.v2.GetPoolHistoryPriceResponse
938
+ */
939
+ export declare class GetPoolHistoryPriceResponse extends Message<GetPoolHistoryPriceResponse> {
940
+ /**
941
+ * ascending time order
942
+ *
943
+ * @generated from field: repeated uniswap.liquidity.v2.PoolPricePoint points = 1;
944
+ */
945
+ points: PoolPricePoint[];
946
+ constructor(data?: PartialMessage<GetPoolHistoryPriceResponse>);
947
+ static readonly runtime: typeof proto3;
948
+ static readonly typeName = "uniswap.liquidity.v2.GetPoolHistoryPriceResponse";
949
+ static readonly fields: FieldList;
950
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolHistoryPriceResponse;
951
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolHistoryPriceResponse;
952
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolHistoryPriceResponse;
953
+ static equals(a: GetPoolHistoryPriceResponse | PlainMessage<GetPoolHistoryPriceResponse> | undefined, b: GetPoolHistoryPriceResponse | PlainMessage<GetPoolHistoryPriceResponse> | undefined): boolean;
954
+ }
955
+ /**
956
+ * GetPoolHistoryVolume — pool swap-volume chart, USD (PDP graphs).
957
+ *
958
+ * @generated from message uniswap.liquidity.v2.GetPoolHistoryVolumeRequest
959
+ */
960
+ export declare class GetPoolHistoryVolumeRequest extends Message<GetPoolHistoryVolumeRequest> {
961
+ /**
962
+ * @generated from field: uniswap.liquidity.v2.PoolReference pool = 1;
963
+ */
964
+ pool?: PoolReference;
965
+ /**
966
+ * UNSPECIFIED -> DAY
967
+ *
968
+ * @generated from field: uniswap.liquidity.v2.HistoryDuration duration = 2;
969
+ */
970
+ duration: HistoryDuration;
971
+ constructor(data?: PartialMessage<GetPoolHistoryVolumeRequest>);
972
+ static readonly runtime: typeof proto3;
973
+ static readonly typeName = "uniswap.liquidity.v2.GetPoolHistoryVolumeRequest";
974
+ static readonly fields: FieldList;
975
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolHistoryVolumeRequest;
976
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolHistoryVolumeRequest;
977
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolHistoryVolumeRequest;
978
+ static equals(a: GetPoolHistoryVolumeRequest | PlainMessage<GetPoolHistoryVolumeRequest> | undefined, b: GetPoolHistoryVolumeRequest | PlainMessage<GetPoolHistoryVolumeRequest> | undefined): boolean;
979
+ }
980
+ /**
981
+ * @generated from message uniswap.liquidity.v2.GetPoolHistoryVolumeResponse
982
+ */
983
+ export declare class GetPoolHistoryVolumeResponse extends Message<GetPoolHistoryVolumeResponse> {
984
+ /**
985
+ * ascending time order
986
+ *
987
+ * @generated from field: repeated uniswap.liquidity.v2.PoolVolumeBucket buckets = 1;
988
+ */
989
+ buckets: PoolVolumeBucket[];
990
+ constructor(data?: PartialMessage<GetPoolHistoryVolumeResponse>);
991
+ static readonly runtime: typeof proto3;
992
+ static readonly typeName = "uniswap.liquidity.v2.GetPoolHistoryVolumeResponse";
993
+ static readonly fields: FieldList;
994
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolHistoryVolumeResponse;
995
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolHistoryVolumeResponse;
996
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolHistoryVolumeResponse;
997
+ static equals(a: GetPoolHistoryVolumeResponse | PlainMessage<GetPoolHistoryVolumeResponse> | undefined, b: GetPoolHistoryVolumeResponse | PlainMessage<GetPoolHistoryVolumeResponse> | undefined): boolean;
998
+ }
999
+ /**
1000
+ * GetPoolTicks — tick/liquidity distribution for the PDP liquidity chart.
1001
+ * V3/V4 only: V2 pools are constant-product and have no ticks — a V2
1002
+ * reference is rejected as invalid_argument.
1003
+ *
1004
+ * @generated from message uniswap.liquidity.v2.GetPoolTicksRequest
1005
+ */
1006
+ export declare class GetPoolTicksRequest extends Message<GetPoolTicksRequest> {
1007
+ /**
1008
+ * @generated from field: uniswap.liquidity.v2.PoolReference pool = 1;
1009
+ */
1010
+ pool?: PoolReference;
1011
+ /**
1012
+ * Ticks are returned in ascending tick_idx order. Optional cap on response
1013
+ * size for very wide pools; defaults to the full distribution.
1014
+ *
1015
+ * @generated from field: optional int32 limit = 2;
1016
+ */
1017
+ limit?: number;
1018
+ constructor(data?: PartialMessage<GetPoolTicksRequest>);
1019
+ static readonly runtime: typeof proto3;
1020
+ static readonly typeName = "uniswap.liquidity.v2.GetPoolTicksRequest";
1021
+ static readonly fields: FieldList;
1022
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolTicksRequest;
1023
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolTicksRequest;
1024
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolTicksRequest;
1025
+ static equals(a: GetPoolTicksRequest | PlainMessage<GetPoolTicksRequest> | undefined, b: GetPoolTicksRequest | PlainMessage<GetPoolTicksRequest> | undefined): boolean;
1026
+ }
1027
+ /**
1028
+ * @generated from message uniswap.liquidity.v2.GetPoolTicksResponse
1029
+ */
1030
+ export declare class GetPoolTicksResponse extends Message<GetPoolTicksResponse> {
1031
+ /**
1032
+ * @generated from field: repeated uniswap.liquidity.v2.PoolTick ticks = 1;
1033
+ */
1034
+ ticks: PoolTick[];
1035
+ constructor(data?: PartialMessage<GetPoolTicksResponse>);
1036
+ static readonly runtime: typeof proto3;
1037
+ static readonly typeName = "uniswap.liquidity.v2.GetPoolTicksResponse";
1038
+ static readonly fields: FieldList;
1039
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolTicksResponse;
1040
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolTicksResponse;
1041
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolTicksResponse;
1042
+ static equals(a: GetPoolTicksResponse | PlainMessage<GetPoolTicksResponse> | undefined, b: GetPoolTicksResponse | PlainMessage<GetPoolTicksResponse> | undefined): boolean;
1043
+ }
1044
+ /**
1045
+ * GetPosition — single LP position (Position Details Page).
1046
+ * V3/V4 positions are keyed by NFT token id; a V2 position is the wallet's
1047
+ * LP-share balance in a pair, keyed by (pair, wallet).
1048
+ *
1049
+ * @generated from message uniswap.liquidity.v2.GetPositionRequest
1050
+ */
1051
+ export declare class GetPositionRequest extends Message<GetPositionRequest> {
1052
+ /**
1053
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 1;
1054
+ */
1055
+ chainId: ChainId;
1056
+ /**
1057
+ * @generated from field: uniswap.liquidity.v1.Protocols version = 2;
1058
+ */
1059
+ version: Protocols;
1060
+ /**
1061
+ * Required for V3/V4.
1062
+ *
1063
+ * @generated from field: optional string token_id = 3;
1064
+ */
1065
+ tokenId?: string;
1066
+ /**
1067
+ * Required for V2 (with wallet_address).
1068
+ *
1069
+ * @generated from field: optional string pair_address = 4;
1070
+ */
1071
+ pairAddress?: string;
1072
+ /**
1073
+ * @generated from field: optional string wallet_address = 5;
1074
+ */
1075
+ walletAddress?: string;
1076
+ /**
1077
+ * V4 only. Defaults to the chain's canonical PositionManager; set it to the
1078
+ * permissioned PositionManager for permissioned positions.
1079
+ *
1080
+ * @generated from field: optional string position_manager_address = 6;
1081
+ */
1082
+ positionManagerAddress?: string;
1083
+ constructor(data?: PartialMessage<GetPositionRequest>);
1084
+ static readonly runtime: typeof proto3;
1085
+ static readonly typeName = "uniswap.liquidity.v2.GetPositionRequest";
1086
+ static readonly fields: FieldList;
1087
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPositionRequest;
1088
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPositionRequest;
1089
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPositionRequest;
1090
+ static equals(a: GetPositionRequest | PlainMessage<GetPositionRequest> | undefined, b: GetPositionRequest | PlainMessage<GetPositionRequest> | undefined): boolean;
1091
+ }
1092
+ /**
1093
+ * @generated from message uniswap.liquidity.v2.GetPositionResponse
1094
+ */
1095
+ export declare class GetPositionResponse extends Message<GetPositionResponse> {
1096
+ /**
1097
+ * @generated from field: uniswap.liquidity.v2.Position position = 1;
1098
+ */
1099
+ position?: Position;
1100
+ constructor(data?: PartialMessage<GetPositionResponse>);
1101
+ static readonly runtime: typeof proto3;
1102
+ static readonly typeName = "uniswap.liquidity.v2.GetPositionResponse";
1103
+ static readonly fields: FieldList;
1104
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPositionResponse;
1105
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPositionResponse;
1106
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPositionResponse;
1107
+ static equals(a: GetPositionResponse | PlainMessage<GetPositionResponse> | undefined, b: GetPositionResponse | PlainMessage<GetPositionResponse> | undefined): boolean;
1108
+ }
1109
+ /**
1110
+ * GetWalletPositions — a wallet's LP positions (Positions Page), paginated
1111
+ * with the service's structured-cursor convention (see ListPools).
1112
+ *
1113
+ * @generated from message uniswap.liquidity.v2.GetWalletPositionsRequest
1114
+ */
1115
+ export declare class GetWalletPositionsRequest extends Message<GetWalletPositionsRequest> {
1116
+ /**
1117
+ * @generated from field: string wallet_address = 1;
1118
+ */
1119
+ walletAddress: string;
1120
+ /**
1121
+ * Empty = all chains with positions data.
1122
+ *
1123
+ * @generated from field: repeated uniswap.liquidity.v1.ChainId chain_ids = 2;
1124
+ */
1125
+ chainIds: ChainId[];
1126
+ /**
1127
+ * Empty = all protocol versions.
1128
+ *
1129
+ * @generated from field: repeated uniswap.liquidity.v1.Protocols versions = 3;
1130
+ */
1131
+ versions: Protocols[];
1132
+ /**
1133
+ * Default 50, max 200.
1134
+ *
1135
+ * @generated from field: optional int32 limit = 4;
1136
+ */
1137
+ limit?: number;
1138
+ /**
1139
+ * @generated from field: optional uniswap.liquidity.v2.PositionListCursor cursor = 5;
1140
+ */
1141
+ cursor?: PositionListCursor;
1142
+ /**
1143
+ * Empty = all statuses (open and closed) — the behavior before this field.
1144
+ *
1145
+ * @generated from field: repeated uniswap.liquidity.v2.PositionStatus statuses = 6;
1146
+ */
1147
+ statuses: PositionStatus[];
1148
+ constructor(data?: PartialMessage<GetWalletPositionsRequest>);
1149
+ static readonly runtime: typeof proto3;
1150
+ static readonly typeName = "uniswap.liquidity.v2.GetWalletPositionsRequest";
1151
+ static readonly fields: FieldList;
1152
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWalletPositionsRequest;
1153
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWalletPositionsRequest;
1154
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletPositionsRequest;
1155
+ static equals(a: GetWalletPositionsRequest | PlainMessage<GetWalletPositionsRequest> | undefined, b: GetWalletPositionsRequest | PlainMessage<GetWalletPositionsRequest> | undefined): boolean;
1156
+ }
1157
+ /**
1158
+ * @generated from message uniswap.liquidity.v2.GetWalletPositionsResponse
1159
+ */
1160
+ export declare class GetWalletPositionsResponse extends Message<GetWalletPositionsResponse> {
1161
+ /**
1162
+ * @generated from field: repeated uniswap.liquidity.v2.Position positions = 1;
1163
+ */
1164
+ positions: Position[];
1165
+ /**
1166
+ * @generated from field: optional uniswap.liquidity.v2.PositionListCursor next_cursor = 2;
1167
+ */
1168
+ nextCursor?: PositionListCursor;
1169
+ constructor(data?: PartialMessage<GetWalletPositionsResponse>);
1170
+ static readonly runtime: typeof proto3;
1171
+ static readonly typeName = "uniswap.liquidity.v2.GetWalletPositionsResponse";
1172
+ static readonly fields: FieldList;
1173
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWalletPositionsResponse;
1174
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWalletPositionsResponse;
1175
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletPositionsResponse;
1176
+ static equals(a: GetWalletPositionsResponse | PlainMessage<GetWalletPositionsResponse> | undefined, b: GetWalletPositionsResponse | PlainMessage<GetWalletPositionsResponse> | undefined): boolean;
1177
+ }