@uniswap/client-data-api 0.0.93 → 0.0.95
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 +37 -0
- package/dist/data/v1/api_pb.js +36 -0
- package/package.json +1 -1
package/dist/data/v1/api_pb.d.ts
CHANGED
|
@@ -131,6 +131,23 @@ export declare enum ChartPeriod {
|
|
|
131
131
|
*/
|
|
132
132
|
MAX = 6
|
|
133
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* @generated from enum data.v1.WalletBalanceCategory
|
|
136
|
+
*/
|
|
137
|
+
export declare enum WalletBalanceCategory {
|
|
138
|
+
/**
|
|
139
|
+
* @generated from enum value: WALLET_BALANCE_CATEGORY_UNSPECIFIED = 0;
|
|
140
|
+
*/
|
|
141
|
+
UNSPECIFIED = 0,
|
|
142
|
+
/**
|
|
143
|
+
* @generated from enum value: WALLET_BALANCE_CATEGORY_POOLS = 1;
|
|
144
|
+
*/
|
|
145
|
+
POOLS = 1,
|
|
146
|
+
/**
|
|
147
|
+
* @generated from enum value: WALLET_BALANCE_CATEGORY_EARN_VAULTS = 2;
|
|
148
|
+
*/
|
|
149
|
+
EARN_VAULTS = 2
|
|
150
|
+
}
|
|
134
151
|
/**
|
|
135
152
|
* @generated from enum data.v1.RwaCategory
|
|
136
153
|
*/
|
|
@@ -352,6 +369,14 @@ export declare class GetPortfolioRequest extends Message<GetPortfolioRequest> {
|
|
|
352
369
|
* @generated from field: optional bool multichain = 4;
|
|
353
370
|
*/
|
|
354
371
|
multichain?: boolean;
|
|
372
|
+
/**
|
|
373
|
+
* When true, token metadata (name, symbol, logo, project, protection info, fees,
|
|
374
|
+
* safety level, spam code) is overridden with Substream-fed Aurora canonical_tokens data.
|
|
375
|
+
* is_bridged is not overridden (no Aurora equivalent). Defaults to false.
|
|
376
|
+
*
|
|
377
|
+
* @generated from field: optional bool use_substream_data = 5;
|
|
378
|
+
*/
|
|
379
|
+
useSubstreamData?: boolean;
|
|
355
380
|
constructor(data?: PartialMessage<GetPortfolioRequest>);
|
|
356
381
|
static readonly runtime: typeof proto3;
|
|
357
382
|
static readonly typeName = "data.v1.GetPortfolioRequest";
|
|
@@ -1691,6 +1716,10 @@ export declare class GetWalletBalancesRequest extends Message<GetWalletBalancesR
|
|
|
1691
1716
|
* @generated from field: optional data.v1.PortfolioValueModifier modifier = 3;
|
|
1692
1717
|
*/
|
|
1693
1718
|
modifier?: PortfolioValueModifier;
|
|
1719
|
+
/**
|
|
1720
|
+
* @generated from field: repeated data.v1.WalletBalanceCategory include_categories = 4;
|
|
1721
|
+
*/
|
|
1722
|
+
includeCategories: WalletBalanceCategory[];
|
|
1694
1723
|
constructor(data?: PartialMessage<GetWalletBalancesRequest>);
|
|
1695
1724
|
static readonly runtime: typeof proto3;
|
|
1696
1725
|
static readonly typeName = "data.v1.GetWalletBalancesRequest";
|
|
@@ -1733,6 +1762,10 @@ export declare class GetWalletsBalancesRequest extends Message<GetWalletsBalance
|
|
|
1733
1762
|
* @generated from field: repeated data.v1.PortfolioValueModifier modifiers = 3;
|
|
1734
1763
|
*/
|
|
1735
1764
|
modifiers: PortfolioValueModifier[];
|
|
1765
|
+
/**
|
|
1766
|
+
* @generated from field: repeated data.v1.WalletBalanceCategory include_categories = 4;
|
|
1767
|
+
*/
|
|
1768
|
+
includeCategories: WalletBalanceCategory[];
|
|
1736
1769
|
constructor(data?: PartialMessage<GetWalletsBalancesRequest>);
|
|
1737
1770
|
static readonly runtime: typeof proto3;
|
|
1738
1771
|
static readonly typeName = "data.v1.GetWalletsBalancesRequest";
|
|
@@ -1779,6 +1812,10 @@ export declare class WalletBalance extends Message<WalletBalance> {
|
|
|
1779
1812
|
* @generated from field: data.v1.WalletAccount wallet_account = 4;
|
|
1780
1813
|
*/
|
|
1781
1814
|
walletAccount?: WalletAccount;
|
|
1815
|
+
/**
|
|
1816
|
+
* @generated from field: data.v1.BalanceComponent earn = 5;
|
|
1817
|
+
*/
|
|
1818
|
+
earn?: BalanceComponent;
|
|
1782
1819
|
constructor(data?: PartialMessage<WalletBalance>);
|
|
1783
1820
|
static readonly runtime: typeof proto3;
|
|
1784
1821
|
static readonly typeName = "data.v1.WalletBalance";
|
package/dist/data/v1/api_pb.js
CHANGED
|
@@ -180,6 +180,30 @@ 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.WalletBalanceCategory
|
|
185
|
+
*/
|
|
186
|
+
export var WalletBalanceCategory;
|
|
187
|
+
(function (WalletBalanceCategory) {
|
|
188
|
+
/**
|
|
189
|
+
* @generated from enum value: WALLET_BALANCE_CATEGORY_UNSPECIFIED = 0;
|
|
190
|
+
*/
|
|
191
|
+
WalletBalanceCategory[WalletBalanceCategory["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
192
|
+
/**
|
|
193
|
+
* @generated from enum value: WALLET_BALANCE_CATEGORY_POOLS = 1;
|
|
194
|
+
*/
|
|
195
|
+
WalletBalanceCategory[WalletBalanceCategory["POOLS"] = 1] = "POOLS";
|
|
196
|
+
/**
|
|
197
|
+
* @generated from enum value: WALLET_BALANCE_CATEGORY_EARN_VAULTS = 2;
|
|
198
|
+
*/
|
|
199
|
+
WalletBalanceCategory[WalletBalanceCategory["EARN_VAULTS"] = 2] = "EARN_VAULTS";
|
|
200
|
+
})(WalletBalanceCategory || (WalletBalanceCategory = {}));
|
|
201
|
+
// Retrieve enum metadata with: proto3.getEnumType(WalletBalanceCategory)
|
|
202
|
+
proto3.util.setEnumType(WalletBalanceCategory, "data.v1.WalletBalanceCategory", [
|
|
203
|
+
{ no: 0, name: "WALLET_BALANCE_CATEGORY_UNSPECIFIED" },
|
|
204
|
+
{ no: 1, name: "WALLET_BALANCE_CATEGORY_POOLS" },
|
|
205
|
+
{ no: 2, name: "WALLET_BALANCE_CATEGORY_EARN_VAULTS" },
|
|
206
|
+
]);
|
|
183
207
|
/**
|
|
184
208
|
* @generated from enum data.v1.RwaCategory
|
|
185
209
|
*/
|
|
@@ -520,6 +544,7 @@ GetPortfolioRequest.fields = proto3.util.newFieldList(() => [
|
|
|
520
544
|
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
521
545
|
{ no: 3, name: "modifier", kind: "message", T: PortfolioValueModifier, opt: true },
|
|
522
546
|
{ no: 4, name: "multichain", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
547
|
+
{ no: 5, name: "use_substream_data", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
523
548
|
]);
|
|
524
549
|
/**
|
|
525
550
|
* @generated from message data.v1.GetPortfolioResponse
|
|
@@ -2268,6 +2293,10 @@ export class GetWalletBalancesRequest extends Message {
|
|
|
2268
2293
|
* @generated from field: repeated uint32 chain_ids = 2;
|
|
2269
2294
|
*/
|
|
2270
2295
|
this.chainIds = [];
|
|
2296
|
+
/**
|
|
2297
|
+
* @generated from field: repeated data.v1.WalletBalanceCategory include_categories = 4;
|
|
2298
|
+
*/
|
|
2299
|
+
this.includeCategories = [];
|
|
2271
2300
|
proto3.util.initPartial(data, this);
|
|
2272
2301
|
}
|
|
2273
2302
|
static fromBinary(bytes, options) {
|
|
@@ -2289,6 +2318,7 @@ GetWalletBalancesRequest.fields = proto3.util.newFieldList(() => [
|
|
|
2289
2318
|
{ no: 1, name: "wallet_account", kind: "message", T: WalletAccount },
|
|
2290
2319
|
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
2291
2320
|
{ no: 3, name: "modifier", kind: "message", T: PortfolioValueModifier, opt: true },
|
|
2321
|
+
{ no: 4, name: "include_categories", kind: "enum", T: proto3.getEnumType(WalletBalanceCategory), repeated: true },
|
|
2292
2322
|
]);
|
|
2293
2323
|
/**
|
|
2294
2324
|
* @generated from message data.v1.GetWalletBalancesResponse
|
|
@@ -2334,6 +2364,10 @@ export class GetWalletsBalancesRequest extends Message {
|
|
|
2334
2364
|
* @generated from field: repeated data.v1.PortfolioValueModifier modifiers = 3;
|
|
2335
2365
|
*/
|
|
2336
2366
|
this.modifiers = [];
|
|
2367
|
+
/**
|
|
2368
|
+
* @generated from field: repeated data.v1.WalletBalanceCategory include_categories = 4;
|
|
2369
|
+
*/
|
|
2370
|
+
this.includeCategories = [];
|
|
2337
2371
|
proto3.util.initPartial(data, this);
|
|
2338
2372
|
}
|
|
2339
2373
|
static fromBinary(bytes, options) {
|
|
@@ -2355,6 +2389,7 @@ GetWalletsBalancesRequest.fields = proto3.util.newFieldList(() => [
|
|
|
2355
2389
|
{ no: 1, name: "wallet_accounts", kind: "message", T: WalletAccount, repeated: true },
|
|
2356
2390
|
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
2357
2391
|
{ no: 3, name: "modifiers", kind: "message", T: PortfolioValueModifier, repeated: true },
|
|
2392
|
+
{ no: 4, name: "include_categories", kind: "enum", T: proto3.getEnumType(WalletBalanceCategory), repeated: true },
|
|
2358
2393
|
]);
|
|
2359
2394
|
/**
|
|
2360
2395
|
* @generated from message data.v1.GetWalletsBalancesResponse
|
|
@@ -2414,6 +2449,7 @@ WalletBalance.fields = proto3.util.newFieldList(() => [
|
|
|
2414
2449
|
{ no: 2, name: "tokens", kind: "message", T: BalanceComponent },
|
|
2415
2450
|
{ no: 3, name: "pools", kind: "message", T: BalanceComponent },
|
|
2416
2451
|
{ no: 4, name: "wallet_account", kind: "message", T: WalletAccount },
|
|
2452
|
+
{ no: 5, name: "earn", kind: "message", T: BalanceComponent },
|
|
2417
2453
|
]);
|
|
2418
2454
|
/**
|
|
2419
2455
|
* @generated from message data.v1.BalanceComponent
|