@uniswap/client-data-api 0.0.132 → 0.0.134
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,4 +1,4 @@
|
|
|
1
|
-
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, 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, 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
|
|
@@ -123,6 +123,15 @@ export declare const DataApiService: {
|
|
|
123
123
|
readonly O: typeof GetPoolResponse;
|
|
124
124
|
readonly kind: MethodKind.Unary;
|
|
125
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* @generated from rpc data.v1.DataApiService.GetProtocolFees
|
|
128
|
+
*/
|
|
129
|
+
readonly getProtocolFees: {
|
|
130
|
+
readonly name: "GetProtocolFees";
|
|
131
|
+
readonly I: typeof GetProtocolFeesRequest;
|
|
132
|
+
readonly O: typeof GetProtocolFeesResponse;
|
|
133
|
+
readonly kind: MethodKind.Unary;
|
|
134
|
+
};
|
|
126
135
|
/**
|
|
127
136
|
* @generated from rpc data.v1.DataApiService.GetPosition
|
|
128
137
|
*/
|
|
@@ -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, 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, 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
|
|
@@ -127,6 +127,15 @@ export const DataApiService = {
|
|
|
127
127
|
O: GetPoolResponse,
|
|
128
128
|
kind: MethodKind.Unary,
|
|
129
129
|
},
|
|
130
|
+
/**
|
|
131
|
+
* @generated from rpc data.v1.DataApiService.GetProtocolFees
|
|
132
|
+
*/
|
|
133
|
+
getProtocolFees: {
|
|
134
|
+
name: "GetProtocolFees",
|
|
135
|
+
I: GetProtocolFeesRequest,
|
|
136
|
+
O: GetProtocolFeesResponse,
|
|
137
|
+
kind: MethodKind.Unary,
|
|
138
|
+
},
|
|
130
139
|
/**
|
|
131
140
|
* @generated from rpc data.v1.DataApiService.GetPosition
|
|
132
141
|
*/
|
package/dist/data/v1/api_pb.d.ts
CHANGED
|
@@ -921,6 +921,97 @@ export declare class GetPoolResponse extends Message<GetPoolResponse> {
|
|
|
921
921
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPoolResponse;
|
|
922
922
|
static equals(a: GetPoolResponse | PlainMessage<GetPoolResponse> | undefined, b: GetPoolResponse | PlainMessage<GetPoolResponse> | undefined): boolean;
|
|
923
923
|
}
|
|
924
|
+
/**
|
|
925
|
+
* Batch lookup of protocol/effective fees for a list of pools on one
|
|
926
|
+
* chain + protocol version, so list surfaces can merge fees into pools they
|
|
927
|
+
* already hold without refetching full pool objects.
|
|
928
|
+
*
|
|
929
|
+
* @generated from message data.v1.GetProtocolFeesRequest
|
|
930
|
+
*/
|
|
931
|
+
export declare class GetProtocolFeesRequest extends Message<GetProtocolFeesRequest> {
|
|
932
|
+
/**
|
|
933
|
+
* @generated from field: uint32 chain_id = 1;
|
|
934
|
+
*/
|
|
935
|
+
chainId: number;
|
|
936
|
+
/**
|
|
937
|
+
* @generated from field: pools.v1.ProtocolVersion protocol_version = 2;
|
|
938
|
+
*/
|
|
939
|
+
protocolVersion: ProtocolVersion;
|
|
940
|
+
/**
|
|
941
|
+
* v4: pool ids (bytes32 hex); v3: pool addresses; v2: pair addresses.
|
|
942
|
+
* At most 100 entries per request; duplicates are collapsed to one
|
|
943
|
+
* response entry.
|
|
944
|
+
*
|
|
945
|
+
* @generated from field: repeated string pool_ids = 3;
|
|
946
|
+
*/
|
|
947
|
+
poolIds: string[];
|
|
948
|
+
constructor(data?: PartialMessage<GetProtocolFeesRequest>);
|
|
949
|
+
static readonly runtime: typeof proto3;
|
|
950
|
+
static readonly typeName = "data.v1.GetProtocolFeesRequest";
|
|
951
|
+
static readonly fields: FieldList;
|
|
952
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProtocolFeesRequest;
|
|
953
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProtocolFeesRequest;
|
|
954
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProtocolFeesRequest;
|
|
955
|
+
static equals(a: GetProtocolFeesRequest | PlainMessage<GetProtocolFeesRequest> | undefined, b: GetProtocolFeesRequest | PlainMessage<GetProtocolFeesRequest> | undefined): boolean;
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* @generated from message data.v1.PoolProtocolFees
|
|
959
|
+
*/
|
|
960
|
+
export declare class PoolProtocolFees extends Message<PoolProtocolFees> {
|
|
961
|
+
/**
|
|
962
|
+
* Echoes the requested pool id exactly as sent.
|
|
963
|
+
*
|
|
964
|
+
* @generated from field: string pool_id = 1;
|
|
965
|
+
*/
|
|
966
|
+
poolId: string;
|
|
967
|
+
/**
|
|
968
|
+
* Protocol fee in pips (hundredths of a bip), same semantics as
|
|
969
|
+
* pools.v1.Pool.protocol_fee: v4 = ADDITIVE fee stacked on top of the LP
|
|
970
|
+
* fee (real stored value when non-zero; otherwise the governance-curve
|
|
971
|
+
* preview for EVERY pool — a test-only preview until v4 fees are live, so
|
|
972
|
+
* hooked/dynamic pools may carry an approximation); v2/v3 = SUBTRACTIVE
|
|
973
|
+
* share carved out of the displayed fee tier, stored live value ONLY (0 =
|
|
974
|
+
* fee switch off). UNSET when undeterminable: unknown pool, or a v2/v3
|
|
975
|
+
* pool the source cannot answer for.
|
|
976
|
+
*
|
|
977
|
+
* @generated from field: optional uint32 protocol_fee = 2;
|
|
978
|
+
*/
|
|
979
|
+
protocolFee?: number;
|
|
980
|
+
/**
|
|
981
|
+
* Effective (all-in) fee in pips. v4: lp fee + protocol_fee; v2/v3: the
|
|
982
|
+
* displayed fee tier. UNSET exactly when protocol_fee is unset.
|
|
983
|
+
*
|
|
984
|
+
* @generated from field: optional uint32 effective_fee = 3;
|
|
985
|
+
*/
|
|
986
|
+
effectiveFee?: number;
|
|
987
|
+
constructor(data?: PartialMessage<PoolProtocolFees>);
|
|
988
|
+
static readonly runtime: typeof proto3;
|
|
989
|
+
static readonly typeName = "data.v1.PoolProtocolFees";
|
|
990
|
+
static readonly fields: FieldList;
|
|
991
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolProtocolFees;
|
|
992
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolProtocolFees;
|
|
993
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolProtocolFees;
|
|
994
|
+
static equals(a: PoolProtocolFees | PlainMessage<PoolProtocolFees> | undefined, b: PoolProtocolFees | PlainMessage<PoolProtocolFees> | undefined): boolean;
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* @generated from message data.v1.GetProtocolFeesResponse
|
|
998
|
+
*/
|
|
999
|
+
export declare class GetProtocolFeesResponse extends Message<GetProtocolFeesResponse> {
|
|
1000
|
+
/**
|
|
1001
|
+
* One entry per unique requested pool id, in first-seen request order.
|
|
1002
|
+
*
|
|
1003
|
+
* @generated from field: repeated data.v1.PoolProtocolFees protocol_fees = 1;
|
|
1004
|
+
*/
|
|
1005
|
+
protocolFees: PoolProtocolFees[];
|
|
1006
|
+
constructor(data?: PartialMessage<GetProtocolFeesResponse>);
|
|
1007
|
+
static readonly runtime: typeof proto3;
|
|
1008
|
+
static readonly typeName = "data.v1.GetProtocolFeesResponse";
|
|
1009
|
+
static readonly fields: FieldList;
|
|
1010
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProtocolFeesResponse;
|
|
1011
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProtocolFeesResponse;
|
|
1012
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProtocolFeesResponse;
|
|
1013
|
+
static equals(a: GetProtocolFeesResponse | PlainMessage<GetProtocolFeesResponse> | undefined, b: GetProtocolFeesResponse | PlainMessage<GetProtocolFeesResponse> | undefined): boolean;
|
|
1014
|
+
}
|
|
924
1015
|
/**
|
|
925
1016
|
* @generated from message data.v1.GetPositionRequest
|
|
926
1017
|
*/
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -1316,6 +1316,120 @@ GetPoolResponse.typeName = "data.v1.GetPoolResponse";
|
|
|
1316
1316
|
GetPoolResponse.fields = proto3.util.newFieldList(() => [
|
|
1317
1317
|
{ no: 1, name: "pool", kind: "message", T: Pool },
|
|
1318
1318
|
]);
|
|
1319
|
+
/**
|
|
1320
|
+
* Batch lookup of protocol/effective fees for a list of pools on one
|
|
1321
|
+
* chain + protocol version, so list surfaces can merge fees into pools they
|
|
1322
|
+
* already hold without refetching full pool objects.
|
|
1323
|
+
*
|
|
1324
|
+
* @generated from message data.v1.GetProtocolFeesRequest
|
|
1325
|
+
*/
|
|
1326
|
+
export class GetProtocolFeesRequest extends Message {
|
|
1327
|
+
constructor(data) {
|
|
1328
|
+
super();
|
|
1329
|
+
/**
|
|
1330
|
+
* @generated from field: uint32 chain_id = 1;
|
|
1331
|
+
*/
|
|
1332
|
+
this.chainId = 0;
|
|
1333
|
+
/**
|
|
1334
|
+
* @generated from field: pools.v1.ProtocolVersion protocol_version = 2;
|
|
1335
|
+
*/
|
|
1336
|
+
this.protocolVersion = ProtocolVersion.UNSPECIFIED;
|
|
1337
|
+
/**
|
|
1338
|
+
* v4: pool ids (bytes32 hex); v3: pool addresses; v2: pair addresses.
|
|
1339
|
+
* At most 100 entries per request; duplicates are collapsed to one
|
|
1340
|
+
* response entry.
|
|
1341
|
+
*
|
|
1342
|
+
* @generated from field: repeated string pool_ids = 3;
|
|
1343
|
+
*/
|
|
1344
|
+
this.poolIds = [];
|
|
1345
|
+
proto3.util.initPartial(data, this);
|
|
1346
|
+
}
|
|
1347
|
+
static fromBinary(bytes, options) {
|
|
1348
|
+
return new GetProtocolFeesRequest().fromBinary(bytes, options);
|
|
1349
|
+
}
|
|
1350
|
+
static fromJson(jsonValue, options) {
|
|
1351
|
+
return new GetProtocolFeesRequest().fromJson(jsonValue, options);
|
|
1352
|
+
}
|
|
1353
|
+
static fromJsonString(jsonString, options) {
|
|
1354
|
+
return new GetProtocolFeesRequest().fromJsonString(jsonString, options);
|
|
1355
|
+
}
|
|
1356
|
+
static equals(a, b) {
|
|
1357
|
+
return proto3.util.equals(GetProtocolFeesRequest, a, b);
|
|
1358
|
+
}
|
|
1359
|
+
}
|
|
1360
|
+
GetProtocolFeesRequest.runtime = proto3;
|
|
1361
|
+
GetProtocolFeesRequest.typeName = "data.v1.GetProtocolFeesRequest";
|
|
1362
|
+
GetProtocolFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
1363
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1364
|
+
{ no: 2, name: "protocol_version", kind: "enum", T: proto3.getEnumType(ProtocolVersion) },
|
|
1365
|
+
{ no: 3, name: "pool_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1366
|
+
]);
|
|
1367
|
+
/**
|
|
1368
|
+
* @generated from message data.v1.PoolProtocolFees
|
|
1369
|
+
*/
|
|
1370
|
+
export class PoolProtocolFees extends Message {
|
|
1371
|
+
constructor(data) {
|
|
1372
|
+
super();
|
|
1373
|
+
/**
|
|
1374
|
+
* Echoes the requested pool id exactly as sent.
|
|
1375
|
+
*
|
|
1376
|
+
* @generated from field: string pool_id = 1;
|
|
1377
|
+
*/
|
|
1378
|
+
this.poolId = "";
|
|
1379
|
+
proto3.util.initPartial(data, this);
|
|
1380
|
+
}
|
|
1381
|
+
static fromBinary(bytes, options) {
|
|
1382
|
+
return new PoolProtocolFees().fromBinary(bytes, options);
|
|
1383
|
+
}
|
|
1384
|
+
static fromJson(jsonValue, options) {
|
|
1385
|
+
return new PoolProtocolFees().fromJson(jsonValue, options);
|
|
1386
|
+
}
|
|
1387
|
+
static fromJsonString(jsonString, options) {
|
|
1388
|
+
return new PoolProtocolFees().fromJsonString(jsonString, options);
|
|
1389
|
+
}
|
|
1390
|
+
static equals(a, b) {
|
|
1391
|
+
return proto3.util.equals(PoolProtocolFees, a, b);
|
|
1392
|
+
}
|
|
1393
|
+
}
|
|
1394
|
+
PoolProtocolFees.runtime = proto3;
|
|
1395
|
+
PoolProtocolFees.typeName = "data.v1.PoolProtocolFees";
|
|
1396
|
+
PoolProtocolFees.fields = proto3.util.newFieldList(() => [
|
|
1397
|
+
{ no: 1, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1398
|
+
{ no: 2, name: "protocol_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1399
|
+
{ no: 3, name: "effective_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1400
|
+
]);
|
|
1401
|
+
/**
|
|
1402
|
+
* @generated from message data.v1.GetProtocolFeesResponse
|
|
1403
|
+
*/
|
|
1404
|
+
export class GetProtocolFeesResponse extends Message {
|
|
1405
|
+
constructor(data) {
|
|
1406
|
+
super();
|
|
1407
|
+
/**
|
|
1408
|
+
* One entry per unique requested pool id, in first-seen request order.
|
|
1409
|
+
*
|
|
1410
|
+
* @generated from field: repeated data.v1.PoolProtocolFees protocol_fees = 1;
|
|
1411
|
+
*/
|
|
1412
|
+
this.protocolFees = [];
|
|
1413
|
+
proto3.util.initPartial(data, this);
|
|
1414
|
+
}
|
|
1415
|
+
static fromBinary(bytes, options) {
|
|
1416
|
+
return new GetProtocolFeesResponse().fromBinary(bytes, options);
|
|
1417
|
+
}
|
|
1418
|
+
static fromJson(jsonValue, options) {
|
|
1419
|
+
return new GetProtocolFeesResponse().fromJson(jsonValue, options);
|
|
1420
|
+
}
|
|
1421
|
+
static fromJsonString(jsonString, options) {
|
|
1422
|
+
return new GetProtocolFeesResponse().fromJsonString(jsonString, options);
|
|
1423
|
+
}
|
|
1424
|
+
static equals(a, b) {
|
|
1425
|
+
return proto3.util.equals(GetProtocolFeesResponse, a, b);
|
|
1426
|
+
}
|
|
1427
|
+
}
|
|
1428
|
+
GetProtocolFeesResponse.runtime = proto3;
|
|
1429
|
+
GetProtocolFeesResponse.typeName = "data.v1.GetProtocolFeesResponse";
|
|
1430
|
+
GetProtocolFeesResponse.fields = proto3.util.newFieldList(() => [
|
|
1431
|
+
{ no: 1, name: "protocol_fees", kind: "message", T: PoolProtocolFees, repeated: true },
|
|
1432
|
+
]);
|
|
1319
1433
|
/**
|
|
1320
1434
|
* @generated from message data.v1.GetPositionRequest
|
|
1321
1435
|
*/
|
|
@@ -464,6 +464,22 @@ export declare class Pool extends Message<Pool> {
|
|
|
464
464
|
* @generated from field: optional double volume_30d = 17;
|
|
465
465
|
*/
|
|
466
466
|
volume30d?: number;
|
|
467
|
+
/**
|
|
468
|
+
* Protocol fee, same unit as `fee` (pips). v4: ADDITIVE on top of `fee`;
|
|
469
|
+
* v2/v3: SUBTRACTIVE share of `fee` (distinguish by protocol_version).
|
|
470
|
+
* Optional: unset when there's no on-chain value; a set 0 means off.
|
|
471
|
+
*
|
|
472
|
+
* @generated from field: optional uint32 protocol_fee = 18;
|
|
473
|
+
*/
|
|
474
|
+
protocolFee?: number;
|
|
475
|
+
/**
|
|
476
|
+
* Effective (all-in) fee, same unit as `fee` (pips). v4: fee + protocol_fee;
|
|
477
|
+
* v2/v3: equals `fee`. Optional: unset when protocol_fee is unavailable and
|
|
478
|
+
* for v4 dynamic-fee pools (LP fee is per-swap).
|
|
479
|
+
*
|
|
480
|
+
* @generated from field: optional uint32 effective_fee = 19;
|
|
481
|
+
*/
|
|
482
|
+
effectiveFee?: number;
|
|
467
483
|
constructor(data?: PartialMessage<Pool>);
|
|
468
484
|
static readonly runtime: typeof proto3;
|
|
469
485
|
static readonly typeName = "pools.v1.Pool";
|
|
@@ -587,6 +587,8 @@ Pool.fields = proto3.util.newFieldList(() => [
|
|
|
587
587
|
{ no: 15, name: "boosted_apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
588
588
|
{ no: 16, name: "total_apr", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
589
589
|
{ no: 17, name: "volume_30d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
590
|
+
{ no: 18, name: "protocol_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
591
|
+
{ no: 19, name: "effective_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
590
592
|
]);
|
|
591
593
|
/**
|
|
592
594
|
* @generated from message pools.v1.Pair
|