@xoxno/types 1.0.462 → 1.0.464
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/enums/lending.enum.d.ts +3 -1
- package/dist/enums/lending.enum.js +2 -0
- package/dist/requests/lending/stellar-lending-admin-args.dto.js +4 -4
- package/dist/stellar-lending/enums/activity.enum.d.ts +2 -1
- package/dist/stellar-lending/enums/activity.enum.js +1 -0
- package/dist/stellar-lending/kusto/activity-data.d.ts +26 -0
- package/dist/stellar-lending/kusto/market-state-data.d.ts +8 -0
- package/package.json +1 -1
|
@@ -28,7 +28,9 @@ export declare enum ExchangeSource {
|
|
|
28
28
|
}
|
|
29
29
|
export declare enum LendingOracleProviderKind {
|
|
30
30
|
ReflectorSep40 = "ReflectorSep40",
|
|
31
|
-
RedStonePriceFeed = "RedStonePriceFeed"
|
|
31
|
+
RedStonePriceFeed = "RedStonePriceFeed",
|
|
32
|
+
/** First-party XOXNO oracle adapter: RedStone wire shape, independent provider. */
|
|
33
|
+
XoxnoPriceFeed = "XoxnoPriceFeed"
|
|
32
34
|
}
|
|
33
35
|
export declare enum LendingOracleAssetRefKind {
|
|
34
36
|
Stellar = "Stellar",
|
|
@@ -37,6 +37,8 @@ var LendingOracleProviderKind;
|
|
|
37
37
|
(function (LendingOracleProviderKind) {
|
|
38
38
|
LendingOracleProviderKind["ReflectorSep40"] = "ReflectorSep40";
|
|
39
39
|
LendingOracleProviderKind["RedStonePriceFeed"] = "RedStonePriceFeed";
|
|
40
|
+
/** First-party XOXNO oracle adapter: RedStone wire shape, independent provider. */
|
|
41
|
+
LendingOracleProviderKind["XoxnoPriceFeed"] = "XoxnoPriceFeed";
|
|
40
42
|
})(LendingOracleProviderKind || (exports.LendingOracleProviderKind = LendingOracleProviderKind = {}));
|
|
41
43
|
var LendingOracleAssetRefKind;
|
|
42
44
|
(function (LendingOracleAssetRefKind) {
|
|
@@ -183,7 +183,7 @@ __decorate([
|
|
|
183
183
|
(0, swagger_1.ApiProperty)({
|
|
184
184
|
type: lending_oracle_1.LendingOracleAssetRef,
|
|
185
185
|
required: false,
|
|
186
|
-
description: 'Reflector asset reference (Stellar address / Symbol). Omit for RedStone.',
|
|
186
|
+
description: 'Reflector asset reference (Stellar address / Symbol). Omit for RedStone/Xoxno.',
|
|
187
187
|
}),
|
|
188
188
|
__metadata("design:type", lending_oracle_1.LendingOracleAssetRef)
|
|
189
189
|
], OracleSourceConfigInputDto.prototype, "asset", void 0);
|
|
@@ -191,7 +191,7 @@ __decorate([
|
|
|
191
191
|
(0, swagger_1.ApiProperty)({
|
|
192
192
|
type: String,
|
|
193
193
|
required: false,
|
|
194
|
-
description: 'RedStone feed id. Omit for Reflector.',
|
|
194
|
+
description: 'RedStone/Xoxno feed id. Omit for Reflector.',
|
|
195
195
|
}),
|
|
196
196
|
__metadata("design:type", String)
|
|
197
197
|
], OracleSourceConfigInputDto.prototype, "feedId", void 0);
|
|
@@ -199,7 +199,7 @@ __decorate([
|
|
|
199
199
|
(0, swagger_1.ApiProperty)({
|
|
200
200
|
enum: lending_enum_1.LendingOracleReadMode,
|
|
201
201
|
enumName: 'LendingOracleReadMode',
|
|
202
|
-
description: 'Read mode (Reflector Spot/Twap; RedStone
|
|
202
|
+
description: 'Read mode (Reflector Spot/Twap; RedStone and Xoxno are always Spot)',
|
|
203
203
|
}),
|
|
204
204
|
__metadata("design:type", String)
|
|
205
205
|
], OracleSourceConfigInputDto.prototype, "readMode", void 0);
|
|
@@ -215,7 +215,7 @@ __decorate([
|
|
|
215
215
|
(0, swagger_1.ApiProperty)({
|
|
216
216
|
type: 'integer',
|
|
217
217
|
required: false,
|
|
218
|
-
description: 'Per-source max stale seconds (RedStone)',
|
|
218
|
+
description: 'Per-source max stale seconds (RedStone/Xoxno)',
|
|
219
219
|
}),
|
|
220
220
|
__metadata("design:type", Number)
|
|
221
221
|
], OracleSourceConfigInputDto.prototype, "maxStaleSeconds", void 0);
|
|
@@ -18,4 +18,5 @@ var StellarLendingActivity;
|
|
|
18
18
|
StellarLendingActivity["FlashLoan"] = "flashLoan";
|
|
19
19
|
StellarLendingActivity["BadDebt"] = "badDebt";
|
|
20
20
|
StellarLendingActivity["StrategyFee"] = "strategyFee";
|
|
21
|
+
StellarLendingActivity["InitialPayment"] = "initialPayment";
|
|
21
22
|
})(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
|
}
|