@uniswap/client-data-api 0.0.154 → 0.0.156
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_pb.d.ts
CHANGED
|
@@ -978,12 +978,28 @@ export declare class PoolProtocolFees extends Message<PoolProtocolFees> {
|
|
|
978
978
|
*/
|
|
979
979
|
protocolFee?: number;
|
|
980
980
|
/**
|
|
981
|
-
* Effective (all-in) fee in pips
|
|
982
|
-
* displayed fee tier
|
|
981
|
+
* Effective (all-in) fee in pips — what the swapper pays. v4: fee_tier +
|
|
982
|
+
* protocol_fee; v2/v3: the displayed fee tier (the protocol's share is
|
|
983
|
+
* carved out of it, so the total is unchanged). UNSET when protocol_fee is
|
|
984
|
+
* unset, and ALSO for a v4 dynamic-fee pool, whose LP fee is set per swap
|
|
985
|
+
* by the hook — there is no static all-in fee to serve.
|
|
983
986
|
*
|
|
984
987
|
* @generated from field: optional uint32 effective_fee = 3;
|
|
985
988
|
*/
|
|
986
989
|
effectiveFee?: number;
|
|
990
|
+
/**
|
|
991
|
+
* The pool's LP fee tier in pips — the fee the pool was created with, before
|
|
992
|
+
* any protocol fee. v4: the static pool-key fee, fixed for the pool's
|
|
993
|
+
* lifetime; v2/v3: the displayed fee tier (note LPs keep only
|
|
994
|
+
* fee_tier − protocol_fee there, since v2/v3 protocol fees are subtractive).
|
|
995
|
+
* UNSET for an unknown pool, and for a v4 dynamic-fee pool, which has no
|
|
996
|
+
* static tier at all (its pool key holds the dynamic sentinel, not a fee).
|
|
997
|
+
* A dynamic-fee pool is therefore distinguishable from an unknown pool: it
|
|
998
|
+
* can carry a protocol_fee while both fee_tier and effective_fee are unset.
|
|
999
|
+
*
|
|
1000
|
+
* @generated from field: optional uint32 fee_tier = 4;
|
|
1001
|
+
*/
|
|
1002
|
+
feeTier?: number;
|
|
987
1003
|
constructor(data?: PartialMessage<PoolProtocolFees>);
|
|
988
1004
|
static readonly runtime: typeof proto3;
|
|
989
1005
|
static readonly typeName = "data.v1.PoolProtocolFees";
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -1397,6 +1397,7 @@ PoolProtocolFees.fields = proto3.util.newFieldList(() => [
|
|
|
1397
1397
|
{ no: 1, name: "pool_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1398
1398
|
{ no: 2, name: "protocol_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1399
1399
|
{ no: 3, name: "effective_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1400
|
+
{ no: 4, name: "fee_tier", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1400
1401
|
]);
|
|
1401
1402
|
/**
|
|
1402
1403
|
* @generated from message data.v1.GetProtocolFeesResponse
|
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, Timestamp } from "@bufbuild/protobuf";
|
|
3
|
-
import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, LaunchHolder, LaunchListFilter, Launchpad, MultichainToken, MultichainTokenMarket, Nft, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort, TokenTrade, TransactionEventType, UniswapTransaction } from "./types_pb.js";
|
|
3
|
+
import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, LaunchHolder, LaunchListFilter, Launchpad, MultichainToken, MultichainTokenMarket, Nft, OhlcResolution, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort, TokenTrade, TransactionEventType, UniswapTransaction } from "./types_pb.js";
|
|
4
4
|
import { PageRequest, PageResponse } from "./common_pb.js";
|
|
5
5
|
import { EarnPosition, EarnVault } from "./earn_pb.js";
|
|
6
6
|
import { TimestampedValue } from "../v1/types_pb.js";
|
|
@@ -172,6 +172,23 @@ export declare class GetTokenHistoryOHLCRequest extends Message<GetTokenHistoryO
|
|
|
172
172
|
* @generated from field: data.v2.HistoryDuration duration = 3;
|
|
173
173
|
*/
|
|
174
174
|
duration: HistoryDuration;
|
|
175
|
+
/**
|
|
176
|
+
* Ranged (TradingView) mode: when resolution is set (non-UNSPECIFIED) the
|
|
177
|
+
* series covers [start_time, end_time || now] at the given candle width and
|
|
178
|
+
* duration is ignored. start_time is required in this mode; end_time defaults
|
|
179
|
+
* to now. single_chain (EVM) only. Mirrors GetTokenHistoryPrice.start_time.
|
|
180
|
+
*
|
|
181
|
+
* @generated from field: optional google.protobuf.Timestamp start_time = 4;
|
|
182
|
+
*/
|
|
183
|
+
startTime?: Timestamp;
|
|
184
|
+
/**
|
|
185
|
+
* @generated from field: optional google.protobuf.Timestamp end_time = 5;
|
|
186
|
+
*/
|
|
187
|
+
endTime?: Timestamp;
|
|
188
|
+
/**
|
|
189
|
+
* @generated from field: optional data.v2.OhlcResolution resolution = 6;
|
|
190
|
+
*/
|
|
191
|
+
resolution?: OhlcResolution;
|
|
175
192
|
constructor(data?: PartialMessage<GetTokenHistoryOHLCRequest>);
|
|
176
193
|
static readonly runtime: typeof proto3;
|
|
177
194
|
static readonly typeName = "data.v2.GetTokenHistoryOHLCRequest";
|
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, Timestamp } from "@bufbuild/protobuf";
|
|
6
|
-
import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, LaunchHolder, LaunchListFilter, Launchpad, MultichainToken, MultichainTokenMarket, Nft, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort, TokenTrade, TransactionEventType, UniswapTransaction } from "./types_pb.js";
|
|
6
|
+
import { FiatAmount, FiatCurrency, HistoryDuration, Launch, LaunchesOrderBy, LaunchHolder, LaunchListFilter, Launchpad, MultichainToken, MultichainTokenMarket, Nft, OhlcResolution, PoolListFilter, PoolsSort, RankedMultichainToken, RankedPool, Token, TokenListFilter, TokenMarket, TokensSort, TokenTrade, TransactionEventType, UniswapTransaction } from "./types_pb.js";
|
|
7
7
|
import { PageRequest, PageResponse } from "./common_pb.js";
|
|
8
8
|
import { EarnPosition, EarnVault } from "./earn_pb.js";
|
|
9
9
|
import { TimestampedValue } from "../v1/types_pb.js";
|
|
@@ -234,6 +234,9 @@ GetTokenHistoryOHLCRequest.fields = proto3.util.newFieldList(() => [
|
|
|
234
234
|
{ no: 1, name: "single_chain", kind: "message", T: TokenIdentifier, oneof: "target" },
|
|
235
235
|
{ no: 2, name: "multichain", kind: "message", T: MultichainTarget, oneof: "target" },
|
|
236
236
|
{ no: 3, name: "duration", kind: "enum", T: proto3.getEnumType(HistoryDuration) },
|
|
237
|
+
{ no: 4, name: "start_time", kind: "message", T: Timestamp, opt: true },
|
|
238
|
+
{ no: 5, name: "end_time", kind: "message", T: Timestamp, opt: true },
|
|
239
|
+
{ no: 6, name: "resolution", kind: "enum", T: proto3.getEnumType(OhlcResolution), opt: true },
|
|
237
240
|
]);
|
|
238
241
|
/**
|
|
239
242
|
* @generated from message data.v2.MultichainTarget
|
|
@@ -172,6 +172,39 @@ export declare enum FiatCurrency {
|
|
|
172
172
|
*/
|
|
173
173
|
SEK = 25
|
|
174
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* Client-chosen candle width for the ranged (TradingView) OHLC mode. Served
|
|
177
|
+
* from token_price_history via the ClickHouse OHLC path. 1s (trades-derived)
|
|
178
|
+
* is intentionally omitted for now.
|
|
179
|
+
*
|
|
180
|
+
* @generated from enum data.v2.OhlcResolution
|
|
181
|
+
*/
|
|
182
|
+
export declare enum OhlcResolution {
|
|
183
|
+
/**
|
|
184
|
+
* @generated from enum value: OHLC_RESOLUTION_UNSPECIFIED = 0;
|
|
185
|
+
*/
|
|
186
|
+
UNSPECIFIED = 0,
|
|
187
|
+
/**
|
|
188
|
+
* @generated from enum value: OHLC_RESOLUTION_ONE_MINUTE = 1;
|
|
189
|
+
*/
|
|
190
|
+
ONE_MINUTE = 1,
|
|
191
|
+
/**
|
|
192
|
+
* @generated from enum value: OHLC_RESOLUTION_FIVE_MINUTE = 2;
|
|
193
|
+
*/
|
|
194
|
+
FIVE_MINUTE = 2,
|
|
195
|
+
/**
|
|
196
|
+
* @generated from enum value: OHLC_RESOLUTION_ONE_HOUR = 3;
|
|
197
|
+
*/
|
|
198
|
+
ONE_HOUR = 3,
|
|
199
|
+
/**
|
|
200
|
+
* @generated from enum value: OHLC_RESOLUTION_FOUR_HOUR = 4;
|
|
201
|
+
*/
|
|
202
|
+
FOUR_HOUR = 4,
|
|
203
|
+
/**
|
|
204
|
+
* @generated from enum value: OHLC_RESOLUTION_ONE_DAY = 5;
|
|
205
|
+
*/
|
|
206
|
+
ONE_DAY = 5
|
|
207
|
+
}
|
|
175
208
|
/**
|
|
176
209
|
* Time window for windowed token-market stats; FIVE_MINUTE is intentionally omitted.
|
|
177
210
|
*
|
|
@@ -403,6 +436,10 @@ export declare class TokenRankStats extends Message<TokenRankStats> {
|
|
|
403
436
|
*/
|
|
404
437
|
fdv?: number;
|
|
405
438
|
/**
|
|
439
|
+
* Not additive across a multichain group's members: the canonical chain's
|
|
440
|
+
* value (mainnet, else lowest chain_id) — the same member the TDP's
|
|
441
|
+
* headline % change is computed from.
|
|
442
|
+
*
|
|
406
443
|
* @generated from field: optional double price_change_1h = 9;
|
|
407
444
|
*/
|
|
408
445
|
priceChange1h?: number;
|
|
@@ -411,8 +448,9 @@ export declare class TokenRankStats extends Message<TokenRankStats> {
|
|
|
411
448
|
*/
|
|
412
449
|
priceChange1d?: number;
|
|
413
450
|
/**
|
|
414
|
-
* USD spot price of the
|
|
415
|
-
* Populated only on PRICE-ordered
|
|
451
|
+
* USD spot price of the canonical chain member (mainnet, else lowest
|
|
452
|
+
* chain_id; current_token_prices). Populated only on PRICE-ordered
|
|
453
|
+
* requests; it is exactly the ranked value.
|
|
416
454
|
*
|
|
417
455
|
* @generated from field: optional double price = 11;
|
|
418
456
|
*/
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -222,6 +222,49 @@ proto3.util.setEnumType(FiatCurrency, "data.v2.FiatCurrency", [
|
|
|
222
222
|
{ no: 24, name: "FIAT_CURRENCY_VND" },
|
|
223
223
|
{ no: 25, name: "FIAT_CURRENCY_SEK" },
|
|
224
224
|
]);
|
|
225
|
+
/**
|
|
226
|
+
* Client-chosen candle width for the ranged (TradingView) OHLC mode. Served
|
|
227
|
+
* from token_price_history via the ClickHouse OHLC path. 1s (trades-derived)
|
|
228
|
+
* is intentionally omitted for now.
|
|
229
|
+
*
|
|
230
|
+
* @generated from enum data.v2.OhlcResolution
|
|
231
|
+
*/
|
|
232
|
+
export var OhlcResolution;
|
|
233
|
+
(function (OhlcResolution) {
|
|
234
|
+
/**
|
|
235
|
+
* @generated from enum value: OHLC_RESOLUTION_UNSPECIFIED = 0;
|
|
236
|
+
*/
|
|
237
|
+
OhlcResolution[OhlcResolution["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
238
|
+
/**
|
|
239
|
+
* @generated from enum value: OHLC_RESOLUTION_ONE_MINUTE = 1;
|
|
240
|
+
*/
|
|
241
|
+
OhlcResolution[OhlcResolution["ONE_MINUTE"] = 1] = "ONE_MINUTE";
|
|
242
|
+
/**
|
|
243
|
+
* @generated from enum value: OHLC_RESOLUTION_FIVE_MINUTE = 2;
|
|
244
|
+
*/
|
|
245
|
+
OhlcResolution[OhlcResolution["FIVE_MINUTE"] = 2] = "FIVE_MINUTE";
|
|
246
|
+
/**
|
|
247
|
+
* @generated from enum value: OHLC_RESOLUTION_ONE_HOUR = 3;
|
|
248
|
+
*/
|
|
249
|
+
OhlcResolution[OhlcResolution["ONE_HOUR"] = 3] = "ONE_HOUR";
|
|
250
|
+
/**
|
|
251
|
+
* @generated from enum value: OHLC_RESOLUTION_FOUR_HOUR = 4;
|
|
252
|
+
*/
|
|
253
|
+
OhlcResolution[OhlcResolution["FOUR_HOUR"] = 4] = "FOUR_HOUR";
|
|
254
|
+
/**
|
|
255
|
+
* @generated from enum value: OHLC_RESOLUTION_ONE_DAY = 5;
|
|
256
|
+
*/
|
|
257
|
+
OhlcResolution[OhlcResolution["ONE_DAY"] = 5] = "ONE_DAY";
|
|
258
|
+
})(OhlcResolution || (OhlcResolution = {}));
|
|
259
|
+
// Retrieve enum metadata with: proto3.getEnumType(OhlcResolution)
|
|
260
|
+
proto3.util.setEnumType(OhlcResolution, "data.v2.OhlcResolution", [
|
|
261
|
+
{ no: 0, name: "OHLC_RESOLUTION_UNSPECIFIED" },
|
|
262
|
+
{ no: 1, name: "OHLC_RESOLUTION_ONE_MINUTE" },
|
|
263
|
+
{ no: 2, name: "OHLC_RESOLUTION_FIVE_MINUTE" },
|
|
264
|
+
{ no: 3, name: "OHLC_RESOLUTION_ONE_HOUR" },
|
|
265
|
+
{ no: 4, name: "OHLC_RESOLUTION_FOUR_HOUR" },
|
|
266
|
+
{ no: 5, name: "OHLC_RESOLUTION_ONE_DAY" },
|
|
267
|
+
]);
|
|
225
268
|
/**
|
|
226
269
|
* Time window for windowed token-market stats; FIVE_MINUTE is intentionally omitted.
|
|
227
270
|
*
|