@xoxno/types 1.0.206 → 1.0.208

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.
@@ -2,6 +2,11 @@ import { LendingDataType } from '../../../enums/lending-data-type.enum';
2
2
  import { LendingEModeCategoryProfileDoc } from './lending-emode-category-profile.doc';
3
3
  import { LendingMarketProfile } from './lending-market-profile.doc';
4
4
  import { PositionMode } from '../../../enums/lending.enum';
5
+ export declare class InitialPaymentMultiplier {
6
+ initialPaymentAmount: string;
7
+ initialPaymentToken: string;
8
+ usdValue: string;
9
+ }
5
10
  export declare class LendingAccountProfileDoc {
6
11
  dataType: LendingDataType;
7
12
  identifier: string;
@@ -9,8 +14,6 @@ export declare class LendingAccountProfileDoc {
9
14
  token: string;
10
15
  supplyAmountScaled: string;
11
16
  borrowAmountScaled: string;
12
- supplyIndex: number;
13
- borrowIndex: number;
14
17
  entryLiquidationThreshold: string;
15
18
  entryLiquidationBonus: string;
16
19
  entryLiquidationFee: string;
@@ -19,16 +22,13 @@ export declare class LendingAccountProfileDoc {
19
22
  positionMode: PositionMode;
20
23
  eModeCategory?: string;
21
24
  address: string;
22
- leverageInitialSupply?: number;
23
- leverageInitialSupplyPrice?: number;
24
- leverageInitialBorrow?: number;
25
- leverageInitialBorrowPrice?: number;
25
+ initialPaymentMultiplier?: InitialPaymentMultiplier;
26
26
  id: string;
27
27
  pk: string;
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", "supplyAmountScaled", "borrowAmountScaled", "ltv", "liquidationThreshold", "liquidationBonus", "liquidationFee", "siloed", "supplyIndex", "borrowIndex", "rewardsReserve", "maxDebtUsd", "debtCeiling", "isolated", "canBeCollateral", "timestamp", "canBeBorrowed", "canBorrowInIsolation", "extraApy", "flashLoanFee", "utilizationRate", "borrowAmount", "optimalUsageRate", "slopeRate1", "slopeRate2", "slopeRate3", "midUsageRate", "baseRate", "maxBorrowRate", "reserveFactor", "oraclePrice", "address", "flashLoan", "oracleProvider", "initialPaymentMultiplier"];
31
+ declare const selectFields: readonly ["token", "name", "supplyApy", "borrowApy", "decimals", "reserves", "supplyCap", "borrowCap", "supplyAmount", "supplyAmountScaled", "borrowAmountScaled", "ltv", "liquidationThreshold", "liquidationBonus", "liquidationFee", "siloed", "rewardsReserve", "maxDebtUsd", "debtCeiling", "isolated", "canBeCollateral", "timestamp", "canBeBorrowed", "canBorrowInIsolation", "extraApy", "flashLoanFee", "utilizationRate", "borrowAmount", "optimalUsageRate", "slopeRate1", "slopeRate2", "slopeRate3", "midUsageRate", "baseRate", "maxBorrowRate", "reserveFactor", "oraclePrice", "address", "flashLoan", "oracleProvider", "indexes"];
32
32
  export declare class LendingAccountProfile extends LendingAccountProfileDoc {
33
33
  supplyAmount: string;
34
34
  borrowAmount: string;
@@ -9,19 +9,41 @@ 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.LendingAccountProfile = exports.LendingAccountProfileDoc = void 0;
12
+ exports.LendingAccountProfile = exports.LendingAccountProfileDoc = 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 lending_emode_category_profile_doc_1 = require("./lending-emode-category-profile.doc");
16
16
  const lending_market_profile_doc_1 = require("./lending-market-profile.doc");
17
17
  const lending_enum_1 = require("../../../enums/lending.enum");
18
+ class InitialPaymentMultiplier {
19
+ }
20
+ exports.InitialPaymentMultiplier = InitialPaymentMultiplier;
21
+ __decorate([
22
+ (0, swagger_1.ApiProperty)({
23
+ description: 'Initial payment amount',
24
+ example: 1.0,
25
+ }),
26
+ __metadata("design:type", String)
27
+ ], InitialPaymentMultiplier.prototype, "initialPaymentAmount", void 0);
28
+ __decorate([
29
+ (0, swagger_1.ApiProperty)({
30
+ description: 'Initial payment token',
31
+ example: 1.0,
32
+ }),
33
+ __metadata("design:type", String)
34
+ ], InitialPaymentMultiplier.prototype, "initialPaymentToken", void 0);
35
+ __decorate([
36
+ (0, swagger_1.ApiProperty)({
37
+ description: 'USD value',
38
+ example: 1.0,
39
+ }),
40
+ __metadata("design:type", String)
41
+ ], InitialPaymentMultiplier.prototype, "usdValue", void 0);
18
42
  class LendingAccountProfileDoc {
19
43
  constructor(props) {
20
44
  this.dataType = lending_data_type_enum_1.LendingDataType.ACCOUNT_PROFILE;
21
45
  this.supplyAmountScaled = '0';
22
46
  this.borrowAmountScaled = '0';
23
- this.supplyIndex = 0;
24
- this.borrowIndex = 0;
25
47
  Object.assign(this, props);
26
48
  this.pk = this.dataType;
27
49
  this.id = `${this.identifier}_${this.token}`;
@@ -71,20 +93,6 @@ __decorate([
71
93
  }),
72
94
  __metadata("design:type", Object)
73
95
  ], LendingAccountProfileDoc.prototype, "borrowAmountScaled", void 0);
74
- __decorate([
75
- (0, swagger_1.ApiProperty)({
76
- description: 'Supply index',
77
- example: 0,
78
- }),
79
- __metadata("design:type", Object)
80
- ], LendingAccountProfileDoc.prototype, "supplyIndex", void 0);
81
- __decorate([
82
- (0, swagger_1.ApiProperty)({
83
- description: 'Borrow index',
84
- example: 0,
85
- }),
86
- __metadata("design:type", Object)
87
- ], LendingAccountProfileDoc.prototype, "borrowIndex", void 0);
88
96
  __decorate([
89
97
  (0, swagger_1.ApiProperty)({
90
98
  description: 'Entry liquidation threshold',
@@ -147,48 +155,12 @@ __decorate([
147
155
  ], LendingAccountProfileDoc.prototype, "address", void 0);
148
156
  __decorate([
149
157
  (0, swagger_1.ApiProperty)({
150
- description: 'Initial strategy values',
151
- example: {
152
- leverageInitialSupply: '1000',
153
- leverageInitialSupplyPrice: '1000',
154
- },
155
- required: false,
156
- }),
157
- __metadata("design:type", Number)
158
- ], LendingAccountProfileDoc.prototype, "leverageInitialSupply", void 0);
159
- __decorate([
160
- (0, swagger_1.ApiProperty)({
161
- description: 'Initial strategy values',
162
- example: {
163
- leverageInitialSupply: '1000',
164
- leverageInitialSupplyPrice: '1000',
165
- },
166
- required: false,
167
- }),
168
- __metadata("design:type", Number)
169
- ], LendingAccountProfileDoc.prototype, "leverageInitialSupplyPrice", void 0);
170
- __decorate([
171
- (0, swagger_1.ApiProperty)({
172
- description: 'Initial strategy values',
173
- example: {
174
- leverageInitialBorrow: '1000',
175
- leverageInitialBorrowPrice: '1000',
176
- },
158
+ description: 'Initial payment multiplier',
159
+ type: InitialPaymentMultiplier,
177
160
  required: false,
178
161
  }),
179
- __metadata("design:type", Number)
180
- ], LendingAccountProfileDoc.prototype, "leverageInitialBorrow", void 0);
181
- __decorate([
182
- (0, swagger_1.ApiProperty)({
183
- description: 'Initial strategy values',
184
- example: {
185
- leverageInitialBorrow: '1000',
186
- leverageInitialBorrowPrice: '1000',
187
- },
188
- required: false,
189
- }),
190
- __metadata("design:type", Number)
191
- ], LendingAccountProfileDoc.prototype, "leverageInitialBorrowPrice", void 0);
162
+ __metadata("design:type", InitialPaymentMultiplier)
163
+ ], LendingAccountProfileDoc.prototype, "initialPaymentMultiplier", void 0);
192
164
  __decorate([
193
165
  (0, swagger_1.ApiProperty)({
194
166
  description: 'Cosmos DB document identifier',
@@ -227,8 +199,6 @@ const selectFields = [
227
199
  'liquidationBonus',
228
200
  'liquidationFee',
229
201
  'siloed',
230
- 'supplyIndex',
231
- 'borrowIndex',
232
202
  'rewardsReserve',
233
203
  'maxDebtUsd',
234
204
  'debtCeiling',
@@ -253,7 +223,7 @@ const selectFields = [
253
223
  'address',
254
224
  'flashLoan',
255
225
  'oracleProvider',
256
- 'initialPaymentMultiplier',
226
+ 'indexes',
257
227
  ];
258
228
  class LendingAccountProfile extends LendingAccountProfileDoc {
259
229
  }
@@ -3,11 +3,6 @@ import { OwnerDto } from '../../../common/owner.dto';
3
3
  import { LendingEModeCategoryProfileDoc } from './lending-emode-category-profile.doc';
4
4
  import { LendingOracleUpdateStruct } from './lending-oracle';
5
5
  import { LendingIndexesDto } from '../../../requests/lending/lending-indexes.dto';
6
- export declare class InitialPaymentMultiplier {
7
- initialPaymentAmount: string;
8
- initialPaymentToken: number;
9
- usdValue: string;
10
- }
11
6
  export declare class LendingMarketProfileDoc {
12
7
  dataType: LendingDataType;
13
8
  token: string;
@@ -40,8 +35,6 @@ export declare class LendingMarketProfileDoc {
40
35
  borrowCap: string;
41
36
  supplyCapShort: number;
42
37
  borrowCapShort: number;
43
- supplyIndex: string;
44
- borrowIndex: string;
45
38
  timestamp: number;
46
39
  borrowApy: number;
47
40
  supplyApy: number;
@@ -60,7 +53,6 @@ export declare class LendingMarketProfileDoc {
60
53
  flashLoanFee: string;
61
54
  canBorrowInIsolation: boolean;
62
55
  oracleProvider: LendingOracleUpdateStruct;
63
- initialPaymentMultiplier?: InitialPaymentMultiplier;
64
56
  id: string;
65
57
  pk: string;
66
58
  _ts: number;
@@ -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.LendingMarketProfileQuery = exports.LendingMarketProfile = exports.MarketExtraApy = exports.LendingMarketParticipants = exports.LendingMarketProfileDoc = exports.InitialPaymentMultiplier = void 0;
12
+ exports.LendingMarketProfileQuery = exports.LendingMarketProfile = exports.MarketExtraApy = exports.LendingMarketParticipants = exports.LendingMarketProfileDoc = 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");
@@ -17,30 +17,6 @@ const lending_emode_category_profile_doc_1 = require("./lending-emode-category-p
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
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);
44
20
  class LendingMarketProfileDoc {
45
21
  constructor(props) {
46
22
  this.dataType = lending_data_type_enum_1.LendingDataType.MARKET_PROFILE;
@@ -56,8 +32,6 @@ class LendingMarketProfileDoc {
56
32
  this.borrowAmountScaled = '0';
57
33
  this.supplyCapShort = 0;
58
34
  this.borrowCapShort = 0;
59
- this.supplyIndex = '0';
60
- this.borrowIndex = '0';
61
35
  this.timestamp = 0;
62
36
  this.borrowApy = 0;
63
37
  this.supplyApy = 0;
@@ -213,14 +187,6 @@ __decorate([
213
187
  (0, swagger_1.ApiProperty)({ description: 'Short borrow cap', example: 1250000 }),
214
188
  __metadata("design:type", Object)
215
189
  ], LendingMarketProfileDoc.prototype, "borrowCapShort", void 0);
216
- __decorate([
217
- (0, swagger_1.ApiProperty)({ description: 'Supply index', example: '1.02' }),
218
- __metadata("design:type", Object)
219
- ], LendingMarketProfileDoc.prototype, "supplyIndex", void 0);
220
- __decorate([
221
- (0, swagger_1.ApiProperty)({ description: 'Borrow index', example: '1.05' }),
222
- __metadata("design:type", Object)
223
- ], LendingMarketProfileDoc.prototype, "borrowIndex", void 0);
224
190
  __decorate([
225
191
  (0, swagger_1.ApiProperty)({
226
192
  description: 'Timestamp of last market activity',
@@ -330,14 +296,6 @@ __decorate([
330
296
  }),
331
297
  __metadata("design:type", lending_oracle_1.LendingOracleUpdateStruct)
332
298
  ], 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);
341
299
  __decorate([
342
300
  (0, swagger_1.ApiProperty)({
343
301
  description: 'Cosmos DB document identifier',
@@ -113,8 +113,6 @@ class LendingMarketProfileFilter extends cosmos_db_generic_filter_1.CosmosDbGene
113
113
  'eMode',
114
114
  'isolated',
115
115
  'siloed',
116
- 'supplyIndex',
117
- 'borrowIndex',
118
116
  'canBorrowInIsolation',
119
117
  'eModeCategories',
120
118
  'ltv',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.206",
3
+ "version": "1.0.208",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {