@uniswap/client-data-api 0.0.215 → 0.0.217
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/data/v1/api-DataApiService_connectquery.d.ts +14 -1
- package/dist/data/v1/api-DataApiService_connectquery.js +14 -1
- package/dist/data/v1/api_connect.d.ts +10 -1
- package/dist/data/v1/api_connect.js +10 -1
- package/dist/data/v1/api_pb.d.ts +160 -1
- package/dist/data/v1/api_pb.js +217 -1
- package/dist/data/v1/auction_pb.d.ts +71 -4
- package/dist/data/v1/auction_pb.js +20 -4
- package/package.json +1 -1
|
@@ -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, 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,19 @@ 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
|
+
};
|
|
237
250
|
/**
|
|
238
251
|
* @generated from rpc data.v1.DataApiService.ListTopPools
|
|
239
252
|
*/
|
|
@@ -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, 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,19 @@ 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
|
+
};
|
|
241
254
|
/**
|
|
242
255
|
* @generated from rpc data.v1.DataApiService.ListTopPools
|
|
243
256
|
*/
|
|
@@ -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, 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,15 @@ 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
|
+
};
|
|
171
180
|
/**
|
|
172
181
|
* @generated from rpc data.v1.DataApiService.ListTopPools
|
|
173
182
|
*/
|
|
@@ -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, 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,15 @@ 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
|
+
},
|
|
175
184
|
/**
|
|
176
185
|
* @generated from rpc data.v1.DataApiService.ListTopPools
|
|
177
186
|
*/
|
package/dist/data/v1/api_pb.d.ts
CHANGED
|
@@ -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,165 @@ 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
|
+
}
|
|
1305
1464
|
/**
|
|
1306
1465
|
* @generated from message data.v1.GetRewardsResponse
|
|
1307
1466
|
*/
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -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,222 @@ 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
|
+
]);
|
|
1724
1940
|
/**
|
|
1725
1941
|
* @generated from message data.v1.GetRewardsResponse
|
|
1726
1942
|
*/
|
|
@@ -652,6 +652,40 @@ export declare class Auction extends Message<Auction> {
|
|
|
652
652
|
* @generated from field: bool is_blocked = 51;
|
|
653
653
|
*/
|
|
654
654
|
isBlocked: boolean;
|
|
655
|
+
/**
|
|
656
|
+
* v4 PoolKey of the graduation pool (52-56), indexed from the
|
|
657
|
+
* LbpInitializerCreated event's MigratorParameters at REGISTRATION — so they
|
|
658
|
+
* are set before the pool exists, unlike pool_key_hash, and the pool is
|
|
659
|
+
* swappable from its first block. currency0/currency1 are sorted ascending
|
|
660
|
+
* server-side, so the five fields are a usable PoolKey as-is.
|
|
661
|
+
*
|
|
662
|
+
* Do NOT derive these from SDK launch presets: fee and tick_spacing come from
|
|
663
|
+
* the launch's own PoolParameters, so a permissionless or advanced launch can
|
|
664
|
+
* carry any pair, and fee does not determine tick_spacing. Unset for auctions
|
|
665
|
+
* whose registration event carried no params (the old factory) or that
|
|
666
|
+
* predate this field — never guessed.
|
|
667
|
+
*
|
|
668
|
+
* @generated from field: optional string currency0 = 52;
|
|
669
|
+
*/
|
|
670
|
+
currency0?: string;
|
|
671
|
+
/**
|
|
672
|
+
* @generated from field: optional string currency1 = 53;
|
|
673
|
+
*/
|
|
674
|
+
currency1?: string;
|
|
675
|
+
/**
|
|
676
|
+
* @generated from field: optional uint32 fee = 54;
|
|
677
|
+
*/
|
|
678
|
+
fee?: number;
|
|
679
|
+
/**
|
|
680
|
+
* @generated from field: optional int32 tick_spacing = 55;
|
|
681
|
+
*/
|
|
682
|
+
tickSpacing?: number;
|
|
683
|
+
/**
|
|
684
|
+
* Zero address for a standard hookless pool.
|
|
685
|
+
*
|
|
686
|
+
* @generated from field: optional string hooks = 56;
|
|
687
|
+
*/
|
|
688
|
+
hooks?: string;
|
|
655
689
|
constructor(data?: PartialMessage<Auction>);
|
|
656
690
|
static readonly runtime: typeof proto3;
|
|
657
691
|
static readonly typeName = "data.v1.Auction";
|
|
@@ -1405,10 +1439,16 @@ export declare class GetTickDetailsResponse extends Message<GetTickDetailsRespon
|
|
|
1405
1439
|
* Auctions with a scheduled LBP migration that has not completed yet (or that
|
|
1406
1440
|
* completed within a short trailing window). Consumed by routing services to
|
|
1407
1441
|
* pre-register the migrated V4 pool before it appears in subgraph-based pool
|
|
1408
|
-
* discovery. Pool parameters (
|
|
1409
|
-
*
|
|
1410
|
-
*
|
|
1411
|
-
*
|
|
1442
|
+
* discovery. Pool parameters (currency0 / currency1 / fee / tick_spacing /
|
|
1443
|
+
* hooks) ARE served: the same MigratorParameters the on-chain
|
|
1444
|
+
* `initializers(auction)` getter returns are already in the
|
|
1445
|
+
* LbpInitializerCreated log, so data-api indexes them at registration and hands
|
|
1446
|
+
* consumers the resolved key — no per-auction RPC hop. (This reverses the
|
|
1447
|
+
* earlier "intentionally omitted" policy, which pushed that read onto every
|
|
1448
|
+
* consumer.) A consumer that also wants to revalidate migration_block still has
|
|
1449
|
+
* to read the getter itself; the fields here are unset when the registration
|
|
1450
|
+
* event carried no params, and must never be back-filled from SDK launch
|
|
1451
|
+
* presets.
|
|
1412
1452
|
*
|
|
1413
1453
|
* @generated from message data.v1.ListAuctionsPendingLbpMigrationRequest
|
|
1414
1454
|
*/
|
|
@@ -1472,6 +1512,33 @@ export declare class AuctionPendingLbpMigration extends Message<AuctionPendingLb
|
|
|
1472
1512
|
* @generated from field: optional string pool_key_hash = 8;
|
|
1473
1513
|
*/
|
|
1474
1514
|
poolKeyHash?: string;
|
|
1515
|
+
/**
|
|
1516
|
+
* v4 PoolKey of the pool this auction will migrate into (9-13), indexed from
|
|
1517
|
+
* the registration event's MigratorParameters. currency0 / currency1 are
|
|
1518
|
+
* sorted ascending. Unset when that event carried no params — pre-register
|
|
1519
|
+
* nothing rather than a guessed key.
|
|
1520
|
+
*
|
|
1521
|
+
* @generated from field: optional string currency0 = 9;
|
|
1522
|
+
*/
|
|
1523
|
+
currency0?: string;
|
|
1524
|
+
/**
|
|
1525
|
+
* @generated from field: optional string currency1 = 10;
|
|
1526
|
+
*/
|
|
1527
|
+
currency1?: string;
|
|
1528
|
+
/**
|
|
1529
|
+
* @generated from field: optional uint32 fee = 11;
|
|
1530
|
+
*/
|
|
1531
|
+
fee?: number;
|
|
1532
|
+
/**
|
|
1533
|
+
* @generated from field: optional int32 tick_spacing = 12;
|
|
1534
|
+
*/
|
|
1535
|
+
tickSpacing?: number;
|
|
1536
|
+
/**
|
|
1537
|
+
* Zero address for a standard hookless pool.
|
|
1538
|
+
*
|
|
1539
|
+
* @generated from field: optional string hooks = 13;
|
|
1540
|
+
*/
|
|
1541
|
+
hooks?: string;
|
|
1475
1542
|
constructor(data?: PartialMessage<AuctionPendingLbpMigration>);
|
|
1476
1543
|
static readonly runtime: typeof proto3;
|
|
1477
1544
|
static readonly typeName = "data.v1.AuctionPendingLbpMigration";
|
|
@@ -701,6 +701,11 @@ Auction.fields = proto3.util.newFieldList(() => [
|
|
|
701
701
|
{ no: 49, name: "x_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
702
702
|
{ no: 50, name: "fdv_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
703
703
|
{ no: 51, name: "is_blocked", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
704
|
+
{ no: 52, name: "currency0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
705
|
+
{ no: 53, name: "currency1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
706
|
+
{ no: 54, name: "fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
707
|
+
{ no: 55, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
708
|
+
{ no: 56, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
704
709
|
]);
|
|
705
710
|
/**
|
|
706
711
|
* Response containing auctions.
|
|
@@ -1703,10 +1708,16 @@ GetTickDetailsResponse.fields = proto3.util.newFieldList(() => [
|
|
|
1703
1708
|
* Auctions with a scheduled LBP migration that has not completed yet (or that
|
|
1704
1709
|
* completed within a short trailing window). Consumed by routing services to
|
|
1705
1710
|
* pre-register the migrated V4 pool before it appears in subgraph-based pool
|
|
1706
|
-
* discovery. Pool parameters (
|
|
1707
|
-
*
|
|
1708
|
-
*
|
|
1709
|
-
*
|
|
1711
|
+
* discovery. Pool parameters (currency0 / currency1 / fee / tick_spacing /
|
|
1712
|
+
* hooks) ARE served: the same MigratorParameters the on-chain
|
|
1713
|
+
* `initializers(auction)` getter returns are already in the
|
|
1714
|
+
* LbpInitializerCreated log, so data-api indexes them at registration and hands
|
|
1715
|
+
* consumers the resolved key — no per-auction RPC hop. (This reverses the
|
|
1716
|
+
* earlier "intentionally omitted" policy, which pushed that read onto every
|
|
1717
|
+
* consumer.) A consumer that also wants to revalidate migration_block still has
|
|
1718
|
+
* to read the getter itself; the fields here are unset when the registration
|
|
1719
|
+
* event carried no params, and must never be back-filled from SDK launch
|
|
1720
|
+
* presets.
|
|
1710
1721
|
*
|
|
1711
1722
|
* @generated from message data.v1.ListAuctionsPendingLbpMigrationRequest
|
|
1712
1723
|
*/
|
|
@@ -1805,6 +1816,11 @@ AuctionPendingLbpMigration.fields = proto3.util.newFieldList(() => [
|
|
|
1805
1816
|
{ no: 6, name: "lbp_strategy_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1806
1817
|
{ no: 7, name: "lbp_migration_block", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1807
1818
|
{ no: 8, name: "pool_key_hash", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1819
|
+
{ no: 9, name: "currency0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1820
|
+
{ no: 10, name: "currency1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1821
|
+
{ no: 11, name: "fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1822
|
+
{ no: 12, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1823
|
+
{ no: 13, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1808
1824
|
]);
|
|
1809
1825
|
/**
|
|
1810
1826
|
* @generated from message data.v1.ListAuctionsPendingLbpMigrationResponse
|