@xoxno/types 1.0.434 → 1.0.437
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/stellar-lending/list.d.ts +103 -0
- package/package.json +1 -1
|
@@ -38,6 +38,80 @@ export interface StellarAssetListItem {
|
|
|
38
38
|
/** Number of reserves (spoke,hub) for this asset. */
|
|
39
39
|
marketCount: number;
|
|
40
40
|
}
|
|
41
|
+
/** One (spoke, hub) market row for an asset detail page. */
|
|
42
|
+
export interface StellarAssetPageMarket {
|
|
43
|
+
spokeId: number;
|
|
44
|
+
hubId: number;
|
|
45
|
+
asset: string;
|
|
46
|
+
spokeName: string | null;
|
|
47
|
+
hubName: string | null;
|
|
48
|
+
supplyApy: number;
|
|
49
|
+
borrowApy: number;
|
|
50
|
+
utilization: number;
|
|
51
|
+
suppliedShort: number;
|
|
52
|
+
borrowedShort: number;
|
|
53
|
+
availableLiquidityShort: number;
|
|
54
|
+
usdPrice: number;
|
|
55
|
+
depositsUsd: number;
|
|
56
|
+
borrowsUsd: number;
|
|
57
|
+
availableLiquidityUsd: number;
|
|
58
|
+
collateralFactorBps: number;
|
|
59
|
+
liquidationThresholdBps: number;
|
|
60
|
+
isCollateralizable: boolean;
|
|
61
|
+
isBorrowable: boolean;
|
|
62
|
+
paused: boolean;
|
|
63
|
+
frozen: boolean;
|
|
64
|
+
supplyCapShort: number;
|
|
65
|
+
borrowCapShort: number;
|
|
66
|
+
depositCapFilledPct: number;
|
|
67
|
+
borrowCapFilledPct: number;
|
|
68
|
+
remainingSupplyCapacityUsd: number;
|
|
69
|
+
remainingBorrowCapacityUsd: number;
|
|
70
|
+
supportedCollateral: string[];
|
|
71
|
+
borrowableAssets: string[];
|
|
72
|
+
userSuppliedNative: number;
|
|
73
|
+
userBorrowedNative: number;
|
|
74
|
+
userSuppliedUsd: number;
|
|
75
|
+
userBorrowedUsd: number;
|
|
76
|
+
liveSupplyIndexRay: string;
|
|
77
|
+
liveBorrowIndexRay: string;
|
|
78
|
+
}
|
|
79
|
+
export interface StellarAssetPageGraphPoint {
|
|
80
|
+
timestamp: string;
|
|
81
|
+
supplyApy: number;
|
|
82
|
+
borrowApy: number;
|
|
83
|
+
totalDepositsUsd: number;
|
|
84
|
+
totalBorrowsUsd: number;
|
|
85
|
+
suppliedNative: number;
|
|
86
|
+
borrowedNative: number;
|
|
87
|
+
}
|
|
88
|
+
export interface StellarAssetPageGraphSeries {
|
|
89
|
+
spokeId: number;
|
|
90
|
+
hubId: number;
|
|
91
|
+
spokeName: string | null;
|
|
92
|
+
hubName: string | null;
|
|
93
|
+
points: StellarAssetPageGraphPoint[];
|
|
94
|
+
}
|
|
95
|
+
/** One-call payload for the Stellar asset detail page. */
|
|
96
|
+
export interface StellarAssetPage {
|
|
97
|
+
asset: string;
|
|
98
|
+
symbol: string;
|
|
99
|
+
name: string;
|
|
100
|
+
decimals: number;
|
|
101
|
+
usdPrice: number;
|
|
102
|
+
totalDepositsUsd: number;
|
|
103
|
+
totalBorrowsUsd: number;
|
|
104
|
+
availableLiquidityUsd: number;
|
|
105
|
+
hubCount: number;
|
|
106
|
+
reserveCount: number;
|
|
107
|
+
minSupplyApy: number;
|
|
108
|
+
maxSupplyApy: number;
|
|
109
|
+
minBorrowApy: number;
|
|
110
|
+
maxBorrowApy: number;
|
|
111
|
+
depositMarkets: StellarAssetPageMarket[];
|
|
112
|
+
borrowMarkets: StellarAssetPageMarket[];
|
|
113
|
+
graphSeries: StellarAssetPageGraphSeries[];
|
|
114
|
+
}
|
|
41
115
|
/** One hub aggregated over its hub-assets — a row in the All Hubs table. */
|
|
42
116
|
export interface StellarHubListItem {
|
|
43
117
|
hubId: number;
|
|
@@ -91,3 +165,32 @@ export interface StellarReserveListItem {
|
|
|
91
165
|
/** Whether the asset can be used as collateral in this spoke. */
|
|
92
166
|
useAsCollateral: boolean;
|
|
93
167
|
}
|
|
168
|
+
/**
|
|
169
|
+
* One row in a user's lending action feed — a single position leg the user
|
|
170
|
+
* performed, newest first. Sourced from `StellarLendingPositionActivity()`
|
|
171
|
+
* filtered by `Owner`; `usd` is the action delta valued at the event-time
|
|
172
|
+
* oracle price (`amountShort * oraclePrice`).
|
|
173
|
+
*/
|
|
174
|
+
export interface StellarUserActivityItem {
|
|
175
|
+
/** Event time (ISO-8601). */
|
|
176
|
+
timestamp: string;
|
|
177
|
+
/** Monotonic event ordinal (`ledger * 1e6 + indexInLedger`); feed sort key. */
|
|
178
|
+
seq: number;
|
|
179
|
+
/** Action kind (supply/borrow/withdraw/repay/liqRepay/liqSeize/multiply/…). */
|
|
180
|
+
action: string;
|
|
181
|
+
/** Position side this leg mutated; `null` for non-position rows. */
|
|
182
|
+
side: 'supply' | 'borrow' | null;
|
|
183
|
+
/** Asset (token) contract address. */
|
|
184
|
+
token: string;
|
|
185
|
+
symbol: string;
|
|
186
|
+
decimals: number;
|
|
187
|
+
hubId: number;
|
|
188
|
+
spokeId: number | null;
|
|
189
|
+
reserveKey: string | null;
|
|
190
|
+
/** Action delta this tx, human-readable token units. */
|
|
191
|
+
amountShort: number;
|
|
192
|
+
/** Action delta valued in USD at event-time oracle price. */
|
|
193
|
+
usd: number;
|
|
194
|
+
/** Liquidator (caller) address on liquidation legs; `null` otherwise. */
|
|
195
|
+
liquidator: string | null;
|
|
196
|
+
}
|