@xoxno/types 1.0.44 → 1.0.45
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,6 +1,6 @@
|
|
|
1
1
|
import { TokenDataType } from './token-data.enum';
|
|
2
2
|
import { NftMetadata } from './nft-metadata';
|
|
3
|
-
import { NftSaleInfo } from './nft-sale-info';
|
|
3
|
+
import { NftSaleInfo, NftSaleInfoHydrated } from './nft-sale-info';
|
|
4
4
|
import { ActivityChain, EsdtTokenSubType, EsdtTokenType } from '../../../common/enums';
|
|
5
5
|
import { CollectionProfileDoc } from '../collection/profile';
|
|
6
6
|
import { OwnerDto } from '../../../common/owner.dto';
|
|
@@ -23,7 +23,7 @@ export declare class NftMedia {
|
|
|
23
23
|
declare class NftStats {
|
|
24
24
|
likedCount?: number;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
declare class NftDocBase {
|
|
27
27
|
dataType: TokenDataType;
|
|
28
28
|
identifier: string;
|
|
29
29
|
collection: string;
|
|
@@ -38,13 +38,8 @@ export declare class NftDoc {
|
|
|
38
38
|
royalties: number;
|
|
39
39
|
url: string;
|
|
40
40
|
uris?: string[];
|
|
41
|
-
creator?: string | OwnerDto;
|
|
42
41
|
wasProcessed: boolean;
|
|
43
42
|
media?: NftMedia;
|
|
44
|
-
currentOwner?: string | OwnerDto;
|
|
45
|
-
owner?: string | OwnerDto;
|
|
46
|
-
onSale: boolean;
|
|
47
|
-
saleInfo?: NftSaleInfo;
|
|
48
43
|
statistics?: NftStats;
|
|
49
44
|
metadata?: NftMetadata;
|
|
50
45
|
isTicket?: boolean;
|
|
@@ -52,16 +47,26 @@ export declare class NftDoc {
|
|
|
52
47
|
chain: ActivityChain;
|
|
53
48
|
tags?: string[];
|
|
54
49
|
kiosk?: string;
|
|
50
|
+
onSale: boolean;
|
|
55
51
|
id?: string;
|
|
56
52
|
_ts?: number;
|
|
57
53
|
constructor(props?: Partial<NftDoc>);
|
|
58
54
|
}
|
|
55
|
+
export declare class NftDoc extends NftDocBase {
|
|
56
|
+
creator?: string;
|
|
57
|
+
currentOwner?: string;
|
|
58
|
+
owner?: string;
|
|
59
|
+
saleInfo?: NftSaleInfo;
|
|
60
|
+
}
|
|
59
61
|
export declare class ExtraProperties {
|
|
60
62
|
currentEpoch?: number;
|
|
61
63
|
level?: number;
|
|
62
64
|
}
|
|
63
|
-
export declare class NftProps extends
|
|
64
|
-
|
|
65
|
+
export declare class NftProps extends NftDocBase {
|
|
66
|
+
creator?: OwnerDto;
|
|
67
|
+
currentOwner?: OwnerDto;
|
|
68
|
+
owner?: OwnerDto;
|
|
69
|
+
saleInfo?: NftSaleInfoHydrated;
|
|
65
70
|
balance?: number;
|
|
66
71
|
balanceLong?: string;
|
|
67
72
|
unboundDaysLeft?: number;
|
|
@@ -79,14 +79,14 @@ __decorate([
|
|
|
79
79
|
(0, swagger_1.ApiProperty)({ type: Number, required: false }),
|
|
80
80
|
__metadata("design:type", Number)
|
|
81
81
|
], NftStats.prototype, "likedCount", void 0);
|
|
82
|
-
class
|
|
82
|
+
class NftDocBase {
|
|
83
83
|
constructor(props) {
|
|
84
84
|
this.dataType = token_data_enum_1.TokenDataType.Nft;
|
|
85
85
|
this.wasProcessed = false;
|
|
86
|
-
this.onSale = false;
|
|
87
86
|
this.metadata = { attributes: [] };
|
|
88
87
|
this.isTicket = false;
|
|
89
88
|
this.chain = enums_1.ActivityChain.MVX;
|
|
89
|
+
this.onSale = false;
|
|
90
90
|
Object.assign(this, props);
|
|
91
91
|
this.id = this.identifier;
|
|
92
92
|
if (this.type === enums_1.EsdtTokenType.NonFungibleESDT) {
|
|
@@ -99,21 +99,20 @@ class NftDoc {
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
|
-
exports.NftDoc = NftDoc;
|
|
103
102
|
__decorate([
|
|
104
103
|
(0, swagger_1.ApiProperty)({
|
|
105
104
|
type: String,
|
|
106
105
|
description: 'Unique identifier of the asset',
|
|
107
106
|
}),
|
|
108
107
|
__metadata("design:type", String)
|
|
109
|
-
],
|
|
108
|
+
], NftDocBase.prototype, "identifier", void 0);
|
|
110
109
|
__decorate([
|
|
111
110
|
(0, swagger_1.ApiProperty)({
|
|
112
111
|
type: String,
|
|
113
112
|
description: 'Unique collection ID',
|
|
114
113
|
}),
|
|
115
114
|
__metadata("design:type", String)
|
|
116
|
-
],
|
|
115
|
+
], NftDocBase.prototype, "collection", void 0);
|
|
117
116
|
__decorate([
|
|
118
117
|
(0, swagger_1.ApiProperty)({
|
|
119
118
|
type: String,
|
|
@@ -121,7 +120,7 @@ __decorate([
|
|
|
121
120
|
description: 'For syntetic NFTs this unique collection represents the underlaying collection',
|
|
122
121
|
}),
|
|
123
122
|
__metadata("design:type", String)
|
|
124
|
-
],
|
|
123
|
+
], NftDocBase.prototype, "originalCollection", void 0);
|
|
125
124
|
__decorate([
|
|
126
125
|
(0, swagger_1.ApiProperty)({
|
|
127
126
|
type: String,
|
|
@@ -129,7 +128,7 @@ __decorate([
|
|
|
129
128
|
description: 'The attributes of the NFT as base64 encoded string',
|
|
130
129
|
}),
|
|
131
130
|
__metadata("design:type", String)
|
|
132
|
-
],
|
|
131
|
+
], NftDocBase.prototype, "attributes", void 0);
|
|
133
132
|
__decorate([
|
|
134
133
|
(0, swagger_1.ApiProperty)({
|
|
135
134
|
type: Number,
|
|
@@ -137,7 +136,7 @@ __decorate([
|
|
|
137
136
|
description: 'The nonce of the NFT',
|
|
138
137
|
}),
|
|
139
138
|
__metadata("design:type", Number)
|
|
140
|
-
],
|
|
139
|
+
], NftDocBase.prototype, "nonce", void 0);
|
|
141
140
|
__decorate([
|
|
142
141
|
(0, swagger_1.ApiProperty)({
|
|
143
142
|
enum: enums_1.EsdtTokenType,
|
|
@@ -146,7 +145,7 @@ __decorate([
|
|
|
146
145
|
description: 'The type of the NFT',
|
|
147
146
|
}),
|
|
148
147
|
__metadata("design:type", String)
|
|
149
|
-
],
|
|
148
|
+
], NftDocBase.prototype, "type", void 0);
|
|
150
149
|
__decorate([
|
|
151
150
|
(0, swagger_1.ApiProperty)({
|
|
152
151
|
enum: enums_1.EsdtTokenSubType,
|
|
@@ -155,7 +154,7 @@ __decorate([
|
|
|
155
154
|
description: 'The sub-type of the NFT',
|
|
156
155
|
}),
|
|
157
156
|
__metadata("design:type", String)
|
|
158
|
-
],
|
|
157
|
+
], NftDocBase.prototype, "subType", void 0);
|
|
159
158
|
__decorate([
|
|
160
159
|
(0, swagger_1.ApiProperty)({
|
|
161
160
|
type: Number,
|
|
@@ -163,7 +162,7 @@ __decorate([
|
|
|
163
162
|
description: 'The supply of the NFT',
|
|
164
163
|
}),
|
|
165
164
|
__metadata("design:type", Number)
|
|
166
|
-
],
|
|
165
|
+
], NftDocBase.prototype, "supply", void 0);
|
|
167
166
|
__decorate([
|
|
168
167
|
(0, swagger_1.ApiProperty)({
|
|
169
168
|
type: String,
|
|
@@ -171,7 +170,7 @@ __decorate([
|
|
|
171
170
|
description: 'In case of an SFT/MetaESDT we show the total supply minted for this unique asset as string',
|
|
172
171
|
}),
|
|
173
172
|
__metadata("design:type", String)
|
|
174
|
-
],
|
|
173
|
+
], NftDocBase.prototype, "supplyLong", void 0);
|
|
175
174
|
__decorate([
|
|
176
175
|
(0, swagger_1.ApiProperty)({
|
|
177
176
|
type: String,
|
|
@@ -179,7 +178,7 @@ __decorate([
|
|
|
179
178
|
description: 'The name of the NFT',
|
|
180
179
|
}),
|
|
181
180
|
__metadata("design:type", String)
|
|
182
|
-
],
|
|
181
|
+
], NftDocBase.prototype, "name", void 0);
|
|
183
182
|
__decorate([
|
|
184
183
|
(0, swagger_1.ApiProperty)({
|
|
185
184
|
type: Number,
|
|
@@ -192,7 +191,7 @@ __decorate([
|
|
|
192
191
|
description: 'The royalties of the NFT',
|
|
193
192
|
}),
|
|
194
193
|
__metadata("design:type", Number)
|
|
195
|
-
],
|
|
194
|
+
], NftDocBase.prototype, "royalties", void 0);
|
|
196
195
|
__decorate([
|
|
197
196
|
(0, swagger_1.ApiProperty)({
|
|
198
197
|
type: String,
|
|
@@ -200,7 +199,7 @@ __decorate([
|
|
|
200
199
|
description: 'The URL of the NFT',
|
|
201
200
|
}),
|
|
202
201
|
__metadata("design:type", String)
|
|
203
|
-
],
|
|
202
|
+
], NftDocBase.prototype, "url", void 0);
|
|
204
203
|
__decorate([
|
|
205
204
|
(0, swagger_1.ApiProperty)({
|
|
206
205
|
type: String,
|
|
@@ -208,15 +207,7 @@ __decorate([
|
|
|
208
207
|
description: 'The URIs of the NFT',
|
|
209
208
|
}),
|
|
210
209
|
__metadata("design:type", Array)
|
|
211
|
-
],
|
|
212
|
-
__decorate([
|
|
213
|
-
(0, swagger_1.ApiProperty)({
|
|
214
|
-
type: owner_dto_1.OwnerDto,
|
|
215
|
-
required: false,
|
|
216
|
-
description: 'The creator of the NFT',
|
|
217
|
-
}),
|
|
218
|
-
__metadata("design:type", Object)
|
|
219
|
-
], NftDoc.prototype, "creator", void 0);
|
|
210
|
+
], NftDocBase.prototype, "uris", void 0);
|
|
220
211
|
__decorate([
|
|
221
212
|
(0, swagger_1.ApiProperty)({
|
|
222
213
|
type: Boolean,
|
|
@@ -224,7 +215,7 @@ __decorate([
|
|
|
224
215
|
description: 'Whether the NFT was processed',
|
|
225
216
|
}),
|
|
226
217
|
__metadata("design:type", Boolean)
|
|
227
|
-
],
|
|
218
|
+
], NftDocBase.prototype, "wasProcessed", void 0);
|
|
228
219
|
__decorate([
|
|
229
220
|
(0, swagger_1.ApiProperty)({
|
|
230
221
|
type: NftMedia,
|
|
@@ -232,39 +223,7 @@ __decorate([
|
|
|
232
223
|
description: 'The media of the NFT',
|
|
233
224
|
}),
|
|
234
225
|
__metadata("design:type", NftMedia)
|
|
235
|
-
],
|
|
236
|
-
__decorate([
|
|
237
|
-
(0, swagger_1.ApiProperty)({
|
|
238
|
-
type: owner_dto_1.OwnerDto,
|
|
239
|
-
required: false,
|
|
240
|
-
description: 'The current owner of the NFT',
|
|
241
|
-
}),
|
|
242
|
-
__metadata("design:type", Object)
|
|
243
|
-
], NftDoc.prototype, "currentOwner", void 0);
|
|
244
|
-
__decorate([
|
|
245
|
-
(0, swagger_1.ApiProperty)({
|
|
246
|
-
type: owner_dto_1.OwnerDto,
|
|
247
|
-
required: false,
|
|
248
|
-
description: 'The owner of the NFT',
|
|
249
|
-
}),
|
|
250
|
-
__metadata("design:type", Object)
|
|
251
|
-
], NftDoc.prototype, "owner", void 0);
|
|
252
|
-
__decorate([
|
|
253
|
-
(0, swagger_1.ApiProperty)({
|
|
254
|
-
type: Boolean,
|
|
255
|
-
required: true,
|
|
256
|
-
description: 'Whether the NFT is on sale',
|
|
257
|
-
}),
|
|
258
|
-
__metadata("design:type", Boolean)
|
|
259
|
-
], NftDoc.prototype, "onSale", void 0);
|
|
260
|
-
__decorate([
|
|
261
|
-
(0, swagger_1.ApiProperty)({
|
|
262
|
-
type: nft_sale_info_1.NftSaleInfo,
|
|
263
|
-
required: false,
|
|
264
|
-
description: 'The sale info of the NFT',
|
|
265
|
-
}),
|
|
266
|
-
__metadata("design:type", nft_sale_info_1.NftSaleInfo)
|
|
267
|
-
], NftDoc.prototype, "saleInfo", void 0);
|
|
226
|
+
], NftDocBase.prototype, "media", void 0);
|
|
268
227
|
__decorate([
|
|
269
228
|
(0, swagger_1.ApiProperty)({
|
|
270
229
|
type: NftStats,
|
|
@@ -272,7 +231,7 @@ __decorate([
|
|
|
272
231
|
description: 'The statistics of the NFT',
|
|
273
232
|
}),
|
|
274
233
|
__metadata("design:type", NftStats)
|
|
275
|
-
],
|
|
234
|
+
], NftDocBase.prototype, "statistics", void 0);
|
|
276
235
|
__decorate([
|
|
277
236
|
(0, swagger_1.ApiProperty)({
|
|
278
237
|
type: nft_metadata_1.NftMetadata,
|
|
@@ -280,7 +239,7 @@ __decorate([
|
|
|
280
239
|
description: 'The metadata of the NFT',
|
|
281
240
|
}),
|
|
282
241
|
__metadata("design:type", nft_metadata_1.NftMetadata)
|
|
283
|
-
],
|
|
242
|
+
], NftDocBase.prototype, "metadata", void 0);
|
|
284
243
|
__decorate([
|
|
285
244
|
(0, swagger_1.ApiProperty)({
|
|
286
245
|
type: Boolean,
|
|
@@ -290,7 +249,7 @@ __decorate([
|
|
|
290
249
|
// Encapsulate event-specific data in a separate key
|
|
291
250
|
,
|
|
292
251
|
__metadata("design:type", Boolean)
|
|
293
|
-
],
|
|
252
|
+
], NftDocBase.prototype, "isTicket", void 0);
|
|
294
253
|
__decorate([
|
|
295
254
|
(0, swagger_1.ApiProperty)({
|
|
296
255
|
type: NFTEventData,
|
|
@@ -298,7 +257,7 @@ __decorate([
|
|
|
298
257
|
description: 'The event data of the NFT',
|
|
299
258
|
}),
|
|
300
259
|
__metadata("design:type", NFTEventData)
|
|
301
|
-
],
|
|
260
|
+
], NftDocBase.prototype, "eventData", void 0);
|
|
302
261
|
__decorate([
|
|
303
262
|
(0, swagger_1.ApiProperty)({
|
|
304
263
|
enum: enums_1.ActivityChain,
|
|
@@ -307,7 +266,7 @@ __decorate([
|
|
|
307
266
|
description: 'The chain of the NFT',
|
|
308
267
|
}),
|
|
309
268
|
__metadata("design:type", String)
|
|
310
|
-
],
|
|
269
|
+
], NftDocBase.prototype, "chain", void 0);
|
|
311
270
|
__decorate([
|
|
312
271
|
(0, swagger_1.ApiProperty)({
|
|
313
272
|
type: String,
|
|
@@ -315,7 +274,7 @@ __decorate([
|
|
|
315
274
|
description: 'The tags of the NFT',
|
|
316
275
|
}),
|
|
317
276
|
__metadata("design:type", Array)
|
|
318
|
-
],
|
|
277
|
+
], NftDocBase.prototype, "tags", void 0);
|
|
319
278
|
__decorate([
|
|
320
279
|
(0, swagger_1.ApiProperty)({
|
|
321
280
|
type: String,
|
|
@@ -323,7 +282,15 @@ __decorate([
|
|
|
323
282
|
required: false,
|
|
324
283
|
}),
|
|
325
284
|
__metadata("design:type", String)
|
|
326
|
-
],
|
|
285
|
+
], NftDocBase.prototype, "kiosk", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
(0, swagger_1.ApiProperty)({
|
|
288
|
+
type: Boolean,
|
|
289
|
+
required: true,
|
|
290
|
+
description: 'Whether the NFT is on sale',
|
|
291
|
+
}),
|
|
292
|
+
__metadata("design:type", Boolean)
|
|
293
|
+
], NftDocBase.prototype, "onSale", void 0);
|
|
327
294
|
__decorate([
|
|
328
295
|
(0, swagger_1.ApiProperty)({
|
|
329
296
|
type: String,
|
|
@@ -331,7 +298,7 @@ __decorate([
|
|
|
331
298
|
description: 'The ID of the NFT',
|
|
332
299
|
}),
|
|
333
300
|
__metadata("design:type", String)
|
|
334
|
-
],
|
|
301
|
+
], NftDocBase.prototype, "id", void 0);
|
|
335
302
|
__decorate([
|
|
336
303
|
(0, swagger_1.ApiProperty)({
|
|
337
304
|
type: Number,
|
|
@@ -339,7 +306,42 @@ __decorate([
|
|
|
339
306
|
description: 'The timestamp of the NFT last DB change',
|
|
340
307
|
}),
|
|
341
308
|
__metadata("design:type", Number)
|
|
342
|
-
],
|
|
309
|
+
], NftDocBase.prototype, "_ts", void 0);
|
|
310
|
+
class NftDoc extends NftDocBase {
|
|
311
|
+
}
|
|
312
|
+
exports.NftDoc = NftDoc;
|
|
313
|
+
__decorate([
|
|
314
|
+
(0, swagger_1.ApiProperty)({
|
|
315
|
+
type: String,
|
|
316
|
+
required: false,
|
|
317
|
+
description: 'The creator of the NFT',
|
|
318
|
+
}),
|
|
319
|
+
__metadata("design:type", String)
|
|
320
|
+
], NftDoc.prototype, "creator", void 0);
|
|
321
|
+
__decorate([
|
|
322
|
+
(0, swagger_1.ApiProperty)({
|
|
323
|
+
type: String,
|
|
324
|
+
required: false,
|
|
325
|
+
description: 'The current owner of the NFT',
|
|
326
|
+
}),
|
|
327
|
+
__metadata("design:type", String)
|
|
328
|
+
], NftDoc.prototype, "currentOwner", void 0);
|
|
329
|
+
__decorate([
|
|
330
|
+
(0, swagger_1.ApiProperty)({
|
|
331
|
+
type: String,
|
|
332
|
+
required: false,
|
|
333
|
+
description: 'The owner of the NFT',
|
|
334
|
+
}),
|
|
335
|
+
__metadata("design:type", String)
|
|
336
|
+
], NftDoc.prototype, "owner", void 0);
|
|
337
|
+
__decorate([
|
|
338
|
+
(0, swagger_1.ApiProperty)({
|
|
339
|
+
type: nft_sale_info_1.NftSaleInfo,
|
|
340
|
+
required: false,
|
|
341
|
+
description: 'The sale info of the NFT',
|
|
342
|
+
}),
|
|
343
|
+
__metadata("design:type", nft_sale_info_1.NftSaleInfo)
|
|
344
|
+
], NftDoc.prototype, "saleInfo", void 0);
|
|
343
345
|
class ExtraProperties {
|
|
344
346
|
}
|
|
345
347
|
exports.ExtraProperties = ExtraProperties;
|
|
@@ -357,12 +359,41 @@ __decorate([
|
|
|
357
359
|
}),
|
|
358
360
|
__metadata("design:type", Number)
|
|
359
361
|
], ExtraProperties.prototype, "level", void 0);
|
|
360
|
-
class NftProps extends
|
|
361
|
-
constructor(props) {
|
|
362
|
-
super(props);
|
|
363
|
-
}
|
|
362
|
+
class NftProps extends NftDocBase {
|
|
364
363
|
}
|
|
365
364
|
exports.NftProps = NftProps;
|
|
365
|
+
__decorate([
|
|
366
|
+
(0, swagger_1.ApiProperty)({
|
|
367
|
+
type: owner_dto_1.OwnerDto,
|
|
368
|
+
required: false,
|
|
369
|
+
description: 'The creator of the NFT',
|
|
370
|
+
}),
|
|
371
|
+
__metadata("design:type", owner_dto_1.OwnerDto)
|
|
372
|
+
], NftProps.prototype, "creator", void 0);
|
|
373
|
+
__decorate([
|
|
374
|
+
(0, swagger_1.ApiProperty)({
|
|
375
|
+
type: owner_dto_1.OwnerDto,
|
|
376
|
+
required: false,
|
|
377
|
+
description: 'The current owner of the NFT',
|
|
378
|
+
}),
|
|
379
|
+
__metadata("design:type", owner_dto_1.OwnerDto)
|
|
380
|
+
], NftProps.prototype, "currentOwner", void 0);
|
|
381
|
+
__decorate([
|
|
382
|
+
(0, swagger_1.ApiProperty)({
|
|
383
|
+
type: owner_dto_1.OwnerDto,
|
|
384
|
+
required: false,
|
|
385
|
+
description: 'The owner of the NFT',
|
|
386
|
+
}),
|
|
387
|
+
__metadata("design:type", owner_dto_1.OwnerDto)
|
|
388
|
+
], NftProps.prototype, "owner", void 0);
|
|
389
|
+
__decorate([
|
|
390
|
+
(0, swagger_1.ApiProperty)({
|
|
391
|
+
type: nft_sale_info_1.NftSaleInfoHydrated,
|
|
392
|
+
required: false,
|
|
393
|
+
description: 'The sale info of the NFT',
|
|
394
|
+
}),
|
|
395
|
+
__metadata("design:type", nft_sale_info_1.NftSaleInfoHydrated)
|
|
396
|
+
], NftProps.prototype, "saleInfo", void 0);
|
|
366
397
|
__decorate([
|
|
367
398
|
(0, swagger_1.ApiProperty)({
|
|
368
399
|
type: Number,
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { OwnerDto } from '../../../common/owner.dto';
|
|
2
2
|
import { XoxnoAuctionTypeString } from '../../../entities/xoxno-marketplace-sc/xoxno-auction-type.enum';
|
|
3
|
-
|
|
3
|
+
declare class NftSaleInfoBase {
|
|
4
4
|
auctionId: number;
|
|
5
5
|
seller: string;
|
|
6
|
-
currentWinner?: string | OwnerDto;
|
|
7
6
|
minBid: string;
|
|
8
7
|
maxBid: string;
|
|
9
8
|
currentBid?: string;
|
|
@@ -22,3 +21,10 @@ export declare class NftSaleInfo {
|
|
|
22
21
|
marketplace: string;
|
|
23
22
|
royalties?: number;
|
|
24
23
|
}
|
|
24
|
+
export declare class NftSaleInfo extends NftSaleInfoBase {
|
|
25
|
+
currentWinner?: string;
|
|
26
|
+
}
|
|
27
|
+
export declare class NftSaleInfoHydrated extends NftSaleInfoBase {
|
|
28
|
+
currentWinner?: OwnerDto;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -9,89 +9,81 @@ 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.NftSaleInfo = void 0;
|
|
12
|
+
exports.NftSaleInfoHydrated = exports.NftSaleInfo = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
14
|
const owner_dto_1 = require("../../../common/owner.dto");
|
|
15
15
|
const enums_1 = require("../../../common/enums");
|
|
16
16
|
const xoxno_auction_type_enum_1 = require("../../../entities/xoxno-marketplace-sc/xoxno-auction-type.enum");
|
|
17
|
-
class
|
|
17
|
+
class NftSaleInfoBase {
|
|
18
18
|
}
|
|
19
|
-
exports.NftSaleInfo = NftSaleInfo;
|
|
20
19
|
__decorate([
|
|
21
20
|
(0, swagger_1.ApiProperty)(),
|
|
22
21
|
__metadata("design:type", Number)
|
|
23
|
-
],
|
|
22
|
+
], NftSaleInfoBase.prototype, "auctionId", void 0);
|
|
24
23
|
__decorate([
|
|
25
24
|
(0, swagger_1.ApiProperty)(),
|
|
26
25
|
__metadata("design:type", String)
|
|
27
|
-
],
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, swagger_1.ApiProperty)({
|
|
30
|
-
required: false,
|
|
31
|
-
type: owner_dto_1.OwnerDto,
|
|
32
|
-
}),
|
|
33
|
-
__metadata("design:type", Object)
|
|
34
|
-
], NftSaleInfo.prototype, "currentWinner", void 0);
|
|
26
|
+
], NftSaleInfoBase.prototype, "seller", void 0);
|
|
35
27
|
__decorate([
|
|
36
28
|
(0, swagger_1.ApiProperty)(),
|
|
37
29
|
__metadata("design:type", String)
|
|
38
|
-
],
|
|
30
|
+
], NftSaleInfoBase.prototype, "minBid", void 0);
|
|
39
31
|
__decorate([
|
|
40
32
|
(0, swagger_1.ApiProperty)(),
|
|
41
33
|
__metadata("design:type", String)
|
|
42
|
-
],
|
|
34
|
+
], NftSaleInfoBase.prototype, "maxBid", void 0);
|
|
43
35
|
__decorate([
|
|
44
36
|
(0, swagger_1.ApiProperty)({ required: false }),
|
|
45
37
|
__metadata("design:type", String)
|
|
46
|
-
],
|
|
38
|
+
], NftSaleInfoBase.prototype, "currentBid", void 0);
|
|
47
39
|
__decorate([
|
|
48
40
|
(0, swagger_1.ApiProperty)(),
|
|
49
41
|
__metadata("design:type", Number)
|
|
50
|
-
],
|
|
42
|
+
], NftSaleInfoBase.prototype, "startTime", void 0);
|
|
51
43
|
__decorate([
|
|
52
44
|
(0, swagger_1.ApiProperty)(),
|
|
53
45
|
__metadata("design:type", Number)
|
|
54
|
-
],
|
|
46
|
+
], NftSaleInfoBase.prototype, "deadline", void 0);
|
|
55
47
|
__decorate([
|
|
56
48
|
(0, swagger_1.ApiProperty)(),
|
|
57
49
|
__metadata("design:type", String)
|
|
58
|
-
],
|
|
50
|
+
], NftSaleInfoBase.prototype, "paymentToken", void 0);
|
|
59
51
|
__decorate([
|
|
60
52
|
(0, swagger_1.ApiProperty)(),
|
|
61
53
|
__metadata("design:type", Number)
|
|
62
|
-
],
|
|
54
|
+
], NftSaleInfoBase.prototype, "paymentTokenNonce", void 0);
|
|
63
55
|
__decorate([
|
|
64
56
|
(0, swagger_1.ApiProperty)(),
|
|
65
57
|
__metadata("design:type", String)
|
|
66
|
-
],
|
|
58
|
+
], NftSaleInfoBase.prototype, "auctionType", void 0);
|
|
67
59
|
__decorate([
|
|
68
60
|
(0, swagger_1.ApiProperty)(),
|
|
69
61
|
__metadata("design:type", Number)
|
|
70
|
-
],
|
|
62
|
+
], NftSaleInfoBase.prototype, "timestamp", void 0);
|
|
71
63
|
__decorate([
|
|
72
64
|
(0, swagger_1.ApiProperty)(),
|
|
73
65
|
__metadata("design:type", Number)
|
|
74
|
-
],
|
|
66
|
+
], NftSaleInfoBase.prototype, "minBidShort", void 0);
|
|
75
67
|
__decorate([
|
|
76
68
|
(0, swagger_1.ApiProperty)({ required: false }),
|
|
77
69
|
__metadata("design:type", Number)
|
|
78
|
-
],
|
|
70
|
+
], NftSaleInfoBase.prototype, "minBidUsdValue", void 0);
|
|
79
71
|
__decorate([
|
|
80
72
|
(0, swagger_1.ApiProperty)(),
|
|
81
73
|
__metadata("design:type", Number)
|
|
82
|
-
],
|
|
74
|
+
], NftSaleInfoBase.prototype, "maxBidShort", void 0);
|
|
83
75
|
__decorate([
|
|
84
76
|
(0, swagger_1.ApiProperty)({ required: false }),
|
|
85
77
|
__metadata("design:type", Number)
|
|
86
|
-
],
|
|
78
|
+
], NftSaleInfoBase.prototype, "maxBidUsdValue", void 0);
|
|
87
79
|
__decorate([
|
|
88
80
|
(0, swagger_1.ApiProperty)({ required: false }),
|
|
89
81
|
__metadata("design:type", Number)
|
|
90
|
-
],
|
|
82
|
+
], NftSaleInfoBase.prototype, "currentBidShort", void 0);
|
|
91
83
|
__decorate([
|
|
92
84
|
(0, swagger_1.ApiProperty)(),
|
|
93
85
|
__metadata("design:type", Number)
|
|
94
|
-
],
|
|
86
|
+
], NftSaleInfoBase.prototype, "quantity", void 0);
|
|
95
87
|
__decorate([
|
|
96
88
|
(0, swagger_1.ApiProperty)({
|
|
97
89
|
enum: enums_1.MarketplacesOnSaleNames,
|
|
@@ -99,7 +91,7 @@ __decorate([
|
|
|
99
91
|
enumName: 'MarketplacesOnSaleNames',
|
|
100
92
|
}),
|
|
101
93
|
__metadata("design:type", String)
|
|
102
|
-
],
|
|
94
|
+
], NftSaleInfoBase.prototype, "marketplace", void 0);
|
|
103
95
|
__decorate([
|
|
104
96
|
(0, swagger_1.ApiProperty)({
|
|
105
97
|
example: 10,
|
|
@@ -107,4 +99,24 @@ __decorate([
|
|
|
107
99
|
required: false,
|
|
108
100
|
}),
|
|
109
101
|
__metadata("design:type", Number)
|
|
110
|
-
],
|
|
102
|
+
], NftSaleInfoBase.prototype, "royalties", void 0);
|
|
103
|
+
class NftSaleInfo extends NftSaleInfoBase {
|
|
104
|
+
}
|
|
105
|
+
exports.NftSaleInfo = NftSaleInfo;
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, swagger_1.ApiProperty)({
|
|
108
|
+
required: false,
|
|
109
|
+
type: String,
|
|
110
|
+
}),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], NftSaleInfo.prototype, "currentWinner", void 0);
|
|
113
|
+
class NftSaleInfoHydrated extends NftSaleInfoBase {
|
|
114
|
+
}
|
|
115
|
+
exports.NftSaleInfoHydrated = NftSaleInfoHydrated;
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, swagger_1.ApiProperty)({
|
|
118
|
+
required: false,
|
|
119
|
+
type: owner_dto_1.OwnerDto,
|
|
120
|
+
}),
|
|
121
|
+
__metadata("design:type", owner_dto_1.OwnerDto)
|
|
122
|
+
], NftSaleInfoHydrated.prototype, "currentWinner", void 0);
|