@xoxno/types 1.0.402 → 1.0.404

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.
@@ -0,0 +1,649 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.StellarOracleTwapDegradedEvent = exports.StellarOracleDisabledEvent = exports.StellarUpdatePositionLimitsEvent = exports.StellarUpdatePoolTemplateEvent = exports.StellarUpdateAccumulatorEvent = exports.StellarUpdateAggregatorEvent = exports.StellarApproveTokenEvent = exports.StellarInitialMultiplyPaymentEvent = exports.StellarCleanBadDebtEvent = exports.StellarUpdateDebtCeilingBatchEvent = exports.StellarUpdateDebtCeilingEvent = exports.StellarRemoveEModeAssetEvent = exports.StellarUpdateEModeAssetEvent = exports.StellarUpdateEModeCategoryEvent = exports.StellarUpdateAssetOracleEvent = exports.StellarUpdateAssetConfigEvent = exports.StellarFlashLoanEvent = exports.StellarUpdatePositionBatchEvent = exports.StellarUpdateMarketStateBatchEvent = exports.StellarUpdateMarketParamsEvent = exports.StellarCreateMarketEvent = exports.StellarEModeAssetConfig = exports.StellarEventEModeCategory = exports.StellarEventDebtCeilingEntry = exports.StellarEventPositionDelta = exports.StellarEventAccountAttributes = exports.StellarMarketStateSnapshot = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
14
+ const lending_enum_1 = require("../../enums/lending.enum");
15
+ const stellar_lending_admin_args_dto_1 = require("./stellar-lending-admin-args.dto");
16
+ const lending_oracle_1 = require("../../cosmos-db/documents/lending/lending-oracle");
17
+ /**
18
+ * Decoded payloads for the 21 XOXNO Stellar lending controller
19
+ * `#[contractevent]`s (see `rs-lending-xlm/common/src/events.rs`).
20
+ *
21
+ * These are the normalized shapes the `@xoxno/sdk-js` decoder registry
22
+ * produces after funnelling the Soroban event `data` through
23
+ * `scValToNative`: i128/u128/u64 ids and amounts are decimal strings,
24
+ * u32 counts/bps are numbers, addresses/symbols are strings, int-enums are
25
+ * mapped to their string enum, and absent Soroban `Option`s are `undefined`.
26
+ *
27
+ * Borrow-side position deltas carry no collateral risk parameters: the
28
+ * contract zeroes `liquidation_threshold`/`liquidation_bonus`/`loan_to_value`
29
+ * for debt positions, so the decoder surfaces them as `undefined` (not 0) to
30
+ * stop consumers recording a spurious 0% threshold. There is no
31
+ * `liquidationFeesBps` on the delta — that field does not exist on-chain.
32
+ */
33
+ class StellarMarketStateSnapshot {
34
+ }
35
+ exports.StellarMarketStateSnapshot = StellarMarketStateSnapshot;
36
+ __decorate([
37
+ (0, swagger_1.ApiProperty)({
38
+ type: String,
39
+ description: 'Pool asset whose state was updated',
40
+ }),
41
+ __metadata("design:type", String)
42
+ ], StellarMarketStateSnapshot.prototype, "asset", void 0);
43
+ __decorate([
44
+ (0, swagger_1.ApiProperty)({
45
+ type: 'integer',
46
+ description: 'Millisecond timestamp of the accrual checkpoint',
47
+ }),
48
+ __metadata("design:type", Number)
49
+ ], StellarMarketStateSnapshot.prototype, "timestamp", void 0);
50
+ __decorate([
51
+ (0, swagger_1.ApiProperty)({
52
+ description: 'Supply index after accrual, RAY decimal string',
53
+ }),
54
+ __metadata("design:type", String)
55
+ ], StellarMarketStateSnapshot.prototype, "supplyIndexRay", void 0);
56
+ __decorate([
57
+ (0, swagger_1.ApiProperty)({
58
+ description: 'Borrow index after accrual, RAY decimal string',
59
+ }),
60
+ __metadata("design:type", String)
61
+ ], StellarMarketStateSnapshot.prototype, "borrowIndexRay", void 0);
62
+ __decorate([
63
+ (0, swagger_1.ApiProperty)({
64
+ description: 'Live pool token balance, asset-native units decimal string',
65
+ }),
66
+ __metadata("design:type", String)
67
+ ], StellarMarketStateSnapshot.prototype, "reservesRay", void 0);
68
+ __decorate([
69
+ (0, swagger_1.ApiProperty)({
70
+ description: 'Total scaled supply shares, RAY decimal string',
71
+ }),
72
+ __metadata("design:type", String)
73
+ ], StellarMarketStateSnapshot.prototype, "suppliedRay", void 0);
74
+ __decorate([
75
+ (0, swagger_1.ApiProperty)({
76
+ description: 'Total scaled borrow shares, RAY decimal string',
77
+ }),
78
+ __metadata("design:type", String)
79
+ ], StellarMarketStateSnapshot.prototype, "borrowedRay", void 0);
80
+ __decorate([
81
+ (0, swagger_1.ApiProperty)({
82
+ description: 'Scaled protocol revenue shares, RAY decimal string',
83
+ }),
84
+ __metadata("design:type", String)
85
+ ], StellarMarketStateSnapshot.prototype, "revenueRay", void 0);
86
+ __decorate([
87
+ (0, swagger_1.ApiProperty)({
88
+ required: false,
89
+ description: 'USD WAD price used for accrual, decimal string when present',
90
+ }),
91
+ __metadata("design:type", String)
92
+ ], StellarMarketStateSnapshot.prototype, "assetPriceWad", void 0);
93
+ class StellarEventAccountAttributes {
94
+ }
95
+ exports.StellarEventAccountAttributes = StellarEventAccountAttributes;
96
+ __decorate([
97
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Account owner at emission time' }),
98
+ __metadata("design:type", String)
99
+ ], StellarEventAccountAttributes.prototype, "owner", void 0);
100
+ __decorate([
101
+ (0, swagger_1.ApiProperty)({
102
+ description: 'True when the account is bound to a single isolated collateral asset',
103
+ }),
104
+ __metadata("design:type", Boolean)
105
+ ], StellarEventAccountAttributes.prototype, "isIsolatedPosition", void 0);
106
+ __decorate([
107
+ (0, swagger_1.ApiProperty)({
108
+ type: 'integer',
109
+ description: 'E-mode category id; 0 means no e-mode',
110
+ }),
111
+ __metadata("design:type", Number)
112
+ ], StellarEventAccountAttributes.prototype, "eModeCategoryId", void 0);
113
+ __decorate([
114
+ (0, swagger_1.ApiProperty)({
115
+ enum: lending_enum_1.PositionMode,
116
+ enumName: 'PositionMode',
117
+ description: 'Strategy mode (Normal collapses to None in events)',
118
+ }),
119
+ __metadata("design:type", String)
120
+ ], StellarEventAccountAttributes.prototype, "mode", void 0);
121
+ __decorate([
122
+ (0, swagger_1.ApiProperty)({
123
+ type: String,
124
+ required: false,
125
+ description: 'Isolated collateral asset when isIsolatedPosition',
126
+ }),
127
+ __metadata("design:type", String)
128
+ ], StellarEventAccountAttributes.prototype, "isolatedToken", void 0);
129
+ class StellarEventPositionDelta {
130
+ }
131
+ exports.StellarEventPositionDelta = StellarEventPositionDelta;
132
+ __decorate([
133
+ (0, swagger_1.ApiProperty)({
134
+ type: String,
135
+ description: 'Action symbol that produced this delta (e.g. supply, borrow, liq_repay)',
136
+ }),
137
+ __metadata("design:type", String)
138
+ ], StellarEventPositionDelta.prototype, "action", void 0);
139
+ __decorate([
140
+ (0, swagger_1.ApiProperty)({
141
+ enum: lending_enum_1.AccountPositionType,
142
+ enumName: 'AccountPositionType',
143
+ description: 'Deposit (collateral) or Borrow (debt) side',
144
+ }),
145
+ __metadata("design:type", String)
146
+ ], StellarEventPositionDelta.prototype, "positionType", void 0);
147
+ __decorate([
148
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Asset address for this position' }),
149
+ __metadata("design:type", String)
150
+ ], StellarEventPositionDelta.prototype, "asset", void 0);
151
+ __decorate([
152
+ (0, swagger_1.ApiProperty)({
153
+ description: 'Post-mutation scaled supply/debt shares, RAY decimal string',
154
+ }),
155
+ __metadata("design:type", String)
156
+ ], StellarEventPositionDelta.prototype, "scaledAmountRay", void 0);
157
+ __decorate([
158
+ (0, swagger_1.ApiProperty)({
159
+ description: 'Supply index (deposits) or borrow index (debts), RAY decimal string',
160
+ }),
161
+ __metadata("design:type", String)
162
+ ], StellarEventPositionDelta.prototype, "indexRay", void 0);
163
+ __decorate([
164
+ (0, swagger_1.ApiProperty)({
165
+ description: 'Asset-native amount applied by the pool, decimal string',
166
+ }),
167
+ __metadata("design:type", String)
168
+ ], StellarEventPositionDelta.prototype, "amount", void 0);
169
+ __decorate([
170
+ (0, swagger_1.ApiProperty)({
171
+ required: false,
172
+ description: 'USD WAD price used for the mutation, decimal string when present',
173
+ }),
174
+ __metadata("design:type", String)
175
+ ], StellarEventPositionDelta.prototype, "assetPriceWad", void 0);
176
+ __decorate([
177
+ (0, swagger_1.ApiProperty)({
178
+ type: 'integer',
179
+ required: false,
180
+ description: 'Liquidation threshold, bps — present for Deposit, undefined for Borrow',
181
+ }),
182
+ __metadata("design:type", Number)
183
+ ], StellarEventPositionDelta.prototype, "liquidationThresholdBps", void 0);
184
+ __decorate([
185
+ (0, swagger_1.ApiProperty)({
186
+ type: 'integer',
187
+ required: false,
188
+ description: 'Liquidation bonus, bps — present for Deposit, undefined for Borrow',
189
+ }),
190
+ __metadata("design:type", Number)
191
+ ], StellarEventPositionDelta.prototype, "liquidationBonusBps", void 0);
192
+ __decorate([
193
+ (0, swagger_1.ApiProperty)({
194
+ type: 'integer',
195
+ required: false,
196
+ description: 'Loan-to-value, bps — present for Deposit, undefined for Borrow',
197
+ }),
198
+ __metadata("design:type", Number)
199
+ ], StellarEventPositionDelta.prototype, "loanToValueBps", void 0);
200
+ class StellarEventDebtCeilingEntry {
201
+ }
202
+ exports.StellarEventDebtCeilingEntry = StellarEventDebtCeilingEntry;
203
+ __decorate([
204
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Isolated asset address' }),
205
+ __metadata("design:type", String)
206
+ ], StellarEventDebtCeilingEntry.prototype, "asset", void 0);
207
+ __decorate([
208
+ (0, swagger_1.ApiProperty)({
209
+ description: 'Total isolated debt against the asset, USD WAD decimal string',
210
+ }),
211
+ __metadata("design:type", String)
212
+ ], StellarEventDebtCeilingEntry.prototype, "totalDebtUsdWad", void 0);
213
+ class StellarEventEModeCategory {
214
+ }
215
+ exports.StellarEventEModeCategory = StellarEventEModeCategory;
216
+ __decorate([
217
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'E-mode category id' }),
218
+ __metadata("design:type", Number)
219
+ ], StellarEventEModeCategory.prototype, "categoryId", void 0);
220
+ __decorate([
221
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'Loan-to-value, bps' }),
222
+ __metadata("design:type", Number)
223
+ ], StellarEventEModeCategory.prototype, "loanToValueBps", void 0);
224
+ __decorate([
225
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'Liquidation threshold, bps' }),
226
+ __metadata("design:type", Number)
227
+ ], StellarEventEModeCategory.prototype, "liquidationThresholdBps", void 0);
228
+ __decorate([
229
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'Liquidation bonus, bps' }),
230
+ __metadata("design:type", Number)
231
+ ], StellarEventEModeCategory.prototype, "liquidationBonusBps", void 0);
232
+ __decorate([
233
+ (0, swagger_1.ApiProperty)({ description: 'Whether the category is deprecated' }),
234
+ __metadata("design:type", Boolean)
235
+ ], StellarEventEModeCategory.prototype, "isDeprecated", void 0);
236
+ class StellarEModeAssetConfig {
237
+ }
238
+ exports.StellarEModeAssetConfig = StellarEModeAssetConfig;
239
+ __decorate([
240
+ (0, swagger_1.ApiProperty)({
241
+ description: 'Whether the asset is collateralizable within the category',
242
+ }),
243
+ __metadata("design:type", Boolean)
244
+ ], StellarEModeAssetConfig.prototype, "isCollateralizable", void 0);
245
+ __decorate([
246
+ (0, swagger_1.ApiProperty)({
247
+ description: 'Whether the asset is borrowable within the category',
248
+ }),
249
+ __metadata("design:type", Boolean)
250
+ ], StellarEModeAssetConfig.prototype, "isBorrowable", void 0);
251
+ // ---------- topic: market:create ----------
252
+ class StellarCreateMarketEvent {
253
+ }
254
+ exports.StellarCreateMarketEvent = StellarCreateMarketEvent;
255
+ __decorate([
256
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Base (pool) asset address' }),
257
+ __metadata("design:type", String)
258
+ ], StellarCreateMarketEvent.prototype, "baseAsset", void 0);
259
+ __decorate([
260
+ (0, swagger_1.ApiProperty)({ description: 'Max borrow rate, RAY decimal string' }),
261
+ __metadata("design:type", String)
262
+ ], StellarCreateMarketEvent.prototype, "maxBorrowRate", void 0);
263
+ __decorate([
264
+ (0, swagger_1.ApiProperty)({ description: 'Base borrow rate, RAY decimal string' }),
265
+ __metadata("design:type", String)
266
+ ], StellarCreateMarketEvent.prototype, "baseBorrowRate", void 0);
267
+ __decorate([
268
+ (0, swagger_1.ApiProperty)({ description: 'Slope 1, RAY decimal string' }),
269
+ __metadata("design:type", String)
270
+ ], StellarCreateMarketEvent.prototype, "slope1", void 0);
271
+ __decorate([
272
+ (0, swagger_1.ApiProperty)({ description: 'Slope 2, RAY decimal string' }),
273
+ __metadata("design:type", String)
274
+ ], StellarCreateMarketEvent.prototype, "slope2", void 0);
275
+ __decorate([
276
+ (0, swagger_1.ApiProperty)({ description: 'Slope 3, RAY decimal string' }),
277
+ __metadata("design:type", String)
278
+ ], StellarCreateMarketEvent.prototype, "slope3", void 0);
279
+ __decorate([
280
+ (0, swagger_1.ApiProperty)({ description: 'Mid utilization, RAY decimal string' }),
281
+ __metadata("design:type", String)
282
+ ], StellarCreateMarketEvent.prototype, "midUtilization", void 0);
283
+ __decorate([
284
+ (0, swagger_1.ApiProperty)({ description: 'Optimal utilization, RAY decimal string' }),
285
+ __metadata("design:type", String)
286
+ ], StellarCreateMarketEvent.prototype, "optimalUtilization", void 0);
287
+ __decorate([
288
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'Reserve factor, bps' }),
289
+ __metadata("design:type", Number)
290
+ ], StellarCreateMarketEvent.prototype, "reserveFactor", void 0);
291
+ __decorate([
292
+ (0, swagger_1.ApiProperty)({
293
+ type: String,
294
+ description: 'Deployed pool (market) contract address',
295
+ }),
296
+ __metadata("design:type", String)
297
+ ], StellarCreateMarketEvent.prototype, "marketAddress", void 0);
298
+ __decorate([
299
+ (0, swagger_1.ApiProperty)({
300
+ type: stellar_lending_admin_args_dto_1.AssetConfigRawDto,
301
+ description: 'Initial asset risk configuration',
302
+ }),
303
+ __metadata("design:type", stellar_lending_admin_args_dto_1.AssetConfigRawDto)
304
+ ], StellarCreateMarketEvent.prototype, "config", void 0);
305
+ // ---------- topic: market:params_update ----------
306
+ class StellarUpdateMarketParamsEvent {
307
+ }
308
+ exports.StellarUpdateMarketParamsEvent = StellarUpdateMarketParamsEvent;
309
+ __decorate([
310
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Pool asset address' }),
311
+ __metadata("design:type", String)
312
+ ], StellarUpdateMarketParamsEvent.prototype, "asset", void 0);
313
+ __decorate([
314
+ (0, swagger_1.ApiProperty)({ description: 'Max borrow rate, RAY decimal string' }),
315
+ __metadata("design:type", String)
316
+ ], StellarUpdateMarketParamsEvent.prototype, "maxBorrowRateRay", void 0);
317
+ __decorate([
318
+ (0, swagger_1.ApiProperty)({ description: 'Base borrow rate, RAY decimal string' }),
319
+ __metadata("design:type", String)
320
+ ], StellarUpdateMarketParamsEvent.prototype, "baseBorrowRateRay", void 0);
321
+ __decorate([
322
+ (0, swagger_1.ApiProperty)({ description: 'Slope 1, RAY decimal string' }),
323
+ __metadata("design:type", String)
324
+ ], StellarUpdateMarketParamsEvent.prototype, "slope1Ray", void 0);
325
+ __decorate([
326
+ (0, swagger_1.ApiProperty)({ description: 'Slope 2, RAY decimal string' }),
327
+ __metadata("design:type", String)
328
+ ], StellarUpdateMarketParamsEvent.prototype, "slope2Ray", void 0);
329
+ __decorate([
330
+ (0, swagger_1.ApiProperty)({ description: 'Slope 3, RAY decimal string' }),
331
+ __metadata("design:type", String)
332
+ ], StellarUpdateMarketParamsEvent.prototype, "slope3Ray", void 0);
333
+ __decorate([
334
+ (0, swagger_1.ApiProperty)({ description: 'Mid utilization, RAY decimal string' }),
335
+ __metadata("design:type", String)
336
+ ], StellarUpdateMarketParamsEvent.prototype, "midUtilizationRay", void 0);
337
+ __decorate([
338
+ (0, swagger_1.ApiProperty)({ description: 'Optimal utilization, RAY decimal string' }),
339
+ __metadata("design:type", String)
340
+ ], StellarUpdateMarketParamsEvent.prototype, "optimalUtilizationRay", void 0);
341
+ __decorate([
342
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'Reserve factor, bps' }),
343
+ __metadata("design:type", Number)
344
+ ], StellarUpdateMarketParamsEvent.prototype, "reserveFactorBps", void 0);
345
+ // ---------- topic: market:batch_state_update ----------
346
+ class StellarUpdateMarketStateBatchEvent {
347
+ }
348
+ exports.StellarUpdateMarketStateBatchEvent = StellarUpdateMarketStateBatchEvent;
349
+ __decorate([
350
+ (0, swagger_1.ApiProperty)({
351
+ type: StellarMarketStateSnapshot,
352
+ isArray: true,
353
+ description: 'Per-asset accrual snapshots from the batch',
354
+ }),
355
+ __metadata("design:type", Array)
356
+ ], StellarUpdateMarketStateBatchEvent.prototype, "updates", void 0);
357
+ // ---------- topic: position:batch_update ----------
358
+ class StellarUpdatePositionBatchEvent {
359
+ }
360
+ exports.StellarUpdatePositionBatchEvent = StellarUpdatePositionBatchEvent;
361
+ __decorate([
362
+ (0, swagger_1.ApiProperty)({
363
+ type: String,
364
+ description: 'Account id / nonce whose positions changed',
365
+ }),
366
+ __metadata("design:type", String)
367
+ ], StellarUpdatePositionBatchEvent.prototype, "accountId", void 0);
368
+ __decorate([
369
+ (0, swagger_1.ApiProperty)({
370
+ type: StellarEventAccountAttributes,
371
+ description: 'Account attributes at emission time',
372
+ }),
373
+ __metadata("design:type", StellarEventAccountAttributes)
374
+ ], StellarUpdatePositionBatchEvent.prototype, "accountAttributes", void 0);
375
+ __decorate([
376
+ (0, swagger_1.ApiProperty)({
377
+ type: StellarEventPositionDelta,
378
+ isArray: true,
379
+ description: 'Net position deltas in the transaction',
380
+ }),
381
+ __metadata("design:type", Array)
382
+ ], StellarUpdatePositionBatchEvent.prototype, "updates", void 0);
383
+ // ---------- topic: position:flash_loan ----------
384
+ class StellarFlashLoanEvent {
385
+ }
386
+ exports.StellarFlashLoanEvent = StellarFlashLoanEvent;
387
+ __decorate([
388
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Flash-loaned asset address' }),
389
+ __metadata("design:type", String)
390
+ ], StellarFlashLoanEvent.prototype, "asset", void 0);
391
+ __decorate([
392
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Receiver contract address' }),
393
+ __metadata("design:type", String)
394
+ ], StellarFlashLoanEvent.prototype, "receiver", void 0);
395
+ __decorate([
396
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Caller address' }),
397
+ __metadata("design:type", String)
398
+ ], StellarFlashLoanEvent.prototype, "caller", void 0);
399
+ __decorate([
400
+ (0, swagger_1.ApiProperty)({
401
+ description: 'Amount loaned, asset-native units decimal string',
402
+ }),
403
+ __metadata("design:type", String)
404
+ ], StellarFlashLoanEvent.prototype, "amount", void 0);
405
+ __decorate([
406
+ (0, swagger_1.ApiProperty)({
407
+ description: 'Flash-loan fee, asset-native units decimal string',
408
+ }),
409
+ __metadata("design:type", String)
410
+ ], StellarFlashLoanEvent.prototype, "fee", void 0);
411
+ // ---------- topic: config:asset ----------
412
+ class StellarUpdateAssetConfigEvent {
413
+ }
414
+ exports.StellarUpdateAssetConfigEvent = StellarUpdateAssetConfigEvent;
415
+ __decorate([
416
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Asset address' }),
417
+ __metadata("design:type", String)
418
+ ], StellarUpdateAssetConfigEvent.prototype, "asset", void 0);
419
+ __decorate([
420
+ (0, swagger_1.ApiProperty)({
421
+ type: stellar_lending_admin_args_dto_1.AssetConfigRawDto,
422
+ description: 'Updated asset risk configuration',
423
+ }),
424
+ __metadata("design:type", stellar_lending_admin_args_dto_1.AssetConfigRawDto)
425
+ ], StellarUpdateAssetConfigEvent.prototype, "config", void 0);
426
+ // ---------- topic: config:oracle ----------
427
+ class StellarUpdateAssetOracleEvent {
428
+ }
429
+ exports.StellarUpdateAssetOracleEvent = StellarUpdateAssetOracleEvent;
430
+ __decorate([
431
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Asset address' }),
432
+ __metadata("design:type", String)
433
+ ], StellarUpdateAssetOracleEvent.prototype, "asset", void 0);
434
+ __decorate([
435
+ (0, swagger_1.ApiProperty)({
436
+ type: lending_oracle_1.StellarLendingOracleUpdateStruct,
437
+ description: 'Resolved oracle provider configuration',
438
+ }),
439
+ __metadata("design:type", lending_oracle_1.StellarLendingOracleUpdateStruct)
440
+ ], StellarUpdateAssetOracleEvent.prototype, "oracle", void 0);
441
+ // ---------- topic: config:emode_category ----------
442
+ class StellarUpdateEModeCategoryEvent {
443
+ }
444
+ exports.StellarUpdateEModeCategoryEvent = StellarUpdateEModeCategoryEvent;
445
+ __decorate([
446
+ (0, swagger_1.ApiProperty)({
447
+ type: StellarEventEModeCategory,
448
+ description: 'E-mode category snapshot',
449
+ }),
450
+ __metadata("design:type", StellarEventEModeCategory)
451
+ ], StellarUpdateEModeCategoryEvent.prototype, "category", void 0);
452
+ // ---------- topic: config:emode_asset ----------
453
+ class StellarUpdateEModeAssetEvent {
454
+ }
455
+ exports.StellarUpdateEModeAssetEvent = StellarUpdateEModeAssetEvent;
456
+ __decorate([
457
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Asset address' }),
458
+ __metadata("design:type", String)
459
+ ], StellarUpdateEModeAssetEvent.prototype, "asset", void 0);
460
+ __decorate([
461
+ (0, swagger_1.ApiProperty)({
462
+ type: StellarEModeAssetConfig,
463
+ description: 'Per-asset e-mode flags',
464
+ }),
465
+ __metadata("design:type", StellarEModeAssetConfig)
466
+ ], StellarUpdateEModeAssetEvent.prototype, "config", void 0);
467
+ __decorate([
468
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'E-mode category id' }),
469
+ __metadata("design:type", Number)
470
+ ], StellarUpdateEModeAssetEvent.prototype, "categoryId", void 0);
471
+ // ---------- topic: config:remove_emode_asset ----------
472
+ class StellarRemoveEModeAssetEvent {
473
+ }
474
+ exports.StellarRemoveEModeAssetEvent = StellarRemoveEModeAssetEvent;
475
+ __decorate([
476
+ (0, swagger_1.ApiProperty)({
477
+ type: String,
478
+ description: 'Asset address removed from the category',
479
+ }),
480
+ __metadata("design:type", String)
481
+ ], StellarRemoveEModeAssetEvent.prototype, "asset", void 0);
482
+ __decorate([
483
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'E-mode category id' }),
484
+ __metadata("design:type", Number)
485
+ ], StellarRemoveEModeAssetEvent.prototype, "categoryId", void 0);
486
+ // ---------- topic: debt:ceiling_update (legacy single; not emitted on-chain) ----------
487
+ class StellarUpdateDebtCeilingEvent {
488
+ }
489
+ exports.StellarUpdateDebtCeilingEvent = StellarUpdateDebtCeilingEvent;
490
+ __decorate([
491
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Isolated asset address' }),
492
+ __metadata("design:type", String)
493
+ ], StellarUpdateDebtCeilingEvent.prototype, "asset", void 0);
494
+ __decorate([
495
+ (0, swagger_1.ApiProperty)({
496
+ description: 'Total isolated debt against the asset, USD WAD decimal string',
497
+ }),
498
+ __metadata("design:type", String)
499
+ ], StellarUpdateDebtCeilingEvent.prototype, "totalDebtUsdWad", void 0);
500
+ // ---------- topic: debt:ceiling_batch_update ----------
501
+ class StellarUpdateDebtCeilingBatchEvent {
502
+ }
503
+ exports.StellarUpdateDebtCeilingBatchEvent = StellarUpdateDebtCeilingBatchEvent;
504
+ __decorate([
505
+ (0, swagger_1.ApiProperty)({
506
+ type: StellarEventDebtCeilingEntry,
507
+ isArray: true,
508
+ description: 'Final isolated-debt totals for touched assets',
509
+ }),
510
+ __metadata("design:type", Array)
511
+ ], StellarUpdateDebtCeilingBatchEvent.prototype, "updates", void 0);
512
+ // ---------- topic: debt:bad_debt ----------
513
+ class StellarCleanBadDebtEvent {
514
+ }
515
+ exports.StellarCleanBadDebtEvent = StellarCleanBadDebtEvent;
516
+ __decorate([
517
+ (0, swagger_1.ApiProperty)({
518
+ type: String,
519
+ description: 'Account id / nonce that was cleaned',
520
+ }),
521
+ __metadata("design:type", String)
522
+ ], StellarCleanBadDebtEvent.prototype, "accountId", void 0);
523
+ __decorate([
524
+ (0, swagger_1.ApiProperty)({
525
+ description: 'Debt written off by cleanup, USD WAD decimal string',
526
+ }),
527
+ __metadata("design:type", String)
528
+ ], StellarCleanBadDebtEvent.prototype, "totalBorrowUsdWad", void 0);
529
+ __decorate([
530
+ (0, swagger_1.ApiProperty)({
531
+ description: 'Collateral seized by cleanup, USD WAD decimal string',
532
+ }),
533
+ __metadata("design:type", String)
534
+ ], StellarCleanBadDebtEvent.prototype, "totalCollateralUsdWad", void 0);
535
+ // ---------- topic: strategy:initial_payment ----------
536
+ class StellarInitialMultiplyPaymentEvent {
537
+ }
538
+ exports.StellarInitialMultiplyPaymentEvent = StellarInitialMultiplyPaymentEvent;
539
+ __decorate([
540
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Initial payment token address' }),
541
+ __metadata("design:type", String)
542
+ ], StellarInitialMultiplyPaymentEvent.prototype, "token", void 0);
543
+ __decorate([
544
+ (0, swagger_1.ApiProperty)({
545
+ description: 'Initial payment amount, asset-native units decimal string',
546
+ }),
547
+ __metadata("design:type", String)
548
+ ], StellarInitialMultiplyPaymentEvent.prototype, "amount", void 0);
549
+ __decorate([
550
+ (0, swagger_1.ApiProperty)({
551
+ description: 'USD WAD value of the initial payment, decimal string',
552
+ }),
553
+ __metadata("design:type", String)
554
+ ], StellarInitialMultiplyPaymentEvent.prototype, "usdValueWad", void 0);
555
+ __decorate([
556
+ (0, swagger_1.ApiProperty)({
557
+ type: String,
558
+ description: 'Account id / nonce that received the leverage entry',
559
+ }),
560
+ __metadata("design:type", String)
561
+ ], StellarInitialMultiplyPaymentEvent.prototype, "accountId", void 0);
562
+ // ---------- topic: config:approve_token ----------
563
+ class StellarApproveTokenEvent {
564
+ }
565
+ exports.StellarApproveTokenEvent = StellarApproveTokenEvent;
566
+ __decorate([
567
+ (0, swagger_1.ApiProperty)({
568
+ type: String,
569
+ description: 'Approved WASM hash, 32-byte hex string',
570
+ }),
571
+ __metadata("design:type", String)
572
+ ], StellarApproveTokenEvent.prototype, "wasmHash", void 0);
573
+ __decorate([
574
+ (0, swagger_1.ApiProperty)({
575
+ description: 'Whether the hash was approved (true) or revoked (false)',
576
+ }),
577
+ __metadata("design:type", Boolean)
578
+ ], StellarApproveTokenEvent.prototype, "approved", void 0);
579
+ // ---------- topic: config:aggregator ----------
580
+ class StellarUpdateAggregatorEvent {
581
+ }
582
+ exports.StellarUpdateAggregatorEvent = StellarUpdateAggregatorEvent;
583
+ __decorate([
584
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Aggregator contract address' }),
585
+ __metadata("design:type", String)
586
+ ], StellarUpdateAggregatorEvent.prototype, "aggregator", void 0);
587
+ // ---------- topic: config:accumulator ----------
588
+ class StellarUpdateAccumulatorEvent {
589
+ }
590
+ exports.StellarUpdateAccumulatorEvent = StellarUpdateAccumulatorEvent;
591
+ __decorate([
592
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Accumulator contract address' }),
593
+ __metadata("design:type", String)
594
+ ], StellarUpdateAccumulatorEvent.prototype, "accumulator", void 0);
595
+ // ---------- topic: config:pool_template ----------
596
+ class StellarUpdatePoolTemplateEvent {
597
+ }
598
+ exports.StellarUpdatePoolTemplateEvent = StellarUpdatePoolTemplateEvent;
599
+ __decorate([
600
+ (0, swagger_1.ApiProperty)({
601
+ type: String,
602
+ description: 'Pool template WASM hash, 32-byte hex string',
603
+ }),
604
+ __metadata("design:type", String)
605
+ ], StellarUpdatePoolTemplateEvent.prototype, "wasmHash", void 0);
606
+ // ---------- topic: config:position_limits ----------
607
+ class StellarUpdatePositionLimitsEvent {
608
+ }
609
+ exports.StellarUpdatePositionLimitsEvent = StellarUpdatePositionLimitsEvent;
610
+ __decorate([
611
+ (0, swagger_1.ApiProperty)({
612
+ type: 'integer',
613
+ description: 'Max supply positions per account',
614
+ }),
615
+ __metadata("design:type", Number)
616
+ ], StellarUpdatePositionLimitsEvent.prototype, "maxSupplyPositions", void 0);
617
+ __decorate([
618
+ (0, swagger_1.ApiProperty)({
619
+ type: 'integer',
620
+ description: 'Max borrow positions per account',
621
+ }),
622
+ __metadata("design:type", Number)
623
+ ], StellarUpdatePositionLimitsEvent.prototype, "maxBorrowPositions", void 0);
624
+ // ---------- topic: config:oracle_disabled ----------
625
+ class StellarOracleDisabledEvent {
626
+ }
627
+ exports.StellarOracleDisabledEvent = StellarOracleDisabledEvent;
628
+ __decorate([
629
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Asset whose oracle was disabled' }),
630
+ __metadata("design:type", String)
631
+ ], StellarOracleDisabledEvent.prototype, "asset", void 0);
632
+ // ---------- topic: oracle:twap_degraded ----------
633
+ class StellarOracleTwapDegradedEvent {
634
+ }
635
+ exports.StellarOracleTwapDegradedEvent = StellarOracleTwapDegradedEvent;
636
+ __decorate([
637
+ (0, swagger_1.ApiProperty)({
638
+ type: String,
639
+ description: 'Oracle contract address that degraded',
640
+ }),
641
+ __metadata("design:type", String)
642
+ ], StellarOracleTwapDegradedEvent.prototype, "oracle", void 0);
643
+ __decorate([
644
+ (0, swagger_1.ApiProperty)({
645
+ type: 'integer',
646
+ description: 'Provider-specific degradation reason code',
647
+ }),
648
+ __metadata("design:type", Number)
649
+ ], StellarOracleTwapDegradedEvent.prototype, "reasonCode", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.402",
3
+ "version": "1.0.404",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {