@uniswap/client-data-api 0.0.136 → 0.0.137

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 { MethodKind } from "@bufbuild/protobuf";
2
- import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
2
+ import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v2.DataApiService.GetToken
5
5
  */
@@ -65,6 +65,19 @@ export declare const listTokens: {
65
65
  readonly typeName: "data.v2.DataApiService";
66
66
  };
67
67
  };
68
+ /**
69
+ * @generated from rpc data.v2.DataApiService.ListPools
70
+ */
71
+ export declare const listPools: {
72
+ readonly localName: "listPools";
73
+ readonly name: "ListPools";
74
+ readonly kind: MethodKind.Unary;
75
+ readonly I: typeof ListPoolsRequest;
76
+ readonly O: typeof ListPoolsResponse;
77
+ readonly service: {
78
+ readonly typeName: "data.v2.DataApiService";
79
+ };
80
+ };
68
81
  /**
69
82
  * @generated from rpc data.v2.DataApiService.GetTokenMarkets
70
83
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
6
+ import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v2.DataApiService.GetToken
9
9
  */
@@ -69,6 +69,19 @@ export const listTokens = {
69
69
  typeName: "data.v2.DataApiService"
70
70
  }
71
71
  };
72
+ /**
73
+ * @generated from rpc data.v2.DataApiService.ListPools
74
+ */
75
+ export const listPools = {
76
+ localName: "listPools",
77
+ name: "ListPools",
78
+ kind: MethodKind.Unary,
79
+ I: ListPoolsRequest,
80
+ O: ListPoolsResponse,
81
+ service: {
82
+ typeName: "data.v2.DataApiService"
83
+ }
84
+ };
72
85
  /**
73
86
  * @generated from rpc data.v2.DataApiService.GetTokenMarkets
74
87
  */
@@ -1,4 +1,4 @@
1
- import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
1
+ import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service data.v2.DataApiService
@@ -51,6 +51,15 @@ export declare const DataApiService: {
51
51
  readonly O: typeof ListTokensResponse;
52
52
  readonly kind: MethodKind.Unary;
53
53
  };
54
+ /**
55
+ * @generated from rpc data.v2.DataApiService.ListPools
56
+ */
57
+ readonly listPools: {
58
+ readonly name: "ListPools";
59
+ readonly I: typeof ListPoolsRequest;
60
+ readonly O: typeof ListPoolsResponse;
61
+ readonly kind: MethodKind.Unary;
62
+ };
54
63
  /**
55
64
  * @generated from rpc data.v2.DataApiService.GetTokenMarkets
56
65
  */
@@ -2,7 +2,7 @@
2
2
  // @generated from file data/v2/api.proto (package data.v2, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
5
+ import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenHistoryPriceRequest, GetTokenHistoryPriceResponse, GetTokenHistoryTVLRequest, GetTokenHistoryTVLResponse, GetTokenHistoryVolumeRequest, GetTokenHistoryVolumeResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenMultiChainRequest, GetTokenMultiChainResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, GetWalletNftsRequest, GetWalletNftsResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListLaunchesRequest, ListLaunchesResponse, ListLaunchpadsRequest, ListLaunchpadsResponse, ListPoolsRequest, ListPoolsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service data.v2.DataApiService
@@ -55,6 +55,15 @@ export const DataApiService = {
55
55
  O: ListTokensResponse,
56
56
  kind: MethodKind.Unary,
57
57
  },
58
+ /**
59
+ * @generated from rpc data.v2.DataApiService.ListPools
60
+ */
61
+ listPools: {
62
+ name: "ListPools",
63
+ I: ListPoolsRequest,
64
+ O: ListPoolsResponse,
65
+ kind: MethodKind.Unary,
66
+ },
58
67
  /**
59
68
  * @generated from rpc data.v2.DataApiService.GetTokenMarkets
60
69
  */
@@ -1,6 +1,6 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, Launchpad, MultichainToken, MultichainTokenMarket, Nft, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
3
+ import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, Launchpad, MultichainToken, MultichainTokenMarket, Nft, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
4
4
  import { EarnPosition, EarnVault } from "./earn_pb.js";
5
5
  import { PageRequest, PageResponse } from "./common_pb.js";
6
6
  /**
@@ -1095,6 +1095,66 @@ export declare class ListTokensResponse extends Message<ListTokensResponse> {
1095
1095
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTokensResponse;
1096
1096
  static equals(a: ListTokensResponse | PlainMessage<ListTokensResponse> | undefined, b: ListTokensResponse | PlainMessage<ListTokensResponse> | undefined): boolean;
1097
1097
  }
1098
+ /**
1099
+ * Ranked pool discovery: one RankedPool per pool, ordered by the requested
1100
+ * stat. Sorted by (sort.order_by, pool_id ASC) — pool_id is the tiebreaker so
1101
+ * keyset pagination stays stable when two pools share a sort value.
1102
+ *
1103
+ * @generated from message data.v2.ListPoolsRequest
1104
+ */
1105
+ export declare class ListPoolsRequest extends Message<ListPoolsRequest> {
1106
+ /**
1107
+ * required
1108
+ *
1109
+ * @generated from field: repeated uint32 chain_ids = 1;
1110
+ */
1111
+ chainIds: number[];
1112
+ /**
1113
+ * @generated from field: optional data.v2.PoolsSort sort = 2;
1114
+ */
1115
+ sort?: PoolsSort;
1116
+ /**
1117
+ * @generated from field: optional data.v2.PoolListFilter filter = 3;
1118
+ */
1119
+ filter?: PoolListFilter;
1120
+ /**
1121
+ * page_size (default 100, max 100) + page_token
1122
+ *
1123
+ * @generated from field: optional data.v2.PageRequest page = 4;
1124
+ */
1125
+ page?: PageRequest;
1126
+ constructor(data?: PartialMessage<ListPoolsRequest>);
1127
+ static readonly runtime: typeof proto3;
1128
+ static readonly typeName = "data.v2.ListPoolsRequest";
1129
+ static readonly fields: FieldList;
1130
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPoolsRequest;
1131
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPoolsRequest;
1132
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPoolsRequest;
1133
+ static equals(a: ListPoolsRequest | PlainMessage<ListPoolsRequest> | undefined, b: ListPoolsRequest | PlainMessage<ListPoolsRequest> | undefined): boolean;
1134
+ }
1135
+ /**
1136
+ * @generated from message data.v2.ListPoolsResponse
1137
+ */
1138
+ export declare class ListPoolsResponse extends Message<ListPoolsResponse> {
1139
+ /**
1140
+ * @generated from field: repeated data.v2.RankedPool pools = 1;
1141
+ */
1142
+ pools: RankedPool[];
1143
+ /**
1144
+ * next_page_token absent on last page
1145
+ *
1146
+ * @generated from field: data.v2.PageResponse page = 2;
1147
+ */
1148
+ page?: PageResponse;
1149
+ constructor(data?: PartialMessage<ListPoolsResponse>);
1150
+ static readonly runtime: typeof proto3;
1151
+ static readonly typeName = "data.v2.ListPoolsResponse";
1152
+ static readonly fields: FieldList;
1153
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPoolsResponse;
1154
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPoolsResponse;
1155
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPoolsResponse;
1156
+ static equals(a: ListPoolsResponse | PlainMessage<ListPoolsResponse> | undefined, b: ListPoolsResponse | PlainMessage<ListPoolsResponse> | undefined): boolean;
1157
+ }
1098
1158
  /**
1099
1159
  * Wallet NFT balances. EVM-only: a single owner_address covers all supported
1100
1160
  * EVM chains. Spam is returned and flagged by default; malicious is always dropped.
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
6
- import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, Launchpad, MultichainToken, MultichainTokenMarket, Nft, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
6
+ import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, Launchpad, MultichainToken, MultichainTokenMarket, Nft, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
7
7
  import { EarnPosition, EarnVault } from "./earn_pb.js";
8
8
  import { PageRequest, PageResponse } from "./common_pb.js";
9
9
  /**
@@ -1461,6 +1461,76 @@ ListTokensResponse.fields = proto3.util.newFieldList(() => [
1461
1461
  { no: 1, name: "multichain_tokens", kind: "message", T: RankedMultichainToken, repeated: true },
1462
1462
  { no: 2, name: "page", kind: "message", T: PageResponse },
1463
1463
  ]);
1464
+ /**
1465
+ * Ranked pool discovery: one RankedPool per pool, ordered by the requested
1466
+ * stat. Sorted by (sort.order_by, pool_id ASC) — pool_id is the tiebreaker so
1467
+ * keyset pagination stays stable when two pools share a sort value.
1468
+ *
1469
+ * @generated from message data.v2.ListPoolsRequest
1470
+ */
1471
+ export class ListPoolsRequest extends Message {
1472
+ constructor(data) {
1473
+ super();
1474
+ /**
1475
+ * required
1476
+ *
1477
+ * @generated from field: repeated uint32 chain_ids = 1;
1478
+ */
1479
+ this.chainIds = [];
1480
+ proto3.util.initPartial(data, this);
1481
+ }
1482
+ static fromBinary(bytes, options) {
1483
+ return new ListPoolsRequest().fromBinary(bytes, options);
1484
+ }
1485
+ static fromJson(jsonValue, options) {
1486
+ return new ListPoolsRequest().fromJson(jsonValue, options);
1487
+ }
1488
+ static fromJsonString(jsonString, options) {
1489
+ return new ListPoolsRequest().fromJsonString(jsonString, options);
1490
+ }
1491
+ static equals(a, b) {
1492
+ return proto3.util.equals(ListPoolsRequest, a, b);
1493
+ }
1494
+ }
1495
+ ListPoolsRequest.runtime = proto3;
1496
+ ListPoolsRequest.typeName = "data.v2.ListPoolsRequest";
1497
+ ListPoolsRequest.fields = proto3.util.newFieldList(() => [
1498
+ { no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
1499
+ { no: 2, name: "sort", kind: "message", T: PoolsSort, opt: true },
1500
+ { no: 3, name: "filter", kind: "message", T: PoolListFilter, opt: true },
1501
+ { no: 4, name: "page", kind: "message", T: PageRequest, opt: true },
1502
+ ]);
1503
+ /**
1504
+ * @generated from message data.v2.ListPoolsResponse
1505
+ */
1506
+ export class ListPoolsResponse extends Message {
1507
+ constructor(data) {
1508
+ super();
1509
+ /**
1510
+ * @generated from field: repeated data.v2.RankedPool pools = 1;
1511
+ */
1512
+ this.pools = [];
1513
+ proto3.util.initPartial(data, this);
1514
+ }
1515
+ static fromBinary(bytes, options) {
1516
+ return new ListPoolsResponse().fromBinary(bytes, options);
1517
+ }
1518
+ static fromJson(jsonValue, options) {
1519
+ return new ListPoolsResponse().fromJson(jsonValue, options);
1520
+ }
1521
+ static fromJsonString(jsonString, options) {
1522
+ return new ListPoolsResponse().fromJsonString(jsonString, options);
1523
+ }
1524
+ static equals(a, b) {
1525
+ return proto3.util.equals(ListPoolsResponse, a, b);
1526
+ }
1527
+ }
1528
+ ListPoolsResponse.runtime = proto3;
1529
+ ListPoolsResponse.typeName = "data.v2.ListPoolsResponse";
1530
+ ListPoolsResponse.fields = proto3.util.newFieldList(() => [
1531
+ { no: 1, name: "pools", kind: "message", T: RankedPool, repeated: true },
1532
+ { no: 2, name: "page", kind: "message", T: PageResponse },
1533
+ ]);
1464
1534
  /**
1465
1535
  * Wallet NFT balances. EVM-only: a single owner_address covers all supported
1466
1536
  * EVM chains. Spam is returned and flagged by default; malicious is always dropped.
@@ -1,6 +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 { TimestampedValue, TokenType } from "../v1/types_pb.js";
4
+ import { ProtocolVersion } from "../v1/poolTypes_pb.js";
4
5
  /**
5
6
  * @generated from enum data.v2.TokensOrderBy
6
7
  */
@@ -204,6 +205,62 @@ export declare enum HistoryDuration {
204
205
  */
205
206
  MAX = 6
206
207
  }
208
+ /**
209
+ * @generated from enum data.v2.PoolsOrderBy
210
+ */
211
+ export declare enum PoolsOrderBy {
212
+ /**
213
+ * @generated from enum value: POOLS_ORDER_BY_UNSPECIFIED = 0;
214
+ */
215
+ UNSPECIFIED = 0,
216
+ /**
217
+ * default
218
+ *
219
+ * @generated from enum value: POOLS_ORDER_BY_TVL = 1;
220
+ */
221
+ TVL = 1,
222
+ /**
223
+ * @generated from enum value: POOLS_ORDER_BY_VOLUME_1D = 2;
224
+ */
225
+ VOLUME_1D = 2,
226
+ /**
227
+ * @generated from enum value: POOLS_ORDER_BY_VOLUME_30D = 3;
228
+ */
229
+ VOLUME_30D = 3,
230
+ /**
231
+ * fee revenue / TVL; excludes reward_apr
232
+ *
233
+ * @generated from enum value: POOLS_ORDER_BY_APR = 4;
234
+ */
235
+ APR = 4,
236
+ /**
237
+ * volume_1d / tvl; capital-efficiency proxy
238
+ *
239
+ * @generated from enum value: POOLS_ORDER_BY_VOLUME_1D_TVL_RATIO = 5;
240
+ */
241
+ VOLUME_1D_TVL_RATIO = 5
242
+ }
243
+ /**
244
+ * @generated from enum data.v2.PoolTokenLogicalOperator
245
+ */
246
+ export declare enum PoolTokenLogicalOperator {
247
+ /**
248
+ * treated as OR
249
+ *
250
+ * @generated from enum value: POOL_TOKEN_LOGICAL_OPERATOR_UNSPECIFIED = 0;
251
+ */
252
+ UNSPECIFIED = 0,
253
+ /**
254
+ * @generated from enum value: POOL_TOKEN_LOGICAL_OPERATOR_OR = 1;
255
+ */
256
+ OR = 1,
257
+ /**
258
+ * invalid with more than 2 tokens
259
+ *
260
+ * @generated from enum value: POOL_TOKEN_LOGICAL_OPERATOR_AND = 2;
261
+ */
262
+ AND = 2
263
+ }
207
264
  /**
208
265
  * Sort field for ListLaunches; UNSPECIFIED defaults to LAUNCHED_AT (newest first).
209
266
  *
@@ -719,6 +776,276 @@ export declare class MultichainToken extends Message<MultichainToken> {
719
776
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MultichainToken;
720
777
  static equals(a: MultichainToken | PlainMessage<MultichainToken> | undefined, b: MultichainToken | PlainMessage<MultichainToken> | undefined): boolean;
721
778
  }
779
+ /**
780
+ * @generated from message data.v2.PoolsSort
781
+ */
782
+ export declare class PoolsSort extends Message<PoolsSort> {
783
+ /**
784
+ * default: POOLS_ORDER_BY_TVL
785
+ *
786
+ * @generated from field: optional data.v2.PoolsOrderBy order_by = 1;
787
+ */
788
+ orderBy?: PoolsOrderBy;
789
+ /**
790
+ * default false (highest first)
791
+ *
792
+ * @generated from field: optional bool ascending = 2;
793
+ */
794
+ ascending?: boolean;
795
+ constructor(data?: PartialMessage<PoolsSort>);
796
+ static readonly runtime: typeof proto3;
797
+ static readonly typeName = "data.v2.PoolsSort";
798
+ static readonly fields: FieldList;
799
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolsSort;
800
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolsSort;
801
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolsSort;
802
+ static equals(a: PoolsSort | PlainMessage<PoolsSort> | undefined, b: PoolsSort | PlainMessage<PoolsSort> | undefined): boolean;
803
+ }
804
+ /**
805
+ * Ranking stats for a pool.
806
+ * apr = annualised fee revenue / TVL.
807
+ * reward_apr = Merkl incentive yield (not a valid sort key).
808
+ * total_apr = apr + reward_apr treating null as 0; only null if both are null.
809
+ *
810
+ * @generated from message data.v2.PoolRankStats
811
+ */
812
+ export declare class PoolRankStats extends Message<PoolRankStats> {
813
+ /**
814
+ * @generated from field: optional double tvl = 1;
815
+ */
816
+ tvl?: number;
817
+ /**
818
+ * @generated from field: optional double volume_1d = 2;
819
+ */
820
+ volume1d?: number;
821
+ /**
822
+ * @generated from field: optional double volume_30d = 3;
823
+ */
824
+ volume30d?: number;
825
+ /**
826
+ * @generated from field: optional double apr = 4;
827
+ */
828
+ apr?: number;
829
+ /**
830
+ * @generated from field: optional double reward_apr = 5;
831
+ */
832
+ rewardApr?: number;
833
+ /**
834
+ * @generated from field: optional double total_apr = 6;
835
+ */
836
+ totalApr?: number;
837
+ /**
838
+ * volume_1d / tvl; null if tvl is zero
839
+ *
840
+ * @generated from field: optional double volume_1d_tvl_ratio = 7;
841
+ */
842
+ volume1dTvlRatio?: number;
843
+ constructor(data?: PartialMessage<PoolRankStats>);
844
+ static readonly runtime: typeof proto3;
845
+ static readonly typeName = "data.v2.PoolRankStats";
846
+ static readonly fields: FieldList;
847
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolRankStats;
848
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolRankStats;
849
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolRankStats;
850
+ static equals(a: PoolRankStats | PlainMessage<PoolRankStats> | undefined, b: PoolRankStats | PlainMessage<PoolRankStats> | undefined): boolean;
851
+ }
852
+ /**
853
+ * A pool with its protocol identity and token pair. No stats — stats live on
854
+ * RankedPool.
855
+ *
856
+ * @generated from message data.v2.Pool
857
+ */
858
+ export declare class Pool extends Message<Pool> {
859
+ /**
860
+ * @generated from field: uint32 chain_id = 1;
861
+ */
862
+ chainId: number;
863
+ /**
864
+ * checksummed pool address (V4: pool id hash)
865
+ *
866
+ * @generated from field: string pool_id = 2;
867
+ */
868
+ poolId: string;
869
+ /**
870
+ * @generated from field: data.v2.Token token0 = 3;
871
+ */
872
+ token0?: Token;
873
+ /**
874
+ * @generated from field: data.v2.Token token1 = 4;
875
+ */
876
+ token1?: Token;
877
+ /**
878
+ * @generated from field: pools.v1.ProtocolVersion protocol_version = 5;
879
+ */
880
+ protocolVersion: ProtocolVersion;
881
+ /**
882
+ * @generated from field: optional int32 tick_spacing = 6;
883
+ */
884
+ tickSpacing?: number;
885
+ /**
886
+ * pips; absent for V2 (fixed 0.3%) and dynamic-fee pools
887
+ *
888
+ * @generated from field: optional uint32 fee_tier = 7;
889
+ */
890
+ feeTier?: number;
891
+ /**
892
+ * true for V4 pools with dynamic fees
893
+ *
894
+ * @generated from field: bool is_dynamic_fee = 8;
895
+ */
896
+ isDynamicFee: boolean;
897
+ /**
898
+ * V4 only
899
+ *
900
+ * @generated from field: optional string hook_address = 9;
901
+ */
902
+ hookAddress?: string;
903
+ constructor(data?: PartialMessage<Pool>);
904
+ static readonly runtime: typeof proto3;
905
+ static readonly typeName = "data.v2.Pool";
906
+ static readonly fields: FieldList;
907
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Pool;
908
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Pool;
909
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Pool;
910
+ static equals(a: Pool | PlainMessage<Pool> | undefined, b: Pool | PlainMessage<Pool> | undefined): boolean;
911
+ }
912
+ /**
913
+ * @generated from message data.v2.PoolTokenFilter
914
+ */
915
+ export declare class PoolTokenFilter extends Message<PoolTokenFilter> {
916
+ /**
917
+ * checksummed EVM addresses
918
+ *
919
+ * @generated from field: repeated string tokens = 1;
920
+ */
921
+ tokens: string[];
922
+ /**
923
+ * @generated from field: data.v2.PoolTokenLogicalOperator logical_operator = 2;
924
+ */
925
+ logicalOperator: PoolTokenLogicalOperator;
926
+ constructor(data?: PartialMessage<PoolTokenFilter>);
927
+ static readonly runtime: typeof proto3;
928
+ static readonly typeName = "data.v2.PoolTokenFilter";
929
+ static readonly fields: FieldList;
930
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolTokenFilter;
931
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolTokenFilter;
932
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolTokenFilter;
933
+ static equals(a: PoolTokenFilter | PlainMessage<PoolTokenFilter> | undefined, b: PoolTokenFilter | PlainMessage<PoolTokenFilter> | undefined): boolean;
934
+ }
935
+ /**
936
+ * @generated from message data.v2.PoolStatRangeFilter
937
+ */
938
+ export declare class PoolStatRangeFilter extends Message<PoolStatRangeFilter> {
939
+ /**
940
+ * @generated from field: optional double min = 1;
941
+ */
942
+ min?: number;
943
+ /**
944
+ * @generated from field: optional double max = 2;
945
+ */
946
+ max?: number;
947
+ constructor(data?: PartialMessage<PoolStatRangeFilter>);
948
+ static readonly runtime: typeof proto3;
949
+ static readonly typeName = "data.v2.PoolStatRangeFilter";
950
+ static readonly fields: FieldList;
951
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolStatRangeFilter;
952
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolStatRangeFilter;
953
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolStatRangeFilter;
954
+ static equals(a: PoolStatRangeFilter | PlainMessage<PoolStatRangeFilter> | undefined, b: PoolStatRangeFilter | PlainMessage<PoolStatRangeFilter> | undefined): boolean;
955
+ }
956
+ /**
957
+ * @generated from message data.v2.PoolStatsFilter
958
+ */
959
+ export declare class PoolStatsFilter extends Message<PoolStatsFilter> {
960
+ /**
961
+ * @generated from field: optional data.v2.PoolStatRangeFilter tvl = 1;
962
+ */
963
+ tvl?: PoolStatRangeFilter;
964
+ /**
965
+ * @generated from field: optional data.v2.PoolStatRangeFilter apr = 2;
966
+ */
967
+ apr?: PoolStatRangeFilter;
968
+ /**
969
+ * @generated from field: optional data.v2.PoolStatRangeFilter volume_1d = 3;
970
+ */
971
+ volume1d?: PoolStatRangeFilter;
972
+ /**
973
+ * @generated from field: optional data.v2.PoolStatRangeFilter volume_30d = 4;
974
+ */
975
+ volume30d?: PoolStatRangeFilter;
976
+ constructor(data?: PartialMessage<PoolStatsFilter>);
977
+ static readonly runtime: typeof proto3;
978
+ static readonly typeName = "data.v2.PoolStatsFilter";
979
+ static readonly fields: FieldList;
980
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolStatsFilter;
981
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolStatsFilter;
982
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolStatsFilter;
983
+ static equals(a: PoolStatsFilter | PlainMessage<PoolStatsFilter> | undefined, b: PoolStatsFilter | PlainMessage<PoolStatsFilter> | undefined): boolean;
984
+ }
985
+ /**
986
+ * Server-side filters applied before ranking and pagination.
987
+ *
988
+ * @generated from message data.v2.PoolListFilter
989
+ */
990
+ export declare class PoolListFilter extends Message<PoolListFilter> {
991
+ /**
992
+ * if empty, all protocol versions
993
+ *
994
+ * @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 1;
995
+ */
996
+ protocolVersions: ProtocolVersion[];
997
+ /**
998
+ * default false (spam excluded)
999
+ *
1000
+ * @generated from field: optional bool include_spam = 2;
1001
+ */
1002
+ includeSpam?: boolean;
1003
+ /**
1004
+ * @generated from field: optional data.v2.PoolTokenFilter token_filter = 3;
1005
+ */
1006
+ tokenFilter?: PoolTokenFilter;
1007
+ /**
1008
+ * @generated from field: optional data.v2.PoolStatsFilter stats_filter = 4;
1009
+ */
1010
+ statsFilter?: PoolStatsFilter;
1011
+ /**
1012
+ * e.g. [500, 3000, 10000]; never matches V2 pools
1013
+ *
1014
+ * @generated from field: repeated uint32 fee_tiers = 5;
1015
+ */
1016
+ feeTiers: number[];
1017
+ constructor(data?: PartialMessage<PoolListFilter>);
1018
+ static readonly runtime: typeof proto3;
1019
+ static readonly typeName = "data.v2.PoolListFilter";
1020
+ static readonly fields: FieldList;
1021
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolListFilter;
1022
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolListFilter;
1023
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolListFilter;
1024
+ static equals(a: PoolListFilter | PlainMessage<PoolListFilter> | undefined, b: PoolListFilter | PlainMessage<PoolListFilter> | undefined): boolean;
1025
+ }
1026
+ /**
1027
+ * Returned by ListPools — wraps a Pool with its ranking stats.
1028
+ *
1029
+ * @generated from message data.v2.RankedPool
1030
+ */
1031
+ export declare class RankedPool extends Message<RankedPool> {
1032
+ /**
1033
+ * @generated from field: data.v2.Pool pool = 1;
1034
+ */
1035
+ pool?: Pool;
1036
+ /**
1037
+ * @generated from field: data.v2.PoolRankStats stats = 2;
1038
+ */
1039
+ stats?: PoolRankStats;
1040
+ constructor(data?: PartialMessage<RankedPool>);
1041
+ static readonly runtime: typeof proto3;
1042
+ static readonly typeName = "data.v2.RankedPool";
1043
+ static readonly fields: FieldList;
1044
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RankedPool;
1045
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RankedPool;
1046
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RankedPool;
1047
+ static equals(a: RankedPool | PlainMessage<RankedPool> | undefined, b: RankedPool | PlainMessage<RankedPool> | undefined): boolean;
1048
+ }
722
1049
  /**
723
1050
  * @generated from message data.v2.Token
724
1051
  */
@@ -4,6 +4,7 @@
4
4
  // @ts-nocheck
5
5
  import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
6
6
  import { TimestampedValue, TokenType } from "../v1/types_pb.js";
7
+ import { ProtocolVersion } from "../v1/poolTypes_pb.js";
7
8
  /**
8
9
  * @generated from enum data.v2.TokensOrderBy
9
10
  */
@@ -264,6 +265,79 @@ proto3.util.setEnumType(HistoryDuration, "data.v2.HistoryDuration", [
264
265
  { no: 5, name: "HISTORY_DURATION_YEAR" },
265
266
  { no: 6, name: "HISTORY_DURATION_MAX" },
266
267
  ]);
268
+ /**
269
+ * @generated from enum data.v2.PoolsOrderBy
270
+ */
271
+ export var PoolsOrderBy;
272
+ (function (PoolsOrderBy) {
273
+ /**
274
+ * @generated from enum value: POOLS_ORDER_BY_UNSPECIFIED = 0;
275
+ */
276
+ PoolsOrderBy[PoolsOrderBy["UNSPECIFIED"] = 0] = "UNSPECIFIED";
277
+ /**
278
+ * default
279
+ *
280
+ * @generated from enum value: POOLS_ORDER_BY_TVL = 1;
281
+ */
282
+ PoolsOrderBy[PoolsOrderBy["TVL"] = 1] = "TVL";
283
+ /**
284
+ * @generated from enum value: POOLS_ORDER_BY_VOLUME_1D = 2;
285
+ */
286
+ PoolsOrderBy[PoolsOrderBy["VOLUME_1D"] = 2] = "VOLUME_1D";
287
+ /**
288
+ * @generated from enum value: POOLS_ORDER_BY_VOLUME_30D = 3;
289
+ */
290
+ PoolsOrderBy[PoolsOrderBy["VOLUME_30D"] = 3] = "VOLUME_30D";
291
+ /**
292
+ * fee revenue / TVL; excludes reward_apr
293
+ *
294
+ * @generated from enum value: POOLS_ORDER_BY_APR = 4;
295
+ */
296
+ PoolsOrderBy[PoolsOrderBy["APR"] = 4] = "APR";
297
+ /**
298
+ * volume_1d / tvl; capital-efficiency proxy
299
+ *
300
+ * @generated from enum value: POOLS_ORDER_BY_VOLUME_1D_TVL_RATIO = 5;
301
+ */
302
+ PoolsOrderBy[PoolsOrderBy["VOLUME_1D_TVL_RATIO"] = 5] = "VOLUME_1D_TVL_RATIO";
303
+ })(PoolsOrderBy || (PoolsOrderBy = {}));
304
+ // Retrieve enum metadata with: proto3.getEnumType(PoolsOrderBy)
305
+ proto3.util.setEnumType(PoolsOrderBy, "data.v2.PoolsOrderBy", [
306
+ { no: 0, name: "POOLS_ORDER_BY_UNSPECIFIED" },
307
+ { no: 1, name: "POOLS_ORDER_BY_TVL" },
308
+ { no: 2, name: "POOLS_ORDER_BY_VOLUME_1D" },
309
+ { no: 3, name: "POOLS_ORDER_BY_VOLUME_30D" },
310
+ { no: 4, name: "POOLS_ORDER_BY_APR" },
311
+ { no: 5, name: "POOLS_ORDER_BY_VOLUME_1D_TVL_RATIO" },
312
+ ]);
313
+ /**
314
+ * @generated from enum data.v2.PoolTokenLogicalOperator
315
+ */
316
+ export var PoolTokenLogicalOperator;
317
+ (function (PoolTokenLogicalOperator) {
318
+ /**
319
+ * treated as OR
320
+ *
321
+ * @generated from enum value: POOL_TOKEN_LOGICAL_OPERATOR_UNSPECIFIED = 0;
322
+ */
323
+ PoolTokenLogicalOperator[PoolTokenLogicalOperator["UNSPECIFIED"] = 0] = "UNSPECIFIED";
324
+ /**
325
+ * @generated from enum value: POOL_TOKEN_LOGICAL_OPERATOR_OR = 1;
326
+ */
327
+ PoolTokenLogicalOperator[PoolTokenLogicalOperator["OR"] = 1] = "OR";
328
+ /**
329
+ * invalid with more than 2 tokens
330
+ *
331
+ * @generated from enum value: POOL_TOKEN_LOGICAL_OPERATOR_AND = 2;
332
+ */
333
+ PoolTokenLogicalOperator[PoolTokenLogicalOperator["AND"] = 2] = "AND";
334
+ })(PoolTokenLogicalOperator || (PoolTokenLogicalOperator = {}));
335
+ // Retrieve enum metadata with: proto3.getEnumType(PoolTokenLogicalOperator)
336
+ proto3.util.setEnumType(PoolTokenLogicalOperator, "data.v2.PoolTokenLogicalOperator", [
337
+ { no: 0, name: "POOL_TOKEN_LOGICAL_OPERATOR_UNSPECIFIED" },
338
+ { no: 1, name: "POOL_TOKEN_LOGICAL_OPERATOR_OR" },
339
+ { no: 2, name: "POOL_TOKEN_LOGICAL_OPERATOR_AND" },
340
+ ]);
267
341
  /**
268
342
  * Sort field for ListLaunches; UNSPECIFIED defaults to LAUNCHED_AT (newest first).
269
343
  *
@@ -846,6 +920,293 @@ MultichainToken.fields = proto3.util.newFieldList(() => [
846
920
  { no: 9, name: "fees", kind: "message", T: TokenFees },
847
921
  { no: 10, name: "project", kind: "message", T: TokenProject },
848
922
  ]);
923
+ /**
924
+ * @generated from message data.v2.PoolsSort
925
+ */
926
+ export class PoolsSort extends Message {
927
+ constructor(data) {
928
+ super();
929
+ proto3.util.initPartial(data, this);
930
+ }
931
+ static fromBinary(bytes, options) {
932
+ return new PoolsSort().fromBinary(bytes, options);
933
+ }
934
+ static fromJson(jsonValue, options) {
935
+ return new PoolsSort().fromJson(jsonValue, options);
936
+ }
937
+ static fromJsonString(jsonString, options) {
938
+ return new PoolsSort().fromJsonString(jsonString, options);
939
+ }
940
+ static equals(a, b) {
941
+ return proto3.util.equals(PoolsSort, a, b);
942
+ }
943
+ }
944
+ PoolsSort.runtime = proto3;
945
+ PoolsSort.typeName = "data.v2.PoolsSort";
946
+ PoolsSort.fields = proto3.util.newFieldList(() => [
947
+ { no: 1, name: "order_by", kind: "enum", T: proto3.getEnumType(PoolsOrderBy), opt: true },
948
+ { no: 2, name: "ascending", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
949
+ ]);
950
+ /**
951
+ * Ranking stats for a pool.
952
+ * apr = annualised fee revenue / TVL.
953
+ * reward_apr = Merkl incentive yield (not a valid sort key).
954
+ * total_apr = apr + reward_apr treating null as 0; only null if both are null.
955
+ *
956
+ * @generated from message data.v2.PoolRankStats
957
+ */
958
+ export class PoolRankStats extends Message {
959
+ constructor(data) {
960
+ super();
961
+ proto3.util.initPartial(data, this);
962
+ }
963
+ static fromBinary(bytes, options) {
964
+ return new PoolRankStats().fromBinary(bytes, options);
965
+ }
966
+ static fromJson(jsonValue, options) {
967
+ return new PoolRankStats().fromJson(jsonValue, options);
968
+ }
969
+ static fromJsonString(jsonString, options) {
970
+ return new PoolRankStats().fromJsonString(jsonString, options);
971
+ }
972
+ static equals(a, b) {
973
+ return proto3.util.equals(PoolRankStats, a, b);
974
+ }
975
+ }
976
+ PoolRankStats.runtime = proto3;
977
+ PoolRankStats.typeName = "data.v2.PoolRankStats";
978
+ PoolRankStats.fields = proto3.util.newFieldList(() => [
979
+ { no: 1, name: "tvl", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
980
+ { no: 2, name: "volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
981
+ { no: 3, name: "volume_30d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
982
+ { no: 4, name: "apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
983
+ { no: 5, name: "reward_apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
984
+ { no: 6, name: "total_apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
985
+ { no: 7, name: "volume_1d_tvl_ratio", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
986
+ ]);
987
+ /**
988
+ * A pool with its protocol identity and token pair. No stats — stats live on
989
+ * RankedPool.
990
+ *
991
+ * @generated from message data.v2.Pool
992
+ */
993
+ export class Pool extends Message {
994
+ constructor(data) {
995
+ super();
996
+ /**
997
+ * @generated from field: uint32 chain_id = 1;
998
+ */
999
+ this.chainId = 0;
1000
+ /**
1001
+ * checksummed pool address (V4: pool id hash)
1002
+ *
1003
+ * @generated from field: string pool_id = 2;
1004
+ */
1005
+ this.poolId = "";
1006
+ /**
1007
+ * @generated from field: pools.v1.ProtocolVersion protocol_version = 5;
1008
+ */
1009
+ this.protocolVersion = ProtocolVersion.UNSPECIFIED;
1010
+ /**
1011
+ * true for V4 pools with dynamic fees
1012
+ *
1013
+ * @generated from field: bool is_dynamic_fee = 8;
1014
+ */
1015
+ this.isDynamicFee = false;
1016
+ proto3.util.initPartial(data, this);
1017
+ }
1018
+ static fromBinary(bytes, options) {
1019
+ return new Pool().fromBinary(bytes, options);
1020
+ }
1021
+ static fromJson(jsonValue, options) {
1022
+ return new Pool().fromJson(jsonValue, options);
1023
+ }
1024
+ static fromJsonString(jsonString, options) {
1025
+ return new Pool().fromJsonString(jsonString, options);
1026
+ }
1027
+ static equals(a, b) {
1028
+ return proto3.util.equals(Pool, a, b);
1029
+ }
1030
+ }
1031
+ Pool.runtime = proto3;
1032
+ Pool.typeName = "data.v2.Pool";
1033
+ Pool.fields = proto3.util.newFieldList(() => [
1034
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1035
+ { no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1036
+ { no: 3, name: "token0", kind: "message", T: Token },
1037
+ { no: 4, name: "token1", kind: "message", T: Token },
1038
+ { no: 5, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
1039
+ { no: 6, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1040
+ { no: 7, name: "fee_tier", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
1041
+ { no: 8, name: "is_dynamic_fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1042
+ { no: 9, name: "hook_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1043
+ ]);
1044
+ /**
1045
+ * @generated from message data.v2.PoolTokenFilter
1046
+ */
1047
+ export class PoolTokenFilter extends Message {
1048
+ constructor(data) {
1049
+ super();
1050
+ /**
1051
+ * checksummed EVM addresses
1052
+ *
1053
+ * @generated from field: repeated string tokens = 1;
1054
+ */
1055
+ this.tokens = [];
1056
+ /**
1057
+ * @generated from field: data.v2.PoolTokenLogicalOperator logical_operator = 2;
1058
+ */
1059
+ this.logicalOperator = PoolTokenLogicalOperator.UNSPECIFIED;
1060
+ proto3.util.initPartial(data, this);
1061
+ }
1062
+ static fromBinary(bytes, options) {
1063
+ return new PoolTokenFilter().fromBinary(bytes, options);
1064
+ }
1065
+ static fromJson(jsonValue, options) {
1066
+ return new PoolTokenFilter().fromJson(jsonValue, options);
1067
+ }
1068
+ static fromJsonString(jsonString, options) {
1069
+ return new PoolTokenFilter().fromJsonString(jsonString, options);
1070
+ }
1071
+ static equals(a, b) {
1072
+ return proto3.util.equals(PoolTokenFilter, a, b);
1073
+ }
1074
+ }
1075
+ PoolTokenFilter.runtime = proto3;
1076
+ PoolTokenFilter.typeName = "data.v2.PoolTokenFilter";
1077
+ PoolTokenFilter.fields = proto3.util.newFieldList(() => [
1078
+ { no: 1, name: "tokens", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1079
+ { no: 2, name: "logical_operator", kind: "enum", T: proto3.getEnumType(PoolTokenLogicalOperator) },
1080
+ ]);
1081
+ /**
1082
+ * @generated from message data.v2.PoolStatRangeFilter
1083
+ */
1084
+ export class PoolStatRangeFilter extends Message {
1085
+ constructor(data) {
1086
+ super();
1087
+ proto3.util.initPartial(data, this);
1088
+ }
1089
+ static fromBinary(bytes, options) {
1090
+ return new PoolStatRangeFilter().fromBinary(bytes, options);
1091
+ }
1092
+ static fromJson(jsonValue, options) {
1093
+ return new PoolStatRangeFilter().fromJson(jsonValue, options);
1094
+ }
1095
+ static fromJsonString(jsonString, options) {
1096
+ return new PoolStatRangeFilter().fromJsonString(jsonString, options);
1097
+ }
1098
+ static equals(a, b) {
1099
+ return proto3.util.equals(PoolStatRangeFilter, a, b);
1100
+ }
1101
+ }
1102
+ PoolStatRangeFilter.runtime = proto3;
1103
+ PoolStatRangeFilter.typeName = "data.v2.PoolStatRangeFilter";
1104
+ PoolStatRangeFilter.fields = proto3.util.newFieldList(() => [
1105
+ { no: 1, name: "min", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1106
+ { no: 2, name: "max", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1107
+ ]);
1108
+ /**
1109
+ * @generated from message data.v2.PoolStatsFilter
1110
+ */
1111
+ export class PoolStatsFilter extends Message {
1112
+ constructor(data) {
1113
+ super();
1114
+ proto3.util.initPartial(data, this);
1115
+ }
1116
+ static fromBinary(bytes, options) {
1117
+ return new PoolStatsFilter().fromBinary(bytes, options);
1118
+ }
1119
+ static fromJson(jsonValue, options) {
1120
+ return new PoolStatsFilter().fromJson(jsonValue, options);
1121
+ }
1122
+ static fromJsonString(jsonString, options) {
1123
+ return new PoolStatsFilter().fromJsonString(jsonString, options);
1124
+ }
1125
+ static equals(a, b) {
1126
+ return proto3.util.equals(PoolStatsFilter, a, b);
1127
+ }
1128
+ }
1129
+ PoolStatsFilter.runtime = proto3;
1130
+ PoolStatsFilter.typeName = "data.v2.PoolStatsFilter";
1131
+ PoolStatsFilter.fields = proto3.util.newFieldList(() => [
1132
+ { no: 1, name: "tvl", kind: "message", T: PoolStatRangeFilter, opt: true },
1133
+ { no: 2, name: "apr", kind: "message", T: PoolStatRangeFilter, opt: true },
1134
+ { no: 3, name: "volume_1d", kind: "message", T: PoolStatRangeFilter, opt: true },
1135
+ { no: 4, name: "volume_30d", kind: "message", T: PoolStatRangeFilter, opt: true },
1136
+ ]);
1137
+ /**
1138
+ * Server-side filters applied before ranking and pagination.
1139
+ *
1140
+ * @generated from message data.v2.PoolListFilter
1141
+ */
1142
+ export class PoolListFilter extends Message {
1143
+ constructor(data) {
1144
+ super();
1145
+ /**
1146
+ * if empty, all protocol versions
1147
+ *
1148
+ * @generated from field: repeated pools.v1.ProtocolVersion protocol_versions = 1;
1149
+ */
1150
+ this.protocolVersions = [];
1151
+ /**
1152
+ * e.g. [500, 3000, 10000]; never matches V2 pools
1153
+ *
1154
+ * @generated from field: repeated uint32 fee_tiers = 5;
1155
+ */
1156
+ this.feeTiers = [];
1157
+ proto3.util.initPartial(data, this);
1158
+ }
1159
+ static fromBinary(bytes, options) {
1160
+ return new PoolListFilter().fromBinary(bytes, options);
1161
+ }
1162
+ static fromJson(jsonValue, options) {
1163
+ return new PoolListFilter().fromJson(jsonValue, options);
1164
+ }
1165
+ static fromJsonString(jsonString, options) {
1166
+ return new PoolListFilter().fromJsonString(jsonString, options);
1167
+ }
1168
+ static equals(a, b) {
1169
+ return proto3.util.equals(PoolListFilter, a, b);
1170
+ }
1171
+ }
1172
+ PoolListFilter.runtime = proto3;
1173
+ PoolListFilter.typeName = "data.v2.PoolListFilter";
1174
+ PoolListFilter.fields = proto3.util.newFieldList(() => [
1175
+ { no: 1, name: "protocol_versions", kind: "enum", T: proto3.getEnumType(ProtocolVersion), repeated: true },
1176
+ { no: 2, name: "include_spam", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1177
+ { no: 3, name: "token_filter", kind: "message", T: PoolTokenFilter, opt: true },
1178
+ { no: 4, name: "stats_filter", kind: "message", T: PoolStatsFilter, opt: true },
1179
+ { no: 5, name: "fee_tiers", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
1180
+ ]);
1181
+ /**
1182
+ * Returned by ListPools — wraps a Pool with its ranking stats.
1183
+ *
1184
+ * @generated from message data.v2.RankedPool
1185
+ */
1186
+ export class RankedPool extends Message {
1187
+ constructor(data) {
1188
+ super();
1189
+ proto3.util.initPartial(data, this);
1190
+ }
1191
+ static fromBinary(bytes, options) {
1192
+ return new RankedPool().fromBinary(bytes, options);
1193
+ }
1194
+ static fromJson(jsonValue, options) {
1195
+ return new RankedPool().fromJson(jsonValue, options);
1196
+ }
1197
+ static fromJsonString(jsonString, options) {
1198
+ return new RankedPool().fromJsonString(jsonString, options);
1199
+ }
1200
+ static equals(a, b) {
1201
+ return proto3.util.equals(RankedPool, a, b);
1202
+ }
1203
+ }
1204
+ RankedPool.runtime = proto3;
1205
+ RankedPool.typeName = "data.v2.RankedPool";
1206
+ RankedPool.fields = proto3.util.newFieldList(() => [
1207
+ { no: 1, name: "pool", kind: "message", T: Pool },
1208
+ { no: 2, name: "stats", kind: "message", T: PoolRankStats },
1209
+ ]);
849
1210
  /**
850
1211
  * @generated from message data.v2.Token
851
1212
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.136",
3
+ "version": "0.0.137",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },