@xoxno/types 1.0.24 → 1.0.25

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.
@@ -1,5 +1,5 @@
1
1
  export declare enum ActivityChain {
2
- MULTIVERSX = "MVX",
2
+ MVX = "MVX",
3
3
  SUI = "SUI"
4
4
  }
5
5
  export declare enum EsdtTokenSubType {
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AuctionTypes = exports.MarketplacesOnSaleNames = exports.StorageContainerName = exports.EsdtTokenType = exports.EsdtTokenSubType = exports.ActivityChain = void 0;
4
4
  var ActivityChain;
5
5
  (function (ActivityChain) {
6
- ActivityChain["MULTIVERSX"] = "MVX";
6
+ ActivityChain["MVX"] = "MVX";
7
7
  ActivityChain["SUI"] = "SUI";
8
8
  })(ActivityChain || (exports.ActivityChain = ActivityChain = {}));
9
9
  var EsdtTokenSubType;
@@ -61,7 +61,7 @@ class WalletTradingStats {
61
61
  usdValue: data.SellerMinPriceData?.UsdValue ?? null,
62
62
  }
63
63
  : null;
64
- this.chain = data.chain ?? enums_1.ActivityChain.MULTIVERSX;
64
+ this.chain = data.chain ?? enums_1.ActivityChain.MVX;
65
65
  }
66
66
  }
67
67
  exports.WalletTradingStats = WalletTradingStats;
@@ -17,11 +17,11 @@ const event_source_enum_1 = require("../../../requests/nft-activity-data/event-s
17
17
  const nft_activity_type_enum_1 = require("../../../requests/nft-activity-data/nft-activity-type.enum");
18
18
  class NftActivityDoc {
19
19
  constructor(data) {
20
- this.chain = enums_1.ActivityChain.MULTIVERSX;
20
+ this.chain = enums_1.ActivityChain.MVX;
21
21
  Object.assign(this, data);
22
22
  this.id = (0, uuid_1.v4)();
23
23
  this.pk = this.activityData.collection;
24
- this.chain = this.chain || enums_1.ActivityChain.MULTIVERSX;
24
+ this.chain = this.chain || enums_1.ActivityChain.MVX;
25
25
  }
26
26
  }
27
27
  exports.NftActivityDoc = NftActivityDoc;
@@ -56,7 +56,7 @@ __decorate([
56
56
  ], NftActivityDoc.prototype, "eventOrder", void 0);
57
57
  __decorate([
58
58
  (0, swagger_1.ApiProperty)({
59
- example: enums_1.ActivityChain.MULTIVERSX,
59
+ example: enums_1.ActivityChain.MVX,
60
60
  enum: enums_1.ActivityChain,
61
61
  description: 'Blockchain network where the activity occurred',
62
62
  }),
@@ -20,7 +20,7 @@ class GlobalOfferDoc {
20
20
  this.dataType = dataTypes_1.CollectionDataType.GlobalOffer;
21
21
  this.attributes = [];
22
22
  this.isActive = true;
23
- this.chain = enums_1.ActivityChain.MULTIVERSX;
23
+ this.chain = enums_1.ActivityChain.MVX;
24
24
  Object.assign(this, props);
25
25
  this.id = `${this.collection}-${this.offerId}-${this.marketplace}-${this.dataType}`;
26
26
  }
@@ -146,7 +146,7 @@ __decorate([
146
146
  (0, swagger_1.ApiProperty)({
147
147
  description: 'Blockchain chain',
148
148
  enum: enums_1.ActivityChain,
149
- example: enums_1.ActivityChain.MULTIVERSX,
149
+ example: enums_1.ActivityChain.MVX,
150
150
  }),
151
151
  __metadata("design:type", String)
152
152
  ], GlobalOfferDoc.prototype, "chain", void 0);
@@ -66,7 +66,7 @@ class CollectionProfileDoc {
66
66
  holdersCount: 0,
67
67
  }),
68
68
  });
69
- this.chain = enums_1.ActivityChain.MULTIVERSX;
69
+ this.chain = enums_1.ActivityChain.MVX;
70
70
  this.transferPolicies = [];
71
71
  this.owner = '';
72
72
  this.creator = '';
@@ -193,7 +193,7 @@ __decorate([
193
193
  (0, swagger_1.ApiProperty)({
194
194
  description: 'Blockchain chain',
195
195
  enum: enums_1.ActivityChain,
196
- example: enums_1.ActivityChain.MULTIVERSX,
196
+ example: enums_1.ActivityChain.MVX,
197
197
  }),
198
198
  __metadata("design:type", String)
199
199
  ], CollectionProfileDoc.prototype, "chain", void 0);
@@ -208,7 +208,7 @@ class CollectionStatsDoc {
208
208
  this.floorPrice = 0;
209
209
  this.listedCount = 0;
210
210
  this.tradingStats = new TradingStatistics();
211
- this.chain = enums_1.ActivityChain.MULTIVERSX;
211
+ this.chain = enums_1.ActivityChain.MVX;
212
212
  if (!props?.collection) {
213
213
  throw new Error('collection is required');
214
214
  }
@@ -258,7 +258,7 @@ __decorate([
258
258
  (0, swagger_1.ApiProperty)({
259
259
  description: 'Blockchain chain',
260
260
  enum: enums_1.ActivityChain,
261
- example: enums_1.ActivityChain.MULTIVERSX,
261
+ example: enums_1.ActivityChain.MVX,
262
262
  }),
263
263
  __metadata("design:type", String)
264
264
  ], CollectionStatsDoc.prototype, "chain", void 0);
@@ -86,7 +86,7 @@ class NftDoc {
86
86
  this.onSale = false;
87
87
  this.metadata = { attributes: [] };
88
88
  this.isTicket = false;
89
- this.chain = enums_1.ActivityChain.MULTIVERSX;
89
+ this.chain = enums_1.ActivityChain.MVX;
90
90
  Object.assign(this, props);
91
91
  this.id = this.identifier;
92
92
  if (this.type === enums_1.EsdtTokenType.NonFungibleESDT) {
@@ -18,7 +18,7 @@ class NftOfferDoc {
18
18
  constructor(props) {
19
19
  this.dataType = token_data_enum_1.TokenDataType.Offer;
20
20
  this.isActive = true;
21
- this.chain = enums_1.ActivityChain.MULTIVERSX;
21
+ this.chain = enums_1.ActivityChain.MVX;
22
22
  Object.assign(this, props);
23
23
  this.id = `${this.identifier}-${this.offerId}-${this.marketplace}-${this.dataType}`;
24
24
  if (!this.timestamp) {
@@ -160,7 +160,7 @@ __decorate([
160
160
  ], NftOfferDoc.prototype, "isActive", void 0);
161
161
  __decorate([
162
162
  (0, swagger_1.ApiProperty)({
163
- example: enums_1.ActivityChain.MULTIVERSX,
163
+ example: enums_1.ActivityChain.MVX,
164
164
  enum: enums_1.ActivityChain,
165
165
  description: 'Blockchain network of the offer',
166
166
  }),
@@ -30,7 +30,7 @@ class UserProfileDoc {
30
30
  this.isPoolOwner = false;
31
31
  this.shard = 0;
32
32
  this.userDeposit = [];
33
- this.chain = enums_1.ActivityChain.MULTIVERSX;
33
+ this.chain = enums_1.ActivityChain.MVX;
34
34
  this._ts = 0;
35
35
  this.id = '';
36
36
  Object.assign(this, props);
@@ -117,7 +117,7 @@ __decorate([
117
117
  __metadata("design:type", Array)
118
118
  ], UserProfileDoc.prototype, "userDeposit", void 0);
119
119
  __decorate([
120
- (0, swagger_1.ApiProperty)({ example: enums_1.ActivityChain.MULTIVERSX, enum: enums_1.ActivityChain }),
120
+ (0, swagger_1.ApiProperty)({ example: enums_1.ActivityChain.MVX, enum: enums_1.ActivityChain }),
121
121
  __metadata("design:type", String)
122
122
  ], UserProfileDoc.prototype, "chain", void 0);
123
123
  __decorate([
@@ -15,7 +15,7 @@ class CollectionMintProfileFilter extends cosmos_db_generic_filter_1.CosmosDbGen
15
15
  ],
16
16
  chain: props.filters?.chain &&
17
17
  props.filters.chain.length === 1 &&
18
- props.filters.chain[0] === enums_1.ActivityChain.MULTIVERSX
18
+ props.filters.chain[0] === enums_1.ActivityChain.MVX
19
19
  ? undefined
20
20
  : props.filters?.chain,
21
21
  };
@@ -16,7 +16,7 @@ class CollectionProfileFilter extends cosmos_db_generic_filter_1.CosmosDbGeneric
16
16
  ...props?.filters,
17
17
  chain: props.filters?.chain &&
18
18
  props.filters.chain.length === 1 &&
19
- props.filters.chain[0] === enums_1.ActivityChain.MULTIVERSX
19
+ props.filters.chain[0] === enums_1.ActivityChain.MVX
20
20
  ? undefined
21
21
  : props.filters?.chain,
22
22
  };
@@ -50,7 +50,7 @@ class CollectionStatsFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFi
50
50
  ...props?.filters,
51
51
  chain: props?.filters?.chain &&
52
52
  props?.filters.chain.length === 1 &&
53
- props?.filters.chain[0] === enums_1.ActivityChain.MULTIVERSX
53
+ props?.filters.chain[0] === enums_1.ActivityChain.MVX
54
54
  ? undefined
55
55
  : props?.filters?.chain,
56
56
  };
@@ -98,7 +98,7 @@ class NftActivityFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter
98
98
  ...props?.filters,
99
99
  chain: props?.filters?.chain &&
100
100
  props.filters.chain.length === 1 &&
101
- props.filters.chain[0] === enums_1.ActivityChain.MULTIVERSX
101
+ props.filters.chain[0] === enums_1.ActivityChain.MVX
102
102
  ? undefined
103
103
  : props?.filters?.chain,
104
104
  };
@@ -127,7 +127,7 @@ class NftDocFilter extends cosmos_db_generic_filter_1.CosmosDbGenericFilter {
127
127
  ...props?.filters,
128
128
  chain: props.filters?.chain &&
129
129
  props.filters.chain.length === 1 &&
130
- props.filters.chain[0] === enums_1.ActivityChain.MULTIVERSX
130
+ props.filters.chain[0] === enums_1.ActivityChain.MVX
131
131
  ? undefined
132
132
  : props.filters?.chain,
133
133
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",