@uniswap/client-data-api 0.0.131 → 0.0.133
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_connect.d.ts +10 -1
- package/dist/data/v1/api_connect.js +10 -1
- package/dist/data/v1/api_pb.d.ts +91 -0
- package/dist/data/v1/api_pb.js +114 -0
- package/dist/data/v2/api_pb.d.ts +9 -2
- package/dist/data/v2/api_pb.js +7 -0
- package/dist/data/v2/types_pb.d.ts +33 -0
- package/dist/data/v2/types_pb.js +12 -0
- package/package.json +1 -1
|
@@ -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
|
*/
|
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -980,9 +980,10 @@ export declare class ListLaunchpadsResponse extends Message<ListLaunchpadsRespon
|
|
|
980
980
|
*/
|
|
981
981
|
export declare class ListLaunchesRequest extends Message<ListLaunchesRequest> {
|
|
982
982
|
/**
|
|
983
|
-
*
|
|
983
|
+
* Deprecated: use launchpad_ids. When both are set they are unioned.
|
|
984
984
|
*
|
|
985
|
-
* @generated from field: optional string launchpad_id = 1;
|
|
985
|
+
* @generated from field: optional string launchpad_id = 1 [deprecated = true];
|
|
986
|
+
* @deprecated
|
|
986
987
|
*/
|
|
987
988
|
launchpadId?: string;
|
|
988
989
|
/**
|
|
@@ -1001,6 +1002,12 @@ export declare class ListLaunchesRequest extends Message<ListLaunchesRequest> {
|
|
|
1001
1002
|
* @generated from field: optional data.v2.PageRequest page = 4;
|
|
1002
1003
|
*/
|
|
1003
1004
|
page?: PageRequest;
|
|
1005
|
+
/**
|
|
1006
|
+
* empty = all launchpads
|
|
1007
|
+
*
|
|
1008
|
+
* @generated from field: repeated string launchpad_ids = 5;
|
|
1009
|
+
*/
|
|
1010
|
+
launchpadIds: string[];
|
|
1004
1011
|
constructor(data?: PartialMessage<ListLaunchesRequest>);
|
|
1005
1012
|
static readonly runtime: typeof proto3;
|
|
1006
1013
|
static readonly typeName = "data.v2.ListLaunchesRequest";
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -1328,6 +1328,12 @@ export class ListLaunchesRequest extends Message {
|
|
|
1328
1328
|
* @generated from field: data.v2.LaunchesOrderBy sort_by = 3;
|
|
1329
1329
|
*/
|
|
1330
1330
|
this.sortBy = LaunchesOrderBy.UNSPECIFIED;
|
|
1331
|
+
/**
|
|
1332
|
+
* empty = all launchpads
|
|
1333
|
+
*
|
|
1334
|
+
* @generated from field: repeated string launchpad_ids = 5;
|
|
1335
|
+
*/
|
|
1336
|
+
this.launchpadIds = [];
|
|
1331
1337
|
proto3.util.initPartial(data, this);
|
|
1332
1338
|
}
|
|
1333
1339
|
static fromBinary(bytes, options) {
|
|
@@ -1350,6 +1356,7 @@ ListLaunchesRequest.fields = proto3.util.newFieldList(() => [
|
|
|
1350
1356
|
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
1351
1357
|
{ no: 3, name: "sort_by", kind: "enum", T: proto3.getEnumType(LaunchesOrderBy) },
|
|
1352
1358
|
{ no: 4, name: "page", kind: "message", T: PageRequest, opt: true },
|
|
1359
|
+
{ no: 5, name: "launchpad_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
1353
1360
|
]);
|
|
1354
1361
|
/**
|
|
1355
1362
|
* @generated from message data.v2.ListLaunchesResponse
|
|
@@ -881,6 +881,14 @@ export declare class LaunchStats extends Message<LaunchStats> {
|
|
|
881
881
|
* @generated from field: optional double price_change_percent_24h = 6;
|
|
882
882
|
*/
|
|
883
883
|
priceChangePercent24h?: number;
|
|
884
|
+
/**
|
|
885
|
+
* USD price sparkline over the trailing 24h, oldest first. Same shape as
|
|
886
|
+
* RankedMultichainToken.sparkline (Aurora-side timestamps are synthesized;
|
|
887
|
+
* CCA points are observed). Empty when no series is available.
|
|
888
|
+
*
|
|
889
|
+
* @generated from field: repeated data.v1.TimestampedValue sparkline = 7;
|
|
890
|
+
*/
|
|
891
|
+
sparkline: TimestampedValue[];
|
|
884
892
|
constructor(data?: PartialMessage<LaunchStats>);
|
|
885
893
|
static readonly runtime: typeof proto3;
|
|
886
894
|
static readonly typeName = "data.v2.LaunchStats";
|
|
@@ -932,6 +940,31 @@ export declare class Launch extends Message<Launch> {
|
|
|
932
940
|
* @generated from field: optional bool graduated = 7;
|
|
933
941
|
*/
|
|
934
942
|
graduated?: boolean;
|
|
943
|
+
/**
|
|
944
|
+
* CCA launches only, pre-graduation: bid volume as a percent of the
|
|
945
|
+
* required raise, clamped to [0, 100]. Unset once graduated, when the
|
|
946
|
+
* auction has no required raise, and for hook-attributed launches.
|
|
947
|
+
*
|
|
948
|
+
* @generated from field: optional double auction_fill_pct = 8;
|
|
949
|
+
*/
|
|
950
|
+
auctionFillPct?: number;
|
|
951
|
+
/**
|
|
952
|
+
* CCA launches only, pre-graduation: the auction's end block number
|
|
953
|
+
* (bigint as string). Clients estimate calendar time from blocks, like the
|
|
954
|
+
* v1 auction start_block/end_block. Unset once graduated.
|
|
955
|
+
*
|
|
956
|
+
* @generated from field: optional string auction_end_block = 9;
|
|
957
|
+
*/
|
|
958
|
+
auctionEndBlock?: string;
|
|
959
|
+
/**
|
|
960
|
+
* CCA launches only: distinct wallets that have placed bids in the auction
|
|
961
|
+
* (all bids, including withdrawn/exited — historical participation, so it
|
|
962
|
+
* stays set after graduation). Unset for hook-attributed launches, which
|
|
963
|
+
* have no auction. int32 matches the v1 auction total_bid_count.
|
|
964
|
+
*
|
|
965
|
+
* @generated from field: optional int32 bidder_count = 10;
|
|
966
|
+
*/
|
|
967
|
+
bidderCount?: number;
|
|
935
968
|
constructor(data?: PartialMessage<Launch>);
|
|
936
969
|
static readonly runtime: typeof proto3;
|
|
937
970
|
static readonly typeName = "data.v2.Launch";
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -1004,6 +1004,14 @@ LaunchToken.fields = proto3.util.newFieldList(() => [
|
|
|
1004
1004
|
export class LaunchStats extends Message {
|
|
1005
1005
|
constructor(data) {
|
|
1006
1006
|
super();
|
|
1007
|
+
/**
|
|
1008
|
+
* USD price sparkline over the trailing 24h, oldest first. Same shape as
|
|
1009
|
+
* RankedMultichainToken.sparkline (Aurora-side timestamps are synthesized;
|
|
1010
|
+
* CCA points are observed). Empty when no series is available.
|
|
1011
|
+
*
|
|
1012
|
+
* @generated from field: repeated data.v1.TimestampedValue sparkline = 7;
|
|
1013
|
+
*/
|
|
1014
|
+
this.sparkline = [];
|
|
1007
1015
|
proto3.util.initPartial(data, this);
|
|
1008
1016
|
}
|
|
1009
1017
|
static fromBinary(bytes, options) {
|
|
@@ -1028,6 +1036,7 @@ LaunchStats.fields = proto3.util.newFieldList(() => [
|
|
|
1028
1036
|
{ no: 4, name: "fdv_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1029
1037
|
{ no: 5, name: "price_change_percent_1h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1030
1038
|
{ no: 6, name: "price_change_percent_24h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1039
|
+
{ no: 7, name: "sparkline", kind: "message", T: TimestampedValue, repeated: true },
|
|
1031
1040
|
]);
|
|
1032
1041
|
/**
|
|
1033
1042
|
* One token launch: the earliest pool a (token, launchpad) pair created.
|
|
@@ -1079,6 +1088,9 @@ Launch.fields = proto3.util.newFieldList(() => [
|
|
|
1079
1088
|
{ no: 5, name: "launched_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1080
1089
|
{ no: 6, name: "stats", kind: "message", T: LaunchStats },
|
|
1081
1090
|
{ no: 7, name: "graduated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1091
|
+
{ no: 8, name: "auction_fill_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1092
|
+
{ no: 9, name: "auction_end_block", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1093
|
+
{ no: 10, name: "bidder_count", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1082
1094
|
]);
|
|
1083
1095
|
/**
|
|
1084
1096
|
* @generated from message data.v2.NftImage
|