@xoxno/types 1.0.452 → 1.0.454

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.
@@ -9,11 +9,8 @@ export declare enum StellarLendingTopic {
9
9
  MarketParamsBatchUpdate = "market:batch_params_update",
10
10
  PositionBatchUpdate = "position:batch_update",
11
11
  PositionFlashLoan = "position:flash_loan",
12
- ConfigAsset = "config:asset",
12
+ PositionLiquidation = "position:liquidation",
13
13
  ConfigOracle = "config:oracle",
14
- ConfigEModeCategory = "config:emode_category",
15
- ConfigEModeAsset = "config:emode_asset",
16
- ConfigRemoveEModeAsset = "config:remove_emode_asset",
17
14
  DebtBadDebt = "debt:bad_debt",
18
15
  StrategyInitialPayment = "strategy:initial_payment",
19
16
  StrategyFee = "strategy:fee",
@@ -22,5 +19,6 @@ export declare enum StellarLendingTopic {
22
19
  ConfigAccumulator = "config:accumulator",
23
20
  ConfigPoolTemplate = "config:pool_template",
24
21
  ConfigPositionLimits = "config:position_limits",
25
- ConfigOracleDisabled = "config:oracle_disabled"
22
+ ConfigOracleDisabled = "config:oracle_disabled",
23
+ ConfigSpoke = "config:spoke"
26
24
  }
@@ -13,11 +13,8 @@ var StellarLendingTopic;
13
13
  StellarLendingTopic["MarketParamsBatchUpdate"] = "market:batch_params_update";
14
14
  StellarLendingTopic["PositionBatchUpdate"] = "position:batch_update";
15
15
  StellarLendingTopic["PositionFlashLoan"] = "position:flash_loan";
16
- StellarLendingTopic["ConfigAsset"] = "config:asset";
16
+ StellarLendingTopic["PositionLiquidation"] = "position:liquidation";
17
17
  StellarLendingTopic["ConfigOracle"] = "config:oracle";
18
- StellarLendingTopic["ConfigEModeCategory"] = "config:emode_category";
19
- StellarLendingTopic["ConfigEModeAsset"] = "config:emode_asset";
20
- StellarLendingTopic["ConfigRemoveEModeAsset"] = "config:remove_emode_asset";
21
18
  StellarLendingTopic["DebtBadDebt"] = "debt:bad_debt";
22
19
  StellarLendingTopic["StrategyInitialPayment"] = "strategy:initial_payment";
23
20
  StellarLendingTopic["StrategyFee"] = "strategy:fee";
@@ -27,4 +24,5 @@ var StellarLendingTopic;
27
24
  StellarLendingTopic["ConfigPoolTemplate"] = "config:pool_template";
28
25
  StellarLendingTopic["ConfigPositionLimits"] = "config:position_limits";
29
26
  StellarLendingTopic["ConfigOracleDisabled"] = "config:oracle_disabled";
27
+ StellarLendingTopic["ConfigSpoke"] = "config:spoke";
30
28
  })(StellarLendingTopic || (exports.StellarLendingTopic = StellarLendingTopic = {}));
@@ -1,27 +1,28 @@
1
- import { AssetConfigRawDto, MarketParamsRawDto } from './stellar-lending-admin-args.dto';
1
+ import { MarketParamsRawDto } from './stellar-lending-admin-args.dto';
2
2
  import { StellarLendingOracleUpdateStruct } from '../../cosmos-db/documents/lending/lending-oracle';
3
3
  /**
4
4
  * Decoded Stellar lending event payload types.
5
5
  */
6
6
  export declare class StellarMarketStateSnapshot {
7
+ hubId: number;
7
8
  asset: string;
8
9
  timestamp: number;
9
10
  supplyIndexRay: string;
10
11
  borrowIndexRay: string;
11
- reservesRay: string;
12
+ cash: string;
12
13
  suppliedRay: string;
13
14
  borrowedRay: string;
14
15
  revenueRay: string;
15
- assetPriceWad?: string;
16
16
  }
17
17
  export declare class StellarEventAccountAttributes {
18
18
  owner: string;
19
- eModeCategoryId: number;
19
+ spokeId: number;
20
20
  mode: 'None' | 'Multiply' | 'Long' | 'Short';
21
21
  }
22
22
  export declare class StellarEventPositionDelta {
23
23
  action: string;
24
24
  positionType: 'Deposit' | 'Borrow';
25
+ hubId: number;
25
26
  asset: string;
26
27
  scaledAmountRay: string;
27
28
  indexRay: string;
@@ -29,21 +30,10 @@ export declare class StellarEventPositionDelta {
29
30
  liquidationThresholdBps?: number;
30
31
  liquidationBonusBps?: number;
31
32
  loanToValueBps?: number;
32
- }
33
- export declare class StellarEventEModeCategory {
34
- categoryId: number;
35
- isDeprecated: boolean;
36
- }
37
- export declare class StellarEModeAssetConfig {
38
- isCollateralizable: boolean;
39
- isBorrowable: boolean;
40
- loanToValueBps: number;
41
- liquidationThresholdBps: number;
42
- liquidationBonusBps: number;
43
- supplyCap: string;
44
- borrowCap: string;
33
+ liquidationFeesBps?: number;
45
34
  }
46
35
  export declare class StellarCreateMarketEvent {
36
+ hubId: number;
47
37
  baseAsset: string;
48
38
  maxBorrowRate: string;
49
39
  baseBorrowRate: string;
@@ -52,10 +42,9 @@ export declare class StellarCreateMarketEvent {
52
42
  slope3: string;
53
43
  midUtilization: string;
54
44
  optimalUtilization: string;
55
- maxUtilization?: string;
45
+ maxUtilization: string;
56
46
  reserveFactor: number;
57
47
  marketAddress: string;
58
- config: AssetConfigRawDto;
59
48
  }
60
49
  export declare class StellarUpdateMarketParamsEvent {
61
50
  asset: string;
@@ -70,6 +59,7 @@ export declare class StellarUpdateMarketParamsEvent {
70
59
  reserveFactorBps: number;
71
60
  }
72
61
  export declare class StellarPoolMarketParamsUpdate {
62
+ hubId: number;
73
63
  asset: string;
74
64
  params: MarketParamsRawDto;
75
65
  }
@@ -85,38 +75,24 @@ export declare class StellarUpdatePositionBatchEvent {
85
75
  updates: StellarEventPositionDelta[];
86
76
  }
87
77
  export declare class StellarFlashLoanEvent {
78
+ hubId: number;
88
79
  asset: string;
89
80
  receiver: string;
90
81
  caller: string;
91
82
  amount: string;
92
83
  fee: string;
93
84
  }
94
- export declare class StellarUpdateAssetConfigEvent {
95
- asset: string;
96
- config: AssetConfigRawDto;
97
- }
98
85
  export declare class StellarUpdateAssetOracleEvent {
99
86
  asset: string;
100
87
  oracle: StellarLendingOracleUpdateStruct;
101
88
  }
102
- export declare class StellarUpdateEModeCategoryEvent {
103
- category: StellarEventEModeCategory;
104
- }
105
- export declare class StellarUpdateEModeAssetEvent {
106
- asset: string;
107
- config: StellarEModeAssetConfig;
108
- categoryId: number;
109
- }
110
- export declare class StellarRemoveEModeAssetEvent {
111
- asset: string;
112
- categoryId: number;
113
- }
114
89
  export declare class StellarCleanBadDebtEvent {
115
90
  accountId: string;
116
91
  totalBorrowUsdWad: string;
117
92
  totalCollateralUsdWad: string;
118
93
  }
119
94
  export declare class StellarStrategyFeeEvent {
95
+ hubId: number;
120
96
  asset: string;
121
97
  amount: string;
122
98
  fee: string;
@@ -148,6 +124,19 @@ export declare class StellarUpdatePositionLimitsEvent {
148
124
  export declare class StellarOracleDisabledEvent {
149
125
  asset: string;
150
126
  }
127
+ export declare class StellarLiquidationEvent {
128
+ liquidator: string;
129
+ accountId: string;
130
+ repaidUsdWad: string;
131
+ bonusBps: string;
132
+ }
133
+ export declare class StellarUpdateSpokeEvent {
134
+ spokeId: number;
135
+ isDeprecated: boolean;
136
+ liquidationTargetHfWad: string;
137
+ healthFactorForMaxBonusWad: string;
138
+ liquidationBonusFactorBps: number;
139
+ }
151
140
  /**
152
141
  * Discriminated union of every decoded Stellar lending event, keyed by the
153
142
  * `"<domain>:<action>"` topic. Narrow on `topic` to access the typed `data`.
@@ -170,21 +159,12 @@ export type StellarLendingDecodedEvent = {
170
159
  } | {
171
160
  topic: 'position:flash_loan';
172
161
  data: StellarFlashLoanEvent;
173
- } | {
174
- topic: 'config:asset';
175
- data: StellarUpdateAssetConfigEvent;
176
162
  } | {
177
163
  topic: 'config:oracle';
178
164
  data: StellarUpdateAssetOracleEvent;
179
165
  } | {
180
- topic: 'config:emode_category';
181
- data: StellarUpdateEModeCategoryEvent;
182
- } | {
183
- topic: 'config:emode_asset';
184
- data: StellarUpdateEModeAssetEvent;
185
- } | {
186
- topic: 'config:remove_emode_asset';
187
- data: StellarRemoveEModeAssetEvent;
166
+ topic: 'position:liquidation';
167
+ data: StellarLiquidationEvent;
188
168
  } | {
189
169
  topic: 'debt:bad_debt';
190
170
  data: StellarCleanBadDebtEvent;
@@ -212,4 +192,7 @@ export type StellarLendingDecodedEvent = {
212
192
  } | {
213
193
  topic: 'config:oracle_disabled';
214
194
  data: StellarOracleDisabledEvent;
195
+ } | {
196
+ topic: 'config:spoke';
197
+ data: StellarUpdateSpokeEvent;
215
198
  };
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.StellarOracleDisabledEvent = exports.StellarUpdatePositionLimitsEvent = exports.StellarUpdatePoolTemplateEvent = exports.StellarUpdateAccumulatorEvent = exports.StellarUpdateAggregatorEvent = exports.StellarApproveTokenEvent = exports.StellarInitialMultiplyPaymentEvent = exports.StellarStrategyFeeEvent = exports.StellarCleanBadDebtEvent = exports.StellarRemoveEModeAssetEvent = exports.StellarUpdateEModeAssetEvent = exports.StellarUpdateEModeCategoryEvent = exports.StellarUpdateAssetOracleEvent = exports.StellarUpdateAssetConfigEvent = exports.StellarFlashLoanEvent = exports.StellarUpdatePositionBatchEvent = exports.StellarUpdateMarketStateBatchEvent = exports.StellarUpdateMarketParamsBatchEvent = exports.StellarPoolMarketParamsUpdate = exports.StellarUpdateMarketParamsEvent = exports.StellarCreateMarketEvent = exports.StellarEModeAssetConfig = exports.StellarEventEModeCategory = exports.StellarEventPositionDelta = exports.StellarEventAccountAttributes = exports.StellarMarketStateSnapshot = void 0;
12
+ exports.StellarUpdateSpokeEvent = exports.StellarLiquidationEvent = exports.StellarOracleDisabledEvent = exports.StellarUpdatePositionLimitsEvent = exports.StellarUpdatePoolTemplateEvent = exports.StellarUpdateAccumulatorEvent = exports.StellarUpdateAggregatorEvent = exports.StellarApproveTokenEvent = exports.StellarInitialMultiplyPaymentEvent = exports.StellarStrategyFeeEvent = exports.StellarCleanBadDebtEvent = exports.StellarUpdateAssetOracleEvent = exports.StellarFlashLoanEvent = exports.StellarUpdatePositionBatchEvent = exports.StellarUpdateMarketStateBatchEvent = exports.StellarUpdateMarketParamsBatchEvent = exports.StellarPoolMarketParamsUpdate = exports.StellarUpdateMarketParamsEvent = exports.StellarCreateMarketEvent = exports.StellarEventPositionDelta = exports.StellarEventAccountAttributes = exports.StellarMarketStateSnapshot = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const lending_enum_1 = require("../../enums/lending.enum");
15
15
  const stellar_lending_admin_args_dto_1 = require("./stellar-lending-admin-args.dto");
@@ -20,6 +20,10 @@ const lending_oracle_1 = require("../../cosmos-db/documents/lending/lending-orac
20
20
  class StellarMarketStateSnapshot {
21
21
  }
22
22
  exports.StellarMarketStateSnapshot = StellarMarketStateSnapshot;
23
+ __decorate([
24
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'Hub the market belongs to' }),
25
+ __metadata("design:type", Number)
26
+ ], StellarMarketStateSnapshot.prototype, "hubId", void 0);
23
27
  __decorate([
24
28
  (0, swagger_1.ApiProperty)({
25
29
  type: String,
@@ -51,7 +55,7 @@ __decorate([
51
55
  description: 'Live pool token balance, asset-native units decimal string',
52
56
  }),
53
57
  __metadata("design:type", String)
54
- ], StellarMarketStateSnapshot.prototype, "reservesRay", void 0);
58
+ ], StellarMarketStateSnapshot.prototype, "cash", void 0);
55
59
  __decorate([
56
60
  (0, swagger_1.ApiProperty)({
57
61
  description: 'Total scaled supply shares, RAY decimal string',
@@ -70,13 +74,6 @@ __decorate([
70
74
  }),
71
75
  __metadata("design:type", String)
72
76
  ], StellarMarketStateSnapshot.prototype, "revenueRay", void 0);
73
- __decorate([
74
- (0, swagger_1.ApiProperty)({
75
- required: false,
76
- description: 'USD WAD price used for accrual, decimal string when present',
77
- }),
78
- __metadata("design:type", String)
79
- ], StellarMarketStateSnapshot.prototype, "assetPriceWad", void 0);
80
77
  class StellarEventAccountAttributes {
81
78
  }
82
79
  exports.StellarEventAccountAttributes = StellarEventAccountAttributes;
@@ -87,10 +84,10 @@ __decorate([
87
84
  __decorate([
88
85
  (0, swagger_1.ApiProperty)({
89
86
  type: 'integer',
90
- description: 'E-mode category id; 0 means no e-mode',
87
+ description: 'Risk spoke the account binds to',
91
88
  }),
92
89
  __metadata("design:type", Number)
93
- ], StellarEventAccountAttributes.prototype, "eModeCategoryId", void 0);
90
+ ], StellarEventAccountAttributes.prototype, "spokeId", void 0);
94
91
  __decorate([
95
92
  (0, swagger_1.ApiProperty)({
96
93
  enum: lending_enum_1.PositionMode,
@@ -117,6 +114,10 @@ __decorate([
117
114
  }),
118
115
  __metadata("design:type", String)
119
116
  ], StellarEventPositionDelta.prototype, "positionType", void 0);
117
+ __decorate([
118
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'Hub the position belongs to' }),
119
+ __metadata("design:type", Number)
120
+ ], StellarEventPositionDelta.prototype, "hubId", void 0);
120
121
  __decorate([
121
122
  (0, swagger_1.ApiProperty)({ type: String, description: 'Asset address for this position' }),
122
123
  __metadata("design:type", String)
@@ -163,71 +164,22 @@ __decorate([
163
164
  }),
164
165
  __metadata("design:type", Number)
165
166
  ], StellarEventPositionDelta.prototype, "loanToValueBps", void 0);
166
- class StellarEventEModeCategory {
167
- }
168
- exports.StellarEventEModeCategory = StellarEventEModeCategory;
169
- __decorate([
170
- (0, swagger_1.ApiProperty)({ type: 'integer', description: 'E-mode category id' }),
171
- __metadata("design:type", Number)
172
- ], StellarEventEModeCategory.prototype, "categoryId", void 0);
173
- __decorate([
174
- (0, swagger_1.ApiProperty)({ description: 'Whether the category is deprecated' }),
175
- __metadata("design:type", Boolean)
176
- ], StellarEventEModeCategory.prototype, "isDeprecated", void 0);
177
- class StellarEModeAssetConfig {
178
- }
179
- exports.StellarEModeAssetConfig = StellarEModeAssetConfig;
180
- __decorate([
181
- (0, swagger_1.ApiProperty)({
182
- description: 'Whether the asset is collateralizable within the category',
183
- }),
184
- __metadata("design:type", Boolean)
185
- ], StellarEModeAssetConfig.prototype, "isCollateralizable", void 0);
186
- __decorate([
187
- (0, swagger_1.ApiProperty)({
188
- description: 'Whether the asset is borrowable within the category',
189
- }),
190
- __metadata("design:type", Boolean)
191
- ], StellarEModeAssetConfig.prototype, "isBorrowable", void 0);
192
- __decorate([
193
- (0, swagger_1.ApiProperty)({
194
- type: 'integer',
195
- description: 'Loan-to-value, bps — per-asset within the category',
196
- }),
197
- __metadata("design:type", Number)
198
- ], StellarEModeAssetConfig.prototype, "loanToValueBps", void 0);
199
- __decorate([
200
- (0, swagger_1.ApiProperty)({
201
- type: 'integer',
202
- description: 'Liquidation threshold, bps — per-asset within the category',
203
- }),
204
- __metadata("design:type", Number)
205
- ], StellarEModeAssetConfig.prototype, "liquidationThresholdBps", void 0);
206
167
  __decorate([
207
168
  (0, swagger_1.ApiProperty)({
208
169
  type: 'integer',
209
- description: 'Liquidation bonus, bps — per-asset within the category',
170
+ required: false,
171
+ description: 'Protocol liquidation fee, bps — present for Deposit, undefined for Borrow',
210
172
  }),
211
173
  __metadata("design:type", Number)
212
- ], StellarEModeAssetConfig.prototype, "liquidationBonusBps", void 0);
213
- __decorate([
214
- (0, swagger_1.ApiProperty)({
215
- description: 'Spoke supply cap in asset-native units (0 = uncapped). Enforced per e-mode category.',
216
- example: '0',
217
- }),
218
- __metadata("design:type", String)
219
- ], StellarEModeAssetConfig.prototype, "supplyCap", void 0);
220
- __decorate([
221
- (0, swagger_1.ApiProperty)({
222
- description: 'Spoke borrow cap in asset-native units (0 = uncapped). Enforced per e-mode category.',
223
- example: '0',
224
- }),
225
- __metadata("design:type", String)
226
- ], StellarEModeAssetConfig.prototype, "borrowCap", void 0);
174
+ ], StellarEventPositionDelta.prototype, "liquidationFeesBps", void 0);
227
175
  // ---------- topic: market:create ----------
228
176
  class StellarCreateMarketEvent {
229
177
  }
230
178
  exports.StellarCreateMarketEvent = StellarCreateMarketEvent;
179
+ __decorate([
180
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'Hub the market belongs to' }),
181
+ __metadata("design:type", Number)
182
+ ], StellarCreateMarketEvent.prototype, "hubId", void 0);
231
183
  __decorate([
232
184
  (0, swagger_1.ApiProperty)({ type: String, description: 'Base (pool) asset address' }),
233
185
  __metadata("design:type", String)
@@ -261,7 +213,7 @@ __decorate([
261
213
  __metadata("design:type", String)
262
214
  ], StellarCreateMarketEvent.prototype, "optimalUtilization", void 0);
263
215
  __decorate([
264
- (0, swagger_1.ApiProperty)({ type: String, required: false, description: 'Max utilization, RAY decimal string' }),
216
+ (0, swagger_1.ApiProperty)({ description: 'Max utilization, RAY decimal string' }),
265
217
  __metadata("design:type", String)
266
218
  ], StellarCreateMarketEvent.prototype, "maxUtilization", void 0);
267
219
  __decorate([
@@ -275,13 +227,6 @@ __decorate([
275
227
  }),
276
228
  __metadata("design:type", String)
277
229
  ], StellarCreateMarketEvent.prototype, "marketAddress", void 0);
278
- __decorate([
279
- (0, swagger_1.ApiProperty)({
280
- type: stellar_lending_admin_args_dto_1.AssetConfigRawDto,
281
- description: 'Initial asset risk configuration',
282
- }),
283
- __metadata("design:type", stellar_lending_admin_args_dto_1.AssetConfigRawDto)
284
- ], StellarCreateMarketEvent.prototype, "config", void 0);
285
230
  // ---------- topic: market:params_update ----------
286
231
  class StellarUpdateMarketParamsEvent {
287
232
  }
@@ -329,6 +274,10 @@ __decorate([
329
274
  class StellarPoolMarketParamsUpdate {
330
275
  }
331
276
  exports.StellarPoolMarketParamsUpdate = StellarPoolMarketParamsUpdate;
277
+ __decorate([
278
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'Hub the market belongs to' }),
279
+ __metadata("design:type", Number)
280
+ ], StellarPoolMarketParamsUpdate.prototype, "hubId", void 0);
332
281
  __decorate([
333
282
  (0, swagger_1.ApiProperty)({ type: String, description: 'Pool asset address' }),
334
283
  __metadata("design:type", String)
@@ -394,6 +343,10 @@ __decorate([
394
343
  class StellarFlashLoanEvent {
395
344
  }
396
345
  exports.StellarFlashLoanEvent = StellarFlashLoanEvent;
346
+ __decorate([
347
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'Hub the market belongs to' }),
348
+ __metadata("design:type", Number)
349
+ ], StellarFlashLoanEvent.prototype, "hubId", void 0);
397
350
  __decorate([
398
351
  (0, swagger_1.ApiProperty)({ type: String, description: 'Flash-loaned asset address' }),
399
352
  __metadata("design:type", String)
@@ -418,21 +371,6 @@ __decorate([
418
371
  }),
419
372
  __metadata("design:type", String)
420
373
  ], StellarFlashLoanEvent.prototype, "fee", void 0);
421
- // ---------- topic: config:asset ----------
422
- class StellarUpdateAssetConfigEvent {
423
- }
424
- exports.StellarUpdateAssetConfigEvent = StellarUpdateAssetConfigEvent;
425
- __decorate([
426
- (0, swagger_1.ApiProperty)({ type: String, description: 'Asset address' }),
427
- __metadata("design:type", String)
428
- ], StellarUpdateAssetConfigEvent.prototype, "asset", void 0);
429
- __decorate([
430
- (0, swagger_1.ApiProperty)({
431
- type: stellar_lending_admin_args_dto_1.AssetConfigRawDto,
432
- description: 'Updated asset risk configuration',
433
- }),
434
- __metadata("design:type", stellar_lending_admin_args_dto_1.AssetConfigRawDto)
435
- ], StellarUpdateAssetConfigEvent.prototype, "config", void 0);
436
374
  // ---------- topic: config:oracle ----------
437
375
  class StellarUpdateAssetOracleEvent {
438
376
  }
@@ -448,51 +386,6 @@ __decorate([
448
386
  }),
449
387
  __metadata("design:type", lending_oracle_1.StellarLendingOracleUpdateStruct)
450
388
  ], StellarUpdateAssetOracleEvent.prototype, "oracle", void 0);
451
- // ---------- topic: config:emode_category ----------
452
- class StellarUpdateEModeCategoryEvent {
453
- }
454
- exports.StellarUpdateEModeCategoryEvent = StellarUpdateEModeCategoryEvent;
455
- __decorate([
456
- (0, swagger_1.ApiProperty)({
457
- type: StellarEventEModeCategory,
458
- description: 'E-mode category snapshot',
459
- }),
460
- __metadata("design:type", StellarEventEModeCategory)
461
- ], StellarUpdateEModeCategoryEvent.prototype, "category", void 0);
462
- // ---------- topic: config:emode_asset ----------
463
- class StellarUpdateEModeAssetEvent {
464
- }
465
- exports.StellarUpdateEModeAssetEvent = StellarUpdateEModeAssetEvent;
466
- __decorate([
467
- (0, swagger_1.ApiProperty)({ type: String, description: 'Asset address' }),
468
- __metadata("design:type", String)
469
- ], StellarUpdateEModeAssetEvent.prototype, "asset", void 0);
470
- __decorate([
471
- (0, swagger_1.ApiProperty)({
472
- type: StellarEModeAssetConfig,
473
- description: 'Per-asset e-mode flags',
474
- }),
475
- __metadata("design:type", StellarEModeAssetConfig)
476
- ], StellarUpdateEModeAssetEvent.prototype, "config", void 0);
477
- __decorate([
478
- (0, swagger_1.ApiProperty)({ type: 'integer', description: 'E-mode category id' }),
479
- __metadata("design:type", Number)
480
- ], StellarUpdateEModeAssetEvent.prototype, "categoryId", void 0);
481
- // ---------- topic: config:remove_emode_asset ----------
482
- class StellarRemoveEModeAssetEvent {
483
- }
484
- exports.StellarRemoveEModeAssetEvent = StellarRemoveEModeAssetEvent;
485
- __decorate([
486
- (0, swagger_1.ApiProperty)({
487
- type: String,
488
- description: 'Asset address removed from the category',
489
- }),
490
- __metadata("design:type", String)
491
- ], StellarRemoveEModeAssetEvent.prototype, "asset", void 0);
492
- __decorate([
493
- (0, swagger_1.ApiProperty)({ type: 'integer', description: 'E-mode category id' }),
494
- __metadata("design:type", Number)
495
- ], StellarRemoveEModeAssetEvent.prototype, "categoryId", void 0);
496
389
  // ---------- topic: debt:bad_debt ----------
497
390
  class StellarCleanBadDebtEvent {
498
391
  }
@@ -520,6 +413,10 @@ __decorate([
520
413
  class StellarStrategyFeeEvent {
521
414
  }
522
415
  exports.StellarStrategyFeeEvent = StellarStrategyFeeEvent;
416
+ __decorate([
417
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'Hub the market belongs to' }),
418
+ __metadata("design:type", Number)
419
+ ], StellarStrategyFeeEvent.prototype, "hubId", void 0);
523
420
  __decorate([
524
421
  (0, swagger_1.ApiProperty)({ type: String, description: 'Strategy-borrow asset address' }),
525
422
  __metadata("design:type", String)
@@ -639,3 +536,66 @@ __decorate([
639
536
  (0, swagger_1.ApiProperty)({ type: String, description: 'Asset whose oracle was disabled' }),
640
537
  __metadata("design:type", String)
641
538
  ], StellarOracleDisabledEvent.prototype, "asset", void 0);
539
+ // ---------- topic: position:liquidation ----------
540
+ class StellarLiquidationEvent {
541
+ }
542
+ exports.StellarLiquidationEvent = StellarLiquidationEvent;
543
+ __decorate([
544
+ (0, swagger_1.ApiProperty)({ type: String, description: 'Liquidator address' }),
545
+ __metadata("design:type", String)
546
+ ], StellarLiquidationEvent.prototype, "liquidator", void 0);
547
+ __decorate([
548
+ (0, swagger_1.ApiProperty)({
549
+ type: String,
550
+ description: 'Account id / nonce that was liquidated',
551
+ }),
552
+ __metadata("design:type", String)
553
+ ], StellarLiquidationEvent.prototype, "accountId", void 0);
554
+ __decorate([
555
+ (0, swagger_1.ApiProperty)({
556
+ description: 'Aggregate debt repaid, USD WAD decimal string',
557
+ }),
558
+ __metadata("design:type", String)
559
+ ], StellarLiquidationEvent.prototype, "repaidUsdWad", void 0);
560
+ __decorate([
561
+ (0, swagger_1.ApiProperty)({
562
+ description: 'Applied liquidation bonus, bps decimal string; total seized USD is repaid * (1 + bonus)',
563
+ }),
564
+ __metadata("design:type", String)
565
+ ], StellarLiquidationEvent.prototype, "bonusBps", void 0);
566
+ // ---------- topic: config:spoke ----------
567
+ class StellarUpdateSpokeEvent {
568
+ }
569
+ exports.StellarUpdateSpokeEvent = StellarUpdateSpokeEvent;
570
+ __decorate([
571
+ (0, swagger_1.ApiProperty)({ type: 'integer', description: 'Spoke id' }),
572
+ __metadata("design:type", Number)
573
+ ], StellarUpdateSpokeEvent.prototype, "spokeId", void 0);
574
+ __decorate([
575
+ (0, swagger_1.ApiProperty)({
576
+ type: Boolean,
577
+ description: 'Whether the spoke is deprecated (all reads gated)',
578
+ }),
579
+ __metadata("design:type", Boolean)
580
+ ], StellarUpdateSpokeEvent.prototype, "isDeprecated", void 0);
581
+ __decorate([
582
+ (0, swagger_1.ApiProperty)({
583
+ type: String,
584
+ description: 'Liquidation curve target health factor (USD WAD). Stamped at spoke creation.',
585
+ }),
586
+ __metadata("design:type", String)
587
+ ], StellarUpdateSpokeEvent.prototype, "liquidationTargetHfWad", void 0);
588
+ __decorate([
589
+ (0, swagger_1.ApiProperty)({
590
+ type: String,
591
+ description: 'Health factor at which the liquidation bonus reaches its maximum (USD WAD)',
592
+ }),
593
+ __metadata("design:type", String)
594
+ ], StellarUpdateSpokeEvent.prototype, "healthFactorForMaxBonusWad", void 0);
595
+ __decorate([
596
+ (0, swagger_1.ApiProperty)({
597
+ type: 'integer',
598
+ description: 'Liquidation bonus scaling factor (BPS, 10000 = 1.0x)',
599
+ }),
600
+ __metadata("design:type", Number)
601
+ ], StellarUpdateSpokeEvent.prototype, "liquidationBonusFactorBps", void 0);
@@ -57,6 +57,7 @@ export interface StellarLendingActivityData {
57
57
  liquidationThresholdBps: number | null;
58
58
  liquidationBonusBps: number | null;
59
59
  loanToValueBps: number | null;
60
+ liquidationFeesBps: number | null;
60
61
  /**
61
62
  * Liquidator (caller) address on liquidation legs (`liqRepay`/`liqSeize`),
62
63
  * correlated by tx from the on-chain `LiquidationEvent`. `null` on all other
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.452",
3
+ "version": "1.0.454",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {