@xoxno/types 1.0.192 → 1.0.194
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.
- package/dist/common/kusto/lending-overall-stats.d.ts +1 -1
- package/dist/common/kusto/lending-overall-stats.js +3 -0
- package/dist/common/kusto/user-trading-summary.d.ts +13 -15
- package/dist/common/kusto/user-trading-summary.js +91 -0
- package/dist/common/kusto/volume-graph.js +71 -0
- package/dist/common/kusto/wallet-stats.d.ts +1 -1
- package/dist/common/kusto/wallet-stats.js +254 -1
- package/dist/common/statistics.js +75 -4
- package/dist/cosmos-db/cosmos-db-paginated-response.dto.d.ts +7 -6
- package/dist/cosmos-db/cosmos-db-paginated-response.dto.js +14 -2
- package/dist/cosmos-db/documents/activity/nft-activity.doc.js +13 -0
- package/dist/cosmos-db/documents/chat/chat-message.doc.js +57 -0
- package/dist/cosmos-db/documents/chat/chat-read.dto.js +26 -0
- package/dist/cosmos-db/documents/chat/group-chat-profile.doc.js +85 -0
- package/dist/cosmos-db/documents/chat/user-block.doc.js +76 -0
- package/dist/cosmos-db/documents/chat/user-conversation.doc.js +115 -0
- package/dist/cosmos-db/documents/collection/collectionConfig.d.ts +1 -1
- package/dist/cosmos-db/documents/collection/collectionConfig.js +87 -1
- package/dist/cosmos-db/documents/collection/globalOffer.js +37 -0
- package/dist/cosmos-db/documents/collection/mintProfile.js +45 -2
- package/dist/cosmos-db/documents/external-payment/binance-hook.d.ts +4 -5
- package/dist/cosmos-db/documents/external-payment/binance-hook.js +216 -0
- package/dist/cosmos-db/documents/external-payment/external-payment.doc.js +218 -0
- package/dist/cosmos-db/documents/external-payment/stripe-charge-event.d.ts +71 -71
- package/dist/cosmos-db/documents/external-payment/stripe-charge-event.js +783 -0
- package/dist/cosmos-db/documents/external-payment/twispay-cart.d.ts +1 -1
- package/dist/cosmos-db/documents/external-payment/twispay-cart.js +75 -0
- package/dist/cosmos-db/documents/external-payment/twispay-customer.d.ts +1 -2
- package/dist/cosmos-db/documents/external-payment/twispay-customer.js +102 -0
- package/dist/cosmos-db/documents/external-payment/twispay-payment-form.d.ts +1 -1
- package/dist/cosmos-db/documents/external-payment/twispay-payment-form.js +98 -0
- package/dist/cosmos-db/documents/external-payment/twispay-transaction.d.ts +1 -1
- package/dist/cosmos-db/documents/external-payment/twispay-transaction.js +116 -1
- package/dist/cosmos-db/documents/lending/lending-account-profile.js +21 -0
- package/dist/cosmos-db/documents/lending/lending-emode-category-profile.doc.js +15 -0
- package/dist/cosmos-db/documents/lending/lending-market-profile.doc.js +21 -0
- package/dist/cosmos-db/documents/lending/lending-nft-attributes.js +49 -0
- package/dist/cosmos-db/documents/lending/lending-token-emode-profile.doc.js +21 -0
- package/dist/cosmos-db/documents/notification/notification.doc.js +108 -0
- package/dist/cosmos-db/documents/short/short-collection-info.doc.d.ts +2 -2
- package/dist/cosmos-db/documents/short/short-collection.doc.d.ts +2 -2
- package/dist/cosmos-db/documents/short/short-nft-collection-info.doc.d.ts +2 -2
- package/dist/cosmos-db/documents/staking/staking-delegator-doc.js +89 -0
- package/dist/cosmos-db/documents/staking/staking-pool-doc.js +274 -0
- package/dist/cosmos-db/documents/ticketing/event-guest.doc.js +24 -0
- package/dist/cosmos-db/documents/ticketing/event-invitation.doc.js +7 -0
- package/dist/cosmos-db/documents/ticketing/event-location.js +24 -0
- package/dist/cosmos-db/documents/ticketing/event-profile.doc.js +14 -0
- package/dist/cosmos-db/documents/ticketing/event-question.doc.js +7 -0
- package/dist/cosmos-db/documents/ticketing/event-referral-config.doc.js +7 -0
- package/dist/cosmos-db/documents/ticketing/event-referral.doc.js +7 -0
- package/dist/cosmos-db/documents/ticketing/event-stage-profile.doc.js +14 -0
- package/dist/cosmos-db/documents/ticketing/event-ticket-profile.doc.js +14 -0
- package/dist/cosmos-db/documents/ticketing/event-user-role.doc.js +16 -0
- package/dist/cosmos-db/documents/ticketing/event-voucher.doc.js +7 -0
- package/dist/cosmos-db/documents/token/nft-details.doc.js +18 -5
- package/dist/cosmos-db/documents/token/nft-extra-metadata.doc.js +59 -0
- package/dist/cosmos-db/documents/token/nft-metadata-attributes.js +40 -0
- package/dist/cosmos-db/documents/token/nft-metadata.js +9 -0
- package/dist/cosmos-db/documents/token/nft-sale-info.js +89 -17
- package/dist/cosmos-db/documents/token/sft-owner-doc.js +86 -0
- package/dist/cosmos-db/documents/user/user-favorite.doc.js +67 -0
- package/dist/cosmos-db/paginated-responses.d.ts +113 -15
- package/dist/cosmos-db/paginated-responses.js +43 -14
- package/dist/entities/airdrop/airdrop.dto.js +77 -0
- package/dist/entities/auth/login-request.dto.js +7 -0
- package/dist/entities/delegation-data/delegation-data-output.js +106 -0
- package/dist/entities/mvx-built-in/account-on-network.js +124 -0
- package/dist/entities/mvx-built-in/esdt-token.js +187 -0
- package/dist/entities/mvx-built-in/mvx-guardian.d.ts +5 -6
- package/dist/entities/mvx-built-in/mvx-guardian.js +67 -8
- package/dist/entities/notification-data/device-tag-storage.doc.js +79 -11
- package/dist/entities/notification-data/push-notification.doc.js +147 -25
- package/dist/entities/notification-data/tag-priority.d.ts +1 -1
- package/dist/entities/notification-data/tag-priority.js +57 -1
- package/dist/entities/search-data/filter-query.dto.js +32 -0
- package/dist/entities/staking-data/staking-creator.doc.js +38 -6
- package/dist/entities/staking-data/staking-explore.js +26 -5
- package/dist/entities/staking-data/user-staking-summary.dto.js +18 -0
- package/dist/entities/token-data/metrics.js +192 -38
- package/dist/entities/token-data/token-data.doc.js +99 -13
- package/dist/entities/transactions/smart-contract-result.js +138 -0
- package/dist/entities/transactions/transaction-detailed.js +44 -0
- package/dist/entities/transactions/transaction-log-event.js +52 -0
- package/dist/entities/transactions/transaction-log.js +51 -0
- package/dist/entities/transactions/transaction-operation.js +115 -0
- package/dist/entities/transactions/transaction-receipt.js +34 -0
- package/dist/entities/transactions/transaction.js +194 -0
- package/dist/entities/web2user-data/success.dto.js +18 -0
- package/dist/requests/bober-battle/analytics.js +187 -0
- package/dist/requests/collection/collection-attributes-map.js +123 -0
- package/dist/requests/collection/pinned-collections.d.ts +2 -2
- package/dist/requests/collection/shareholder.dto.js +30 -0
- package/dist/requests/lending/lending-indexes.dto.js +74 -0
- package/dist/requests/lending/lending-token-price.dto.js +18 -0
- package/dist/requests/nft-activity-data/nft-activity-data.js +168 -0
- package/dist/requests/nft-data/nft-doc.filter.js +2 -0
- package/dist/requests/nft-data/nft-offer-doc.filter.js +11 -0
- package/dist/requests/nft-data/sign-data.dto.js +10 -2
- package/dist/requests/user-data/token-inventory.js +10 -0
- package/package.json +1 -1
|
@@ -36,6 +36,9 @@ __decorate([
|
|
|
36
36
|
description: 'Total supplied amount',
|
|
37
37
|
example: 10000000,
|
|
38
38
|
}),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], LendingOverallStats.prototype, "supplied", void 0);
|
|
41
|
+
__decorate([
|
|
39
42
|
(0, swagger_1.ApiProperty)({
|
|
40
43
|
description: 'Total number of participants',
|
|
41
44
|
example: 100,
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
+
declare class UserTradingSummaryMin {
|
|
2
|
+
price: number;
|
|
3
|
+
txHash: string;
|
|
4
|
+
timestamp: number;
|
|
5
|
+
identifier: string;
|
|
6
|
+
}
|
|
7
|
+
declare class UserTradingSummaryPrice {
|
|
8
|
+
price: number;
|
|
9
|
+
}
|
|
1
10
|
export declare class UserTradingSummary {
|
|
2
11
|
count: number;
|
|
3
12
|
volume: number;
|
|
4
|
-
min:
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
timestamp: number;
|
|
8
|
-
identifier: string;
|
|
9
|
-
};
|
|
10
|
-
max: {
|
|
11
|
-
price: number;
|
|
12
|
-
txHash: string;
|
|
13
|
-
timestamp: number;
|
|
14
|
-
identifier: string;
|
|
15
|
-
};
|
|
16
|
-
avg: {
|
|
17
|
-
price: number;
|
|
18
|
-
};
|
|
13
|
+
min: UserTradingSummaryMin;
|
|
14
|
+
max: UserTradingSummaryMin;
|
|
15
|
+
avg: UserTradingSummaryPrice;
|
|
19
16
|
}
|
|
20
17
|
export type TradingSummaryActivityType = 'Purchase' | 'Sale';
|
|
18
|
+
export {};
|
|
@@ -1,6 +1,97 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
12
|
exports.UserTradingSummary = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class UserTradingSummaryMin {
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, swagger_1.ApiProperty)({
|
|
18
|
+
description: 'Price of the NFT transaction',
|
|
19
|
+
example: 5.5,
|
|
20
|
+
type: Number,
|
|
21
|
+
}),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], UserTradingSummaryMin.prototype, "price", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, swagger_1.ApiProperty)({
|
|
26
|
+
description: 'Transaction hash',
|
|
27
|
+
example: '0xabcdef123456789',
|
|
28
|
+
type: String,
|
|
29
|
+
}),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], UserTradingSummaryMin.prototype, "txHash", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({
|
|
34
|
+
description: 'Unix timestamp of the transaction',
|
|
35
|
+
example: 1672531200,
|
|
36
|
+
type: Number,
|
|
37
|
+
}),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], UserTradingSummaryMin.prototype, "timestamp", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({
|
|
42
|
+
description: 'NFT identifier',
|
|
43
|
+
example: 'COOL-1a2b3c-01',
|
|
44
|
+
type: String,
|
|
45
|
+
}),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], UserTradingSummaryMin.prototype, "identifier", void 0);
|
|
48
|
+
class UserTradingSummaryPrice {
|
|
49
|
+
}
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiProperty)({
|
|
52
|
+
description: 'Average price value',
|
|
53
|
+
example: 25.75,
|
|
54
|
+
type: Number,
|
|
55
|
+
}),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], UserTradingSummaryPrice.prototype, "price", void 0);
|
|
4
58
|
class UserTradingSummary {
|
|
5
59
|
}
|
|
6
60
|
exports.UserTradingSummary = UserTradingSummary;
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, swagger_1.ApiProperty)({
|
|
63
|
+
description: 'Total number of trades',
|
|
64
|
+
example: 150,
|
|
65
|
+
type: Number,
|
|
66
|
+
}),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], UserTradingSummary.prototype, "count", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, swagger_1.ApiProperty)({
|
|
71
|
+
description: 'Total trading volume',
|
|
72
|
+
example: 3862.5,
|
|
73
|
+
type: Number,
|
|
74
|
+
}),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], UserTradingSummary.prototype, "volume", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, swagger_1.ApiProperty)({
|
|
79
|
+
description: 'Details of the minimum priced trade',
|
|
80
|
+
type: UserTradingSummaryMin,
|
|
81
|
+
}),
|
|
82
|
+
__metadata("design:type", UserTradingSummaryMin)
|
|
83
|
+
], UserTradingSummary.prototype, "min", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, swagger_1.ApiProperty)({
|
|
86
|
+
description: 'Details of the maximum priced trade',
|
|
87
|
+
type: UserTradingSummaryMin,
|
|
88
|
+
}),
|
|
89
|
+
__metadata("design:type", UserTradingSummaryMin)
|
|
90
|
+
], UserTradingSummary.prototype, "max", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, swagger_1.ApiProperty)({
|
|
93
|
+
description: 'Average price information',
|
|
94
|
+
type: UserTradingSummaryPrice,
|
|
95
|
+
}),
|
|
96
|
+
__metadata("design:type", UserTradingSummaryPrice)
|
|
97
|
+
], UserTradingSummary.prototype, "avg", void 0);
|
|
@@ -15,6 +15,77 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
class VolumeGraph {
|
|
16
16
|
}
|
|
17
17
|
exports.VolumeGraph = VolumeGraph;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({
|
|
20
|
+
description: 'Marketplace identifier',
|
|
21
|
+
example: 'xoxno',
|
|
22
|
+
type: String,
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], VolumeGraph.prototype, "marketplace", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
|
+
description: 'Array of timestamps for the data points',
|
|
29
|
+
example: ['2024-01-01T00:00:00Z', '2024-01-02T00:00:00Z'],
|
|
30
|
+
type: [String],
|
|
31
|
+
isArray: true,
|
|
32
|
+
}),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], VolumeGraph.prototype, "timestamp", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, swagger_1.ApiProperty)({
|
|
37
|
+
description: 'Array of total EGLD volume values corresponding to timestamps',
|
|
38
|
+
example: [100.5, 125.75, 150.0],
|
|
39
|
+
type: [Number],
|
|
40
|
+
isArray: true,
|
|
41
|
+
}),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], VolumeGraph.prototype, "totalEgldVolume", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, swagger_1.ApiProperty)({
|
|
46
|
+
description: 'Array of total USD volume values corresponding to timestamps',
|
|
47
|
+
example: [5025.0, 6287.5, 7500.0],
|
|
48
|
+
type: [Number],
|
|
49
|
+
isArray: true,
|
|
50
|
+
}),
|
|
51
|
+
__metadata("design:type", Array)
|
|
52
|
+
], VolumeGraph.prototype, "totalUsdVolume", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, swagger_1.ApiProperty)({
|
|
55
|
+
description: 'Array of total trades count corresponding to timestamps',
|
|
56
|
+
example: [50, 65, 80],
|
|
57
|
+
type: [Number],
|
|
58
|
+
isArray: true,
|
|
59
|
+
}),
|
|
60
|
+
__metadata("design:type", Array)
|
|
61
|
+
], VolumeGraph.prototype, "totalTrades", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({
|
|
64
|
+
description: 'Array of floor prices corresponding to timestamps',
|
|
65
|
+
example: [1.5, 1.75, 2.0],
|
|
66
|
+
type: [Number],
|
|
67
|
+
isArray: true,
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", Array)
|
|
70
|
+
], VolumeGraph.prototype, "floorPrice", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({
|
|
73
|
+
description: 'Array of all-time high prices corresponding to timestamps',
|
|
74
|
+
example: [50.0, 55.0, 60.0],
|
|
75
|
+
type: [Number],
|
|
76
|
+
isArray: true,
|
|
77
|
+
}),
|
|
78
|
+
__metadata("design:type", Array)
|
|
79
|
+
], VolumeGraph.prototype, "athPrice", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, swagger_1.ApiProperty)({
|
|
82
|
+
description: 'Array of average prices corresponding to timestamps',
|
|
83
|
+
example: [10.5, 12.0, 15.5],
|
|
84
|
+
type: [Number],
|
|
85
|
+
isArray: true,
|
|
86
|
+
}),
|
|
87
|
+
__metadata("design:type", Array)
|
|
88
|
+
], VolumeGraph.prototype, "avgPrice", void 0);
|
|
18
89
|
class AnalyticsMarketplaceUniqueUsers {
|
|
19
90
|
}
|
|
20
91
|
exports.AnalyticsMarketplaceUniqueUsers = AnalyticsMarketplaceUniqueUsers;
|
|
@@ -1,7 +1,60 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WalletTradingStats = void 0;
|
|
12
|
+
exports.WalletTradingStats = exports.PriceData = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
4
14
|
const common_enum_1 = require("../../enums/common.enum");
|
|
15
|
+
class PriceData {
|
|
16
|
+
}
|
|
17
|
+
exports.PriceData = PriceData;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({
|
|
20
|
+
description: 'Price of the NFT in native token',
|
|
21
|
+
example: 10.5,
|
|
22
|
+
type: Number,
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], PriceData.prototype, "price", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
|
+
description: 'USD value of the NFT at the time of transaction',
|
|
29
|
+
example: 525.0,
|
|
30
|
+
type: Number,
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], PriceData.prototype, "usdValue", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, swagger_1.ApiProperty)({
|
|
36
|
+
description: 'Unix timestamp of the transaction',
|
|
37
|
+
example: 1672531200,
|
|
38
|
+
type: Number,
|
|
39
|
+
}),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], PriceData.prototype, "timestamp", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, swagger_1.ApiProperty)({
|
|
44
|
+
description: 'NFT identifier',
|
|
45
|
+
example: 'COOL-1a2b3c-01',
|
|
46
|
+
type: String,
|
|
47
|
+
}),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], PriceData.prototype, "identifier", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiProperty)({
|
|
52
|
+
description: 'Transaction hash',
|
|
53
|
+
example: '0xabcdef123456789',
|
|
54
|
+
type: String,
|
|
55
|
+
}),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], PriceData.prototype, "txHash", void 0);
|
|
5
58
|
class WalletTradingStats {
|
|
6
59
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
7
60
|
constructor(data) {
|
|
@@ -65,3 +118,203 @@ class WalletTradingStats {
|
|
|
65
118
|
}
|
|
66
119
|
}
|
|
67
120
|
exports.WalletTradingStats = WalletTradingStats;
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, swagger_1.ApiProperty)({
|
|
123
|
+
description: 'Wallet address',
|
|
124
|
+
example: 'erd1qqqqqqqqqqqqqpgqa0fsfshnff4n76jhcye6k7uvd7qacsq42jpsp6shh2',
|
|
125
|
+
type: String,
|
|
126
|
+
}),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], WalletTradingStats.prototype, "wallet", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, swagger_1.ApiProperty)({
|
|
131
|
+
description: 'Total trading volume in native token',
|
|
132
|
+
example: 1500.5,
|
|
133
|
+
type: Number,
|
|
134
|
+
}),
|
|
135
|
+
__metadata("design:type", Number)
|
|
136
|
+
], WalletTradingStats.prototype, "totalVolume", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, swagger_1.ApiProperty)({
|
|
139
|
+
description: 'Total number of trades executed',
|
|
140
|
+
example: 250,
|
|
141
|
+
type: Number,
|
|
142
|
+
}),
|
|
143
|
+
__metadata("design:type", Number)
|
|
144
|
+
], WalletTradingStats.prototype, "totalTrades", void 0);
|
|
145
|
+
__decorate([
|
|
146
|
+
(0, swagger_1.ApiProperty)({
|
|
147
|
+
description: 'Total number of unique collections traded',
|
|
148
|
+
example: 45,
|
|
149
|
+
type: Number,
|
|
150
|
+
}),
|
|
151
|
+
__metadata("design:type", Number)
|
|
152
|
+
], WalletTradingStats.prototype, "totalCollections", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, swagger_1.ApiProperty)({
|
|
155
|
+
description: 'Total number of unique NFTs traded',
|
|
156
|
+
example: 125,
|
|
157
|
+
type: Number,
|
|
158
|
+
}),
|
|
159
|
+
__metadata("design:type", Number)
|
|
160
|
+
], WalletTradingStats.prototype, "totalNfts", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, swagger_1.ApiProperty)({
|
|
163
|
+
description: 'Total number of unique trading partners',
|
|
164
|
+
example: 80,
|
|
165
|
+
type: Number,
|
|
166
|
+
}),
|
|
167
|
+
__metadata("design:type", Number)
|
|
168
|
+
], WalletTradingStats.prototype, "totalPartners", void 0);
|
|
169
|
+
__decorate([
|
|
170
|
+
(0, swagger_1.ApiProperty)({
|
|
171
|
+
description: 'Total volume spent as buyer in native token',
|
|
172
|
+
example: 800.25,
|
|
173
|
+
type: Number,
|
|
174
|
+
}),
|
|
175
|
+
__metadata("design:type", Number)
|
|
176
|
+
], WalletTradingStats.prototype, "buyerVolume", void 0);
|
|
177
|
+
__decorate([
|
|
178
|
+
(0, swagger_1.ApiProperty)({
|
|
179
|
+
description: 'Total number of buy trades',
|
|
180
|
+
example: 120,
|
|
181
|
+
type: Number,
|
|
182
|
+
}),
|
|
183
|
+
__metadata("design:type", Number)
|
|
184
|
+
], WalletTradingStats.prototype, "buyerTrades", void 0);
|
|
185
|
+
__decorate([
|
|
186
|
+
(0, swagger_1.ApiProperty)({
|
|
187
|
+
description: 'Total number of NFTs bought',
|
|
188
|
+
example: 65,
|
|
189
|
+
type: Number,
|
|
190
|
+
}),
|
|
191
|
+
__metadata("design:type", Number)
|
|
192
|
+
], WalletTradingStats.prototype, "buyerNfts", void 0);
|
|
193
|
+
__decorate([
|
|
194
|
+
(0, swagger_1.ApiProperty)({
|
|
195
|
+
description: 'Total number of collections bought from',
|
|
196
|
+
example: 25,
|
|
197
|
+
type: Number,
|
|
198
|
+
}),
|
|
199
|
+
__metadata("design:type", Number)
|
|
200
|
+
], WalletTradingStats.prototype, "buyerCollections", void 0);
|
|
201
|
+
__decorate([
|
|
202
|
+
(0, swagger_1.ApiProperty)({
|
|
203
|
+
description: 'Total number of unique sellers',
|
|
204
|
+
example: 40,
|
|
205
|
+
type: Number,
|
|
206
|
+
}),
|
|
207
|
+
__metadata("design:type", Number)
|
|
208
|
+
], WalletTradingStats.prototype, "buyerPartners", void 0);
|
|
209
|
+
__decorate([
|
|
210
|
+
(0, swagger_1.ApiProperty)({
|
|
211
|
+
description: 'Maximum price paid for an NFT',
|
|
212
|
+
example: 150.0,
|
|
213
|
+
type: Number,
|
|
214
|
+
}),
|
|
215
|
+
__metadata("design:type", Number)
|
|
216
|
+
], WalletTradingStats.prototype, "buyerMaxPrice", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, swagger_1.ApiProperty)({
|
|
219
|
+
description: 'Minimum price paid for an NFT',
|
|
220
|
+
example: 0.5,
|
|
221
|
+
type: Number,
|
|
222
|
+
}),
|
|
223
|
+
__metadata("design:type", Number)
|
|
224
|
+
], WalletTradingStats.prototype, "buyerMinPrice", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, swagger_1.ApiProperty)({
|
|
227
|
+
description: 'Details of the highest priced purchase',
|
|
228
|
+
type: PriceData,
|
|
229
|
+
nullable: true,
|
|
230
|
+
}),
|
|
231
|
+
__metadata("design:type", Object)
|
|
232
|
+
], WalletTradingStats.prototype, "buyerMaxPriceData", void 0);
|
|
233
|
+
__decorate([
|
|
234
|
+
(0, swagger_1.ApiProperty)({
|
|
235
|
+
description: 'Details of the lowest priced purchase',
|
|
236
|
+
type: PriceData,
|
|
237
|
+
nullable: true,
|
|
238
|
+
}),
|
|
239
|
+
__metadata("design:type", Object)
|
|
240
|
+
], WalletTradingStats.prototype, "buyerMinPriceData", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
(0, swagger_1.ApiProperty)({
|
|
243
|
+
description: 'Total volume earned as seller in native token',
|
|
244
|
+
example: 700.25,
|
|
245
|
+
type: Number,
|
|
246
|
+
}),
|
|
247
|
+
__metadata("design:type", Number)
|
|
248
|
+
], WalletTradingStats.prototype, "sellerVolume", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
(0, swagger_1.ApiProperty)({
|
|
251
|
+
description: 'Total number of sell trades',
|
|
252
|
+
example: 130,
|
|
253
|
+
type: Number,
|
|
254
|
+
}),
|
|
255
|
+
__metadata("design:type", Number)
|
|
256
|
+
], WalletTradingStats.prototype, "sellerTrades", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
(0, swagger_1.ApiProperty)({
|
|
259
|
+
description: 'Total number of NFTs sold',
|
|
260
|
+
example: 60,
|
|
261
|
+
type: Number,
|
|
262
|
+
}),
|
|
263
|
+
__metadata("design:type", Number)
|
|
264
|
+
], WalletTradingStats.prototype, "sellerNfts", void 0);
|
|
265
|
+
__decorate([
|
|
266
|
+
(0, swagger_1.ApiProperty)({
|
|
267
|
+
description: 'Total number of collections sold from',
|
|
268
|
+
example: 20,
|
|
269
|
+
type: Number,
|
|
270
|
+
}),
|
|
271
|
+
__metadata("design:type", Number)
|
|
272
|
+
], WalletTradingStats.prototype, "sellerCollections", void 0);
|
|
273
|
+
__decorate([
|
|
274
|
+
(0, swagger_1.ApiProperty)({
|
|
275
|
+
description: 'Total number of unique buyers',
|
|
276
|
+
example: 40,
|
|
277
|
+
type: Number,
|
|
278
|
+
}),
|
|
279
|
+
__metadata("design:type", Number)
|
|
280
|
+
], WalletTradingStats.prototype, "sellerPartners", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
(0, swagger_1.ApiProperty)({
|
|
283
|
+
description: 'Maximum price received for an NFT sale',
|
|
284
|
+
example: 200.0,
|
|
285
|
+
type: Number,
|
|
286
|
+
}),
|
|
287
|
+
__metadata("design:type", Number)
|
|
288
|
+
], WalletTradingStats.prototype, "sellerMaxPrice", void 0);
|
|
289
|
+
__decorate([
|
|
290
|
+
(0, swagger_1.ApiProperty)({
|
|
291
|
+
description: 'Minimum price received for an NFT sale',
|
|
292
|
+
example: 1.0,
|
|
293
|
+
type: Number,
|
|
294
|
+
}),
|
|
295
|
+
__metadata("design:type", Number)
|
|
296
|
+
], WalletTradingStats.prototype, "sellerMinPrice", void 0);
|
|
297
|
+
__decorate([
|
|
298
|
+
(0, swagger_1.ApiProperty)({
|
|
299
|
+
description: 'Details of the highest priced sale',
|
|
300
|
+
type: PriceData,
|
|
301
|
+
nullable: true,
|
|
302
|
+
}),
|
|
303
|
+
__metadata("design:type", Object)
|
|
304
|
+
], WalletTradingStats.prototype, "sellerMaxPriceData", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
(0, swagger_1.ApiProperty)({
|
|
307
|
+
description: 'Details of the lowest priced sale',
|
|
308
|
+
type: PriceData,
|
|
309
|
+
nullable: true,
|
|
310
|
+
}),
|
|
311
|
+
__metadata("design:type", Object)
|
|
312
|
+
], WalletTradingStats.prototype, "sellerMinPriceData", void 0);
|
|
313
|
+
__decorate([
|
|
314
|
+
(0, swagger_1.ApiProperty)({
|
|
315
|
+
description: 'Blockchain network for these statistics',
|
|
316
|
+
enum: common_enum_1.ActivityChain,
|
|
317
|
+
example: common_enum_1.ActivityChain.MVX,
|
|
318
|
+
}),
|
|
319
|
+
__metadata("design:type", String)
|
|
320
|
+
], WalletTradingStats.prototype, "chain", void 0);
|
|
@@ -15,20 +15,88 @@ class StatisticsTradeDataDto {
|
|
|
15
15
|
}
|
|
16
16
|
exports.StatisticsTradeDataDto = StatisticsTradeDataDto;
|
|
17
17
|
__decorate([
|
|
18
|
-
(0, swagger_1.ApiProperty)({
|
|
18
|
+
(0, swagger_1.ApiProperty)({
|
|
19
|
+
description: 'Daily trading volume in EGLD for this collection',
|
|
20
|
+
example: 0,
|
|
21
|
+
type: Number,
|
|
22
|
+
}),
|
|
19
23
|
__metadata("design:type", Number)
|
|
20
24
|
], StatisticsTradeDataDto.prototype, "dayEgldVolume", void 0);
|
|
21
25
|
__decorate([
|
|
22
|
-
(0, swagger_1.ApiProperty)({
|
|
26
|
+
(0, swagger_1.ApiProperty)({
|
|
27
|
+
description: 'Weekly trading volume in EGLD for this collection',
|
|
28
|
+
example: 116.67,
|
|
29
|
+
type: Number,
|
|
30
|
+
}),
|
|
23
31
|
__metadata("design:type", Number)
|
|
24
32
|
], StatisticsTradeDataDto.prototype, "weekEgldVolume", void 0);
|
|
25
33
|
__decorate([
|
|
26
|
-
(0, swagger_1.ApiProperty)({
|
|
34
|
+
(0, swagger_1.ApiProperty)({
|
|
35
|
+
description: 'Total all-time trading volume in EGLD for this collection',
|
|
36
|
+
example: 128123.25,
|
|
37
|
+
type: Number,
|
|
38
|
+
}),
|
|
27
39
|
__metadata("design:type", Number)
|
|
28
40
|
], StatisticsTradeDataDto.prototype, "totalEgldVolume", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({
|
|
43
|
+
description: 'Average price in EGLD for trades in this collection',
|
|
44
|
+
example: 25.5,
|
|
45
|
+
type: Number,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], StatisticsTradeDataDto.prototype, "averageEgldPrice", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({
|
|
51
|
+
description: 'All-time high price in EGLD for this collection',
|
|
52
|
+
example: 150.0,
|
|
53
|
+
type: Number,
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], StatisticsTradeDataDto.prototype, "athEgldPrice", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)({
|
|
59
|
+
description: 'Transaction hash of the all-time high price sale',
|
|
60
|
+
example: '0x1234567890abcdef',
|
|
61
|
+
type: String,
|
|
62
|
+
}),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], StatisticsTradeDataDto.prototype, "athTxHash", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, swagger_1.ApiProperty)({
|
|
67
|
+
description: 'Total number of trades for this collection',
|
|
68
|
+
example: 1500,
|
|
69
|
+
type: Number,
|
|
70
|
+
}),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], StatisticsTradeDataDto.prototype, "totalTrades", void 0);
|
|
29
73
|
class StatisticsMintDataDto {
|
|
30
74
|
}
|
|
31
75
|
exports.StatisticsMintDataDto = StatisticsMintDataDto;
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({
|
|
78
|
+
description: 'Total mint volume in EGLD for this collection',
|
|
79
|
+
example: 5000.0,
|
|
80
|
+
type: Number,
|
|
81
|
+
}),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], StatisticsMintDataDto.prototype, "totalMintEgldVolume", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, swagger_1.ApiProperty)({
|
|
86
|
+
description: 'Weekly mint volume in EGLD for this collection',
|
|
87
|
+
example: 250.0,
|
|
88
|
+
type: Number,
|
|
89
|
+
}),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], StatisticsMintDataDto.prototype, "weekMintEgldVolume", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiProperty)({
|
|
94
|
+
description: 'Daily mint volume in EGLD for this collection',
|
|
95
|
+
example: 50.0,
|
|
96
|
+
type: Number,
|
|
97
|
+
}),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], StatisticsMintDataDto.prototype, "dayMintEgldVolume", void 0);
|
|
32
100
|
class StatisticsOtherDto {
|
|
33
101
|
constructor(props) {
|
|
34
102
|
Object.assign(this, props);
|
|
@@ -66,7 +134,10 @@ __decorate([
|
|
|
66
134
|
__metadata("design:type", StatisticsOtherDto)
|
|
67
135
|
], StatisticsDto.prototype, "other", void 0);
|
|
68
136
|
__decorate([
|
|
69
|
-
(0, swagger_1.ApiProperty)({
|
|
137
|
+
(0, swagger_1.ApiProperty)({
|
|
138
|
+
type: StatisticsTradeDataDto,
|
|
139
|
+
description: 'Trading statistics for the collection including volume and price data',
|
|
140
|
+
}),
|
|
70
141
|
__metadata("design:type", StatisticsTradeDataDto)
|
|
71
142
|
], StatisticsDto.prototype, "tradeData", void 0);
|
|
72
143
|
__decorate([
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
export declare class CosmosPaginatedResponse<T> {
|
|
2
|
-
count: number | null;
|
|
3
|
-
hasMoreResults: boolean;
|
|
4
|
-
resources: T[];
|
|
5
|
-
constructor(resources: T[], count: number | null, hasMoreResults: boolean);
|
|
6
|
-
}
|
|
7
1
|
export declare class CosmosPaginatedSingleResponse<T> {
|
|
8
2
|
count: number | null;
|
|
9
3
|
hasMoreResults: boolean;
|
|
@@ -17,3 +11,10 @@ export declare function createCosmosPaginatedResponse<T>(type: new () => T): {
|
|
|
17
11
|
hasMoreResults: boolean;
|
|
18
12
|
};
|
|
19
13
|
};
|
|
14
|
+
export declare function createCosmosPaginatedSingleResponse<T>(type: new () => T): {
|
|
15
|
+
new (resources: T, count: number | null, hasMoreResults: boolean): {
|
|
16
|
+
resources: T;
|
|
17
|
+
count: number | null;
|
|
18
|
+
hasMoreResults: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -9,8 +9,9 @@ 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.CosmosPaginatedSingleResponse =
|
|
12
|
+
exports.CosmosPaginatedSingleResponse = void 0;
|
|
13
13
|
exports.createCosmosPaginatedResponse = createCosmosPaginatedResponse;
|
|
14
|
+
exports.createCosmosPaginatedSingleResponse = createCosmosPaginatedSingleResponse;
|
|
14
15
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
16
|
class CosmosPaginatedResponse {
|
|
16
17
|
constructor(resources, count, hasMoreResults) {
|
|
@@ -21,7 +22,6 @@ class CosmosPaginatedResponse {
|
|
|
21
22
|
this.hasMoreResults = hasMoreResults;
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
|
-
exports.CosmosPaginatedResponse = CosmosPaginatedResponse;
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, swagger_1.ApiProperty)({
|
|
27
27
|
description: 'Total number of documents',
|
|
@@ -91,3 +91,15 @@ function createCosmosPaginatedResponse(type) {
|
|
|
91
91
|
], PaginatedResponse.prototype, "resources", void 0);
|
|
92
92
|
return PaginatedResponse;
|
|
93
93
|
}
|
|
94
|
+
function createCosmosPaginatedSingleResponse(type) {
|
|
95
|
+
class PaginatedResponse extends CosmosPaginatedSingleResponse {
|
|
96
|
+
}
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, swagger_1.ApiProperty)({
|
|
99
|
+
description: 'List of documents',
|
|
100
|
+
type,
|
|
101
|
+
}),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], PaginatedResponse.prototype, "resources", void 0);
|
|
104
|
+
return PaginatedResponse;
|
|
105
|
+
}
|
|
@@ -15,6 +15,7 @@ const common_enum_1 = require("../../../enums/common.enum");
|
|
|
15
15
|
const event_source_enum_1 = require("../../../enums/event-source.enum");
|
|
16
16
|
const nft_activity_data_1 = require("../../../requests/nft-activity-data/nft-activity-data");
|
|
17
17
|
const nft_activity_type_enum_1 = require("../../../enums/nft-activity-type.enum");
|
|
18
|
+
const owner_dto_1 = require("../../../common/owner.dto");
|
|
18
19
|
class NftActivityDocBase {
|
|
19
20
|
constructor(props) {
|
|
20
21
|
this.chain = common_enum_1.ActivityChain.MVX;
|
|
@@ -131,3 +132,15 @@ class NftActivityDocHydrated extends NftActivityDocBase {
|
|
|
131
132
|
}
|
|
132
133
|
}
|
|
133
134
|
exports.NftActivityDocHydrated = NftActivityDocHydrated;
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, swagger_1.ApiProperty)(),
|
|
137
|
+
__metadata("design:type", owner_dto_1.OwnerDto)
|
|
138
|
+
], NftActivityDocHydrated.prototype, "from", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, swagger_1.ApiProperty)(),
|
|
141
|
+
__metadata("design:type", owner_dto_1.OwnerDto)
|
|
142
|
+
], NftActivityDocHydrated.prototype, "to", void 0);
|
|
143
|
+
__decorate([
|
|
144
|
+
(0, swagger_1.ApiProperty)(),
|
|
145
|
+
__metadata("design:type", nft_activity_data_1.NftActivityDataHydrated)
|
|
146
|
+
], NftActivityDocHydrated.prototype, "activityData", void 0);
|