@xoxno/types 1.0.7 → 1.0.8
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/enums.d.ts +0 -21
- package/dist/common/enums.js +1 -23
- package/dist/cosmos-db/cosmos-db-generic-filter.d.ts +8 -3
- package/dist/cosmos-db/documents/activity/nft-activity.doc.d.ts +3 -3
- package/dist/cosmos-db/documents/activity/nft-activity.doc.js +2 -2
- package/dist/cosmos-db/documents/notification/notification.doc.d.ts +1 -1
- package/dist/cosmos-db/documents/staking/staking-delegator-doc.d.ts +1 -1
- package/dist/cosmos-db/documents/staking/staking-delegator-doc.js +1 -1
- package/dist/cosmos-db/documents/staking/staking-pool-doc.d.ts +3 -3
- package/dist/cosmos-db/documents/staking/staking-pool-doc.js +1 -1
- package/dist/cosmos-db/documents/ticketing/event-guest-doc.filter.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.d.ts +1 -6
- package/dist/cosmos-db/documents/ticketing/event-guest-registration.dto.js +4 -26
- package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-invitation-doc.filter.js +5 -1
- package/dist/cosmos-db/documents/ticketing/event-profile-doc.filter.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-referral-config-filter.doc.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-referral-filter.doc.d.ts +3 -2
- package/dist/cosmos-db/documents/ticketing/event-voucher-filter.doc.d.ts +3 -3
- package/dist/cosmos-db/documents/token/nft-extra-metadata.doc.d.ts +1 -1
- package/dist/entities/bober-battle/battle-sc-endpoints.enum.d.ts +14 -0
- package/dist/entities/bober-battle/battle-sc-endpoints.enum.js +19 -0
- package/dist/entities/bober-battle/battle-sc-event-name.enum.d.ts +9 -0
- package/dist/entities/bober-battle/battle-sc-event-name.enum.js +14 -0
- package/dist/entities/bober-battle/game-type.d.ts +68 -0
- package/dist/entities/delegation-data/delegation-data-output.d.ts +10 -0
- package/dist/entities/delegation-data/delegation-data-output.js +2 -0
- package/dist/entities/delegation-data/provider-data.d.ts +37 -0
- package/dist/entities/delegation-data/provider-data.js +2 -0
- package/dist/entities/search-data/collection-data-search.type.d.ts +27 -0
- package/dist/entities/search-data/collection-data-search.type.js +2 -0
- package/dist/entities/search-data/event-guest-data-search.type.d.ts +12 -0
- package/dist/entities/search-data/event-guest-data-search.type.js +2 -0
- package/dist/entities/search-data/event-guest-invitation-search.type.d.ts +12 -0
- package/dist/entities/search-data/event-guest-invitation-search.type.js +2 -0
- package/dist/entities/search-data/filter-query.dto.d.ts +3 -0
- package/dist/entities/search-data/filter-query.dto.js +25 -0
- package/dist/entities/search-data/nft-data-search.type.d.ts +9 -0
- package/dist/entities/search-data/nft-data-search.type.js +2 -0
- package/dist/entities/search-data/search-index-name.enum.d.ts +8 -0
- package/dist/entities/search-data/search-index-name.enum.js +12 -0
- package/dist/entities/search-data/search.dto.d.ts +54 -0
- package/dist/entities/search-data/search.dto.js +193 -0
- package/dist/entities/search-data/user-data-search.type.d.ts +21 -0
- package/dist/entities/search-data/user-data-search.type.js +2 -0
- package/dist/entities/staking-data/owned-collections.dto.d.ts +4 -0
- package/dist/entities/staking-data/owned-collections.dto.js +35 -0
- package/dist/entities/staking-data/owned-services.dto.d.ts +11 -0
- package/dist/entities/staking-data/owned-services.dto.js +40 -0
- package/dist/entities/staking-data/staking-creator.doc.js +54 -0
- package/dist/entities/staking-data/staking-explore.d.ts +9 -0
- package/dist/entities/staking-data/staking-explore.js +41 -0
- package/dist/entities/staking-data/staking-summary.dto.d.ts +5 -0
- package/dist/entities/staking-data/staking-summary.dto.js +133 -0
- package/dist/entities/staking-data/user-staking-summary.dto.d.ts +16 -0
- package/dist/entities/staking-data/user-staking-summary.dto.js +83 -0
- package/dist/entities/token-data/token.dto.d.ts +15 -0
- package/dist/entities/token-data/token.dto.js +96 -0
- package/dist/entities/token-data/xoxno-liquid-stats.dto.d.ts +14 -0
- package/dist/entities/token-data/xoxno-liquid-stats.dto.js +95 -0
- package/dist/index.d.ts +88 -114
- package/dist/index.js +88 -126
- package/dist/requests/collection/collection-mint-profile.filter.d.ts +2 -1
- package/dist/requests/collection/collection-offers.filter.d.ts +3 -2
- package/dist/requests/collection/collection-stats.filter.d.ts +3 -2
- package/dist/requests/collection/query-activity.d.ts +1 -1
- package/dist/requests/lending/lending-market-profile.filter.d.ts +3 -2
- package/dist/requests/nft-activity-data/nft-activity.filter.d.ts +3 -2
- package/dist/requests/nft-data/nft-doc.filter.d.ts +3 -2
- package/dist/requests/nft-data/nft-offer-doc.filter.d.ts +3 -2
- package/package.json +2 -2
- package/dist/common/kusto/trading-stats.d.ts +0 -28
- package/dist/common/kusto/trading-stats.js +0 -35
- package/dist/cosmos-db/documents/activity/event-source.enum.d.ts +0 -15
- package/dist/cosmos-db/documents/activity/event-source.enum.js +0 -19
- package/dist/cosmos-db/documents/activity/nft-activity-data.d.ts +0 -23
- package/dist/cosmos-db/documents/activity/nft-activity-type.enum.d.ts +0 -28
- package/dist/cosmos-db/documents/activity/nft-activity-type.enum.js +0 -36
- package/dist/cosmos-db/documents/staking/staking-creator.js +0 -13
- package/dist/cosmos-db/documents/token/nft-extra-attributes.type.d.ts +0 -3
- package/dist/cosmos-db/documents/token/nft-extra-attributes.type.js +0 -7
- package/dist/entities/token-data/known-mvx-tokens.enum.d.ts +0 -34
- package/dist/entities/token-data/known-mvx-tokens.enum.js +0 -32
- /package/dist/{cosmos-db/documents/activity/nft-activity-data.js → entities/bober-battle/game-type.js} +0 -0
- /package/dist/{cosmos-db/documents/staking/staking-creator.d.ts → entities/staking-data/staking-creator.doc.d.ts} +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-data-type.enum.d.ts +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-data-type.enum.js +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-issuing-type-string.enum.d.ts +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-issuing-type-string.enum.js +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-pool-type-string.enum.d.ts +0 -0
- /package/dist/{cosmos-db/documents/staking → entities/staking-data}/staking-pool-type-string.enum.js +0 -0
|
@@ -0,0 +1,133 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.StakingPostDTO = void 0;
|
|
13
|
+
// file: dtos/staking-summary.dto.ts
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const staking_pool_doc_1 = require("../../cosmos-db/documents/staking/staking-pool-doc");
|
|
16
|
+
class Reward {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({ description: 'Token identifier', example: 'RARE-99e8b0' }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], Reward.prototype, "tokenIdentifier", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, swagger_1.ApiProperty)({ description: 'Token nonce', example: 0 }),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], Reward.prototype, "tokenNonce", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({
|
|
28
|
+
description: 'Reward balance',
|
|
29
|
+
example: '322605500000000000000000',
|
|
30
|
+
}),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], Reward.prototype, "rewardBalance", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)({ description: 'Short reward balance', example: 322605.5 }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], Reward.prototype, "rewardBalanceShort", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({ description: 'Reward per epoch short', example: 8000 }),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], Reward.prototype, "rewardPerEpochShort", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)({ description: 'Reward per day per NFT', example: 1 }),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], Reward.prototype, "rewardPerDayPerNft", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({ description: 'USD value', example: 27.64023234925034 }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], Reward.prototype, "usdValue", void 0);
|
|
49
|
+
// export class StakingSummary {
|
|
50
|
+
// @ApiProperty({ description: 'Pool ID', example: 3 })
|
|
51
|
+
// poolId: number;
|
|
52
|
+
// @ApiProperty({ description: 'Pool name', example: 'SRB - MiceCity' })
|
|
53
|
+
// name: string;
|
|
54
|
+
// @ApiProperty({
|
|
55
|
+
// description: 'Pool description',
|
|
56
|
+
// example: 'The largest staking pool',
|
|
57
|
+
// })
|
|
58
|
+
// description?: string;
|
|
59
|
+
// @ApiProperty({ description: 'Staking enabled', example: true })
|
|
60
|
+
// stakingEnabled: boolean;
|
|
61
|
+
// @ApiProperty({
|
|
62
|
+
// description: 'Profile picture URL',
|
|
63
|
+
// example:
|
|
64
|
+
// 'https://media.xoxno.com/stakingpools/3/stakingPoolPicture_3.webp?_ts=1716838395',
|
|
65
|
+
// })
|
|
66
|
+
// profile: string;
|
|
67
|
+
// @ApiProperty({
|
|
68
|
+
// description: 'Collection identifiers',
|
|
69
|
+
// type: String,
|
|
70
|
+
// isArray: true,
|
|
71
|
+
// example: ['MICE-a0c447', 'SRB-61daf7'],
|
|
72
|
+
// })
|
|
73
|
+
// collection: string[];
|
|
74
|
+
// @ApiProperty({ description: 'Pool staked count', example: 5895 })
|
|
75
|
+
// poolStakedCount: number;
|
|
76
|
+
// @ApiProperty({ description: 'User staked count', example: 0 })
|
|
77
|
+
// userStakedCount: number;
|
|
78
|
+
// @ApiProperty({ description: 'Delegator count', example: 267 })
|
|
79
|
+
// delegatorCount: number;
|
|
80
|
+
// @ApiProperty({ description: 'Reward duration in days', example: 63 })
|
|
81
|
+
// rewardDuration: number;
|
|
82
|
+
// @ApiProperty({
|
|
83
|
+
// description: 'Pool reward details',
|
|
84
|
+
// type: Reward,
|
|
85
|
+
// isArray: true,
|
|
86
|
+
// })
|
|
87
|
+
// poolReward: Reward[];
|
|
88
|
+
// @ApiProperty({
|
|
89
|
+
// description: 'User reward details',
|
|
90
|
+
// type: Reward,
|
|
91
|
+
// isArray: true,
|
|
92
|
+
// })
|
|
93
|
+
// userReward: Reward[];
|
|
94
|
+
// @ApiProperty({ description: 'Pool type', example: 'Duo' })
|
|
95
|
+
// poolType: string;
|
|
96
|
+
// @ApiProperty({ description: 'Issuing type', example: 'Fixed' })
|
|
97
|
+
// issuingType: string;
|
|
98
|
+
// @ApiProperty({ description: 'Unbound period in days', example: 0 })
|
|
99
|
+
// unBoundPeriod: number;
|
|
100
|
+
// @ApiProperty({ description: 'Has unbound period', example: false })
|
|
101
|
+
// hasUnboundPeriod: boolean;
|
|
102
|
+
// @ApiProperty({ description: 'Max pool limit', example: 16000 })
|
|
103
|
+
// maxPoolLimit: number;
|
|
104
|
+
// @ApiProperty({ description: 'Has max wallet limit', example: true })
|
|
105
|
+
// hasMaxWalletLimit: boolean;
|
|
106
|
+
// @ApiProperty({ description: 'Max wallet limit', example: 8000 })
|
|
107
|
+
// maxWalletLimit: number;
|
|
108
|
+
// @ApiProperty({ description: 'Start epoch', example: 1381 })
|
|
109
|
+
// startEpoch: number;
|
|
110
|
+
// @ApiProperty({ description: 'End epoch', example: 1444 })
|
|
111
|
+
// endEpoch: number;
|
|
112
|
+
// @ApiProperty({
|
|
113
|
+
// description: 'Pool owner address',
|
|
114
|
+
// example: 'erd13sj3r6xuh708nhv6t5tqquznwcve4nhaghwdz9lac0zpmw0qe0hqysg4w6',
|
|
115
|
+
// })
|
|
116
|
+
// owner: string;
|
|
117
|
+
// @ApiProperty({ description: 'Current epoch', example: 1442 })
|
|
118
|
+
// currentEpoch: number;
|
|
119
|
+
// @ApiProperty({ description: 'Is active flag', example: true })
|
|
120
|
+
// isActive: boolean;
|
|
121
|
+
// @ApiProperty({ description: 'Days left for staking', example: 2 })
|
|
122
|
+
// daysLeft: number;
|
|
123
|
+
// @ApiProperty({ description: 'Cut fee percentage', example: 0 })
|
|
124
|
+
// cutFee: number;
|
|
125
|
+
// @ApiProperty({ description: 'Percentage filled', example: 36.84375 })
|
|
126
|
+
// percentageFilled: number;
|
|
127
|
+
// }
|
|
128
|
+
class StakingPostDTO extends (0, swagger_1.PickType)(staking_pool_doc_1.StakingSummary, [
|
|
129
|
+
'name',
|
|
130
|
+
'description',
|
|
131
|
+
]) {
|
|
132
|
+
}
|
|
133
|
+
exports.StakingPostDTO = StakingPostDTO;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class RewardDto {
|
|
2
|
+
tokenIdentifier: string;
|
|
3
|
+
tokenNonce: number;
|
|
4
|
+
amount: string;
|
|
5
|
+
amountShort: number;
|
|
6
|
+
usdValue: number;
|
|
7
|
+
}
|
|
8
|
+
export declare class UserStakingSummaryDto {
|
|
9
|
+
collection: string;
|
|
10
|
+
stakedCount: number;
|
|
11
|
+
name: string;
|
|
12
|
+
isVerified: boolean;
|
|
13
|
+
profile: string;
|
|
14
|
+
banner: string;
|
|
15
|
+
reward: RewardDto[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UserStakingSummaryDto = exports.RewardDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class RewardDto {
|
|
15
|
+
}
|
|
16
|
+
exports.RewardDto = RewardDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)({ description: 'Token identifier', example: 'WXMEX-794dbd' }),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], RewardDto.prototype, "tokenIdentifier", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)({ description: 'Token nonce', example: 0 }),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], RewardDto.prototype, "tokenNonce", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({
|
|
27
|
+
description: 'Amount of reward',
|
|
28
|
+
example: '140649439520333680917622',
|
|
29
|
+
}),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], RewardDto.prototype, "amount", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({ description: 'Short amount of reward', example: 140649.4395 }),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], RewardDto.prototype, "amountShort", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, swagger_1.ApiProperty)({
|
|
38
|
+
description: 'USD value of reward',
|
|
39
|
+
example: 0.6295776701542604,
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", Number)
|
|
42
|
+
], RewardDto.prototype, "usdValue", void 0);
|
|
43
|
+
class UserStakingSummaryDto {
|
|
44
|
+
}
|
|
45
|
+
exports.UserStakingSummaryDto = UserStakingSummaryDto;
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiProperty)({ description: 'Collection identifier', example: 'MICE-a0c447' }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], UserStakingSummaryDto.prototype, "collection", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, swagger_1.ApiProperty)({ description: 'Number of staked items', example: 21 }),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], UserStakingSummaryDto.prototype, "stakedCount", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, swagger_1.ApiProperty)({ description: 'Name of the collection', example: 'MiceCity' }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], UserStakingSummaryDto.prototype, "name", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, swagger_1.ApiProperty)({ description: 'Verification status', example: true }),
|
|
60
|
+
__metadata("design:type", Boolean)
|
|
61
|
+
], UserStakingSummaryDto.prototype, "isVerified", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, swagger_1.ApiProperty)({
|
|
64
|
+
description: 'Profile image URL',
|
|
65
|
+
example: 'https://media.xoxno.com/collectionprofile/MICE-a0c447/profilePicture.webp?ts=1679309756',
|
|
66
|
+
}),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], UserStakingSummaryDto.prototype, "profile", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, swagger_1.ApiProperty)({
|
|
71
|
+
description: 'Banner image URL',
|
|
72
|
+
example: 'https://media.xoxno.com/collectionprofile/MICE-a0c447/profilebanner.webp',
|
|
73
|
+
}),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], UserStakingSummaryDto.prototype, "banner", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, swagger_1.ApiProperty)({
|
|
78
|
+
type: RewardDto,
|
|
79
|
+
isArray: true,
|
|
80
|
+
description: 'Rewards information',
|
|
81
|
+
}),
|
|
82
|
+
__metadata("design:type", Array)
|
|
83
|
+
], UserStakingSummaryDto.prototype, "reward", void 0);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class TokenDocDto {
|
|
2
|
+
id?: string;
|
|
3
|
+
identifier: string;
|
|
4
|
+
collection?: string;
|
|
5
|
+
dataType: string;
|
|
6
|
+
decimals: number;
|
|
7
|
+
name: string;
|
|
8
|
+
type: string;
|
|
9
|
+
category: string[];
|
|
10
|
+
svgUrl: string;
|
|
11
|
+
pngUrl: string;
|
|
12
|
+
ticker: string;
|
|
13
|
+
_ts?: number;
|
|
14
|
+
usdPrice: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.TokenDocDto = void 0;
|
|
13
|
+
// file: dtos/token.dto.ts
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
class TokenDocDto {
|
|
16
|
+
}
|
|
17
|
+
exports.TokenDocDto = TokenDocDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({
|
|
20
|
+
description: 'ID of the token',
|
|
21
|
+
example: 'EGLD',
|
|
22
|
+
required: false,
|
|
23
|
+
}),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], TokenDocDto.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)({ description: 'Identifier of the token', example: 'EGLD' }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], TokenDocDto.prototype, "identifier", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, swagger_1.ApiProperty)({
|
|
32
|
+
description: 'Collection of the token',
|
|
33
|
+
example: 'FungibleTokenInfo',
|
|
34
|
+
required: false,
|
|
35
|
+
}),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], TokenDocDto.prototype, "collection", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, swagger_1.ApiProperty)({
|
|
40
|
+
description: 'Data type of the token',
|
|
41
|
+
example: 'fungibleTokenProfile',
|
|
42
|
+
}),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], TokenDocDto.prototype, "dataType", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)({ description: 'Decimals of the token', example: 18 }),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], TokenDocDto.prototype, "decimals", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)({ description: 'Name of the token', example: 'EGLD' }),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], TokenDocDto.prototype, "name", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, swagger_1.ApiProperty)({ description: 'Type of the token', example: 'FungibleESDT' }),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], TokenDocDto.prototype, "type", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)({
|
|
59
|
+
description: 'Categories of the token',
|
|
60
|
+
example: ['all', 'trade', 'staking', 'minting', 'p2p'],
|
|
61
|
+
}),
|
|
62
|
+
__metadata("design:type", Array)
|
|
63
|
+
], TokenDocDto.prototype, "category", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, swagger_1.ApiProperty)({
|
|
66
|
+
description: 'SVG URL of the token logo',
|
|
67
|
+
example: 'https://media.xoxno.com/tokens/EGLD/logo.svg',
|
|
68
|
+
}),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], TokenDocDto.prototype, "svgUrl", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, swagger_1.ApiProperty)({
|
|
73
|
+
description: 'PNG URL of the token logo',
|
|
74
|
+
example: 'https://media.xoxno.com/tokens/EGLD/logo.png',
|
|
75
|
+
}),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], TokenDocDto.prototype, "pngUrl", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, swagger_1.ApiProperty)({ description: 'Ticker of the token', example: 'EGLD' }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], TokenDocDto.prototype, "ticker", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, swagger_1.ApiProperty)({
|
|
84
|
+
description: 'Timestamp',
|
|
85
|
+
example: 1705933418,
|
|
86
|
+
required: false,
|
|
87
|
+
}),
|
|
88
|
+
__metadata("design:type", Number)
|
|
89
|
+
], TokenDocDto.prototype, "_ts", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, swagger_1.ApiProperty)({
|
|
92
|
+
description: 'USD price of the token',
|
|
93
|
+
example: 35.70543073773239,
|
|
94
|
+
}),
|
|
95
|
+
__metadata("design:type", Number)
|
|
96
|
+
], TokenDocDto.prototype, "usdPrice", void 0);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { RateType } from './metrics';
|
|
2
|
+
export declare class XoxnoLiquidStatsDto {
|
|
3
|
+
participants: number;
|
|
4
|
+
totalRewards: number;
|
|
5
|
+
totalStaked: number;
|
|
6
|
+
yearlyAPR: number;
|
|
7
|
+
apy?: number;
|
|
8
|
+
totalRewardsUsdValue: number;
|
|
9
|
+
totalStakedUsdValue: number;
|
|
10
|
+
rateInfo: RateType;
|
|
11
|
+
serviceFee: number;
|
|
12
|
+
instantUnstake: string;
|
|
13
|
+
instantPendingUnstake: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.XoxnoLiquidStatsDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const metrics_1 = require("./metrics");
|
|
15
|
+
class XoxnoLiquidStatsDto {
|
|
16
|
+
}
|
|
17
|
+
exports.XoxnoLiquidStatsDto = XoxnoLiquidStatsDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, swagger_1.ApiProperty)({
|
|
20
|
+
description: 'Number of protocol participants',
|
|
21
|
+
example: 270,
|
|
22
|
+
}),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], XoxnoLiquidStatsDto.prototype, "participants", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)({
|
|
27
|
+
description: 'Total rewards awarded',
|
|
28
|
+
example: 768.42,
|
|
29
|
+
}),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], XoxnoLiquidStatsDto.prototype, "totalRewards", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)({
|
|
34
|
+
description: 'Total staked amount',
|
|
35
|
+
example: 785386.47,
|
|
36
|
+
}),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], XoxnoLiquidStatsDto.prototype, "totalStaked", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, swagger_1.ApiProperty)({
|
|
41
|
+
description: 'Yearly APR',
|
|
42
|
+
example: 13.07,
|
|
43
|
+
}),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], XoxnoLiquidStatsDto.prototype, "yearlyAPR", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, swagger_1.ApiProperty)({
|
|
48
|
+
description: 'Yearly APY',
|
|
49
|
+
example: 13.07,
|
|
50
|
+
required: false,
|
|
51
|
+
}),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], XoxnoLiquidStatsDto.prototype, "apy", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, swagger_1.ApiProperty)({
|
|
56
|
+
description: 'Total rewards as USD value',
|
|
57
|
+
example: 171.65,
|
|
58
|
+
}),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], XoxnoLiquidStatsDto.prototype, "totalRewardsUsdValue", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, swagger_1.ApiProperty)({
|
|
63
|
+
description: 'Total staked amount as USD value',
|
|
64
|
+
example: 140274.99,
|
|
65
|
+
}),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], XoxnoLiquidStatsDto.prototype, "totalStakedUsdValue", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, swagger_1.ApiProperty)({
|
|
70
|
+
description: 'Exchange rate information',
|
|
71
|
+
type: metrics_1.RateType,
|
|
72
|
+
}),
|
|
73
|
+
__metadata("design:type", metrics_1.RateType)
|
|
74
|
+
], XoxnoLiquidStatsDto.prototype, "rateInfo", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, swagger_1.ApiProperty)({
|
|
77
|
+
description: 'Service fee',
|
|
78
|
+
example: 0,
|
|
79
|
+
}),
|
|
80
|
+
__metadata("design:type", Number)
|
|
81
|
+
], XoxnoLiquidStatsDto.prototype, "serviceFee", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, swagger_1.ApiProperty)({
|
|
84
|
+
description: 'Amount available for instant unstake',
|
|
85
|
+
example: 0,
|
|
86
|
+
}),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], XoxnoLiquidStatsDto.prototype, "instantUnstake", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, swagger_1.ApiProperty)({
|
|
91
|
+
description: 'Amount pending for unstake',
|
|
92
|
+
example: 0,
|
|
93
|
+
}),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], XoxnoLiquidStatsDto.prototype, "instantPendingUnstake", void 0);
|