@uniswap/client-data-api 0.0.261 → 0.0.263
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
|
+
import { TokensSort } from "./types_pb.js";
|
|
3
4
|
/**
|
|
4
5
|
* @generated from enum data.v2.CategoryClass
|
|
5
6
|
*/
|
|
@@ -156,6 +157,13 @@ export declare class Category extends Message<Category> {
|
|
|
156
157
|
descriptionTranslations: {
|
|
157
158
|
[key: string]: string;
|
|
158
159
|
};
|
|
160
|
+
/**
|
|
161
|
+
* Sort the category page opens with, before the user picks a column.
|
|
162
|
+
* Always set. Feed it to ListTokens / ListTokenGroups as the sort.
|
|
163
|
+
*
|
|
164
|
+
* @generated from field: data.v2.TokensSort default_sort = 9;
|
|
165
|
+
*/
|
|
166
|
+
defaultSort?: TokensSort;
|
|
159
167
|
constructor(data?: PartialMessage<Category>);
|
|
160
168
|
static readonly runtime: typeof proto3;
|
|
161
169
|
static readonly typeName = "data.v2.Category";
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3, protoInt64 } from "@bufbuild/protobuf";
|
|
6
|
+
import { TokensSort } from "./types_pb.js";
|
|
6
7
|
/**
|
|
7
8
|
* @generated from enum data.v2.CategoryClass
|
|
8
9
|
*/
|
|
@@ -219,6 +220,7 @@ Category.fields = proto3.util.newFieldList(() => [
|
|
|
219
220
|
{ no: 6, name: "grouped", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
220
221
|
{ no: 7, name: "name_translations", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
221
222
|
{ no: 8, name: "description_translations", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "scalar", T: 9 /* ScalarType.STRING */ } },
|
|
223
|
+
{ no: 9, name: "default_sort", kind: "message", T: TokensSort },
|
|
222
224
|
]);
|
|
223
225
|
/**
|
|
224
226
|
* A category plus its chain-scoped market view (mirrors RankedPool /
|
|
@@ -1315,6 +1315,25 @@ export declare class Pool extends Message<Pool> {
|
|
|
1315
1315
|
* @generated from field: optional uint32 effective_fee = 14;
|
|
1316
1316
|
*/
|
|
1317
1317
|
effectiveFee?: number;
|
|
1318
|
+
/**
|
|
1319
|
+
* The LP fee the pool is charging RIGHT NOW, in pips (1e-6, so 3000 = 0.30%)
|
|
1320
|
+
* — same unit and regime as fee_tier: V2/V3 all-in with the protocol fee
|
|
1321
|
+
* carved OUT of it, V4 the LP's share with protocol_fee additive ON TOP.
|
|
1322
|
+
*
|
|
1323
|
+
* Always served, so no client has to read is_dynamic_fee to know which field
|
|
1324
|
+
* holds the rate: for V2, V3 and fixed-fee V4 this simply IS fee_tier. It
|
|
1325
|
+
* diverges only on a V4 dynamic-fee pool, where fee_tier is the sentinel and
|
|
1326
|
+
* this carries what the pool's most recent swap actually charged (recovered
|
|
1327
|
+
* from the total swap fee the Swap event records, which is lpFee and
|
|
1328
|
+
* protocolFee combined).
|
|
1329
|
+
*
|
|
1330
|
+
* Unset ONLY when a dynamic-fee pool's current fee can't be established: no
|
|
1331
|
+
* swap indexed yet, or a total that matches neither protocol-fee direction.
|
|
1332
|
+
* Never carries the DYNAMIC_FEE_FLAG sentinel.
|
|
1333
|
+
*
|
|
1334
|
+
* @generated from field: optional uint32 current_lp_fee = 15;
|
|
1335
|
+
*/
|
|
1336
|
+
currentLpFee?: number;
|
|
1318
1337
|
constructor(data?: PartialMessage<Pool>);
|
|
1319
1338
|
static readonly runtime: typeof proto3;
|
|
1320
1339
|
static readonly typeName = "data.v2.Pool";
|
package/dist/data/v2/types_pb.js
CHANGED
|
@@ -1440,6 +1440,7 @@ Pool.fields = proto3.util.newFieldList(() => [
|
|
|
1440
1440
|
{ no: 12, name: "liquidity", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1441
1441
|
{ no: 13, name: "protocol_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1442
1442
|
{ no: 14, name: "effective_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1443
|
+
{ no: 15, name: "current_lp_fee", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1443
1444
|
]);
|
|
1444
1445
|
/**
|
|
1445
1446
|
* @generated from message data.v2.PoolTokenFilter
|