@xoxno/types 1.0.414 → 1.0.415
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/stellar-lending-topic.enum.d.ts +0 -2
- package/dist/enums/stellar-lending-topic.enum.js +0 -2
- package/dist/requests/lending/stellar-lending-admin-args.dto.d.ts +0 -3
- package/dist/requests/lending/stellar-lending-admin-args.dto.js +0 -16
- package/dist/requests/lending/stellar-lending-events.dto.d.ts +0 -19
- package/dist/requests/lending/stellar-lending-events.dto.js +1 -54
- package/package.json +1 -1
|
@@ -13,8 +13,6 @@ export declare enum StellarLendingTopic {
|
|
|
13
13
|
ConfigEModeCategory = "config:emode_category",
|
|
14
14
|
ConfigEModeAsset = "config:emode_asset",
|
|
15
15
|
ConfigRemoveEModeAsset = "config:remove_emode_asset",
|
|
16
|
-
DebtCeilingUpdate = "debt:ceiling_update",
|
|
17
|
-
DebtCeilingBatchUpdate = "debt:ceiling_batch_update",
|
|
18
16
|
DebtBadDebt = "debt:bad_debt",
|
|
19
17
|
StrategyInitialPayment = "strategy:initial_payment",
|
|
20
18
|
ConfigApproveToken = "config:approve_token",
|
|
@@ -17,8 +17,6 @@ var StellarLendingTopic;
|
|
|
17
17
|
StellarLendingTopic["ConfigEModeCategory"] = "config:emode_category";
|
|
18
18
|
StellarLendingTopic["ConfigEModeAsset"] = "config:emode_asset";
|
|
19
19
|
StellarLendingTopic["ConfigRemoveEModeAsset"] = "config:remove_emode_asset";
|
|
20
|
-
StellarLendingTopic["DebtCeilingUpdate"] = "debt:ceiling_update";
|
|
21
|
-
StellarLendingTopic["DebtCeilingBatchUpdate"] = "debt:ceiling_batch_update";
|
|
22
20
|
StellarLendingTopic["DebtBadDebt"] = "debt:bad_debt";
|
|
23
21
|
StellarLendingTopic["StrategyInitialPayment"] = "strategy:initial_payment";
|
|
24
22
|
StellarLendingTopic["ConfigApproveToken"] = "config:approve_token";
|
|
@@ -31,11 +31,8 @@ export declare class AssetConfigRawDto {
|
|
|
31
31
|
liquidationFeesBps: number;
|
|
32
32
|
isCollateralizable: boolean;
|
|
33
33
|
isBorrowable: boolean;
|
|
34
|
-
isIsolatedAsset: boolean;
|
|
35
34
|
isSiloedBorrowing: boolean;
|
|
36
35
|
isFlashloanable: boolean;
|
|
37
|
-
isolationBorrowEnabled: boolean;
|
|
38
|
-
isolationDebtCeilingUsdWad: string;
|
|
39
36
|
flashloanFeeBps: number;
|
|
40
37
|
borrowCap: string;
|
|
41
38
|
supplyCap: string;
|
|
@@ -108,10 +108,6 @@ __decorate([
|
|
|
108
108
|
(0, swagger_1.ApiProperty)({ description: 'Whether the asset can be borrowed' }),
|
|
109
109
|
__metadata("design:type", Boolean)
|
|
110
110
|
], AssetConfigRawDto.prototype, "isBorrowable", void 0);
|
|
111
|
-
__decorate([
|
|
112
|
-
(0, swagger_1.ApiProperty)({ description: 'Whether the asset is an isolated collateral' }),
|
|
113
|
-
__metadata("design:type", Boolean)
|
|
114
|
-
], AssetConfigRawDto.prototype, "isIsolatedAsset", void 0);
|
|
115
111
|
__decorate([
|
|
116
112
|
(0, swagger_1.ApiProperty)({ description: 'Whether the asset uses siloed borrowing' }),
|
|
117
113
|
__metadata("design:type", Boolean)
|
|
@@ -120,18 +116,6 @@ __decorate([
|
|
|
120
116
|
(0, swagger_1.ApiProperty)({ description: 'Whether the asset can be flash-loaned' }),
|
|
121
117
|
__metadata("design:type", Boolean)
|
|
122
118
|
], AssetConfigRawDto.prototype, "isFlashloanable", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
(0, swagger_1.ApiProperty)({
|
|
125
|
-
description: 'Whether borrowing against the isolated asset is enabled',
|
|
126
|
-
}),
|
|
127
|
-
__metadata("design:type", Boolean)
|
|
128
|
-
], AssetConfigRawDto.prototype, "isolationBorrowEnabled", void 0);
|
|
129
|
-
__decorate([
|
|
130
|
-
(0, swagger_1.ApiProperty)({
|
|
131
|
-
description: 'Isolation debt ceiling, USD WAD decimal string',
|
|
132
|
-
}),
|
|
133
|
-
__metadata("design:type", String)
|
|
134
|
-
], AssetConfigRawDto.prototype, "isolationDebtCeilingUsdWad", void 0);
|
|
135
119
|
__decorate([
|
|
136
120
|
(0, swagger_1.ApiProperty)({ type: 'integer', description: 'Flash-loan fee, bps' }),
|
|
137
121
|
__metadata("design:type", Number)
|
|
@@ -16,10 +16,8 @@ export declare class StellarMarketStateSnapshot {
|
|
|
16
16
|
}
|
|
17
17
|
export declare class StellarEventAccountAttributes {
|
|
18
18
|
owner: string;
|
|
19
|
-
isIsolatedPosition: boolean;
|
|
20
19
|
eModeCategoryId: number;
|
|
21
20
|
mode: 'None' | 'Multiply' | 'Long' | 'Short';
|
|
22
|
-
isolatedToken?: string;
|
|
23
21
|
}
|
|
24
22
|
export declare class StellarEventPositionDelta {
|
|
25
23
|
action: string;
|
|
@@ -32,10 +30,6 @@ export declare class StellarEventPositionDelta {
|
|
|
32
30
|
liquidationBonusBps?: number;
|
|
33
31
|
loanToValueBps?: number;
|
|
34
32
|
}
|
|
35
|
-
export declare class StellarEventDebtCeilingEntry {
|
|
36
|
-
asset: string;
|
|
37
|
-
totalDebtUsdWad: string;
|
|
38
|
-
}
|
|
39
33
|
export declare class StellarEventEModeCategory {
|
|
40
34
|
categoryId: number;
|
|
41
35
|
loanToValueBps: number;
|
|
@@ -108,13 +102,6 @@ export declare class StellarRemoveEModeAssetEvent {
|
|
|
108
102
|
asset: string;
|
|
109
103
|
categoryId: number;
|
|
110
104
|
}
|
|
111
|
-
export declare class StellarUpdateDebtCeilingEvent {
|
|
112
|
-
asset: string;
|
|
113
|
-
totalDebtUsdWad: string;
|
|
114
|
-
}
|
|
115
|
-
export declare class StellarUpdateDebtCeilingBatchEvent {
|
|
116
|
-
updates: StellarEventDebtCeilingEntry[];
|
|
117
|
-
}
|
|
118
105
|
export declare class StellarCleanBadDebtEvent {
|
|
119
106
|
accountId: string;
|
|
120
107
|
totalBorrowUsdWad: string;
|
|
@@ -184,12 +171,6 @@ export type StellarLendingDecodedEvent = {
|
|
|
184
171
|
} | {
|
|
185
172
|
topic: 'config:remove_emode_asset';
|
|
186
173
|
data: StellarRemoveEModeAssetEvent;
|
|
187
|
-
} | {
|
|
188
|
-
topic: 'debt:ceiling_update';
|
|
189
|
-
data: StellarUpdateDebtCeilingEvent;
|
|
190
|
-
} | {
|
|
191
|
-
topic: 'debt:ceiling_batch_update';
|
|
192
|
-
data: StellarUpdateDebtCeilingBatchEvent;
|
|
193
174
|
} | {
|
|
194
175
|
topic: 'debt:bad_debt';
|
|
195
176
|
data: StellarCleanBadDebtEvent;
|
|
@@ -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.
|
|
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.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");
|
|
@@ -84,12 +84,6 @@ __decorate([
|
|
|
84
84
|
(0, swagger_1.ApiProperty)({ type: String, description: 'Account owner at emission time' }),
|
|
85
85
|
__metadata("design:type", String)
|
|
86
86
|
], StellarEventAccountAttributes.prototype, "owner", void 0);
|
|
87
|
-
__decorate([
|
|
88
|
-
(0, swagger_1.ApiProperty)({
|
|
89
|
-
description: 'True when the account is bound to a single isolated collateral asset',
|
|
90
|
-
}),
|
|
91
|
-
__metadata("design:type", Boolean)
|
|
92
|
-
], StellarEventAccountAttributes.prototype, "isIsolatedPosition", void 0);
|
|
93
87
|
__decorate([
|
|
94
88
|
(0, swagger_1.ApiProperty)({
|
|
95
89
|
type: 'integer',
|
|
@@ -105,14 +99,6 @@ __decorate([
|
|
|
105
99
|
}),
|
|
106
100
|
__metadata("design:type", String)
|
|
107
101
|
], StellarEventAccountAttributes.prototype, "mode", void 0);
|
|
108
|
-
__decorate([
|
|
109
|
-
(0, swagger_1.ApiProperty)({
|
|
110
|
-
type: String,
|
|
111
|
-
required: false,
|
|
112
|
-
description: 'Isolated collateral asset when isIsolatedPosition',
|
|
113
|
-
}),
|
|
114
|
-
__metadata("design:type", String)
|
|
115
|
-
], StellarEventAccountAttributes.prototype, "isolatedToken", void 0);
|
|
116
102
|
class StellarEventPositionDelta {
|
|
117
103
|
}
|
|
118
104
|
exports.StellarEventPositionDelta = StellarEventPositionDelta;
|
|
@@ -177,19 +163,6 @@ __decorate([
|
|
|
177
163
|
}),
|
|
178
164
|
__metadata("design:type", Number)
|
|
179
165
|
], StellarEventPositionDelta.prototype, "loanToValueBps", void 0);
|
|
180
|
-
class StellarEventDebtCeilingEntry {
|
|
181
|
-
}
|
|
182
|
-
exports.StellarEventDebtCeilingEntry = StellarEventDebtCeilingEntry;
|
|
183
|
-
__decorate([
|
|
184
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Isolated asset address' }),
|
|
185
|
-
__metadata("design:type", String)
|
|
186
|
-
], StellarEventDebtCeilingEntry.prototype, "asset", void 0);
|
|
187
|
-
__decorate([
|
|
188
|
-
(0, swagger_1.ApiProperty)({
|
|
189
|
-
description: 'Total isolated debt against the asset, USD WAD decimal string',
|
|
190
|
-
}),
|
|
191
|
-
__metadata("design:type", String)
|
|
192
|
-
], StellarEventDebtCeilingEntry.prototype, "totalDebtUsdWad", void 0);
|
|
193
166
|
class StellarEventEModeCategory {
|
|
194
167
|
}
|
|
195
168
|
exports.StellarEventEModeCategory = StellarEventEModeCategory;
|
|
@@ -471,32 +444,6 @@ __decorate([
|
|
|
471
444
|
(0, swagger_1.ApiProperty)({ type: 'integer', description: 'E-mode category id' }),
|
|
472
445
|
__metadata("design:type", Number)
|
|
473
446
|
], StellarRemoveEModeAssetEvent.prototype, "categoryId", void 0);
|
|
474
|
-
// ---------- topic: debt:ceiling_update ----------
|
|
475
|
-
class StellarUpdateDebtCeilingEvent {
|
|
476
|
-
}
|
|
477
|
-
exports.StellarUpdateDebtCeilingEvent = StellarUpdateDebtCeilingEvent;
|
|
478
|
-
__decorate([
|
|
479
|
-
(0, swagger_1.ApiProperty)({ type: String, description: 'Isolated asset address' }),
|
|
480
|
-
__metadata("design:type", String)
|
|
481
|
-
], StellarUpdateDebtCeilingEvent.prototype, "asset", void 0);
|
|
482
|
-
__decorate([
|
|
483
|
-
(0, swagger_1.ApiProperty)({
|
|
484
|
-
description: 'Total isolated debt against the asset, USD WAD decimal string',
|
|
485
|
-
}),
|
|
486
|
-
__metadata("design:type", String)
|
|
487
|
-
], StellarUpdateDebtCeilingEvent.prototype, "totalDebtUsdWad", void 0);
|
|
488
|
-
// ---------- topic: debt:ceiling_batch_update ----------
|
|
489
|
-
class StellarUpdateDebtCeilingBatchEvent {
|
|
490
|
-
}
|
|
491
|
-
exports.StellarUpdateDebtCeilingBatchEvent = StellarUpdateDebtCeilingBatchEvent;
|
|
492
|
-
__decorate([
|
|
493
|
-
(0, swagger_1.ApiProperty)({
|
|
494
|
-
type: StellarEventDebtCeilingEntry,
|
|
495
|
-
isArray: true,
|
|
496
|
-
description: 'Final isolated-debt totals for touched assets',
|
|
497
|
-
}),
|
|
498
|
-
__metadata("design:type", Array)
|
|
499
|
-
], StellarUpdateDebtCeilingBatchEvent.prototype, "updates", void 0);
|
|
500
447
|
// ---------- topic: debt:bad_debt ----------
|
|
501
448
|
class StellarCleanBadDebtEvent {
|
|
502
449
|
}
|