@uniswap/client-data-api 0.0.106 → 0.0.108
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/types_pb.d.ts +29 -0
- package/dist/data/v1/types_pb.js +36 -0
- package/dist/data/v2/api-DataApiService_connectquery.d.ts +14 -1
- package/dist/data/v2/api-DataApiService_connectquery.js +14 -1
- package/dist/data/v2/api_connect.d.ts +10 -1
- package/dist/data/v2/api_connect.js +10 -1
- package/dist/data/v2/api_pb.d.ts +55 -23
- package/dist/data/v2/api_pb.js +68 -19
- package/dist/data/v2/types_pb.d.ts +130 -0
- package/dist/data/v2/types_pb.js +173 -0
- package/package.json +1 -1
|
@@ -1289,6 +1289,10 @@ export declare class OnChainTransaction extends Message<OnChainTransaction> {
|
|
|
1289
1289
|
* @generated from field: optional data.v1.Paymaster paymaster = 13;
|
|
1290
1290
|
*/
|
|
1291
1291
|
paymaster?: Paymaster;
|
|
1292
|
+
/**
|
|
1293
|
+
* @generated from field: optional data.v1.SponsorshipMetadata sponsorship = 14;
|
|
1294
|
+
*/
|
|
1295
|
+
sponsorship?: SponsorshipMetadata;
|
|
1292
1296
|
constructor(data?: PartialMessage<OnChainTransaction>);
|
|
1293
1297
|
static readonly runtime: typeof proto3;
|
|
1294
1298
|
static readonly typeName = "data.v1.OnChainTransaction";
|
|
@@ -1935,6 +1939,31 @@ export declare class Paymaster extends Message<Paymaster> {
|
|
|
1935
1939
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Paymaster;
|
|
1936
1940
|
static equals(a: Paymaster | PlainMessage<Paymaster> | undefined, b: Paymaster | PlainMessage<Paymaster> | undefined): boolean;
|
|
1937
1941
|
}
|
|
1942
|
+
/**
|
|
1943
|
+
* Sponsor identity for a gas-sponsored transaction, resolved from the
|
|
1944
|
+
* internal Sponsorship service (platform-service). Complements Paymaster,
|
|
1945
|
+
* which only carries the on-chain paymaster contract address.
|
|
1946
|
+
*
|
|
1947
|
+
* @generated from message data.v1.SponsorshipMetadata
|
|
1948
|
+
*/
|
|
1949
|
+
export declare class SponsorshipMetadata extends Message<SponsorshipMetadata> {
|
|
1950
|
+
/**
|
|
1951
|
+
* @generated from field: string name = 1;
|
|
1952
|
+
*/
|
|
1953
|
+
name: string;
|
|
1954
|
+
/**
|
|
1955
|
+
* @generated from field: optional string logo_url = 2;
|
|
1956
|
+
*/
|
|
1957
|
+
logoUrl?: string;
|
|
1958
|
+
constructor(data?: PartialMessage<SponsorshipMetadata>);
|
|
1959
|
+
static readonly runtime: typeof proto3;
|
|
1960
|
+
static readonly typeName = "data.v1.SponsorshipMetadata";
|
|
1961
|
+
static readonly fields: FieldList;
|
|
1962
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorshipMetadata;
|
|
1963
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorshipMetadata;
|
|
1964
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorshipMetadata;
|
|
1965
|
+
static equals(a: SponsorshipMetadata | PlainMessage<SponsorshipMetadata> | undefined, b: SponsorshipMetadata | PlainMessage<SponsorshipMetadata> | undefined): boolean;
|
|
1966
|
+
}
|
|
1938
1967
|
/**
|
|
1939
1968
|
* @generated from message data.v1.WalletProfitLoss
|
|
1940
1969
|
*/
|
package/dist/data/v1/types_pb.js
CHANGED
|
@@ -1693,6 +1693,7 @@ OnChainTransaction.fields = proto3.util.newFieldList(() => [
|
|
|
1693
1693
|
{ no: 11, name: "protocol", kind: "message", T: ProtocolMetadata, opt: true },
|
|
1694
1694
|
{ no: 12, name: "fee", kind: "message", T: TransactionFee },
|
|
1695
1695
|
{ no: 13, name: "paymaster", kind: "message", T: Paymaster, opt: true },
|
|
1696
|
+
{ no: 14, name: "sponsorship", kind: "message", T: SponsorshipMetadata, opt: true },
|
|
1696
1697
|
]);
|
|
1697
1698
|
/**
|
|
1698
1699
|
* @generated from message data.v1.Transfer
|
|
@@ -2406,6 +2407,41 @@ Paymaster.fields = proto3.util.newFieldList(() => [
|
|
|
2406
2407
|
{ no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2407
2408
|
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2408
2409
|
]);
|
|
2410
|
+
/**
|
|
2411
|
+
* Sponsor identity for a gas-sponsored transaction, resolved from the
|
|
2412
|
+
* internal Sponsorship service (platform-service). Complements Paymaster,
|
|
2413
|
+
* which only carries the on-chain paymaster contract address.
|
|
2414
|
+
*
|
|
2415
|
+
* @generated from message data.v1.SponsorshipMetadata
|
|
2416
|
+
*/
|
|
2417
|
+
export class SponsorshipMetadata extends Message {
|
|
2418
|
+
constructor(data) {
|
|
2419
|
+
super();
|
|
2420
|
+
/**
|
|
2421
|
+
* @generated from field: string name = 1;
|
|
2422
|
+
*/
|
|
2423
|
+
this.name = "";
|
|
2424
|
+
proto3.util.initPartial(data, this);
|
|
2425
|
+
}
|
|
2426
|
+
static fromBinary(bytes, options) {
|
|
2427
|
+
return new SponsorshipMetadata().fromBinary(bytes, options);
|
|
2428
|
+
}
|
|
2429
|
+
static fromJson(jsonValue, options) {
|
|
2430
|
+
return new SponsorshipMetadata().fromJson(jsonValue, options);
|
|
2431
|
+
}
|
|
2432
|
+
static fromJsonString(jsonString, options) {
|
|
2433
|
+
return new SponsorshipMetadata().fromJsonString(jsonString, options);
|
|
2434
|
+
}
|
|
2435
|
+
static equals(a, b) {
|
|
2436
|
+
return proto3.util.equals(SponsorshipMetadata, a, b);
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
SponsorshipMetadata.runtime = proto3;
|
|
2440
|
+
SponsorshipMetadata.typeName = "data.v1.SponsorshipMetadata";
|
|
2441
|
+
SponsorshipMetadata.fields = proto3.util.newFieldList(() => [
|
|
2442
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2443
|
+
{ no: 2, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2444
|
+
]);
|
|
2409
2445
|
/**
|
|
2410
2446
|
* @generated from message data.v1.WalletProfitLoss
|
|
2411
2447
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
2
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc data.v2.DataApiService.GetToken
|
|
5
5
|
*/
|
|
@@ -91,6 +91,19 @@ export declare const getTokenHistoryOHLC: {
|
|
|
91
91
|
readonly typeName: "data.v2.DataApiService";
|
|
92
92
|
};
|
|
93
93
|
};
|
|
94
|
+
/**
|
|
95
|
+
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
96
|
+
*/
|
|
97
|
+
export declare const convertFiat: {
|
|
98
|
+
readonly localName: "convertFiat";
|
|
99
|
+
readonly name: "ConvertFiat";
|
|
100
|
+
readonly kind: MethodKind.Unary;
|
|
101
|
+
readonly I: typeof ConvertFiatRequest;
|
|
102
|
+
readonly O: typeof ConvertFiatResponse;
|
|
103
|
+
readonly service: {
|
|
104
|
+
readonly typeName: "data.v2.DataApiService";
|
|
105
|
+
};
|
|
106
|
+
};
|
|
94
107
|
/**
|
|
95
108
|
* @generated from rpc data.v2.DataApiService.ListEarnVaults
|
|
96
109
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
6
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc data.v2.DataApiService.GetToken
|
|
9
9
|
*/
|
|
@@ -95,6 +95,19 @@ export const getTokenHistoryOHLC = {
|
|
|
95
95
|
typeName: "data.v2.DataApiService"
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
|
+
/**
|
|
99
|
+
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
100
|
+
*/
|
|
101
|
+
export const convertFiat = {
|
|
102
|
+
localName: "convertFiat",
|
|
103
|
+
name: "ConvertFiat",
|
|
104
|
+
kind: MethodKind.Unary,
|
|
105
|
+
I: ConvertFiatRequest,
|
|
106
|
+
O: ConvertFiatResponse,
|
|
107
|
+
service: {
|
|
108
|
+
typeName: "data.v2.DataApiService"
|
|
109
|
+
}
|
|
110
|
+
};
|
|
98
111
|
/**
|
|
99
112
|
* @generated from rpc data.v2.DataApiService.ListEarnVaults
|
|
100
113
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
1
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service data.v2.DataApiService
|
|
@@ -69,6 +69,15 @@ export declare const DataApiService: {
|
|
|
69
69
|
readonly O: typeof GetTokenHistoryOHLCResponse;
|
|
70
70
|
readonly kind: MethodKind.Unary;
|
|
71
71
|
};
|
|
72
|
+
/**
|
|
73
|
+
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
74
|
+
*/
|
|
75
|
+
readonly convertFiat: {
|
|
76
|
+
readonly name: "ConvertFiat";
|
|
77
|
+
readonly I: typeof ConvertFiatRequest;
|
|
78
|
+
readonly O: typeof ConvertFiatResponse;
|
|
79
|
+
readonly kind: MethodKind.Unary;
|
|
80
|
+
};
|
|
72
81
|
/**
|
|
73
82
|
* @generated from rpc data.v2.DataApiService.ListEarnVaults
|
|
74
83
|
*/
|
|
@@ -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, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
5
|
+
import { ConvertFiatRequest, ConvertFiatResponse, GetEarnPositionRequest, GetEarnPositionResponse, GetTokenHistoryOHLCRequest, GetTokenHistoryOHLCResponse, GetTokenMarketsMultiChainRequest, GetTokenMarketsMultiChainResponse, GetTokenMarketsRequest, GetTokenMarketsResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse, ListTokensRequest, ListTokensResponse } from "./api_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service data.v2.DataApiService
|
|
@@ -73,6 +73,15 @@ export const DataApiService = {
|
|
|
73
73
|
O: GetTokenHistoryOHLCResponse,
|
|
74
74
|
kind: MethodKind.Unary,
|
|
75
75
|
},
|
|
76
|
+
/**
|
|
77
|
+
* @generated from rpc data.v2.DataApiService.ConvertFiat
|
|
78
|
+
*/
|
|
79
|
+
convertFiat: {
|
|
80
|
+
name: "ConvertFiat",
|
|
81
|
+
I: ConvertFiatRequest,
|
|
82
|
+
O: ConvertFiatResponse,
|
|
83
|
+
kind: MethodKind.Unary,
|
|
84
|
+
},
|
|
76
85
|
/**
|
|
77
86
|
* @generated from rpc data.v2.DataApiService.ListEarnVaults
|
|
78
87
|
*/
|
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
-
import { HistoryDuration, MultichainToken, MultichainTokenMarket, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
|
|
3
|
+
import { FiatAmount, FiatCurrency, HistoryDuration, MultichainToken, MultichainTokenMarket, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
|
|
4
4
|
import { EarnPosition, EarnVault } from "./earn_pb.js";
|
|
5
5
|
import { PageRequest, PageResponse } from "./common_pb.js";
|
|
6
6
|
/**
|
|
@@ -33,8 +33,6 @@ export declare class GetTokenMarketsRequest extends Message<GetTokenMarketsReque
|
|
|
33
33
|
*/
|
|
34
34
|
export declare class GetTokenMarketsResponse extends Message<GetTokenMarketsResponse> {
|
|
35
35
|
/**
|
|
36
|
-
* One TokenMarket per requested token, in request order.
|
|
37
|
-
*
|
|
38
36
|
* @generated from field: repeated data.v2.TokenMarket markets = 1;
|
|
39
37
|
*/
|
|
40
38
|
markets: TokenMarket[];
|
|
@@ -90,8 +88,6 @@ export declare class GetTokenMarketsMultiChainRequest extends Message<GetTokenMa
|
|
|
90
88
|
*/
|
|
91
89
|
export declare class GetTokenMarketsMultiChainResponse extends Message<GetTokenMarketsMultiChainResponse> {
|
|
92
90
|
/**
|
|
93
|
-
* One MultichainTokenMarket per distinct multichain identity, best-effort.
|
|
94
|
-
*
|
|
95
91
|
* @generated from field: repeated data.v2.MultichainTokenMarket markets = 1;
|
|
96
92
|
*/
|
|
97
93
|
markets: MultichainTokenMarket[];
|
|
@@ -105,9 +101,6 @@ export declare class GetTokenMarketsMultiChainResponse extends Message<GetTokenM
|
|
|
105
101
|
static equals(a: GetTokenMarketsMultiChainResponse | PlainMessage<GetTokenMarketsMultiChainResponse> | undefined, b: GetTokenMarketsMultiChainResponse | PlainMessage<GetTokenMarketsMultiChainResponse> | undefined): boolean;
|
|
106
102
|
}
|
|
107
103
|
/**
|
|
108
|
-
* OHLC candle history powering a token's price chart — for a single chain, or
|
|
109
|
-
* the canonical cross-chain view of a bridged asset.
|
|
110
|
-
*
|
|
111
104
|
* @generated from message data.v2.GetTokenHistoryOHLCRequest
|
|
112
105
|
*/
|
|
113
106
|
export declare class GetTokenHistoryOHLCRequest extends Message<GetTokenHistoryOHLCRequest> {
|
|
@@ -116,16 +109,12 @@ export declare class GetTokenHistoryOHLCRequest extends Message<GetTokenHistoryO
|
|
|
116
109
|
*/
|
|
117
110
|
target: {
|
|
118
111
|
/**
|
|
119
|
-
* exactly this chain's candles
|
|
120
|
-
*
|
|
121
112
|
* @generated from field: data.v2.TokenIdentifier single_chain = 1;
|
|
122
113
|
*/
|
|
123
114
|
value: TokenIdentifier;
|
|
124
115
|
case: "singleChain";
|
|
125
116
|
} | {
|
|
126
117
|
/**
|
|
127
|
-
* canonical chain's candles (mainnet -> else lowest chainId)
|
|
128
|
-
*
|
|
129
118
|
* @generated from field: data.v2.MultichainTarget multichain = 2;
|
|
130
119
|
*/
|
|
131
120
|
value: MultichainTarget;
|
|
@@ -135,8 +124,7 @@ export declare class GetTokenHistoryOHLCRequest extends Message<GetTokenHistoryO
|
|
|
135
124
|
value?: undefined;
|
|
136
125
|
};
|
|
137
126
|
/**
|
|
138
|
-
* Chart time range. UNSPECIFIED defaults to DAY;
|
|
139
|
-
* server-side from the duration.
|
|
127
|
+
* Chart time range. UNSPECIFIED defaults to DAY;
|
|
140
128
|
*
|
|
141
129
|
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
142
130
|
*/
|
|
@@ -151,9 +139,6 @@ export declare class GetTokenHistoryOHLCRequest extends Message<GetTokenHistoryO
|
|
|
151
139
|
static equals(a: GetTokenHistoryOHLCRequest | PlainMessage<GetTokenHistoryOHLCRequest> | undefined, b: GetTokenHistoryOHLCRequest | PlainMessage<GetTokenHistoryOHLCRequest> | undefined): boolean;
|
|
152
140
|
}
|
|
153
141
|
/**
|
|
154
|
-
* A logical cross-chain asset, by a member token or its multichain id.
|
|
155
|
-
* Reusable across the v2 chart endpoints.
|
|
156
|
-
*
|
|
157
142
|
* @generated from message data.v2.MultichainTarget
|
|
158
143
|
*/
|
|
159
144
|
export declare class MultichainTarget extends Message<MultichainTarget> {
|
|
@@ -162,6 +147,8 @@ export declare class MultichainTarget extends Message<MultichainTarget> {
|
|
|
162
147
|
*/
|
|
163
148
|
identifier: {
|
|
164
149
|
/**
|
|
150
|
+
* canonical chain's candles (mainnet -> else lowest chainId)
|
|
151
|
+
*
|
|
165
152
|
* @generated from field: data.v2.TokenIdentifier token = 1;
|
|
166
153
|
*/
|
|
167
154
|
value: TokenIdentifier;
|
|
@@ -190,10 +177,6 @@ export declare class MultichainTarget extends Message<MultichainTarget> {
|
|
|
190
177
|
*/
|
|
191
178
|
export declare class GetTokenHistoryOHLCResponse extends Message<GetTokenHistoryOHLCResponse> {
|
|
192
179
|
/**
|
|
193
|
-
* Candles in ascending time order. Buckets before the token's first known
|
|
194
|
-
* price are omitted; later gaps are forward-filled (a flat candle at the
|
|
195
|
-
* previous close).
|
|
196
|
-
*
|
|
197
180
|
* @generated from field: repeated data.v2.OhlcCandle candles = 1;
|
|
198
181
|
*/
|
|
199
182
|
candles: OhlcCandle[];
|
|
@@ -207,8 +190,6 @@ export declare class GetTokenHistoryOHLCResponse extends Message<GetTokenHistory
|
|
|
207
190
|
static equals(a: GetTokenHistoryOHLCResponse | PlainMessage<GetTokenHistoryOHLCResponse> | undefined, b: GetTokenHistoryOHLCResponse | PlainMessage<GetTokenHistoryOHLCResponse> | undefined): boolean;
|
|
208
191
|
}
|
|
209
192
|
/**
|
|
210
|
-
* One USD-denominated OHLC candle, labeled by its bucket-start time.
|
|
211
|
-
*
|
|
212
193
|
* @generated from message data.v2.OhlcCandle
|
|
213
194
|
*/
|
|
214
195
|
export declare class OhlcCandle extends Message<OhlcCandle> {
|
|
@@ -243,6 +224,57 @@ export declare class OhlcCandle extends Message<OhlcCandle> {
|
|
|
243
224
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OhlcCandle;
|
|
244
225
|
static equals(a: OhlcCandle | PlainMessage<OhlcCandle> | undefined, b: OhlcCandle | PlainMessage<OhlcCandle> | undefined): boolean;
|
|
245
226
|
}
|
|
227
|
+
/**
|
|
228
|
+
* 1:1 REST port of the legacy GraphQL `convert` query. Cross-currency pairs
|
|
229
|
+
* (e.g. EUR -> JPY) are computed from the same USD-base rates snapshot.
|
|
230
|
+
* Same-currency requests echo the amount back unchanged. Rates come from the
|
|
231
|
+
* provider's USD-base snapshot (updated ~every 5min); a 5-min server-side
|
|
232
|
+
* cache (serving the last good snapshot on upstream failure) is planned once
|
|
233
|
+
* the shared SWR cache infrastructure lands.
|
|
234
|
+
*
|
|
235
|
+
* @generated from message data.v2.ConvertFiatRequest
|
|
236
|
+
*/
|
|
237
|
+
export declare class ConvertFiatRequest extends Message<ConvertFiatRequest> {
|
|
238
|
+
/**
|
|
239
|
+
* required
|
|
240
|
+
*
|
|
241
|
+
* @generated from field: data.v2.FiatAmount from_amount = 1;
|
|
242
|
+
*/
|
|
243
|
+
fromAmount?: FiatAmount;
|
|
244
|
+
/**
|
|
245
|
+
* required
|
|
246
|
+
*
|
|
247
|
+
* @generated from field: data.v2.FiatCurrency to_currency = 2;
|
|
248
|
+
*/
|
|
249
|
+
toCurrency: FiatCurrency;
|
|
250
|
+
constructor(data?: PartialMessage<ConvertFiatRequest>);
|
|
251
|
+
static readonly runtime: typeof proto3;
|
|
252
|
+
static readonly typeName = "data.v2.ConvertFiatRequest";
|
|
253
|
+
static readonly fields: FieldList;
|
|
254
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConvertFiatRequest;
|
|
255
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConvertFiatRequest;
|
|
256
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConvertFiatRequest;
|
|
257
|
+
static equals(a: ConvertFiatRequest | PlainMessage<ConvertFiatRequest> | undefined, b: ConvertFiatRequest | PlainMessage<ConvertFiatRequest> | undefined): boolean;
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* @generated from message data.v2.ConvertFiatResponse
|
|
261
|
+
*/
|
|
262
|
+
export declare class ConvertFiatResponse extends Message<ConvertFiatResponse> {
|
|
263
|
+
/**
|
|
264
|
+
* from_amount.value x rate, in to_currency
|
|
265
|
+
*
|
|
266
|
+
* @generated from field: data.v2.FiatAmount converted_amount = 1;
|
|
267
|
+
*/
|
|
268
|
+
convertedAmount?: FiatAmount;
|
|
269
|
+
constructor(data?: PartialMessage<ConvertFiatResponse>);
|
|
270
|
+
static readonly runtime: typeof proto3;
|
|
271
|
+
static readonly typeName = "data.v2.ConvertFiatResponse";
|
|
272
|
+
static readonly fields: FieldList;
|
|
273
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConvertFiatResponse;
|
|
274
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConvertFiatResponse;
|
|
275
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConvertFiatResponse;
|
|
276
|
+
static equals(a: ConvertFiatResponse | PlainMessage<ConvertFiatResponse> | undefined, b: ConvertFiatResponse | PlainMessage<ConvertFiatResponse> | undefined): boolean;
|
|
277
|
+
}
|
|
246
278
|
/**
|
|
247
279
|
* @generated from message data.v2.GetTokenRequest
|
|
248
280
|
*/
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
6
|
-
import { HistoryDuration, MultichainToken, MultichainTokenMarket, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
|
|
6
|
+
import { FiatAmount, FiatCurrency, HistoryDuration, MultichainToken, MultichainTokenMarket, RankedMultichainToken, Token, TokenListFilter, TokenMarket, TokensSort } from "./types_pb.js";
|
|
7
7
|
import { EarnPosition, EarnVault } from "./earn_pb.js";
|
|
8
8
|
import { PageRequest, PageResponse } from "./common_pb.js";
|
|
9
9
|
/**
|
|
@@ -52,8 +52,6 @@ export class GetTokenMarketsResponse extends Message {
|
|
|
52
52
|
constructor(data) {
|
|
53
53
|
super();
|
|
54
54
|
/**
|
|
55
|
-
* One TokenMarket per requested token, in request order.
|
|
56
|
-
*
|
|
57
55
|
* @generated from field: repeated data.v2.TokenMarket markets = 1;
|
|
58
56
|
*/
|
|
59
57
|
this.markets = [];
|
|
@@ -122,8 +120,6 @@ export class GetTokenMarketsMultiChainResponse extends Message {
|
|
|
122
120
|
constructor(data) {
|
|
123
121
|
super();
|
|
124
122
|
/**
|
|
125
|
-
* One MultichainTokenMarket per distinct multichain identity, best-effort.
|
|
126
|
-
*
|
|
127
123
|
* @generated from field: repeated data.v2.MultichainTokenMarket markets = 1;
|
|
128
124
|
*/
|
|
129
125
|
this.markets = [];
|
|
@@ -148,9 +144,6 @@ GetTokenMarketsMultiChainResponse.fields = proto3.util.newFieldList(() => [
|
|
|
148
144
|
{ no: 1, name: "markets", kind: "message", T: MultichainTokenMarket, repeated: true },
|
|
149
145
|
]);
|
|
150
146
|
/**
|
|
151
|
-
* OHLC candle history powering a token's price chart — for a single chain, or
|
|
152
|
-
* the canonical cross-chain view of a bridged asset.
|
|
153
|
-
*
|
|
154
147
|
* @generated from message data.v2.GetTokenHistoryOHLCRequest
|
|
155
148
|
*/
|
|
156
149
|
export class GetTokenHistoryOHLCRequest extends Message {
|
|
@@ -161,8 +154,7 @@ export class GetTokenHistoryOHLCRequest extends Message {
|
|
|
161
154
|
*/
|
|
162
155
|
this.target = { case: undefined };
|
|
163
156
|
/**
|
|
164
|
-
* Chart time range. UNSPECIFIED defaults to DAY;
|
|
165
|
-
* server-side from the duration.
|
|
157
|
+
* Chart time range. UNSPECIFIED defaults to DAY;
|
|
166
158
|
*
|
|
167
159
|
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
168
160
|
*/
|
|
@@ -190,9 +182,6 @@ GetTokenHistoryOHLCRequest.fields = proto3.util.newFieldList(() => [
|
|
|
190
182
|
{ no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
|
|
191
183
|
]);
|
|
192
184
|
/**
|
|
193
|
-
* A logical cross-chain asset, by a member token or its multichain id.
|
|
194
|
-
* Reusable across the v2 chart endpoints.
|
|
195
|
-
*
|
|
196
185
|
* @generated from message data.v2.MultichainTarget
|
|
197
186
|
*/
|
|
198
187
|
export class MultichainTarget extends Message {
|
|
@@ -230,10 +219,6 @@ export class GetTokenHistoryOHLCResponse extends Message {
|
|
|
230
219
|
constructor(data) {
|
|
231
220
|
super();
|
|
232
221
|
/**
|
|
233
|
-
* Candles in ascending time order. Buckets before the token's first known
|
|
234
|
-
* price are omitted; later gaps are forward-filled (a flat candle at the
|
|
235
|
-
* previous close).
|
|
236
|
-
*
|
|
237
222
|
* @generated from field: repeated data.v2.OhlcCandle candles = 1;
|
|
238
223
|
*/
|
|
239
224
|
this.candles = [];
|
|
@@ -258,8 +243,6 @@ GetTokenHistoryOHLCResponse.fields = proto3.util.newFieldList(() => [
|
|
|
258
243
|
{ no: 1, name: "candles", kind: "message", T: OhlcCandle, repeated: true },
|
|
259
244
|
]);
|
|
260
245
|
/**
|
|
261
|
-
* One USD-denominated OHLC candle, labeled by its bucket-start time.
|
|
262
|
-
*
|
|
263
246
|
* @generated from message data.v2.OhlcCandle
|
|
264
247
|
*/
|
|
265
248
|
export class OhlcCandle extends Message {
|
|
@@ -311,6 +294,72 @@ OhlcCandle.fields = proto3.util.newFieldList(() => [
|
|
|
311
294
|
{ no: 4, name: "low_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
312
295
|
{ no: 5, name: "close_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
313
296
|
]);
|
|
297
|
+
/**
|
|
298
|
+
* 1:1 REST port of the legacy GraphQL `convert` query. Cross-currency pairs
|
|
299
|
+
* (e.g. EUR -> JPY) are computed from the same USD-base rates snapshot.
|
|
300
|
+
* Same-currency requests echo the amount back unchanged. Rates come from the
|
|
301
|
+
* provider's USD-base snapshot (updated ~every 5min); a 5-min server-side
|
|
302
|
+
* cache (serving the last good snapshot on upstream failure) is planned once
|
|
303
|
+
* the shared SWR cache infrastructure lands.
|
|
304
|
+
*
|
|
305
|
+
* @generated from message data.v2.ConvertFiatRequest
|
|
306
|
+
*/
|
|
307
|
+
export class ConvertFiatRequest extends Message {
|
|
308
|
+
constructor(data) {
|
|
309
|
+
super();
|
|
310
|
+
/**
|
|
311
|
+
* required
|
|
312
|
+
*
|
|
313
|
+
* @generated from field: data.v2.FiatCurrency to_currency = 2;
|
|
314
|
+
*/
|
|
315
|
+
this.toCurrency = FiatCurrency.UNSPECIFIED;
|
|
316
|
+
proto3.util.initPartial(data, this);
|
|
317
|
+
}
|
|
318
|
+
static fromBinary(bytes, options) {
|
|
319
|
+
return new ConvertFiatRequest().fromBinary(bytes, options);
|
|
320
|
+
}
|
|
321
|
+
static fromJson(jsonValue, options) {
|
|
322
|
+
return new ConvertFiatRequest().fromJson(jsonValue, options);
|
|
323
|
+
}
|
|
324
|
+
static fromJsonString(jsonString, options) {
|
|
325
|
+
return new ConvertFiatRequest().fromJsonString(jsonString, options);
|
|
326
|
+
}
|
|
327
|
+
static equals(a, b) {
|
|
328
|
+
return proto3.util.equals(ConvertFiatRequest, a, b);
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
ConvertFiatRequest.runtime = proto3;
|
|
332
|
+
ConvertFiatRequest.typeName = "data.v2.ConvertFiatRequest";
|
|
333
|
+
ConvertFiatRequest.fields = proto3.util.newFieldList(() => [
|
|
334
|
+
{ no: 1, name: "from_amount", kind: "message", T: FiatAmount },
|
|
335
|
+
{ no: 2, name: "to_currency", kind: "enum", T: proto3.getEnumType(FiatCurrency) },
|
|
336
|
+
]);
|
|
337
|
+
/**
|
|
338
|
+
* @generated from message data.v2.ConvertFiatResponse
|
|
339
|
+
*/
|
|
340
|
+
export class ConvertFiatResponse extends Message {
|
|
341
|
+
constructor(data) {
|
|
342
|
+
super();
|
|
343
|
+
proto3.util.initPartial(data, this);
|
|
344
|
+
}
|
|
345
|
+
static fromBinary(bytes, options) {
|
|
346
|
+
return new ConvertFiatResponse().fromBinary(bytes, options);
|
|
347
|
+
}
|
|
348
|
+
static fromJson(jsonValue, options) {
|
|
349
|
+
return new ConvertFiatResponse().fromJson(jsonValue, options);
|
|
350
|
+
}
|
|
351
|
+
static fromJsonString(jsonString, options) {
|
|
352
|
+
return new ConvertFiatResponse().fromJsonString(jsonString, options);
|
|
353
|
+
}
|
|
354
|
+
static equals(a, b) {
|
|
355
|
+
return proto3.util.equals(ConvertFiatResponse, a, b);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
ConvertFiatResponse.runtime = proto3;
|
|
359
|
+
ConvertFiatResponse.typeName = "data.v2.ConvertFiatResponse";
|
|
360
|
+
ConvertFiatResponse.fields = proto3.util.newFieldList(() => [
|
|
361
|
+
{ no: 1, name: "converted_amount", kind: "message", T: FiatAmount },
|
|
362
|
+
]);
|
|
314
363
|
/**
|
|
315
364
|
* @generated from message data.v2.GetTokenRequest
|
|
316
365
|
*/
|
|
@@ -50,6 +50,115 @@ export declare enum TokensOrderBy {
|
|
|
50
50
|
*/
|
|
51
51
|
PRICE_CHANGE_1D = 10
|
|
52
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* The 24 fiat currencies the legacy GraphQL convert resolver accepts
|
|
55
|
+
* (ETH/MATIC intentionally unrepresentable). "Fiat" prefix avoids collision
|
|
56
|
+
* with the SDK's Currency (token) type.
|
|
57
|
+
*
|
|
58
|
+
* @generated from enum data.v2.FiatCurrency
|
|
59
|
+
*/
|
|
60
|
+
export declare enum FiatCurrency {
|
|
61
|
+
/**
|
|
62
|
+
* @generated from enum value: FIAT_CURRENCY_UNSPECIFIED = 0;
|
|
63
|
+
*/
|
|
64
|
+
UNSPECIFIED = 0,
|
|
65
|
+
/**
|
|
66
|
+
* @generated from enum value: FIAT_CURRENCY_ARS = 1;
|
|
67
|
+
*/
|
|
68
|
+
ARS = 1,
|
|
69
|
+
/**
|
|
70
|
+
* @generated from enum value: FIAT_CURRENCY_AUD = 2;
|
|
71
|
+
*/
|
|
72
|
+
AUD = 2,
|
|
73
|
+
/**
|
|
74
|
+
* @generated from enum value: FIAT_CURRENCY_BRL = 3;
|
|
75
|
+
*/
|
|
76
|
+
BRL = 3,
|
|
77
|
+
/**
|
|
78
|
+
* @generated from enum value: FIAT_CURRENCY_CAD = 4;
|
|
79
|
+
*/
|
|
80
|
+
CAD = 4,
|
|
81
|
+
/**
|
|
82
|
+
* @generated from enum value: FIAT_CURRENCY_CNY = 5;
|
|
83
|
+
*/
|
|
84
|
+
CNY = 5,
|
|
85
|
+
/**
|
|
86
|
+
* @generated from enum value: FIAT_CURRENCY_COP = 6;
|
|
87
|
+
*/
|
|
88
|
+
COP = 6,
|
|
89
|
+
/**
|
|
90
|
+
* @generated from enum value: FIAT_CURRENCY_EUR = 7;
|
|
91
|
+
*/
|
|
92
|
+
EUR = 7,
|
|
93
|
+
/**
|
|
94
|
+
* @generated from enum value: FIAT_CURRENCY_GBP = 8;
|
|
95
|
+
*/
|
|
96
|
+
GBP = 8,
|
|
97
|
+
/**
|
|
98
|
+
* @generated from enum value: FIAT_CURRENCY_HKD = 9;
|
|
99
|
+
*/
|
|
100
|
+
HKD = 9,
|
|
101
|
+
/**
|
|
102
|
+
* @generated from enum value: FIAT_CURRENCY_IDR = 10;
|
|
103
|
+
*/
|
|
104
|
+
IDR = 10,
|
|
105
|
+
/**
|
|
106
|
+
* @generated from enum value: FIAT_CURRENCY_INR = 11;
|
|
107
|
+
*/
|
|
108
|
+
INR = 11,
|
|
109
|
+
/**
|
|
110
|
+
* @generated from enum value: FIAT_CURRENCY_JPY = 12;
|
|
111
|
+
*/
|
|
112
|
+
JPY = 12,
|
|
113
|
+
/**
|
|
114
|
+
* @generated from enum value: FIAT_CURRENCY_KRW = 13;
|
|
115
|
+
*/
|
|
116
|
+
KRW = 13,
|
|
117
|
+
/**
|
|
118
|
+
* @generated from enum value: FIAT_CURRENCY_MXN = 14;
|
|
119
|
+
*/
|
|
120
|
+
MXN = 14,
|
|
121
|
+
/**
|
|
122
|
+
* @generated from enum value: FIAT_CURRENCY_NGN = 15;
|
|
123
|
+
*/
|
|
124
|
+
NGN = 15,
|
|
125
|
+
/**
|
|
126
|
+
* @generated from enum value: FIAT_CURRENCY_NZD = 16;
|
|
127
|
+
*/
|
|
128
|
+
NZD = 16,
|
|
129
|
+
/**
|
|
130
|
+
* @generated from enum value: FIAT_CURRENCY_PKR = 17;
|
|
131
|
+
*/
|
|
132
|
+
PKR = 17,
|
|
133
|
+
/**
|
|
134
|
+
* @generated from enum value: FIAT_CURRENCY_RUB = 18;
|
|
135
|
+
*/
|
|
136
|
+
RUB = 18,
|
|
137
|
+
/**
|
|
138
|
+
* @generated from enum value: FIAT_CURRENCY_SGD = 19;
|
|
139
|
+
*/
|
|
140
|
+
SGD = 19,
|
|
141
|
+
/**
|
|
142
|
+
* @generated from enum value: FIAT_CURRENCY_THB = 20;
|
|
143
|
+
*/
|
|
144
|
+
THB = 20,
|
|
145
|
+
/**
|
|
146
|
+
* @generated from enum value: FIAT_CURRENCY_TRY = 21;
|
|
147
|
+
*/
|
|
148
|
+
TRY = 21,
|
|
149
|
+
/**
|
|
150
|
+
* @generated from enum value: FIAT_CURRENCY_UAH = 22;
|
|
151
|
+
*/
|
|
152
|
+
UAH = 22,
|
|
153
|
+
/**
|
|
154
|
+
* @generated from enum value: FIAT_CURRENCY_USD = 23;
|
|
155
|
+
*/
|
|
156
|
+
USD = 23,
|
|
157
|
+
/**
|
|
158
|
+
* @generated from enum value: FIAT_CURRENCY_VND = 24;
|
|
159
|
+
*/
|
|
160
|
+
VND = 24
|
|
161
|
+
}
|
|
53
162
|
/**
|
|
54
163
|
* Time window for windowed token-market stats; FIVE_MINUTE is intentionally omitted.
|
|
55
164
|
*
|
|
@@ -197,6 +306,27 @@ export declare class TokenListFilter extends Message<TokenListFilter> {
|
|
|
197
306
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenListFilter;
|
|
198
307
|
static equals(a: TokenListFilter | PlainMessage<TokenListFilter> | undefined, b: TokenListFilter | PlainMessage<TokenListFilter> | undefined): boolean;
|
|
199
308
|
}
|
|
309
|
+
/**
|
|
310
|
+
* @generated from message data.v2.FiatAmount
|
|
311
|
+
*/
|
|
312
|
+
export declare class FiatAmount extends Message<FiatAmount> {
|
|
313
|
+
/**
|
|
314
|
+
* @generated from field: data.v2.FiatCurrency currency = 1;
|
|
315
|
+
*/
|
|
316
|
+
currency: FiatCurrency;
|
|
317
|
+
/**
|
|
318
|
+
* @generated from field: double value = 2;
|
|
319
|
+
*/
|
|
320
|
+
value: number;
|
|
321
|
+
constructor(data?: PartialMessage<FiatAmount>);
|
|
322
|
+
static readonly runtime: typeof proto3;
|
|
323
|
+
static readonly typeName = "data.v2.FiatAmount";
|
|
324
|
+
static readonly fields: FieldList;
|
|
325
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FiatAmount;
|
|
326
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FiatAmount;
|
|
327
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FiatAmount;
|
|
328
|
+
static equals(a: FiatAmount | PlainMessage<FiatAmount> | undefined, b: FiatAmount | PlainMessage<FiatAmount> | undefined): boolean;
|
|
329
|
+
}
|
|
200
330
|
/**
|
|
201
331
|
* Per-chain volume breakdown within a RankedMultichainToken.
|
|
202
332
|
*
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -68,6 +68,144 @@ 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
|
+
* The 24 fiat currencies the legacy GraphQL convert resolver accepts
|
|
73
|
+
* (ETH/MATIC intentionally unrepresentable). "Fiat" prefix avoids collision
|
|
74
|
+
* with the SDK's Currency (token) type.
|
|
75
|
+
*
|
|
76
|
+
* @generated from enum data.v2.FiatCurrency
|
|
77
|
+
*/
|
|
78
|
+
export var FiatCurrency;
|
|
79
|
+
(function (FiatCurrency) {
|
|
80
|
+
/**
|
|
81
|
+
* @generated from enum value: FIAT_CURRENCY_UNSPECIFIED = 0;
|
|
82
|
+
*/
|
|
83
|
+
FiatCurrency[FiatCurrency["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
84
|
+
/**
|
|
85
|
+
* @generated from enum value: FIAT_CURRENCY_ARS = 1;
|
|
86
|
+
*/
|
|
87
|
+
FiatCurrency[FiatCurrency["ARS"] = 1] = "ARS";
|
|
88
|
+
/**
|
|
89
|
+
* @generated from enum value: FIAT_CURRENCY_AUD = 2;
|
|
90
|
+
*/
|
|
91
|
+
FiatCurrency[FiatCurrency["AUD"] = 2] = "AUD";
|
|
92
|
+
/**
|
|
93
|
+
* @generated from enum value: FIAT_CURRENCY_BRL = 3;
|
|
94
|
+
*/
|
|
95
|
+
FiatCurrency[FiatCurrency["BRL"] = 3] = "BRL";
|
|
96
|
+
/**
|
|
97
|
+
* @generated from enum value: FIAT_CURRENCY_CAD = 4;
|
|
98
|
+
*/
|
|
99
|
+
FiatCurrency[FiatCurrency["CAD"] = 4] = "CAD";
|
|
100
|
+
/**
|
|
101
|
+
* @generated from enum value: FIAT_CURRENCY_CNY = 5;
|
|
102
|
+
*/
|
|
103
|
+
FiatCurrency[FiatCurrency["CNY"] = 5] = "CNY";
|
|
104
|
+
/**
|
|
105
|
+
* @generated from enum value: FIAT_CURRENCY_COP = 6;
|
|
106
|
+
*/
|
|
107
|
+
FiatCurrency[FiatCurrency["COP"] = 6] = "COP";
|
|
108
|
+
/**
|
|
109
|
+
* @generated from enum value: FIAT_CURRENCY_EUR = 7;
|
|
110
|
+
*/
|
|
111
|
+
FiatCurrency[FiatCurrency["EUR"] = 7] = "EUR";
|
|
112
|
+
/**
|
|
113
|
+
* @generated from enum value: FIAT_CURRENCY_GBP = 8;
|
|
114
|
+
*/
|
|
115
|
+
FiatCurrency[FiatCurrency["GBP"] = 8] = "GBP";
|
|
116
|
+
/**
|
|
117
|
+
* @generated from enum value: FIAT_CURRENCY_HKD = 9;
|
|
118
|
+
*/
|
|
119
|
+
FiatCurrency[FiatCurrency["HKD"] = 9] = "HKD";
|
|
120
|
+
/**
|
|
121
|
+
* @generated from enum value: FIAT_CURRENCY_IDR = 10;
|
|
122
|
+
*/
|
|
123
|
+
FiatCurrency[FiatCurrency["IDR"] = 10] = "IDR";
|
|
124
|
+
/**
|
|
125
|
+
* @generated from enum value: FIAT_CURRENCY_INR = 11;
|
|
126
|
+
*/
|
|
127
|
+
FiatCurrency[FiatCurrency["INR"] = 11] = "INR";
|
|
128
|
+
/**
|
|
129
|
+
* @generated from enum value: FIAT_CURRENCY_JPY = 12;
|
|
130
|
+
*/
|
|
131
|
+
FiatCurrency[FiatCurrency["JPY"] = 12] = "JPY";
|
|
132
|
+
/**
|
|
133
|
+
* @generated from enum value: FIAT_CURRENCY_KRW = 13;
|
|
134
|
+
*/
|
|
135
|
+
FiatCurrency[FiatCurrency["KRW"] = 13] = "KRW";
|
|
136
|
+
/**
|
|
137
|
+
* @generated from enum value: FIAT_CURRENCY_MXN = 14;
|
|
138
|
+
*/
|
|
139
|
+
FiatCurrency[FiatCurrency["MXN"] = 14] = "MXN";
|
|
140
|
+
/**
|
|
141
|
+
* @generated from enum value: FIAT_CURRENCY_NGN = 15;
|
|
142
|
+
*/
|
|
143
|
+
FiatCurrency[FiatCurrency["NGN"] = 15] = "NGN";
|
|
144
|
+
/**
|
|
145
|
+
* @generated from enum value: FIAT_CURRENCY_NZD = 16;
|
|
146
|
+
*/
|
|
147
|
+
FiatCurrency[FiatCurrency["NZD"] = 16] = "NZD";
|
|
148
|
+
/**
|
|
149
|
+
* @generated from enum value: FIAT_CURRENCY_PKR = 17;
|
|
150
|
+
*/
|
|
151
|
+
FiatCurrency[FiatCurrency["PKR"] = 17] = "PKR";
|
|
152
|
+
/**
|
|
153
|
+
* @generated from enum value: FIAT_CURRENCY_RUB = 18;
|
|
154
|
+
*/
|
|
155
|
+
FiatCurrency[FiatCurrency["RUB"] = 18] = "RUB";
|
|
156
|
+
/**
|
|
157
|
+
* @generated from enum value: FIAT_CURRENCY_SGD = 19;
|
|
158
|
+
*/
|
|
159
|
+
FiatCurrency[FiatCurrency["SGD"] = 19] = "SGD";
|
|
160
|
+
/**
|
|
161
|
+
* @generated from enum value: FIAT_CURRENCY_THB = 20;
|
|
162
|
+
*/
|
|
163
|
+
FiatCurrency[FiatCurrency["THB"] = 20] = "THB";
|
|
164
|
+
/**
|
|
165
|
+
* @generated from enum value: FIAT_CURRENCY_TRY = 21;
|
|
166
|
+
*/
|
|
167
|
+
FiatCurrency[FiatCurrency["TRY"] = 21] = "TRY";
|
|
168
|
+
/**
|
|
169
|
+
* @generated from enum value: FIAT_CURRENCY_UAH = 22;
|
|
170
|
+
*/
|
|
171
|
+
FiatCurrency[FiatCurrency["UAH"] = 22] = "UAH";
|
|
172
|
+
/**
|
|
173
|
+
* @generated from enum value: FIAT_CURRENCY_USD = 23;
|
|
174
|
+
*/
|
|
175
|
+
FiatCurrency[FiatCurrency["USD"] = 23] = "USD";
|
|
176
|
+
/**
|
|
177
|
+
* @generated from enum value: FIAT_CURRENCY_VND = 24;
|
|
178
|
+
*/
|
|
179
|
+
FiatCurrency[FiatCurrency["VND"] = 24] = "VND";
|
|
180
|
+
})(FiatCurrency || (FiatCurrency = {}));
|
|
181
|
+
// Retrieve enum metadata with: proto3.getEnumType(FiatCurrency)
|
|
182
|
+
proto3.util.setEnumType(FiatCurrency, "data.v2.FiatCurrency", [
|
|
183
|
+
{ no: 0, name: "FIAT_CURRENCY_UNSPECIFIED" },
|
|
184
|
+
{ no: 1, name: "FIAT_CURRENCY_ARS" },
|
|
185
|
+
{ no: 2, name: "FIAT_CURRENCY_AUD" },
|
|
186
|
+
{ no: 3, name: "FIAT_CURRENCY_BRL" },
|
|
187
|
+
{ no: 4, name: "FIAT_CURRENCY_CAD" },
|
|
188
|
+
{ no: 5, name: "FIAT_CURRENCY_CNY" },
|
|
189
|
+
{ no: 6, name: "FIAT_CURRENCY_COP" },
|
|
190
|
+
{ no: 7, name: "FIAT_CURRENCY_EUR" },
|
|
191
|
+
{ no: 8, name: "FIAT_CURRENCY_GBP" },
|
|
192
|
+
{ no: 9, name: "FIAT_CURRENCY_HKD" },
|
|
193
|
+
{ no: 10, name: "FIAT_CURRENCY_IDR" },
|
|
194
|
+
{ no: 11, name: "FIAT_CURRENCY_INR" },
|
|
195
|
+
{ no: 12, name: "FIAT_CURRENCY_JPY" },
|
|
196
|
+
{ no: 13, name: "FIAT_CURRENCY_KRW" },
|
|
197
|
+
{ no: 14, name: "FIAT_CURRENCY_MXN" },
|
|
198
|
+
{ no: 15, name: "FIAT_CURRENCY_NGN" },
|
|
199
|
+
{ no: 16, name: "FIAT_CURRENCY_NZD" },
|
|
200
|
+
{ no: 17, name: "FIAT_CURRENCY_PKR" },
|
|
201
|
+
{ no: 18, name: "FIAT_CURRENCY_RUB" },
|
|
202
|
+
{ no: 19, name: "FIAT_CURRENCY_SGD" },
|
|
203
|
+
{ no: 20, name: "FIAT_CURRENCY_THB" },
|
|
204
|
+
{ no: 21, name: "FIAT_CURRENCY_TRY" },
|
|
205
|
+
{ no: 22, name: "FIAT_CURRENCY_UAH" },
|
|
206
|
+
{ no: 23, name: "FIAT_CURRENCY_USD" },
|
|
207
|
+
{ no: 24, name: "FIAT_CURRENCY_VND" },
|
|
208
|
+
]);
|
|
71
209
|
/**
|
|
72
210
|
* Time window for windowed token-market stats; FIVE_MINUTE is intentionally omitted.
|
|
73
211
|
*
|
|
@@ -213,6 +351,41 @@ TokenListFilter.fields = proto3.util.newFieldList(() => [
|
|
|
213
351
|
{ no: 2, name: "min_volume_1d_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
214
352
|
{ no: 3, name: "min_tvl_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
215
353
|
]);
|
|
354
|
+
/**
|
|
355
|
+
* @generated from message data.v2.FiatAmount
|
|
356
|
+
*/
|
|
357
|
+
export class FiatAmount extends Message {
|
|
358
|
+
constructor(data) {
|
|
359
|
+
super();
|
|
360
|
+
/**
|
|
361
|
+
* @generated from field: data.v2.FiatCurrency currency = 1;
|
|
362
|
+
*/
|
|
363
|
+
this.currency = FiatCurrency.UNSPECIFIED;
|
|
364
|
+
/**
|
|
365
|
+
* @generated from field: double value = 2;
|
|
366
|
+
*/
|
|
367
|
+
this.value = 0;
|
|
368
|
+
proto3.util.initPartial(data, this);
|
|
369
|
+
}
|
|
370
|
+
static fromBinary(bytes, options) {
|
|
371
|
+
return new FiatAmount().fromBinary(bytes, options);
|
|
372
|
+
}
|
|
373
|
+
static fromJson(jsonValue, options) {
|
|
374
|
+
return new FiatAmount().fromJson(jsonValue, options);
|
|
375
|
+
}
|
|
376
|
+
static fromJsonString(jsonString, options) {
|
|
377
|
+
return new FiatAmount().fromJsonString(jsonString, options);
|
|
378
|
+
}
|
|
379
|
+
static equals(a, b) {
|
|
380
|
+
return proto3.util.equals(FiatAmount, a, b);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
FiatAmount.runtime = proto3;
|
|
384
|
+
FiatAmount.typeName = "data.v2.FiatAmount";
|
|
385
|
+
FiatAmount.fields = proto3.util.newFieldList(() => [
|
|
386
|
+
{ no: 1, name: "currency", kind: "enum", T: proto3.getEnumType(FiatCurrency) },
|
|
387
|
+
{ no: 2, name: "value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
388
|
+
]);
|
|
216
389
|
/**
|
|
217
390
|
* Per-chain volume breakdown within a RankedMultichainToken.
|
|
218
391
|
*
|