@xoxno/types 1.0.274 → 1.0.276

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.
@@ -2,9 +2,16 @@ export declare class PerpConfig {
2
2
  sigFigs: number;
3
3
  mantissa: number;
4
4
  }
5
+ export declare class PerpSingleCoin {
6
+ identifier: string;
7
+ decimals: number;
8
+ }
9
+ export declare class PerpBalance extends PerpSingleCoin {
10
+ balance: string;
11
+ }
5
12
  export declare class PerpCoin {
6
- coin: string;
7
- againstCoin: string;
13
+ coin: PerpSingleCoin;
14
+ againstCoin: PerpSingleCoin;
8
15
  price: number;
9
16
  config: PerpConfig[];
10
17
  }
@@ -9,7 +9,7 @@ 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.PerpCoin = exports.PerpConfig = void 0;
12
+ exports.PerpCoin = exports.PerpBalance = exports.PerpSingleCoin = exports.PerpConfig = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  class PerpConfig {
15
15
  }
@@ -22,16 +22,34 @@ __decorate([
22
22
  (0, swagger_1.ApiProperty)(),
23
23
  __metadata("design:type", Number)
24
24
  ], PerpConfig.prototype, "mantissa", void 0);
25
+ class PerpSingleCoin {
26
+ }
27
+ exports.PerpSingleCoin = PerpSingleCoin;
28
+ __decorate([
29
+ (0, swagger_1.ApiProperty)(),
30
+ __metadata("design:type", String)
31
+ ], PerpSingleCoin.prototype, "identifier", void 0);
32
+ __decorate([
33
+ (0, swagger_1.ApiProperty)(),
34
+ __metadata("design:type", Number)
35
+ ], PerpSingleCoin.prototype, "decimals", void 0);
36
+ class PerpBalance extends PerpSingleCoin {
37
+ }
38
+ exports.PerpBalance = PerpBalance;
39
+ __decorate([
40
+ (0, swagger_1.ApiProperty)(),
41
+ __metadata("design:type", String)
42
+ ], PerpBalance.prototype, "balance", void 0);
25
43
  class PerpCoin {
26
44
  }
27
45
  exports.PerpCoin = PerpCoin;
28
46
  __decorate([
29
47
  (0, swagger_1.ApiProperty)(),
30
- __metadata("design:type", String)
48
+ __metadata("design:type", PerpSingleCoin)
31
49
  ], PerpCoin.prototype, "coin", void 0);
32
50
  __decorate([
33
51
  (0, swagger_1.ApiProperty)(),
34
- __metadata("design:type", String)
52
+ __metadata("design:type", PerpSingleCoin)
35
53
  ], PerpCoin.prototype, "againstCoin", void 0);
36
54
  __decorate([
37
55
  (0, swagger_1.ApiProperty)(),
@@ -2,6 +2,7 @@ import { PerpEnum } from '../../enums/perp.enum';
2
2
  export declare class L2BookPerpEvent {
3
3
  type: PerpEnum.L2BOOK;
4
4
  coin: string;
5
+ againstCoin: string;
5
6
  sigFigs: number;
6
7
  mantissa: number;
7
8
  }
@@ -26,6 +26,10 @@ __decorate([
26
26
  (0, swagger_1.ApiProperty)(),
27
27
  __metadata("design:type", String)
28
28
  ], L2BookPerpEvent.prototype, "coin", void 0);
29
+ __decorate([
30
+ (0, swagger_1.ApiProperty)(),
31
+ __metadata("design:type", String)
32
+ ], L2BookPerpEvent.prototype, "againstCoin", void 0);
29
33
  __decorate([
30
34
  (0, swagger_1.ApiProperty)(),
31
35
  __metadata("design:type", Number)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.274",
3
+ "version": "1.0.276",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {