@uniswap/client-data-api 0.0.216 → 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, 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
  */
@@ -234,6 +234,32 @@ export declare const getRewards: {
234
234
  readonly typeName: "data.v1.DataApiService";
235
235
  };
236
236
  };
237
+ /**
238
+ * @generated from rpc data.v1.DataApiService.GetPositionRewards
239
+ */
240
+ export declare const getPositionRewards: {
241
+ readonly localName: "getPositionRewards";
242
+ readonly name: "GetPositionRewards";
243
+ readonly kind: MethodKind.Unary;
244
+ readonly I: typeof GetPositionRewardsRequest;
245
+ readonly O: typeof GetPositionRewardsResponse;
246
+ readonly service: {
247
+ readonly typeName: "data.v1.DataApiService";
248
+ };
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
+ };
237
263
  /**
238
264
  * @generated from rpc data.v1.DataApiService.ListTopPools
239
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, 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
  */
@@ -238,6 +238,32 @@ export const getRewards = {
238
238
  typeName: "data.v1.DataApiService"
239
239
  }
240
240
  };
241
+ /**
242
+ * @generated from rpc data.v1.DataApiService.GetPositionRewards
243
+ */
244
+ export const getPositionRewards = {
245
+ localName: "getPositionRewards",
246
+ name: "GetPositionRewards",
247
+ kind: MethodKind.Unary,
248
+ I: GetPositionRewardsRequest,
249
+ O: GetPositionRewardsResponse,
250
+ service: {
251
+ typeName: "data.v1.DataApiService"
252
+ }
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
+ };
241
267
  /**
242
268
  * @generated from rpc data.v1.DataApiService.ListTopPools
243
269
  */
@@ -1,4 +1,4 @@
1
- import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, 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
@@ -168,6 +168,24 @@ export declare const DataApiService: {
168
168
  readonly O: typeof GetRewardsResponse;
169
169
  readonly kind: MethodKind.Unary;
170
170
  };
171
+ /**
172
+ * @generated from rpc data.v1.DataApiService.GetPositionRewards
173
+ */
174
+ readonly getPositionRewards: {
175
+ readonly name: "GetPositionRewards";
176
+ readonly I: typeof GetPositionRewardsRequest;
177
+ readonly O: typeof GetPositionRewardsResponse;
178
+ readonly kind: MethodKind.Unary;
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
+ };
171
189
  /**
172
190
  * @generated from rpc data.v1.DataApiService.ListTopPools
173
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, 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
@@ -172,6 +172,24 @@ export const DataApiService = {
172
172
  O: GetRewardsResponse,
173
173
  kind: MethodKind.Unary,
174
174
  },
175
+ /**
176
+ * @generated from rpc data.v1.DataApiService.GetPositionRewards
177
+ */
178
+ getPositionRewards: {
179
+ name: "GetPositionRewards",
180
+ I: GetPositionRewardsRequest,
181
+ O: GetPositionRewardsResponse,
182
+ kind: MethodKind.Unary,
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
+ },
175
193
  /**
176
194
  * @generated from rpc data.v1.DataApiService.ListTopPools
177
195
  */
@@ -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 { ChainTokenProfitLoss, Contract, MultichainToken, MultichainTokenProfitLoss, Pool as Pool$1, PoolRef, Portfolio, PortfolioValueModifier, Token, TokenDetailProfitLoss, TokenProfitLoss, TokenReportEventType, Transaction, TransactionTypeFilter, WalletProfitLoss } from "./types_pb.js";
4
- import { Pair, Pool, Position, PositionStatus, ProtocolVersion, RewardBalance } from "./poolTypes_pb.js";
4
+ import { Pair, Pool, Position, PositionStatus, ProtocolVersion, RewardBalance, Token as Token$1 } from "./poolTypes_pb.js";
5
5
  /**
6
6
  * @generated from enum data.v1.Platform
7
7
  */
@@ -1302,6 +1302,345 @@ export declare class GetRewardsRequest extends Message<GetRewardsRequest> {
1302
1302
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRewardsRequest;
1303
1303
  static equals(a: GetRewardsRequest | PlainMessage<GetRewardsRequest> | undefined, b: GetRewardsRequest | PlainMessage<GetRewardsRequest> | undefined): boolean;
1304
1304
  }
1305
+ /**
1306
+ * GetPositionRewards — LP-incentive rewards for specific positions: per reward
1307
+ * token, the pool's boosted APR and the position's unclaimed balance. Exists so
1308
+ * another service (liquidity) can surface rewards on its own positions endpoints
1309
+ * without duplicating campaign discovery, the reward-token/creator allowlists, or
1310
+ * their config: data-api stays the single owner of what counts as a surfaced
1311
+ * campaign.
1312
+ *
1313
+ * Scoped to the same allowlisted campaigns GetRewards uses.
1314
+ *
1315
+ * @generated from message data.v1.GetPositionRewardsRequest
1316
+ */
1317
+ export declare class GetPositionRewardsRequest extends Message<GetPositionRewardsRequest> {
1318
+ /**
1319
+ * @generated from field: string wallet_address = 1;
1320
+ */
1321
+ walletAddress: string;
1322
+ /**
1323
+ * The positions to report on. Required: data-api cannot enumerate a wallet's
1324
+ * positions, and the upstream per-position feed lists only those that have
1325
+ * already accrued — so a V3 pool, or a live campaign with no accrual yet, is
1326
+ * invisible unless the caller names it.
1327
+ *
1328
+ * @generated from field: repeated data.v1.PositionRef positions = 2;
1329
+ */
1330
+ positions: PositionRef[];
1331
+ constructor(data?: PartialMessage<GetPositionRewardsRequest>);
1332
+ static readonly runtime: typeof proto3;
1333
+ static readonly typeName = "data.v1.GetPositionRewardsRequest";
1334
+ static readonly fields: FieldList;
1335
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPositionRewardsRequest;
1336
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPositionRewardsRequest;
1337
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPositionRewardsRequest;
1338
+ static equals(a: GetPositionRewardsRequest | PlainMessage<GetPositionRewardsRequest> | undefined, b: GetPositionRewardsRequest | PlainMessage<GetPositionRewardsRequest> | undefined): boolean;
1339
+ }
1340
+ /**
1341
+ * Identifies one position to report rewards for.
1342
+ *
1343
+ * @generated from message data.v1.PositionRef
1344
+ */
1345
+ export declare class PositionRef extends Message<PositionRef> {
1346
+ /**
1347
+ * @generated from field: uint32 chain_id = 1;
1348
+ */
1349
+ chainId: number;
1350
+ /**
1351
+ * V4 pool id / V3 pool address.
1352
+ *
1353
+ * @generated from field: string pool_id = 2;
1354
+ */
1355
+ poolId: string;
1356
+ /**
1357
+ * V3/V4 position NFT token id.
1358
+ *
1359
+ * @generated from field: string position_id = 3;
1360
+ */
1361
+ positionId: string;
1362
+ constructor(data?: PartialMessage<PositionRef>);
1363
+ static readonly runtime: typeof proto3;
1364
+ static readonly typeName = "data.v1.PositionRef";
1365
+ static readonly fields: FieldList;
1366
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PositionRef;
1367
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PositionRef;
1368
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PositionRef;
1369
+ static equals(a: PositionRef | PlainMessage<PositionRef> | undefined, b: PositionRef | PlainMessage<PositionRef> | undefined): boolean;
1370
+ }
1371
+ /**
1372
+ * What a position earns in one reward token.
1373
+ *
1374
+ * @generated from message data.v1.PositionReward
1375
+ */
1376
+ export declare class PositionReward extends Message<PositionReward> {
1377
+ /**
1378
+ * @generated from field: pools.v1.Token token = 1;
1379
+ */
1380
+ token?: Token$1;
1381
+ /**
1382
+ * The POOL's boosted APR from campaigns paying this token — the sum of that
1383
+ * token's LIVE campaign APRs, in percent, on top of the pool's fee APR. Shared
1384
+ * by every position in the pool, not specific to this one. 0 means no live
1385
+ * campaign, which is normal for an ended campaign that still has a claimable
1386
+ * balance.
1387
+ *
1388
+ * @generated from field: double boosted_pool_apr = 2;
1389
+ */
1390
+ boostedPoolApr: number;
1391
+ /**
1392
+ * Unclaimed amount in the token's smallest unit. Unset when there is no
1393
+ * per-position attribution upstream (V3), which is distinct from a known zero.
1394
+ *
1395
+ * @generated from field: optional string unclaimed_amount = 3;
1396
+ */
1397
+ unclaimedAmount?: string;
1398
+ /**
1399
+ * Unclaimed amount in USD. Unset when the token could not be priced.
1400
+ *
1401
+ * @generated from field: optional double unclaimed_amount_usd = 4;
1402
+ */
1403
+ unclaimedAmountUsd?: number;
1404
+ constructor(data?: PartialMessage<PositionReward>);
1405
+ static readonly runtime: typeof proto3;
1406
+ static readonly typeName = "data.v1.PositionReward";
1407
+ static readonly fields: FieldList;
1408
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PositionReward;
1409
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PositionReward;
1410
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PositionReward;
1411
+ static equals(a: PositionReward | PlainMessage<PositionReward> | undefined, b: PositionReward | PlainMessage<PositionReward> | undefined): boolean;
1412
+ }
1413
+ /**
1414
+ * @generated from message data.v1.PositionRewards
1415
+ */
1416
+ export declare class PositionRewards extends Message<PositionRewards> {
1417
+ /**
1418
+ * @generated from field: uint32 chain_id = 1;
1419
+ */
1420
+ chainId: number;
1421
+ /**
1422
+ * @generated from field: string pool_id = 2;
1423
+ */
1424
+ poolId: string;
1425
+ /**
1426
+ * @generated from field: string position_id = 3;
1427
+ */
1428
+ positionId: string;
1429
+ /**
1430
+ * One entry per reward token with a live campaign or an unclaimed balance.
1431
+ *
1432
+ * @generated from field: repeated data.v1.PositionReward rewards = 4;
1433
+ */
1434
+ rewards: PositionReward[];
1435
+ constructor(data?: PartialMessage<PositionRewards>);
1436
+ static readonly runtime: typeof proto3;
1437
+ static readonly typeName = "data.v1.PositionRewards";
1438
+ static readonly fields: FieldList;
1439
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PositionRewards;
1440
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PositionRewards;
1441
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PositionRewards;
1442
+ static equals(a: PositionRewards | PlainMessage<PositionRewards> | undefined, b: PositionRewards | PlainMessage<PositionRewards> | undefined): boolean;
1443
+ }
1444
+ /**
1445
+ * @generated from message data.v1.GetPositionRewardsResponse
1446
+ */
1447
+ export declare class GetPositionRewardsResponse extends Message<GetPositionRewardsResponse> {
1448
+ /**
1449
+ * Only positions with at least one reward; requested positions with nothing
1450
+ * are omitted.
1451
+ *
1452
+ * @generated from field: repeated data.v1.PositionRewards positions = 1;
1453
+ */
1454
+ positions: PositionRewards[];
1455
+ constructor(data?: PartialMessage<GetPositionRewardsResponse>);
1456
+ static readonly runtime: typeof proto3;
1457
+ static readonly typeName = "data.v1.GetPositionRewardsResponse";
1458
+ static readonly fields: FieldList;
1459
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetPositionRewardsResponse;
1460
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetPositionRewardsResponse;
1461
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPositionRewardsResponse;
1462
+ static equals(a: GetPositionRewardsResponse | PlainMessage<GetPositionRewardsResponse> | undefined, b: GetPositionRewardsResponse | PlainMessage<GetPositionRewardsResponse> | undefined): boolean;
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
+ }
1305
1644
  /**
1306
1645
  * @generated from message data.v1.GetRewardsResponse
1307
1646
  */
@@ -4,7 +4,7 @@
4
4
  // @ts-nocheck
5
5
  import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
6
6
  import { ChainTokenProfitLoss, Contract, MultichainToken, MultichainTokenProfitLoss, Pool as Pool$1, PoolRef, Portfolio, PortfolioValueModifier, Token, TokenDetailProfitLoss, TokenProfitLoss, TokenReportEventType, Transaction, TransactionTypeFilter, WalletProfitLoss } from "./types_pb.js";
7
- import { Pair, Pool, Position, PositionStatus, ProtocolVersion, RewardBalance } from "./poolTypes_pb.js";
7
+ import { Pair, Pool, Position, PositionStatus, ProtocolVersion, RewardBalance, Token as Token$1 } from "./poolTypes_pb.js";
8
8
  /**
9
9
  * @generated from enum data.v1.Platform
10
10
  */
@@ -1721,6 +1721,473 @@ GetRewardsRequest.fields = proto3.util.newFieldList(() => [
1721
1721
  { no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
1722
1722
  { no: 3, name: "reload", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1723
1723
  ]);
1724
+ /**
1725
+ * GetPositionRewards — LP-incentive rewards for specific positions: per reward
1726
+ * token, the pool's boosted APR and the position's unclaimed balance. Exists so
1727
+ * another service (liquidity) can surface rewards on its own positions endpoints
1728
+ * without duplicating campaign discovery, the reward-token/creator allowlists, or
1729
+ * their config: data-api stays the single owner of what counts as a surfaced
1730
+ * campaign.
1731
+ *
1732
+ * Scoped to the same allowlisted campaigns GetRewards uses.
1733
+ *
1734
+ * @generated from message data.v1.GetPositionRewardsRequest
1735
+ */
1736
+ export class GetPositionRewardsRequest extends Message {
1737
+ constructor(data) {
1738
+ super();
1739
+ /**
1740
+ * @generated from field: string wallet_address = 1;
1741
+ */
1742
+ this.walletAddress = "";
1743
+ /**
1744
+ * The positions to report on. Required: data-api cannot enumerate a wallet's
1745
+ * positions, and the upstream per-position feed lists only those that have
1746
+ * already accrued — so a V3 pool, or a live campaign with no accrual yet, is
1747
+ * invisible unless the caller names it.
1748
+ *
1749
+ * @generated from field: repeated data.v1.PositionRef positions = 2;
1750
+ */
1751
+ this.positions = [];
1752
+ proto3.util.initPartial(data, this);
1753
+ }
1754
+ static fromBinary(bytes, options) {
1755
+ return new GetPositionRewardsRequest().fromBinary(bytes, options);
1756
+ }
1757
+ static fromJson(jsonValue, options) {
1758
+ return new GetPositionRewardsRequest().fromJson(jsonValue, options);
1759
+ }
1760
+ static fromJsonString(jsonString, options) {
1761
+ return new GetPositionRewardsRequest().fromJsonString(jsonString, options);
1762
+ }
1763
+ static equals(a, b) {
1764
+ return proto3.util.equals(GetPositionRewardsRequest, a, b);
1765
+ }
1766
+ }
1767
+ GetPositionRewardsRequest.runtime = proto3;
1768
+ GetPositionRewardsRequest.typeName = "data.v1.GetPositionRewardsRequest";
1769
+ GetPositionRewardsRequest.fields = proto3.util.newFieldList(() => [
1770
+ { no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1771
+ { no: 2, name: "positions", kind: "message", T: PositionRef, repeated: true },
1772
+ ]);
1773
+ /**
1774
+ * Identifies one position to report rewards for.
1775
+ *
1776
+ * @generated from message data.v1.PositionRef
1777
+ */
1778
+ export class PositionRef extends Message {
1779
+ constructor(data) {
1780
+ super();
1781
+ /**
1782
+ * @generated from field: uint32 chain_id = 1;
1783
+ */
1784
+ this.chainId = 0;
1785
+ /**
1786
+ * V4 pool id / V3 pool address.
1787
+ *
1788
+ * @generated from field: string pool_id = 2;
1789
+ */
1790
+ this.poolId = "";
1791
+ /**
1792
+ * V3/V4 position NFT token id.
1793
+ *
1794
+ * @generated from field: string position_id = 3;
1795
+ */
1796
+ this.positionId = "";
1797
+ proto3.util.initPartial(data, this);
1798
+ }
1799
+ static fromBinary(bytes, options) {
1800
+ return new PositionRef().fromBinary(bytes, options);
1801
+ }
1802
+ static fromJson(jsonValue, options) {
1803
+ return new PositionRef().fromJson(jsonValue, options);
1804
+ }
1805
+ static fromJsonString(jsonString, options) {
1806
+ return new PositionRef().fromJsonString(jsonString, options);
1807
+ }
1808
+ static equals(a, b) {
1809
+ return proto3.util.equals(PositionRef, a, b);
1810
+ }
1811
+ }
1812
+ PositionRef.runtime = proto3;
1813
+ PositionRef.typeName = "data.v1.PositionRef";
1814
+ PositionRef.fields = proto3.util.newFieldList(() => [
1815
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1816
+ { no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1817
+ { no: 3, name: "position_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1818
+ ]);
1819
+ /**
1820
+ * What a position earns in one reward token.
1821
+ *
1822
+ * @generated from message data.v1.PositionReward
1823
+ */
1824
+ export class PositionReward extends Message {
1825
+ constructor(data) {
1826
+ super();
1827
+ /**
1828
+ * The POOL's boosted APR from campaigns paying this token — the sum of that
1829
+ * token's LIVE campaign APRs, in percent, on top of the pool's fee APR. Shared
1830
+ * by every position in the pool, not specific to this one. 0 means no live
1831
+ * campaign, which is normal for an ended campaign that still has a claimable
1832
+ * balance.
1833
+ *
1834
+ * @generated from field: double boosted_pool_apr = 2;
1835
+ */
1836
+ this.boostedPoolApr = 0;
1837
+ proto3.util.initPartial(data, this);
1838
+ }
1839
+ static fromBinary(bytes, options) {
1840
+ return new PositionReward().fromBinary(bytes, options);
1841
+ }
1842
+ static fromJson(jsonValue, options) {
1843
+ return new PositionReward().fromJson(jsonValue, options);
1844
+ }
1845
+ static fromJsonString(jsonString, options) {
1846
+ return new PositionReward().fromJsonString(jsonString, options);
1847
+ }
1848
+ static equals(a, b) {
1849
+ return proto3.util.equals(PositionReward, a, b);
1850
+ }
1851
+ }
1852
+ PositionReward.runtime = proto3;
1853
+ PositionReward.typeName = "data.v1.PositionReward";
1854
+ PositionReward.fields = proto3.util.newFieldList(() => [
1855
+ { no: 1, name: "token", kind: "message", T: Token$1 },
1856
+ { no: 2, name: "boosted_pool_apr", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1857
+ { no: 3, name: "unclaimed_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1858
+ { no: 4, name: "unclaimed_amount_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
1859
+ ]);
1860
+ /**
1861
+ * @generated from message data.v1.PositionRewards
1862
+ */
1863
+ export class PositionRewards extends Message {
1864
+ constructor(data) {
1865
+ super();
1866
+ /**
1867
+ * @generated from field: uint32 chain_id = 1;
1868
+ */
1869
+ this.chainId = 0;
1870
+ /**
1871
+ * @generated from field: string pool_id = 2;
1872
+ */
1873
+ this.poolId = "";
1874
+ /**
1875
+ * @generated from field: string position_id = 3;
1876
+ */
1877
+ this.positionId = "";
1878
+ /**
1879
+ * One entry per reward token with a live campaign or an unclaimed balance.
1880
+ *
1881
+ * @generated from field: repeated data.v1.PositionReward rewards = 4;
1882
+ */
1883
+ this.rewards = [];
1884
+ proto3.util.initPartial(data, this);
1885
+ }
1886
+ static fromBinary(bytes, options) {
1887
+ return new PositionRewards().fromBinary(bytes, options);
1888
+ }
1889
+ static fromJson(jsonValue, options) {
1890
+ return new PositionRewards().fromJson(jsonValue, options);
1891
+ }
1892
+ static fromJsonString(jsonString, options) {
1893
+ return new PositionRewards().fromJsonString(jsonString, options);
1894
+ }
1895
+ static equals(a, b) {
1896
+ return proto3.util.equals(PositionRewards, a, b);
1897
+ }
1898
+ }
1899
+ PositionRewards.runtime = proto3;
1900
+ PositionRewards.typeName = "data.v1.PositionRewards";
1901
+ PositionRewards.fields = proto3.util.newFieldList(() => [
1902
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1903
+ { no: 2, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1904
+ { no: 3, name: "position_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1905
+ { no: 4, name: "rewards", kind: "message", T: PositionReward, repeated: true },
1906
+ ]);
1907
+ /**
1908
+ * @generated from message data.v1.GetPositionRewardsResponse
1909
+ */
1910
+ export class GetPositionRewardsResponse extends Message {
1911
+ constructor(data) {
1912
+ super();
1913
+ /**
1914
+ * Only positions with at least one reward; requested positions with nothing
1915
+ * are omitted.
1916
+ *
1917
+ * @generated from field: repeated data.v1.PositionRewards positions = 1;
1918
+ */
1919
+ this.positions = [];
1920
+ proto3.util.initPartial(data, this);
1921
+ }
1922
+ static fromBinary(bytes, options) {
1923
+ return new GetPositionRewardsResponse().fromBinary(bytes, options);
1924
+ }
1925
+ static fromJson(jsonValue, options) {
1926
+ return new GetPositionRewardsResponse().fromJson(jsonValue, options);
1927
+ }
1928
+ static fromJsonString(jsonString, options) {
1929
+ return new GetPositionRewardsResponse().fromJsonString(jsonString, options);
1930
+ }
1931
+ static equals(a, b) {
1932
+ return proto3.util.equals(GetPositionRewardsResponse, a, b);
1933
+ }
1934
+ }
1935
+ GetPositionRewardsResponse.runtime = proto3;
1936
+ GetPositionRewardsResponse.typeName = "data.v1.GetPositionRewardsResponse";
1937
+ GetPositionRewardsResponse.fields = proto3.util.newFieldList(() => [
1938
+ { no: 1, name: "positions", kind: "message", T: PositionRewards, repeated: true },
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
+ ]);
1724
2191
  /**
1725
2192
  * @generated from message data.v1.GetRewardsResponse
1726
2193
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.216",
3
+ "version": "0.0.218",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },