@uniswap/client-data-api 0.0.107 → 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
@@ -1289,6 +1289,10 @@ export declare class OnChainTransaction extends Message<OnChainTransaction> {
1289
1289
  * @generated from field: optional data.v1.Paymaster paymaster = 13;
1290
1290
  */
1291
1291
  paymaster?: Paymaster;
1292
+ /**
1293
+ * @generated from field: optional data.v1.SponsorshipMetadata sponsorship = 14;
1294
+ */
1295
+ sponsorship?: SponsorshipMetadata;
1292
1296
  constructor(data?: PartialMessage<OnChainTransaction>);
1293
1297
  static readonly runtime: typeof proto3;
1294
1298
  static readonly typeName = "data.v1.OnChainTransaction";
@@ -1935,6 +1939,31 @@ export declare class Paymaster extends Message<Paymaster> {
1935
1939
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Paymaster;
1936
1940
  static equals(a: Paymaster | PlainMessage<Paymaster> | undefined, b: Paymaster | PlainMessage<Paymaster> | undefined): boolean;
1937
1941
  }
1942
+ /**
1943
+ * Sponsor identity for a gas-sponsored transaction, resolved from the
1944
+ * internal Sponsorship service (platform-service). Complements Paymaster,
1945
+ * which only carries the on-chain paymaster contract address.
1946
+ *
1947
+ * @generated from message data.v1.SponsorshipMetadata
1948
+ */
1949
+ export declare class SponsorshipMetadata extends Message<SponsorshipMetadata> {
1950
+ /**
1951
+ * @generated from field: string name = 1;
1952
+ */
1953
+ name: string;
1954
+ /**
1955
+ * @generated from field: optional string logo_url = 2;
1956
+ */
1957
+ logoUrl?: string;
1958
+ constructor(data?: PartialMessage<SponsorshipMetadata>);
1959
+ static readonly runtime: typeof proto3;
1960
+ static readonly typeName = "data.v1.SponsorshipMetadata";
1961
+ static readonly fields: FieldList;
1962
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorshipMetadata;
1963
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorshipMetadata;
1964
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorshipMetadata;
1965
+ static equals(a: SponsorshipMetadata | PlainMessage<SponsorshipMetadata> | undefined, b: SponsorshipMetadata | PlainMessage<SponsorshipMetadata> | undefined): boolean;
1966
+ }
1938
1967
  /**
1939
1968
  * @generated from message data.v1.WalletProfitLoss
1940
1969
  */
@@ -1693,6 +1693,7 @@ OnChainTransaction.fields = proto3.util.newFieldList(() => [
1693
1693
  { no: 11, name: "protocol", kind: "message", T: ProtocolMetadata, opt: true },
1694
1694
  { no: 12, name: "fee", kind: "message", T: TransactionFee },
1695
1695
  { no: 13, name: "paymaster", kind: "message", T: Paymaster, opt: true },
1696
+ { no: 14, name: "sponsorship", kind: "message", T: SponsorshipMetadata, opt: true },
1696
1697
  ]);
1697
1698
  /**
1698
1699
  * @generated from message data.v1.Transfer
@@ -2406,6 +2407,41 @@ Paymaster.fields = proto3.util.newFieldList(() => [
2406
2407
  { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2407
2408
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2408
2409
  ]);
2410
+ /**
2411
+ * Sponsor identity for a gas-sponsored transaction, resolved from the
2412
+ * internal Sponsorship service (platform-service). Complements Paymaster,
2413
+ * which only carries the on-chain paymaster contract address.
2414
+ *
2415
+ * @generated from message data.v1.SponsorshipMetadata
2416
+ */
2417
+ export class SponsorshipMetadata extends Message {
2418
+ constructor(data) {
2419
+ super();
2420
+ /**
2421
+ * @generated from field: string name = 1;
2422
+ */
2423
+ this.name = "";
2424
+ proto3.util.initPartial(data, this);
2425
+ }
2426
+ static fromBinary(bytes, options) {
2427
+ return new SponsorshipMetadata().fromBinary(bytes, options);
2428
+ }
2429
+ static fromJson(jsonValue, options) {
2430
+ return new SponsorshipMetadata().fromJson(jsonValue, options);
2431
+ }
2432
+ static fromJsonString(jsonString, options) {
2433
+ return new SponsorshipMetadata().fromJsonString(jsonString, options);
2434
+ }
2435
+ static equals(a, b) {
2436
+ return proto3.util.equals(SponsorshipMetadata, a, b);
2437
+ }
2438
+ }
2439
+ SponsorshipMetadata.runtime = proto3;
2440
+ SponsorshipMetadata.typeName = "data.v1.SponsorshipMetadata";
2441
+ SponsorshipMetadata.fields = proto3.util.newFieldList(() => [
2442
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2443
+ { no: 2, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2444
+ ]);
2409
2445
  /**
2410
2446
  * @generated from message data.v1.WalletProfitLoss
2411
2447
  */
@@ -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.107",
3
+ "version": "0.0.109",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },