@uniswap/client-data-api 0.0.217 → 0.0.218

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 { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetProtocolFeesRequest, GetProtocolFeesResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
2
+ import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetProtocolFeesRequest, GetProtocolFeesResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v1.DataApiService.CreatePendingTokenFactoryToken
5
5
  */
@@ -247,6 +247,19 @@ export declare const getPositionRewards: {
247
247
  readonly typeName: "data.v1.DataApiService";
248
248
  };
249
249
  };
250
+ /**
251
+ * @generated from rpc data.v1.DataApiService.GetPoolRewards
252
+ */
253
+ export declare const getPoolRewards: {
254
+ readonly localName: "getPoolRewards";
255
+ readonly name: "GetPoolRewards";
256
+ readonly kind: MethodKind.Unary;
257
+ readonly I: typeof GetPoolRewardsRequest;
258
+ readonly O: typeof GetPoolRewardsResponse;
259
+ readonly service: {
260
+ readonly typeName: "data.v1.DataApiService";
261
+ };
262
+ };
250
263
  /**
251
264
  * @generated from rpc data.v1.DataApiService.ListTopPools
252
265
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetProtocolFeesRequest, GetProtocolFeesResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
6
+ import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetProtocolFeesRequest, GetProtocolFeesResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v1.DataApiService.CreatePendingTokenFactoryToken
9
9
  */
@@ -251,6 +251,19 @@ export const getPositionRewards = {
251
251
  typeName: "data.v1.DataApiService"
252
252
  }
253
253
  };
254
+ /**
255
+ * @generated from rpc data.v1.DataApiService.GetPoolRewards
256
+ */
257
+ export const getPoolRewards = {
258
+ localName: "getPoolRewards",
259
+ name: "GetPoolRewards",
260
+ kind: MethodKind.Unary,
261
+ I: GetPoolRewardsRequest,
262
+ O: GetPoolRewardsResponse,
263
+ service: {
264
+ typeName: "data.v1.DataApiService"
265
+ }
266
+ };
254
267
  /**
255
268
  * @generated from rpc data.v1.DataApiService.ListTopPools
256
269
  */
@@ -1,4 +1,4 @@
1
- import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetProtocolFeesRequest, GetProtocolFeesResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
1
+ import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetProtocolFeesRequest, GetProtocolFeesResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service data.v1.DataApiService
@@ -177,6 +177,15 @@ export declare const DataApiService: {
177
177
  readonly O: typeof GetPositionRewardsResponse;
178
178
  readonly kind: MethodKind.Unary;
179
179
  };
180
+ /**
181
+ * @generated from rpc data.v1.DataApiService.GetPoolRewards
182
+ */
183
+ readonly getPoolRewards: {
184
+ readonly name: "GetPoolRewards";
185
+ readonly I: typeof GetPoolRewardsRequest;
186
+ readonly O: typeof GetPoolRewardsResponse;
187
+ readonly kind: MethodKind.Unary;
188
+ };
180
189
  /**
181
190
  * @generated from rpc data.v1.DataApiService.ListTopPools
182
191
  */
@@ -2,7 +2,7 @@
2
2
  // @generated from file data/v1/api.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetProtocolFeesRequest, GetProtocolFeesResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
5
+ import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetProtocolFeesRequest, GetProtocolFeesResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse, VerifyTokenFactoryImageRequest, VerifyTokenFactoryImageResponse } from "./api_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service data.v1.DataApiService
@@ -181,6 +181,15 @@ export const DataApiService = {
181
181
  O: GetPositionRewardsResponse,
182
182
  kind: MethodKind.Unary,
183
183
  },
184
+ /**
185
+ * @generated from rpc data.v1.DataApiService.GetPoolRewards
186
+ */
187
+ getPoolRewards: {
188
+ name: "GetPoolRewards",
189
+ I: GetPoolRewardsRequest,
190
+ O: GetPoolRewardsResponse,
191
+ kind: MethodKind.Unary,
192
+ },
184
193
  /**
185
194
  * @generated from rpc data.v1.DataApiService.ListTopPools
186
195
  */
@@ -1461,6 +1461,186 @@ export declare class GetPositionRewardsResponse extends Message<GetPositionRewar
1461
1461
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPositionRewardsResponse;
1462
1462
  static equals(a: GetPositionRewardsResponse | PlainMessage<GetPositionRewardsResponse> | undefined, b: GetPositionRewardsResponse | PlainMessage<GetPositionRewardsResponse> | undefined): boolean;
1463
1463
  }
1464
+ /**
1465
+ * GetPoolRewards — a pool's live LP-incentive rewards, grouped by reward token.
1466
+ * Wallet-independent (unlike GetPositionRewards), so it is cacheable and shared by
1467
+ * every caller. Exists so another service (liquidity) can surface pool rewards
1468
+ * without duplicating campaign discovery, the reward-token/creator allowlists, or
1469
+ * their config: data-api stays the single owner of what counts as a surfaced
1470
+ * campaign.
1471
+ *
1472
+ * @generated from message data.v1.GetPoolRewardsRequest
1473
+ */
1474
+ export declare class GetPoolRewardsRequest extends Message<GetPoolRewardsRequest> {
1475
+ /**
1476
+ * @generated from field: repeated data.v1.PoolRewardsRef pools = 1;
1477
+ */
1478
+ pools: PoolRewardsRef[];
1479
+ constructor(data?: PartialMessage<GetPoolRewardsRequest>);
1480
+ static readonly runtime: typeof proto3;
1481
+ static readonly typeName = "data.v1.GetPoolRewardsRequest";
1482
+ static readonly fields: FieldList;
1483
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolRewardsRequest;
1484
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolRewardsRequest;
1485
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolRewardsRequest;
1486
+ static equals(a: GetPoolRewardsRequest | PlainMessage<GetPoolRewardsRequest> | undefined, b: GetPoolRewardsRequest | PlainMessage<GetPoolRewardsRequest> | undefined): boolean;
1487
+ }
1488
+ /**
1489
+ * @generated from message data.v1.PoolRewardsRef
1490
+ */
1491
+ export declare class PoolRewardsRef extends Message<PoolRewardsRef> {
1492
+ /**
1493
+ * @generated from field: uint32 chain_id = 1;
1494
+ */
1495
+ chainId: number;
1496
+ /**
1497
+ * V4 pool id / V3 pool address. V2 pools run no campaigns.
1498
+ *
1499
+ * @generated from field: string pool_id = 2;
1500
+ */
1501
+ poolId: string;
1502
+ constructor(data?: PartialMessage<PoolRewardsRef>);
1503
+ static readonly runtime: typeof proto3;
1504
+ static readonly typeName = "data.v1.PoolRewardsRef";
1505
+ static readonly fields: FieldList;
1506
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolRewardsRef;
1507
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolRewardsRef;
1508
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolRewardsRef;
1509
+ static equals(a: PoolRewardsRef | PlainMessage<PoolRewardsRef> | undefined, b: PoolRewardsRef | PlainMessage<PoolRewardsRef> | undefined): boolean;
1510
+ }
1511
+ /**
1512
+ * One live campaign behind a token's boost. It carries no reward token — these are
1513
+ * always grouped under one (see PoolTokenRewards).
1514
+ *
1515
+ * @generated from message data.v1.PoolCampaign
1516
+ */
1517
+ export declare class PoolCampaign extends Message<PoolCampaign> {
1518
+ /**
1519
+ * Merkl campaign id.
1520
+ *
1521
+ * @generated from field: string id = 1;
1522
+ */
1523
+ id: string;
1524
+ /**
1525
+ * This campaign's APR alone, in percent. Do NOT add these up and compare with
1526
+ * PoolTokenRewards.boosted_apr, which is already their sum.
1527
+ *
1528
+ * @generated from field: double apr = 2;
1529
+ */
1530
+ apr: number;
1531
+ /**
1532
+ * Campaign window, unix seconds.
1533
+ *
1534
+ * @generated from field: int64 start_timestamp = 3;
1535
+ */
1536
+ startTimestamp: bigint;
1537
+ /**
1538
+ * @generated from field: int64 end_timestamp = 4;
1539
+ */
1540
+ endTimestamp: bigint;
1541
+ /**
1542
+ * Total allocation, uint256 decimal string in the reward token's smallest unit.
1543
+ *
1544
+ * @generated from field: string total_reward_allocation = 5;
1545
+ */
1546
+ totalRewardAllocation: string;
1547
+ /**
1548
+ * Emission rate in USD. Upstream derives this from the reward token's price at
1549
+ * fetch time, so it drifts with price and is only as fresh as the campaign
1550
+ * refresh — daily_rewards below is price-independent.
1551
+ *
1552
+ * @generated from field: optional double daily_rewards_usd = 6;
1553
+ */
1554
+ dailyRewardsUsd?: number;
1555
+ /**
1556
+ * Emission rate in the reward token's smallest unit (uint256 decimal string).
1557
+ *
1558
+ * @generated from field: optional string daily_rewards = 7;
1559
+ */
1560
+ dailyRewards?: string;
1561
+ constructor(data?: PartialMessage<PoolCampaign>);
1562
+ static readonly runtime: typeof proto3;
1563
+ static readonly typeName = "data.v1.PoolCampaign";
1564
+ static readonly fields: FieldList;
1565
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolCampaign;
1566
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolCampaign;
1567
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolCampaign;
1568
+ static equals(a: PoolCampaign | PlainMessage<PoolCampaign> | undefined, b: PoolCampaign | PlainMessage<PoolCampaign> | undefined): boolean;
1569
+ }
1570
+ /**
1571
+ * A pool's rewards in one reward token.
1572
+ *
1573
+ * @generated from message data.v1.PoolTokenRewards
1574
+ */
1575
+ export declare class PoolTokenRewards extends Message<PoolTokenRewards> {
1576
+ /**
1577
+ * @generated from field: pools.v1.Token token = 1;
1578
+ */
1579
+ token?: Token$1;
1580
+ /**
1581
+ * Sum of this token's live campaign APRs on the pool, in percent, on top of the
1582
+ * pool's fee APR.
1583
+ *
1584
+ * @generated from field: double boosted_apr = 2;
1585
+ */
1586
+ boostedApr: number;
1587
+ /**
1588
+ * @generated from field: repeated data.v1.PoolCampaign campaigns = 3;
1589
+ */
1590
+ campaigns: PoolCampaign[];
1591
+ constructor(data?: PartialMessage<PoolTokenRewards>);
1592
+ static readonly runtime: typeof proto3;
1593
+ static readonly typeName = "data.v1.PoolTokenRewards";
1594
+ static readonly fields: FieldList;
1595
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolTokenRewards;
1596
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolTokenRewards;
1597
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolTokenRewards;
1598
+ static equals(a: PoolTokenRewards | PlainMessage<PoolTokenRewards> | undefined, b: PoolTokenRewards | PlainMessage<PoolTokenRewards> | undefined): boolean;
1599
+ }
1600
+ /**
1601
+ * @generated from message data.v1.PoolRewards
1602
+ */
1603
+ export declare class PoolRewards extends Message<PoolRewards> {
1604
+ /**
1605
+ * @generated from field: uint32 chain_id = 1;
1606
+ */
1607
+ chainId: number;
1608
+ /**
1609
+ * @generated from field: string pool_id = 2;
1610
+ */
1611
+ poolId: string;
1612
+ /**
1613
+ * @generated from field: repeated data.v1.PoolTokenRewards token_rewards = 3;
1614
+ */
1615
+ tokenRewards: PoolTokenRewards[];
1616
+ constructor(data?: PartialMessage<PoolRewards>);
1617
+ static readonly runtime: typeof proto3;
1618
+ static readonly typeName = "data.v1.PoolRewards";
1619
+ static readonly fields: FieldList;
1620
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolRewards;
1621
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolRewards;
1622
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolRewards;
1623
+ static equals(a: PoolRewards | PlainMessage<PoolRewards> | undefined, b: PoolRewards | PlainMessage<PoolRewards> | undefined): boolean;
1624
+ }
1625
+ /**
1626
+ * @generated from message data.v1.GetPoolRewardsResponse
1627
+ */
1628
+ export declare class GetPoolRewardsResponse extends Message<GetPoolRewardsResponse> {
1629
+ /**
1630
+ * Only pools with at least one live campaign; the rest are omitted.
1631
+ *
1632
+ * @generated from field: repeated data.v1.PoolRewards pools = 1;
1633
+ */
1634
+ pools: PoolRewards[];
1635
+ constructor(data?: PartialMessage<GetPoolRewardsResponse>);
1636
+ static readonly runtime: typeof proto3;
1637
+ static readonly typeName = "data.v1.GetPoolRewardsResponse";
1638
+ static readonly fields: FieldList;
1639
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPoolRewardsResponse;
1640
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPoolRewardsResponse;
1641
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolRewardsResponse;
1642
+ static equals(a: GetPoolRewardsResponse | PlainMessage<GetPoolRewardsResponse> | undefined, b: GetPoolRewardsResponse | PlainMessage<GetPoolRewardsResponse> | undefined): boolean;
1643
+ }
1464
1644
  /**
1465
1645
  * @generated from message data.v1.GetRewardsResponse
1466
1646
  */
@@ -1937,6 +1937,257 @@ GetPositionRewardsResponse.typeName = "data.v1.GetPositionRewardsResponse";
1937
1937
  GetPositionRewardsResponse.fields = proto3.util.newFieldList(() => [
1938
1938
  { no: 1, name: "positions", kind: "message", T: PositionRewards, repeated: true },
1939
1939
  ]);
1940
+ /**
1941
+ * GetPoolRewards — a pool's live LP-incentive rewards, grouped by reward token.
1942
+ * Wallet-independent (unlike GetPositionRewards), so it is cacheable and shared by
1943
+ * every caller. Exists so another service (liquidity) can surface pool rewards
1944
+ * without duplicating campaign discovery, the reward-token/creator allowlists, or
1945
+ * their config: data-api stays the single owner of what counts as a surfaced
1946
+ * campaign.
1947
+ *
1948
+ * @generated from message data.v1.GetPoolRewardsRequest
1949
+ */
1950
+ export class GetPoolRewardsRequest extends Message {
1951
+ constructor(data) {
1952
+ super();
1953
+ /**
1954
+ * @generated from field: repeated data.v1.PoolRewardsRef pools = 1;
1955
+ */
1956
+ this.pools = [];
1957
+ proto3.util.initPartial(data, this);
1958
+ }
1959
+ static fromBinary(bytes, options) {
1960
+ return new GetPoolRewardsRequest().fromBinary(bytes, options);
1961
+ }
1962
+ static fromJson(jsonValue, options) {
1963
+ return new GetPoolRewardsRequest().fromJson(jsonValue, options);
1964
+ }
1965
+ static fromJsonString(jsonString, options) {
1966
+ return new GetPoolRewardsRequest().fromJsonString(jsonString, options);
1967
+ }
1968
+ static equals(a, b) {
1969
+ return proto3.util.equals(GetPoolRewardsRequest, a, b);
1970
+ }
1971
+ }
1972
+ GetPoolRewardsRequest.runtime = proto3;
1973
+ GetPoolRewardsRequest.typeName = "data.v1.GetPoolRewardsRequest";
1974
+ GetPoolRewardsRequest.fields = proto3.util.newFieldList(() => [
1975
+ { no: 1, name: "pools", kind: "message", T: PoolRewardsRef, repeated: true },
1976
+ ]);
1977
+ /**
1978
+ * @generated from message data.v1.PoolRewardsRef
1979
+ */
1980
+ export class PoolRewardsRef extends Message {
1981
+ constructor(data) {
1982
+ super();
1983
+ /**
1984
+ * @generated from field: uint32 chain_id = 1;
1985
+ */
1986
+ this.chainId = 0;
1987
+ /**
1988
+ * V4 pool id / V3 pool address. V2 pools run no campaigns.
1989
+ *
1990
+ * @generated from field: string pool_id = 2;
1991
+ */
1992
+ this.poolId = "";
1993
+ proto3.util.initPartial(data, this);
1994
+ }
1995
+ static fromBinary(bytes, options) {
1996
+ return new PoolRewardsRef().fromBinary(bytes, options);
1997
+ }
1998
+ static fromJson(jsonValue, options) {
1999
+ return new PoolRewardsRef().fromJson(jsonValue, options);
2000
+ }
2001
+ static fromJsonString(jsonString, options) {
2002
+ return new PoolRewardsRef().fromJsonString(jsonString, options);
2003
+ }
2004
+ static equals(a, b) {
2005
+ return proto3.util.equals(PoolRewardsRef, a, b);
2006
+ }
2007
+ }
2008
+ PoolRewardsRef.runtime = proto3;
2009
+ PoolRewardsRef.typeName = "data.v1.PoolRewardsRef";
2010
+ PoolRewardsRef.fields = proto3.util.newFieldList(() => [
2011
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2012
+ { no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2013
+ ]);
2014
+ /**
2015
+ * One live campaign behind a token's boost. It carries no reward token — these are
2016
+ * always grouped under one (see PoolTokenRewards).
2017
+ *
2018
+ * @generated from message data.v1.PoolCampaign
2019
+ */
2020
+ export class PoolCampaign extends Message {
2021
+ constructor(data) {
2022
+ super();
2023
+ /**
2024
+ * Merkl campaign id.
2025
+ *
2026
+ * @generated from field: string id = 1;
2027
+ */
2028
+ this.id = "";
2029
+ /**
2030
+ * This campaign's APR alone, in percent. Do NOT add these up and compare with
2031
+ * PoolTokenRewards.boosted_apr, which is already their sum.
2032
+ *
2033
+ * @generated from field: double apr = 2;
2034
+ */
2035
+ this.apr = 0;
2036
+ /**
2037
+ * Campaign window, unix seconds.
2038
+ *
2039
+ * @generated from field: int64 start_timestamp = 3;
2040
+ */
2041
+ this.startTimestamp = protoInt64.zero;
2042
+ /**
2043
+ * @generated from field: int64 end_timestamp = 4;
2044
+ */
2045
+ this.endTimestamp = protoInt64.zero;
2046
+ /**
2047
+ * Total allocation, uint256 decimal string in the reward token's smallest unit.
2048
+ *
2049
+ * @generated from field: string total_reward_allocation = 5;
2050
+ */
2051
+ this.totalRewardAllocation = "";
2052
+ proto3.util.initPartial(data, this);
2053
+ }
2054
+ static fromBinary(bytes, options) {
2055
+ return new PoolCampaign().fromBinary(bytes, options);
2056
+ }
2057
+ static fromJson(jsonValue, options) {
2058
+ return new PoolCampaign().fromJson(jsonValue, options);
2059
+ }
2060
+ static fromJsonString(jsonString, options) {
2061
+ return new PoolCampaign().fromJsonString(jsonString, options);
2062
+ }
2063
+ static equals(a, b) {
2064
+ return proto3.util.equals(PoolCampaign, a, b);
2065
+ }
2066
+ }
2067
+ PoolCampaign.runtime = proto3;
2068
+ PoolCampaign.typeName = "data.v1.PoolCampaign";
2069
+ PoolCampaign.fields = proto3.util.newFieldList(() => [
2070
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2071
+ { no: 2, name: "apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2072
+ { no: 3, name: "start_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
2073
+ { no: 4, name: "end_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
2074
+ { no: 5, name: "total_reward_allocation", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2075
+ { no: 6, name: "daily_rewards_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
2076
+ { no: 7, name: "daily_rewards", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2077
+ ]);
2078
+ /**
2079
+ * A pool's rewards in one reward token.
2080
+ *
2081
+ * @generated from message data.v1.PoolTokenRewards
2082
+ */
2083
+ export class PoolTokenRewards extends Message {
2084
+ constructor(data) {
2085
+ super();
2086
+ /**
2087
+ * Sum of this token's live campaign APRs on the pool, in percent, on top of the
2088
+ * pool's fee APR.
2089
+ *
2090
+ * @generated from field: double boosted_apr = 2;
2091
+ */
2092
+ this.boostedApr = 0;
2093
+ /**
2094
+ * @generated from field: repeated data.v1.PoolCampaign campaigns = 3;
2095
+ */
2096
+ this.campaigns = [];
2097
+ proto3.util.initPartial(data, this);
2098
+ }
2099
+ static fromBinary(bytes, options) {
2100
+ return new PoolTokenRewards().fromBinary(bytes, options);
2101
+ }
2102
+ static fromJson(jsonValue, options) {
2103
+ return new PoolTokenRewards().fromJson(jsonValue, options);
2104
+ }
2105
+ static fromJsonString(jsonString, options) {
2106
+ return new PoolTokenRewards().fromJsonString(jsonString, options);
2107
+ }
2108
+ static equals(a, b) {
2109
+ return proto3.util.equals(PoolTokenRewards, a, b);
2110
+ }
2111
+ }
2112
+ PoolTokenRewards.runtime = proto3;
2113
+ PoolTokenRewards.typeName = "data.v1.PoolTokenRewards";
2114
+ PoolTokenRewards.fields = proto3.util.newFieldList(() => [
2115
+ { no: 1, name: "token", kind: "message", T: Token$1 },
2116
+ { no: 2, name: "boosted_apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2117
+ { no: 3, name: "campaigns", kind: "message", T: PoolCampaign, repeated: true },
2118
+ ]);
2119
+ /**
2120
+ * @generated from message data.v1.PoolRewards
2121
+ */
2122
+ export class PoolRewards extends Message {
2123
+ constructor(data) {
2124
+ super();
2125
+ /**
2126
+ * @generated from field: uint32 chain_id = 1;
2127
+ */
2128
+ this.chainId = 0;
2129
+ /**
2130
+ * @generated from field: string pool_id = 2;
2131
+ */
2132
+ this.poolId = "";
2133
+ /**
2134
+ * @generated from field: repeated data.v1.PoolTokenRewards token_rewards = 3;
2135
+ */
2136
+ this.tokenRewards = [];
2137
+ proto3.util.initPartial(data, this);
2138
+ }
2139
+ static fromBinary(bytes, options) {
2140
+ return new PoolRewards().fromBinary(bytes, options);
2141
+ }
2142
+ static fromJson(jsonValue, options) {
2143
+ return new PoolRewards().fromJson(jsonValue, options);
2144
+ }
2145
+ static fromJsonString(jsonString, options) {
2146
+ return new PoolRewards().fromJsonString(jsonString, options);
2147
+ }
2148
+ static equals(a, b) {
2149
+ return proto3.util.equals(PoolRewards, a, b);
2150
+ }
2151
+ }
2152
+ PoolRewards.runtime = proto3;
2153
+ PoolRewards.typeName = "data.v1.PoolRewards";
2154
+ PoolRewards.fields = proto3.util.newFieldList(() => [
2155
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2156
+ { no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2157
+ { no: 3, name: "token_rewards", kind: "message", T: PoolTokenRewards, repeated: true },
2158
+ ]);
2159
+ /**
2160
+ * @generated from message data.v1.GetPoolRewardsResponse
2161
+ */
2162
+ export class GetPoolRewardsResponse extends Message {
2163
+ constructor(data) {
2164
+ super();
2165
+ /**
2166
+ * Only pools with at least one live campaign; the rest are omitted.
2167
+ *
2168
+ * @generated from field: repeated data.v1.PoolRewards pools = 1;
2169
+ */
2170
+ this.pools = [];
2171
+ proto3.util.initPartial(data, this);
2172
+ }
2173
+ static fromBinary(bytes, options) {
2174
+ return new GetPoolRewardsResponse().fromBinary(bytes, options);
2175
+ }
2176
+ static fromJson(jsonValue, options) {
2177
+ return new GetPoolRewardsResponse().fromJson(jsonValue, options);
2178
+ }
2179
+ static fromJsonString(jsonString, options) {
2180
+ return new GetPoolRewardsResponse().fromJsonString(jsonString, options);
2181
+ }
2182
+ static equals(a, b) {
2183
+ return proto3.util.equals(GetPoolRewardsResponse, a, b);
2184
+ }
2185
+ }
2186
+ GetPoolRewardsResponse.runtime = proto3;
2187
+ GetPoolRewardsResponse.typeName = "data.v1.GetPoolRewardsResponse";
2188
+ GetPoolRewardsResponse.fields = proto3.util.newFieldList(() => [
2189
+ { no: 1, name: "pools", kind: "message", T: PoolRewards, repeated: true },
2190
+ ]);
1940
2191
  /**
1941
2192
  * @generated from message data.v1.GetRewardsResponse
1942
2193
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.217",
3
+ "version": "0.0.218",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },