@xoxno/types 1.0.423 → 1.0.424
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-activity.enum.d.ts +3 -1
- package/dist/enums/lending-activity.enum.js +2 -0
- package/dist/enums/stellar-lending-topic.enum.d.ts +1 -0
- package/dist/enums/stellar-lending-topic.enum.js +1 -0
- package/dist/requests/lending/stellar-lending-events.dto.d.ts +9 -0
- package/dist/requests/lending/stellar-lending-events.dto.js +27 -1
- package/package.json +1 -1
|
@@ -10,5 +10,7 @@ export declare enum XoxnoLendingActivity {
|
|
|
10
10
|
LIQUIDATE_SEIZE_COLLATERAL = "lendingLiquidateSeizeCollateral",
|
|
11
11
|
EMODE_CATEGORY = "lendingEModeCategory",
|
|
12
12
|
TOKEN_EMODE = "lendingTokenEMode",
|
|
13
|
-
UPDATE_ACCOUNT_PARAMETERS = "lendingUpdateAccountParameters"
|
|
13
|
+
UPDATE_ACCOUNT_PARAMETERS = "lendingUpdateAccountParameters",
|
|
14
|
+
/** Pool `StrategyFeeEvent` — strategy-borrow fee accrued as protocol revenue. */
|
|
15
|
+
LENDING_STRATEGY_FEE = "lendingStrategyFee"
|
|
14
16
|
}
|
|
@@ -15,4 +15,6 @@ var XoxnoLendingActivity;
|
|
|
15
15
|
XoxnoLendingActivity["EMODE_CATEGORY"] = "lendingEModeCategory";
|
|
16
16
|
XoxnoLendingActivity["TOKEN_EMODE"] = "lendingTokenEMode";
|
|
17
17
|
XoxnoLendingActivity["UPDATE_ACCOUNT_PARAMETERS"] = "lendingUpdateAccountParameters";
|
|
18
|
+
/** Pool `StrategyFeeEvent` — strategy-borrow fee accrued as protocol revenue. */
|
|
19
|
+
XoxnoLendingActivity["LENDING_STRATEGY_FEE"] = "lendingStrategyFee";
|
|
18
20
|
})(XoxnoLendingActivity || (exports.XoxnoLendingActivity = XoxnoLendingActivity = {}));
|
|
@@ -16,6 +16,7 @@ export declare enum StellarLendingTopic {
|
|
|
16
16
|
ConfigRemoveEModeAsset = "config:remove_emode_asset",
|
|
17
17
|
DebtBadDebt = "debt:bad_debt",
|
|
18
18
|
StrategyInitialPayment = "strategy:initial_payment",
|
|
19
|
+
StrategyFee = "strategy:fee",
|
|
19
20
|
ConfigApproveToken = "config:approve_token",
|
|
20
21
|
ConfigAggregator = "config:aggregator",
|
|
21
22
|
ConfigAccumulator = "config:accumulator",
|
|
@@ -20,6 +20,7 @@ var StellarLendingTopic;
|
|
|
20
20
|
StellarLendingTopic["ConfigRemoveEModeAsset"] = "config:remove_emode_asset";
|
|
21
21
|
StellarLendingTopic["DebtBadDebt"] = "debt:bad_debt";
|
|
22
22
|
StellarLendingTopic["StrategyInitialPayment"] = "strategy:initial_payment";
|
|
23
|
+
StellarLendingTopic["StrategyFee"] = "strategy:fee";
|
|
23
24
|
StellarLendingTopic["ConfigApproveToken"] = "config:approve_token";
|
|
24
25
|
StellarLendingTopic["ConfigAggregator"] = "config:aggregator";
|
|
25
26
|
StellarLendingTopic["ConfigAccumulator"] = "config:accumulator";
|
|
@@ -116,6 +116,12 @@ export declare class StellarCleanBadDebtEvent {
|
|
|
116
116
|
totalBorrowUsdWad: string;
|
|
117
117
|
totalCollateralUsdWad: string;
|
|
118
118
|
}
|
|
119
|
+
export declare class StellarStrategyFeeEvent {
|
|
120
|
+
asset: string;
|
|
121
|
+
amount: string;
|
|
122
|
+
fee: string;
|
|
123
|
+
amountSent: string;
|
|
124
|
+
}
|
|
119
125
|
export declare class StellarInitialMultiplyPaymentEvent {
|
|
120
126
|
token: string;
|
|
121
127
|
amount: string;
|
|
@@ -189,6 +195,9 @@ export type StellarLendingDecodedEvent = {
|
|
|
189
195
|
} | {
|
|
190
196
|
topic: 'strategy:initial_payment';
|
|
191
197
|
data: StellarInitialMultiplyPaymentEvent;
|
|
198
|
+
} | {
|
|
199
|
+
topic: 'strategy:fee';
|
|
200
|
+
data: StellarStrategyFeeEvent;
|
|
192
201
|
} | {
|
|
193
202
|
topic: 'config:approve_token';
|
|
194
203
|
data: StellarApproveTokenEvent;
|
|
@@ -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.StellarOracleTwapDegradedEvent = exports.StellarOracleDisabledEvent = exports.StellarUpdatePositionLimitsEvent = exports.StellarUpdatePoolTemplateEvent = exports.StellarUpdateAccumulatorEvent = exports.StellarUpdateAggregatorEvent = exports.StellarApproveTokenEvent = exports.StellarInitialMultiplyPaymentEvent = 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.StellarOracleTwapDegradedEvent = 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;
|
|
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");
|
|
@@ -516,6 +516,32 @@ __decorate([
|
|
|
516
516
|
}),
|
|
517
517
|
__metadata("design:type", String)
|
|
518
518
|
], StellarCleanBadDebtEvent.prototype, "totalCollateralUsdWad", void 0);
|
|
519
|
+
// ---------- topic: strategy:fee ----------
|
|
520
|
+
class StellarStrategyFeeEvent {
|
|
521
|
+
}
|
|
522
|
+
exports.StellarStrategyFeeEvent = StellarStrategyFeeEvent;
|
|
523
|
+
__decorate([
|
|
524
|
+
(0, swagger_1.ApiProperty)({ type: String, description: 'Strategy-borrow asset address' }),
|
|
525
|
+
__metadata("design:type", String)
|
|
526
|
+
], StellarStrategyFeeEvent.prototype, "asset", void 0);
|
|
527
|
+
__decorate([
|
|
528
|
+
(0, swagger_1.ApiProperty)({
|
|
529
|
+
description: 'Gross strategy borrow amount, asset-native units decimal string',
|
|
530
|
+
}),
|
|
531
|
+
__metadata("design:type", String)
|
|
532
|
+
], StellarStrategyFeeEvent.prototype, "amount", void 0);
|
|
533
|
+
__decorate([
|
|
534
|
+
(0, swagger_1.ApiProperty)({
|
|
535
|
+
description: 'Strategy fee retained as protocol revenue, asset-native units decimal string',
|
|
536
|
+
}),
|
|
537
|
+
__metadata("design:type", String)
|
|
538
|
+
], StellarStrategyFeeEvent.prototype, "fee", void 0);
|
|
539
|
+
__decorate([
|
|
540
|
+
(0, swagger_1.ApiProperty)({
|
|
541
|
+
description: 'Net amount transferred to receiver (amount - fee), asset-native units decimal string',
|
|
542
|
+
}),
|
|
543
|
+
__metadata("design:type", String)
|
|
544
|
+
], StellarStrategyFeeEvent.prototype, "amountSent", void 0);
|
|
519
545
|
// ---------- topic: strategy:initial_payment ----------
|
|
520
546
|
class StellarInitialMultiplyPaymentEvent {
|
|
521
547
|
}
|