@xoxno/types 1.0.118 → 1.0.119
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,17 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
id: string;
|
|
1
|
+
declare class TokenDataDocBase {
|
|
3
2
|
identifier: string;
|
|
4
|
-
collection: string;
|
|
5
|
-
dataType: string;
|
|
6
3
|
decimals: number;
|
|
4
|
+
ticker: string;
|
|
7
5
|
name: string;
|
|
8
|
-
type: string;
|
|
9
|
-
category: string[];
|
|
10
6
|
svgUrl: string;
|
|
11
7
|
pngUrl: string;
|
|
12
|
-
|
|
8
|
+
constructor(props?: Partial<TokenDataDocBase>);
|
|
9
|
+
}
|
|
10
|
+
export declare class TokenDataDoc extends TokenDataDocBase {
|
|
11
|
+
collection: string;
|
|
12
|
+
dataType: string;
|
|
13
|
+
type: string;
|
|
14
|
+
category: string[];
|
|
13
15
|
_ts: number;
|
|
14
|
-
constructor(props?: Partial<TokenDataDoc>);
|
|
15
16
|
}
|
|
16
17
|
export declare class TokenDataDocHydrated extends TokenDataDoc {
|
|
17
18
|
usdPrice: number;
|
|
@@ -23,7 +24,9 @@ export declare class SuiCoinObjectDto {
|
|
|
23
24
|
digest: string;
|
|
24
25
|
version: string;
|
|
25
26
|
}
|
|
26
|
-
export declare class TokenDataDocWithBalance extends
|
|
27
|
+
export declare class TokenDataDocWithBalance extends TokenDataDocBase {
|
|
28
|
+
usdPrice: number;
|
|
29
|
+
isAshSupported: boolean;
|
|
27
30
|
nonce: number;
|
|
28
31
|
balance: string;
|
|
29
32
|
shortBalance: number;
|
|
@@ -32,3 +35,4 @@ export declare class TokenDataDocWithBalance extends TokenDataDocHydrated {
|
|
|
32
35
|
weight: number;
|
|
33
36
|
objects?: SuiCoinObjectDto[];
|
|
34
37
|
}
|
|
38
|
+
export {};
|
|
@@ -11,12 +11,17 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.TokenDataDocWithBalance = exports.SuiCoinObjectDto = exports.TokenDataDocHydrated = exports.TokenDataDoc = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
class
|
|
14
|
+
class TokenDataDocBase {
|
|
15
15
|
constructor(props) {
|
|
16
|
-
this.category = ['userInventory'];
|
|
17
16
|
Object.assign(this, props);
|
|
18
17
|
}
|
|
19
18
|
}
|
|
19
|
+
class TokenDataDoc extends TokenDataDocBase {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.category = ['userInventory'];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
20
25
|
exports.TokenDataDoc = TokenDataDoc;
|
|
21
26
|
class TokenDataDocHydrated extends TokenDataDoc {
|
|
22
27
|
}
|
|
@@ -32,9 +37,17 @@ __decorate([
|
|
|
32
37
|
class SuiCoinObjectDto {
|
|
33
38
|
}
|
|
34
39
|
exports.SuiCoinObjectDto = SuiCoinObjectDto;
|
|
35
|
-
class TokenDataDocWithBalance extends
|
|
40
|
+
class TokenDataDocWithBalance extends TokenDataDocBase {
|
|
36
41
|
}
|
|
37
42
|
exports.TokenDataDocWithBalance = TokenDataDocWithBalance;
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, swagger_1.ApiProperty)({ example: 12.160648172030305 }),
|
|
45
|
+
__metadata("design:type", Number)
|
|
46
|
+
], TokenDataDocWithBalance.prototype, "usdPrice", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, swagger_1.ApiProperty)({ example: false }),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], TokenDataDocWithBalance.prototype, "isAshSupported", void 0);
|
|
38
51
|
__decorate([
|
|
39
52
|
(0, swagger_1.ApiProperty)({ example: 0 }),
|
|
40
53
|
__metadata("design:type", Number)
|