@dhedge/backend-flatcoin-core 0.1.4 → 0.1.5
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.
- package/dist/chunk-YD2VGIAX.js +39 -0
- package/dist/chunk-YD2VGIAX.js.map +1 -0
- package/dist/entity/index.d.ts +8 -1
- package/dist/entity/index.js +51 -32
- package/dist/entity/index.js.map +1 -1
- package/dist/utils/index.d.ts +14 -0
- package/dist/utils/index.js +9 -0
- package/dist/utils/index.js.map +1 -0
- package/package.json +14 -8
- package/utils/package.json +4 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
4
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
5
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
6
|
+
if (decorator = decorators[i])
|
|
7
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
8
|
+
if (kind && result)
|
|
9
|
+
__defProp(target, key, result);
|
|
10
|
+
return result;
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
// src/utils/column.numeric.transformer.ts
|
|
14
|
+
import { BigNumber } from "ethers";
|
|
15
|
+
var ColumnNumericTransformer = class {
|
|
16
|
+
to(data) {
|
|
17
|
+
return data;
|
|
18
|
+
}
|
|
19
|
+
from(data) {
|
|
20
|
+
return parseFloat(data);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
var numericTransformer = new ColumnNumericTransformer();
|
|
24
|
+
var ColumnBigNumberTransformer = class {
|
|
25
|
+
to(data) {
|
|
26
|
+
return data == null ? void 0 : data.toBigInt();
|
|
27
|
+
}
|
|
28
|
+
from(data) {
|
|
29
|
+
return data ? BigNumber.from(data) : null;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
var bigNumberTransformer = new ColumnBigNumberTransformer();
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
__decorateClass,
|
|
36
|
+
numericTransformer,
|
|
37
|
+
bigNumberTransformer
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=chunk-YD2VGIAX.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/utils/column.numeric.transformer.ts"],"sourcesContent":["import { BigNumber } from 'ethers';\n\nclass ColumnNumericTransformer {\n to(data: number): number {\n return data;\n }\n\n from(data: string): number {\n return parseFloat(data);\n }\n}\n\nexport const numericTransformer = new ColumnNumericTransformer();\n\nclass ColumnBigNumberTransformer {\n to(data?: BigNumber): bigint | undefined {\n return data?.toBigInt();\n }\n\n from(data?: bigint): BigNumber | null {\n return data ? BigNumber.from(data) : null;\n }\n}\n\nexport const bigNumberTransformer = new ColumnBigNumberTransformer();\n"],"mappings":";;;;;;;;;;;;;AAAA,SAAS,iBAAiB;AAE1B,IAAM,2BAAN,MAA+B;AAAA,EAC7B,GAAG,MAAsB;AACvB,WAAO;AAAA,EACT;AAAA,EAEA,KAAK,MAAsB;AACzB,WAAO,WAAW,IAAI;AAAA,EACxB;AACF;AAEO,IAAM,qBAAqB,IAAI,yBAAyB;AAE/D,IAAM,6BAAN,MAAiC;AAAA,EAC/B,GAAG,MAAsC;AACvC,WAAO,6BAAM;AAAA,EACf;AAAA,EAEA,KAAK,MAAiC;AACpC,WAAO,OAAO,UAAU,KAAK,IAAI,IAAI;AAAA,EACvC;AACF;AAEO,IAAM,uBAAuB,IAAI,2BAA2B;","names":[]}
|
package/dist/entity/index.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
declare class Apy {
|
|
2
|
+
id: number;
|
|
3
|
+
monthly: number;
|
|
4
|
+
weekly: number;
|
|
5
|
+
daily: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
1
8
|
declare abstract class FlatcoinPriceParent {
|
|
2
9
|
id: number;
|
|
3
10
|
priceUsd: string;
|
|
@@ -21,4 +28,4 @@ declare class FlatcoinPriceOneYear extends FlatcoinPriceParent {
|
|
|
21
28
|
declare class FlatcoinPrice extends FlatcoinPriceParent {
|
|
22
29
|
}
|
|
23
30
|
|
|
24
|
-
export { FlatcoinPrice, FlatcoinPriceOneDay, FlatcoinPriceOneMonth, FlatcoinPriceOneWeek, FlatcoinPriceOneYear, FlatcoinPriceParent };
|
|
31
|
+
export { Apy, FlatcoinPrice, FlatcoinPriceOneDay, FlatcoinPriceOneMonth, FlatcoinPriceOneWeek, FlatcoinPriceOneYear, FlatcoinPriceParent };
|
package/dist/entity/index.js
CHANGED
|
@@ -1,85 +1,104 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return result;
|
|
1
|
+
import {
|
|
2
|
+
__decorateClass,
|
|
3
|
+
numericTransformer
|
|
4
|
+
} from "../chunk-YD2VGIAX.js";
|
|
5
|
+
|
|
6
|
+
// src/entity/apy.ts
|
|
7
|
+
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
|
|
8
|
+
import { Field, Float, ObjectType } from "@nestjs/graphql";
|
|
9
|
+
var Apy = class {
|
|
11
10
|
};
|
|
11
|
+
__decorateClass([
|
|
12
|
+
PrimaryGeneratedColumn({ name: "id" })
|
|
13
|
+
], Apy.prototype, "id", 2);
|
|
14
|
+
__decorateClass([
|
|
15
|
+
Field(() => Float, { nullable: false }),
|
|
16
|
+
Column({ name: "monthly", type: "decimal", precision: 30, scale: 2, transformer: numericTransformer })
|
|
17
|
+
], Apy.prototype, "monthly", 2);
|
|
18
|
+
__decorateClass([
|
|
19
|
+
Field(() => Float, { nullable: false }),
|
|
20
|
+
Column({ name: "weekly", type: "decimal", precision: 30, scale: 2, transformer: numericTransformer })
|
|
21
|
+
], Apy.prototype, "weekly", 2);
|
|
22
|
+
__decorateClass([
|
|
23
|
+
Field(() => Float, { nullable: false }),
|
|
24
|
+
Column({ name: "daily", type: "decimal", precision: 30, scale: 2, transformer: numericTransformer })
|
|
25
|
+
], Apy.prototype, "daily", 2);
|
|
26
|
+
Apy = __decorateClass([
|
|
27
|
+
ObjectType(),
|
|
28
|
+
Entity({ name: "apy" })
|
|
29
|
+
], Apy);
|
|
12
30
|
|
|
13
31
|
// src/entity/flatcoin.price.one.day.ts
|
|
14
|
-
import { Entity as
|
|
32
|
+
import { Entity as Entity3 } from "typeorm";
|
|
15
33
|
|
|
16
34
|
// src/entity/flatcoin.price.parent.ts
|
|
17
|
-
import { Entity, PrimaryGeneratedColumn, Column } from "typeorm";
|
|
18
|
-
import { Field, ObjectType } from "@nestjs/graphql";
|
|
35
|
+
import { Entity as Entity2, PrimaryGeneratedColumn as PrimaryGeneratedColumn2, Column as Column2 } from "typeorm";
|
|
36
|
+
import { Field as Field2, ObjectType as ObjectType2 } from "@nestjs/graphql";
|
|
19
37
|
var FlatcoinPriceParent = class {
|
|
20
38
|
};
|
|
21
39
|
__decorateClass([
|
|
22
|
-
|
|
40
|
+
PrimaryGeneratedColumn2({ name: "id" })
|
|
23
41
|
], FlatcoinPriceParent.prototype, "id", 2);
|
|
24
42
|
__decorateClass([
|
|
25
|
-
|
|
26
|
-
|
|
43
|
+
Field2(),
|
|
44
|
+
Column2({ name: "price_usd", type: "numeric", precision: 30 })
|
|
27
45
|
], FlatcoinPriceParent.prototype, "priceUsd", 2);
|
|
28
46
|
__decorateClass([
|
|
29
|
-
|
|
30
|
-
|
|
47
|
+
Field2(),
|
|
48
|
+
Column2({ name: "price_usd_formatted", type: "decimal", precision: 10, scale: 2 })
|
|
31
49
|
], FlatcoinPriceParent.prototype, "priceUsdFormatted", 2);
|
|
32
50
|
__decorateClass([
|
|
33
|
-
|
|
34
|
-
|
|
51
|
+
Field2(),
|
|
52
|
+
Column2({ name: "timestamp", type: "numeric", precision: 25 })
|
|
35
53
|
], FlatcoinPriceParent.prototype, "timestamp", 2);
|
|
36
54
|
__decorateClass([
|
|
37
|
-
|
|
55
|
+
Column2({ name: "block_number", type: "numeric", precision: 25 })
|
|
38
56
|
], FlatcoinPriceParent.prototype, "blockNumber", 2);
|
|
39
57
|
FlatcoinPriceParent = __decorateClass([
|
|
40
|
-
|
|
41
|
-
|
|
58
|
+
ObjectType2(),
|
|
59
|
+
Entity2()
|
|
42
60
|
], FlatcoinPriceParent);
|
|
43
61
|
|
|
44
62
|
// src/entity/flatcoin.price.one.day.ts
|
|
45
63
|
var FlatcoinPriceOneDay = class extends FlatcoinPriceParent {
|
|
46
64
|
};
|
|
47
65
|
FlatcoinPriceOneDay = __decorateClass([
|
|
48
|
-
|
|
66
|
+
Entity3({ name: "flatcoin_prices_1d" })
|
|
49
67
|
], FlatcoinPriceOneDay);
|
|
50
68
|
|
|
51
69
|
// src/entity/flatcoin.price.one.month.ts
|
|
52
|
-
import { Entity as
|
|
70
|
+
import { Entity as Entity4 } from "typeorm";
|
|
53
71
|
var FlatcoinPriceOneMonth = class extends FlatcoinPriceParent {
|
|
54
72
|
};
|
|
55
73
|
FlatcoinPriceOneMonth = __decorateClass([
|
|
56
|
-
|
|
74
|
+
Entity4({ name: "flatcoin_prices_1m" })
|
|
57
75
|
], FlatcoinPriceOneMonth);
|
|
58
76
|
|
|
59
77
|
// src/entity/flatcoin.price.one.week.ts
|
|
60
|
-
import { Entity as
|
|
78
|
+
import { Entity as Entity5 } from "typeorm";
|
|
61
79
|
var FlatcoinPriceOneWeek = class extends FlatcoinPriceParent {
|
|
62
80
|
};
|
|
63
81
|
FlatcoinPriceOneWeek = __decorateClass([
|
|
64
|
-
|
|
82
|
+
Entity5({ name: "flatcoin_prices_1w" })
|
|
65
83
|
], FlatcoinPriceOneWeek);
|
|
66
84
|
|
|
67
85
|
// src/entity/flatcoin.price.one.year.ts
|
|
68
|
-
import { Entity as
|
|
86
|
+
import { Entity as Entity6 } from "typeorm";
|
|
69
87
|
var FlatcoinPriceOneYear = class extends FlatcoinPriceParent {
|
|
70
88
|
};
|
|
71
89
|
FlatcoinPriceOneYear = __decorateClass([
|
|
72
|
-
|
|
90
|
+
Entity6({ name: "flatcoin_prices_1y" })
|
|
73
91
|
], FlatcoinPriceOneYear);
|
|
74
92
|
|
|
75
93
|
// src/entity/flatcoin.price.ts
|
|
76
|
-
import { Entity as
|
|
94
|
+
import { Entity as Entity7 } from "typeorm";
|
|
77
95
|
var FlatcoinPrice = class extends FlatcoinPriceParent {
|
|
78
96
|
};
|
|
79
97
|
FlatcoinPrice = __decorateClass([
|
|
80
|
-
|
|
98
|
+
Entity7({ name: "flatcoin_prices" })
|
|
81
99
|
], FlatcoinPrice);
|
|
82
100
|
export {
|
|
101
|
+
Apy,
|
|
83
102
|
FlatcoinPrice,
|
|
84
103
|
FlatcoinPriceOneDay,
|
|
85
104
|
FlatcoinPriceOneMonth,
|
package/dist/entity/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/entity/flatcoin.price.one.day.ts","../../src/entity/flatcoin.price.parent.ts","../../src/entity/flatcoin.price.one.month.ts","../../src/entity/flatcoin.price.one.week.ts","../../src/entity/flatcoin.price.one.year.ts","../../src/entity/flatcoin.price.ts"],"sourcesContent":["import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1d' })\nexport class FlatcoinPriceOneDay extends FlatcoinPriceParent {}\n","import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';\nimport { Field, ObjectType } from '@nestjs/graphql';\n\n@ObjectType()\n@Entity()\nexport abstract class FlatcoinPriceParent {\n @PrimaryGeneratedColumn({ name: 'id' })\n id: number;\n\n @Field()\n @Column({ name: 'price_usd', type: 'numeric', precision: 30 })\n priceUsd: string;\n\n @Field()\n @Column({ name: 'price_usd_formatted', type: 'decimal', precision: 10, scale: 2 })\n priceUsdFormatted: number;\n\n @Field()\n @Column({ name: 'timestamp', type: 'numeric', precision: 25 })\n timestamp: number;\n\n @Column({ name: 'block_number', type: 'numeric', precision: 25 })\n blockNumber: number;\n}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1m' })\nexport class FlatcoinPriceOneMonth extends FlatcoinPriceParent {}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1w' })\nexport class FlatcoinPriceOneWeek extends FlatcoinPriceParent {}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1y' })\nexport class FlatcoinPriceOneYear extends FlatcoinPriceParent {}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices' })\nexport class FlatcoinPrice extends FlatcoinPriceParent {}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/entity/apy.ts","../../src/entity/flatcoin.price.one.day.ts","../../src/entity/flatcoin.price.parent.ts","../../src/entity/flatcoin.price.one.month.ts","../../src/entity/flatcoin.price.one.week.ts","../../src/entity/flatcoin.price.one.year.ts","../../src/entity/flatcoin.price.ts"],"sourcesContent":["import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';\nimport { Field, Float, ObjectType } from '@nestjs/graphql';\nimport { numericTransformer } from '../utils';\n\n@ObjectType()\n@Entity({ name: 'apy' })\nexport class Apy {\n @PrimaryGeneratedColumn({ name: 'id' })\n id: number;\n\n @Field(() => Float, { nullable: false })\n @Column({ name: 'monthly', type: 'decimal', precision: 30, scale: 2, transformer: numericTransformer })\n monthly: number;\n\n @Field(() => Float, { nullable: false })\n @Column({ name: 'weekly', type: 'decimal', precision: 30, scale: 2, transformer: numericTransformer })\n weekly: number;\n\n @Field(() => Float, { nullable: false })\n @Column({ name: 'daily', type: 'decimal', precision: 30, scale: 2, transformer: numericTransformer })\n daily: number;\n}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1d' })\nexport class FlatcoinPriceOneDay extends FlatcoinPriceParent {}\n","import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';\nimport { Field, ObjectType } from '@nestjs/graphql';\n\n@ObjectType()\n@Entity()\nexport abstract class FlatcoinPriceParent {\n @PrimaryGeneratedColumn({ name: 'id' })\n id: number;\n\n @Field()\n @Column({ name: 'price_usd', type: 'numeric', precision: 30 })\n priceUsd: string;\n\n @Field()\n @Column({ name: 'price_usd_formatted', type: 'decimal', precision: 10, scale: 2 })\n priceUsdFormatted: number;\n\n @Field()\n @Column({ name: 'timestamp', type: 'numeric', precision: 25 })\n timestamp: number;\n\n @Column({ name: 'block_number', type: 'numeric', precision: 25 })\n blockNumber: number;\n}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1m' })\nexport class FlatcoinPriceOneMonth extends FlatcoinPriceParent {}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1w' })\nexport class FlatcoinPriceOneWeek extends FlatcoinPriceParent {}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices_1y' })\nexport class FlatcoinPriceOneYear extends FlatcoinPriceParent {}\n","import { Entity } from 'typeorm';\nimport { FlatcoinPriceParent } from './flatcoin.price.parent';\n\n@Entity({ name: 'flatcoin_prices' })\nexport class FlatcoinPrice extends FlatcoinPriceParent {}\n"],"mappings":";;;;;;AAAA,SAAS,QAAQ,QAAQ,8BAA8B;AACvD,SAAS,OAAO,OAAO,kBAAkB;AAKlC,IAAM,MAAN,MAAU;AAejB;AAbE;AAAA,EADC,uBAAuB,EAAE,MAAM,KAAK,CAAC;AAAA,GAD3B,IAEX;AAIA;AAAA,EAFC,MAAM,MAAM,OAAO,EAAE,UAAU,MAAM,CAAC;AAAA,EACtC,OAAO,EAAE,MAAM,WAAW,MAAM,WAAW,WAAW,IAAI,OAAO,GAAG,aAAa,mBAAmB,CAAC;AAAA,GAL3F,IAMX;AAIA;AAAA,EAFC,MAAM,MAAM,OAAO,EAAE,UAAU,MAAM,CAAC;AAAA,EACtC,OAAO,EAAE,MAAM,UAAU,MAAM,WAAW,WAAW,IAAI,OAAO,GAAG,aAAa,mBAAmB,CAAC;AAAA,GAT1F,IAUX;AAIA;AAAA,EAFC,MAAM,MAAM,OAAO,EAAE,UAAU,MAAM,CAAC;AAAA,EACtC,OAAO,EAAE,MAAM,SAAS,MAAM,WAAW,WAAW,IAAI,OAAO,GAAG,aAAa,mBAAmB,CAAC;AAAA,GAbzF,IAcX;AAdW,MAAN;AAAA,EAFN,WAAW;AAAA,EACX,OAAO,EAAE,MAAM,MAAM,CAAC;AAAA,GACV;;;ACNb,SAAS,UAAAA,eAAc;;;ACAvB,SAAS,UAAAC,SAAQ,0BAAAC,yBAAwB,UAAAC,eAAc;AACvD,SAAS,SAAAC,QAAO,cAAAC,mBAAkB;AAI3B,IAAe,sBAAf,MAAmC;AAkB1C;AAhBE;AAAA,EADCC,wBAAuB,EAAE,MAAM,KAAK,CAAC;AAAA,GADlB,oBAEpB;AAIA;AAAA,EAFCC,OAAM;AAAA,EACNC,QAAO,EAAE,MAAM,aAAa,MAAM,WAAW,WAAW,GAAG,CAAC;AAAA,GALzC,oBAMpB;AAIA;AAAA,EAFCD,OAAM;AAAA,EACNC,QAAO,EAAE,MAAM,uBAAuB,MAAM,WAAW,WAAW,IAAI,OAAO,EAAE,CAAC;AAAA,GAT7D,oBAUpB;AAIA;AAAA,EAFCD,OAAM;AAAA,EACNC,QAAO,EAAE,MAAM,aAAa,MAAM,WAAW,WAAW,GAAG,CAAC;AAAA,GAbzC,oBAcpB;AAGA;AAAA,EADCA,QAAO,EAAE,MAAM,gBAAgB,MAAM,WAAW,WAAW,GAAG,CAAC;AAAA,GAhB5C,oBAiBpB;AAjBoB,sBAAf;AAAA,EAFNC,YAAW;AAAA,EACXC,QAAO;AAAA,GACc;;;ADDf,IAAM,sBAAN,cAAkC,oBAAoB;AAAC;AAAjD,sBAAN;AAAA,EADNC,QAAO,EAAE,MAAM,qBAAqB,CAAC;AAAA,GACzB;;;AEJb,SAAS,UAAAC,eAAc;AAIhB,IAAM,wBAAN,cAAoC,oBAAoB;AAAC;AAAnD,wBAAN;AAAA,EADNC,QAAO,EAAE,MAAM,qBAAqB,CAAC;AAAA,GACzB;;;ACJb,SAAS,UAAAC,eAAc;AAIhB,IAAM,uBAAN,cAAmC,oBAAoB;AAAC;AAAlD,uBAAN;AAAA,EADNC,QAAO,EAAE,MAAM,qBAAqB,CAAC;AAAA,GACzB;;;ACJb,SAAS,UAAAC,eAAc;AAIhB,IAAM,uBAAN,cAAmC,oBAAoB;AAAC;AAAlD,uBAAN;AAAA,EADNC,QAAO,EAAE,MAAM,qBAAqB,CAAC;AAAA,GACzB;;;ACJb,SAAS,UAAAC,eAAc;AAIhB,IAAM,gBAAN,cAA4B,oBAAoB;AAAC;AAA3C,gBAAN;AAAA,EADNC,QAAO,EAAE,MAAM,kBAAkB,CAAC;AAAA,GACtB;","names":["Entity","Entity","PrimaryGeneratedColumn","Column","Field","ObjectType","PrimaryGeneratedColumn","Field","Column","ObjectType","Entity","Entity","Entity","Entity","Entity","Entity","Entity","Entity","Entity","Entity"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BigNumber } from 'ethers';
|
|
2
|
+
|
|
3
|
+
declare class ColumnNumericTransformer {
|
|
4
|
+
to(data: number): number;
|
|
5
|
+
from(data: string): number;
|
|
6
|
+
}
|
|
7
|
+
declare const numericTransformer: ColumnNumericTransformer;
|
|
8
|
+
declare class ColumnBigNumberTransformer {
|
|
9
|
+
to(data?: BigNumber): bigint | undefined;
|
|
10
|
+
from(data?: bigint): BigNumber | null;
|
|
11
|
+
}
|
|
12
|
+
declare const bigNumberTransformer: ColumnBigNumberTransformer;
|
|
13
|
+
|
|
14
|
+
export { bigNumberTransformer, numericTransformer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhedge/backend-flatcoin-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Backend Flatcoin Core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -14,30 +14,36 @@
|
|
|
14
14
|
"types": "./dist/entity/index.d.ts",
|
|
15
15
|
"default": "./dist/entity/index.js"
|
|
16
16
|
},
|
|
17
|
+
"./utils": {
|
|
18
|
+
"types": "./dist/utils/index.d.ts",
|
|
19
|
+
"default": "./dist/utils/index.js"
|
|
20
|
+
},
|
|
17
21
|
"./package.json": "./package.json"
|
|
18
22
|
},
|
|
19
23
|
"files": [
|
|
20
24
|
"/entity",
|
|
25
|
+
"/utils",
|
|
21
26
|
"/dist"
|
|
22
27
|
],
|
|
23
28
|
"sideEffects": false,
|
|
24
29
|
"dependencies": {
|
|
25
30
|
"@nestjs/graphql": "^12.0.9",
|
|
26
|
-
"typeorm": "^0.3.17"
|
|
31
|
+
"typeorm": "^0.3.17",
|
|
32
|
+
"ethers": "5.7.2"
|
|
27
33
|
},
|
|
28
34
|
"devDependencies": {
|
|
29
35
|
"@swc/core": "^1.3.90",
|
|
30
36
|
"@types/dedent": "^0.7.0",
|
|
31
37
|
"@types/fs-extra": "^11.0.1",
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
33
|
-
"@typescript-eslint/parser": "^
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^5.0.0",
|
|
39
|
+
"@typescript-eslint/parser": "^5.0.0",
|
|
34
40
|
"dedent": "^0.7.0",
|
|
35
|
-
"eslint": "^8.
|
|
36
|
-
"eslint-config-prettier": "^
|
|
37
|
-
"eslint-plugin-prettier": "^
|
|
41
|
+
"eslint": "^8.0.1",
|
|
42
|
+
"eslint-config-prettier": "^8.3.0",
|
|
43
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
38
44
|
"execa": "^7.1.1",
|
|
39
45
|
"fs-extra": "^11.1.1",
|
|
40
|
-
"prettier": "3.
|
|
46
|
+
"prettier": "^2.3.2",
|
|
41
47
|
"tsup": "^7.2.0",
|
|
42
48
|
"typescript": "^5.0.0"
|
|
43
49
|
},
|