@xoxno/types 1.0.203 → 1.0.205
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-market-profile.doc.d.ts +8 -0
- package/dist/cosmos-db/documents/lending/lending-market-profile.doc.js +41 -1
- package/dist/requests/lending/lending-indexes.dto.d.ts +9 -0
- package/dist/requests/lending/lending-indexes.dto.js +72 -0
- package/package.json +1 -1
|
@@ -2,6 +2,12 @@ import { LendingDataType } from '../../../enums/lending-data-type.enum';
|
|
|
2
2
|
import { OwnerDto } from '../../../common/owner.dto';
|
|
3
3
|
import { LendingEModeCategoryProfileDoc } from './lending-emode-category-profile.doc';
|
|
4
4
|
import { LendingOracleUpdateStruct } from './lending-oracle';
|
|
5
|
+
import { LendingIndexesDto } from '../../../requests/lending/lending-indexes.dto';
|
|
6
|
+
export declare class InitialPaymentMultiplier {
|
|
7
|
+
initialPaymentAmount: string;
|
|
8
|
+
initialPaymentToken: number;
|
|
9
|
+
usdValue: string;
|
|
10
|
+
}
|
|
5
11
|
export declare class LendingMarketProfileDoc {
|
|
6
12
|
dataType: LendingDataType;
|
|
7
13
|
token: string;
|
|
@@ -54,6 +60,7 @@ export declare class LendingMarketProfileDoc {
|
|
|
54
60
|
flashLoanFee: string;
|
|
55
61
|
canBorrowInIsolation: boolean;
|
|
56
62
|
oracleProvider: LendingOracleUpdateStruct;
|
|
63
|
+
initialPaymentMultiplier?: InitialPaymentMultiplier;
|
|
57
64
|
id: string;
|
|
58
65
|
pk: string;
|
|
59
66
|
_ts: number;
|
|
@@ -72,6 +79,7 @@ export declare class LendingMarketProfile extends LendingMarketProfileDoc {
|
|
|
72
79
|
oraclePrice: string;
|
|
73
80
|
participants: LendingMarketParticipants;
|
|
74
81
|
extraApy?: MarketExtraApy;
|
|
82
|
+
indexes: LendingIndexesDto;
|
|
75
83
|
}
|
|
76
84
|
declare const LendingMarketProfileQuery_base: {
|
|
77
85
|
new (resources: LendingMarketProfile[], count: number | null, hasMoreResults: boolean): {
|
|
@@ -9,13 +9,38 @@ 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.LendingMarketProfileQuery = exports.LendingMarketProfile = exports.MarketExtraApy = exports.LendingMarketParticipants = exports.LendingMarketProfileDoc = void 0;
|
|
12
|
+
exports.LendingMarketProfileQuery = exports.LendingMarketProfile = exports.MarketExtraApy = exports.LendingMarketParticipants = exports.LendingMarketProfileDoc = exports.InitialPaymentMultiplier = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const lending_data_type_enum_1 = require("../../../enums/lending-data-type.enum");
|
|
15
15
|
const owner_dto_1 = require("../../../common/owner.dto");
|
|
16
16
|
const lending_emode_category_profile_doc_1 = require("./lending-emode-category-profile.doc");
|
|
17
17
|
const cosmos_db_paginated_response_dto_1 = require("../../cosmos-db-paginated-response.dto");
|
|
18
18
|
const lending_oracle_1 = require("./lending-oracle");
|
|
19
|
+
const lending_indexes_dto_1 = require("../../../requests/lending/lending-indexes.dto");
|
|
20
|
+
class InitialPaymentMultiplier {
|
|
21
|
+
}
|
|
22
|
+
exports.InitialPaymentMultiplier = InitialPaymentMultiplier;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, swagger_1.ApiProperty)({
|
|
25
|
+
description: 'Initial payment amount',
|
|
26
|
+
example: 1.0,
|
|
27
|
+
}),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], InitialPaymentMultiplier.prototype, "initialPaymentAmount", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({
|
|
32
|
+
description: 'Initial payment token',
|
|
33
|
+
example: 1.0,
|
|
34
|
+
}),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], InitialPaymentMultiplier.prototype, "initialPaymentToken", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({
|
|
39
|
+
description: 'USD value',
|
|
40
|
+
example: 1.0,
|
|
41
|
+
}),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], InitialPaymentMultiplier.prototype, "usdValue", void 0);
|
|
19
44
|
class LendingMarketProfileDoc {
|
|
20
45
|
constructor(props) {
|
|
21
46
|
this.dataType = lending_data_type_enum_1.LendingDataType.MARKET_PROFILE;
|
|
@@ -305,6 +330,14 @@ __decorate([
|
|
|
305
330
|
}),
|
|
306
331
|
__metadata("design:type", lending_oracle_1.LendingOracleUpdateStruct)
|
|
307
332
|
], LendingMarketProfileDoc.prototype, "oracleProvider", void 0);
|
|
333
|
+
__decorate([
|
|
334
|
+
(0, swagger_1.ApiProperty)({
|
|
335
|
+
description: 'Initial payment multiplier',
|
|
336
|
+
type: InitialPaymentMultiplier,
|
|
337
|
+
required: false,
|
|
338
|
+
}),
|
|
339
|
+
__metadata("design:type", InitialPaymentMultiplier)
|
|
340
|
+
], LendingMarketProfileDoc.prototype, "initialPaymentMultiplier", void 0);
|
|
308
341
|
__decorate([
|
|
309
342
|
(0, swagger_1.ApiProperty)({
|
|
310
343
|
description: 'Cosmos DB document identifier',
|
|
@@ -397,6 +430,13 @@ __decorate([
|
|
|
397
430
|
}),
|
|
398
431
|
__metadata("design:type", MarketExtraApy)
|
|
399
432
|
], LendingMarketProfile.prototype, "extraApy", void 0);
|
|
433
|
+
__decorate([
|
|
434
|
+
(0, swagger_1.ApiProperty)({
|
|
435
|
+
description: 'Indexes',
|
|
436
|
+
type: lending_indexes_dto_1.LendingIndexesDto,
|
|
437
|
+
}),
|
|
438
|
+
__metadata("design:type", lending_indexes_dto_1.LendingIndexesDto)
|
|
439
|
+
], LendingMarketProfile.prototype, "indexes", void 0);
|
|
400
440
|
class LendingMarketProfileQuery extends (0, cosmos_db_paginated_response_dto_1.createCosmosPaginatedResponse)(LendingMarketProfile) {
|
|
401
441
|
}
|
|
402
442
|
exports.LendingMarketProfileQuery = LendingMarketProfileQuery;
|
|
@@ -7,4 +7,13 @@ export declare class LendingIndexesDto {
|
|
|
7
7
|
egldPriceShort: number;
|
|
8
8
|
usdPrice: string;
|
|
9
9
|
usdPriceShort: number;
|
|
10
|
+
safePriceEgld: string;
|
|
11
|
+
safePriceEgldShort: number;
|
|
12
|
+
safePriceUsd: string;
|
|
13
|
+
safePriceUsdShort: number;
|
|
14
|
+
aggregatorPriceEgld: string;
|
|
15
|
+
aggregatorPriceEgldShort: number;
|
|
16
|
+
aggregatorPriceUsd: string;
|
|
17
|
+
withinFirstTolerance: boolean;
|
|
18
|
+
withinSecondTolerance: boolean;
|
|
10
19
|
}
|
|
@@ -78,3 +78,75 @@ __decorate([
|
|
|
78
78
|
}),
|
|
79
79
|
__metadata("design:type", Number)
|
|
80
80
|
], LendingIndexesDto.prototype, "usdPriceShort", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, swagger_1.ApiProperty)({
|
|
83
|
+
description: 'Safe price in EGLD as a string to preserve precision',
|
|
84
|
+
example: '1000000000000000000',
|
|
85
|
+
type: String,
|
|
86
|
+
}),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], LendingIndexesDto.prototype, "safePriceEgld", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, swagger_1.ApiProperty)({
|
|
91
|
+
description: 'Safe price in EGLD as a number (may lose precision)',
|
|
92
|
+
example: 1,
|
|
93
|
+
type: Number,
|
|
94
|
+
}),
|
|
95
|
+
__metadata("design:type", Number)
|
|
96
|
+
], LendingIndexesDto.prototype, "safePriceEgldShort", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, swagger_1.ApiProperty)({
|
|
99
|
+
description: 'Safe price in USD as a string to preserve precision',
|
|
100
|
+
example: '16124645832563882000',
|
|
101
|
+
type: String,
|
|
102
|
+
}),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], LendingIndexesDto.prototype, "safePriceUsd", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, swagger_1.ApiProperty)({
|
|
107
|
+
description: 'Safe price in USD as a number (may lose precision)',
|
|
108
|
+
example: 16.124645832563882,
|
|
109
|
+
type: Number,
|
|
110
|
+
}),
|
|
111
|
+
__metadata("design:type", Number)
|
|
112
|
+
], LendingIndexesDto.prototype, "safePriceUsdShort", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, swagger_1.ApiProperty)({
|
|
115
|
+
description: 'Aggregator price in EGLD as a string to preserve precision',
|
|
116
|
+
example: '1000000000000000000',
|
|
117
|
+
type: String,
|
|
118
|
+
}),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], LendingIndexesDto.prototype, "aggregatorPriceEgld", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, swagger_1.ApiProperty)({
|
|
123
|
+
description: 'Aggregator price in EGLD as a number (may lose precision)',
|
|
124
|
+
example: 1,
|
|
125
|
+
type: Number,
|
|
126
|
+
}),
|
|
127
|
+
__metadata("design:type", Number)
|
|
128
|
+
], LendingIndexesDto.prototype, "aggregatorPriceEgldShort", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, swagger_1.ApiProperty)({
|
|
131
|
+
description: 'Aggregator price in USD as a string to preserve precision',
|
|
132
|
+
example: '16124645832563882000',
|
|
133
|
+
type: String,
|
|
134
|
+
}),
|
|
135
|
+
__metadata("design:type", String)
|
|
136
|
+
], LendingIndexesDto.prototype, "aggregatorPriceUsd", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, swagger_1.ApiProperty)({
|
|
139
|
+
description: 'Within first tolerance',
|
|
140
|
+
example: true,
|
|
141
|
+
type: Boolean,
|
|
142
|
+
}),
|
|
143
|
+
__metadata("design:type", Boolean)
|
|
144
|
+
], LendingIndexesDto.prototype, "withinFirstTolerance", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, swagger_1.ApiProperty)({
|
|
147
|
+
description: 'Within second tolerance',
|
|
148
|
+
example: true,
|
|
149
|
+
type: Boolean,
|
|
150
|
+
}),
|
|
151
|
+
__metadata("design:type", Boolean)
|
|
152
|
+
], LendingIndexesDto.prototype, "withinSecondTolerance", void 0);
|