@xoxno/types 1.0.138 → 1.0.140
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-account-profile.d.ts +3 -1
- package/dist/cosmos-db/documents/lending/lending-account-profile.js +37 -37
- package/dist/requests/collection/creator-details.dto.d.ts +1 -2
- package/dist/requests/collection/creator-details.dto.js +2 -1
- package/package.json +1 -1
|
@@ -28,9 +28,11 @@ export declare class LendingAccountProfileDoc {
|
|
|
28
28
|
_ts: number;
|
|
29
29
|
constructor(props?: Partial<LendingAccountProfileDoc>);
|
|
30
30
|
}
|
|
31
|
+
declare const selectFields: readonly ["token", "name", "supplyApy", "borrowApy", "decimals", "reserves", "supplyCap", "borrowCap", "supplyAmount", "siloed", "supplyIndex", "borrowIndex", "rewardsReserve", "maxDebtUsd", "debtCeiling", "isolated", "canBeCollateral", "timestamp", "canBeBorrowed", "canBorrowInIsolation", "extraApy", "flashLoanFee", "utilizationRate", "borrowAmount", "borrowAmountScaled", "supplyAmountScaled", "optimalUsageRate", "slopeRate1", "slopeRate2", "slopeRate3", "midUsageRate", "baseRate", "maxBorrowRate", "reserveFactor"];
|
|
31
32
|
export declare class LendingAccountProfile extends LendingAccountProfileDoc {
|
|
32
33
|
supplyAmount: string;
|
|
33
34
|
borrowAmount: string;
|
|
34
35
|
eModeCategoryProfile?: LendingEModeCategoryProfileDoc;
|
|
35
|
-
marketProfile
|
|
36
|
+
marketProfile: Pick<LendingMarketProfile, (typeof selectFields)[number]>;
|
|
36
37
|
}
|
|
38
|
+
export {};
|
|
@@ -189,6 +189,42 @@ __decorate([
|
|
|
189
189
|
}),
|
|
190
190
|
__metadata("design:type", Number)
|
|
191
191
|
], LendingAccountProfileDoc.prototype, "leverageInitialBorrowPrice", void 0);
|
|
192
|
+
const selectFields = [
|
|
193
|
+
'token',
|
|
194
|
+
'name',
|
|
195
|
+
'supplyApy',
|
|
196
|
+
'borrowApy',
|
|
197
|
+
'decimals',
|
|
198
|
+
'reserves',
|
|
199
|
+
'supplyCap',
|
|
200
|
+
'borrowCap',
|
|
201
|
+
'supplyAmount',
|
|
202
|
+
'siloed',
|
|
203
|
+
'supplyIndex',
|
|
204
|
+
'borrowIndex',
|
|
205
|
+
'rewardsReserve',
|
|
206
|
+
'maxDebtUsd',
|
|
207
|
+
'debtCeiling',
|
|
208
|
+
'isolated',
|
|
209
|
+
'canBeCollateral',
|
|
210
|
+
'timestamp',
|
|
211
|
+
'canBeBorrowed',
|
|
212
|
+
'canBorrowInIsolation',
|
|
213
|
+
'extraApy',
|
|
214
|
+
'flashLoanFee',
|
|
215
|
+
'utilizationRate',
|
|
216
|
+
'borrowAmount',
|
|
217
|
+
'borrowAmountScaled',
|
|
218
|
+
'supplyAmountScaled',
|
|
219
|
+
'optimalUsageRate',
|
|
220
|
+
'slopeRate1',
|
|
221
|
+
'slopeRate2',
|
|
222
|
+
'slopeRate3',
|
|
223
|
+
'midUsageRate',
|
|
224
|
+
'baseRate',
|
|
225
|
+
'maxBorrowRate',
|
|
226
|
+
'reserveFactor',
|
|
227
|
+
];
|
|
192
228
|
class LendingAccountProfile extends LendingAccountProfileDoc {
|
|
193
229
|
}
|
|
194
230
|
exports.LendingAccountProfile = LendingAccountProfile;
|
|
@@ -216,43 +252,7 @@ __decorate([
|
|
|
216
252
|
__decorate([
|
|
217
253
|
(0, swagger_1.ApiProperty)({
|
|
218
254
|
description: 'Lending market partial profile',
|
|
219
|
-
|
|
220
|
-
type: (0, swagger_1.PickType)(lending_market_profile_doc_1.LendingMarketProfile, [
|
|
221
|
-
'token',
|
|
222
|
-
'name',
|
|
223
|
-
'supplyApy',
|
|
224
|
-
'borrowApy',
|
|
225
|
-
'decimals',
|
|
226
|
-
'reserves',
|
|
227
|
-
'supplyCap',
|
|
228
|
-
'borrowCap',
|
|
229
|
-
'supplyAmount',
|
|
230
|
-
'siloed',
|
|
231
|
-
'supplyIndex',
|
|
232
|
-
'borrowIndex',
|
|
233
|
-
'rewardsReserve',
|
|
234
|
-
'maxDebtUsd',
|
|
235
|
-
'debtCeiling',
|
|
236
|
-
'isolated',
|
|
237
|
-
'canBeCollateral',
|
|
238
|
-
'timestamp',
|
|
239
|
-
'canBeBorrowed',
|
|
240
|
-
'canBorrowInIsolation',
|
|
241
|
-
'extraApy',
|
|
242
|
-
'flashLoanFee',
|
|
243
|
-
'utilizationRate',
|
|
244
|
-
'borrowAmount',
|
|
245
|
-
'borrowAmountScaled',
|
|
246
|
-
'supplyAmountScaled',
|
|
247
|
-
'optimalUsageRate',
|
|
248
|
-
'slopeRate1',
|
|
249
|
-
'slopeRate2',
|
|
250
|
-
'slopeRate3',
|
|
251
|
-
'midUsageRate',
|
|
252
|
-
'baseRate',
|
|
253
|
-
'maxBorrowRate',
|
|
254
|
-
'reserveFactor',
|
|
255
|
-
]),
|
|
255
|
+
type: (0, swagger_1.PickType)(lending_market_profile_doc_1.LendingMarketProfile, selectFields),
|
|
256
256
|
}),
|
|
257
257
|
__metadata("design:type", Object)
|
|
258
258
|
], LendingAccountProfile.prototype, "marketProfile", void 0);
|
|
@@ -2,11 +2,10 @@ import { CollectionMintProfileDoc } from '../../cosmos-db/documents/collection/m
|
|
|
2
2
|
import { ShortCollectionInfoDoc } from '../../cosmos-db/documents/short/short-collection-info.doc';
|
|
3
3
|
import { EventProfile } from '../../cosmos-db/documents/ticketing/event-profile.doc';
|
|
4
4
|
import { CreatorProfileDoc } from '../../cosmos-db/documents/user/user-creator-profile.doc';
|
|
5
|
-
declare class MintingListingDto extends CollectionMintProfileDoc {
|
|
5
|
+
export declare class MintingListingDto extends CollectionMintProfileDoc {
|
|
6
6
|
collectionInfo: ShortCollectionInfoDoc;
|
|
7
7
|
}
|
|
8
8
|
export declare class CreatorDetailsDto extends CreatorProfileDoc {
|
|
9
9
|
listing?: MintingListingDto[];
|
|
10
10
|
events?: EventProfile[];
|
|
11
11
|
}
|
|
12
|
-
export {};
|
|
@@ -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.CreatorDetailsDto = void 0;
|
|
12
|
+
exports.CreatorDetailsDto = exports.MintingListingDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const mintProfile_1 = require("../../cosmos-db/documents/collection/mintProfile");
|
|
15
15
|
const short_collection_info_doc_1 = require("../../cosmos-db/documents/short/short-collection-info.doc");
|
|
@@ -17,6 +17,7 @@ const event_profile_doc_1 = require("../../cosmos-db/documents/ticketing/event-p
|
|
|
17
17
|
const user_creator_profile_doc_1 = require("../../cosmos-db/documents/user/user-creator-profile.doc");
|
|
18
18
|
class MintingListingDto extends mintProfile_1.CollectionMintProfileDoc {
|
|
19
19
|
}
|
|
20
|
+
exports.MintingListingDto = MintingListingDto;
|
|
20
21
|
__decorate([
|
|
21
22
|
(0, swagger_1.ApiProperty)({ type: () => short_collection_info_doc_1.ShortCollectionInfoDoc }),
|
|
22
23
|
__metadata("design:type", short_collection_info_doc_1.ShortCollectionInfoDoc)
|