@uniswap/client-data-api 0.0.55 → 0.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTopTokensRequest, ListTopTokensResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
2
+ 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, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v1.DataApiService.CreatePendingTokenFactoryToken
5
5
  */
@@ -222,14 +222,14 @@ export declare const listTopPools: {
222
222
  };
223
223
  };
224
224
  /**
225
- * @generated from rpc data.v1.DataApiService.ListTopTokens
225
+ * @generated from rpc data.v1.DataApiService.ListTokens
226
226
  */
227
- export declare const listTopTokens: {
228
- readonly localName: "listTopTokens";
229
- readonly name: "ListTopTokens";
227
+ export declare const listTokens: {
228
+ readonly localName: "listTokens";
229
+ readonly name: "ListTokens";
230
230
  readonly kind: MethodKind.Unary;
231
- readonly I: typeof ListTopTokensRequest;
232
- readonly O: typeof ListTopTokensResponse;
231
+ readonly I: typeof ListTokensRequest;
232
+ readonly O: typeof ListTokensResponse;
233
233
  readonly service: {
234
234
  readonly typeName: "data.v1.DataApiService";
235
235
  };
@@ -260,3 +260,42 @@ export declare const getTokenPrices: {
260
260
  readonly typeName: "data.v1.DataApiService";
261
261
  };
262
262
  };
263
+ /**
264
+ * @generated from rpc data.v1.DataApiService.GetWalletProfitLoss
265
+ */
266
+ export declare const getWalletProfitLoss: {
267
+ readonly localName: "getWalletProfitLoss";
268
+ readonly name: "GetWalletProfitLoss";
269
+ readonly kind: MethodKind.Unary;
270
+ readonly I: typeof GetWalletProfitLossRequest;
271
+ readonly O: typeof GetWalletProfitLossResponse;
272
+ readonly service: {
273
+ readonly typeName: "data.v1.DataApiService";
274
+ };
275
+ };
276
+ /**
277
+ * @generated from rpc data.v1.DataApiService.GetWalletTokensProfitLoss
278
+ */
279
+ export declare const getWalletTokensProfitLoss: {
280
+ readonly localName: "getWalletTokensProfitLoss";
281
+ readonly name: "GetWalletTokensProfitLoss";
282
+ readonly kind: MethodKind.Unary;
283
+ readonly I: typeof GetWalletTokensProfitLossRequest;
284
+ readonly O: typeof GetWalletTokensProfitLossResponse;
285
+ readonly service: {
286
+ readonly typeName: "data.v1.DataApiService";
287
+ };
288
+ };
289
+ /**
290
+ * @generated from rpc data.v1.DataApiService.GetWalletTokenProfitLoss
291
+ */
292
+ export declare const getWalletTokenProfitLoss: {
293
+ readonly localName: "getWalletTokenProfitLoss";
294
+ readonly name: "GetWalletTokenProfitLoss";
295
+ readonly kind: MethodKind.Unary;
296
+ readonly I: typeof GetWalletTokenProfitLossRequest;
297
+ readonly O: typeof GetWalletTokenProfitLossResponse;
298
+ readonly service: {
299
+ readonly typeName: "data.v1.DataApiService";
300
+ };
301
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { CreatePendingTokenFactoryTokenRequest, CreatePendingTokenFactoryTokenResponse, CreateTokenFactoryPresignedUrlRequest, CreateTokenFactoryPresignedUrlResponse, GetPairRequest, GetPairResponse, GetPoolRequest, GetPoolResponse, GetPortfolioChartRequest, GetPortfolioChartResponse, GetPortfolioRequest, GetPortfolioResponse, GetPositionRequest, GetPositionResponse, GetProtocolStatsRequest, GetProtocolStatsResponse, GetRewardsRequest, GetRewardsResponse, GetTokenPricesRequest, GetTokenPricesResponse, GetTokenRequest, GetTokenResponse, GetTransactionRequest, GetTransactionResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTopTokensRequest, ListTopTokensResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
6
+ 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, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v1.DataApiService.CreatePendingTokenFactoryToken
9
9
  */
@@ -226,14 +226,14 @@ export const listTopPools = {
226
226
  }
227
227
  };
228
228
  /**
229
- * @generated from rpc data.v1.DataApiService.ListTopTokens
229
+ * @generated from rpc data.v1.DataApiService.ListTokens
230
230
  */
231
- export const listTopTokens = {
232
- localName: "listTopTokens",
233
- name: "ListTopTokens",
231
+ export const listTokens = {
232
+ localName: "listTokens",
233
+ name: "ListTokens",
234
234
  kind: MethodKind.Unary,
235
- I: ListTopTokensRequest,
236
- O: ListTopTokensResponse,
235
+ I: ListTokensRequest,
236
+ O: ListTokensResponse,
237
237
  service: {
238
238
  typeName: "data.v1.DataApiService"
239
239
  }
@@ -264,3 +264,42 @@ export const getTokenPrices = {
264
264
  typeName: "data.v1.DataApiService"
265
265
  }
266
266
  };
267
+ /**
268
+ * @generated from rpc data.v1.DataApiService.GetWalletProfitLoss
269
+ */
270
+ export const getWalletProfitLoss = {
271
+ localName: "getWalletProfitLoss",
272
+ name: "GetWalletProfitLoss",
273
+ kind: MethodKind.Unary,
274
+ I: GetWalletProfitLossRequest,
275
+ O: GetWalletProfitLossResponse,
276
+ service: {
277
+ typeName: "data.v1.DataApiService"
278
+ }
279
+ };
280
+ /**
281
+ * @generated from rpc data.v1.DataApiService.GetWalletTokensProfitLoss
282
+ */
283
+ export const getWalletTokensProfitLoss = {
284
+ localName: "getWalletTokensProfitLoss",
285
+ name: "GetWalletTokensProfitLoss",
286
+ kind: MethodKind.Unary,
287
+ I: GetWalletTokensProfitLossRequest,
288
+ O: GetWalletTokensProfitLossResponse,
289
+ service: {
290
+ typeName: "data.v1.DataApiService"
291
+ }
292
+ };
293
+ /**
294
+ * @generated from rpc data.v1.DataApiService.GetWalletTokenProfitLoss
295
+ */
296
+ export const getWalletTokenProfitLoss = {
297
+ localName: "getWalletTokenProfitLoss",
298
+ name: "GetWalletTokenProfitLoss",
299
+ kind: MethodKind.Unary,
300
+ I: GetWalletTokenProfitLossRequest,
301
+ O: GetWalletTokenProfitLossResponse,
302
+ service: {
303
+ typeName: "data.v1.DataApiService"
304
+ }
305
+ };
@@ -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, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTopTokensRequest, ListTopTokensResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
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, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service data.v1.DataApiService
@@ -160,12 +160,12 @@ export declare const DataApiService: {
160
160
  readonly kind: MethodKind.Unary;
161
161
  };
162
162
  /**
163
- * @generated from rpc data.v1.DataApiService.ListTopTokens
163
+ * @generated from rpc data.v1.DataApiService.ListTokens
164
164
  */
165
- readonly listTopTokens: {
166
- readonly name: "ListTopTokens";
167
- readonly I: typeof ListTopTokensRequest;
168
- readonly O: typeof ListTopTokensResponse;
165
+ readonly listTokens: {
166
+ readonly name: "ListTokens";
167
+ readonly I: typeof ListTokensRequest;
168
+ readonly O: typeof ListTokensResponse;
169
169
  readonly kind: MethodKind.Unary;
170
170
  };
171
171
  /**
@@ -186,5 +186,32 @@ export declare const DataApiService: {
186
186
  readonly O: typeof GetTokenPricesResponse;
187
187
  readonly kind: MethodKind.Unary;
188
188
  };
189
+ /**
190
+ * @generated from rpc data.v1.DataApiService.GetWalletProfitLoss
191
+ */
192
+ readonly getWalletProfitLoss: {
193
+ readonly name: "GetWalletProfitLoss";
194
+ readonly I: typeof GetWalletProfitLossRequest;
195
+ readonly O: typeof GetWalletProfitLossResponse;
196
+ readonly kind: MethodKind.Unary;
197
+ };
198
+ /**
199
+ * @generated from rpc data.v1.DataApiService.GetWalletTokensProfitLoss
200
+ */
201
+ readonly getWalletTokensProfitLoss: {
202
+ readonly name: "GetWalletTokensProfitLoss";
203
+ readonly I: typeof GetWalletTokensProfitLossRequest;
204
+ readonly O: typeof GetWalletTokensProfitLossResponse;
205
+ readonly kind: MethodKind.Unary;
206
+ };
207
+ /**
208
+ * @generated from rpc data.v1.DataApiService.GetWalletTokenProfitLoss
209
+ */
210
+ readonly getWalletTokenProfitLoss: {
211
+ readonly name: "GetWalletTokenProfitLoss";
212
+ readonly I: typeof GetWalletTokenProfitLossRequest;
213
+ readonly O: typeof GetWalletTokenProfitLossResponse;
214
+ readonly kind: MethodKind.Unary;
215
+ };
189
216
  };
190
217
  };
@@ -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, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTopTokensRequest, ListTopTokensResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
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, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service data.v1.DataApiService
@@ -164,12 +164,12 @@ export const DataApiService = {
164
164
  kind: MethodKind.Unary,
165
165
  },
166
166
  /**
167
- * @generated from rpc data.v1.DataApiService.ListTopTokens
167
+ * @generated from rpc data.v1.DataApiService.ListTokens
168
168
  */
169
- listTopTokens: {
170
- name: "ListTopTokens",
171
- I: ListTopTokensRequest,
172
- O: ListTopTokensResponse,
169
+ listTokens: {
170
+ name: "ListTokens",
171
+ I: ListTokensRequest,
172
+ O: ListTokensResponse,
173
173
  kind: MethodKind.Unary,
174
174
  },
175
175
  /**
@@ -190,5 +190,32 @@ export const DataApiService = {
190
190
  O: GetTokenPricesResponse,
191
191
  kind: MethodKind.Unary,
192
192
  },
193
+ /**
194
+ * @generated from rpc data.v1.DataApiService.GetWalletProfitLoss
195
+ */
196
+ getWalletProfitLoss: {
197
+ name: "GetWalletProfitLoss",
198
+ I: GetWalletProfitLossRequest,
199
+ O: GetWalletProfitLossResponse,
200
+ kind: MethodKind.Unary,
201
+ },
202
+ /**
203
+ * @generated from rpc data.v1.DataApiService.GetWalletTokensProfitLoss
204
+ */
205
+ getWalletTokensProfitLoss: {
206
+ name: "GetWalletTokensProfitLoss",
207
+ I: GetWalletTokensProfitLossRequest,
208
+ O: GetWalletTokensProfitLossResponse,
209
+ kind: MethodKind.Unary,
210
+ },
211
+ /**
212
+ * @generated from rpc data.v1.DataApiService.GetWalletTokenProfitLoss
213
+ */
214
+ getWalletTokenProfitLoss: {
215
+ name: "GetWalletTokenProfitLoss",
216
+ I: GetWalletTokenProfitLossRequest,
217
+ O: GetWalletTokenProfitLossResponse,
218
+ kind: MethodKind.Unary,
219
+ },
193
220
  }
194
221
  };
@@ -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 { MultichainToken, Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction, TransactionTypeFilter } from "./types_pb.js";
3
+ import { MultichainToken, Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenDetailProfitLoss, TokenProfitLoss, TokenReportEventType, Transaction, TransactionTypeFilter, WalletProfitLoss } from "./types_pb.js";
4
4
  import { Pair, Pool, Position, PositionStatus, ProtocolVersion } from "./poolTypes_pb.js";
5
5
  /**
6
6
  * @generated from enum data.v1.Platform
@@ -58,43 +58,43 @@ export declare enum TopPoolsOrderBy {
58
58
  REWARD_APR = 5
59
59
  }
60
60
  /**
61
- * @generated from enum data.v1.TopTokensOrderBy
61
+ * @generated from enum data.v1.TokensOrderBy
62
62
  */
63
- export declare enum TopTokensOrderBy {
63
+ export declare enum TokensOrderBy {
64
64
  /**
65
- * @generated from enum value: TOP_TOKENS_ORDER_BY_UNSPECIFIED = 0;
65
+ * @generated from enum value: TOKENS_ORDER_BY_UNSPECIFIED = 0;
66
66
  */
67
67
  UNSPECIFIED = 0,
68
68
  /**
69
- * @generated from enum value: TOP_TOKENS_ORDER_BY_FDV = 1;
69
+ * @generated from enum value: TOKENS_ORDER_BY_FDV = 1;
70
70
  */
71
71
  FDV = 1,
72
72
  /**
73
- * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_1H = 2;
73
+ * @generated from enum value: TOKENS_ORDER_BY_VOLUME_1H = 2;
74
74
  */
75
75
  VOLUME_1H = 2,
76
76
  /**
77
- * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_1D = 3;
77
+ * @generated from enum value: TOKENS_ORDER_BY_VOLUME_1D = 3;
78
78
  */
79
79
  VOLUME_1D = 3,
80
80
  /**
81
- * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_7D = 4;
81
+ * @generated from enum value: TOKENS_ORDER_BY_VOLUME_7D = 4;
82
82
  */
83
83
  VOLUME_7D = 4,
84
84
  /**
85
- * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_30D = 5;
85
+ * @generated from enum value: TOKENS_ORDER_BY_VOLUME_30D = 5;
86
86
  */
87
87
  VOLUME_30D = 5,
88
88
  /**
89
- * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_1Y = 6;
89
+ * @generated from enum value: TOKENS_ORDER_BY_VOLUME_1Y = 6;
90
90
  */
91
91
  VOLUME_1Y = 6,
92
92
  /**
93
- * @generated from enum value: TOP_TOKENS_ORDER_BY_PRICE_CHANGE_1H = 7;
93
+ * @generated from enum value: TOKENS_ORDER_BY_PRICE_CHANGE_1H = 7;
94
94
  */
95
95
  PRICE_CHANGE_1H = 7,
96
96
  /**
97
- * @generated from enum value: TOP_TOKENS_ORDER_BY_PRICE_CHANGE_1D = 8;
97
+ * @generated from enum value: TOKENS_ORDER_BY_PRICE_CHANGE_1D = 8;
98
98
  */
99
99
  PRICE_CHANGE_1D = 8
100
100
  }
@@ -1074,17 +1074,17 @@ export declare class ListTopPoolsResponse extends Message<ListTopPoolsResponse>
1074
1074
  static equals(a: ListTopPoolsResponse | PlainMessage<ListTopPoolsResponse> | undefined, b: ListTopPoolsResponse | PlainMessage<ListTopPoolsResponse> | undefined): boolean;
1075
1075
  }
1076
1076
  /**
1077
- * @generated from message data.v1.ListTopTokensRequest
1077
+ * @generated from message data.v1.ListTokensRequest
1078
1078
  */
1079
- export declare class ListTopTokensRequest extends Message<ListTopTokensRequest> {
1079
+ export declare class ListTokensRequest extends Message<ListTokensRequest> {
1080
1080
  /**
1081
1081
  * @generated from field: repeated uint32 chain_ids = 1;
1082
1082
  */
1083
1083
  chainIds: number[];
1084
1084
  /**
1085
- * @generated from field: optional data.v1.TopTokensOrderBy order_by = 2;
1085
+ * @generated from field: optional data.v1.TokensOrderBy order_by = 2;
1086
1086
  */
1087
- orderBy?: TopTokensOrderBy;
1087
+ orderBy?: TokensOrderBy;
1088
1088
  /**
1089
1089
  * default false
1090
1090
  *
@@ -1103,19 +1103,19 @@ export declare class ListTopTokensRequest extends Message<ListTopTokensRequest>
1103
1103
  * @generated from field: optional bool multichain = 6;
1104
1104
  */
1105
1105
  multichain?: boolean;
1106
- constructor(data?: PartialMessage<ListTopTokensRequest>);
1106
+ constructor(data?: PartialMessage<ListTokensRequest>);
1107
1107
  static readonly runtime: typeof proto3;
1108
- static readonly typeName = "data.v1.ListTopTokensRequest";
1108
+ static readonly typeName = "data.v1.ListTokensRequest";
1109
1109
  static readonly fields: FieldList;
1110
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTopTokensRequest;
1111
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTopTokensRequest;
1112
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTopTokensRequest;
1113
- static equals(a: ListTopTokensRequest | PlainMessage<ListTopTokensRequest> | undefined, b: ListTopTokensRequest | PlainMessage<ListTopTokensRequest> | undefined): boolean;
1110
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTokensRequest;
1111
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTokensRequest;
1112
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTokensRequest;
1113
+ static equals(a: ListTokensRequest | PlainMessage<ListTokensRequest> | undefined, b: ListTokensRequest | PlainMessage<ListTokensRequest> | undefined): boolean;
1114
1114
  }
1115
1115
  /**
1116
- * @generated from message data.v1.ListTopTokensResponse
1116
+ * @generated from message data.v1.ListTokensResponse
1117
1117
  */
1118
- export declare class ListTopTokensResponse extends Message<ListTopTokensResponse> {
1118
+ export declare class ListTokensResponse extends Message<ListTokensResponse> {
1119
1119
  /**
1120
1120
  * @generated from field: repeated data.v1.Token tokens = 1;
1121
1121
  */
@@ -1128,14 +1128,14 @@ export declare class ListTopTokensResponse extends Message<ListTopTokensResponse
1128
1128
  * @generated from field: repeated data.v1.MultichainToken multichain_tokens = 3;
1129
1129
  */
1130
1130
  multichainTokens: MultichainToken[];
1131
- constructor(data?: PartialMessage<ListTopTokensResponse>);
1131
+ constructor(data?: PartialMessage<ListTokensResponse>);
1132
1132
  static readonly runtime: typeof proto3;
1133
- static readonly typeName = "data.v1.ListTopTokensResponse";
1133
+ static readonly typeName = "data.v1.ListTokensResponse";
1134
1134
  static readonly fields: FieldList;
1135
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTopTokensResponse;
1136
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTopTokensResponse;
1137
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTopTokensResponse;
1138
- static equals(a: ListTopTokensResponse | PlainMessage<ListTopTokensResponse> | undefined, b: ListTopTokensResponse | PlainMessage<ListTopTokensResponse> | undefined): boolean;
1135
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListTokensResponse;
1136
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListTokensResponse;
1137
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListTokensResponse;
1138
+ static equals(a: ListTokensResponse | PlainMessage<ListTokensResponse> | undefined, b: ListTokensResponse | PlainMessage<ListTokensResponse> | undefined): boolean;
1139
1139
  }
1140
1140
  /**
1141
1141
  * @generated from message data.v1.GetProtocolStatsRequest
@@ -1390,3 +1390,157 @@ export declare class GetTokenPricesResponse extends Message<GetTokenPricesRespon
1390
1390
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenPricesResponse;
1391
1391
  static equals(a: GetTokenPricesResponse | PlainMessage<GetTokenPricesResponse> | undefined, b: GetTokenPricesResponse | PlainMessage<GetTokenPricesResponse> | undefined): boolean;
1392
1392
  }
1393
+ /**
1394
+ * @generated from message data.v1.GetWalletProfitLossRequest
1395
+ */
1396
+ export declare class GetWalletProfitLossRequest extends Message<GetWalletProfitLossRequest> {
1397
+ /**
1398
+ * @generated from field: data.v1.WalletAccount wallet_account = 1;
1399
+ */
1400
+ walletAccount?: WalletAccount;
1401
+ /**
1402
+ * @generated from field: repeated uint32 chain_ids = 2;
1403
+ */
1404
+ chainIds: number[];
1405
+ /**
1406
+ * @generated from field: optional int64 since = 3;
1407
+ */
1408
+ since?: bigint;
1409
+ /**
1410
+ * @generated from field: optional int64 till = 4;
1411
+ */
1412
+ till?: bigint;
1413
+ constructor(data?: PartialMessage<GetWalletProfitLossRequest>);
1414
+ static readonly runtime: typeof proto3;
1415
+ static readonly typeName = "data.v1.GetWalletProfitLossRequest";
1416
+ static readonly fields: FieldList;
1417
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWalletProfitLossRequest;
1418
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWalletProfitLossRequest;
1419
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletProfitLossRequest;
1420
+ static equals(a: GetWalletProfitLossRequest | PlainMessage<GetWalletProfitLossRequest> | undefined, b: GetWalletProfitLossRequest | PlainMessage<GetWalletProfitLossRequest> | undefined): boolean;
1421
+ }
1422
+ /**
1423
+ * @generated from message data.v1.GetWalletProfitLossResponse
1424
+ */
1425
+ export declare class GetWalletProfitLossResponse extends Message<GetWalletProfitLossResponse> {
1426
+ /**
1427
+ * @generated from field: data.v1.WalletProfitLoss profit_loss = 1;
1428
+ */
1429
+ profitLoss?: WalletProfitLoss;
1430
+ constructor(data?: PartialMessage<GetWalletProfitLossResponse>);
1431
+ static readonly runtime: typeof proto3;
1432
+ static readonly typeName = "data.v1.GetWalletProfitLossResponse";
1433
+ static readonly fields: FieldList;
1434
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWalletProfitLossResponse;
1435
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWalletProfitLossResponse;
1436
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletProfitLossResponse;
1437
+ static equals(a: GetWalletProfitLossResponse | PlainMessage<GetWalletProfitLossResponse> | undefined, b: GetWalletProfitLossResponse | PlainMessage<GetWalletProfitLossResponse> | undefined): boolean;
1438
+ }
1439
+ /**
1440
+ * @generated from message data.v1.GetWalletTokensProfitLossRequest
1441
+ */
1442
+ export declare class GetWalletTokensProfitLossRequest extends Message<GetWalletTokensProfitLossRequest> {
1443
+ /**
1444
+ * @generated from field: data.v1.WalletAccount wallet_account = 1;
1445
+ */
1446
+ walletAccount?: WalletAccount;
1447
+ /**
1448
+ * @generated from field: repeated uint32 chain_ids = 2;
1449
+ */
1450
+ chainIds: number[];
1451
+ /**
1452
+ * @generated from field: optional int64 since = 3;
1453
+ */
1454
+ since?: bigint;
1455
+ /**
1456
+ * @generated from field: optional int64 till = 4;
1457
+ */
1458
+ till?: bigint;
1459
+ /**
1460
+ * @generated from field: optional uint32 page_size = 5;
1461
+ */
1462
+ pageSize?: number;
1463
+ /**
1464
+ * @generated from field: optional string page_token = 6;
1465
+ */
1466
+ pageToken?: string;
1467
+ constructor(data?: PartialMessage<GetWalletTokensProfitLossRequest>);
1468
+ static readonly runtime: typeof proto3;
1469
+ static readonly typeName = "data.v1.GetWalletTokensProfitLossRequest";
1470
+ static readonly fields: FieldList;
1471
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWalletTokensProfitLossRequest;
1472
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWalletTokensProfitLossRequest;
1473
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletTokensProfitLossRequest;
1474
+ static equals(a: GetWalletTokensProfitLossRequest | PlainMessage<GetWalletTokensProfitLossRequest> | undefined, b: GetWalletTokensProfitLossRequest | PlainMessage<GetWalletTokensProfitLossRequest> | undefined): boolean;
1475
+ }
1476
+ /**
1477
+ * @generated from message data.v1.GetWalletTokensProfitLossResponse
1478
+ */
1479
+ export declare class GetWalletTokensProfitLossResponse extends Message<GetWalletTokensProfitLossResponse> {
1480
+ /**
1481
+ * @generated from field: repeated data.v1.TokenProfitLoss token_profit_losses = 1;
1482
+ */
1483
+ tokenProfitLosses: TokenProfitLoss[];
1484
+ /**
1485
+ * @generated from field: optional string next_page_token = 2;
1486
+ */
1487
+ nextPageToken?: string;
1488
+ constructor(data?: PartialMessage<GetWalletTokensProfitLossResponse>);
1489
+ static readonly runtime: typeof proto3;
1490
+ static readonly typeName = "data.v1.GetWalletTokensProfitLossResponse";
1491
+ static readonly fields: FieldList;
1492
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWalletTokensProfitLossResponse;
1493
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWalletTokensProfitLossResponse;
1494
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletTokensProfitLossResponse;
1495
+ static equals(a: GetWalletTokensProfitLossResponse | PlainMessage<GetWalletTokensProfitLossResponse> | undefined, b: GetWalletTokensProfitLossResponse | PlainMessage<GetWalletTokensProfitLossResponse> | undefined): boolean;
1496
+ }
1497
+ /**
1498
+ * @generated from message data.v1.GetWalletTokenProfitLossRequest
1499
+ */
1500
+ export declare class GetWalletTokenProfitLossRequest extends Message<GetWalletTokenProfitLossRequest> {
1501
+ /**
1502
+ * @generated from field: data.v1.WalletAccount wallet_account = 1;
1503
+ */
1504
+ walletAccount?: WalletAccount;
1505
+ /**
1506
+ * @generated from field: uint32 chain_id = 2;
1507
+ */
1508
+ chainId: number;
1509
+ /**
1510
+ * @generated from field: string token_address = 3;
1511
+ */
1512
+ tokenAddress: string;
1513
+ /**
1514
+ * @generated from field: optional int64 since = 4;
1515
+ */
1516
+ since?: bigint;
1517
+ /**
1518
+ * @generated from field: optional int64 till = 5;
1519
+ */
1520
+ till?: bigint;
1521
+ constructor(data?: PartialMessage<GetWalletTokenProfitLossRequest>);
1522
+ static readonly runtime: typeof proto3;
1523
+ static readonly typeName = "data.v1.GetWalletTokenProfitLossRequest";
1524
+ static readonly fields: FieldList;
1525
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWalletTokenProfitLossRequest;
1526
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWalletTokenProfitLossRequest;
1527
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletTokenProfitLossRequest;
1528
+ static equals(a: GetWalletTokenProfitLossRequest | PlainMessage<GetWalletTokenProfitLossRequest> | undefined, b: GetWalletTokenProfitLossRequest | PlainMessage<GetWalletTokenProfitLossRequest> | undefined): boolean;
1529
+ }
1530
+ /**
1531
+ * @generated from message data.v1.GetWalletTokenProfitLossResponse
1532
+ */
1533
+ export declare class GetWalletTokenProfitLossResponse extends Message<GetWalletTokenProfitLossResponse> {
1534
+ /**
1535
+ * @generated from field: data.v1.TokenDetailProfitLoss profit_loss = 1;
1536
+ */
1537
+ profitLoss?: TokenDetailProfitLoss;
1538
+ constructor(data?: PartialMessage<GetWalletTokenProfitLossResponse>);
1539
+ static readonly runtime: typeof proto3;
1540
+ static readonly typeName = "data.v1.GetWalletTokenProfitLossResponse";
1541
+ static readonly fields: FieldList;
1542
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetWalletTokenProfitLossResponse;
1543
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetWalletTokenProfitLossResponse;
1544
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetWalletTokenProfitLossResponse;
1545
+ static equals(a: GetWalletTokenProfitLossResponse | PlainMessage<GetWalletTokenProfitLossResponse> | undefined, b: GetWalletTokenProfitLossResponse | PlainMessage<GetWalletTokenProfitLossResponse> | undefined): boolean;
1546
+ }
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
6
- import { MultichainToken, Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction, TransactionTypeFilter } from "./types_pb.js";
6
+ import { MultichainToken, Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenDetailProfitLoss, TokenProfitLoss, TokenReportEventType, Transaction, TransactionTypeFilter, WalletProfitLoss } from "./types_pb.js";
7
7
  import { Pair, Pool, Position, PositionStatus, ProtocolVersion } from "./poolTypes_pb.js";
8
8
  /**
9
9
  * @generated from enum data.v1.Platform
@@ -83,58 +83,58 @@ proto3.util.setEnumType(TopPoolsOrderBy, "data.v1.TopPoolsOrderBy", [
83
83
  { no: 5, name: "TOP_POOLS_ORDER_BY_REWARD_APR" },
84
84
  ]);
85
85
  /**
86
- * @generated from enum data.v1.TopTokensOrderBy
86
+ * @generated from enum data.v1.TokensOrderBy
87
87
  */
88
- export var TopTokensOrderBy;
89
- (function (TopTokensOrderBy) {
88
+ export var TokensOrderBy;
89
+ (function (TokensOrderBy) {
90
90
  /**
91
- * @generated from enum value: TOP_TOKENS_ORDER_BY_UNSPECIFIED = 0;
91
+ * @generated from enum value: TOKENS_ORDER_BY_UNSPECIFIED = 0;
92
92
  */
93
- TopTokensOrderBy[TopTokensOrderBy["UNSPECIFIED"] = 0] = "UNSPECIFIED";
93
+ TokensOrderBy[TokensOrderBy["UNSPECIFIED"] = 0] = "UNSPECIFIED";
94
94
  /**
95
- * @generated from enum value: TOP_TOKENS_ORDER_BY_FDV = 1;
95
+ * @generated from enum value: TOKENS_ORDER_BY_FDV = 1;
96
96
  */
97
- TopTokensOrderBy[TopTokensOrderBy["FDV"] = 1] = "FDV";
97
+ TokensOrderBy[TokensOrderBy["FDV"] = 1] = "FDV";
98
98
  /**
99
- * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_1H = 2;
99
+ * @generated from enum value: TOKENS_ORDER_BY_VOLUME_1H = 2;
100
100
  */
101
- TopTokensOrderBy[TopTokensOrderBy["VOLUME_1H"] = 2] = "VOLUME_1H";
101
+ TokensOrderBy[TokensOrderBy["VOLUME_1H"] = 2] = "VOLUME_1H";
102
102
  /**
103
- * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_1D = 3;
103
+ * @generated from enum value: TOKENS_ORDER_BY_VOLUME_1D = 3;
104
104
  */
105
- TopTokensOrderBy[TopTokensOrderBy["VOLUME_1D"] = 3] = "VOLUME_1D";
105
+ TokensOrderBy[TokensOrderBy["VOLUME_1D"] = 3] = "VOLUME_1D";
106
106
  /**
107
- * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_7D = 4;
107
+ * @generated from enum value: TOKENS_ORDER_BY_VOLUME_7D = 4;
108
108
  */
109
- TopTokensOrderBy[TopTokensOrderBy["VOLUME_7D"] = 4] = "VOLUME_7D";
109
+ TokensOrderBy[TokensOrderBy["VOLUME_7D"] = 4] = "VOLUME_7D";
110
110
  /**
111
- * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_30D = 5;
111
+ * @generated from enum value: TOKENS_ORDER_BY_VOLUME_30D = 5;
112
112
  */
113
- TopTokensOrderBy[TopTokensOrderBy["VOLUME_30D"] = 5] = "VOLUME_30D";
113
+ TokensOrderBy[TokensOrderBy["VOLUME_30D"] = 5] = "VOLUME_30D";
114
114
  /**
115
- * @generated from enum value: TOP_TOKENS_ORDER_BY_VOLUME_1Y = 6;
115
+ * @generated from enum value: TOKENS_ORDER_BY_VOLUME_1Y = 6;
116
116
  */
117
- TopTokensOrderBy[TopTokensOrderBy["VOLUME_1Y"] = 6] = "VOLUME_1Y";
117
+ TokensOrderBy[TokensOrderBy["VOLUME_1Y"] = 6] = "VOLUME_1Y";
118
118
  /**
119
- * @generated from enum value: TOP_TOKENS_ORDER_BY_PRICE_CHANGE_1H = 7;
119
+ * @generated from enum value: TOKENS_ORDER_BY_PRICE_CHANGE_1H = 7;
120
120
  */
121
- TopTokensOrderBy[TopTokensOrderBy["PRICE_CHANGE_1H"] = 7] = "PRICE_CHANGE_1H";
121
+ TokensOrderBy[TokensOrderBy["PRICE_CHANGE_1H"] = 7] = "PRICE_CHANGE_1H";
122
122
  /**
123
- * @generated from enum value: TOP_TOKENS_ORDER_BY_PRICE_CHANGE_1D = 8;
123
+ * @generated from enum value: TOKENS_ORDER_BY_PRICE_CHANGE_1D = 8;
124
124
  */
125
- TopTokensOrderBy[TopTokensOrderBy["PRICE_CHANGE_1D"] = 8] = "PRICE_CHANGE_1D";
126
- })(TopTokensOrderBy || (TopTokensOrderBy = {}));
127
- // Retrieve enum metadata with: proto3.getEnumType(TopTokensOrderBy)
128
- proto3.util.setEnumType(TopTokensOrderBy, "data.v1.TopTokensOrderBy", [
129
- { no: 0, name: "TOP_TOKENS_ORDER_BY_UNSPECIFIED" },
130
- { no: 1, name: "TOP_TOKENS_ORDER_BY_FDV" },
131
- { no: 2, name: "TOP_TOKENS_ORDER_BY_VOLUME_1H" },
132
- { no: 3, name: "TOP_TOKENS_ORDER_BY_VOLUME_1D" },
133
- { no: 4, name: "TOP_TOKENS_ORDER_BY_VOLUME_7D" },
134
- { no: 5, name: "TOP_TOKENS_ORDER_BY_VOLUME_30D" },
135
- { no: 6, name: "TOP_TOKENS_ORDER_BY_VOLUME_1Y" },
136
- { no: 7, name: "TOP_TOKENS_ORDER_BY_PRICE_CHANGE_1H" },
137
- { no: 8, name: "TOP_TOKENS_ORDER_BY_PRICE_CHANGE_1D" },
125
+ TokensOrderBy[TokensOrderBy["PRICE_CHANGE_1D"] = 8] = "PRICE_CHANGE_1D";
126
+ })(TokensOrderBy || (TokensOrderBy = {}));
127
+ // Retrieve enum metadata with: proto3.getEnumType(TokensOrderBy)
128
+ proto3.util.setEnumType(TokensOrderBy, "data.v1.TokensOrderBy", [
129
+ { no: 0, name: "TOKENS_ORDER_BY_UNSPECIFIED" },
130
+ { no: 1, name: "TOKENS_ORDER_BY_FDV" },
131
+ { no: 2, name: "TOKENS_ORDER_BY_VOLUME_1H" },
132
+ { no: 3, name: "TOKENS_ORDER_BY_VOLUME_1D" },
133
+ { no: 4, name: "TOKENS_ORDER_BY_VOLUME_7D" },
134
+ { no: 5, name: "TOKENS_ORDER_BY_VOLUME_30D" },
135
+ { no: 6, name: "TOKENS_ORDER_BY_VOLUME_1Y" },
136
+ { no: 7, name: "TOKENS_ORDER_BY_PRICE_CHANGE_1H" },
137
+ { no: 8, name: "TOKENS_ORDER_BY_PRICE_CHANGE_1D" },
138
138
  ]);
139
139
  /**
140
140
  * @generated from enum data.v1.ChartPeriod
@@ -1485,9 +1485,9 @@ ListTopPoolsResponse.fields = proto3.util.newFieldList(() => [
1485
1485
  { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1486
1486
  ]);
1487
1487
  /**
1488
- * @generated from message data.v1.ListTopTokensRequest
1488
+ * @generated from message data.v1.ListTokensRequest
1489
1489
  */
1490
- export class ListTopTokensRequest extends Message {
1490
+ export class ListTokensRequest extends Message {
1491
1491
  constructor(data) {
1492
1492
  super();
1493
1493
  /**
@@ -1497,32 +1497,32 @@ export class ListTopTokensRequest extends Message {
1497
1497
  proto3.util.initPartial(data, this);
1498
1498
  }
1499
1499
  static fromBinary(bytes, options) {
1500
- return new ListTopTokensRequest().fromBinary(bytes, options);
1500
+ return new ListTokensRequest().fromBinary(bytes, options);
1501
1501
  }
1502
1502
  static fromJson(jsonValue, options) {
1503
- return new ListTopTokensRequest().fromJson(jsonValue, options);
1503
+ return new ListTokensRequest().fromJson(jsonValue, options);
1504
1504
  }
1505
1505
  static fromJsonString(jsonString, options) {
1506
- return new ListTopTokensRequest().fromJsonString(jsonString, options);
1506
+ return new ListTokensRequest().fromJsonString(jsonString, options);
1507
1507
  }
1508
1508
  static equals(a, b) {
1509
- return proto3.util.equals(ListTopTokensRequest, a, b);
1509
+ return proto3.util.equals(ListTokensRequest, a, b);
1510
1510
  }
1511
1511
  }
1512
- ListTopTokensRequest.runtime = proto3;
1513
- ListTopTokensRequest.typeName = "data.v1.ListTopTokensRequest";
1514
- ListTopTokensRequest.fields = proto3.util.newFieldList(() => [
1512
+ ListTokensRequest.runtime = proto3;
1513
+ ListTokensRequest.typeName = "data.v1.ListTokensRequest";
1514
+ ListTokensRequest.fields = proto3.util.newFieldList(() => [
1515
1515
  { no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
1516
- { no: 2, name: "order_by", kind: "enum", T: proto3.getEnumType(TopTokensOrderBy), opt: true },
1516
+ { no: 2, name: "order_by", kind: "enum", T: proto3.getEnumType(TokensOrderBy), opt: true },
1517
1517
  { no: 3, name: "ascending", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1518
1518
  { no: 4, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
1519
1519
  { no: 5, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1520
1520
  { no: 6, name: "multichain", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1521
1521
  ]);
1522
1522
  /**
1523
- * @generated from message data.v1.ListTopTokensResponse
1523
+ * @generated from message data.v1.ListTokensResponse
1524
1524
  */
1525
- export class ListTopTokensResponse extends Message {
1525
+ export class ListTokensResponse extends Message {
1526
1526
  constructor(data) {
1527
1527
  super();
1528
1528
  /**
@@ -1536,21 +1536,21 @@ export class ListTopTokensResponse extends Message {
1536
1536
  proto3.util.initPartial(data, this);
1537
1537
  }
1538
1538
  static fromBinary(bytes, options) {
1539
- return new ListTopTokensResponse().fromBinary(bytes, options);
1539
+ return new ListTokensResponse().fromBinary(bytes, options);
1540
1540
  }
1541
1541
  static fromJson(jsonValue, options) {
1542
- return new ListTopTokensResponse().fromJson(jsonValue, options);
1542
+ return new ListTokensResponse().fromJson(jsonValue, options);
1543
1543
  }
1544
1544
  static fromJsonString(jsonString, options) {
1545
- return new ListTopTokensResponse().fromJsonString(jsonString, options);
1545
+ return new ListTokensResponse().fromJsonString(jsonString, options);
1546
1546
  }
1547
1547
  static equals(a, b) {
1548
- return proto3.util.equals(ListTopTokensResponse, a, b);
1548
+ return proto3.util.equals(ListTokensResponse, a, b);
1549
1549
  }
1550
1550
  }
1551
- ListTopTokensResponse.runtime = proto3;
1552
- ListTopTokensResponse.typeName = "data.v1.ListTopTokensResponse";
1553
- ListTopTokensResponse.fields = proto3.util.newFieldList(() => [
1551
+ ListTokensResponse.runtime = proto3;
1552
+ ListTokensResponse.typeName = "data.v1.ListTokensResponse";
1553
+ ListTokensResponse.fields = proto3.util.newFieldList(() => [
1554
1554
  { no: 1, name: "tokens", kind: "message", T: Token, repeated: true },
1555
1555
  { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1556
1556
  { no: 3, name: "multichain_tokens", kind: "message", T: MultichainToken, repeated: true },
@@ -1937,3 +1937,192 @@ GetTokenPricesResponse.typeName = "data.v1.GetTokenPricesResponse";
1937
1937
  GetTokenPricesResponse.fields = proto3.util.newFieldList(() => [
1938
1938
  { no: 1, name: "token_prices", kind: "message", T: TokenPrice, repeated: true },
1939
1939
  ]);
1940
+ /**
1941
+ * @generated from message data.v1.GetWalletProfitLossRequest
1942
+ */
1943
+ export class GetWalletProfitLossRequest extends Message {
1944
+ constructor(data) {
1945
+ super();
1946
+ /**
1947
+ * @generated from field: repeated uint32 chain_ids = 2;
1948
+ */
1949
+ this.chainIds = [];
1950
+ proto3.util.initPartial(data, this);
1951
+ }
1952
+ static fromBinary(bytes, options) {
1953
+ return new GetWalletProfitLossRequest().fromBinary(bytes, options);
1954
+ }
1955
+ static fromJson(jsonValue, options) {
1956
+ return new GetWalletProfitLossRequest().fromJson(jsonValue, options);
1957
+ }
1958
+ static fromJsonString(jsonString, options) {
1959
+ return new GetWalletProfitLossRequest().fromJsonString(jsonString, options);
1960
+ }
1961
+ static equals(a, b) {
1962
+ return proto3.util.equals(GetWalletProfitLossRequest, a, b);
1963
+ }
1964
+ }
1965
+ GetWalletProfitLossRequest.runtime = proto3;
1966
+ GetWalletProfitLossRequest.typeName = "data.v1.GetWalletProfitLossRequest";
1967
+ GetWalletProfitLossRequest.fields = proto3.util.newFieldList(() => [
1968
+ { no: 1, name: "wallet_account", kind: "message", T: WalletAccount },
1969
+ { no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
1970
+ { no: 3, name: "since", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
1971
+ { no: 4, name: "till", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
1972
+ ]);
1973
+ /**
1974
+ * @generated from message data.v1.GetWalletProfitLossResponse
1975
+ */
1976
+ export class GetWalletProfitLossResponse extends Message {
1977
+ constructor(data) {
1978
+ super();
1979
+ proto3.util.initPartial(data, this);
1980
+ }
1981
+ static fromBinary(bytes, options) {
1982
+ return new GetWalletProfitLossResponse().fromBinary(bytes, options);
1983
+ }
1984
+ static fromJson(jsonValue, options) {
1985
+ return new GetWalletProfitLossResponse().fromJson(jsonValue, options);
1986
+ }
1987
+ static fromJsonString(jsonString, options) {
1988
+ return new GetWalletProfitLossResponse().fromJsonString(jsonString, options);
1989
+ }
1990
+ static equals(a, b) {
1991
+ return proto3.util.equals(GetWalletProfitLossResponse, a, b);
1992
+ }
1993
+ }
1994
+ GetWalletProfitLossResponse.runtime = proto3;
1995
+ GetWalletProfitLossResponse.typeName = "data.v1.GetWalletProfitLossResponse";
1996
+ GetWalletProfitLossResponse.fields = proto3.util.newFieldList(() => [
1997
+ { no: 1, name: "profit_loss", kind: "message", T: WalletProfitLoss },
1998
+ ]);
1999
+ /**
2000
+ * @generated from message data.v1.GetWalletTokensProfitLossRequest
2001
+ */
2002
+ export class GetWalletTokensProfitLossRequest extends Message {
2003
+ constructor(data) {
2004
+ super();
2005
+ /**
2006
+ * @generated from field: repeated uint32 chain_ids = 2;
2007
+ */
2008
+ this.chainIds = [];
2009
+ proto3.util.initPartial(data, this);
2010
+ }
2011
+ static fromBinary(bytes, options) {
2012
+ return new GetWalletTokensProfitLossRequest().fromBinary(bytes, options);
2013
+ }
2014
+ static fromJson(jsonValue, options) {
2015
+ return new GetWalletTokensProfitLossRequest().fromJson(jsonValue, options);
2016
+ }
2017
+ static fromJsonString(jsonString, options) {
2018
+ return new GetWalletTokensProfitLossRequest().fromJsonString(jsonString, options);
2019
+ }
2020
+ static equals(a, b) {
2021
+ return proto3.util.equals(GetWalletTokensProfitLossRequest, a, b);
2022
+ }
2023
+ }
2024
+ GetWalletTokensProfitLossRequest.runtime = proto3;
2025
+ GetWalletTokensProfitLossRequest.typeName = "data.v1.GetWalletTokensProfitLossRequest";
2026
+ GetWalletTokensProfitLossRequest.fields = proto3.util.newFieldList(() => [
2027
+ { no: 1, name: "wallet_account", kind: "message", T: WalletAccount },
2028
+ { no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
2029
+ { no: 3, name: "since", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
2030
+ { no: 4, name: "till", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
2031
+ { no: 5, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
2032
+ { no: 6, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2033
+ ]);
2034
+ /**
2035
+ * @generated from message data.v1.GetWalletTokensProfitLossResponse
2036
+ */
2037
+ export class GetWalletTokensProfitLossResponse extends Message {
2038
+ constructor(data) {
2039
+ super();
2040
+ /**
2041
+ * @generated from field: repeated data.v1.TokenProfitLoss token_profit_losses = 1;
2042
+ */
2043
+ this.tokenProfitLosses = [];
2044
+ proto3.util.initPartial(data, this);
2045
+ }
2046
+ static fromBinary(bytes, options) {
2047
+ return new GetWalletTokensProfitLossResponse().fromBinary(bytes, options);
2048
+ }
2049
+ static fromJson(jsonValue, options) {
2050
+ return new GetWalletTokensProfitLossResponse().fromJson(jsonValue, options);
2051
+ }
2052
+ static fromJsonString(jsonString, options) {
2053
+ return new GetWalletTokensProfitLossResponse().fromJsonString(jsonString, options);
2054
+ }
2055
+ static equals(a, b) {
2056
+ return proto3.util.equals(GetWalletTokensProfitLossResponse, a, b);
2057
+ }
2058
+ }
2059
+ GetWalletTokensProfitLossResponse.runtime = proto3;
2060
+ GetWalletTokensProfitLossResponse.typeName = "data.v1.GetWalletTokensProfitLossResponse";
2061
+ GetWalletTokensProfitLossResponse.fields = proto3.util.newFieldList(() => [
2062
+ { no: 1, name: "token_profit_losses", kind: "message", T: TokenProfitLoss, repeated: true },
2063
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2064
+ ]);
2065
+ /**
2066
+ * @generated from message data.v1.GetWalletTokenProfitLossRequest
2067
+ */
2068
+ export class GetWalletTokenProfitLossRequest extends Message {
2069
+ constructor(data) {
2070
+ super();
2071
+ /**
2072
+ * @generated from field: uint32 chain_id = 2;
2073
+ */
2074
+ this.chainId = 0;
2075
+ /**
2076
+ * @generated from field: string token_address = 3;
2077
+ */
2078
+ this.tokenAddress = "";
2079
+ proto3.util.initPartial(data, this);
2080
+ }
2081
+ static fromBinary(bytes, options) {
2082
+ return new GetWalletTokenProfitLossRequest().fromBinary(bytes, options);
2083
+ }
2084
+ static fromJson(jsonValue, options) {
2085
+ return new GetWalletTokenProfitLossRequest().fromJson(jsonValue, options);
2086
+ }
2087
+ static fromJsonString(jsonString, options) {
2088
+ return new GetWalletTokenProfitLossRequest().fromJsonString(jsonString, options);
2089
+ }
2090
+ static equals(a, b) {
2091
+ return proto3.util.equals(GetWalletTokenProfitLossRequest, a, b);
2092
+ }
2093
+ }
2094
+ GetWalletTokenProfitLossRequest.runtime = proto3;
2095
+ GetWalletTokenProfitLossRequest.typeName = "data.v1.GetWalletTokenProfitLossRequest";
2096
+ GetWalletTokenProfitLossRequest.fields = proto3.util.newFieldList(() => [
2097
+ { no: 1, name: "wallet_account", kind: "message", T: WalletAccount },
2098
+ { no: 2, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2099
+ { no: 3, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2100
+ { no: 4, name: "since", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
2101
+ { no: 5, name: "till", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
2102
+ ]);
2103
+ /**
2104
+ * @generated from message data.v1.GetWalletTokenProfitLossResponse
2105
+ */
2106
+ export class GetWalletTokenProfitLossResponse extends Message {
2107
+ constructor(data) {
2108
+ super();
2109
+ proto3.util.initPartial(data, this);
2110
+ }
2111
+ static fromBinary(bytes, options) {
2112
+ return new GetWalletTokenProfitLossResponse().fromBinary(bytes, options);
2113
+ }
2114
+ static fromJson(jsonValue, options) {
2115
+ return new GetWalletTokenProfitLossResponse().fromJson(jsonValue, options);
2116
+ }
2117
+ static fromJsonString(jsonString, options) {
2118
+ return new GetWalletTokenProfitLossResponse().fromJsonString(jsonString, options);
2119
+ }
2120
+ static equals(a, b) {
2121
+ return proto3.util.equals(GetWalletTokenProfitLossResponse, a, b);
2122
+ }
2123
+ }
2124
+ GetWalletTokenProfitLossResponse.runtime = proto3;
2125
+ GetWalletTokenProfitLossResponse.typeName = "data.v1.GetWalletTokenProfitLossResponse";
2126
+ GetWalletTokenProfitLossResponse.fields = proto3.util.newFieldList(() => [
2127
+ { no: 1, name: "profit_loss", kind: "message", T: TokenDetailProfitLoss },
2128
+ ]);
@@ -1858,3 +1858,110 @@ export declare class Paymaster extends Message<Paymaster> {
1858
1858
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Paymaster;
1859
1859
  static equals(a: Paymaster | PlainMessage<Paymaster> | undefined, b: Paymaster | PlainMessage<Paymaster> | undefined): boolean;
1860
1860
  }
1861
+ /**
1862
+ * @generated from message data.v1.WalletProfitLoss
1863
+ */
1864
+ export declare class WalletProfitLoss extends Message<WalletProfitLoss> {
1865
+ /**
1866
+ * @generated from field: double net_invested_usd = 1;
1867
+ */
1868
+ netInvestedUsd: number;
1869
+ /**
1870
+ * @generated from field: double unrealized_return_usd = 2;
1871
+ */
1872
+ unrealizedReturnUsd: number;
1873
+ /**
1874
+ * @generated from field: double unrealized_return_percent = 3;
1875
+ */
1876
+ unrealizedReturnPercent: number;
1877
+ /**
1878
+ * @generated from field: double realized_return_usd = 4;
1879
+ */
1880
+ realizedReturnUsd: number;
1881
+ /**
1882
+ * @generated from field: double total_return_usd = 5;
1883
+ */
1884
+ totalReturnUsd: number;
1885
+ /**
1886
+ * @generated from field: double total_fee_usd = 6;
1887
+ */
1888
+ totalFeeUsd: number;
1889
+ constructor(data?: PartialMessage<WalletProfitLoss>);
1890
+ static readonly runtime: typeof proto3;
1891
+ static readonly typeName = "data.v1.WalletProfitLoss";
1892
+ static readonly fields: FieldList;
1893
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WalletProfitLoss;
1894
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WalletProfitLoss;
1895
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WalletProfitLoss;
1896
+ static equals(a: WalletProfitLoss | PlainMessage<WalletProfitLoss> | undefined, b: WalletProfitLoss | PlainMessage<WalletProfitLoss> | undefined): boolean;
1897
+ }
1898
+ /**
1899
+ * @generated from message data.v1.TokenProfitLoss
1900
+ */
1901
+ export declare class TokenProfitLoss extends Message<TokenProfitLoss> {
1902
+ /**
1903
+ * @generated from field: data.v1.Token token = 1;
1904
+ */
1905
+ token?: Token;
1906
+ /**
1907
+ * @generated from field: double average_cost_usd = 2;
1908
+ */
1909
+ averageCostUsd: number;
1910
+ /**
1911
+ * @generated from field: double unrealized_return_usd = 3;
1912
+ */
1913
+ unrealizedReturnUsd: number;
1914
+ /**
1915
+ * @generated from field: double unrealized_return_percent = 4;
1916
+ */
1917
+ unrealizedReturnPercent: number;
1918
+ constructor(data?: PartialMessage<TokenProfitLoss>);
1919
+ static readonly runtime: typeof proto3;
1920
+ static readonly typeName = "data.v1.TokenProfitLoss";
1921
+ static readonly fields: FieldList;
1922
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenProfitLoss;
1923
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenProfitLoss;
1924
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenProfitLoss;
1925
+ static equals(a: TokenProfitLoss | PlainMessage<TokenProfitLoss> | undefined, b: TokenProfitLoss | PlainMessage<TokenProfitLoss> | undefined): boolean;
1926
+ }
1927
+ /**
1928
+ * @generated from message data.v1.TokenDetailProfitLoss
1929
+ */
1930
+ export declare class TokenDetailProfitLoss extends Message<TokenDetailProfitLoss> {
1931
+ /**
1932
+ * @generated from field: double average_cost_usd = 1;
1933
+ */
1934
+ averageCostUsd: number;
1935
+ /**
1936
+ * @generated from field: double one_day_return_usd = 2;
1937
+ */
1938
+ oneDayReturnUsd: number;
1939
+ /**
1940
+ * @generated from field: double one_day_return_percent = 3;
1941
+ */
1942
+ oneDayReturnPercent: number;
1943
+ /**
1944
+ * @generated from field: double unrealized_return_usd = 4;
1945
+ */
1946
+ unrealizedReturnUsd: number;
1947
+ /**
1948
+ * @generated from field: double unrealized_return_percent = 5;
1949
+ */
1950
+ unrealizedReturnPercent: number;
1951
+ /**
1952
+ * @generated from field: double realized_return_usd = 6;
1953
+ */
1954
+ realizedReturnUsd: number;
1955
+ /**
1956
+ * @generated from field: double realized_return_percent = 7;
1957
+ */
1958
+ realizedReturnPercent: number;
1959
+ constructor(data?: PartialMessage<TokenDetailProfitLoss>);
1960
+ static readonly runtime: typeof proto3;
1961
+ static readonly typeName = "data.v1.TokenDetailProfitLoss";
1962
+ static readonly fields: FieldList;
1963
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenDetailProfitLoss;
1964
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenDetailProfitLoss;
1965
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenDetailProfitLoss;
1966
+ static equals(a: TokenDetailProfitLoss | PlainMessage<TokenDetailProfitLoss> | undefined, b: TokenDetailProfitLoss | PlainMessage<TokenDetailProfitLoss> | undefined): boolean;
1967
+ }
@@ -2307,3 +2307,159 @@ Paymaster.fields = proto3.util.newFieldList(() => [
2307
2307
  { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2308
2308
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2309
2309
  ]);
2310
+ /**
2311
+ * @generated from message data.v1.WalletProfitLoss
2312
+ */
2313
+ export class WalletProfitLoss extends Message {
2314
+ constructor(data) {
2315
+ super();
2316
+ /**
2317
+ * @generated from field: double net_invested_usd = 1;
2318
+ */
2319
+ this.netInvestedUsd = 0;
2320
+ /**
2321
+ * @generated from field: double unrealized_return_usd = 2;
2322
+ */
2323
+ this.unrealizedReturnUsd = 0;
2324
+ /**
2325
+ * @generated from field: double unrealized_return_percent = 3;
2326
+ */
2327
+ this.unrealizedReturnPercent = 0;
2328
+ /**
2329
+ * @generated from field: double realized_return_usd = 4;
2330
+ */
2331
+ this.realizedReturnUsd = 0;
2332
+ /**
2333
+ * @generated from field: double total_return_usd = 5;
2334
+ */
2335
+ this.totalReturnUsd = 0;
2336
+ /**
2337
+ * @generated from field: double total_fee_usd = 6;
2338
+ */
2339
+ this.totalFeeUsd = 0;
2340
+ proto3.util.initPartial(data, this);
2341
+ }
2342
+ static fromBinary(bytes, options) {
2343
+ return new WalletProfitLoss().fromBinary(bytes, options);
2344
+ }
2345
+ static fromJson(jsonValue, options) {
2346
+ return new WalletProfitLoss().fromJson(jsonValue, options);
2347
+ }
2348
+ static fromJsonString(jsonString, options) {
2349
+ return new WalletProfitLoss().fromJsonString(jsonString, options);
2350
+ }
2351
+ static equals(a, b) {
2352
+ return proto3.util.equals(WalletProfitLoss, a, b);
2353
+ }
2354
+ }
2355
+ WalletProfitLoss.runtime = proto3;
2356
+ WalletProfitLoss.typeName = "data.v1.WalletProfitLoss";
2357
+ WalletProfitLoss.fields = proto3.util.newFieldList(() => [
2358
+ { no: 1, name: "net_invested_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2359
+ { no: 2, name: "unrealized_return_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2360
+ { no: 3, name: "unrealized_return_percent", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2361
+ { no: 4, name: "realized_return_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2362
+ { no: 5, name: "total_return_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2363
+ { no: 6, name: "total_fee_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2364
+ ]);
2365
+ /**
2366
+ * @generated from message data.v1.TokenProfitLoss
2367
+ */
2368
+ export class TokenProfitLoss extends Message {
2369
+ constructor(data) {
2370
+ super();
2371
+ /**
2372
+ * @generated from field: double average_cost_usd = 2;
2373
+ */
2374
+ this.averageCostUsd = 0;
2375
+ /**
2376
+ * @generated from field: double unrealized_return_usd = 3;
2377
+ */
2378
+ this.unrealizedReturnUsd = 0;
2379
+ /**
2380
+ * @generated from field: double unrealized_return_percent = 4;
2381
+ */
2382
+ this.unrealizedReturnPercent = 0;
2383
+ proto3.util.initPartial(data, this);
2384
+ }
2385
+ static fromBinary(bytes, options) {
2386
+ return new TokenProfitLoss().fromBinary(bytes, options);
2387
+ }
2388
+ static fromJson(jsonValue, options) {
2389
+ return new TokenProfitLoss().fromJson(jsonValue, options);
2390
+ }
2391
+ static fromJsonString(jsonString, options) {
2392
+ return new TokenProfitLoss().fromJsonString(jsonString, options);
2393
+ }
2394
+ static equals(a, b) {
2395
+ return proto3.util.equals(TokenProfitLoss, a, b);
2396
+ }
2397
+ }
2398
+ TokenProfitLoss.runtime = proto3;
2399
+ TokenProfitLoss.typeName = "data.v1.TokenProfitLoss";
2400
+ TokenProfitLoss.fields = proto3.util.newFieldList(() => [
2401
+ { no: 1, name: "token", kind: "message", T: Token },
2402
+ { no: 2, name: "average_cost_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2403
+ { no: 3, name: "unrealized_return_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2404
+ { no: 4, name: "unrealized_return_percent", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2405
+ ]);
2406
+ /**
2407
+ * @generated from message data.v1.TokenDetailProfitLoss
2408
+ */
2409
+ export class TokenDetailProfitLoss extends Message {
2410
+ constructor(data) {
2411
+ super();
2412
+ /**
2413
+ * @generated from field: double average_cost_usd = 1;
2414
+ */
2415
+ this.averageCostUsd = 0;
2416
+ /**
2417
+ * @generated from field: double one_day_return_usd = 2;
2418
+ */
2419
+ this.oneDayReturnUsd = 0;
2420
+ /**
2421
+ * @generated from field: double one_day_return_percent = 3;
2422
+ */
2423
+ this.oneDayReturnPercent = 0;
2424
+ /**
2425
+ * @generated from field: double unrealized_return_usd = 4;
2426
+ */
2427
+ this.unrealizedReturnUsd = 0;
2428
+ /**
2429
+ * @generated from field: double unrealized_return_percent = 5;
2430
+ */
2431
+ this.unrealizedReturnPercent = 0;
2432
+ /**
2433
+ * @generated from field: double realized_return_usd = 6;
2434
+ */
2435
+ this.realizedReturnUsd = 0;
2436
+ /**
2437
+ * @generated from field: double realized_return_percent = 7;
2438
+ */
2439
+ this.realizedReturnPercent = 0;
2440
+ proto3.util.initPartial(data, this);
2441
+ }
2442
+ static fromBinary(bytes, options) {
2443
+ return new TokenDetailProfitLoss().fromBinary(bytes, options);
2444
+ }
2445
+ static fromJson(jsonValue, options) {
2446
+ return new TokenDetailProfitLoss().fromJson(jsonValue, options);
2447
+ }
2448
+ static fromJsonString(jsonString, options) {
2449
+ return new TokenDetailProfitLoss().fromJsonString(jsonString, options);
2450
+ }
2451
+ static equals(a, b) {
2452
+ return proto3.util.equals(TokenDetailProfitLoss, a, b);
2453
+ }
2454
+ }
2455
+ TokenDetailProfitLoss.runtime = proto3;
2456
+ TokenDetailProfitLoss.typeName = "data.v1.TokenDetailProfitLoss";
2457
+ TokenDetailProfitLoss.fields = proto3.util.newFieldList(() => [
2458
+ { no: 1, name: "average_cost_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2459
+ { no: 2, name: "one_day_return_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2460
+ { no: 3, name: "one_day_return_percent", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2461
+ { no: 4, name: "unrealized_return_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2462
+ { no: 5, name: "unrealized_return_percent", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2463
+ { no: 6, name: "realized_return_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2464
+ { no: 7, name: "realized_return_percent", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2465
+ ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.55",
3
+ "version": "0.0.59",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },