keyring-agent-core 0.2.57 → 0.2.59
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/index.d.ts +56 -6
- package/dist/index.js +87 -79
- package/dist/index.native.js +177 -169
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5537,10 +5537,26 @@ interface LendingMarket {
|
|
|
5537
5537
|
}
|
|
5538
5538
|
/** One daily supply-APY sample (percent, e.g. `4.21` for 4.21%). */
|
|
5539
5539
|
interface ApyPoint {
|
|
5540
|
-
/**
|
|
5540
|
+
/**
|
|
5541
|
+
* The moment this sample was taken, as an ISO-8601 UTC timestamp
|
|
5542
|
+
* (`2026-08-19T04:00:00.000Z`) — NOT a day key: a source publishing hourly
|
|
5543
|
+
* rates (Aave) yields many points per day, each at its own hour.
|
|
5544
|
+
*/
|
|
5541
5545
|
date: string;
|
|
5542
5546
|
apyPercent: number;
|
|
5543
5547
|
}
|
|
5548
|
+
/**
|
|
5549
|
+
* One reward programme paying on top of a market's supply rate, as a percent.
|
|
5550
|
+
*
|
|
5551
|
+
* Itemised rather than summed so the total can be reconciled against the
|
|
5552
|
+
* protocol's own reserve page, which lists each programme by its reward token.
|
|
5553
|
+
*/
|
|
5554
|
+
interface ApyReward {
|
|
5555
|
+
/** Extra APY from this programme (percent, e.g. `0.51` for 0.51%). */
|
|
5556
|
+
apyPercent: number;
|
|
5557
|
+
/** Symbol of the token paid out, when the source names one. */
|
|
5558
|
+
tokenSymbol: string | null;
|
|
5559
|
+
}
|
|
5544
5560
|
/** A lending market plus its live rate and size — what you'd compare before supplying. */
|
|
5545
5561
|
interface LendingMarketOverview extends LendingMarket {
|
|
5546
5562
|
/**
|
|
@@ -5576,8 +5592,27 @@ interface LendingMarketOverview extends LendingMarket {
|
|
|
5576
5592
|
totalSuppliedUsdc: number | null;
|
|
5577
5593
|
/** Mean of {@link apyHistory} — the headline APY. Null when history is unavailable. */
|
|
5578
5594
|
avgApyPercent: number | null;
|
|
5579
|
-
/**
|
|
5595
|
+
/**
|
|
5596
|
+
* Live supply APY — the TOTAL a supplier earns: {@link baseApyPercent} plus
|
|
5597
|
+
* {@link rewardApyPercent}. This is the figure a protocol's reserve page
|
|
5598
|
+
* quotes as "Total APY", and the one to show when only one number fits.
|
|
5599
|
+
*/
|
|
5580
5600
|
currentApyPercent: number | null;
|
|
5601
|
+
/**
|
|
5602
|
+
* The protocol's own interest rate, before rewards — equal to
|
|
5603
|
+
* {@link currentApyPercent} on the great majority of markets, which run no
|
|
5604
|
+
* reward programme.
|
|
5605
|
+
*/
|
|
5606
|
+
baseApyPercent: number | null;
|
|
5607
|
+
/**
|
|
5608
|
+
* Combined extra APY from {@link rewards}, or null when the market has none.
|
|
5609
|
+
*
|
|
5610
|
+
* Null rather than 0 so "no reward programme" stays distinguishable from "a
|
|
5611
|
+
* programme currently paying nothing".
|
|
5612
|
+
*/
|
|
5613
|
+
rewardApyPercent: number | null;
|
|
5614
|
+
/** Each reward programme on its own, empty when there are none. */
|
|
5615
|
+
rewards: ApyReward[];
|
|
5581
5616
|
/** Live APY minus the previous day's, in percentage points. */
|
|
5582
5617
|
apyChangePercent: number | null;
|
|
5583
5618
|
/** Daily APY samples, oldest first, last entry = today's live rate. */
|
|
@@ -6273,6 +6308,12 @@ declare class LendingMarketsTool extends BaseTool {
|
|
|
6273
6308
|
avgApyPercent: number | null;
|
|
6274
6309
|
avgApyDays: number;
|
|
6275
6310
|
currentApyPercent: number | null;
|
|
6311
|
+
baseApyPercent: number | null;
|
|
6312
|
+
rewardApyPercent: number | null;
|
|
6313
|
+
rewards: {
|
|
6314
|
+
apyPercent: number | null;
|
|
6315
|
+
tokenSymbol: string | null;
|
|
6316
|
+
}[];
|
|
6276
6317
|
apyChangePercent: number | null;
|
|
6277
6318
|
totalSuppliedUsdc: number | null;
|
|
6278
6319
|
/**
|
|
@@ -6364,8 +6405,8 @@ declare class WalletLendingPositionsTool extends BaseTool {
|
|
|
6364
6405
|
mixedAssets: boolean;
|
|
6365
6406
|
/** Denominated in the single asset every position shares. */
|
|
6366
6407
|
assetSymbol: string | null;
|
|
6367
|
-
suppliedUsdc: number;
|
|
6368
|
-
estimatedAnnualYieldUsdc: number;
|
|
6408
|
+
suppliedUsdc: number | null;
|
|
6409
|
+
estimatedAnnualYieldUsdc: number | null;
|
|
6369
6410
|
weightedAvgApyPercent: number | null;
|
|
6370
6411
|
};
|
|
6371
6412
|
positions: {
|
|
@@ -6373,15 +6414,24 @@ declare class WalletLendingPositionsTool extends BaseTool {
|
|
|
6373
6414
|
protocol: string;
|
|
6374
6415
|
protocolUrl: string | null;
|
|
6375
6416
|
chain: string;
|
|
6376
|
-
suppliedUsdc: number;
|
|
6417
|
+
suppliedUsdc: number | null;
|
|
6377
6418
|
/** What `suppliedUsdc` and `estimatedAnnualYieldUsdc` are denominated in. */
|
|
6378
6419
|
suppliedAssetSymbol: string | null;
|
|
6379
6420
|
avgApyPercent: number | null;
|
|
6380
6421
|
currentApyPercent: number | null;
|
|
6422
|
+
baseApyPercent: number | null;
|
|
6423
|
+
rewardApyPercent: number | null;
|
|
6424
|
+
rewards: {
|
|
6425
|
+
apyPercent: number | null;
|
|
6426
|
+
tokenSymbol: string | null;
|
|
6427
|
+
}[];
|
|
6381
6428
|
apyChangePercent: number | null;
|
|
6382
6429
|
estimatedAnnualYieldUsdc: number | null;
|
|
6383
6430
|
marketTotalSuppliedUsdc: number | null;
|
|
6384
|
-
apyHistory:
|
|
6431
|
+
apyHistory: {
|
|
6432
|
+
apyPercent: number | null;
|
|
6433
|
+
date: string;
|
|
6434
|
+
}[];
|
|
6385
6435
|
platformScore: number | null;
|
|
6386
6436
|
}[];
|
|
6387
6437
|
error?: undefined;
|