@uniswap/client-data-api 0.0.108 → 0.0.109

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 { ChainTokenProfitLoss, Contract, MultichainToken, MultichainTokenProfitLoss, Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenDetailProfitLoss, TokenProfitLoss, TokenReportEventType, Transaction, TransactionTypeFilter, WalletProfitLoss } from "./types_pb.js";
3
+ import { ChainTokenProfitLoss, Contract, MultichainToken, MultichainTokenProfitLoss, Pool as Pool$1, PoolRef, 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
@@ -1447,6 +1447,18 @@ export declare class GetPortfolioChartRequest extends Message<GetPortfolioChartR
1447
1447
  * @generated from field: optional bool include_spam_tokens = 6;
1448
1448
  */
1449
1449
  includeSpamTokens?: boolean;
1450
+ /**
1451
+ * @generated from field: repeated data.v1.WalletBalanceCategory include_categories = 7;
1452
+ */
1453
+ includeCategories: WalletBalanceCategory[];
1454
+ /**
1455
+ * @generated from field: repeated data.v1.PoolRef pool_exclude_overrides = 8;
1456
+ */
1457
+ poolExcludeOverrides: PoolRef[];
1458
+ /**
1459
+ * @generated from field: repeated data.v1.PoolRef pool_include_overrides = 9;
1460
+ */
1461
+ poolIncludeOverrides: PoolRef[];
1450
1462
  constructor(data?: PartialMessage<GetPortfolioChartRequest>);
1451
1463
  static readonly runtime: typeof proto3;
1452
1464
  static readonly typeName = "data.v1.GetPortfolioChartRequest";
@@ -1493,6 +1505,18 @@ export declare class GetPortfolioChartResponse extends Message<GetPortfolioChart
1493
1505
  * @generated from field: int64 end_at = 3;
1494
1506
  */
1495
1507
  endAt: bigint;
1508
+ /**
1509
+ * @generated from field: repeated data.v1.ChartPoint tokens = 4;
1510
+ */
1511
+ tokens: ChartPoint[];
1512
+ /**
1513
+ * @generated from field: repeated data.v1.ChartPoint pools = 5;
1514
+ */
1515
+ pools: ChartPoint[];
1516
+ /**
1517
+ * @generated from field: repeated data.v1.ChartPoint earn = 6;
1518
+ */
1519
+ earn: ChartPoint[];
1496
1520
  constructor(data?: PartialMessage<GetPortfolioChartResponse>);
1497
1521
  static readonly runtime: typeof proto3;
1498
1522
  static readonly typeName = "data.v1.GetPortfolioChartResponse";
@@ -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, MultichainToken, MultichainTokenProfitLoss, Pool as Pool$1, Portfolio, PortfolioValueModifier, Token, TokenDetailProfitLoss, TokenProfitLoss, TokenReportEventType, Transaction, TransactionTypeFilter, WalletProfitLoss } from "./types_pb.js";
6
+ import { ChainTokenProfitLoss, Contract, MultichainToken, MultichainTokenProfitLoss, Pool as Pool$1, PoolRef, 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
@@ -1936,6 +1936,18 @@ export class GetPortfolioChartRequest extends Message {
1936
1936
  * @generated from field: repeated data.v1.Contract exclude_overrides = 5;
1937
1937
  */
1938
1938
  this.excludeOverrides = [];
1939
+ /**
1940
+ * @generated from field: repeated data.v1.WalletBalanceCategory include_categories = 7;
1941
+ */
1942
+ this.includeCategories = [];
1943
+ /**
1944
+ * @generated from field: repeated data.v1.PoolRef pool_exclude_overrides = 8;
1945
+ */
1946
+ this.poolExcludeOverrides = [];
1947
+ /**
1948
+ * @generated from field: repeated data.v1.PoolRef pool_include_overrides = 9;
1949
+ */
1950
+ this.poolIncludeOverrides = [];
1939
1951
  proto3.util.initPartial(data, this);
1940
1952
  }
1941
1953
  static fromBinary(bytes, options) {
@@ -1960,6 +1972,9 @@ GetPortfolioChartRequest.fields = proto3.util.newFieldList(() => [
1960
1972
  { no: 4, name: "include_overrides", kind: "message", T: Contract, repeated: true },
1961
1973
  { no: 5, name: "exclude_overrides", kind: "message", T: Contract, repeated: true },
1962
1974
  { no: 6, name: "include_spam_tokens", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1975
+ { no: 7, name: "include_categories", kind: "enum", T: proto3.getEnumType(WalletBalanceCategory), repeated: true },
1976
+ { no: 8, name: "pool_exclude_overrides", kind: "message", T: PoolRef, repeated: true },
1977
+ { no: 9, name: "pool_include_overrides", kind: "message", T: PoolRef, repeated: true },
1963
1978
  ]);
1964
1979
  /**
1965
1980
  * @generated from message data.v1.ChartPoint
@@ -2014,6 +2029,18 @@ export class GetPortfolioChartResponse extends Message {
2014
2029
  * @generated from field: int64 end_at = 3;
2015
2030
  */
2016
2031
  this.endAt = protoInt64.zero;
2032
+ /**
2033
+ * @generated from field: repeated data.v1.ChartPoint tokens = 4;
2034
+ */
2035
+ this.tokens = [];
2036
+ /**
2037
+ * @generated from field: repeated data.v1.ChartPoint pools = 5;
2038
+ */
2039
+ this.pools = [];
2040
+ /**
2041
+ * @generated from field: repeated data.v1.ChartPoint earn = 6;
2042
+ */
2043
+ this.earn = [];
2017
2044
  proto3.util.initPartial(data, this);
2018
2045
  }
2019
2046
  static fromBinary(bytes, options) {
@@ -2035,6 +2062,9 @@ GetPortfolioChartResponse.fields = proto3.util.newFieldList(() => [
2035
2062
  { no: 1, name: "points", kind: "message", T: ChartPoint, repeated: true },
2036
2063
  { no: 2, name: "begin_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
2037
2064
  { no: 3, name: "end_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
2065
+ { no: 4, name: "tokens", kind: "message", T: ChartPoint, repeated: true },
2066
+ { no: 5, name: "pools", kind: "message", T: ChartPoint, repeated: true },
2067
+ { no: 6, name: "earn", kind: "message", T: ChartPoint, repeated: true },
2038
2068
  ]);
2039
2069
  /**
2040
2070
  * @generated from message data.v1.TokenPriceInput
@@ -227,10 +227,9 @@ export declare class OhlcCandle extends Message<OhlcCandle> {
227
227
  /**
228
228
  * 1:1 REST port of the legacy GraphQL `convert` query. Cross-currency pairs
229
229
  * (e.g. EUR -> JPY) are computed from the same USD-base rates snapshot.
230
- * Same-currency requests echo the amount back unchanged. Rates come from the
231
- * provider's USD-base snapshot (updated ~every 5min); a 5-min server-side
232
- * cache (serving the last good snapshot on upstream failure) is planned once
233
- * the shared SWR cache infrastructure lands.
230
+ * Same-currency requests echo the amount back unchanged. Rates may be up to
231
+ * ~5-10min old by design (5min cache + provider's 5min update cycle); on
232
+ * upstream failure the server serves the last good snapshot rather than erroring.
234
233
  *
235
234
  * @generated from message data.v2.ConvertFiatRequest
236
235
  */
@@ -297,10 +297,9 @@ OhlcCandle.fields = proto3.util.newFieldList(() => [
297
297
  /**
298
298
  * 1:1 REST port of the legacy GraphQL `convert` query. Cross-currency pairs
299
299
  * (e.g. EUR -> JPY) are computed from the same USD-base rates snapshot.
300
- * Same-currency requests echo the amount back unchanged. Rates come from the
301
- * provider's USD-base snapshot (updated ~every 5min); a 5-min server-side
302
- * cache (serving the last good snapshot on upstream failure) is planned once
303
- * the shared SWR cache infrastructure lands.
300
+ * Same-currency requests echo the amount back unchanged. Rates may be up to
301
+ * ~5-10min old by design (5min cache + provider's 5min update cycle); on
302
+ * upstream failure the server serves the last good snapshot rather than erroring.
304
303
  *
305
304
  * @generated from message data.v2.ConvertFiatRequest
306
305
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.108",
3
+ "version": "0.0.109",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },