keyring-agent-core 0.2.58 → 0.2.60
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 +81 -18
- package/dist/index.js +78 -70
- package/dist/index.native.js +181 -173
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5537,10 +5537,37 @@ 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
|
+
/**
|
|
5560
|
+
* What a supplier must do to actually earn this rate, in the source's own
|
|
5561
|
+
* words; null when the programme is unconditional.
|
|
5562
|
+
*
|
|
5563
|
+
* Present because a conditional rate and an unconditional one look identical
|
|
5564
|
+
* as numbers: Aave's USDe programme pays only to a supplier who also holds
|
|
5565
|
+
* sUSDe and borrows against it, while its USDtb programme asks essentially
|
|
5566
|
+
* nothing. Both are counted in {@link LendingMarketOverview.rewardApyPercent},
|
|
5567
|
+
* so this is what tells the two apart.
|
|
5568
|
+
*/
|
|
5569
|
+
conditions: string | null;
|
|
5570
|
+
}
|
|
5544
5571
|
/** A lending market plus its live rate and size — what you'd compare before supplying. */
|
|
5545
5572
|
interface LendingMarketOverview extends LendingMarket {
|
|
5546
5573
|
/**
|
|
@@ -5576,8 +5603,27 @@ interface LendingMarketOverview extends LendingMarket {
|
|
|
5576
5603
|
totalSuppliedUsdc: number | null;
|
|
5577
5604
|
/** Mean of {@link apyHistory} — the headline APY. Null when history is unavailable. */
|
|
5578
5605
|
avgApyPercent: number | null;
|
|
5579
|
-
/**
|
|
5606
|
+
/**
|
|
5607
|
+
* Live supply APY — the TOTAL a supplier earns: {@link baseApyPercent} plus
|
|
5608
|
+
* {@link rewardApyPercent}. This is the figure a protocol's reserve page
|
|
5609
|
+
* quotes as "Total APY", and the one to show when only one number fits.
|
|
5610
|
+
*/
|
|
5580
5611
|
currentApyPercent: number | null;
|
|
5612
|
+
/**
|
|
5613
|
+
* The protocol's own interest rate, before rewards — equal to
|
|
5614
|
+
* {@link currentApyPercent} on the great majority of markets, which run no
|
|
5615
|
+
* reward programme.
|
|
5616
|
+
*/
|
|
5617
|
+
baseApyPercent: number | null;
|
|
5618
|
+
/**
|
|
5619
|
+
* Combined extra APY from {@link rewards}, or null when the market has none.
|
|
5620
|
+
*
|
|
5621
|
+
* Null rather than 0 so "no reward programme" stays distinguishable from "a
|
|
5622
|
+
* programme currently paying nothing".
|
|
5623
|
+
*/
|
|
5624
|
+
rewardApyPercent: number | null;
|
|
5625
|
+
/** Each reward programme on its own, empty when there are none. */
|
|
5626
|
+
rewards: ApyReward[];
|
|
5581
5627
|
/** Live APY minus the previous day's, in percentage points. */
|
|
5582
5628
|
apyChangePercent: number | null;
|
|
5583
5629
|
/** Daily APY samples, oldest first, last entry = today's live rate. */
|
|
@@ -6266,13 +6312,6 @@ declare class LendingMarketsTool extends BaseTool {
|
|
|
6266
6312
|
marketCount: number;
|
|
6267
6313
|
totalMarketsAvailable: number;
|
|
6268
6314
|
markets: {
|
|
6269
|
-
marketName: string;
|
|
6270
|
-
protocol: string;
|
|
6271
|
-
protocolUrl: string | null;
|
|
6272
|
-
chain: string;
|
|
6273
|
-
avgApyPercent: number | null;
|
|
6274
|
-
avgApyDays: number;
|
|
6275
|
-
currentApyPercent: number | null;
|
|
6276
6315
|
apyChangePercent: number | null;
|
|
6277
6316
|
totalSuppliedUsdc: number | null;
|
|
6278
6317
|
/**
|
|
@@ -6282,6 +6321,20 @@ declare class LendingMarketsTool extends BaseTool {
|
|
|
6282
6321
|
*/
|
|
6283
6322
|
suppliedAssetSymbol: string | null;
|
|
6284
6323
|
platformScore: number | null;
|
|
6324
|
+
currentApyPercent: number | null;
|
|
6325
|
+
baseApyPercent: number | null;
|
|
6326
|
+
rewardApyPercent: number | null;
|
|
6327
|
+
rewards: {
|
|
6328
|
+
apyPercent: number;
|
|
6329
|
+
tokenSymbol: string | null;
|
|
6330
|
+
conditions: string | null;
|
|
6331
|
+
}[];
|
|
6332
|
+
marketName: string;
|
|
6333
|
+
protocol: string;
|
|
6334
|
+
protocolUrl: string | null;
|
|
6335
|
+
chain: string;
|
|
6336
|
+
avgApyPercent: number | null;
|
|
6337
|
+
avgApyDays: number;
|
|
6285
6338
|
}[];
|
|
6286
6339
|
protocolFilter?: string | undefined;
|
|
6287
6340
|
chain: string;
|
|
@@ -6364,25 +6417,35 @@ declare class WalletLendingPositionsTool extends BaseTool {
|
|
|
6364
6417
|
mixedAssets: boolean;
|
|
6365
6418
|
/** Denominated in the single asset every position shares. */
|
|
6366
6419
|
assetSymbol: string | null;
|
|
6367
|
-
suppliedUsdc: number;
|
|
6368
|
-
estimatedAnnualYieldUsdc: number;
|
|
6420
|
+
suppliedUsdc: number | null;
|
|
6421
|
+
estimatedAnnualYieldUsdc: number | null;
|
|
6369
6422
|
weightedAvgApyPercent: number | null;
|
|
6370
6423
|
};
|
|
6371
6424
|
positions: {
|
|
6425
|
+
apyChangePercent: number | null;
|
|
6426
|
+
estimatedAnnualYieldUsdc: number | null;
|
|
6427
|
+
marketTotalSuppliedUsdc: number | null;
|
|
6428
|
+
apyHistory: {
|
|
6429
|
+
apyPercent: number | null;
|
|
6430
|
+
date: string;
|
|
6431
|
+
}[];
|
|
6432
|
+
platformScore: number | null;
|
|
6433
|
+
currentApyPercent: number | null;
|
|
6434
|
+
baseApyPercent: number | null;
|
|
6435
|
+
rewardApyPercent: number | null;
|
|
6436
|
+
rewards: {
|
|
6437
|
+
apyPercent: number;
|
|
6438
|
+
tokenSymbol: string | null;
|
|
6439
|
+
conditions: string | null;
|
|
6440
|
+
}[];
|
|
6372
6441
|
marketName: string;
|
|
6373
6442
|
protocol: string;
|
|
6374
6443
|
protocolUrl: string | null;
|
|
6375
6444
|
chain: string;
|
|
6376
|
-
suppliedUsdc: number;
|
|
6445
|
+
suppliedUsdc: number | null;
|
|
6377
6446
|
/** What `suppliedUsdc` and `estimatedAnnualYieldUsdc` are denominated in. */
|
|
6378
6447
|
suppliedAssetSymbol: string | null;
|
|
6379
6448
|
avgApyPercent: number | null;
|
|
6380
|
-
currentApyPercent: number | null;
|
|
6381
|
-
apyChangePercent: number | null;
|
|
6382
|
-
estimatedAnnualYieldUsdc: number | null;
|
|
6383
|
-
marketTotalSuppliedUsdc: number | null;
|
|
6384
|
-
apyHistory: ApyPoint[];
|
|
6385
|
-
platformScore: number | null;
|
|
6386
6449
|
}[];
|
|
6387
6450
|
error?: undefined;
|
|
6388
6451
|
chainsWithLendingMarkets?: undefined;
|