@xoxno/types 1.0.417 → 1.0.420
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/cosmos-db/documents/lending/lending-emode-category-profile.doc.d.ts +6 -6
- package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.js +25 -4
- package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.d.ts +3 -0
- package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.js +24 -0
- package/dist/entities/token-data/token-data.doc.d.ts +1 -0
- package/dist/entities/token-data/token-data.doc.js +9 -0
- package/dist/requests/lending/stellar-lending-events.dto.d.ts +3 -3
- package/dist/requests/lending/stellar-lending-events.dto.js +21 -12
- package/package.json +1 -1
|
@@ -4,9 +4,9 @@ import { ActivityChain } from '../../../enums/common.enum';
|
|
|
4
4
|
export declare class LendingEModeCategoryProfileDoc {
|
|
5
5
|
dataType: LendingDataType;
|
|
6
6
|
name: string;
|
|
7
|
-
ltv
|
|
8
|
-
liquidationThreshold
|
|
9
|
-
liquidationBonus
|
|
7
|
+
ltv?: string;
|
|
8
|
+
liquidationThreshold?: string;
|
|
9
|
+
liquidationBonus?: string;
|
|
10
10
|
isDeprecated: boolean;
|
|
11
11
|
id: string;
|
|
12
12
|
pk: string;
|
|
@@ -14,12 +14,12 @@ export declare class LendingEModeCategoryProfileDoc {
|
|
|
14
14
|
chain: ActivityChain;
|
|
15
15
|
constructor(props?: Partial<LendingEModeCategoryProfileDoc>);
|
|
16
16
|
}
|
|
17
|
-
declare type ShortLendingTokenEModeProfileDoc_base = Pick<LendingTokenEModeProfileDoc, "token" | "name" | "canBeCollateral" | "canBeBorrowed" | "eModeCategory">;
|
|
17
|
+
declare type ShortLendingTokenEModeProfileDoc_base = Pick<LendingTokenEModeProfileDoc, "token" | "name" | "canBeCollateral" | "canBeBorrowed" | "eModeCategory" | "ltv" | "liquidationThreshold" | "liquidationBonus">;
|
|
18
18
|
export declare type ShortLendingTokenEModeProfileDoc = ShortLendingTokenEModeProfileDoc_base ;
|
|
19
|
-
declare const ShortLendingTokenEModeProfileDocNest_base: import("@nestjs/common").Type<Pick<LendingTokenEModeProfileDoc, "token" | "name" | "canBeCollateral" | "canBeBorrowed" | "eModeCategory">>;
|
|
19
|
+
declare const ShortLendingTokenEModeProfileDocNest_base: import("@nestjs/common").Type<Pick<LendingTokenEModeProfileDoc, "token" | "name" | "canBeCollateral" | "canBeBorrowed" | "eModeCategory" | "ltv" | "liquidationThreshold" | "liquidationBonus">>;
|
|
20
20
|
export declare class ShortLendingTokenEModeProfileDocNest extends ShortLendingTokenEModeProfileDocNest_base {
|
|
21
21
|
}
|
|
22
22
|
export declare class LendingEModeCategoryProfile extends LendingEModeCategoryProfileDoc {
|
|
23
|
-
eModeTokenProfiles: Pick<LendingTokenEModeProfileDoc, 'token' | 'name' | 'canBeBorrowed' | 'canBeCollateral' | 'eModeCategory'>[];
|
|
23
|
+
eModeTokenProfiles: Pick<LendingTokenEModeProfileDoc, 'token' | 'name' | 'canBeBorrowed' | 'canBeCollateral' | 'eModeCategory' | 'ltv' | 'liquidationThreshold' | 'liquidationBonus'>[];
|
|
24
24
|
}
|
|
25
25
|
export {};
|
|
@@ -38,15 +38,27 @@ __decorate([
|
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], LendingEModeCategoryProfileDoc.prototype, "name", void 0);
|
|
40
40
|
__decorate([
|
|
41
|
-
(0, swagger_1.ApiProperty)({
|
|
41
|
+
(0, swagger_1.ApiProperty)({
|
|
42
|
+
description: 'Category-level loan-to-value ratio. Present where e-mode params are category-wide (MVX); omitted on chains with per-asset params (Stellar), where each token profile carries its own.',
|
|
43
|
+
required: false,
|
|
44
|
+
example: 0.75,
|
|
45
|
+
}),
|
|
42
46
|
__metadata("design:type", String)
|
|
43
47
|
], LendingEModeCategoryProfileDoc.prototype, "ltv", void 0);
|
|
44
48
|
__decorate([
|
|
45
|
-
(0, swagger_1.ApiProperty)({
|
|
49
|
+
(0, swagger_1.ApiProperty)({
|
|
50
|
+
description: 'Category-level liquidation threshold. Present on MVX; omitted on Stellar (per-asset).',
|
|
51
|
+
required: false,
|
|
52
|
+
example: 0.85,
|
|
53
|
+
}),
|
|
46
54
|
__metadata("design:type", String)
|
|
47
55
|
], LendingEModeCategoryProfileDoc.prototype, "liquidationThreshold", void 0);
|
|
48
56
|
__decorate([
|
|
49
|
-
(0, swagger_1.ApiProperty)({
|
|
57
|
+
(0, swagger_1.ApiProperty)({
|
|
58
|
+
description: 'Category-level liquidation bonus. Present on MVX; omitted on Stellar (per-asset).',
|
|
59
|
+
required: false,
|
|
60
|
+
example: 0.1,
|
|
61
|
+
}),
|
|
50
62
|
__metadata("design:type", String)
|
|
51
63
|
], LendingEModeCategoryProfileDoc.prototype, "liquidationBonus", void 0);
|
|
52
64
|
__decorate([
|
|
@@ -81,7 +93,16 @@ __decorate([
|
|
|
81
93
|
}),
|
|
82
94
|
__metadata("design:type", String)
|
|
83
95
|
], LendingEModeCategoryProfileDoc.prototype, "chain", void 0);
|
|
84
|
-
class ShortLendingTokenEModeProfileDoc extends (0, swagger_1.PickType)(lending_token_emode_profile_doc_1.LendingTokenEModeProfileDoc, [
|
|
96
|
+
class ShortLendingTokenEModeProfileDoc extends (0, swagger_1.PickType)(lending_token_emode_profile_doc_1.LendingTokenEModeProfileDoc, [
|
|
97
|
+
'token',
|
|
98
|
+
'name',
|
|
99
|
+
'canBeBorrowed',
|
|
100
|
+
'canBeCollateral',
|
|
101
|
+
'eModeCategory',
|
|
102
|
+
'ltv',
|
|
103
|
+
'liquidationThreshold',
|
|
104
|
+
'liquidationBonus',
|
|
105
|
+
]) {
|
|
85
106
|
}
|
|
86
107
|
exports.ShortLendingTokenEModeProfileDoc = ShortLendingTokenEModeProfileDoc;
|
|
87
108
|
class LendingEModeCategoryProfile extends LendingEModeCategoryProfileDoc {
|
|
@@ -68,6 +68,30 @@ __decorate([
|
|
|
68
68
|
}),
|
|
69
69
|
__metadata("design:type", String)
|
|
70
70
|
], LendingTokenEModeProfileDoc.prototype, "eModeCategory", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({
|
|
73
|
+
description: 'Per-asset loan-to-value ratio within the e-mode category. Present on chains with per-asset e-mode risk params (Stellar); omitted where params are category-level (MVX).',
|
|
74
|
+
required: false,
|
|
75
|
+
example: '0.97',
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], LendingTokenEModeProfileDoc.prototype, "ltv", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, swagger_1.ApiProperty)({
|
|
81
|
+
description: 'Per-asset liquidation threshold within the e-mode category. Present on chains with per-asset e-mode risk params (Stellar).',
|
|
82
|
+
required: false,
|
|
83
|
+
example: '0.98',
|
|
84
|
+
}),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], LendingTokenEModeProfileDoc.prototype, "liquidationThreshold", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, swagger_1.ApiProperty)({
|
|
89
|
+
description: 'Per-asset liquidation bonus within the e-mode category. Present on chains with per-asset e-mode risk params (Stellar).',
|
|
90
|
+
required: false,
|
|
91
|
+
example: '0.02',
|
|
92
|
+
}),
|
|
93
|
+
__metadata("design:type", String)
|
|
94
|
+
], LendingTokenEModeProfileDoc.prototype, "liquidationBonus", void 0);
|
|
71
95
|
__decorate([
|
|
72
96
|
(0, swagger_1.ApiProperty)({
|
|
73
97
|
description: 'Cosmos DB document identifier',
|
|
@@ -102,6 +102,15 @@ __decorate([
|
|
|
102
102
|
}),
|
|
103
103
|
__metadata("design:type", String)
|
|
104
104
|
], TokenDataDocBase.prototype, "issuer", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, swagger_1.ApiProperty)({
|
|
107
|
+
type: Boolean,
|
|
108
|
+
required: false,
|
|
109
|
+
description: 'Whether the token is swappable (present in a DEX/Soroswap token list). Lets the swap picker show only swappable tokens while other views use the full registry.',
|
|
110
|
+
example: true,
|
|
111
|
+
}),
|
|
112
|
+
__metadata("design:type", Boolean)
|
|
113
|
+
], TokenDataDocBase.prototype, "swappable", void 0);
|
|
105
114
|
class TokenDataDoc extends TokenDataDocBase {
|
|
106
115
|
constructor(props) {
|
|
107
116
|
super(props);
|
|
@@ -32,14 +32,14 @@ export declare class StellarEventPositionDelta {
|
|
|
32
32
|
}
|
|
33
33
|
export declare class StellarEventEModeCategory {
|
|
34
34
|
categoryId: number;
|
|
35
|
-
loanToValueBps: number;
|
|
36
|
-
liquidationThresholdBps: number;
|
|
37
|
-
liquidationBonusBps: number;
|
|
38
35
|
isDeprecated: boolean;
|
|
39
36
|
}
|
|
40
37
|
export declare class StellarEModeAssetConfig {
|
|
41
38
|
isCollateralizable: boolean;
|
|
42
39
|
isBorrowable: boolean;
|
|
40
|
+
loanToValueBps: number;
|
|
41
|
+
liquidationThresholdBps: number;
|
|
42
|
+
liquidationBonusBps: number;
|
|
43
43
|
}
|
|
44
44
|
export declare class StellarCreateMarketEvent {
|
|
45
45
|
baseAsset: string;
|
|
@@ -170,18 +170,6 @@ __decorate([
|
|
|
170
170
|
(0, swagger_1.ApiProperty)({ type: 'integer', description: 'E-mode category id' }),
|
|
171
171
|
__metadata("design:type", Number)
|
|
172
172
|
], StellarEventEModeCategory.prototype, "categoryId", void 0);
|
|
173
|
-
__decorate([
|
|
174
|
-
(0, swagger_1.ApiProperty)({ type: 'integer', description: 'Loan-to-value, bps' }),
|
|
175
|
-
__metadata("design:type", Number)
|
|
176
|
-
], StellarEventEModeCategory.prototype, "loanToValueBps", void 0);
|
|
177
|
-
__decorate([
|
|
178
|
-
(0, swagger_1.ApiProperty)({ type: 'integer', description: 'Liquidation threshold, bps' }),
|
|
179
|
-
__metadata("design:type", Number)
|
|
180
|
-
], StellarEventEModeCategory.prototype, "liquidationThresholdBps", void 0);
|
|
181
|
-
__decorate([
|
|
182
|
-
(0, swagger_1.ApiProperty)({ type: 'integer', description: 'Liquidation bonus, bps' }),
|
|
183
|
-
__metadata("design:type", Number)
|
|
184
|
-
], StellarEventEModeCategory.prototype, "liquidationBonusBps", void 0);
|
|
185
173
|
__decorate([
|
|
186
174
|
(0, swagger_1.ApiProperty)({ description: 'Whether the category is deprecated' }),
|
|
187
175
|
__metadata("design:type", Boolean)
|
|
@@ -201,6 +189,27 @@ __decorate([
|
|
|
201
189
|
}),
|
|
202
190
|
__metadata("design:type", Boolean)
|
|
203
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
|
+
__decorate([
|
|
207
|
+
(0, swagger_1.ApiProperty)({
|
|
208
|
+
type: 'integer',
|
|
209
|
+
description: 'Liquidation bonus, bps — per-asset within the category',
|
|
210
|
+
}),
|
|
211
|
+
__metadata("design:type", Number)
|
|
212
|
+
], StellarEModeAssetConfig.prototype, "liquidationBonusBps", void 0);
|
|
204
213
|
// ---------- topic: market:create ----------
|
|
205
214
|
class StellarCreateMarketEvent {
|
|
206
215
|
}
|