@xoxno/types 1.0.45 → 1.0.47
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,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
tokenIdentifier: string;
|
|
3
|
-
tokenNonce: number;
|
|
4
|
-
amount: string;
|
|
5
|
-
amountShort: number;
|
|
6
|
-
usdValue: number;
|
|
7
|
-
}
|
|
1
|
+
import { XoxnoStakingReward } from '../../cosmos-db/documents/staking/staking-pool-doc';
|
|
8
2
|
export declare class UserStakingSummaryDto {
|
|
9
3
|
collection: string;
|
|
10
4
|
stakedCount: number;
|
|
@@ -12,5 +6,6 @@ export declare class UserStakingSummaryDto {
|
|
|
12
6
|
isVerified: boolean;
|
|
13
7
|
profile: string;
|
|
14
8
|
banner: string;
|
|
15
|
-
|
|
9
|
+
poolIds: number[];
|
|
10
|
+
userReward: XoxnoStakingReward[];
|
|
16
11
|
}
|
|
@@ -9,37 +9,8 @@ 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.UserStakingSummaryDto =
|
|
12
|
+
exports.UserStakingSummaryDto = void 0;
|
|
13
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
14
|
class UserStakingSummaryDto {
|
|
44
15
|
}
|
|
45
16
|
exports.UserStakingSummaryDto = UserStakingSummaryDto;
|
|
@@ -73,11 +44,3 @@ __decorate([
|
|
|
73
44
|
}),
|
|
74
45
|
__metadata("design:type", String)
|
|
75
46
|
], 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);
|