@xoxno/types 1.0.423 → 1.0.425
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/lending-governance.enum.d.ts +7 -7
- package/dist/enums/lending-governance.enum.js +7 -7
- 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 = {}));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Stellar lending governance (timelock) proposal taxonomy.
|
|
3
3
|
*
|
|
4
|
-
* `GovernanceProposalKind` mirrors the `
|
|
5
|
-
*
|
|
6
|
-
* to one of these so the dashboard can title and group proposals.
|
|
4
|
+
* `GovernanceProposalKind` mirrors the `AdminOperation` variants the governance
|
|
5
|
+
* contract schedules; the indexer maps a scheduled operation's invoked function
|
|
6
|
+
* symbol to one of these so the dashboard can title and group proposals.
|
|
7
7
|
*/
|
|
8
8
|
export declare enum GovernanceProposalKind {
|
|
9
9
|
SetAggregator = "SetAggregator",
|
|
@@ -13,20 +13,20 @@ export declare enum GovernanceProposalKind {
|
|
|
13
13
|
SetPositionLimits = "SetPositionLimits",
|
|
14
14
|
SetMinBorrowCollateral = "SetMinBorrowCollateral",
|
|
15
15
|
AddEModeCategory = "AddEModeCategory",
|
|
16
|
-
EditEModeCategory = "EditEModeCategory",
|
|
17
16
|
RemoveEModeCategory = "RemoveEModeCategory",
|
|
18
17
|
AddAssetToEModeCategory = "AddAssetToEModeCategory",
|
|
19
18
|
EditAssetInEModeCategory = "EditAssetInEModeCategory",
|
|
20
19
|
RemoveAssetFromEMode = "RemoveAssetFromEMode",
|
|
21
20
|
ApproveToken = "ApproveToken",
|
|
22
21
|
RevokeToken = "RevokeToken",
|
|
22
|
+
ApproveBlendPool = "ApproveBlendPool",
|
|
23
|
+
RevokeBlendPool = "RevokeBlendPool",
|
|
23
24
|
CreateLiquidityPool = "CreateLiquidityPool",
|
|
24
25
|
UpgradeLiquidityPoolParams = "UpgradeLiquidityPoolParams",
|
|
25
26
|
UpdatePoolCaps = "UpdatePoolCaps",
|
|
26
27
|
DeployPool = "DeployPool",
|
|
27
28
|
UpgradePool = "UpgradePool",
|
|
28
|
-
|
|
29
|
-
RevokeControllerRole = "RevokeControllerRole",
|
|
29
|
+
DisableTokenOracle = "DisableTokenOracle",
|
|
30
30
|
UpgradeController = "UpgradeController",
|
|
31
31
|
MigrateController = "MigrateController",
|
|
32
32
|
TransferControllerOwnership = "TransferControllerOwnership",
|
|
@@ -51,7 +51,7 @@ export declare enum GovernanceProposalStatus {
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
* Whether executing the proposal invokes the lending controller (generic
|
|
54
|
-
* `execute`) or the governance contract itself (
|
|
54
|
+
* `execute`) or the governance contract itself (`execute_self`).
|
|
55
55
|
*/
|
|
56
56
|
export declare enum GovernanceProposalTarget {
|
|
57
57
|
Controller = "Controller",
|
|
@@ -4,9 +4,9 @@ exports.GovernanceProposalTarget = exports.GovernanceProposalStatus = exports.Go
|
|
|
4
4
|
/**
|
|
5
5
|
* Stellar lending governance (timelock) proposal taxonomy.
|
|
6
6
|
*
|
|
7
|
-
* `GovernanceProposalKind` mirrors the `
|
|
8
|
-
*
|
|
9
|
-
* to one of these so the dashboard can title and group proposals.
|
|
7
|
+
* `GovernanceProposalKind` mirrors the `AdminOperation` variants the governance
|
|
8
|
+
* contract schedules; the indexer maps a scheduled operation's invoked function
|
|
9
|
+
* symbol to one of these so the dashboard can title and group proposals.
|
|
10
10
|
*/
|
|
11
11
|
var GovernanceProposalKind;
|
|
12
12
|
(function (GovernanceProposalKind) {
|
|
@@ -17,20 +17,20 @@ var GovernanceProposalKind;
|
|
|
17
17
|
GovernanceProposalKind["SetPositionLimits"] = "SetPositionLimits";
|
|
18
18
|
GovernanceProposalKind["SetMinBorrowCollateral"] = "SetMinBorrowCollateral";
|
|
19
19
|
GovernanceProposalKind["AddEModeCategory"] = "AddEModeCategory";
|
|
20
|
-
GovernanceProposalKind["EditEModeCategory"] = "EditEModeCategory";
|
|
21
20
|
GovernanceProposalKind["RemoveEModeCategory"] = "RemoveEModeCategory";
|
|
22
21
|
GovernanceProposalKind["AddAssetToEModeCategory"] = "AddAssetToEModeCategory";
|
|
23
22
|
GovernanceProposalKind["EditAssetInEModeCategory"] = "EditAssetInEModeCategory";
|
|
24
23
|
GovernanceProposalKind["RemoveAssetFromEMode"] = "RemoveAssetFromEMode";
|
|
25
24
|
GovernanceProposalKind["ApproveToken"] = "ApproveToken";
|
|
26
25
|
GovernanceProposalKind["RevokeToken"] = "RevokeToken";
|
|
26
|
+
GovernanceProposalKind["ApproveBlendPool"] = "ApproveBlendPool";
|
|
27
|
+
GovernanceProposalKind["RevokeBlendPool"] = "RevokeBlendPool";
|
|
27
28
|
GovernanceProposalKind["CreateLiquidityPool"] = "CreateLiquidityPool";
|
|
28
29
|
GovernanceProposalKind["UpgradeLiquidityPoolParams"] = "UpgradeLiquidityPoolParams";
|
|
29
30
|
GovernanceProposalKind["UpdatePoolCaps"] = "UpdatePoolCaps";
|
|
30
31
|
GovernanceProposalKind["DeployPool"] = "DeployPool";
|
|
31
32
|
GovernanceProposalKind["UpgradePool"] = "UpgradePool";
|
|
32
|
-
GovernanceProposalKind["
|
|
33
|
-
GovernanceProposalKind["RevokeControllerRole"] = "RevokeControllerRole";
|
|
33
|
+
GovernanceProposalKind["DisableTokenOracle"] = "DisableTokenOracle";
|
|
34
34
|
GovernanceProposalKind["UpgradeController"] = "UpgradeController";
|
|
35
35
|
GovernanceProposalKind["MigrateController"] = "MigrateController";
|
|
36
36
|
GovernanceProposalKind["TransferControllerOwnership"] = "TransferControllerOwnership";
|
|
@@ -56,7 +56,7 @@ var GovernanceProposalStatus;
|
|
|
56
56
|
})(GovernanceProposalStatus || (exports.GovernanceProposalStatus = GovernanceProposalStatus = {}));
|
|
57
57
|
/**
|
|
58
58
|
* Whether executing the proposal invokes the lending controller (generic
|
|
59
|
-
* `execute`) or the governance contract itself (
|
|
59
|
+
* `execute`) or the governance contract itself (`execute_self`).
|
|
60
60
|
*/
|
|
61
61
|
var GovernanceProposalTarget;
|
|
62
62
|
(function (GovernanceProposalTarget) {
|
|
@@ -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
|
}
|