@xoxno/types 1.0.144 → 1.0.146

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.
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.NftActivityDocHydrated = exports.NftActivityDoc = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const common_enum_1 = require("../../../enums/common.enum");
15
- const uuid_1 = require("uuid");
16
15
  const event_source_enum_1 = require("../../../enums/event-source.enum");
17
16
  const nft_activity_data_1 = require("../../../requests/nft-activity-data/nft-activity-data");
18
17
  const nft_activity_type_enum_1 = require("../../../enums/nft-activity-type.enum");
@@ -20,7 +19,7 @@ class NftActivityDocBase {
20
19
  constructor(props) {
21
20
  this.chain = common_enum_1.ActivityChain.MVX;
22
21
  Object.assign(this, props);
23
- this.id = (0, uuid_1.v4)();
22
+ this.id = `${this.txHash}-${this.eventIdentifier}-${this.eventOrder ?? 0}`;
24
23
  this.chain = this.chain || common_enum_1.ActivityChain.MVX;
25
24
  }
26
25
  }
@@ -28,7 +28,7 @@ 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", "optimalUsageRate", "slopeRate1", "slopeRate2", "slopeRate3", "midUsageRate", "baseRate", "maxBorrowRate", "reserveFactor", "oraclePrice", "address", "flashLoan"];
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"];
32
32
  export declare class LendingAccountProfile extends LendingAccountProfileDoc {
33
33
  supplyAmount: string;
34
34
  borrowAmount: string;
@@ -199,6 +199,12 @@ const selectFields = [
199
199
  'supplyCap',
200
200
  'borrowCap',
201
201
  'supplyAmount',
202
+ 'supplyAmountScaled',
203
+ 'borrowAmountScaled',
204
+ 'ltv',
205
+ 'liquidationThreshold',
206
+ 'liquidationBonus',
207
+ 'liquidationFee',
202
208
  'siloed',
203
209
  'supplyIndex',
204
210
  'borrowIndex',
@@ -2,7 +2,7 @@ import { MetadataDto } from '../../requests/collection/listings';
2
2
  import { NftMedia } from '../../cosmos-db/documents/token/nft-details.doc';
3
3
  import { StatisticsDto } from '../../common/statistics';
4
4
  import { ActivityChain } from '../../enums/common.enum';
5
- declare class CollectionDto {
5
+ export declare class CollectionDto {
6
6
  collection: string;
7
7
  name: string;
8
8
  isVisible: boolean;
@@ -13,7 +13,7 @@ declare class CollectionDto {
13
13
  floorPrice: number;
14
14
  chain?: ActivityChain;
15
15
  }
16
- declare class UserDto {
16
+ export declare class UserDto {
17
17
  address: string;
18
18
  herotag: string;
19
19
  isVerified: boolean;
@@ -22,7 +22,7 @@ declare class UserDto {
22
22
  addressTrimmed: string;
23
23
  chain?: ActivityChain;
24
24
  }
25
- declare class CreatorDto {
25
+ export declare class CreatorDto {
26
26
  address: string;
27
27
  herotag: string;
28
28
  addressTrimmed: string;
@@ -34,7 +34,7 @@ declare class CreatorDto {
34
34
  profile: string;
35
35
  chain?: ActivityChain.MVX;
36
36
  }
37
- declare class NftDto {
37
+ export declare class NftDto {
38
38
  identifier: string;
39
39
  name: string;
40
40
  collection: string;
@@ -51,4 +51,3 @@ export declare class GlobalSearchResourcesDto {
51
51
  creators: CreatorDto[];
52
52
  nft: NftDto[];
53
53
  }
54
- 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.GlobalSearchResourcesDto = void 0;
12
+ exports.GlobalSearchResourcesDto = exports.NftDto = exports.CreatorDto = exports.UserDto = exports.CollectionDto = void 0;
13
13
  // DTO Type
14
14
  const swagger_1 = require("@nestjs/swagger");
15
15
  const class_validator_1 = require("class-validator");
@@ -19,6 +19,7 @@ const statistics_1 = require("../../common/statistics");
19
19
  const common_enum_1 = require("../../enums/common.enum");
20
20
  class CollectionDto {
21
21
  }
22
+ exports.CollectionDto = CollectionDto;
22
23
  __decorate([
23
24
  (0, swagger_1.ApiProperty)({ example: 'EAPES-8f3c1f' }),
24
25
  __metadata("design:type", String)
@@ -59,6 +60,7 @@ __decorate([
59
60
  ], CollectionDto.prototype, "chain", void 0);
60
61
  class UserDto {
61
62
  }
63
+ exports.UserDto = UserDto;
62
64
  __decorate([
63
65
  (0, swagger_1.ApiProperty)({
64
66
  example: 'erd10hsfh2xhn4qzatc0vguxgfdu8aegurnep7zzyg0ht9ddw50g5xfq8ccu4q',
@@ -94,6 +96,7 @@ __decorate([
94
96
  ], UserDto.prototype, "chain", void 0);
95
97
  class CreatorDto {
96
98
  }
99
+ exports.CreatorDto = CreatorDto;
97
100
  __decorate([
98
101
  (0, swagger_1.ApiProperty)({
99
102
  example: 'erd10hsfh2xhn4qzatc0vguxgfdu8aegurnep7zzyg0ht9ddw50g5xfq8ccu4q',
@@ -142,6 +145,7 @@ __decorate([
142
145
  ], CreatorDto.prototype, "chain", void 0);
143
146
  class NftDto {
144
147
  }
148
+ exports.NftDto = NftDto;
145
149
  __decorate([
146
150
  (0, swagger_1.ApiProperty)({ example: 'EAPES-8f3c1f-0209' }),
147
151
  __metadata("design:type", String)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.144",
3
+ "version": "1.0.146",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {