@uniswap/client-data-api 0.0.96 → 0.0.98

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.
@@ -1917,6 +1917,12 @@ export declare class Rwa extends Message<Rwa> {
1917
1917
  * @generated from field: string name = 4;
1918
1918
  */
1919
1919
  name: string;
1920
+ /**
1921
+ * @generated from field: map<string, data.v1.IssuerData> issuer_data = 5;
1922
+ */
1923
+ issuerData: {
1924
+ [key: string]: IssuerData;
1925
+ };
1920
1926
  constructor(data?: PartialMessage<Rwa>);
1921
1927
  static readonly runtime: typeof proto3;
1922
1928
  static readonly typeName = "data.v1.Rwa";
@@ -1951,6 +1957,31 @@ export declare class IssuerToken extends Message<IssuerToken> {
1951
1957
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IssuerToken;
1952
1958
  static equals(a: IssuerToken | PlainMessage<IssuerToken> | undefined, b: IssuerToken | PlainMessage<IssuerToken> | undefined): boolean;
1953
1959
  }
1960
+ /**
1961
+ * @generated from message data.v1.IssuerData
1962
+ */
1963
+ export declare class IssuerData extends Message<IssuerData> {
1964
+ /**
1965
+ * @generated from field: string name = 1;
1966
+ */
1967
+ name: string;
1968
+ /**
1969
+ * @generated from field: string symbol = 2;
1970
+ */
1971
+ symbol: string;
1972
+ /**
1973
+ * @generated from field: string logo_url = 3;
1974
+ */
1975
+ logoUrl: string;
1976
+ constructor(data?: PartialMessage<IssuerData>);
1977
+ static readonly runtime: typeof proto3;
1978
+ static readonly typeName = "data.v1.IssuerData";
1979
+ static readonly fields: FieldList;
1980
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IssuerData;
1981
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IssuerData;
1982
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IssuerData;
1983
+ static equals(a: IssuerData | PlainMessage<IssuerData> | undefined, b: IssuerData | PlainMessage<IssuerData> | undefined): boolean;
1984
+ }
1954
1985
  /**
1955
1986
  * @generated from message data.v1.ListRankedRwasRequest
1956
1987
  */
@@ -2565,6 +2565,10 @@ export class Rwa extends Message {
2565
2565
  * @generated from field: string name = 4;
2566
2566
  */
2567
2567
  this.name = "";
2568
+ /**
2569
+ * @generated from field: map<string, data.v1.IssuerData> issuer_data = 5;
2570
+ */
2571
+ this.issuerData = {};
2568
2572
  proto3.util.initPartial(data, this);
2569
2573
  }
2570
2574
  static fromBinary(bytes, options) {
@@ -2587,6 +2591,7 @@ Rwa.fields = proto3.util.newFieldList(() => [
2587
2591
  { no: 2, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2588
2592
  { no: 3, name: "issuer_tokens", kind: "message", T: IssuerToken, repeated: true },
2589
2593
  { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2594
+ { no: 5, name: "issuer_data", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: IssuerData } },
2590
2595
  ]);
2591
2596
  /**
2592
2597
  * @generated from message data.v1.IssuerToken
@@ -2628,6 +2633,46 @@ IssuerToken.fields = proto3.util.newFieldList(() => [
2628
2633
  { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2629
2634
  { no: 3, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2630
2635
  ]);
2636
+ /**
2637
+ * @generated from message data.v1.IssuerData
2638
+ */
2639
+ export class IssuerData extends Message {
2640
+ constructor(data) {
2641
+ super();
2642
+ /**
2643
+ * @generated from field: string name = 1;
2644
+ */
2645
+ this.name = "";
2646
+ /**
2647
+ * @generated from field: string symbol = 2;
2648
+ */
2649
+ this.symbol = "";
2650
+ /**
2651
+ * @generated from field: string logo_url = 3;
2652
+ */
2653
+ this.logoUrl = "";
2654
+ proto3.util.initPartial(data, this);
2655
+ }
2656
+ static fromBinary(bytes, options) {
2657
+ return new IssuerData().fromBinary(bytes, options);
2658
+ }
2659
+ static fromJson(jsonValue, options) {
2660
+ return new IssuerData().fromJson(jsonValue, options);
2661
+ }
2662
+ static fromJsonString(jsonString, options) {
2663
+ return new IssuerData().fromJsonString(jsonString, options);
2664
+ }
2665
+ static equals(a, b) {
2666
+ return proto3.util.equals(IssuerData, a, b);
2667
+ }
2668
+ }
2669
+ IssuerData.runtime = proto3;
2670
+ IssuerData.typeName = "data.v1.IssuerData";
2671
+ IssuerData.fields = proto3.util.newFieldList(() => [
2672
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2673
+ { no: 2, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2674
+ { no: 3, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2675
+ ]);
2631
2676
  /**
2632
2677
  * @generated from message data.v1.ListRankedRwasRequest
2633
2678
  */
@@ -1,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
2
+ import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v2.DataApiService.GetToken
5
5
  */
@@ -65,6 +65,19 @@ export declare const getTokenMarkets: {
65
65
  readonly typeName: "data.v2.DataApiService";
66
66
  };
67
67
  };
68
+ /**
69
+ * @generated from rpc data.v2.DataApiService.GetTokenMarketsMultiChain
70
+ */
71
+ export declare const getTokenMarketsMultiChain: {
72
+ readonly localName: "getTokenMarketsMultiChain";
73
+ readonly name: "GetTokenMarketsMultiChain";
74
+ readonly kind: MethodKind.Unary;
75
+ readonly I: typeof GetTokenMarketsMultiChainRequest;
76
+ readonly O: typeof GetTokenMarketsMultiChainResponse;
77
+ readonly service: {
78
+ readonly typeName: "data.v2.DataApiService";
79
+ };
80
+ };
68
81
  /**
69
82
  * @generated from rpc data.v2.DataApiService.ListEarnVaults
70
83
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
6
+ import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v2.DataApiService.GetToken
9
9
  */
@@ -69,6 +69,19 @@ export const getTokenMarkets = {
69
69
  typeName: "data.v2.DataApiService"
70
70
  }
71
71
  };
72
+ /**
73
+ * @generated from rpc data.v2.DataApiService.GetTokenMarketsMultiChain
74
+ */
75
+ export const getTokenMarketsMultiChain = {
76
+ localName: "getTokenMarketsMultiChain",
77
+ name: "GetTokenMarketsMultiChain",
78
+ kind: MethodKind.Unary,
79
+ I: GetTokenMarketsMultiChainRequest,
80
+ O: GetTokenMarketsMultiChainResponse,
81
+ service: {
82
+ typeName: "data.v2.DataApiService"
83
+ }
84
+ };
72
85
  /**
73
86
  * @generated from rpc data.v2.DataApiService.ListEarnVaults
74
87
  */
@@ -1,4 +1,4 @@
1
- import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
1
+ import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service data.v2.DataApiService
@@ -51,6 +51,15 @@ export declare const DataApiService: {
51
51
  readonly O: typeof GetTokenMarketsResponse;
52
52
  readonly kind: MethodKind.Unary;
53
53
  };
54
+ /**
55
+ * @generated from rpc data.v2.DataApiService.GetTokenMarketsMultiChain
56
+ */
57
+ readonly getTokenMarketsMultiChain: {
58
+ readonly name: "GetTokenMarketsMultiChain";
59
+ readonly I: typeof GetTokenMarketsMultiChainRequest;
60
+ readonly O: typeof GetTokenMarketsMultiChainResponse;
61
+ readonly kind: MethodKind.Unary;
62
+ };
54
63
  /**
55
64
  * @generated from rpc data.v2.DataApiService.ListEarnVaults
56
65
  */
@@ -2,7 +2,7 @@
2
2
  // @generated from file data/v2/api.proto (package data.v2, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
5
+ import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service data.v2.DataApiService
@@ -55,6 +55,15 @@ export const DataApiService = {
55
55
  O: GetTokenMarketsResponse,
56
56
  kind: MethodKind.Unary,
57
57
  },
58
+ /**
59
+ * @generated from rpc data.v2.DataApiService.GetTokenMarketsMultiChain
60
+ */
61
+ getTokenMarketsMultiChain: {
62
+ name: "GetTokenMarketsMultiChain",
63
+ I: GetTokenMarketsMultiChainRequest,
64
+ O: GetTokenMarketsMultiChainResponse,
65
+ kind: MethodKind.Unary,
66
+ },
58
67
  /**
59
68
  * @generated from rpc data.v2.DataApiService.ListEarnVaults
60
69
  */
@@ -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 { HistoryDuration, MultichainToken, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
3
+ import { HistoryDuration, MultichainToken, MultichainTokenMarket, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
4
4
  import { EarnPosition, EarnVault } from "./earn_pb.js";
5
5
  import { PageRequest, PageResponse } from "./common_pb.js";
6
6
  /**
@@ -47,6 +47,63 @@ export declare class GetTokenMarketsResponse extends Message<GetTokenMarketsResp
47
47
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenMarketsResponse;
48
48
  static equals(a: GetTokenMarketsResponse | PlainMessage<GetTokenMarketsResponse> | undefined, b: GetTokenMarketsResponse | PlainMessage<GetTokenMarketsResponse> | undefined): boolean;
49
49
  }
50
+ /**
51
+ * @generated from message data.v2.GetTokenMarketsMultiChainRequest
52
+ */
53
+ export declare class GetTokenMarketsMultiChainRequest extends Message<GetTokenMarketsMultiChainRequest> {
54
+ /**
55
+ * @generated from oneof data.v2.GetTokenMarketsMultiChainRequest.identifier
56
+ */
57
+ identifier: {
58
+ /**
59
+ * @generated from field: data.v2.MultichainIdList multichain_ids = 1;
60
+ */
61
+ value: MultichainIdList;
62
+ case: "multichainIds";
63
+ } | {
64
+ /**
65
+ * @generated from field: data.v2.TokenIdentifierList tokens = 2;
66
+ */
67
+ value: TokenIdentifierList;
68
+ case: "tokens";
69
+ } | {
70
+ case: undefined;
71
+ value?: undefined;
72
+ };
73
+ /**
74
+ * volume_usd window for all assets; UNSPECIFIED defaults to DAY
75
+ *
76
+ * @generated from field: data.v2.HistoryDuration duration = 3;
77
+ */
78
+ duration: HistoryDuration;
79
+ constructor(data?: PartialMessage<GetTokenMarketsMultiChainRequest>);
80
+ static readonly runtime: typeof proto3;
81
+ static readonly typeName = "data.v2.GetTokenMarketsMultiChainRequest";
82
+ static readonly fields: FieldList;
83
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenMarketsMultiChainRequest;
84
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenMarketsMultiChainRequest;
85
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenMarketsMultiChainRequest;
86
+ static equals(a: GetTokenMarketsMultiChainRequest | PlainMessage<GetTokenMarketsMultiChainRequest> | undefined, b: GetTokenMarketsMultiChainRequest | PlainMessage<GetTokenMarketsMultiChainRequest> | undefined): boolean;
87
+ }
88
+ /**
89
+ * @generated from message data.v2.GetTokenMarketsMultiChainResponse
90
+ */
91
+ export declare class GetTokenMarketsMultiChainResponse extends Message<GetTokenMarketsMultiChainResponse> {
92
+ /**
93
+ * One MultichainTokenMarket per distinct multichain identity, best-effort.
94
+ *
95
+ * @generated from field: repeated data.v2.MultichainTokenMarket markets = 1;
96
+ */
97
+ markets: MultichainTokenMarket[];
98
+ constructor(data?: PartialMessage<GetTokenMarketsMultiChainResponse>);
99
+ static readonly runtime: typeof proto3;
100
+ static readonly typeName = "data.v2.GetTokenMarketsMultiChainResponse";
101
+ static readonly fields: FieldList;
102
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenMarketsMultiChainResponse;
103
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenMarketsMultiChainResponse;
104
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenMarketsMultiChainResponse;
105
+ static equals(a: GetTokenMarketsMultiChainResponse | PlainMessage<GetTokenMarketsMultiChainResponse> | undefined, b: GetTokenMarketsMultiChainResponse | PlainMessage<GetTokenMarketsMultiChainResponse> | undefined): boolean;
106
+ }
50
107
  /**
51
108
  * @generated from message data.v2.GetTokenRequest
52
109
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
- import { HistoryDuration, MultichainToken, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
6
+ import { HistoryDuration, MultichainToken, MultichainTokenMarket, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
7
7
  import { EarnPosition, EarnVault } from "./earn_pb.js";
8
8
  import { PageRequest, PageResponse } from "./common_pb.js";
9
9
  /**
@@ -77,6 +77,76 @@ GetTokenMarketsResponse.typeName = "data.v2.GetTokenMarketsResponse";
77
77
  GetTokenMarketsResponse.fields = proto3.util.newFieldList(() => [
78
78
  { no: 1, name: "markets", kind: "message", T: TokenMarket, repeated: true },
79
79
  ]);
80
+ /**
81
+ * @generated from message data.v2.GetTokenMarketsMultiChainRequest
82
+ */
83
+ export class GetTokenMarketsMultiChainRequest extends Message {
84
+ constructor(data) {
85
+ super();
86
+ /**
87
+ * @generated from oneof data.v2.GetTokenMarketsMultiChainRequest.identifier
88
+ */
89
+ this.identifier = { case: undefined };
90
+ /**
91
+ * volume_usd window for all assets; UNSPECIFIED defaults to DAY
92
+ *
93
+ * @generated from field: data.v2.HistoryDuration duration = 3;
94
+ */
95
+ this.duration = HistoryDuration.UNSPECIFIED;
96
+ proto3.util.initPartial(data, this);
97
+ }
98
+ static fromBinary(bytes, options) {
99
+ return new GetTokenMarketsMultiChainRequest().fromBinary(bytes, options);
100
+ }
101
+ static fromJson(jsonValue, options) {
102
+ return new GetTokenMarketsMultiChainRequest().fromJson(jsonValue, options);
103
+ }
104
+ static fromJsonString(jsonString, options) {
105
+ return new GetTokenMarketsMultiChainRequest().fromJsonString(jsonString, options);
106
+ }
107
+ static equals(a, b) {
108
+ return proto3.util.equals(GetTokenMarketsMultiChainRequest, a, b);
109
+ }
110
+ }
111
+ GetTokenMarketsMultiChainRequest.runtime = proto3;
112
+ GetTokenMarketsMultiChainRequest.typeName = "data.v2.GetTokenMarketsMultiChainRequest";
113
+ GetTokenMarketsMultiChainRequest.fields = proto3.util.newFieldList(() => [
114
+ { no: 1, name: "multichain_ids", kind: "message", T: MultichainIdList, oneof: "identifier" },
115
+ { no: 2, name: "tokens", kind: "message", T: TokenIdentifierList, oneof: "identifier" },
116
+ { no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
117
+ ]);
118
+ /**
119
+ * @generated from message data.v2.GetTokenMarketsMultiChainResponse
120
+ */
121
+ export class GetTokenMarketsMultiChainResponse extends Message {
122
+ constructor(data) {
123
+ super();
124
+ /**
125
+ * One MultichainTokenMarket per distinct multichain identity, best-effort.
126
+ *
127
+ * @generated from field: repeated data.v2.MultichainTokenMarket markets = 1;
128
+ */
129
+ this.markets = [];
130
+ proto3.util.initPartial(data, this);
131
+ }
132
+ static fromBinary(bytes, options) {
133
+ return new GetTokenMarketsMultiChainResponse().fromBinary(bytes, options);
134
+ }
135
+ static fromJson(jsonValue, options) {
136
+ return new GetTokenMarketsMultiChainResponse().fromJson(jsonValue, options);
137
+ }
138
+ static fromJsonString(jsonString, options) {
139
+ return new GetTokenMarketsMultiChainResponse().fromJsonString(jsonString, options);
140
+ }
141
+ static equals(a, b) {
142
+ return proto3.util.equals(GetTokenMarketsMultiChainResponse, a, b);
143
+ }
144
+ }
145
+ GetTokenMarketsMultiChainResponse.runtime = proto3;
146
+ GetTokenMarketsMultiChainResponse.typeName = "data.v2.GetTokenMarketsMultiChainResponse";
147
+ GetTokenMarketsMultiChainResponse.fields = proto3.util.newFieldList(() => [
148
+ { no: 1, name: "markets", kind: "message", T: MultichainTokenMarket, repeated: true },
149
+ ]);
80
150
  /**
81
151
  * @generated from message data.v2.GetTokenRequest
82
152
  */
@@ -274,54 +274,77 @@ export declare class TokenPriceData extends Message<TokenPriceData> {
274
274
  }
275
275
  /**
276
276
  * Live on-chain market stats for a single token, USD-denominated.
277
+ * Live on-chain market stats, shared by the single-chain (TokenMarket) and
278
+ * multichain (MultichainTokenMarket) views. In the multichain case TVL and
279
+ * volume are summed across chains and 52-week high/low come from the canonical
280
+ * chain; in the single-chain case all values are for that one token.
277
281
  *
278
- * @generated from message data.v2.TokenMarket
282
+ * @generated from message data.v2.TokenMarketStats
279
283
  */
280
- export declare class TokenMarket extends Message<TokenMarket> {
281
- /**
282
- * @generated from field: uint32 chain_id = 1;
283
- */
284
- chainId: number;
285
- /**
286
- * @generated from field: string address = 2;
287
- */
288
- address: string;
284
+ export declare class TokenMarketStats extends Message<TokenMarketStats> {
289
285
  /**
290
- * @generated from field: optional double total_value_locked_usd = 3;
286
+ * @generated from field: optional double total_value_locked_usd = 1;
291
287
  */
292
288
  totalValueLockedUsd?: number;
293
289
  /**
294
290
  * reserved; unset
295
291
  *
296
- * @generated from field: optional double market_cap_usd = 4;
292
+ * @generated from field: optional double market_cap_usd = 2;
297
293
  */
298
294
  marketCapUsd?: number;
299
295
  /**
300
296
  * reserved; unset
301
297
  *
302
- * @generated from field: optional double fully_diluted_valuation_usd = 5;
298
+ * @generated from field: optional double fully_diluted_valuation_usd = 3;
303
299
  */
304
300
  fullyDilutedValuationUsd?: number;
305
301
  /**
306
- * @generated from field: optional double price_high_52w_usd = 6;
302
+ * @generated from field: optional double price_high_52w_usd = 4;
307
303
  */
308
304
  priceHigh52wUsd?: number;
309
305
  /**
310
- * @generated from field: optional double price_low_52w_usd = 7;
306
+ * @generated from field: optional double price_low_52w_usd = 5;
311
307
  */
312
308
  priceLow52wUsd?: number;
313
309
  /**
314
310
  * over volume_duration
315
311
  *
316
- * @generated from field: optional double volume_usd = 8;
312
+ * @generated from field: optional double volume_usd = 6;
317
313
  */
318
314
  volumeUsd?: number;
319
315
  /**
320
316
  * echoes the requested duration (UNSPECIFIED → DAY)
321
317
  *
322
- * @generated from field: data.v2.HistoryDuration volume_duration = 9;
318
+ * @generated from field: data.v2.HistoryDuration volume_duration = 7;
323
319
  */
324
320
  volumeDuration: HistoryDuration;
321
+ constructor(data?: PartialMessage<TokenMarketStats>);
322
+ static readonly runtime: typeof proto3;
323
+ static readonly typeName = "data.v2.TokenMarketStats";
324
+ static readonly fields: FieldList;
325
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenMarketStats;
326
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenMarketStats;
327
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenMarketStats;
328
+ static equals(a: TokenMarketStats | PlainMessage<TokenMarketStats> | undefined, b: TokenMarketStats | PlainMessage<TokenMarketStats> | undefined): boolean;
329
+ }
330
+ /**
331
+ * Single-chain market view of one token.
332
+ *
333
+ * @generated from message data.v2.TokenMarket
334
+ */
335
+ export declare class TokenMarket extends Message<TokenMarket> {
336
+ /**
337
+ * @generated from field: uint32 chain_id = 1;
338
+ */
339
+ chainId: number;
340
+ /**
341
+ * @generated from field: string address = 2;
342
+ */
343
+ address: string;
344
+ /**
345
+ * @generated from field: data.v2.TokenMarketStats stats = 3;
346
+ */
347
+ stats?: TokenMarketStats;
325
348
  constructor(data?: PartialMessage<TokenMarket>);
326
349
  static readonly runtime: typeof proto3;
327
350
  static readonly typeName = "data.v2.TokenMarket";
@@ -331,6 +354,31 @@ export declare class TokenMarket extends Message<TokenMarket> {
331
354
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenMarket;
332
355
  static equals(a: TokenMarket | PlainMessage<TokenMarket> | undefined, b: TokenMarket | PlainMessage<TokenMarket> | undefined): boolean;
333
356
  }
357
+ /**
358
+ * Cross-chain market view of one logical asset (a bridged token aggregated
359
+ * across the chains it lives on), keyed by multichain_id. The per-chain address
360
+ * map is available from GetTokens / GetTokensMultiChain.
361
+ *
362
+ * @generated from message data.v2.MultichainTokenMarket
363
+ */
364
+ export declare class MultichainTokenMarket extends Message<MultichainTokenMarket> {
365
+ /**
366
+ * @generated from field: string multichain_id = 1;
367
+ */
368
+ multichainId: string;
369
+ /**
370
+ * @generated from field: data.v2.TokenMarketStats stats = 2;
371
+ */
372
+ stats?: TokenMarketStats;
373
+ constructor(data?: PartialMessage<MultichainTokenMarket>);
374
+ static readonly runtime: typeof proto3;
375
+ static readonly typeName = "data.v2.MultichainTokenMarket";
376
+ static readonly fields: FieldList;
377
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MultichainTokenMarket;
378
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MultichainTokenMarket;
379
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MultichainTokenMarket;
380
+ static equals(a: MultichainTokenMarket | PlainMessage<MultichainTokenMarket> | undefined, b: MultichainTokenMarket | PlainMessage<MultichainTokenMarket> | undefined): boolean;
381
+ }
334
382
  /**
335
383
  * @generated from message data.v2.TokenSafety
336
384
  */
@@ -310,6 +310,50 @@ TokenPriceData.fields = proto3.util.newFieldList(() => [
310
310
  ]);
311
311
  /**
312
312
  * Live on-chain market stats for a single token, USD-denominated.
313
+ * Live on-chain market stats, shared by the single-chain (TokenMarket) and
314
+ * multichain (MultichainTokenMarket) views. In the multichain case TVL and
315
+ * volume are summed across chains and 52-week high/low come from the canonical
316
+ * chain; in the single-chain case all values are for that one token.
317
+ *
318
+ * @generated from message data.v2.TokenMarketStats
319
+ */
320
+ export class TokenMarketStats extends Message {
321
+ constructor(data) {
322
+ super();
323
+ /**
324
+ * echoes the requested duration (UNSPECIFIED → DAY)
325
+ *
326
+ * @generated from field: data.v2.HistoryDuration volume_duration = 7;
327
+ */
328
+ this.volumeDuration = HistoryDuration.UNSPECIFIED;
329
+ proto3.util.initPartial(data, this);
330
+ }
331
+ static fromBinary(bytes, options) {
332
+ return new TokenMarketStats().fromBinary(bytes, options);
333
+ }
334
+ static fromJson(jsonValue, options) {
335
+ return new TokenMarketStats().fromJson(jsonValue, options);
336
+ }
337
+ static fromJsonString(jsonString, options) {
338
+ return new TokenMarketStats().fromJsonString(jsonString, options);
339
+ }
340
+ static equals(a, b) {
341
+ return proto3.util.equals(TokenMarketStats, a, b);
342
+ }
343
+ }
344
+ TokenMarketStats.runtime = proto3;
345
+ TokenMarketStats.typeName = "data.v2.TokenMarketStats";
346
+ TokenMarketStats.fields = proto3.util.newFieldList(() => [
347
+ { no: 1, name: "total_value_locked_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
348
+ { no: 2, name: "market_cap_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
349
+ { no: 3, name: "fully_diluted_valuation_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
350
+ { no: 4, name: "price_high_52w_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
351
+ { no: 5, name: "price_low_52w_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
352
+ { no: 6, name: "volume_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
353
+ { no: 7, name: "volume_duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
354
+ ]);
355
+ /**
356
+ * Single-chain market view of one token.
313
357
  *
314
358
  * @generated from message data.v2.TokenMarket
315
359
  */
@@ -324,12 +368,6 @@ export class TokenMarket extends Message {
324
368
  * @generated from field: string address = 2;
325
369
  */
326
370
  this.address = "";
327
- /**
328
- * echoes the requested duration (UNSPECIFIED → DAY)
329
- *
330
- * @generated from field: data.v2.HistoryDuration volume_duration = 9;
331
- */
332
- this.volumeDuration = HistoryDuration.UNSPECIFIED;
333
371
  proto3.util.initPartial(data, this);
334
372
  }
335
373
  static fromBinary(bytes, options) {
@@ -350,13 +388,42 @@ TokenMarket.typeName = "data.v2.TokenMarket";
350
388
  TokenMarket.fields = proto3.util.newFieldList(() => [
351
389
  { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
352
390
  { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
353
- { no: 3, name: "total_value_locked_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
354
- { no: 4, name: "market_cap_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
355
- { no: 5, name: "fully_diluted_valuation_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
356
- { no: 6, name: "price_high_52w_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
357
- { no: 7, name: "price_low_52w_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
358
- { no: 8, name: "volume_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
359
- { no: 9, name: "volume_duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
391
+ { no: 3, name: "stats", kind: "message", T: TokenMarketStats },
392
+ ]);
393
+ /**
394
+ * Cross-chain market view of one logical asset (a bridged token aggregated
395
+ * across the chains it lives on), keyed by multichain_id. The per-chain address
396
+ * map is available from GetTokens / GetTokensMultiChain.
397
+ *
398
+ * @generated from message data.v2.MultichainTokenMarket
399
+ */
400
+ export class MultichainTokenMarket extends Message {
401
+ constructor(data) {
402
+ super();
403
+ /**
404
+ * @generated from field: string multichain_id = 1;
405
+ */
406
+ this.multichainId = "";
407
+ proto3.util.initPartial(data, this);
408
+ }
409
+ static fromBinary(bytes, options) {
410
+ return new MultichainTokenMarket().fromBinary(bytes, options);
411
+ }
412
+ static fromJson(jsonValue, options) {
413
+ return new MultichainTokenMarket().fromJson(jsonValue, options);
414
+ }
415
+ static fromJsonString(jsonString, options) {
416
+ return new MultichainTokenMarket().fromJsonString(jsonString, options);
417
+ }
418
+ static equals(a, b) {
419
+ return proto3.util.equals(MultichainTokenMarket, a, b);
420
+ }
421
+ }
422
+ MultichainTokenMarket.runtime = proto3;
423
+ MultichainTokenMarket.typeName = "data.v2.MultichainTokenMarket";
424
+ MultichainTokenMarket.fields = proto3.util.newFieldList(() => [
425
+ { no: 1, name: "multichain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
426
+ { no: 2, name: "stats", kind: "message", T: TokenMarketStats },
360
427
  ]);
361
428
  /**
362
429
  * @generated from message data.v2.TokenSafety
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.96",
3
+ "version": "0.0.98",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },