@dhedge/backend-flatcoin-core 0.2.79 → 0.2.81

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.
@@ -13,6 +13,7 @@ exports.ProtocolMetrics = void 0;
13
13
  const typeorm_1 = require("typeorm");
14
14
  const utils_1 = require("../utils");
15
15
  const ethers_1 = require("ethers");
16
+ const graphql_1 = require("@nestjs/graphql");
16
17
  let ProtocolMetrics = class ProtocolMetrics {
17
18
  };
18
19
  exports.ProtocolMetrics = ProtocolMetrics;
@@ -21,14 +22,17 @@ __decorate([
21
22
  __metadata("design:type", Number)
22
23
  ], ProtocolMetrics.prototype, "id", void 0);
23
24
  __decorate([
25
+ (0, graphql_1.Field)(),
24
26
  (0, typeorm_1.Column)({ name: 'unit_deposits_volume', type: 'bigint', precision: 30, transformer: utils_1.bigNumberTransformer }),
25
27
  __metadata("design:type", ethers_1.BigNumber)
26
28
  ], ProtocolMetrics.prototype, "unitDepositsVolume", void 0);
27
29
  __decorate([
30
+ (0, graphql_1.Field)(),
28
31
  (0, typeorm_1.Column)({ name: 'unit_withdrawals_volume', type: 'bigint', precision: 30, transformer: utils_1.bigNumberTransformer }),
29
32
  __metadata("design:type", ethers_1.BigNumber)
30
33
  ], ProtocolMetrics.prototype, "unitWithdrawalsVolume", void 0);
31
34
  __decorate([
35
+ (0, graphql_1.Field)(() => graphql_1.Float, { nullable: false }),
32
36
  (0, typeorm_1.Column)({
33
37
  name: 'leverage_total_volume_usd',
34
38
  type: 'decimal',
@@ -39,6 +43,7 @@ __decorate([
39
43
  __metadata("design:type", Number)
40
44
  ], ProtocolMetrics.prototype, "leverageTotalVolumeUsd", void 0);
41
45
  __decorate([
46
+ (0, graphql_1.Field)(() => graphql_1.Float, { nullable: false }),
42
47
  (0, typeorm_1.Column)({
43
48
  name: 'leverage_week_volume_usd',
44
49
  type: 'decimal',
@@ -49,6 +54,7 @@ __decorate([
49
54
  __metadata("design:type", Number)
50
55
  ], ProtocolMetrics.prototype, "leverageWeekVolumeUsd", void 0);
51
56
  __decorate([
57
+ (0, graphql_1.Field)(() => graphql_1.Float, { nullable: false }),
52
58
  (0, typeorm_1.Column)({
53
59
  name: 'leverage_month_volume_usd',
54
60
  type: 'decimal',
@@ -63,5 +69,6 @@ __decorate([
63
69
  __metadata("design:type", Number)
64
70
  ], ProtocolMetrics.prototype, "blockSynced", void 0);
65
71
  exports.ProtocolMetrics = ProtocolMetrics = __decorate([
72
+ (0, graphql_1.ObjectType)(),
66
73
  (0, typeorm_1.Entity)({ name: 'protocol_metrics' })
67
74
  ], ProtocolMetrics);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhedge/backend-flatcoin-core",
3
- "version": "0.2.79",
3
+ "version": "0.2.81",
4
4
  "description": "Backend Flatcoin Core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",