@dhedge/backend-flatcoin-core 0.2.53 → 0.2.54
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,10 @@
|
|
|
1
1
|
import { Repository } from 'typeorm';
|
|
2
2
|
import { FlatcoinPriceParent } from '../entity';
|
|
3
|
-
import { UnitBalanceHalfYear } from '../entity
|
|
4
|
-
import { UnitBalanceOneWeek } from '../entity
|
|
5
|
-
import { UnitBalanceOneMonth } from '../entity
|
|
6
|
-
import { UnitBalanceThreeMonths } from '../entity
|
|
7
|
-
import { UnitBalanceOneYear } from '../entity
|
|
3
|
+
import { UnitBalanceHalfYear } from '../entity';
|
|
4
|
+
import { UnitBalanceOneWeek } from '../entity';
|
|
5
|
+
import { UnitBalanceOneMonth } from '../entity';
|
|
6
|
+
import { UnitBalanceThreeMonths } from '../entity';
|
|
7
|
+
import { UnitBalanceOneYear } from '../entity';
|
|
8
8
|
export declare class UnitBalanceRepository {
|
|
9
9
|
private unitBalanceOneWeekRepository;
|
|
10
10
|
private unitBalanceOneMonthRepository;
|
|
@@ -17,11 +17,11 @@ const common_1 = require("@nestjs/common");
|
|
|
17
17
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
18
18
|
const typeorm_2 = require("typeorm");
|
|
19
19
|
const constants_1 = require("../constants");
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
20
|
+
const entity_1 = require("../entity");
|
|
21
|
+
const entity_2 = require("../entity");
|
|
22
|
+
const entity_3 = require("../entity");
|
|
23
|
+
const entity_4 = require("../entity");
|
|
24
|
+
const entity_5 = require("../entity");
|
|
25
25
|
let UnitBalanceRepository = class UnitBalanceRepository {
|
|
26
26
|
constructor(unitBalanceOneWeekRepository, unitBalanceOneMonthRepository, unitBalanceThreeMonthsRepository, unitBalanceHalfYearRepository, unitBalanceOneYearRepository) {
|
|
27
27
|
this.unitBalanceOneWeekRepository = unitBalanceOneWeekRepository;
|
|
@@ -74,11 +74,11 @@ let UnitBalanceRepository = class UnitBalanceRepository {
|
|
|
74
74
|
exports.UnitBalanceRepository = UnitBalanceRepository;
|
|
75
75
|
exports.UnitBalanceRepository = UnitBalanceRepository = __decorate([
|
|
76
76
|
(0, common_1.Injectable)(),
|
|
77
|
-
__param(0, (0, typeorm_1.InjectRepository)(
|
|
78
|
-
__param(1, (0, typeorm_1.InjectRepository)(
|
|
79
|
-
__param(2, (0, typeorm_1.InjectRepository)(
|
|
80
|
-
__param(3, (0, typeorm_1.InjectRepository)(
|
|
81
|
-
__param(4, (0, typeorm_1.InjectRepository)(
|
|
77
|
+
__param(0, (0, typeorm_1.InjectRepository)(entity_2.UnitBalanceOneWeek)),
|
|
78
|
+
__param(1, (0, typeorm_1.InjectRepository)(entity_3.UnitBalanceOneMonth)),
|
|
79
|
+
__param(2, (0, typeorm_1.InjectRepository)(entity_4.UnitBalanceThreeMonths)),
|
|
80
|
+
__param(3, (0, typeorm_1.InjectRepository)(entity_1.UnitBalanceHalfYear)),
|
|
81
|
+
__param(4, (0, typeorm_1.InjectRepository)(entity_5.UnitBalanceOneYear)),
|
|
82
82
|
__metadata("design:paramtypes", [typeorm_2.Repository,
|
|
83
83
|
typeorm_2.Repository,
|
|
84
84
|
typeorm_2.Repository,
|
|
@@ -539,8 +539,8 @@ exports.getClosedPositionsQueryByCloseBlockFrom = (0, graphql_request_1.gql) `
|
|
|
539
539
|
`;
|
|
540
540
|
exports.getUnitHoldersQueryPaginated = (0, graphql_request_1.gql) `
|
|
541
541
|
query GetUnitHolders($first: Int, $skip: Int) {
|
|
542
|
-
|
|
543
|
-
|
|
542
|
+
unitHolders(where: { first: $first, skip: $skip }) {
|
|
543
|
+
address
|
|
544
544
|
unitAmount
|
|
545
545
|
}
|
|
546
546
|
}
|