@xoxno/types 1.0.139 → 1.0.141

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.
@@ -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", "oraclePrice", "ltv", "liquidationBonus", "address", "liquidationFee", "liquidationThreshold", "eMode", "flashLoan"];
31
32
  export declare class LendingAccountProfile extends LendingAccountProfileDoc {
32
33
  supplyAmount: string;
33
34
  borrowAmount: string;
34
35
  eModeCategoryProfile?: LendingEModeCategoryProfileDoc;
35
- marketProfile?: Pick<LendingMarketProfile, 'token' | 'name' | 'supplyApy' | 'borrowApy' | 'decimals' | 'siloed' | 'reserves' | 'supplyCap' | 'borrowCap' | 'supplyAmount' | 'ltv' | 'liquidationBonus' | 'oraclePrice' | 'rewardsReserve' | 'timestamp' | 'maxDebtUsd' | 'debtCeiling' | 'isolated' | 'supplyIndex' | 'borrowIndex' | 'supplyAmountScaled' | 'borrowAmountScaled' | 'canBeCollateral' | 'canBeBorrowed' | 'canBorrowInIsolation' | 'extraApy' | 'flashLoanFee' | 'utilizationRate' | 'borrowAmount' | 'optimalUsageRate' | 'slopeRate1' | 'slopeRate2' | 'slopeRate3' | 'midUsageRate' | 'baseRate' | 'maxBorrowRate' | 'reserveFactor'>;
36
+ marketProfile: Pick<LendingMarketProfile, (typeof selectFields)[number]>;
36
37
  }
38
+ export {};
@@ -189,6 +189,50 @@ __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
+ 'oraclePrice',
228
+ 'ltv',
229
+ 'liquidationBonus',
230
+ 'address',
231
+ 'liquidationFee',
232
+ 'liquidationThreshold',
233
+ 'eMode',
234
+ 'flashLoan',
235
+ ];
192
236
  class LendingAccountProfile extends LendingAccountProfileDoc {
193
237
  }
194
238
  exports.LendingAccountProfile = LendingAccountProfile;
@@ -216,43 +260,7 @@ __decorate([
216
260
  __decorate([
217
261
  (0, swagger_1.ApiProperty)({
218
262
  description: 'Lending market partial profile',
219
- required: false,
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
- ]),
263
+ type: (0, swagger_1.PickType)(lending_market_profile_doc_1.LendingMarketProfile, selectFields),
256
264
  }),
257
265
  __metadata("design:type", Object)
258
266
  ], LendingAccountProfile.prototype, "marketProfile", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.139",
3
+ "version": "1.0.141",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {