@xoxno/types 1.0.463 → 1.0.465
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.
|
@@ -18,4 +18,6 @@ var StellarLendingActivity;
|
|
|
18
18
|
StellarLendingActivity["FlashLoan"] = "flashLoan";
|
|
19
19
|
StellarLendingActivity["BadDebt"] = "badDebt";
|
|
20
20
|
StellarLendingActivity["StrategyFee"] = "strategyFee";
|
|
21
|
+
StellarLendingActivity["InitialPayment"] = "initialPayment";
|
|
22
|
+
StellarLendingActivity["Unknown"] = "unknown";
|
|
21
23
|
})(StellarLendingActivity || (exports.StellarLendingActivity = StellarLendingActivity = {}));
|
|
@@ -65,4 +65,30 @@ export interface StellarLendingActivityData {
|
|
|
65
65
|
* are the liquidatee).
|
|
66
66
|
*/
|
|
67
67
|
liquidator: string | null;
|
|
68
|
+
/**
|
|
69
|
+
* Raw on-chain `PositionAction` discriminant (u32) for position legs — kept
|
|
70
|
+
* verbatim so Kusto can distinguish codes that collapse to one
|
|
71
|
+
* `StellarLendingActivity` (e.g. RepayCollateralWithdraw vs
|
|
72
|
+
* RepayCollateralRepay) and never loses an unmapped code.
|
|
73
|
+
*/
|
|
74
|
+
actionCode?: number;
|
|
75
|
+
/** Position mode (e-mode) of the account batch this leg belongs to. */
|
|
76
|
+
positionMode?: number;
|
|
77
|
+
/** Raw fee in token base units (flash loan / strategy fee), big-int string. */
|
|
78
|
+
fee?: string;
|
|
79
|
+
/** Raw amount forwarded after the strategy fee, big-int string. */
|
|
80
|
+
amountSent?: string;
|
|
81
|
+
/** Flash-loan receiver contract address. */
|
|
82
|
+
receiver?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Scaled balance (27-dec RAY) written off by a bad-debt zeroing row —
|
|
85
|
+
* the position's pre-wipe balance on `side`.
|
|
86
|
+
*/
|
|
87
|
+
writtenOffScaledRay?: string;
|
|
88
|
+
/** Total seized collateral (USD, 18-dec WAD string) on the bad-debt header. */
|
|
89
|
+
collateralUsdWad?: string;
|
|
90
|
+
/** Blend-migration position counts. */
|
|
91
|
+
collateralCount?: number;
|
|
92
|
+
supplyCount?: number;
|
|
93
|
+
debtCount?: number;
|
|
68
94
|
}
|
|
@@ -32,4 +32,12 @@ export interface StellarLendingMarketStateData {
|
|
|
32
32
|
borrowIndexRay: string;
|
|
33
33
|
oraclePrice: number | null;
|
|
34
34
|
seq: number;
|
|
35
|
+
/** Raw asset-native cash (base units), big-int string. */
|
|
36
|
+
cash?: string;
|
|
37
|
+
/** Raw scaled totals (27-dec RAY shares), big-int strings from the event. */
|
|
38
|
+
suppliedScaled?: string;
|
|
39
|
+
borrowedScaled?: string;
|
|
40
|
+
revenueScaled?: string;
|
|
41
|
+
/** Ledger close time (seconds) carried on the on-chain snapshot leg. */
|
|
42
|
+
chainTimestamp?: string;
|
|
35
43
|
}
|