@uniswap/client-data-api 0.0.61 → 0.0.63

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,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, TokenDetailProfitLoss, TokenProfitLoss, TokenReportEventType, Transaction, TransactionTypeFilter, WalletProfitLoss } from "./types_pb.js";
3
+ import { ChainTokenProfitLoss, MultichainToken, MultichainTokenProfitLoss, 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
@@ -1410,6 +1410,10 @@ export declare class GetWalletProfitLossRequest extends Message<GetWalletProfitL
1410
1410
  * @generated from field: optional int64 till = 4;
1411
1411
  */
1412
1412
  till?: bigint;
1413
+ /**
1414
+ * @generated from field: optional data.v1.PortfolioValueModifier modifier = 5;
1415
+ */
1416
+ modifier?: PortfolioValueModifier;
1413
1417
  constructor(data?: PartialMessage<GetWalletProfitLossRequest>);
1414
1418
  static readonly runtime: typeof proto3;
1415
1419
  static readonly typeName = "data.v1.GetWalletProfitLossRequest";
@@ -1464,6 +1468,14 @@ export declare class GetWalletTokensProfitLossRequest extends Message<GetWalletT
1464
1468
  * @generated from field: optional string page_token = 6;
1465
1469
  */
1466
1470
  pageToken?: string;
1471
+ /**
1472
+ * @generated from field: optional data.v1.PortfolioValueModifier modifier = 7;
1473
+ */
1474
+ modifier?: PortfolioValueModifier;
1475
+ /**
1476
+ * @generated from field: bool multichain = 8;
1477
+ */
1478
+ multichain: boolean;
1467
1479
  constructor(data?: PartialMessage<GetWalletTokensProfitLossRequest>);
1468
1480
  static readonly runtime: typeof proto3;
1469
1481
  static readonly typeName = "data.v1.GetWalletTokensProfitLossRequest";
@@ -1485,6 +1497,10 @@ export declare class GetWalletTokensProfitLossResponse extends Message<GetWallet
1485
1497
  * @generated from field: optional string next_page_token = 2;
1486
1498
  */
1487
1499
  nextPageToken?: string;
1500
+ /**
1501
+ * @generated from field: repeated data.v1.MultichainTokenProfitLoss multichain_token_profit_loss = 3;
1502
+ */
1503
+ multichainTokenProfitLoss: MultichainTokenProfitLoss[];
1488
1504
  constructor(data?: PartialMessage<GetWalletTokensProfitLossResponse>);
1489
1505
  static readonly runtime: typeof proto3;
1490
1506
  static readonly typeName = "data.v1.GetWalletTokensProfitLossResponse";
@@ -1518,6 +1534,14 @@ export declare class GetWalletTokenProfitLossRequest extends Message<GetWalletTo
1518
1534
  * @generated from field: optional int64 till = 5;
1519
1535
  */
1520
1536
  till?: bigint;
1537
+ /**
1538
+ * @generated from field: optional data.v1.PortfolioValueModifier modifier = 6;
1539
+ */
1540
+ modifier?: PortfolioValueModifier;
1541
+ /**
1542
+ * @generated from field: bool multichain = 7;
1543
+ */
1544
+ multichain: boolean;
1521
1545
  constructor(data?: PartialMessage<GetWalletTokenProfitLossRequest>);
1522
1546
  static readonly runtime: typeof proto3;
1523
1547
  static readonly typeName = "data.v1.GetWalletTokenProfitLossRequest";
@@ -1535,6 +1559,10 @@ export declare class GetWalletTokenProfitLossResponse extends Message<GetWalletT
1535
1559
  * @generated from field: data.v1.TokenDetailProfitLoss profit_loss = 1;
1536
1560
  */
1537
1561
  profitLoss?: TokenDetailProfitLoss;
1562
+ /**
1563
+ * @generated from field: repeated data.v1.ChainTokenProfitLoss chain_breakdown = 2;
1564
+ */
1565
+ chainBreakdown: ChainTokenProfitLoss[];
1538
1566
  constructor(data?: PartialMessage<GetWalletTokenProfitLossResponse>);
1539
1567
  static readonly runtime: typeof proto3;
1540
1568
  static readonly typeName = "data.v1.GetWalletTokenProfitLossResponse";
@@ -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, TokenDetailProfitLoss, TokenProfitLoss, TokenReportEventType, Transaction, TransactionTypeFilter, WalletProfitLoss } from "./types_pb.js";
6
+ import { ChainTokenProfitLoss, MultichainToken, MultichainTokenProfitLoss, 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
@@ -1969,6 +1969,7 @@ GetWalletProfitLossRequest.fields = proto3.util.newFieldList(() => [
1969
1969
  { no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
1970
1970
  { no: 3, name: "since", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
1971
1971
  { no: 4, name: "till", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
1972
+ { no: 5, name: "modifier", kind: "message", T: PortfolioValueModifier, opt: true },
1972
1973
  ]);
1973
1974
  /**
1974
1975
  * @generated from message data.v1.GetWalletProfitLossResponse
@@ -2006,6 +2007,10 @@ export class GetWalletTokensProfitLossRequest extends Message {
2006
2007
  * @generated from field: repeated uint32 chain_ids = 2;
2007
2008
  */
2008
2009
  this.chainIds = [];
2010
+ /**
2011
+ * @generated from field: bool multichain = 8;
2012
+ */
2013
+ this.multichain = false;
2009
2014
  proto3.util.initPartial(data, this);
2010
2015
  }
2011
2016
  static fromBinary(bytes, options) {
@@ -2030,6 +2035,8 @@ GetWalletTokensProfitLossRequest.fields = proto3.util.newFieldList(() => [
2030
2035
  { no: 4, name: "till", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
2031
2036
  { no: 5, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
2032
2037
  { no: 6, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2038
+ { no: 7, name: "modifier", kind: "message", T: PortfolioValueModifier, opt: true },
2039
+ { no: 8, name: "multichain", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2033
2040
  ]);
2034
2041
  /**
2035
2042
  * @generated from message data.v1.GetWalletTokensProfitLossResponse
@@ -2041,6 +2048,10 @@ export class GetWalletTokensProfitLossResponse extends Message {
2041
2048
  * @generated from field: repeated data.v1.TokenProfitLoss token_profit_losses = 1;
2042
2049
  */
2043
2050
  this.tokenProfitLosses = [];
2051
+ /**
2052
+ * @generated from field: repeated data.v1.MultichainTokenProfitLoss multichain_token_profit_loss = 3;
2053
+ */
2054
+ this.multichainTokenProfitLoss = [];
2044
2055
  proto3.util.initPartial(data, this);
2045
2056
  }
2046
2057
  static fromBinary(bytes, options) {
@@ -2061,6 +2072,7 @@ GetWalletTokensProfitLossResponse.typeName = "data.v1.GetWalletTokensProfitLossR
2061
2072
  GetWalletTokensProfitLossResponse.fields = proto3.util.newFieldList(() => [
2062
2073
  { no: 1, name: "token_profit_losses", kind: "message", T: TokenProfitLoss, repeated: true },
2063
2074
  { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2075
+ { no: 3, name: "multichain_token_profit_loss", kind: "message", T: MultichainTokenProfitLoss, repeated: true },
2064
2076
  ]);
2065
2077
  /**
2066
2078
  * @generated from message data.v1.GetWalletTokenProfitLossRequest
@@ -2076,6 +2088,10 @@ export class GetWalletTokenProfitLossRequest extends Message {
2076
2088
  * @generated from field: string token_address = 3;
2077
2089
  */
2078
2090
  this.tokenAddress = "";
2091
+ /**
2092
+ * @generated from field: bool multichain = 7;
2093
+ */
2094
+ this.multichain = false;
2079
2095
  proto3.util.initPartial(data, this);
2080
2096
  }
2081
2097
  static fromBinary(bytes, options) {
@@ -2099,6 +2115,8 @@ GetWalletTokenProfitLossRequest.fields = proto3.util.newFieldList(() => [
2099
2115
  { no: 3, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2100
2116
  { no: 4, name: "since", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
2101
2117
  { no: 5, name: "till", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
2118
+ { no: 6, name: "modifier", kind: "message", T: PortfolioValueModifier, opt: true },
2119
+ { no: 7, name: "multichain", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2102
2120
  ]);
2103
2121
  /**
2104
2122
  * @generated from message data.v1.GetWalletTokenProfitLossResponse
@@ -2106,6 +2124,10 @@ GetWalletTokenProfitLossRequest.fields = proto3.util.newFieldList(() => [
2106
2124
  export class GetWalletTokenProfitLossResponse extends Message {
2107
2125
  constructor(data) {
2108
2126
  super();
2127
+ /**
2128
+ * @generated from field: repeated data.v1.ChainTokenProfitLoss chain_breakdown = 2;
2129
+ */
2130
+ this.chainBreakdown = [];
2109
2131
  proto3.util.initPartial(data, this);
2110
2132
  }
2111
2133
  static fromBinary(bytes, options) {
@@ -2125,4 +2147,5 @@ GetWalletTokenProfitLossResponse.runtime = proto3;
2125
2147
  GetWalletTokenProfitLossResponse.typeName = "data.v1.GetWalletTokenProfitLossResponse";
2126
2148
  GetWalletTokenProfitLossResponse.fields = proto3.util.newFieldList(() => [
2127
2149
  { no: 1, name: "profit_loss", kind: "message", T: TokenDetailProfitLoss },
2150
+ { no: 2, name: "chain_breakdown", kind: "message", T: ChainTokenProfitLoss, repeated: true },
2128
2151
  ]);
@@ -1965,3 +1965,73 @@ export declare class TokenDetailProfitLoss extends Message<TokenDetailProfitLoss
1965
1965
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenDetailProfitLoss;
1966
1966
  static equals(a: TokenDetailProfitLoss | PlainMessage<TokenDetailProfitLoss> | undefined, b: TokenDetailProfitLoss | PlainMessage<TokenDetailProfitLoss> | undefined): boolean;
1967
1967
  }
1968
+ /**
1969
+ * Per-chain PnL within a multichain token group
1970
+ *
1971
+ * @generated from message data.v1.ChainTokenProfitLoss
1972
+ */
1973
+ export declare class ChainTokenProfitLoss extends Message<ChainTokenProfitLoss> {
1974
+ /**
1975
+ * @generated from field: uint32 chain_id = 1;
1976
+ */
1977
+ chainId: number;
1978
+ /**
1979
+ * @generated from field: string token_address = 2;
1980
+ */
1981
+ tokenAddress: string;
1982
+ /**
1983
+ * @generated from field: double average_cost_usd = 3;
1984
+ */
1985
+ averageCostUsd: number;
1986
+ /**
1987
+ * @generated from field: double unrealized_return_usd = 4;
1988
+ */
1989
+ unrealizedReturnUsd: number;
1990
+ /**
1991
+ * @generated from field: double unrealized_return_percent = 5;
1992
+ */
1993
+ unrealizedReturnPercent: number;
1994
+ constructor(data?: PartialMessage<ChainTokenProfitLoss>);
1995
+ static readonly runtime: typeof proto3;
1996
+ static readonly typeName = "data.v1.ChainTokenProfitLoss";
1997
+ static readonly fields: FieldList;
1998
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainTokenProfitLoss;
1999
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainTokenProfitLoss;
2000
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainTokenProfitLoss;
2001
+ static equals(a: ChainTokenProfitLoss | PlainMessage<ChainTokenProfitLoss> | undefined, b: ChainTokenProfitLoss | PlainMessage<ChainTokenProfitLoss> | undefined): boolean;
2002
+ }
2003
+ /**
2004
+ * A token aggregated across multiple chains with per-chain breakdown
2005
+ *
2006
+ * @generated from message data.v1.MultichainTokenProfitLoss
2007
+ */
2008
+ export declare class MultichainTokenProfitLoss extends Message<MultichainTokenProfitLoss> {
2009
+ /**
2010
+ * @generated from field: string name = 1;
2011
+ */
2012
+ name: string;
2013
+ /**
2014
+ * @generated from field: string symbol = 2;
2015
+ */
2016
+ symbol: string;
2017
+ /**
2018
+ * @generated from field: string logo_url = 3;
2019
+ */
2020
+ logoUrl: string;
2021
+ /**
2022
+ * @generated from field: data.v1.TokenProfitLoss aggregated = 4;
2023
+ */
2024
+ aggregated?: TokenProfitLoss;
2025
+ /**
2026
+ * @generated from field: repeated data.v1.ChainTokenProfitLoss chain_breakdown = 5;
2027
+ */
2028
+ chainBreakdown: ChainTokenProfitLoss[];
2029
+ constructor(data?: PartialMessage<MultichainTokenProfitLoss>);
2030
+ static readonly runtime: typeof proto3;
2031
+ static readonly typeName = "data.v1.MultichainTokenProfitLoss";
2032
+ static readonly fields: FieldList;
2033
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MultichainTokenProfitLoss;
2034
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MultichainTokenProfitLoss;
2035
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MultichainTokenProfitLoss;
2036
+ static equals(a: MultichainTokenProfitLoss | PlainMessage<MultichainTokenProfitLoss> | undefined, b: MultichainTokenProfitLoss | PlainMessage<MultichainTokenProfitLoss> | undefined): boolean;
2037
+ }
@@ -2463,3 +2463,103 @@ TokenDetailProfitLoss.fields = proto3.util.newFieldList(() => [
2463
2463
  { no: 6, name: "realized_return_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2464
2464
  { no: 7, name: "realized_return_percent", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2465
2465
  ]);
2466
+ /**
2467
+ * Per-chain PnL within a multichain token group
2468
+ *
2469
+ * @generated from message data.v1.ChainTokenProfitLoss
2470
+ */
2471
+ export class ChainTokenProfitLoss extends Message {
2472
+ constructor(data) {
2473
+ super();
2474
+ /**
2475
+ * @generated from field: uint32 chain_id = 1;
2476
+ */
2477
+ this.chainId = 0;
2478
+ /**
2479
+ * @generated from field: string token_address = 2;
2480
+ */
2481
+ this.tokenAddress = "";
2482
+ /**
2483
+ * @generated from field: double average_cost_usd = 3;
2484
+ */
2485
+ this.averageCostUsd = 0;
2486
+ /**
2487
+ * @generated from field: double unrealized_return_usd = 4;
2488
+ */
2489
+ this.unrealizedReturnUsd = 0;
2490
+ /**
2491
+ * @generated from field: double unrealized_return_percent = 5;
2492
+ */
2493
+ this.unrealizedReturnPercent = 0;
2494
+ proto3.util.initPartial(data, this);
2495
+ }
2496
+ static fromBinary(bytes, options) {
2497
+ return new ChainTokenProfitLoss().fromBinary(bytes, options);
2498
+ }
2499
+ static fromJson(jsonValue, options) {
2500
+ return new ChainTokenProfitLoss().fromJson(jsonValue, options);
2501
+ }
2502
+ static fromJsonString(jsonString, options) {
2503
+ return new ChainTokenProfitLoss().fromJsonString(jsonString, options);
2504
+ }
2505
+ static equals(a, b) {
2506
+ return proto3.util.equals(ChainTokenProfitLoss, a, b);
2507
+ }
2508
+ }
2509
+ ChainTokenProfitLoss.runtime = proto3;
2510
+ ChainTokenProfitLoss.typeName = "data.v1.ChainTokenProfitLoss";
2511
+ ChainTokenProfitLoss.fields = proto3.util.newFieldList(() => [
2512
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
2513
+ { no: 2, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2514
+ { no: 3, name: "average_cost_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2515
+ { no: 4, name: "unrealized_return_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2516
+ { no: 5, name: "unrealized_return_percent", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2517
+ ]);
2518
+ /**
2519
+ * A token aggregated across multiple chains with per-chain breakdown
2520
+ *
2521
+ * @generated from message data.v1.MultichainTokenProfitLoss
2522
+ */
2523
+ export class MultichainTokenProfitLoss extends Message {
2524
+ constructor(data) {
2525
+ super();
2526
+ /**
2527
+ * @generated from field: string name = 1;
2528
+ */
2529
+ this.name = "";
2530
+ /**
2531
+ * @generated from field: string symbol = 2;
2532
+ */
2533
+ this.symbol = "";
2534
+ /**
2535
+ * @generated from field: string logo_url = 3;
2536
+ */
2537
+ this.logoUrl = "";
2538
+ /**
2539
+ * @generated from field: repeated data.v1.ChainTokenProfitLoss chain_breakdown = 5;
2540
+ */
2541
+ this.chainBreakdown = [];
2542
+ proto3.util.initPartial(data, this);
2543
+ }
2544
+ static fromBinary(bytes, options) {
2545
+ return new MultichainTokenProfitLoss().fromBinary(bytes, options);
2546
+ }
2547
+ static fromJson(jsonValue, options) {
2548
+ return new MultichainTokenProfitLoss().fromJson(jsonValue, options);
2549
+ }
2550
+ static fromJsonString(jsonString, options) {
2551
+ return new MultichainTokenProfitLoss().fromJsonString(jsonString, options);
2552
+ }
2553
+ static equals(a, b) {
2554
+ return proto3.util.equals(MultichainTokenProfitLoss, a, b);
2555
+ }
2556
+ }
2557
+ MultichainTokenProfitLoss.runtime = proto3;
2558
+ MultichainTokenProfitLoss.typeName = "data.v1.MultichainTokenProfitLoss";
2559
+ MultichainTokenProfitLoss.fields = proto3.util.newFieldList(() => [
2560
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2561
+ { no: 2, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2562
+ { no: 3, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2563
+ { no: 4, name: "aggregated", kind: "message", T: TokenProfitLoss },
2564
+ { no: 5, name: "chain_breakdown", kind: "message", T: ChainTokenProfitLoss, repeated: true },
2565
+ ]);
@@ -84,6 +84,10 @@ export declare class BlockaidMetadataItem extends Message<BlockaidMetadataItem>
84
84
  * @generated from field: double fee_transfer = 7;
85
85
  */
86
86
  feeTransfer: number;
87
+ /**
88
+ * @generated from field: repeated string features = 8;
89
+ */
90
+ features: string[];
87
91
  constructor(data?: PartialMessage<BlockaidMetadataItem>);
88
92
  static readonly runtime: typeof proto3;
89
93
  static readonly typeName = "data.v1.BlockaidMetadataItem";
@@ -133,6 +133,10 @@ export class BlockaidMetadataItem extends Message {
133
133
  * @generated from field: double fee_transfer = 7;
134
134
  */
135
135
  this.feeTransfer = 0;
136
+ /**
137
+ * @generated from field: repeated string features = 8;
138
+ */
139
+ this.features = [];
136
140
  proto3.util.initPartial(data, this);
137
141
  }
138
142
  static fromBinary(bytes, options) {
@@ -158,6 +162,7 @@ BlockaidMetadataItem.fields = proto3.util.newFieldList(() => [
158
162
  { no: 5, name: "fee_buy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
159
163
  { no: 6, name: "fee_sell", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
160
164
  { no: 7, name: "fee_transfer", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
165
+ { no: 8, name: "features", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
161
166
  ]);
162
167
  /**
163
168
  * @generated from message data.v1.IngestBlockaidMetadataRequest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.61",
3
+ "version": "0.0.63",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },