@uniswap/client-data-api 0.0.275 → 0.0.277
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 +1 -27
- package/dist/data/v1/api-DataApiService_connectquery.js +1 -27
- package/dist/data/v1/api_connect.d.ts +1 -19
- package/dist/data/v1/api_connect.js +1 -19
- package/dist/data/v1/api_pb.d.ts +1 -204
- package/dist/data/v1/api_pb.js +1 -265
- package/dist/data/v1/types_pb.d.ts +0 -131
- package/dist/data/v1/types_pb.js +0 -153
- package/dist/data/v2/categories_pb.d.ts +4 -1
- package/dist/data/v2/categories_pb.js +4 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRewardsRequest, GetPositionRewardsResponse,
|
|
2
|
+
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, 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
|
*/
|
|
@@ -182,32 +182,6 @@ export declare const getPoolRewards: {
|
|
|
182
182
|
readonly typeName: "data.v1.DataApiService";
|
|
183
183
|
};
|
|
184
184
|
};
|
|
185
|
-
/**
|
|
186
|
-
* @generated from rpc data.v1.DataApiService.ListTokens
|
|
187
|
-
*/
|
|
188
|
-
export declare const listTokens: {
|
|
189
|
-
readonly localName: "listTokens";
|
|
190
|
-
readonly name: "ListTokens";
|
|
191
|
-
readonly kind: MethodKind.Unary;
|
|
192
|
-
readonly I: typeof ListTokensRequest;
|
|
193
|
-
readonly O: typeof ListTokensResponse;
|
|
194
|
-
readonly service: {
|
|
195
|
-
readonly typeName: "data.v1.DataApiService";
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
/**
|
|
199
|
-
* @generated from rpc data.v1.DataApiService.GetProtocolStats
|
|
200
|
-
*/
|
|
201
|
-
export declare const getProtocolStats: {
|
|
202
|
-
readonly localName: "getProtocolStats";
|
|
203
|
-
readonly name: "GetProtocolStats";
|
|
204
|
-
readonly kind: MethodKind.Unary;
|
|
205
|
-
readonly I: typeof GetProtocolStatsRequest;
|
|
206
|
-
readonly O: typeof GetProtocolStatsResponse;
|
|
207
|
-
readonly service: {
|
|
208
|
-
readonly typeName: "data.v1.DataApiService";
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
185
|
/**
|
|
212
186
|
* @generated from rpc data.v1.DataApiService.GetTokenPrices
|
|
213
187
|
*/
|
|
@@ -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, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRewardsRequest, GetPositionRewardsResponse,
|
|
6
|
+
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, 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
|
*/
|
|
@@ -186,32 +186,6 @@ export const getPoolRewards = {
|
|
|
186
186
|
typeName: "data.v1.DataApiService"
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
|
-
/**
|
|
190
|
-
* @generated from rpc data.v1.DataApiService.ListTokens
|
|
191
|
-
*/
|
|
192
|
-
export const listTokens = {
|
|
193
|
-
localName: "listTokens",
|
|
194
|
-
name: "ListTokens",
|
|
195
|
-
kind: MethodKind.Unary,
|
|
196
|
-
I: ListTokensRequest,
|
|
197
|
-
O: ListTokensResponse,
|
|
198
|
-
service: {
|
|
199
|
-
typeName: "data.v1.DataApiService"
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
/**
|
|
203
|
-
* @generated from rpc data.v1.DataApiService.GetProtocolStats
|
|
204
|
-
*/
|
|
205
|
-
export const getProtocolStats = {
|
|
206
|
-
localName: "getProtocolStats",
|
|
207
|
-
name: "GetProtocolStats",
|
|
208
|
-
kind: MethodKind.Unary,
|
|
209
|
-
I: GetProtocolStatsRequest,
|
|
210
|
-
O: GetProtocolStatsResponse,
|
|
211
|
-
service: {
|
|
212
|
-
typeName: "data.v1.DataApiService"
|
|
213
|
-
}
|
|
214
|
-
};
|
|
215
189
|
/**
|
|
216
190
|
* @generated from rpc data.v1.DataApiService.GetTokenPrices
|
|
217
191
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRewardsRequest, GetPositionRewardsResponse,
|
|
1
|
+
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, 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
|
|
@@ -132,24 +132,6 @@ export declare const DataApiService: {
|
|
|
132
132
|
readonly O: typeof GetPoolRewardsResponse;
|
|
133
133
|
readonly kind: MethodKind.Unary;
|
|
134
134
|
};
|
|
135
|
-
/**
|
|
136
|
-
* @generated from rpc data.v1.DataApiService.ListTokens
|
|
137
|
-
*/
|
|
138
|
-
readonly listTokens: {
|
|
139
|
-
readonly name: "ListTokens";
|
|
140
|
-
readonly I: typeof ListTokensRequest;
|
|
141
|
-
readonly O: typeof ListTokensResponse;
|
|
142
|
-
readonly kind: MethodKind.Unary;
|
|
143
|
-
};
|
|
144
|
-
/**
|
|
145
|
-
* @generated from rpc data.v1.DataApiService.GetProtocolStats
|
|
146
|
-
*/
|
|
147
|
-
readonly getProtocolStats: {
|
|
148
|
-
readonly name: "GetProtocolStats";
|
|
149
|
-
readonly I: typeof GetProtocolStatsRequest;
|
|
150
|
-
readonly O: typeof GetProtocolStatsResponse;
|
|
151
|
-
readonly kind: MethodKind.Unary;
|
|
152
|
-
};
|
|
153
135
|
/**
|
|
154
136
|
* @generated from rpc data.v1.DataApiService.GetTokenPrices
|
|
155
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, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRewardsRequest, GetPositionRewardsResponse,
|
|
5
|
+
import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPoolRewardsRequest, GetPoolRewardsResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRewardsRequest, GetPositionRewardsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, 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
|
|
@@ -136,24 +136,6 @@ export const DataApiService = {
|
|
|
136
136
|
O: GetPoolRewardsResponse,
|
|
137
137
|
kind: MethodKind.Unary,
|
|
138
138
|
},
|
|
139
|
-
/**
|
|
140
|
-
* @generated from rpc data.v1.DataApiService.ListTokens
|
|
141
|
-
*/
|
|
142
|
-
listTokens: {
|
|
143
|
-
name: "ListTokens",
|
|
144
|
-
I: ListTokensRequest,
|
|
145
|
-
O: ListTokensResponse,
|
|
146
|
-
kind: MethodKind.Unary,
|
|
147
|
-
},
|
|
148
|
-
/**
|
|
149
|
-
* @generated from rpc data.v1.DataApiService.GetProtocolStats
|
|
150
|
-
*/
|
|
151
|
-
getProtocolStats: {
|
|
152
|
-
name: "GetProtocolStats",
|
|
153
|
-
I: GetProtocolStatsRequest,
|
|
154
|
-
O: GetProtocolStatsResponse,
|
|
155
|
-
kind: MethodKind.Unary,
|
|
156
|
-
},
|
|
157
139
|
/**
|
|
158
140
|
* @generated from rpc data.v1.DataApiService.GetTokenPrices
|
|
159
141
|
*/
|
package/dist/data/v1/api_pb.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
-
import { ChainTokenProfitLoss, Contract,
|
|
3
|
+
import { ChainTokenProfitLoss, Contract, MultichainTokenProfitLoss, PoolRef, Portfolio, PortfolioValueModifier, Token, TokenDetailProfitLoss, TokenProfitLoss, TokenReportEventType, Transaction, TransactionTypeFilter, WalletProfitLoss } from "./types_pb.js";
|
|
4
4
|
import { RewardBalance, Token as Token$1 } from "./poolTypes_pb.js";
|
|
5
5
|
/**
|
|
6
6
|
* @generated from enum data.v1.Platform
|
|
@@ -15,47 +15,6 @@ export declare enum Platform {
|
|
|
15
15
|
*/
|
|
16
16
|
SVM = 1
|
|
17
17
|
}
|
|
18
|
-
/**
|
|
19
|
-
* @generated from enum data.v1.TokensOrderBy
|
|
20
|
-
*/
|
|
21
|
-
export declare enum TokensOrderBy {
|
|
22
|
-
/**
|
|
23
|
-
* @generated from enum value: TOKENS_ORDER_BY_UNSPECIFIED = 0;
|
|
24
|
-
*/
|
|
25
|
-
UNSPECIFIED = 0,
|
|
26
|
-
/**
|
|
27
|
-
* @generated from enum value: TOKENS_ORDER_BY_FDV = 1;
|
|
28
|
-
*/
|
|
29
|
-
FDV = 1,
|
|
30
|
-
/**
|
|
31
|
-
* @generated from enum value: TOKENS_ORDER_BY_VOLUME_1H = 2;
|
|
32
|
-
*/
|
|
33
|
-
VOLUME_1H = 2,
|
|
34
|
-
/**
|
|
35
|
-
* @generated from enum value: TOKENS_ORDER_BY_VOLUME_1D = 3;
|
|
36
|
-
*/
|
|
37
|
-
VOLUME_1D = 3,
|
|
38
|
-
/**
|
|
39
|
-
* @generated from enum value: TOKENS_ORDER_BY_VOLUME_7D = 4;
|
|
40
|
-
*/
|
|
41
|
-
VOLUME_7D = 4,
|
|
42
|
-
/**
|
|
43
|
-
* @generated from enum value: TOKENS_ORDER_BY_VOLUME_30D = 5;
|
|
44
|
-
*/
|
|
45
|
-
VOLUME_30D = 5,
|
|
46
|
-
/**
|
|
47
|
-
* @generated from enum value: TOKENS_ORDER_BY_VOLUME_1Y = 6;
|
|
48
|
-
*/
|
|
49
|
-
VOLUME_1Y = 6,
|
|
50
|
-
/**
|
|
51
|
-
* @generated from enum value: TOKENS_ORDER_BY_PRICE_CHANGE_1H = 7;
|
|
52
|
-
*/
|
|
53
|
-
PRICE_CHANGE_1H = 7,
|
|
54
|
-
/**
|
|
55
|
-
* @generated from enum value: TOKENS_ORDER_BY_PRICE_CHANGE_1D = 8;
|
|
56
|
-
*/
|
|
57
|
-
PRICE_CHANGE_1D = 8
|
|
58
|
-
}
|
|
59
18
|
/**
|
|
60
19
|
* @generated from enum data.v1.ChartPeriod
|
|
61
20
|
*/
|
|
@@ -1185,168 +1144,6 @@ export declare class GetRewardsResponse extends Message<GetRewardsResponse> {
|
|
|
1185
1144
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRewardsResponse;
|
|
1186
1145
|
static equals(a: GetRewardsResponse | PlainMessage<GetRewardsResponse> | undefined, b: GetRewardsResponse | PlainMessage<GetRewardsResponse> | undefined): boolean;
|
|
1187
1146
|
}
|
|
1188
|
-
/**
|
|
1189
|
-
* @generated from message data.v1.ListTokensRequest
|
|
1190
|
-
*/
|
|
1191
|
-
export declare class ListTokensRequest extends Message<ListTokensRequest> {
|
|
1192
|
-
/**
|
|
1193
|
-
* @generated from field: repeated uint32 chain_ids = 1;
|
|
1194
|
-
*/
|
|
1195
|
-
chainIds: number[];
|
|
1196
|
-
/**
|
|
1197
|
-
* @generated from field: optional data.v1.TokensOrderBy order_by = 2;
|
|
1198
|
-
*/
|
|
1199
|
-
orderBy?: TokensOrderBy;
|
|
1200
|
-
/**
|
|
1201
|
-
* default false
|
|
1202
|
-
*
|
|
1203
|
-
* @generated from field: optional bool ascending = 3;
|
|
1204
|
-
*/
|
|
1205
|
-
ascending?: boolean;
|
|
1206
|
-
/**
|
|
1207
|
-
* @generated from field: optional uint32 page_size = 4;
|
|
1208
|
-
*/
|
|
1209
|
-
pageSize?: number;
|
|
1210
|
-
/**
|
|
1211
|
-
* @generated from field: optional string page_token = 5;
|
|
1212
|
-
*/
|
|
1213
|
-
pageToken?: string;
|
|
1214
|
-
/**
|
|
1215
|
-
* @generated from field: optional bool multichain = 6;
|
|
1216
|
-
*/
|
|
1217
|
-
multichain?: boolean;
|
|
1218
|
-
constructor(data?: PartialMessage<ListTokensRequest>);
|
|
1219
|
-
static readonly runtime: typeof proto3;
|
|
1220
|
-
static readonly typeName = "data.v1.ListTokensRequest";
|
|
1221
|
-
static readonly fields: FieldList;
|
|
1222
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTokensRequest;
|
|
1223
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTokensRequest;
|
|
1224
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTokensRequest;
|
|
1225
|
-
static equals(a: ListTokensRequest | PlainMessage<ListTokensRequest> | undefined, b: ListTokensRequest | PlainMessage<ListTokensRequest> | undefined): boolean;
|
|
1226
|
-
}
|
|
1227
|
-
/**
|
|
1228
|
-
* @generated from message data.v1.ListTokensResponse
|
|
1229
|
-
*/
|
|
1230
|
-
export declare class ListTokensResponse extends Message<ListTokensResponse> {
|
|
1231
|
-
/**
|
|
1232
|
-
* @generated from field: repeated data.v1.Token tokens = 1;
|
|
1233
|
-
*/
|
|
1234
|
-
tokens: Token[];
|
|
1235
|
-
/**
|
|
1236
|
-
* @generated from field: optional string next_page_token = 2;
|
|
1237
|
-
*/
|
|
1238
|
-
nextPageToken?: string;
|
|
1239
|
-
/**
|
|
1240
|
-
* @generated from field: repeated data.v1.MultichainToken multichain_tokens = 3;
|
|
1241
|
-
*/
|
|
1242
|
-
multichainTokens: MultichainToken[];
|
|
1243
|
-
constructor(data?: PartialMessage<ListTokensResponse>);
|
|
1244
|
-
static readonly runtime: typeof proto3;
|
|
1245
|
-
static readonly typeName = "data.v1.ListTokensResponse";
|
|
1246
|
-
static readonly fields: FieldList;
|
|
1247
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTokensResponse;
|
|
1248
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTokensResponse;
|
|
1249
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTokensResponse;
|
|
1250
|
-
static equals(a: ListTokensResponse | PlainMessage<ListTokensResponse> | undefined, b: ListTokensResponse | PlainMessage<ListTokensResponse> | undefined): boolean;
|
|
1251
|
-
}
|
|
1252
|
-
/**
|
|
1253
|
-
* @generated from message data.v1.GetProtocolStatsRequest
|
|
1254
|
-
*/
|
|
1255
|
-
export declare class GetProtocolStatsRequest extends Message<GetProtocolStatsRequest> {
|
|
1256
|
-
constructor(data?: PartialMessage<GetProtocolStatsRequest>);
|
|
1257
|
-
static readonly runtime: typeof proto3;
|
|
1258
|
-
static readonly typeName = "data.v1.GetProtocolStatsRequest";
|
|
1259
|
-
static readonly fields: FieldList;
|
|
1260
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProtocolStatsRequest;
|
|
1261
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProtocolStatsRequest;
|
|
1262
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProtocolStatsRequest;
|
|
1263
|
-
static equals(a: GetProtocolStatsRequest | PlainMessage<GetProtocolStatsRequest> | undefined, b: GetProtocolStatsRequest | PlainMessage<GetProtocolStatsRequest> | undefined): boolean;
|
|
1264
|
-
}
|
|
1265
|
-
/**
|
|
1266
|
-
* @generated from message data.v1.GetProtocolStatsResponse
|
|
1267
|
-
*/
|
|
1268
|
-
export declare class GetProtocolStatsResponse extends Message<GetProtocolStatsResponse> {
|
|
1269
|
-
/**
|
|
1270
|
-
* @generated from field: uint32 total_pools = 1;
|
|
1271
|
-
*/
|
|
1272
|
-
totalPools: number;
|
|
1273
|
-
/**
|
|
1274
|
-
* @generated from field: uint32 total_v2_pools = 2;
|
|
1275
|
-
*/
|
|
1276
|
-
totalV2Pools: number;
|
|
1277
|
-
/**
|
|
1278
|
-
* @generated from field: uint32 total_v3_pools = 3;
|
|
1279
|
-
*/
|
|
1280
|
-
totalV3Pools: number;
|
|
1281
|
-
/**
|
|
1282
|
-
* @generated from field: uint32 total_v4_pools = 4;
|
|
1283
|
-
*/
|
|
1284
|
-
totalV4Pools: number;
|
|
1285
|
-
/**
|
|
1286
|
-
* @generated from field: double tvl = 5;
|
|
1287
|
-
*/
|
|
1288
|
-
tvl: number;
|
|
1289
|
-
/**
|
|
1290
|
-
* @generated from field: double v2_tvl = 6;
|
|
1291
|
-
*/
|
|
1292
|
-
v2Tvl: number;
|
|
1293
|
-
/**
|
|
1294
|
-
* @generated from field: double v3_tvl = 7;
|
|
1295
|
-
*/
|
|
1296
|
-
v3Tvl: number;
|
|
1297
|
-
/**
|
|
1298
|
-
* @generated from field: double v4_tvl = 8;
|
|
1299
|
-
*/
|
|
1300
|
-
v4Tvl: number;
|
|
1301
|
-
/**
|
|
1302
|
-
* @generated from field: double volume_1d = 9;
|
|
1303
|
-
*/
|
|
1304
|
-
volume1d: number;
|
|
1305
|
-
/**
|
|
1306
|
-
* @generated from field: double v2_volume_1d = 10;
|
|
1307
|
-
*/
|
|
1308
|
-
v2Volume1d: number;
|
|
1309
|
-
/**
|
|
1310
|
-
* @generated from field: double v3_volume_1d = 11;
|
|
1311
|
-
*/
|
|
1312
|
-
v3Volume1d: number;
|
|
1313
|
-
/**
|
|
1314
|
-
* @generated from field: double v4_volume_1d = 12;
|
|
1315
|
-
*/
|
|
1316
|
-
v4Volume1d: number;
|
|
1317
|
-
/**
|
|
1318
|
-
* @generated from field: float volume_change_1d = 13;
|
|
1319
|
-
*/
|
|
1320
|
-
volumeChange1d: number;
|
|
1321
|
-
/**
|
|
1322
|
-
* @generated from field: float tvl_change_1d = 14;
|
|
1323
|
-
*/
|
|
1324
|
-
tvlChange1d: number;
|
|
1325
|
-
/**
|
|
1326
|
-
* @generated from field: float v2_tvl_change_1d = 15;
|
|
1327
|
-
*/
|
|
1328
|
-
v2TvlChange1d: number;
|
|
1329
|
-
/**
|
|
1330
|
-
* @generated from field: float v3_tvl_change_1d = 16;
|
|
1331
|
-
*/
|
|
1332
|
-
v3TvlChange1d: number;
|
|
1333
|
-
/**
|
|
1334
|
-
* @generated from field: float v4_tvl_change_1d = 17;
|
|
1335
|
-
*/
|
|
1336
|
-
v4TvlChange1d: number;
|
|
1337
|
-
/**
|
|
1338
|
-
* @generated from field: float total_pools_change_1d = 18;
|
|
1339
|
-
*/
|
|
1340
|
-
totalPoolsChange1d: number;
|
|
1341
|
-
constructor(data?: PartialMessage<GetProtocolStatsResponse>);
|
|
1342
|
-
static readonly runtime: typeof proto3;
|
|
1343
|
-
static readonly typeName = "data.v1.GetProtocolStatsResponse";
|
|
1344
|
-
static readonly fields: FieldList;
|
|
1345
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetProtocolStatsResponse;
|
|
1346
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetProtocolStatsResponse;
|
|
1347
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetProtocolStatsResponse;
|
|
1348
|
-
static equals(a: GetProtocolStatsResponse | PlainMessage<GetProtocolStatsResponse> | undefined, b: GetProtocolStatsResponse | PlainMessage<GetProtocolStatsResponse> | undefined): boolean;
|
|
1349
|
-
}
|
|
1350
1147
|
/**
|
|
1351
1148
|
* @generated from message data.v1.GetPortfolioChartRequest
|
|
1352
1149
|
*/
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
6
|
-
import { ChainTokenProfitLoss, Contract,
|
|
6
|
+
import { ChainTokenProfitLoss, Contract, MultichainTokenProfitLoss, PoolRef, Portfolio, PortfolioValueModifier, Token, TokenDetailProfitLoss, TokenProfitLoss, TokenReportEventType, Transaction, TransactionTypeFilter, WalletProfitLoss } from "./types_pb.js";
|
|
7
7
|
import { RewardBalance, Token as Token$1 } from "./poolTypes_pb.js";
|
|
8
8
|
/**
|
|
9
9
|
* @generated from enum data.v1.Platform
|
|
@@ -24,60 +24,6 @@ proto3.util.setEnumType(Platform, "data.v1.Platform", [
|
|
|
24
24
|
{ no: 0, name: "EVM" },
|
|
25
25
|
{ no: 1, name: "SVM" },
|
|
26
26
|
]);
|
|
27
|
-
/**
|
|
28
|
-
* @generated from enum data.v1.TokensOrderBy
|
|
29
|
-
*/
|
|
30
|
-
export var TokensOrderBy;
|
|
31
|
-
(function (TokensOrderBy) {
|
|
32
|
-
/**
|
|
33
|
-
* @generated from enum value: TOKENS_ORDER_BY_UNSPECIFIED = 0;
|
|
34
|
-
*/
|
|
35
|
-
TokensOrderBy[TokensOrderBy["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
36
|
-
/**
|
|
37
|
-
* @generated from enum value: TOKENS_ORDER_BY_FDV = 1;
|
|
38
|
-
*/
|
|
39
|
-
TokensOrderBy[TokensOrderBy["FDV"] = 1] = "FDV";
|
|
40
|
-
/**
|
|
41
|
-
* @generated from enum value: TOKENS_ORDER_BY_VOLUME_1H = 2;
|
|
42
|
-
*/
|
|
43
|
-
TokensOrderBy[TokensOrderBy["VOLUME_1H"] = 2] = "VOLUME_1H";
|
|
44
|
-
/**
|
|
45
|
-
* @generated from enum value: TOKENS_ORDER_BY_VOLUME_1D = 3;
|
|
46
|
-
*/
|
|
47
|
-
TokensOrderBy[TokensOrderBy["VOLUME_1D"] = 3] = "VOLUME_1D";
|
|
48
|
-
/**
|
|
49
|
-
* @generated from enum value: TOKENS_ORDER_BY_VOLUME_7D = 4;
|
|
50
|
-
*/
|
|
51
|
-
TokensOrderBy[TokensOrderBy["VOLUME_7D"] = 4] = "VOLUME_7D";
|
|
52
|
-
/**
|
|
53
|
-
* @generated from enum value: TOKENS_ORDER_BY_VOLUME_30D = 5;
|
|
54
|
-
*/
|
|
55
|
-
TokensOrderBy[TokensOrderBy["VOLUME_30D"] = 5] = "VOLUME_30D";
|
|
56
|
-
/**
|
|
57
|
-
* @generated from enum value: TOKENS_ORDER_BY_VOLUME_1Y = 6;
|
|
58
|
-
*/
|
|
59
|
-
TokensOrderBy[TokensOrderBy["VOLUME_1Y"] = 6] = "VOLUME_1Y";
|
|
60
|
-
/**
|
|
61
|
-
* @generated from enum value: TOKENS_ORDER_BY_PRICE_CHANGE_1H = 7;
|
|
62
|
-
*/
|
|
63
|
-
TokensOrderBy[TokensOrderBy["PRICE_CHANGE_1H"] = 7] = "PRICE_CHANGE_1H";
|
|
64
|
-
/**
|
|
65
|
-
* @generated from enum value: TOKENS_ORDER_BY_PRICE_CHANGE_1D = 8;
|
|
66
|
-
*/
|
|
67
|
-
TokensOrderBy[TokensOrderBy["PRICE_CHANGE_1D"] = 8] = "PRICE_CHANGE_1D";
|
|
68
|
-
})(TokensOrderBy || (TokensOrderBy = {}));
|
|
69
|
-
// Retrieve enum metadata with: proto3.getEnumType(TokensOrderBy)
|
|
70
|
-
proto3.util.setEnumType(TokensOrderBy, "data.v1.TokensOrderBy", [
|
|
71
|
-
{ no: 0, name: "TOKENS_ORDER_BY_UNSPECIFIED" },
|
|
72
|
-
{ no: 1, name: "TOKENS_ORDER_BY_FDV" },
|
|
73
|
-
{ no: 2, name: "TOKENS_ORDER_BY_VOLUME_1H" },
|
|
74
|
-
{ no: 3, name: "TOKENS_ORDER_BY_VOLUME_1D" },
|
|
75
|
-
{ no: 4, name: "TOKENS_ORDER_BY_VOLUME_7D" },
|
|
76
|
-
{ no: 5, name: "TOKENS_ORDER_BY_VOLUME_30D" },
|
|
77
|
-
{ no: 6, name: "TOKENS_ORDER_BY_VOLUME_1Y" },
|
|
78
|
-
{ no: 7, name: "TOKENS_ORDER_BY_PRICE_CHANGE_1H" },
|
|
79
|
-
{ no: 8, name: "TOKENS_ORDER_BY_PRICE_CHANGE_1D" },
|
|
80
|
-
]);
|
|
81
27
|
/**
|
|
82
28
|
* @generated from enum data.v1.ChartPeriod
|
|
83
29
|
*/
|
|
@@ -1680,216 +1626,6 @@ GetRewardsResponse.fields = proto3.util.newFieldList(() => [
|
|
|
1680
1626
|
{ no: 2, name: "reward_balances", kind: "message", T: RewardBalance, repeated: true },
|
|
1681
1627
|
{ no: 3, name: "total_unclaimed_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1682
1628
|
]);
|
|
1683
|
-
/**
|
|
1684
|
-
* @generated from message data.v1.ListTokensRequest
|
|
1685
|
-
*/
|
|
1686
|
-
export class ListTokensRequest extends Message {
|
|
1687
|
-
constructor(data) {
|
|
1688
|
-
super();
|
|
1689
|
-
/**
|
|
1690
|
-
* @generated from field: repeated uint32 chain_ids = 1;
|
|
1691
|
-
*/
|
|
1692
|
-
this.chainIds = [];
|
|
1693
|
-
proto3.util.initPartial(data, this);
|
|
1694
|
-
}
|
|
1695
|
-
static fromBinary(bytes, options) {
|
|
1696
|
-
return new ListTokensRequest().fromBinary(bytes, options);
|
|
1697
|
-
}
|
|
1698
|
-
static fromJson(jsonValue, options) {
|
|
1699
|
-
return new ListTokensRequest().fromJson(jsonValue, options);
|
|
1700
|
-
}
|
|
1701
|
-
static fromJsonString(jsonString, options) {
|
|
1702
|
-
return new ListTokensRequest().fromJsonString(jsonString, options);
|
|
1703
|
-
}
|
|
1704
|
-
static equals(a, b) {
|
|
1705
|
-
return proto3.util.equals(ListTokensRequest, a, b);
|
|
1706
|
-
}
|
|
1707
|
-
}
|
|
1708
|
-
ListTokensRequest.runtime = proto3;
|
|
1709
|
-
ListTokensRequest.typeName = "data.v1.ListTokensRequest";
|
|
1710
|
-
ListTokensRequest.fields = proto3.util.newFieldList(() => [
|
|
1711
|
-
{ no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
1712
|
-
{ no: 2, name: "order_by", kind: "enum", T: proto3.getEnumType(TokensOrderBy), opt: true },
|
|
1713
|
-
{ no: 3, name: "ascending", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1714
|
-
{ no: 4, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1715
|
-
{ no: 5, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1716
|
-
{ no: 6, name: "multichain", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1717
|
-
]);
|
|
1718
|
-
/**
|
|
1719
|
-
* @generated from message data.v1.ListTokensResponse
|
|
1720
|
-
*/
|
|
1721
|
-
export class ListTokensResponse extends Message {
|
|
1722
|
-
constructor(data) {
|
|
1723
|
-
super();
|
|
1724
|
-
/**
|
|
1725
|
-
* @generated from field: repeated data.v1.Token tokens = 1;
|
|
1726
|
-
*/
|
|
1727
|
-
this.tokens = [];
|
|
1728
|
-
/**
|
|
1729
|
-
* @generated from field: repeated data.v1.MultichainToken multichain_tokens = 3;
|
|
1730
|
-
*/
|
|
1731
|
-
this.multichainTokens = [];
|
|
1732
|
-
proto3.util.initPartial(data, this);
|
|
1733
|
-
}
|
|
1734
|
-
static fromBinary(bytes, options) {
|
|
1735
|
-
return new ListTokensResponse().fromBinary(bytes, options);
|
|
1736
|
-
}
|
|
1737
|
-
static fromJson(jsonValue, options) {
|
|
1738
|
-
return new ListTokensResponse().fromJson(jsonValue, options);
|
|
1739
|
-
}
|
|
1740
|
-
static fromJsonString(jsonString, options) {
|
|
1741
|
-
return new ListTokensResponse().fromJsonString(jsonString, options);
|
|
1742
|
-
}
|
|
1743
|
-
static equals(a, b) {
|
|
1744
|
-
return proto3.util.equals(ListTokensResponse, a, b);
|
|
1745
|
-
}
|
|
1746
|
-
}
|
|
1747
|
-
ListTokensResponse.runtime = proto3;
|
|
1748
|
-
ListTokensResponse.typeName = "data.v1.ListTokensResponse";
|
|
1749
|
-
ListTokensResponse.fields = proto3.util.newFieldList(() => [
|
|
1750
|
-
{ no: 1, name: "tokens", kind: "message", T: Token, repeated: true },
|
|
1751
|
-
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1752
|
-
{ no: 3, name: "multichain_tokens", kind: "message", T: MultichainToken, repeated: true },
|
|
1753
|
-
]);
|
|
1754
|
-
/**
|
|
1755
|
-
* @generated from message data.v1.GetProtocolStatsRequest
|
|
1756
|
-
*/
|
|
1757
|
-
export class GetProtocolStatsRequest extends Message {
|
|
1758
|
-
constructor(data) {
|
|
1759
|
-
super();
|
|
1760
|
-
proto3.util.initPartial(data, this);
|
|
1761
|
-
}
|
|
1762
|
-
static fromBinary(bytes, options) {
|
|
1763
|
-
return new GetProtocolStatsRequest().fromBinary(bytes, options);
|
|
1764
|
-
}
|
|
1765
|
-
static fromJson(jsonValue, options) {
|
|
1766
|
-
return new GetProtocolStatsRequest().fromJson(jsonValue, options);
|
|
1767
|
-
}
|
|
1768
|
-
static fromJsonString(jsonString, options) {
|
|
1769
|
-
return new GetProtocolStatsRequest().fromJsonString(jsonString, options);
|
|
1770
|
-
}
|
|
1771
|
-
static equals(a, b) {
|
|
1772
|
-
return proto3.util.equals(GetProtocolStatsRequest, a, b);
|
|
1773
|
-
}
|
|
1774
|
-
}
|
|
1775
|
-
GetProtocolStatsRequest.runtime = proto3;
|
|
1776
|
-
GetProtocolStatsRequest.typeName = "data.v1.GetProtocolStatsRequest";
|
|
1777
|
-
GetProtocolStatsRequest.fields = proto3.util.newFieldList(() => []);
|
|
1778
|
-
/**
|
|
1779
|
-
* @generated from message data.v1.GetProtocolStatsResponse
|
|
1780
|
-
*/
|
|
1781
|
-
export class GetProtocolStatsResponse extends Message {
|
|
1782
|
-
constructor(data) {
|
|
1783
|
-
super();
|
|
1784
|
-
/**
|
|
1785
|
-
* @generated from field: uint32 total_pools = 1;
|
|
1786
|
-
*/
|
|
1787
|
-
this.totalPools = 0;
|
|
1788
|
-
/**
|
|
1789
|
-
* @generated from field: uint32 total_v2_pools = 2;
|
|
1790
|
-
*/
|
|
1791
|
-
this.totalV2Pools = 0;
|
|
1792
|
-
/**
|
|
1793
|
-
* @generated from field: uint32 total_v3_pools = 3;
|
|
1794
|
-
*/
|
|
1795
|
-
this.totalV3Pools = 0;
|
|
1796
|
-
/**
|
|
1797
|
-
* @generated from field: uint32 total_v4_pools = 4;
|
|
1798
|
-
*/
|
|
1799
|
-
this.totalV4Pools = 0;
|
|
1800
|
-
/**
|
|
1801
|
-
* @generated from field: double tvl = 5;
|
|
1802
|
-
*/
|
|
1803
|
-
this.tvl = 0;
|
|
1804
|
-
/**
|
|
1805
|
-
* @generated from field: double v2_tvl = 6;
|
|
1806
|
-
*/
|
|
1807
|
-
this.v2Tvl = 0;
|
|
1808
|
-
/**
|
|
1809
|
-
* @generated from field: double v3_tvl = 7;
|
|
1810
|
-
*/
|
|
1811
|
-
this.v3Tvl = 0;
|
|
1812
|
-
/**
|
|
1813
|
-
* @generated from field: double v4_tvl = 8;
|
|
1814
|
-
*/
|
|
1815
|
-
this.v4Tvl = 0;
|
|
1816
|
-
/**
|
|
1817
|
-
* @generated from field: double volume_1d = 9;
|
|
1818
|
-
*/
|
|
1819
|
-
this.volume1d = 0;
|
|
1820
|
-
/**
|
|
1821
|
-
* @generated from field: double v2_volume_1d = 10;
|
|
1822
|
-
*/
|
|
1823
|
-
this.v2Volume1d = 0;
|
|
1824
|
-
/**
|
|
1825
|
-
* @generated from field: double v3_volume_1d = 11;
|
|
1826
|
-
*/
|
|
1827
|
-
this.v3Volume1d = 0;
|
|
1828
|
-
/**
|
|
1829
|
-
* @generated from field: double v4_volume_1d = 12;
|
|
1830
|
-
*/
|
|
1831
|
-
this.v4Volume1d = 0;
|
|
1832
|
-
/**
|
|
1833
|
-
* @generated from field: float volume_change_1d = 13;
|
|
1834
|
-
*/
|
|
1835
|
-
this.volumeChange1d = 0;
|
|
1836
|
-
/**
|
|
1837
|
-
* @generated from field: float tvl_change_1d = 14;
|
|
1838
|
-
*/
|
|
1839
|
-
this.tvlChange1d = 0;
|
|
1840
|
-
/**
|
|
1841
|
-
* @generated from field: float v2_tvl_change_1d = 15;
|
|
1842
|
-
*/
|
|
1843
|
-
this.v2TvlChange1d = 0;
|
|
1844
|
-
/**
|
|
1845
|
-
* @generated from field: float v3_tvl_change_1d = 16;
|
|
1846
|
-
*/
|
|
1847
|
-
this.v3TvlChange1d = 0;
|
|
1848
|
-
/**
|
|
1849
|
-
* @generated from field: float v4_tvl_change_1d = 17;
|
|
1850
|
-
*/
|
|
1851
|
-
this.v4TvlChange1d = 0;
|
|
1852
|
-
/**
|
|
1853
|
-
* @generated from field: float total_pools_change_1d = 18;
|
|
1854
|
-
*/
|
|
1855
|
-
this.totalPoolsChange1d = 0;
|
|
1856
|
-
proto3.util.initPartial(data, this);
|
|
1857
|
-
}
|
|
1858
|
-
static fromBinary(bytes, options) {
|
|
1859
|
-
return new GetProtocolStatsResponse().fromBinary(bytes, options);
|
|
1860
|
-
}
|
|
1861
|
-
static fromJson(jsonValue, options) {
|
|
1862
|
-
return new GetProtocolStatsResponse().fromJson(jsonValue, options);
|
|
1863
|
-
}
|
|
1864
|
-
static fromJsonString(jsonString, options) {
|
|
1865
|
-
return new GetProtocolStatsResponse().fromJsonString(jsonString, options);
|
|
1866
|
-
}
|
|
1867
|
-
static equals(a, b) {
|
|
1868
|
-
return proto3.util.equals(GetProtocolStatsResponse, a, b);
|
|
1869
|
-
}
|
|
1870
|
-
}
|
|
1871
|
-
GetProtocolStatsResponse.runtime = proto3;
|
|
1872
|
-
GetProtocolStatsResponse.typeName = "data.v1.GetProtocolStatsResponse";
|
|
1873
|
-
GetProtocolStatsResponse.fields = proto3.util.newFieldList(() => [
|
|
1874
|
-
{ no: 1, name: "total_pools", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1875
|
-
{ no: 2, name: "total_v2_pools", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1876
|
-
{ no: 3, name: "total_v3_pools", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1877
|
-
{ no: 4, name: "total_v4_pools", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1878
|
-
{ no: 5, name: "tvl", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1879
|
-
{ no: 6, name: "v2_tvl", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1880
|
-
{ no: 7, name: "v3_tvl", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1881
|
-
{ no: 8, name: "v4_tvl", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1882
|
-
{ no: 9, name: "volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1883
|
-
{ no: 10, name: "v2_volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1884
|
-
{ no: 11, name: "v3_volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1885
|
-
{ no: 12, name: "v4_volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1886
|
-
{ no: 13, name: "volume_change_1d", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1887
|
-
{ no: 14, name: "tvl_change_1d", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1888
|
-
{ no: 15, name: "v2_tvl_change_1d", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1889
|
-
{ no: 16, name: "v3_tvl_change_1d", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1890
|
-
{ no: 17, name: "v4_tvl_change_1d", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1891
|
-
{ no: 18, name: "total_pools_change_1d", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
|
|
1892
|
-
]);
|
|
1893
1629
|
/**
|
|
1894
1630
|
* @generated from message data.v1.GetPortfolioChartRequest
|
|
1895
1631
|
*/
|
|
@@ -1003,137 +1003,6 @@ export declare class Amount extends Message<Amount> {
|
|
|
1003
1003
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Amount;
|
|
1004
1004
|
static equals(a: Amount | PlainMessage<Amount> | undefined, b: Amount | PlainMessage<Amount> | undefined): boolean;
|
|
1005
1005
|
}
|
|
1006
|
-
/**
|
|
1007
|
-
* Chain-specific token info within a multichain token group
|
|
1008
|
-
*
|
|
1009
|
-
* @generated from message data.v1.ChainToken
|
|
1010
|
-
*/
|
|
1011
|
-
export declare class ChainToken extends Message<ChainToken> {
|
|
1012
|
-
/**
|
|
1013
|
-
* @generated from field: uint32 chain_id = 1;
|
|
1014
|
-
*/
|
|
1015
|
-
chainId: number;
|
|
1016
|
-
/**
|
|
1017
|
-
* @generated from field: string address = 2;
|
|
1018
|
-
*/
|
|
1019
|
-
address: string;
|
|
1020
|
-
/**
|
|
1021
|
-
* @generated from field: uint32 decimals = 3;
|
|
1022
|
-
*/
|
|
1023
|
-
decimals: number;
|
|
1024
|
-
/**
|
|
1025
|
-
* @generated from field: bool is_bridged = 4;
|
|
1026
|
-
*/
|
|
1027
|
-
isBridged: boolean;
|
|
1028
|
-
/**
|
|
1029
|
-
* @generated from field: data.v1.ChainTokenStats stats = 5;
|
|
1030
|
-
*/
|
|
1031
|
-
stats?: ChainTokenStats;
|
|
1032
|
-
constructor(data?: PartialMessage<ChainToken>);
|
|
1033
|
-
static readonly runtime: typeof proto3;
|
|
1034
|
-
static readonly typeName = "data.v1.ChainToken";
|
|
1035
|
-
static readonly fields: FieldList;
|
|
1036
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainToken;
|
|
1037
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainToken;
|
|
1038
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainToken;
|
|
1039
|
-
static equals(a: ChainToken | PlainMessage<ChainToken> | undefined, b: ChainToken | PlainMessage<ChainToken> | undefined): boolean;
|
|
1040
|
-
}
|
|
1041
|
-
/**
|
|
1042
|
-
* @generated from message data.v1.ChainTokenStats
|
|
1043
|
-
*/
|
|
1044
|
-
export declare class ChainTokenStats extends Message<ChainTokenStats> {
|
|
1045
|
-
/**
|
|
1046
|
-
* @generated from field: optional double volume_1h = 1;
|
|
1047
|
-
*/
|
|
1048
|
-
volume1h?: number;
|
|
1049
|
-
/**
|
|
1050
|
-
* @generated from field: optional double volume_1d = 2;
|
|
1051
|
-
*/
|
|
1052
|
-
volume1d?: number;
|
|
1053
|
-
/**
|
|
1054
|
-
* @generated from field: optional double volume_7d = 3;
|
|
1055
|
-
*/
|
|
1056
|
-
volume7d?: number;
|
|
1057
|
-
/**
|
|
1058
|
-
* @generated from field: optional double volume_30d = 4;
|
|
1059
|
-
*/
|
|
1060
|
-
volume30d?: number;
|
|
1061
|
-
/**
|
|
1062
|
-
* @generated from field: optional double volume_1y = 5;
|
|
1063
|
-
*/
|
|
1064
|
-
volume1y?: number;
|
|
1065
|
-
constructor(data?: PartialMessage<ChainTokenStats>);
|
|
1066
|
-
static readonly runtime: typeof proto3;
|
|
1067
|
-
static readonly typeName = "data.v1.ChainTokenStats";
|
|
1068
|
-
static readonly fields: FieldList;
|
|
1069
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainTokenStats;
|
|
1070
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainTokenStats;
|
|
1071
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainTokenStats;
|
|
1072
|
-
static equals(a: ChainTokenStats | PlainMessage<ChainTokenStats> | undefined, b: ChainTokenStats | PlainMessage<ChainTokenStats> | undefined): boolean;
|
|
1073
|
-
}
|
|
1074
|
-
/**
|
|
1075
|
-
* A token aggregated across multiple chains
|
|
1076
|
-
*
|
|
1077
|
-
* @generated from message data.v1.MultichainToken
|
|
1078
|
-
*/
|
|
1079
|
-
export declare class MultichainToken extends Message<MultichainToken> {
|
|
1080
|
-
/**
|
|
1081
|
-
* @generated from field: string multichain_id = 1;
|
|
1082
|
-
*/
|
|
1083
|
-
multichainId: string;
|
|
1084
|
-
/**
|
|
1085
|
-
* @generated from field: string symbol = 2;
|
|
1086
|
-
*/
|
|
1087
|
-
symbol: string;
|
|
1088
|
-
/**
|
|
1089
|
-
* @generated from field: string name = 3;
|
|
1090
|
-
*/
|
|
1091
|
-
name: string;
|
|
1092
|
-
/**
|
|
1093
|
-
* @generated from field: data.v1.TokenType type = 4;
|
|
1094
|
-
*/
|
|
1095
|
-
type: TokenType;
|
|
1096
|
-
/**
|
|
1097
|
-
* @generated from field: string project_name = 5;
|
|
1098
|
-
*/
|
|
1099
|
-
projectName: string;
|
|
1100
|
-
/**
|
|
1101
|
-
* @generated from field: string logo_url = 6;
|
|
1102
|
-
*/
|
|
1103
|
-
logoUrl: string;
|
|
1104
|
-
/**
|
|
1105
|
-
* @generated from field: data.v1.ProtectionInfo protection_info = 7;
|
|
1106
|
-
*/
|
|
1107
|
-
protectionInfo?: ProtectionInfo;
|
|
1108
|
-
/**
|
|
1109
|
-
* @generated from field: data.v1.FeeData fee_data = 8;
|
|
1110
|
-
*/
|
|
1111
|
-
feeData?: FeeData;
|
|
1112
|
-
/**
|
|
1113
|
-
* @generated from field: data.v1.SafetyLevel safety_level = 9;
|
|
1114
|
-
*/
|
|
1115
|
-
safetyLevel: SafetyLevel;
|
|
1116
|
-
/**
|
|
1117
|
-
* @generated from field: data.v1.SpamCode spam_code = 10;
|
|
1118
|
-
*/
|
|
1119
|
-
spamCode: SpamCode;
|
|
1120
|
-
/**
|
|
1121
|
-
* @generated from field: data.v1.TokenStats stats = 11;
|
|
1122
|
-
*/
|
|
1123
|
-
stats?: TokenStats;
|
|
1124
|
-
/**
|
|
1125
|
-
* @generated from field: repeated data.v1.ChainToken chain_tokens = 12;
|
|
1126
|
-
*/
|
|
1127
|
-
chainTokens: ChainToken[];
|
|
1128
|
-
constructor(data?: PartialMessage<MultichainToken>);
|
|
1129
|
-
static readonly runtime: typeof proto3;
|
|
1130
|
-
static readonly typeName = "data.v1.MultichainToken";
|
|
1131
|
-
static readonly fields: FieldList;
|
|
1132
|
-
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MultichainToken;
|
|
1133
|
-
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MultichainToken;
|
|
1134
|
-
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MultichainToken;
|
|
1135
|
-
static equals(a: MultichainToken | PlainMessage<MultichainToken> | undefined, b: MultichainToken | PlainMessage<MultichainToken> | undefined): boolean;
|
|
1136
|
-
}
|
|
1137
1006
|
/**
|
|
1138
1007
|
* @generated from message data.v1.Contract
|
|
1139
1008
|
*/
|
package/dist/data/v1/types_pb.js
CHANGED
|
@@ -1343,159 +1343,6 @@ Amount.fields = proto3.util.newFieldList(() => [
|
|
|
1343
1343
|
{ no: 1, name: "raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1344
1344
|
{ no: 2, name: "amount", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1345
1345
|
]);
|
|
1346
|
-
/**
|
|
1347
|
-
* Chain-specific token info within a multichain token group
|
|
1348
|
-
*
|
|
1349
|
-
* @generated from message data.v1.ChainToken
|
|
1350
|
-
*/
|
|
1351
|
-
export class ChainToken extends Message {
|
|
1352
|
-
constructor(data) {
|
|
1353
|
-
super();
|
|
1354
|
-
/**
|
|
1355
|
-
* @generated from field: uint32 chain_id = 1;
|
|
1356
|
-
*/
|
|
1357
|
-
this.chainId = 0;
|
|
1358
|
-
/**
|
|
1359
|
-
* @generated from field: string address = 2;
|
|
1360
|
-
*/
|
|
1361
|
-
this.address = "";
|
|
1362
|
-
/**
|
|
1363
|
-
* @generated from field: uint32 decimals = 3;
|
|
1364
|
-
*/
|
|
1365
|
-
this.decimals = 0;
|
|
1366
|
-
/**
|
|
1367
|
-
* @generated from field: bool is_bridged = 4;
|
|
1368
|
-
*/
|
|
1369
|
-
this.isBridged = false;
|
|
1370
|
-
proto3.util.initPartial(data, this);
|
|
1371
|
-
}
|
|
1372
|
-
static fromBinary(bytes, options) {
|
|
1373
|
-
return new ChainToken().fromBinary(bytes, options);
|
|
1374
|
-
}
|
|
1375
|
-
static fromJson(jsonValue, options) {
|
|
1376
|
-
return new ChainToken().fromJson(jsonValue, options);
|
|
1377
|
-
}
|
|
1378
|
-
static fromJsonString(jsonString, options) {
|
|
1379
|
-
return new ChainToken().fromJsonString(jsonString, options);
|
|
1380
|
-
}
|
|
1381
|
-
static equals(a, b) {
|
|
1382
|
-
return proto3.util.equals(ChainToken, a, b);
|
|
1383
|
-
}
|
|
1384
|
-
}
|
|
1385
|
-
ChainToken.runtime = proto3;
|
|
1386
|
-
ChainToken.typeName = "data.v1.ChainToken";
|
|
1387
|
-
ChainToken.fields = proto3.util.newFieldList(() => [
|
|
1388
|
-
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1389
|
-
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1390
|
-
{ no: 3, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
1391
|
-
{ no: 4, name: "is_bridged", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1392
|
-
{ no: 5, name: "stats", kind: "message", T: ChainTokenStats },
|
|
1393
|
-
]);
|
|
1394
|
-
/**
|
|
1395
|
-
* @generated from message data.v1.ChainTokenStats
|
|
1396
|
-
*/
|
|
1397
|
-
export class ChainTokenStats extends Message {
|
|
1398
|
-
constructor(data) {
|
|
1399
|
-
super();
|
|
1400
|
-
proto3.util.initPartial(data, this);
|
|
1401
|
-
}
|
|
1402
|
-
static fromBinary(bytes, options) {
|
|
1403
|
-
return new ChainTokenStats().fromBinary(bytes, options);
|
|
1404
|
-
}
|
|
1405
|
-
static fromJson(jsonValue, options) {
|
|
1406
|
-
return new ChainTokenStats().fromJson(jsonValue, options);
|
|
1407
|
-
}
|
|
1408
|
-
static fromJsonString(jsonString, options) {
|
|
1409
|
-
return new ChainTokenStats().fromJsonString(jsonString, options);
|
|
1410
|
-
}
|
|
1411
|
-
static equals(a, b) {
|
|
1412
|
-
return proto3.util.equals(ChainTokenStats, a, b);
|
|
1413
|
-
}
|
|
1414
|
-
}
|
|
1415
|
-
ChainTokenStats.runtime = proto3;
|
|
1416
|
-
ChainTokenStats.typeName = "data.v1.ChainTokenStats";
|
|
1417
|
-
ChainTokenStats.fields = proto3.util.newFieldList(() => [
|
|
1418
|
-
{ no: 1, name: "volume_1h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1419
|
-
{ no: 2, name: "volume_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1420
|
-
{ no: 3, name: "volume_7d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1421
|
-
{ no: 4, name: "volume_30d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1422
|
-
{ no: 5, name: "volume_1y", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
1423
|
-
]);
|
|
1424
|
-
/**
|
|
1425
|
-
* A token aggregated across multiple chains
|
|
1426
|
-
*
|
|
1427
|
-
* @generated from message data.v1.MultichainToken
|
|
1428
|
-
*/
|
|
1429
|
-
export class MultichainToken extends Message {
|
|
1430
|
-
constructor(data) {
|
|
1431
|
-
super();
|
|
1432
|
-
/**
|
|
1433
|
-
* @generated from field: string multichain_id = 1;
|
|
1434
|
-
*/
|
|
1435
|
-
this.multichainId = "";
|
|
1436
|
-
/**
|
|
1437
|
-
* @generated from field: string symbol = 2;
|
|
1438
|
-
*/
|
|
1439
|
-
this.symbol = "";
|
|
1440
|
-
/**
|
|
1441
|
-
* @generated from field: string name = 3;
|
|
1442
|
-
*/
|
|
1443
|
-
this.name = "";
|
|
1444
|
-
/**
|
|
1445
|
-
* @generated from field: data.v1.TokenType type = 4;
|
|
1446
|
-
*/
|
|
1447
|
-
this.type = TokenType.UNKNOWN;
|
|
1448
|
-
/**
|
|
1449
|
-
* @generated from field: string project_name = 5;
|
|
1450
|
-
*/
|
|
1451
|
-
this.projectName = "";
|
|
1452
|
-
/**
|
|
1453
|
-
* @generated from field: string logo_url = 6;
|
|
1454
|
-
*/
|
|
1455
|
-
this.logoUrl = "";
|
|
1456
|
-
/**
|
|
1457
|
-
* @generated from field: data.v1.SafetyLevel safety_level = 9;
|
|
1458
|
-
*/
|
|
1459
|
-
this.safetyLevel = SafetyLevel.UNKNOWN;
|
|
1460
|
-
/**
|
|
1461
|
-
* @generated from field: data.v1.SpamCode spam_code = 10;
|
|
1462
|
-
*/
|
|
1463
|
-
this.spamCode = SpamCode.UNKNOWN;
|
|
1464
|
-
/**
|
|
1465
|
-
* @generated from field: repeated data.v1.ChainToken chain_tokens = 12;
|
|
1466
|
-
*/
|
|
1467
|
-
this.chainTokens = [];
|
|
1468
|
-
proto3.util.initPartial(data, this);
|
|
1469
|
-
}
|
|
1470
|
-
static fromBinary(bytes, options) {
|
|
1471
|
-
return new MultichainToken().fromBinary(bytes, options);
|
|
1472
|
-
}
|
|
1473
|
-
static fromJson(jsonValue, options) {
|
|
1474
|
-
return new MultichainToken().fromJson(jsonValue, options);
|
|
1475
|
-
}
|
|
1476
|
-
static fromJsonString(jsonString, options) {
|
|
1477
|
-
return new MultichainToken().fromJsonString(jsonString, options);
|
|
1478
|
-
}
|
|
1479
|
-
static equals(a, b) {
|
|
1480
|
-
return proto3.util.equals(MultichainToken, a, b);
|
|
1481
|
-
}
|
|
1482
|
-
}
|
|
1483
|
-
MultichainToken.runtime = proto3;
|
|
1484
|
-
MultichainToken.typeName = "data.v1.MultichainToken";
|
|
1485
|
-
MultichainToken.fields = proto3.util.newFieldList(() => [
|
|
1486
|
-
{ no: 1, name: "multichain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1487
|
-
{ no: 2, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1488
|
-
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1489
|
-
{ no: 4, name: "type", kind: "enum", T: proto3.getEnumType(TokenType) },
|
|
1490
|
-
{ no: 5, name: "project_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1491
|
-
{ no: 6, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1492
|
-
{ no: 7, name: "protection_info", kind: "message", T: ProtectionInfo },
|
|
1493
|
-
{ no: 8, name: "fee_data", kind: "message", T: FeeData },
|
|
1494
|
-
{ no: 9, name: "safety_level", kind: "enum", T: proto3.getEnumType(SafetyLevel) },
|
|
1495
|
-
{ no: 10, name: "spam_code", kind: "enum", T: proto3.getEnumType(SpamCode) },
|
|
1496
|
-
{ no: 11, name: "stats", kind: "message", T: TokenStats },
|
|
1497
|
-
{ no: 12, name: "chain_tokens", kind: "message", T: ChainToken, repeated: true },
|
|
1498
|
-
]);
|
|
1499
1346
|
/**
|
|
1500
1347
|
* @generated from message data.v1.Contract
|
|
1501
1348
|
*/
|
|
@@ -71,7 +71,10 @@ export declare class CategoryAggregateStats extends Message<CategoryAggregateSta
|
|
|
71
71
|
*/
|
|
72
72
|
tokenCount: number;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
74
|
+
* Plain average of the members' 24h price changes with the top and bottom
|
|
75
|
+
* 5% of movers left out (members without a change are skipped; a set too
|
|
76
|
+
* small to trim averages everyone). Not a basket index: no single member
|
|
77
|
+
* can move it.
|
|
75
78
|
*
|
|
76
79
|
* @generated from field: double price_change_24h_pct = 2;
|
|
77
80
|
*/
|
|
@@ -100,7 +100,10 @@ export class CategoryAggregateStats extends Message {
|
|
|
100
100
|
*/
|
|
101
101
|
this.tokenCount = 0;
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* Plain average of the members' 24h price changes with the top and bottom
|
|
104
|
+
* 5% of movers left out (members without a change are skipped; a set too
|
|
105
|
+
* small to trim averages everyone). Not a basket index: no single member
|
|
106
|
+
* can move it.
|
|
104
107
|
*
|
|
105
108
|
* @generated from field: double price_change_24h_pct = 2;
|
|
106
109
|
*/
|