@uniswap/client-data-api 0.0.88 → 0.0.90
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.
- package/dist/data/v1/api-DataApiService_connectquery.d.ts +14 -1
- package/dist/data/v1/api-DataApiService_connectquery.js +14 -1
- package/dist/data/v1/api_connect.d.ts +10 -1
- package/dist/data/v1/api_connect.js +10 -1
- package/dist/data/v1/api_pb.d.ts +181 -6
- package/dist/data/v1/api_pb.js +268 -10
- package/dist/data/v2/earn_pb.d.ts +9 -3
- package/package.json +1 -1
|
@@ -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, 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, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, 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
|
*/
|
|
@@ -351,3 +351,16 @@ export declare const listRwas: {
|
|
|
351
351
|
readonly typeName: "data.v1.DataApiService";
|
|
352
352
|
};
|
|
353
353
|
};
|
|
354
|
+
/**
|
|
355
|
+
* @generated from rpc data.v1.DataApiService.ListRwaTokens
|
|
356
|
+
*/
|
|
357
|
+
export declare const listRwaTokens: {
|
|
358
|
+
readonly localName: "listRwaTokens";
|
|
359
|
+
readonly name: "ListRwaTokens";
|
|
360
|
+
readonly kind: MethodKind.Unary;
|
|
361
|
+
readonly I: typeof ListRwaTokensRequest;
|
|
362
|
+
readonly O: typeof ListRwaTokensResponse;
|
|
363
|
+
readonly service: {
|
|
364
|
+
readonly typeName: "data.v1.DataApiService";
|
|
365
|
+
};
|
|
366
|
+
};
|
|
@@ -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, 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, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, 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
|
*/
|
|
@@ -355,3 +355,16 @@ export const listRwas = {
|
|
|
355
355
|
typeName: "data.v1.DataApiService"
|
|
356
356
|
}
|
|
357
357
|
};
|
|
358
|
+
/**
|
|
359
|
+
* @generated from rpc data.v1.DataApiService.ListRwaTokens
|
|
360
|
+
*/
|
|
361
|
+
export const listRwaTokens = {
|
|
362
|
+
localName: "listRwaTokens",
|
|
363
|
+
name: "ListRwaTokens",
|
|
364
|
+
kind: MethodKind.Unary,
|
|
365
|
+
I: ListRwaTokensRequest,
|
|
366
|
+
O: ListRwaTokensResponse,
|
|
367
|
+
service: {
|
|
368
|
+
typeName: "data.v1.DataApiService"
|
|
369
|
+
}
|
|
370
|
+
};
|
|
@@ -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, 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, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, 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
|
|
@@ -249,5 +249,14 @@ export declare const DataApiService: {
|
|
|
249
249
|
readonly O: typeof ListRwasResponse;
|
|
250
250
|
readonly kind: MethodKind.Unary;
|
|
251
251
|
};
|
|
252
|
+
/**
|
|
253
|
+
* @generated from rpc data.v1.DataApiService.ListRwaTokens
|
|
254
|
+
*/
|
|
255
|
+
readonly listRwaTokens: {
|
|
256
|
+
readonly name: "ListRwaTokens";
|
|
257
|
+
readonly I: typeof ListRwaTokensRequest;
|
|
258
|
+
readonly O: typeof ListRwaTokensResponse;
|
|
259
|
+
readonly kind: MethodKind.Unary;
|
|
260
|
+
};
|
|
252
261
|
};
|
|
253
262
|
};
|
|
@@ -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, 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, ListRwasRequest, ListRwasResponse, ListRwaTokensRequest, ListRwaTokensResponse, 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
|
|
@@ -253,5 +253,14 @@ export const DataApiService = {
|
|
|
253
253
|
O: ListRwasResponse,
|
|
254
254
|
kind: MethodKind.Unary,
|
|
255
255
|
},
|
|
256
|
+
/**
|
|
257
|
+
* @generated from rpc data.v1.DataApiService.ListRwaTokens
|
|
258
|
+
*/
|
|
259
|
+
listRwaTokens: {
|
|
260
|
+
name: "ListRwaTokens",
|
|
261
|
+
I: ListRwaTokensRequest,
|
|
262
|
+
O: ListRwaTokensResponse,
|
|
263
|
+
kind: MethodKind.Unary,
|
|
264
|
+
},
|
|
256
265
|
}
|
|
257
266
|
};
|
package/dist/data/v1/api_pb.d.ts
CHANGED
|
@@ -131,6 +131,19 @@ export declare enum ChartPeriod {
|
|
|
131
131
|
*/
|
|
132
132
|
MAX = 6
|
|
133
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* @generated from enum data.v1.RwaCategory
|
|
136
|
+
*/
|
|
137
|
+
export declare enum RwaCategory {
|
|
138
|
+
/**
|
|
139
|
+
* @generated from enum value: RWA_CATEGORY_UNSPECIFIED = 0;
|
|
140
|
+
*/
|
|
141
|
+
UNSPECIFIED = 0,
|
|
142
|
+
/**
|
|
143
|
+
* @generated from enum value: RWA_CATEGORY_STOCKS = 1;
|
|
144
|
+
*/
|
|
145
|
+
STOCKS = 1
|
|
146
|
+
}
|
|
134
147
|
/**
|
|
135
148
|
* @generated from message data.v1.CreatePendingTokenFactoryTokenRequest
|
|
136
149
|
*/
|
|
@@ -1808,6 +1821,12 @@ export declare class BalanceComponent extends Message<BalanceComponent> {
|
|
|
1808
1821
|
* @generated from message data.v1.ListRwasRequest
|
|
1809
1822
|
*/
|
|
1810
1823
|
export declare class ListRwasRequest extends Message<ListRwasRequest> {
|
|
1824
|
+
/**
|
|
1825
|
+
* Required, non-empty.
|
|
1826
|
+
*
|
|
1827
|
+
* @generated from field: repeated uint32 chain_ids = 1;
|
|
1828
|
+
*/
|
|
1829
|
+
chainIds: number[];
|
|
1811
1830
|
constructor(data?: PartialMessage<ListRwasRequest>);
|
|
1812
1831
|
static readonly runtime: typeof proto3;
|
|
1813
1832
|
static readonly typeName = "data.v1.ListRwasRequest";
|
|
@@ -1843,13 +1862,13 @@ export declare class Rwa extends Message<Rwa> {
|
|
|
1843
1862
|
*/
|
|
1844
1863
|
symbol: string;
|
|
1845
1864
|
/**
|
|
1846
|
-
* @generated from field: string
|
|
1865
|
+
* @generated from field: string logo_url = 2;
|
|
1847
1866
|
*/
|
|
1848
|
-
|
|
1867
|
+
logoUrl: string;
|
|
1849
1868
|
/**
|
|
1850
|
-
* @generated from field: repeated data.v1.
|
|
1869
|
+
* @generated from field: repeated data.v1.IssuerToken issuer_tokens = 3;
|
|
1851
1870
|
*/
|
|
1852
|
-
|
|
1871
|
+
issuerTokens: IssuerToken[];
|
|
1853
1872
|
constructor(data?: PartialMessage<Rwa>);
|
|
1854
1873
|
static readonly runtime: typeof proto3;
|
|
1855
1874
|
static readonly typeName = "data.v1.Rwa";
|
|
@@ -1860,9 +1879,9 @@ export declare class Rwa extends Message<Rwa> {
|
|
|
1860
1879
|
static equals(a: Rwa | PlainMessage<Rwa> | undefined, b: Rwa | PlainMessage<Rwa> | undefined): boolean;
|
|
1861
1880
|
}
|
|
1862
1881
|
/**
|
|
1863
|
-
* @generated from message data.v1.
|
|
1882
|
+
* @generated from message data.v1.IssuerToken
|
|
1864
1883
|
*/
|
|
1865
|
-
export declare class
|
|
1884
|
+
export declare class IssuerToken extends Message<IssuerToken> {
|
|
1866
1885
|
/**
|
|
1867
1886
|
* @generated from field: uint32 chain_id = 1;
|
|
1868
1887
|
*/
|
|
@@ -1875,6 +1894,103 @@ export declare class RwaToken extends Message<RwaToken> {
|
|
|
1875
1894
|
* @generated from field: string issuer = 3;
|
|
1876
1895
|
*/
|
|
1877
1896
|
issuer: string;
|
|
1897
|
+
constructor(data?: PartialMessage<IssuerToken>);
|
|
1898
|
+
static readonly runtime: typeof proto3;
|
|
1899
|
+
static readonly typeName = "data.v1.IssuerToken";
|
|
1900
|
+
static readonly fields: FieldList;
|
|
1901
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IssuerToken;
|
|
1902
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IssuerToken;
|
|
1903
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IssuerToken;
|
|
1904
|
+
static equals(a: IssuerToken | PlainMessage<IssuerToken> | undefined, b: IssuerToken | PlainMessage<IssuerToken> | undefined): boolean;
|
|
1905
|
+
}
|
|
1906
|
+
/**
|
|
1907
|
+
* @generated from message data.v1.ListRwaTokensRequest
|
|
1908
|
+
*/
|
|
1909
|
+
export declare class ListRwaTokensRequest extends Message<ListRwaTokensRequest> {
|
|
1910
|
+
/**
|
|
1911
|
+
* @generated from field: data.v1.RwaCategory category = 1;
|
|
1912
|
+
*/
|
|
1913
|
+
category: RwaCategory;
|
|
1914
|
+
/**
|
|
1915
|
+
* Required, non-empty.
|
|
1916
|
+
*
|
|
1917
|
+
* @generated from field: repeated uint32 chain_ids = 2;
|
|
1918
|
+
*/
|
|
1919
|
+
chainIds: number[];
|
|
1920
|
+
constructor(data?: PartialMessage<ListRwaTokensRequest>);
|
|
1921
|
+
static readonly runtime: typeof proto3;
|
|
1922
|
+
static readonly typeName = "data.v1.ListRwaTokensRequest";
|
|
1923
|
+
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;
|
|
1928
|
+
}
|
|
1929
|
+
/**
|
|
1930
|
+
* @generated from message data.v1.ListRwaTokensResponse
|
|
1931
|
+
*/
|
|
1932
|
+
export declare class ListRwaTokensResponse extends Message<ListRwaTokensResponse> {
|
|
1933
|
+
/**
|
|
1934
|
+
* @generated from field: repeated data.v1.RwaToken tokens = 1;
|
|
1935
|
+
*/
|
|
1936
|
+
tokens: RwaToken[];
|
|
1937
|
+
constructor(data?: PartialMessage<ListRwaTokensResponse>);
|
|
1938
|
+
static readonly runtime: typeof proto3;
|
|
1939
|
+
static readonly typeName = "data.v1.ListRwaTokensResponse";
|
|
1940
|
+
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;
|
|
1945
|
+
}
|
|
1946
|
+
/**
|
|
1947
|
+
* @generated from message data.v1.RwaToken
|
|
1948
|
+
*/
|
|
1949
|
+
export declare class RwaToken extends Message<RwaToken> {
|
|
1950
|
+
/**
|
|
1951
|
+
* @generated from field: string symbol = 1;
|
|
1952
|
+
*/
|
|
1953
|
+
symbol: string;
|
|
1954
|
+
/**
|
|
1955
|
+
* @generated from field: string name = 2;
|
|
1956
|
+
*/
|
|
1957
|
+
name: string;
|
|
1958
|
+
/**
|
|
1959
|
+
* @generated from field: string logo_url = 3;
|
|
1960
|
+
*/
|
|
1961
|
+
logoUrl: string;
|
|
1962
|
+
/**
|
|
1963
|
+
* @generated from field: string issuer = 4;
|
|
1964
|
+
*/
|
|
1965
|
+
issuer: string;
|
|
1966
|
+
/**
|
|
1967
|
+
* @generated from field: double price_usd = 5;
|
|
1968
|
+
*/
|
|
1969
|
+
priceUsd: number;
|
|
1970
|
+
/**
|
|
1971
|
+
* @generated from field: double volume_24h_usd = 6;
|
|
1972
|
+
*/
|
|
1973
|
+
volume24hUsd: number;
|
|
1974
|
+
/**
|
|
1975
|
+
* @generated from field: optional double fdv_usd = 7;
|
|
1976
|
+
*/
|
|
1977
|
+
fdvUsd?: number;
|
|
1978
|
+
/**
|
|
1979
|
+
* @generated from field: optional double price_change_1h_pct = 8;
|
|
1980
|
+
*/
|
|
1981
|
+
priceChange1hPct?: number;
|
|
1982
|
+
/**
|
|
1983
|
+
* @generated from field: optional double price_change_24h_pct = 9;
|
|
1984
|
+
*/
|
|
1985
|
+
priceChange24hPct?: number;
|
|
1986
|
+
/**
|
|
1987
|
+
* @generated from field: data.v1.RwaSparkline sparkline_1d = 10;
|
|
1988
|
+
*/
|
|
1989
|
+
sparkline1d?: RwaSparkline;
|
|
1990
|
+
/**
|
|
1991
|
+
* @generated from field: repeated data.v1.RwaChainToken chain_tokens = 11;
|
|
1992
|
+
*/
|
|
1993
|
+
chainTokens: RwaChainToken[];
|
|
1878
1994
|
constructor(data?: PartialMessage<RwaToken>);
|
|
1879
1995
|
static readonly runtime: typeof proto3;
|
|
1880
1996
|
static readonly typeName = "data.v1.RwaToken";
|
|
@@ -1884,3 +2000,62 @@ export declare class RwaToken extends Message<RwaToken> {
|
|
|
1884
2000
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RwaToken;
|
|
1885
2001
|
static equals(a: RwaToken | PlainMessage<RwaToken> | undefined, b: RwaToken | PlainMessage<RwaToken> | undefined): boolean;
|
|
1886
2002
|
}
|
|
2003
|
+
/**
|
|
2004
|
+
* @generated from message data.v1.RwaChainToken
|
|
2005
|
+
*/
|
|
2006
|
+
export declare class RwaChainToken extends Message<RwaChainToken> {
|
|
2007
|
+
/**
|
|
2008
|
+
* @generated from field: uint32 chain_id = 1;
|
|
2009
|
+
*/
|
|
2010
|
+
chainId: number;
|
|
2011
|
+
/**
|
|
2012
|
+
* @generated from field: string address = 2;
|
|
2013
|
+
*/
|
|
2014
|
+
address: string;
|
|
2015
|
+
constructor(data?: PartialMessage<RwaChainToken>);
|
|
2016
|
+
static readonly runtime: typeof proto3;
|
|
2017
|
+
static readonly typeName = "data.v1.RwaChainToken";
|
|
2018
|
+
static readonly fields: FieldList;
|
|
2019
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RwaChainToken;
|
|
2020
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RwaChainToken;
|
|
2021
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RwaChainToken;
|
|
2022
|
+
static equals(a: RwaChainToken | PlainMessage<RwaChainToken> | undefined, b: RwaChainToken | PlainMessage<RwaChainToken> | undefined): boolean;
|
|
2023
|
+
}
|
|
2024
|
+
/**
|
|
2025
|
+
* @generated from message data.v1.RwaSparkline
|
|
2026
|
+
*/
|
|
2027
|
+
export declare class RwaSparkline extends Message<RwaSparkline> {
|
|
2028
|
+
/**
|
|
2029
|
+
* @generated from field: repeated data.v1.RwaSparklinePoint points = 1;
|
|
2030
|
+
*/
|
|
2031
|
+
points: RwaSparklinePoint[];
|
|
2032
|
+
constructor(data?: PartialMessage<RwaSparkline>);
|
|
2033
|
+
static readonly runtime: typeof proto3;
|
|
2034
|
+
static readonly typeName = "data.v1.RwaSparkline";
|
|
2035
|
+
static readonly fields: FieldList;
|
|
2036
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RwaSparkline;
|
|
2037
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RwaSparkline;
|
|
2038
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RwaSparkline;
|
|
2039
|
+
static equals(a: RwaSparkline | PlainMessage<RwaSparkline> | undefined, b: RwaSparkline | PlainMessage<RwaSparkline> | undefined): boolean;
|
|
2040
|
+
}
|
|
2041
|
+
/**
|
|
2042
|
+
* @generated from message data.v1.RwaSparklinePoint
|
|
2043
|
+
*/
|
|
2044
|
+
export declare class RwaSparklinePoint extends Message<RwaSparklinePoint> {
|
|
2045
|
+
/**
|
|
2046
|
+
* @generated from field: int64 timestamp_s = 1;
|
|
2047
|
+
*/
|
|
2048
|
+
timestampS: bigint;
|
|
2049
|
+
/**
|
|
2050
|
+
* @generated from field: double value = 2;
|
|
2051
|
+
*/
|
|
2052
|
+
value: number;
|
|
2053
|
+
constructor(data?: PartialMessage<RwaSparklinePoint>);
|
|
2054
|
+
static readonly runtime: typeof proto3;
|
|
2055
|
+
static readonly typeName = "data.v1.RwaSparklinePoint";
|
|
2056
|
+
static readonly fields: FieldList;
|
|
2057
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RwaSparklinePoint;
|
|
2058
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RwaSparklinePoint;
|
|
2059
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RwaSparklinePoint;
|
|
2060
|
+
static equals(a: RwaSparklinePoint | PlainMessage<RwaSparklinePoint> | undefined, b: RwaSparklinePoint | PlainMessage<RwaSparklinePoint> | undefined): boolean;
|
|
2061
|
+
}
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -180,6 +180,25 @@ proto3.util.setEnumType(ChartPeriod, "data.v1.ChartPeriod", [
|
|
|
180
180
|
{ no: 5, name: "CHART_PERIOD_YEAR" },
|
|
181
181
|
{ no: 6, name: "CHART_PERIOD_MAX" },
|
|
182
182
|
]);
|
|
183
|
+
/**
|
|
184
|
+
* @generated from enum data.v1.RwaCategory
|
|
185
|
+
*/
|
|
186
|
+
export var RwaCategory;
|
|
187
|
+
(function (RwaCategory) {
|
|
188
|
+
/**
|
|
189
|
+
* @generated from enum value: RWA_CATEGORY_UNSPECIFIED = 0;
|
|
190
|
+
*/
|
|
191
|
+
RwaCategory[RwaCategory["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
192
|
+
/**
|
|
193
|
+
* @generated from enum value: RWA_CATEGORY_STOCKS = 1;
|
|
194
|
+
*/
|
|
195
|
+
RwaCategory[RwaCategory["STOCKS"] = 1] = "STOCKS";
|
|
196
|
+
})(RwaCategory || (RwaCategory = {}));
|
|
197
|
+
// Retrieve enum metadata with: proto3.getEnumType(RwaCategory)
|
|
198
|
+
proto3.util.setEnumType(RwaCategory, "data.v1.RwaCategory", [
|
|
199
|
+
{ no: 0, name: "RWA_CATEGORY_UNSPECIFIED" },
|
|
200
|
+
{ no: 1, name: "RWA_CATEGORY_STOCKS" },
|
|
201
|
+
]);
|
|
183
202
|
/**
|
|
184
203
|
* @generated from message data.v1.CreatePendingTokenFactoryTokenRequest
|
|
185
204
|
*/
|
|
@@ -2431,6 +2450,12 @@ BalanceComponent.fields = proto3.util.newFieldList(() => [
|
|
|
2431
2450
|
export class ListRwasRequest extends Message {
|
|
2432
2451
|
constructor(data) {
|
|
2433
2452
|
super();
|
|
2453
|
+
/**
|
|
2454
|
+
* Required, non-empty.
|
|
2455
|
+
*
|
|
2456
|
+
* @generated from field: repeated uint32 chain_ids = 1;
|
|
2457
|
+
*/
|
|
2458
|
+
this.chainIds = [];
|
|
2434
2459
|
proto3.util.initPartial(data, this);
|
|
2435
2460
|
}
|
|
2436
2461
|
static fromBinary(bytes, options) {
|
|
@@ -2448,7 +2473,9 @@ export class ListRwasRequest extends Message {
|
|
|
2448
2473
|
}
|
|
2449
2474
|
ListRwasRequest.runtime = proto3;
|
|
2450
2475
|
ListRwasRequest.typeName = "data.v1.ListRwasRequest";
|
|
2451
|
-
ListRwasRequest.fields = proto3.util.newFieldList(() => [
|
|
2476
|
+
ListRwasRequest.fields = proto3.util.newFieldList(() => [
|
|
2477
|
+
{ no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
2478
|
+
]);
|
|
2452
2479
|
/**
|
|
2453
2480
|
* @generated from message data.v1.ListRwasResponse
|
|
2454
2481
|
*/
|
|
@@ -2490,13 +2517,13 @@ export class Rwa extends Message {
|
|
|
2490
2517
|
*/
|
|
2491
2518
|
this.symbol = "";
|
|
2492
2519
|
/**
|
|
2493
|
-
* @generated from field: string
|
|
2520
|
+
* @generated from field: string logo_url = 2;
|
|
2494
2521
|
*/
|
|
2495
|
-
this.
|
|
2522
|
+
this.logoUrl = "";
|
|
2496
2523
|
/**
|
|
2497
|
-
* @generated from field: repeated data.v1.
|
|
2524
|
+
* @generated from field: repeated data.v1.IssuerToken issuer_tokens = 3;
|
|
2498
2525
|
*/
|
|
2499
|
-
this.
|
|
2526
|
+
this.issuerTokens = [];
|
|
2500
2527
|
proto3.util.initPartial(data, this);
|
|
2501
2528
|
}
|
|
2502
2529
|
static fromBinary(bytes, options) {
|
|
@@ -2516,13 +2543,13 @@ Rwa.runtime = proto3;
|
|
|
2516
2543
|
Rwa.typeName = "data.v1.Rwa";
|
|
2517
2544
|
Rwa.fields = proto3.util.newFieldList(() => [
|
|
2518
2545
|
{ no: 1, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2519
|
-
{ no: 2, name: "
|
|
2520
|
-
{ no: 3, name: "
|
|
2546
|
+
{ no: 2, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2547
|
+
{ no: 3, name: "issuer_tokens", kind: "message", T: IssuerToken, repeated: true },
|
|
2521
2548
|
]);
|
|
2522
2549
|
/**
|
|
2523
|
-
* @generated from message data.v1.
|
|
2550
|
+
* @generated from message data.v1.IssuerToken
|
|
2524
2551
|
*/
|
|
2525
|
-
export class
|
|
2552
|
+
export class IssuerToken extends Message {
|
|
2526
2553
|
constructor(data) {
|
|
2527
2554
|
super();
|
|
2528
2555
|
/**
|
|
@@ -2539,6 +2566,129 @@ export class RwaToken extends Message {
|
|
|
2539
2566
|
this.issuer = "";
|
|
2540
2567
|
proto3.util.initPartial(data, this);
|
|
2541
2568
|
}
|
|
2569
|
+
static fromBinary(bytes, options) {
|
|
2570
|
+
return new IssuerToken().fromBinary(bytes, options);
|
|
2571
|
+
}
|
|
2572
|
+
static fromJson(jsonValue, options) {
|
|
2573
|
+
return new IssuerToken().fromJson(jsonValue, options);
|
|
2574
|
+
}
|
|
2575
|
+
static fromJsonString(jsonString, options) {
|
|
2576
|
+
return new IssuerToken().fromJsonString(jsonString, options);
|
|
2577
|
+
}
|
|
2578
|
+
static equals(a, b) {
|
|
2579
|
+
return proto3.util.equals(IssuerToken, a, b);
|
|
2580
|
+
}
|
|
2581
|
+
}
|
|
2582
|
+
IssuerToken.runtime = proto3;
|
|
2583
|
+
IssuerToken.typeName = "data.v1.IssuerToken";
|
|
2584
|
+
IssuerToken.fields = proto3.util.newFieldList(() => [
|
|
2585
|
+
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
2586
|
+
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2587
|
+
{ no: 3, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2588
|
+
]);
|
|
2589
|
+
/**
|
|
2590
|
+
* @generated from message data.v1.ListRwaTokensRequest
|
|
2591
|
+
*/
|
|
2592
|
+
export class ListRwaTokensRequest extends Message {
|
|
2593
|
+
constructor(data) {
|
|
2594
|
+
super();
|
|
2595
|
+
/**
|
|
2596
|
+
* @generated from field: data.v1.RwaCategory category = 1;
|
|
2597
|
+
*/
|
|
2598
|
+
this.category = RwaCategory.UNSPECIFIED;
|
|
2599
|
+
/**
|
|
2600
|
+
* Required, non-empty.
|
|
2601
|
+
*
|
|
2602
|
+
* @generated from field: repeated uint32 chain_ids = 2;
|
|
2603
|
+
*/
|
|
2604
|
+
this.chainIds = [];
|
|
2605
|
+
proto3.util.initPartial(data, this);
|
|
2606
|
+
}
|
|
2607
|
+
static fromBinary(bytes, options) {
|
|
2608
|
+
return new ListRwaTokensRequest().fromBinary(bytes, options);
|
|
2609
|
+
}
|
|
2610
|
+
static fromJson(jsonValue, options) {
|
|
2611
|
+
return new ListRwaTokensRequest().fromJson(jsonValue, options);
|
|
2612
|
+
}
|
|
2613
|
+
static fromJsonString(jsonString, options) {
|
|
2614
|
+
return new ListRwaTokensRequest().fromJsonString(jsonString, options);
|
|
2615
|
+
}
|
|
2616
|
+
static equals(a, b) {
|
|
2617
|
+
return proto3.util.equals(ListRwaTokensRequest, a, b);
|
|
2618
|
+
}
|
|
2619
|
+
}
|
|
2620
|
+
ListRwaTokensRequest.runtime = proto3;
|
|
2621
|
+
ListRwaTokensRequest.typeName = "data.v1.ListRwaTokensRequest";
|
|
2622
|
+
ListRwaTokensRequest.fields = proto3.util.newFieldList(() => [
|
|
2623
|
+
{ no: 1, name: "category", kind: "enum", T: proto3.getEnumType(RwaCategory) },
|
|
2624
|
+
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
2625
|
+
]);
|
|
2626
|
+
/**
|
|
2627
|
+
* @generated from message data.v1.ListRwaTokensResponse
|
|
2628
|
+
*/
|
|
2629
|
+
export class ListRwaTokensResponse extends Message {
|
|
2630
|
+
constructor(data) {
|
|
2631
|
+
super();
|
|
2632
|
+
/**
|
|
2633
|
+
* @generated from field: repeated data.v1.RwaToken tokens = 1;
|
|
2634
|
+
*/
|
|
2635
|
+
this.tokens = [];
|
|
2636
|
+
proto3.util.initPartial(data, this);
|
|
2637
|
+
}
|
|
2638
|
+
static fromBinary(bytes, options) {
|
|
2639
|
+
return new ListRwaTokensResponse().fromBinary(bytes, options);
|
|
2640
|
+
}
|
|
2641
|
+
static fromJson(jsonValue, options) {
|
|
2642
|
+
return new ListRwaTokensResponse().fromJson(jsonValue, options);
|
|
2643
|
+
}
|
|
2644
|
+
static fromJsonString(jsonString, options) {
|
|
2645
|
+
return new ListRwaTokensResponse().fromJsonString(jsonString, options);
|
|
2646
|
+
}
|
|
2647
|
+
static equals(a, b) {
|
|
2648
|
+
return proto3.util.equals(ListRwaTokensResponse, a, b);
|
|
2649
|
+
}
|
|
2650
|
+
}
|
|
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 },
|
|
2655
|
+
]);
|
|
2656
|
+
/**
|
|
2657
|
+
* @generated from message data.v1.RwaToken
|
|
2658
|
+
*/
|
|
2659
|
+
export class RwaToken extends Message {
|
|
2660
|
+
constructor(data) {
|
|
2661
|
+
super();
|
|
2662
|
+
/**
|
|
2663
|
+
* @generated from field: string symbol = 1;
|
|
2664
|
+
*/
|
|
2665
|
+
this.symbol = "";
|
|
2666
|
+
/**
|
|
2667
|
+
* @generated from field: string name = 2;
|
|
2668
|
+
*/
|
|
2669
|
+
this.name = "";
|
|
2670
|
+
/**
|
|
2671
|
+
* @generated from field: string logo_url = 3;
|
|
2672
|
+
*/
|
|
2673
|
+
this.logoUrl = "";
|
|
2674
|
+
/**
|
|
2675
|
+
* @generated from field: string issuer = 4;
|
|
2676
|
+
*/
|
|
2677
|
+
this.issuer = "";
|
|
2678
|
+
/**
|
|
2679
|
+
* @generated from field: double price_usd = 5;
|
|
2680
|
+
*/
|
|
2681
|
+
this.priceUsd = 0;
|
|
2682
|
+
/**
|
|
2683
|
+
* @generated from field: double volume_24h_usd = 6;
|
|
2684
|
+
*/
|
|
2685
|
+
this.volume24hUsd = 0;
|
|
2686
|
+
/**
|
|
2687
|
+
* @generated from field: repeated data.v1.RwaChainToken chain_tokens = 11;
|
|
2688
|
+
*/
|
|
2689
|
+
this.chainTokens = [];
|
|
2690
|
+
proto3.util.initPartial(data, this);
|
|
2691
|
+
}
|
|
2542
2692
|
static fromBinary(bytes, options) {
|
|
2543
2693
|
return new RwaToken().fromBinary(bytes, options);
|
|
2544
2694
|
}
|
|
@@ -2555,7 +2705,115 @@ export class RwaToken extends Message {
|
|
|
2555
2705
|
RwaToken.runtime = proto3;
|
|
2556
2706
|
RwaToken.typeName = "data.v1.RwaToken";
|
|
2557
2707
|
RwaToken.fields = proto3.util.newFieldList(() => [
|
|
2708
|
+
{ no: 1, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2709
|
+
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2710
|
+
{ no: 3, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2711
|
+
{ no: 4, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2712
|
+
{ no: 5, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
2713
|
+
{ 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 },
|
|
2719
|
+
]);
|
|
2720
|
+
/**
|
|
2721
|
+
* @generated from message data.v1.RwaChainToken
|
|
2722
|
+
*/
|
|
2723
|
+
export class RwaChainToken extends Message {
|
|
2724
|
+
constructor(data) {
|
|
2725
|
+
super();
|
|
2726
|
+
/**
|
|
2727
|
+
* @generated from field: uint32 chain_id = 1;
|
|
2728
|
+
*/
|
|
2729
|
+
this.chainId = 0;
|
|
2730
|
+
/**
|
|
2731
|
+
* @generated from field: string address = 2;
|
|
2732
|
+
*/
|
|
2733
|
+
this.address = "";
|
|
2734
|
+
proto3.util.initPartial(data, this);
|
|
2735
|
+
}
|
|
2736
|
+
static fromBinary(bytes, options) {
|
|
2737
|
+
return new RwaChainToken().fromBinary(bytes, options);
|
|
2738
|
+
}
|
|
2739
|
+
static fromJson(jsonValue, options) {
|
|
2740
|
+
return new RwaChainToken().fromJson(jsonValue, options);
|
|
2741
|
+
}
|
|
2742
|
+
static fromJsonString(jsonString, options) {
|
|
2743
|
+
return new RwaChainToken().fromJsonString(jsonString, options);
|
|
2744
|
+
}
|
|
2745
|
+
static equals(a, b) {
|
|
2746
|
+
return proto3.util.equals(RwaChainToken, a, b);
|
|
2747
|
+
}
|
|
2748
|
+
}
|
|
2749
|
+
RwaChainToken.runtime = proto3;
|
|
2750
|
+
RwaChainToken.typeName = "data.v1.RwaChainToken";
|
|
2751
|
+
RwaChainToken.fields = proto3.util.newFieldList(() => [
|
|
2558
2752
|
{ no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
2559
2753
|
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2560
|
-
|
|
2754
|
+
]);
|
|
2755
|
+
/**
|
|
2756
|
+
* @generated from message data.v1.RwaSparkline
|
|
2757
|
+
*/
|
|
2758
|
+
export class RwaSparkline extends Message {
|
|
2759
|
+
constructor(data) {
|
|
2760
|
+
super();
|
|
2761
|
+
/**
|
|
2762
|
+
* @generated from field: repeated data.v1.RwaSparklinePoint points = 1;
|
|
2763
|
+
*/
|
|
2764
|
+
this.points = [];
|
|
2765
|
+
proto3.util.initPartial(data, this);
|
|
2766
|
+
}
|
|
2767
|
+
static fromBinary(bytes, options) {
|
|
2768
|
+
return new RwaSparkline().fromBinary(bytes, options);
|
|
2769
|
+
}
|
|
2770
|
+
static fromJson(jsonValue, options) {
|
|
2771
|
+
return new RwaSparkline().fromJson(jsonValue, options);
|
|
2772
|
+
}
|
|
2773
|
+
static fromJsonString(jsonString, options) {
|
|
2774
|
+
return new RwaSparkline().fromJsonString(jsonString, options);
|
|
2775
|
+
}
|
|
2776
|
+
static equals(a, b) {
|
|
2777
|
+
return proto3.util.equals(RwaSparkline, a, b);
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
RwaSparkline.runtime = proto3;
|
|
2781
|
+
RwaSparkline.typeName = "data.v1.RwaSparkline";
|
|
2782
|
+
RwaSparkline.fields = proto3.util.newFieldList(() => [
|
|
2783
|
+
{ no: 1, name: "points", kind: "message", T: RwaSparklinePoint, repeated: true },
|
|
2784
|
+
]);
|
|
2785
|
+
/**
|
|
2786
|
+
* @generated from message data.v1.RwaSparklinePoint
|
|
2787
|
+
*/
|
|
2788
|
+
export class RwaSparklinePoint extends Message {
|
|
2789
|
+
constructor(data) {
|
|
2790
|
+
super();
|
|
2791
|
+
/**
|
|
2792
|
+
* @generated from field: int64 timestamp_s = 1;
|
|
2793
|
+
*/
|
|
2794
|
+
this.timestampS = protoInt64.zero;
|
|
2795
|
+
/**
|
|
2796
|
+
* @generated from field: double value = 2;
|
|
2797
|
+
*/
|
|
2798
|
+
this.value = 0;
|
|
2799
|
+
proto3.util.initPartial(data, this);
|
|
2800
|
+
}
|
|
2801
|
+
static fromBinary(bytes, options) {
|
|
2802
|
+
return new RwaSparklinePoint().fromBinary(bytes, options);
|
|
2803
|
+
}
|
|
2804
|
+
static fromJson(jsonValue, options) {
|
|
2805
|
+
return new RwaSparklinePoint().fromJson(jsonValue, options);
|
|
2806
|
+
}
|
|
2807
|
+
static fromJsonString(jsonString, options) {
|
|
2808
|
+
return new RwaSparklinePoint().fromJsonString(jsonString, options);
|
|
2809
|
+
}
|
|
2810
|
+
static equals(a, b) {
|
|
2811
|
+
return proto3.util.equals(RwaSparklinePoint, a, b);
|
|
2812
|
+
}
|
|
2813
|
+
}
|
|
2814
|
+
RwaSparklinePoint.runtime = proto3;
|
|
2815
|
+
RwaSparklinePoint.typeName = "data.v1.RwaSparklinePoint";
|
|
2816
|
+
RwaSparklinePoint.fields = proto3.util.newFieldList(() => [
|
|
2817
|
+
{ no: 1, name: "timestamp_s", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
2818
|
+
{ no: 2, name: "value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
2561
2819
|
]);
|
|
@@ -187,14 +187,20 @@ export declare class EarnPosition extends Message<EarnPosition> {
|
|
|
187
187
|
status: EarnPositionStatus;
|
|
188
188
|
/**
|
|
189
189
|
* Lifetime PnL in underlying-asset units (signed BigInt as string):
|
|
190
|
-
* current_assets_raw + Σ(withdrawals) − Σ(deposits)
|
|
191
|
-
*
|
|
190
|
+
* current_assets_raw + Σ(withdrawals) − Σ(deposits) across the wallet's
|
|
191
|
+
* entire history with this vault. Survives full withdraw + redeposit
|
|
192
|
+
* cycles, unlike Morpho's holding-period pnl. Transfers in/out are
|
|
193
|
+
* ignored (Option 1 — see lifetime earnings design doc). Populated by
|
|
194
|
+
* GetEarnPosition; left empty by ListEarnPositions to keep list traffic
|
|
195
|
+
* cheap.
|
|
192
196
|
*
|
|
193
197
|
* @generated from field: optional string lifetime_pnl_raw = 6;
|
|
194
198
|
*/
|
|
195
199
|
lifetimePnlRaw?: string;
|
|
196
200
|
/**
|
|
197
|
-
* lifetime_pnl_raw
|
|
201
|
+
* USD valuation of lifetime_pnl_raw, priced at the underlying's current
|
|
202
|
+
* USD price (matches Morpho's pnlUsd semantics). Undefined when the
|
|
203
|
+
* underlying has no usable USD price or the position is empty.
|
|
198
204
|
*
|
|
199
205
|
* @generated from field: optional double lifetime_pnl_usd = 7;
|
|
200
206
|
*/
|