@xoxno/types 1.0.253 → 1.0.255
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.
|
@@ -35,16 +35,19 @@ __decorate([
|
|
|
35
35
|
], EgldOrEsdtTokenPayment.prototype, "amount", void 0);
|
|
36
36
|
__decorate([
|
|
37
37
|
(0, swagger_1.ApiProperty)({ example: 0, required: false, description: 'Short amount' }),
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
39
|
(0, class_validator_1.IsInt)(),
|
|
39
40
|
__metadata("design:type", Number)
|
|
40
41
|
], EgldOrEsdtTokenPayment.prototype, "amountShort", void 0);
|
|
41
42
|
__decorate([
|
|
42
43
|
(0, swagger_1.ApiProperty)({ example: 0, required: false, description: 'USD value' }),
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
45
|
(0, class_validator_1.IsInt)(),
|
|
44
46
|
__metadata("design:type", Number)
|
|
45
47
|
], EgldOrEsdtTokenPayment.prototype, "usdValue", void 0);
|
|
46
48
|
__decorate([
|
|
47
49
|
(0, swagger_1.ApiProperty)({ example: 0, required: false, description: 'Decimals' }),
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
51
|
(0, class_validator_1.IsInt)(),
|
|
49
52
|
__metadata("design:type", Number)
|
|
50
53
|
], EgldOrEsdtTokenPayment.prototype, "decimals", void 0);
|
package/dist/index.d.ts
CHANGED
|
@@ -190,6 +190,7 @@ export * from './requests/collection/listings';
|
|
|
190
190
|
export * from './requests/collection/pinned-collections';
|
|
191
191
|
export * from './requests/collection/ranks';
|
|
192
192
|
export * from './requests/collection/shareholder.dto';
|
|
193
|
+
export * from './requests/lending/hatom-info.dto';
|
|
193
194
|
export * from './requests/lending/lending-indexes.dto';
|
|
194
195
|
export * from './requests/lending/lending-market-profile.filter';
|
|
195
196
|
export * from './requests/lending/lending-token-price.dto';
|
package/dist/index.js
CHANGED
|
@@ -276,6 +276,7 @@ __exportStar(require("./requests/collection/listings"), exports);
|
|
|
276
276
|
__exportStar(require("./requests/collection/pinned-collections"), exports);
|
|
277
277
|
__exportStar(require("./requests/collection/ranks"), exports);
|
|
278
278
|
__exportStar(require("./requests/collection/shareholder.dto"), exports);
|
|
279
|
+
__exportStar(require("./requests/lending/hatom-info.dto"), exports);
|
|
279
280
|
__exportStar(require("./requests/lending/lending-indexes.dto"), exports);
|
|
280
281
|
__exportStar(require("./requests/lending/lending-market-profile.filter"), exports);
|
|
281
282
|
__exportStar(require("./requests/lending/lending-token-price.dto"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare class UserMarketInfo {
|
|
2
|
+
address: string;
|
|
3
|
+
token: string;
|
|
4
|
+
collateral: string;
|
|
5
|
+
collateral_egld: string;
|
|
6
|
+
collateralEgldShort: number;
|
|
7
|
+
collateralUsd: number;
|
|
8
|
+
collateral_htoken: string;
|
|
9
|
+
collateralHtokenShort: number;
|
|
10
|
+
collateralShort: number;
|
|
11
|
+
borrow: string;
|
|
12
|
+
borrow_egld: string;
|
|
13
|
+
borrowUsd: number;
|
|
14
|
+
borrowEgldShort: number;
|
|
15
|
+
borrowShort: number;
|
|
16
|
+
totalPositionUsd: number;
|
|
17
|
+
totalPositionEgld: number;
|
|
18
|
+
totalPosition: number;
|
|
19
|
+
dominance: number;
|
|
20
|
+
dominanceBorrow: number;
|
|
21
|
+
fx: string;
|
|
22
|
+
fxShort: number;
|
|
23
|
+
}
|
|
24
|
+
export declare class UserInfo {
|
|
25
|
+
collateral: string;
|
|
26
|
+
collateralShort: number;
|
|
27
|
+
collateralUsd: number;
|
|
28
|
+
borrow: string;
|
|
29
|
+
borrowShort: number;
|
|
30
|
+
borrowUsd: number;
|
|
31
|
+
health: string;
|
|
32
|
+
healthPercentage: number;
|
|
33
|
+
markets: UserMarketInfo[];
|
|
34
|
+
}
|
|
@@ -0,0 +1,139 @@
|
|
|
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.UserInfo = exports.UserMarketInfo = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
class UserMarketInfo {
|
|
15
|
+
}
|
|
16
|
+
exports.UserMarketInfo = UserMarketInfo;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], UserMarketInfo.prototype, "address", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, swagger_1.ApiProperty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], UserMarketInfo.prototype, "token", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, swagger_1.ApiProperty)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UserMarketInfo.prototype, "collateral", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, swagger_1.ApiProperty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], UserMarketInfo.prototype, "collateral_egld", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, swagger_1.ApiProperty)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], UserMarketInfo.prototype, "collateralEgldShort", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)(),
|
|
39
|
+
__metadata("design:type", Number)
|
|
40
|
+
], UserMarketInfo.prototype, "collateralUsd", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, swagger_1.ApiProperty)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], UserMarketInfo.prototype, "collateral_htoken", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, swagger_1.ApiProperty)(),
|
|
47
|
+
__metadata("design:type", Number)
|
|
48
|
+
], UserMarketInfo.prototype, "collateralHtokenShort", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, swagger_1.ApiProperty)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], UserMarketInfo.prototype, "collateralShort", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, swagger_1.ApiProperty)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], UserMarketInfo.prototype, "borrow", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, swagger_1.ApiProperty)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], UserMarketInfo.prototype, "borrow_egld", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, swagger_1.ApiProperty)(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], UserMarketInfo.prototype, "borrowUsd", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, swagger_1.ApiProperty)(),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], UserMarketInfo.prototype, "borrowEgldShort", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, swagger_1.ApiProperty)(),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], UserMarketInfo.prototype, "borrowShort", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, swagger_1.ApiProperty)(),
|
|
75
|
+
__metadata("design:type", Number)
|
|
76
|
+
], UserMarketInfo.prototype, "totalPositionUsd", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, swagger_1.ApiProperty)(),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], UserMarketInfo.prototype, "totalPositionEgld", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, swagger_1.ApiProperty)(),
|
|
83
|
+
__metadata("design:type", Number)
|
|
84
|
+
], UserMarketInfo.prototype, "totalPosition", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, swagger_1.ApiProperty)(),
|
|
87
|
+
__metadata("design:type", Number)
|
|
88
|
+
], UserMarketInfo.prototype, "dominance", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, swagger_1.ApiProperty)(),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], UserMarketInfo.prototype, "dominanceBorrow", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, swagger_1.ApiProperty)(),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], UserMarketInfo.prototype, "fx", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, swagger_1.ApiProperty)(),
|
|
99
|
+
__metadata("design:type", Number)
|
|
100
|
+
], UserMarketInfo.prototype, "fxShort", void 0);
|
|
101
|
+
class UserInfo {
|
|
102
|
+
}
|
|
103
|
+
exports.UserInfo = UserInfo;
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, swagger_1.ApiProperty)(),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], UserInfo.prototype, "collateral", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, swagger_1.ApiProperty)(),
|
|
110
|
+
__metadata("design:type", Number)
|
|
111
|
+
], UserInfo.prototype, "collateralShort", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, swagger_1.ApiProperty)(),
|
|
114
|
+
__metadata("design:type", Number)
|
|
115
|
+
], UserInfo.prototype, "collateralUsd", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, swagger_1.ApiProperty)(),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], UserInfo.prototype, "borrow", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, swagger_1.ApiProperty)(),
|
|
122
|
+
__metadata("design:type", Number)
|
|
123
|
+
], UserInfo.prototype, "borrowShort", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, swagger_1.ApiProperty)(),
|
|
126
|
+
__metadata("design:type", Number)
|
|
127
|
+
], UserInfo.prototype, "borrowUsd", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, swagger_1.ApiProperty)(),
|
|
130
|
+
__metadata("design:type", String)
|
|
131
|
+
], UserInfo.prototype, "health", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, swagger_1.ApiProperty)(),
|
|
134
|
+
__metadata("design:type", Number)
|
|
135
|
+
], UserInfo.prototype, "healthPercentage", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, swagger_1.ApiProperty)(),
|
|
138
|
+
__metadata("design:type", Array)
|
|
139
|
+
], UserInfo.prototype, "markets", void 0);
|