@uniswap/client-data-api 0.0.90 → 0.0.92

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, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, 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, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v1.DataApiService.CreatePendingTokenFactoryToken
5
5
  */
@@ -352,14 +352,14 @@ export declare const listRwas: {
352
352
  };
353
353
  };
354
354
  /**
355
- * @generated from rpc data.v1.DataApiService.ListRwaTokens
355
+ * @generated from rpc data.v1.DataApiService.ListRankedRwas
356
356
  */
357
- export declare const listRwaTokens: {
358
- readonly localName: "listRwaTokens";
359
- readonly name: "ListRwaTokens";
357
+ export declare const listRankedRwas: {
358
+ readonly localName: "listRankedRwas";
359
+ readonly name: "ListRankedRwas";
360
360
  readonly kind: MethodKind.Unary;
361
- readonly I: typeof ListRwaTokensRequest;
362
- readonly O: typeof ListRwaTokensResponse;
361
+ readonly I: typeof ListRankedRwasRequest;
362
+ readonly O: typeof ListRankedRwasResponse;
363
363
  readonly service: {
364
364
  readonly typeName: "data.v1.DataApiService";
365
365
  };
@@ -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, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, 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, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, SubmitReportRequest, SubmitReportResponse, SubmitTokenFactoryTokenRequest, SubmitTokenFactoryTokenResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v1.DataApiService.CreatePendingTokenFactoryToken
9
9
  */
@@ -356,14 +356,14 @@ export const listRwas = {
356
356
  }
357
357
  };
358
358
  /**
359
- * @generated from rpc data.v1.DataApiService.ListRwaTokens
359
+ * @generated from rpc data.v1.DataApiService.ListRankedRwas
360
360
  */
361
- export const listRwaTokens = {
362
- localName: "listRwaTokens",
363
- name: "ListRwaTokens",
361
+ export const listRankedRwas = {
362
+ localName: "listRankedRwas",
363
+ name: "ListRankedRwas",
364
364
  kind: MethodKind.Unary,
365
- I: ListRwaTokensRequest,
366
- O: ListRwaTokensResponse,
365
+ I: ListRankedRwasRequest,
366
+ O: ListRankedRwasResponse,
367
367
  service: {
368
368
  typeName: "data.v1.DataApiService"
369
369
  }
@@ -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, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, 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, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, 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
@@ -250,12 +250,12 @@ export declare const DataApiService: {
250
250
  readonly kind: MethodKind.Unary;
251
251
  };
252
252
  /**
253
- * @generated from rpc data.v1.DataApiService.ListRwaTokens
253
+ * @generated from rpc data.v1.DataApiService.ListRankedRwas
254
254
  */
255
- readonly listRwaTokens: {
256
- readonly name: "ListRwaTokens";
257
- readonly I: typeof ListRwaTokensRequest;
258
- readonly O: typeof ListRwaTokensResponse;
255
+ readonly listRankedRwas: {
256
+ readonly name: "ListRankedRwas";
257
+ readonly I: typeof ListRankedRwasRequest;
258
+ readonly O: typeof ListRankedRwasResponse;
259
259
  readonly kind: MethodKind.Unary;
260
260
  };
261
261
  };
@@ -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, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, 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, GetWalletBalancesRequest, GetWalletBalancesResponse, GetWalletProfitLossRequest, GetWalletProfitLossResponse, GetWalletsBalancesRequest, GetWalletsBalancesResponse, GetWalletTokenProfitLossRequest, GetWalletTokenProfitLossResponse, GetWalletTokensProfitLossRequest, GetWalletTokensProfitLossResponse, ListPoolsRequest, ListPoolsResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListPositionsRequest, ListPositionsResponse, ListRankedRwasRequest, ListRankedRwasResponse, ListRwasRequest, ListRwasResponse, ListTokensRequest, ListTokensResponse, ListTopPoolsRequest, ListTopPoolsResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitDataReportRequest, SubmitDataReportResponse, 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
@@ -254,12 +254,12 @@ export const DataApiService = {
254
254
  kind: MethodKind.Unary,
255
255
  },
256
256
  /**
257
- * @generated from rpc data.v1.DataApiService.ListRwaTokens
257
+ * @generated from rpc data.v1.DataApiService.ListRankedRwas
258
258
  */
259
- listRwaTokens: {
260
- name: "ListRwaTokens",
261
- I: ListRwaTokensRequest,
262
- O: ListRwaTokensResponse,
259
+ listRankedRwas: {
260
+ name: "ListRankedRwas",
261
+ I: ListRankedRwasRequest,
262
+ O: ListRankedRwasResponse,
263
263
  kind: MethodKind.Unary,
264
264
  },
265
265
  }
@@ -1904,9 +1904,9 @@ export declare class IssuerToken extends Message<IssuerToken> {
1904
1904
  static equals(a: IssuerToken | PlainMessage<IssuerToken> | undefined, b: IssuerToken | PlainMessage<IssuerToken> | undefined): boolean;
1905
1905
  }
1906
1906
  /**
1907
- * @generated from message data.v1.ListRwaTokensRequest
1907
+ * @generated from message data.v1.ListRankedRwasRequest
1908
1908
  */
1909
- export declare class ListRwaTokensRequest extends Message<ListRwaTokensRequest> {
1909
+ export declare class ListRankedRwasRequest extends Message<ListRankedRwasRequest> {
1910
1910
  /**
1911
1911
  * @generated from field: data.v1.RwaCategory category = 1;
1912
1912
  */
@@ -1917,36 +1917,99 @@ export declare class ListRwaTokensRequest extends Message<ListRwaTokensRequest>
1917
1917
  * @generated from field: repeated uint32 chain_ids = 2;
1918
1918
  */
1919
1919
  chainIds: number[];
1920
- constructor(data?: PartialMessage<ListRwaTokensRequest>);
1920
+ /**
1921
+ * Opt-in; sparkline_1d is empty at all levels when false/unset.
1922
+ *
1923
+ * @generated from field: bool include_sparkline_1d = 3;
1924
+ */
1925
+ includeSparkline1d: boolean;
1926
+ constructor(data?: PartialMessage<ListRankedRwasRequest>);
1921
1927
  static readonly runtime: typeof proto3;
1922
- static readonly typeName = "data.v1.ListRwaTokensRequest";
1928
+ static readonly typeName = "data.v1.ListRankedRwasRequest";
1923
1929
  static readonly fields: FieldList;
1924
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRwaTokensRequest;
1925
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRwaTokensRequest;
1926
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRwaTokensRequest;
1927
- static equals(a: ListRwaTokensRequest | PlainMessage<ListRwaTokensRequest> | undefined, b: ListRwaTokensRequest | PlainMessage<ListRwaTokensRequest> | undefined): boolean;
1930
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRankedRwasRequest;
1931
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRankedRwasRequest;
1932
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRankedRwasRequest;
1933
+ static equals(a: ListRankedRwasRequest | PlainMessage<ListRankedRwasRequest> | undefined, b: ListRankedRwasRequest | PlainMessage<ListRankedRwasRequest> | undefined): boolean;
1928
1934
  }
1929
1935
  /**
1930
- * @generated from message data.v1.ListRwaTokensResponse
1936
+ * @generated from message data.v1.ListRankedRwasResponse
1931
1937
  */
1932
- export declare class ListRwaTokensResponse extends Message<ListRwaTokensResponse> {
1938
+ export declare class ListRankedRwasResponse extends Message<ListRankedRwasResponse> {
1939
+ /**
1940
+ * @generated from field: repeated data.v1.RankedRwa rwas = 1;
1941
+ */
1942
+ rwas: RankedRwa[];
1943
+ constructor(data?: PartialMessage<ListRankedRwasResponse>);
1944
+ static readonly runtime: typeof proto3;
1945
+ static readonly typeName = "data.v1.ListRankedRwasResponse";
1946
+ static readonly fields: FieldList;
1947
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRankedRwasResponse;
1948
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRankedRwasResponse;
1949
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRankedRwasResponse;
1950
+ static equals(a: ListRankedRwasResponse | PlainMessage<ListRankedRwasResponse> | undefined, b: ListRankedRwasResponse | PlainMessage<ListRankedRwasResponse> | undefined): boolean;
1951
+ }
1952
+ /**
1953
+ * @generated from message data.v1.RankedRwa
1954
+ */
1955
+ export declare class RankedRwa extends Message<RankedRwa> {
1956
+ /**
1957
+ * @generated from field: string symbol = 1;
1958
+ */
1959
+ symbol: string;
1960
+ /**
1961
+ * @generated from field: string name = 2;
1962
+ */
1963
+ name: string;
1964
+ /**
1965
+ * @generated from field: string logo_url = 3;
1966
+ */
1967
+ logoUrl: string;
1968
+ /**
1969
+ * @generated from field: double price_usd = 4;
1970
+ */
1971
+ priceUsd: number;
1933
1972
  /**
1934
- * @generated from field: repeated data.v1.RwaToken tokens = 1;
1973
+ * @generated from field: double volume_24h_usd = 5;
1935
1974
  */
1936
- tokens: RwaToken[];
1937
- constructor(data?: PartialMessage<ListRwaTokensResponse>);
1975
+ volume24hUsd: number;
1976
+ /**
1977
+ * @generated from field: optional double market_cap_usd = 6;
1978
+ */
1979
+ marketCapUsd?: number;
1980
+ /**
1981
+ * @generated from field: optional double fdv_usd = 7;
1982
+ */
1983
+ fdvUsd?: number;
1984
+ /**
1985
+ * @generated from field: optional double price_change_1h_pct = 8;
1986
+ */
1987
+ priceChange1hPct?: number;
1988
+ /**
1989
+ * @generated from field: optional double price_change_24h_pct = 9;
1990
+ */
1991
+ priceChange24hPct?: number;
1992
+ /**
1993
+ * @generated from field: optional data.v1.RwaSparkline sparkline_1d = 10;
1994
+ */
1995
+ sparkline1d?: RwaSparkline;
1996
+ /**
1997
+ * @generated from field: repeated data.v1.IssuerMultichainToken issuer_tokens = 11;
1998
+ */
1999
+ issuerTokens: IssuerMultichainToken[];
2000
+ constructor(data?: PartialMessage<RankedRwa>);
1938
2001
  static readonly runtime: typeof proto3;
1939
- static readonly typeName = "data.v1.ListRwaTokensResponse";
2002
+ static readonly typeName = "data.v1.RankedRwa";
1940
2003
  static readonly fields: FieldList;
1941
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListRwaTokensResponse;
1942
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListRwaTokensResponse;
1943
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListRwaTokensResponse;
1944
- static equals(a: ListRwaTokensResponse | PlainMessage<ListRwaTokensResponse> | undefined, b: ListRwaTokensResponse | PlainMessage<ListRwaTokensResponse> | undefined): boolean;
2004
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RankedRwa;
2005
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RankedRwa;
2006
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RankedRwa;
2007
+ static equals(a: RankedRwa | PlainMessage<RankedRwa> | undefined, b: RankedRwa | PlainMessage<RankedRwa> | undefined): boolean;
1945
2008
  }
1946
2009
  /**
1947
- * @generated from message data.v1.RwaToken
2010
+ * @generated from message data.v1.IssuerMultichainToken
1948
2011
  */
1949
- export declare class RwaToken extends Message<RwaToken> {
2012
+ export declare class IssuerMultichainToken extends Message<IssuerMultichainToken> {
1950
2013
  /**
1951
2014
  * @generated from field: string symbol = 1;
1952
2015
  */
@@ -1972,33 +2035,37 @@ export declare class RwaToken extends Message<RwaToken> {
1972
2035
  */
1973
2036
  volume24hUsd: number;
1974
2037
  /**
1975
- * @generated from field: optional double fdv_usd = 7;
2038
+ * @generated from field: optional double market_cap_usd = 7;
2039
+ */
2040
+ marketCapUsd?: number;
2041
+ /**
2042
+ * @generated from field: optional double fdv_usd = 8;
1976
2043
  */
1977
2044
  fdvUsd?: number;
1978
2045
  /**
1979
- * @generated from field: optional double price_change_1h_pct = 8;
2046
+ * @generated from field: optional double price_change_1h_pct = 9;
1980
2047
  */
1981
2048
  priceChange1hPct?: number;
1982
2049
  /**
1983
- * @generated from field: optional double price_change_24h_pct = 9;
2050
+ * @generated from field: optional double price_change_24h_pct = 10;
1984
2051
  */
1985
2052
  priceChange24hPct?: number;
1986
2053
  /**
1987
- * @generated from field: data.v1.RwaSparkline sparkline_1d = 10;
2054
+ * @generated from field: optional data.v1.RwaSparkline sparkline_1d = 11;
1988
2055
  */
1989
2056
  sparkline1d?: RwaSparkline;
1990
2057
  /**
1991
- * @generated from field: repeated data.v1.RwaChainToken chain_tokens = 11;
2058
+ * @generated from field: repeated data.v1.RwaChainToken chain_tokens = 12;
1992
2059
  */
1993
2060
  chainTokens: RwaChainToken[];
1994
- constructor(data?: PartialMessage<RwaToken>);
2061
+ constructor(data?: PartialMessage<IssuerMultichainToken>);
1995
2062
  static readonly runtime: typeof proto3;
1996
- static readonly typeName = "data.v1.RwaToken";
2063
+ static readonly typeName = "data.v1.IssuerMultichainToken";
1997
2064
  static readonly fields: FieldList;
1998
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RwaToken;
1999
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RwaToken;
2000
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RwaToken;
2001
- static equals(a: RwaToken | PlainMessage<RwaToken> | undefined, b: RwaToken | PlainMessage<RwaToken> | undefined): boolean;
2065
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IssuerMultichainToken;
2066
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IssuerMultichainToken;
2067
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IssuerMultichainToken;
2068
+ static equals(a: IssuerMultichainToken | PlainMessage<IssuerMultichainToken> | undefined, b: IssuerMultichainToken | PlainMessage<IssuerMultichainToken> | undefined): boolean;
2002
2069
  }
2003
2070
  /**
2004
2071
  * @generated from message data.v1.RwaChainToken
@@ -2587,9 +2587,9 @@ IssuerToken.fields = proto3.util.newFieldList(() => [
2587
2587
  { no: 3, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2588
2588
  ]);
2589
2589
  /**
2590
- * @generated from message data.v1.ListRwaTokensRequest
2590
+ * @generated from message data.v1.ListRankedRwasRequest
2591
2591
  */
2592
- export class ListRwaTokensRequest extends Message {
2592
+ export class ListRankedRwasRequest extends Message {
2593
2593
  constructor(data) {
2594
2594
  super();
2595
2595
  /**
@@ -2602,61 +2602,128 @@ export class ListRwaTokensRequest extends Message {
2602
2602
  * @generated from field: repeated uint32 chain_ids = 2;
2603
2603
  */
2604
2604
  this.chainIds = [];
2605
+ /**
2606
+ * Opt-in; sparkline_1d is empty at all levels when false/unset.
2607
+ *
2608
+ * @generated from field: bool include_sparkline_1d = 3;
2609
+ */
2610
+ this.includeSparkline1d = false;
2605
2611
  proto3.util.initPartial(data, this);
2606
2612
  }
2607
2613
  static fromBinary(bytes, options) {
2608
- return new ListRwaTokensRequest().fromBinary(bytes, options);
2614
+ return new ListRankedRwasRequest().fromBinary(bytes, options);
2609
2615
  }
2610
2616
  static fromJson(jsonValue, options) {
2611
- return new ListRwaTokensRequest().fromJson(jsonValue, options);
2617
+ return new ListRankedRwasRequest().fromJson(jsonValue, options);
2612
2618
  }
2613
2619
  static fromJsonString(jsonString, options) {
2614
- return new ListRwaTokensRequest().fromJsonString(jsonString, options);
2620
+ return new ListRankedRwasRequest().fromJsonString(jsonString, options);
2615
2621
  }
2616
2622
  static equals(a, b) {
2617
- return proto3.util.equals(ListRwaTokensRequest, a, b);
2623
+ return proto3.util.equals(ListRankedRwasRequest, a, b);
2618
2624
  }
2619
2625
  }
2620
- ListRwaTokensRequest.runtime = proto3;
2621
- ListRwaTokensRequest.typeName = "data.v1.ListRwaTokensRequest";
2622
- ListRwaTokensRequest.fields = proto3.util.newFieldList(() => [
2626
+ ListRankedRwasRequest.runtime = proto3;
2627
+ ListRankedRwasRequest.typeName = "data.v1.ListRankedRwasRequest";
2628
+ ListRankedRwasRequest.fields = proto3.util.newFieldList(() => [
2623
2629
  { no: 1, name: "category", kind: "enum", T: proto3.getEnumType(RwaCategory) },
2624
2630
  { no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
2631
+ { no: 3, name: "include_sparkline_1d", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2625
2632
  ]);
2626
2633
  /**
2627
- * @generated from message data.v1.ListRwaTokensResponse
2634
+ * @generated from message data.v1.ListRankedRwasResponse
2628
2635
  */
2629
- export class ListRwaTokensResponse extends Message {
2636
+ export class ListRankedRwasResponse extends Message {
2630
2637
  constructor(data) {
2631
2638
  super();
2632
2639
  /**
2633
- * @generated from field: repeated data.v1.RwaToken tokens = 1;
2640
+ * @generated from field: repeated data.v1.RankedRwa rwas = 1;
2634
2641
  */
2635
- this.tokens = [];
2642
+ this.rwas = [];
2636
2643
  proto3.util.initPartial(data, this);
2637
2644
  }
2638
2645
  static fromBinary(bytes, options) {
2639
- return new ListRwaTokensResponse().fromBinary(bytes, options);
2646
+ return new ListRankedRwasResponse().fromBinary(bytes, options);
2640
2647
  }
2641
2648
  static fromJson(jsonValue, options) {
2642
- return new ListRwaTokensResponse().fromJson(jsonValue, options);
2649
+ return new ListRankedRwasResponse().fromJson(jsonValue, options);
2643
2650
  }
2644
2651
  static fromJsonString(jsonString, options) {
2645
- return new ListRwaTokensResponse().fromJsonString(jsonString, options);
2652
+ return new ListRankedRwasResponse().fromJsonString(jsonString, options);
2646
2653
  }
2647
2654
  static equals(a, b) {
2648
- return proto3.util.equals(ListRwaTokensResponse, a, b);
2655
+ return proto3.util.equals(ListRankedRwasResponse, a, b);
2649
2656
  }
2650
2657
  }
2651
- ListRwaTokensResponse.runtime = proto3;
2652
- ListRwaTokensResponse.typeName = "data.v1.ListRwaTokensResponse";
2653
- ListRwaTokensResponse.fields = proto3.util.newFieldList(() => [
2654
- { no: 1, name: "tokens", kind: "message", T: RwaToken, repeated: true },
2658
+ ListRankedRwasResponse.runtime = proto3;
2659
+ ListRankedRwasResponse.typeName = "data.v1.ListRankedRwasResponse";
2660
+ ListRankedRwasResponse.fields = proto3.util.newFieldList(() => [
2661
+ { no: 1, name: "rwas", kind: "message", T: RankedRwa, repeated: true },
2655
2662
  ]);
2656
2663
  /**
2657
- * @generated from message data.v1.RwaToken
2664
+ * @generated from message data.v1.RankedRwa
2658
2665
  */
2659
- export class RwaToken extends Message {
2666
+ export class RankedRwa extends Message {
2667
+ constructor(data) {
2668
+ super();
2669
+ /**
2670
+ * @generated from field: string symbol = 1;
2671
+ */
2672
+ this.symbol = "";
2673
+ /**
2674
+ * @generated from field: string name = 2;
2675
+ */
2676
+ this.name = "";
2677
+ /**
2678
+ * @generated from field: string logo_url = 3;
2679
+ */
2680
+ this.logoUrl = "";
2681
+ /**
2682
+ * @generated from field: double price_usd = 4;
2683
+ */
2684
+ this.priceUsd = 0;
2685
+ /**
2686
+ * @generated from field: double volume_24h_usd = 5;
2687
+ */
2688
+ this.volume24hUsd = 0;
2689
+ /**
2690
+ * @generated from field: repeated data.v1.IssuerMultichainToken issuer_tokens = 11;
2691
+ */
2692
+ this.issuerTokens = [];
2693
+ proto3.util.initPartial(data, this);
2694
+ }
2695
+ static fromBinary(bytes, options) {
2696
+ return new RankedRwa().fromBinary(bytes, options);
2697
+ }
2698
+ static fromJson(jsonValue, options) {
2699
+ return new RankedRwa().fromJson(jsonValue, options);
2700
+ }
2701
+ static fromJsonString(jsonString, options) {
2702
+ return new RankedRwa().fromJsonString(jsonString, options);
2703
+ }
2704
+ static equals(a, b) {
2705
+ return proto3.util.equals(RankedRwa, a, b);
2706
+ }
2707
+ }
2708
+ RankedRwa.runtime = proto3;
2709
+ RankedRwa.typeName = "data.v1.RankedRwa";
2710
+ RankedRwa.fields = proto3.util.newFieldList(() => [
2711
+ { no: 1, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2712
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2713
+ { no: 3, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2714
+ { no: 4, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2715
+ { no: 5, name: "volume_24h_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2716
+ { no: 6, name: "market_cap_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
2717
+ { no: 7, name: "fdv_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
2718
+ { no: 8, name: "price_change_1h_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
2719
+ { no: 9, name: "price_change_24h_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
2720
+ { no: 10, name: "sparkline_1d", kind: "message", T: RwaSparkline, opt: true },
2721
+ { no: 11, name: "issuer_tokens", kind: "message", T: IssuerMultichainToken, repeated: true },
2722
+ ]);
2723
+ /**
2724
+ * @generated from message data.v1.IssuerMultichainToken
2725
+ */
2726
+ export class IssuerMultichainToken extends Message {
2660
2727
  constructor(data) {
2661
2728
  super();
2662
2729
  /**
@@ -2684,38 +2751,39 @@ export class RwaToken extends Message {
2684
2751
  */
2685
2752
  this.volume24hUsd = 0;
2686
2753
  /**
2687
- * @generated from field: repeated data.v1.RwaChainToken chain_tokens = 11;
2754
+ * @generated from field: repeated data.v1.RwaChainToken chain_tokens = 12;
2688
2755
  */
2689
2756
  this.chainTokens = [];
2690
2757
  proto3.util.initPartial(data, this);
2691
2758
  }
2692
2759
  static fromBinary(bytes, options) {
2693
- return new RwaToken().fromBinary(bytes, options);
2760
+ return new IssuerMultichainToken().fromBinary(bytes, options);
2694
2761
  }
2695
2762
  static fromJson(jsonValue, options) {
2696
- return new RwaToken().fromJson(jsonValue, options);
2763
+ return new IssuerMultichainToken().fromJson(jsonValue, options);
2697
2764
  }
2698
2765
  static fromJsonString(jsonString, options) {
2699
- return new RwaToken().fromJsonString(jsonString, options);
2766
+ return new IssuerMultichainToken().fromJsonString(jsonString, options);
2700
2767
  }
2701
2768
  static equals(a, b) {
2702
- return proto3.util.equals(RwaToken, a, b);
2769
+ return proto3.util.equals(IssuerMultichainToken, a, b);
2703
2770
  }
2704
2771
  }
2705
- RwaToken.runtime = proto3;
2706
- RwaToken.typeName = "data.v1.RwaToken";
2707
- RwaToken.fields = proto3.util.newFieldList(() => [
2772
+ IssuerMultichainToken.runtime = proto3;
2773
+ IssuerMultichainToken.typeName = "data.v1.IssuerMultichainToken";
2774
+ IssuerMultichainToken.fields = proto3.util.newFieldList(() => [
2708
2775
  { no: 1, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2709
2776
  { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2710
2777
  { no: 3, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2711
2778
  { no: 4, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2712
2779
  { no: 5, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2713
2780
  { no: 6, name: "volume_24h_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2714
- { no: 7, name: "fdv_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
2715
- { no: 8, name: "price_change_1h_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
2716
- { no: 9, name: "price_change_24h_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
2717
- { no: 10, name: "sparkline_1d", kind: "message", T: RwaSparkline },
2718
- { no: 11, name: "chain_tokens", kind: "message", T: RwaChainToken, repeated: true },
2781
+ { no: 7, name: "market_cap_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
2782
+ { no: 8, name: "fdv_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
2783
+ { no: 9, name: "price_change_1h_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
2784
+ { no: 10, name: "price_change_24h_pct", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
2785
+ { no: 11, name: "sparkline_1d", kind: "message", T: RwaSparkline, opt: true },
2786
+ { no: 12, name: "chain_tokens", kind: "message", T: RwaChainToken, repeated: true },
2719
2787
  ]);
2720
2788
  /**
2721
2789
  * @generated from message data.v1.RwaChainToken
@@ -1,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
2
+ import { GetEarnPositionRequest, GetEarnPositionResponse, 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
  */
@@ -52,6 +52,19 @@ export declare const listTokens: {
52
52
  readonly typeName: "data.v2.DataApiService";
53
53
  };
54
54
  };
55
+ /**
56
+ * @generated from rpc data.v2.DataApiService.GetTokenMarkets
57
+ */
58
+ export declare const getTokenMarkets: {
59
+ readonly localName: "getTokenMarkets";
60
+ readonly name: "GetTokenMarkets";
61
+ readonly kind: MethodKind.Unary;
62
+ readonly I: typeof GetTokenMarketsRequest;
63
+ readonly O: typeof GetTokenMarketsResponse;
64
+ readonly service: {
65
+ readonly typeName: "data.v2.DataApiService";
66
+ };
67
+ };
55
68
  /**
56
69
  * @generated from rpc data.v2.DataApiService.ListEarnVaults
57
70
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
6
+ import { GetEarnPositionRequest, GetEarnPositionResponse, 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
  */
@@ -56,6 +56,19 @@ export const listTokens = {
56
56
  typeName: "data.v2.DataApiService"
57
57
  }
58
58
  };
59
+ /**
60
+ * @generated from rpc data.v2.DataApiService.GetTokenMarkets
61
+ */
62
+ export const getTokenMarkets = {
63
+ localName: "getTokenMarkets",
64
+ name: "GetTokenMarkets",
65
+ kind: MethodKind.Unary,
66
+ I: GetTokenMarketsRequest,
67
+ O: GetTokenMarketsResponse,
68
+ service: {
69
+ typeName: "data.v2.DataApiService"
70
+ }
71
+ };
59
72
  /**
60
73
  * @generated from rpc data.v2.DataApiService.ListEarnVaults
61
74
  */
@@ -1,4 +1,4 @@
1
- import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
1
+ import { GetEarnPositionRequest, GetEarnPositionResponse, 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
@@ -42,6 +42,15 @@ export declare const DataApiService: {
42
42
  readonly O: typeof ListTokensResponse;
43
43
  readonly kind: MethodKind.Unary;
44
44
  };
45
+ /**
46
+ * @generated from rpc data.v2.DataApiService.GetTokenMarkets
47
+ */
48
+ readonly getTokenMarkets: {
49
+ readonly name: "GetTokenMarkets";
50
+ readonly I: typeof GetTokenMarketsRequest;
51
+ readonly O: typeof GetTokenMarketsResponse;
52
+ readonly kind: MethodKind.Unary;
53
+ };
45
54
  /**
46
55
  * @generated from rpc data.v2.DataApiService.ListEarnVaults
47
56
  */
@@ -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, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
5
+ import { GetEarnPositionRequest, GetEarnPositionResponse, 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
@@ -46,6 +46,15 @@ export const DataApiService = {
46
46
  O: ListTokensResponse,
47
47
  kind: MethodKind.Unary,
48
48
  },
49
+ /**
50
+ * @generated from rpc data.v2.DataApiService.GetTokenMarkets
51
+ */
52
+ getTokenMarkets: {
53
+ name: "GetTokenMarkets",
54
+ I: GetTokenMarketsRequest,
55
+ O: GetTokenMarketsResponse,
56
+ kind: MethodKind.Unary,
57
+ },
49
58
  /**
50
59
  * @generated from rpc data.v2.DataApiService.ListEarnVaults
51
60
  */
@@ -1,8 +1,52 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { MultichainToken, RankedMultichainToken, Token, TokenListFilter, TokensSort } from "./types_pb.js";
3
+ import { HistoryDuration, MultichainToken, 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
+ /**
7
+ * @generated from message data.v2.GetTokenMarketsRequest
8
+ */
9
+ export declare class GetTokenMarketsRequest extends Message<GetTokenMarketsRequest> {
10
+ /**
11
+ * max 100
12
+ *
13
+ * @generated from field: repeated data.v2.TokenIdentifier tokens = 1;
14
+ */
15
+ tokens: TokenIdentifier[];
16
+ /**
17
+ * volume_usd window for all tokens; UNSPECIFIED defaults to DAY
18
+ *
19
+ * @generated from field: data.v2.HistoryDuration duration = 2;
20
+ */
21
+ duration: HistoryDuration;
22
+ constructor(data?: PartialMessage<GetTokenMarketsRequest>);
23
+ static readonly runtime: typeof proto3;
24
+ static readonly typeName = "data.v2.GetTokenMarketsRequest";
25
+ static readonly fields: FieldList;
26
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenMarketsRequest;
27
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenMarketsRequest;
28
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenMarketsRequest;
29
+ static equals(a: GetTokenMarketsRequest | PlainMessage<GetTokenMarketsRequest> | undefined, b: GetTokenMarketsRequest | PlainMessage<GetTokenMarketsRequest> | undefined): boolean;
30
+ }
31
+ /**
32
+ * @generated from message data.v2.GetTokenMarketsResponse
33
+ */
34
+ export declare class GetTokenMarketsResponse extends Message<GetTokenMarketsResponse> {
35
+ /**
36
+ * One TokenMarket per requested token, in request order.
37
+ *
38
+ * @generated from field: repeated data.v2.TokenMarket markets = 1;
39
+ */
40
+ markets: TokenMarket[];
41
+ constructor(data?: PartialMessage<GetTokenMarketsResponse>);
42
+ static readonly runtime: typeof proto3;
43
+ static readonly typeName = "data.v2.GetTokenMarketsResponse";
44
+ static readonly fields: FieldList;
45
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokenMarketsResponse;
46
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokenMarketsResponse;
47
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokenMarketsResponse;
48
+ static equals(a: GetTokenMarketsResponse | PlainMessage<GetTokenMarketsResponse> | undefined, b: GetTokenMarketsResponse | PlainMessage<GetTokenMarketsResponse> | undefined): boolean;
49
+ }
6
50
  /**
7
51
  * @generated from message data.v2.GetTokenRequest
8
52
  */
@@ -3,9 +3,80 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
- import { MultichainToken, RankedMultichainToken, Token, TokenListFilter, TokensSort } from "./types_pb.js";
6
+ import { HistoryDuration, MultichainToken, 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
+ /**
10
+ * @generated from message data.v2.GetTokenMarketsRequest
11
+ */
12
+ export class GetTokenMarketsRequest extends Message {
13
+ constructor(data) {
14
+ super();
15
+ /**
16
+ * max 100
17
+ *
18
+ * @generated from field: repeated data.v2.TokenIdentifier tokens = 1;
19
+ */
20
+ this.tokens = [];
21
+ /**
22
+ * volume_usd window for all tokens; UNSPECIFIED defaults to DAY
23
+ *
24
+ * @generated from field: data.v2.HistoryDuration duration = 2;
25
+ */
26
+ this.duration = HistoryDuration.UNSPECIFIED;
27
+ proto3.util.initPartial(data, this);
28
+ }
29
+ static fromBinary(bytes, options) {
30
+ return new GetTokenMarketsRequest().fromBinary(bytes, options);
31
+ }
32
+ static fromJson(jsonValue, options) {
33
+ return new GetTokenMarketsRequest().fromJson(jsonValue, options);
34
+ }
35
+ static fromJsonString(jsonString, options) {
36
+ return new GetTokenMarketsRequest().fromJsonString(jsonString, options);
37
+ }
38
+ static equals(a, b) {
39
+ return proto3.util.equals(GetTokenMarketsRequest, a, b);
40
+ }
41
+ }
42
+ GetTokenMarketsRequest.runtime = proto3;
43
+ GetTokenMarketsRequest.typeName = "data.v2.GetTokenMarketsRequest";
44
+ GetTokenMarketsRequest.fields = proto3.util.newFieldList(() => [
45
+ { no: 1, name: "tokens", kind: "message", T: TokenIdentifier, repeated: true },
46
+ { no: 2, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
47
+ ]);
48
+ /**
49
+ * @generated from message data.v2.GetTokenMarketsResponse
50
+ */
51
+ export class GetTokenMarketsResponse extends Message {
52
+ constructor(data) {
53
+ super();
54
+ /**
55
+ * One TokenMarket per requested token, in request order.
56
+ *
57
+ * @generated from field: repeated data.v2.TokenMarket markets = 1;
58
+ */
59
+ this.markets = [];
60
+ proto3.util.initPartial(data, this);
61
+ }
62
+ static fromBinary(bytes, options) {
63
+ return new GetTokenMarketsResponse().fromBinary(bytes, options);
64
+ }
65
+ static fromJson(jsonValue, options) {
66
+ return new GetTokenMarketsResponse().fromJson(jsonValue, options);
67
+ }
68
+ static fromJsonString(jsonString, options) {
69
+ return new GetTokenMarketsResponse().fromJsonString(jsonString, options);
70
+ }
71
+ static equals(a, b) {
72
+ return proto3.util.equals(GetTokenMarketsResponse, a, b);
73
+ }
74
+ }
75
+ GetTokenMarketsResponse.runtime = proto3;
76
+ GetTokenMarketsResponse.typeName = "data.v2.GetTokenMarketsResponse";
77
+ GetTokenMarketsResponse.fields = proto3.util.newFieldList(() => [
78
+ { no: 1, name: "markets", kind: "message", T: TokenMarket, repeated: true },
79
+ ]);
9
80
  /**
10
81
  * @generated from message data.v2.GetTokenRequest
11
82
  */
@@ -50,6 +50,43 @@ export declare enum TokensOrderBy {
50
50
  */
51
51
  PRICE_CHANGE_1D = 10
52
52
  }
53
+ /**
54
+ * Time window for windowed token-market stats; FIVE_MINUTE is intentionally omitted.
55
+ *
56
+ * @generated from enum data.v2.HistoryDuration
57
+ */
58
+ export declare enum HistoryDuration {
59
+ /**
60
+ * server defaults to DAY
61
+ *
62
+ * @generated from enum value: HISTORY_DURATION_UNSPECIFIED = 0;
63
+ */
64
+ UNSPECIFIED = 0,
65
+ /**
66
+ * @generated from enum value: HISTORY_DURATION_HOUR = 1;
67
+ */
68
+ HOUR = 1,
69
+ /**
70
+ * @generated from enum value: HISTORY_DURATION_DAY = 2;
71
+ */
72
+ DAY = 2,
73
+ /**
74
+ * @generated from enum value: HISTORY_DURATION_WEEK = 3;
75
+ */
76
+ WEEK = 3,
77
+ /**
78
+ * @generated from enum value: HISTORY_DURATION_MONTH = 4;
79
+ */
80
+ MONTH = 4,
81
+ /**
82
+ * @generated from enum value: HISTORY_DURATION_YEAR = 5;
83
+ */
84
+ YEAR = 5,
85
+ /**
86
+ * @generated from enum value: HISTORY_DURATION_MAX = 6;
87
+ */
88
+ MAX = 6
89
+ }
53
90
  /**
54
91
  * Volume, TVL, FDV, and price-change stats for a ranked token. All values are USD-denominated.
55
92
  * All fields are populated from Clickhouse aggregations.
@@ -235,6 +272,65 @@ export declare class TokenPriceData extends Message<TokenPriceData> {
235
272
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenPriceData;
236
273
  static equals(a: TokenPriceData | PlainMessage<TokenPriceData> | undefined, b: TokenPriceData | PlainMessage<TokenPriceData> | undefined): boolean;
237
274
  }
275
+ /**
276
+ * Live on-chain market stats for a single token, USD-denominated.
277
+ *
278
+ * @generated from message data.v2.TokenMarket
279
+ */
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;
289
+ /**
290
+ * @generated from field: optional double total_value_locked_usd = 3;
291
+ */
292
+ totalValueLockedUsd?: number;
293
+ /**
294
+ * reserved; unset
295
+ *
296
+ * @generated from field: optional double market_cap_usd = 4;
297
+ */
298
+ marketCapUsd?: number;
299
+ /**
300
+ * reserved; unset
301
+ *
302
+ * @generated from field: optional double fully_diluted_valuation_usd = 5;
303
+ */
304
+ fullyDilutedValuationUsd?: number;
305
+ /**
306
+ * @generated from field: optional double price_high_52w_usd = 6;
307
+ */
308
+ priceHigh52wUsd?: number;
309
+ /**
310
+ * @generated from field: optional double price_low_52w_usd = 7;
311
+ */
312
+ priceLow52wUsd?: number;
313
+ /**
314
+ * over volume_duration
315
+ *
316
+ * @generated from field: optional double volume_usd = 8;
317
+ */
318
+ volumeUsd?: number;
319
+ /**
320
+ * echoes the requested duration (UNSPECIFIED → DAY)
321
+ *
322
+ * @generated from field: data.v2.HistoryDuration volume_duration = 9;
323
+ */
324
+ volumeDuration: HistoryDuration;
325
+ constructor(data?: PartialMessage<TokenMarket>);
326
+ static readonly runtime: typeof proto3;
327
+ static readonly typeName = "data.v2.TokenMarket";
328
+ static readonly fields: FieldList;
329
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenMarket;
330
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenMarket;
331
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenMarket;
332
+ static equals(a: TokenMarket | PlainMessage<TokenMarket> | undefined, b: TokenMarket | PlainMessage<TokenMarket> | undefined): boolean;
333
+ }
238
334
  /**
239
335
  * @generated from message data.v2.TokenSafety
240
336
  */
@@ -68,6 +68,54 @@ proto3.util.setEnumType(TokensOrderBy, "data.v2.TokensOrderBy", [
68
68
  { no: 9, name: "TOKENS_ORDER_BY_PRICE_CHANGE_1H" },
69
69
  { no: 10, name: "TOKENS_ORDER_BY_PRICE_CHANGE_1D" },
70
70
  ]);
71
+ /**
72
+ * Time window for windowed token-market stats; FIVE_MINUTE is intentionally omitted.
73
+ *
74
+ * @generated from enum data.v2.HistoryDuration
75
+ */
76
+ export var HistoryDuration;
77
+ (function (HistoryDuration) {
78
+ /**
79
+ * server defaults to DAY
80
+ *
81
+ * @generated from enum value: HISTORY_DURATION_UNSPECIFIED = 0;
82
+ */
83
+ HistoryDuration[HistoryDuration["UNSPECIFIED"] = 0] = "UNSPECIFIED";
84
+ /**
85
+ * @generated from enum value: HISTORY_DURATION_HOUR = 1;
86
+ */
87
+ HistoryDuration[HistoryDuration["HOUR"] = 1] = "HOUR";
88
+ /**
89
+ * @generated from enum value: HISTORY_DURATION_DAY = 2;
90
+ */
91
+ HistoryDuration[HistoryDuration["DAY"] = 2] = "DAY";
92
+ /**
93
+ * @generated from enum value: HISTORY_DURATION_WEEK = 3;
94
+ */
95
+ HistoryDuration[HistoryDuration["WEEK"] = 3] = "WEEK";
96
+ /**
97
+ * @generated from enum value: HISTORY_DURATION_MONTH = 4;
98
+ */
99
+ HistoryDuration[HistoryDuration["MONTH"] = 4] = "MONTH";
100
+ /**
101
+ * @generated from enum value: HISTORY_DURATION_YEAR = 5;
102
+ */
103
+ HistoryDuration[HistoryDuration["YEAR"] = 5] = "YEAR";
104
+ /**
105
+ * @generated from enum value: HISTORY_DURATION_MAX = 6;
106
+ */
107
+ HistoryDuration[HistoryDuration["MAX"] = 6] = "MAX";
108
+ })(HistoryDuration || (HistoryDuration = {}));
109
+ // Retrieve enum metadata with: proto3.getEnumType(HistoryDuration)
110
+ proto3.util.setEnumType(HistoryDuration, "data.v2.HistoryDuration", [
111
+ { no: 0, name: "HISTORY_DURATION_UNSPECIFIED" },
112
+ { no: 1, name: "HISTORY_DURATION_HOUR" },
113
+ { no: 2, name: "HISTORY_DURATION_DAY" },
114
+ { no: 3, name: "HISTORY_DURATION_WEEK" },
115
+ { no: 4, name: "HISTORY_DURATION_MONTH" },
116
+ { no: 5, name: "HISTORY_DURATION_YEAR" },
117
+ { no: 6, name: "HISTORY_DURATION_MAX" },
118
+ ]);
71
119
  /**
72
120
  * Volume, TVL, FDV, and price-change stats for a ranked token. All values are USD-denominated.
73
121
  * All fields are populated from Clickhouse aggregations.
@@ -260,6 +308,56 @@ TokenPriceData.fields = proto3.util.newFieldList(() => [
260
308
  { no: 2, name: "percent_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
261
309
  { no: 3, name: "percent_change_1h", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
262
310
  ]);
311
+ /**
312
+ * Live on-chain market stats for a single token, USD-denominated.
313
+ *
314
+ * @generated from message data.v2.TokenMarket
315
+ */
316
+ export class TokenMarket extends Message {
317
+ constructor(data) {
318
+ super();
319
+ /**
320
+ * @generated from field: uint32 chain_id = 1;
321
+ */
322
+ this.chainId = 0;
323
+ /**
324
+ * @generated from field: string address = 2;
325
+ */
326
+ 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
+ proto3.util.initPartial(data, this);
334
+ }
335
+ static fromBinary(bytes, options) {
336
+ return new TokenMarket().fromBinary(bytes, options);
337
+ }
338
+ static fromJson(jsonValue, options) {
339
+ return new TokenMarket().fromJson(jsonValue, options);
340
+ }
341
+ static fromJsonString(jsonString, options) {
342
+ return new TokenMarket().fromJsonString(jsonString, options);
343
+ }
344
+ static equals(a, b) {
345
+ return proto3.util.equals(TokenMarket, a, b);
346
+ }
347
+ }
348
+ TokenMarket.runtime = proto3;
349
+ TokenMarket.typeName = "data.v2.TokenMarket";
350
+ TokenMarket.fields = proto3.util.newFieldList(() => [
351
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
352
+ { 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) },
360
+ ]);
263
361
  /**
264
362
  * @generated from message data.v2.TokenSafety
265
363
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.90",
3
+ "version": "0.0.92",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },