@dhedge/backend-flatcoin-core 0.1.5 → 0.1.7

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/.eslintrc.js ADDED
@@ -0,0 +1,25 @@
1
+ module.exports = {
2
+ parser: '@typescript-eslint/parser',
3
+ parserOptions: {
4
+ project: 'tsconfig.json',
5
+ tsconfigRootDir: __dirname,
6
+ sourceType: 'module',
7
+ },
8
+ plugins: ['@typescript-eslint/eslint-plugin'],
9
+ extends: [
10
+ 'plugin:@typescript-eslint/recommended',
11
+ 'plugin:prettier/recommended',
12
+ ],
13
+ root: true,
14
+ env: {
15
+ node: true,
16
+ jest: true,
17
+ },
18
+ ignorePatterns: ['.eslintrc.js'],
19
+ rules: {
20
+ '@typescript-eslint/interface-name-prefix': 'off',
21
+ '@typescript-eslint/explicit-function-return-type': 'off',
22
+ '@typescript-eslint/explicit-module-boundary-types': 'off',
23
+ '@typescript-eslint/no-explicit-any': 'off',
24
+ },
25
+ };
@@ -0,0 +1,27 @@
1
+ name: Run pr checks when a PR is opened
2
+ on:
3
+ workflow_dispatch:
4
+ pull_request:
5
+ types:
6
+ - opened
7
+ - synchronize
8
+
9
+ jobs:
10
+ run-checks:
11
+ name: Build
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - name: Checkout Repo
15
+ uses: actions/checkout@v3
16
+ - name: Setup Node
17
+ uses: actions/setup-node@v3
18
+ with:
19
+ node-version: 18
20
+ cache: 'npm'
21
+ - name: Install Dependencies
22
+ run: npm install --frozen-lockfile
23
+ - name: Run Checks
24
+ env:
25
+ CI: true
26
+ # add npm run test
27
+ run: npm run lint && npm run build
@@ -0,0 +1,24 @@
1
+ name: Publish Package to npm
2
+ on:
3
+ workflow_dispatch:
4
+ release:
5
+ types: [published]
6
+
7
+ jobs:
8
+ build:
9
+ name: Build
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v3
13
+ # Setup .npmrc file to publish to npm
14
+ - uses: actions/setup-node@v3
15
+ with:
16
+ node-version: '18'
17
+ registry-url: 'https://registry.npmjs.org'
18
+ scope: '@dhedge'
19
+ - run: npm ci
20
+ # add npm run test
21
+ - run: npm run lint
22
+ - run: npm publish
23
+ env:
24
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package/.prettierrc ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "singleQuote": true,
3
+ "trailingComma": "all",
4
+ "printWidth": 120
5
+ }
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './dist';
package/index.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ function __export(m) {
3
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
4
+ }
5
+ exports.__esModule = true;
6
+ __export(require("./dist"));
package/index.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './dist';
package/package.json CHANGED
@@ -1,31 +1,7 @@
1
1
  {
2
2
  "name": "@dhedge/backend-flatcoin-core",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Backend Flatcoin Core",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "types": "dist/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "default": "./dist/index.js"
12
- },
13
- "./entity": {
14
- "types": "./dist/entity/index.d.ts",
15
- "default": "./dist/entity/index.js"
16
- },
17
- "./utils": {
18
- "types": "./dist/utils/index.d.ts",
19
- "default": "./dist/utils/index.js"
20
- },
21
- "./package.json": "./package.json"
22
- },
23
- "files": [
24
- "/entity",
25
- "/utils",
26
- "/dist"
27
- ],
28
- "sideEffects": false,
29
5
  "dependencies": {
30
6
  "@nestjs/graphql": "^12.0.9",
31
7
  "typeorm": "^0.3.17",
@@ -44,8 +20,8 @@
44
20
  "execa": "^7.1.1",
45
21
  "fs-extra": "^11.1.1",
46
22
  "prettier": "^2.3.2",
47
- "tsup": "^7.2.0",
48
- "typescript": "^5.0.0"
23
+ "typescript": "^5.0.0",
24
+ "rimraf": "5.0.5"
49
25
  },
50
26
  "repository": {
51
27
  "type": "git",
@@ -55,10 +31,11 @@
55
31
  "scripts": {
56
32
  "lint": "eslint \"{src,apps,libs,test}/**/*.ts\"",
57
33
  "lint-fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
58
- "build": "tsup",
34
+ "build": "rimraf -rf dist && tsc -p tsconfig.json",
59
35
  "typecheck": "tsc --noEmit",
60
36
  "precommit": "npm run lint && npm run typecheck && npm run test",
61
- "prepublish": "npm run build",
37
+ "prepublish:npm": "npm run build",
38
+ "publish:npm": "npm publish",
62
39
  "test": "vitest run --coverage"
63
40
  }
64
41
  }
@@ -0,0 +1,22 @@
1
+ import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
2
+ import { Field, Float, ObjectType } from '@nestjs/graphql';
3
+ import { numericTransformer } from '../utils';
4
+
5
+ @ObjectType()
6
+ @Entity({ name: 'apy' })
7
+ export class Apy {
8
+ @PrimaryGeneratedColumn({ name: 'id' })
9
+ id: number;
10
+
11
+ @Field(() => Float, { nullable: false })
12
+ @Column({ name: 'monthly', type: 'decimal', precision: 30, scale: 2, transformer: numericTransformer })
13
+ monthly: number;
14
+
15
+ @Field(() => Float, { nullable: false })
16
+ @Column({ name: 'weekly', type: 'decimal', precision: 30, scale: 2, transformer: numericTransformer })
17
+ weekly: number;
18
+
19
+ @Field(() => Float, { nullable: false })
20
+ @Column({ name: 'daily', type: 'decimal', precision: 30, scale: 2, transformer: numericTransformer })
21
+ daily: number;
22
+ }
@@ -0,0 +1,5 @@
1
+ import { Entity } from 'typeorm';
2
+ import { FlatcoinPriceParent } from './flatcoin.price.parent';
3
+
4
+ @Entity({ name: 'flatcoin_prices_1d' })
5
+ export class FlatcoinPriceOneDay extends FlatcoinPriceParent {}
@@ -0,0 +1,5 @@
1
+ import { Entity } from 'typeorm';
2
+ import { FlatcoinPriceParent } from './flatcoin.price.parent';
3
+
4
+ @Entity({ name: 'flatcoin_prices_1m' })
5
+ export class FlatcoinPriceOneMonth extends FlatcoinPriceParent {}
@@ -0,0 +1,5 @@
1
+ import { Entity } from 'typeorm';
2
+ import { FlatcoinPriceParent } from './flatcoin.price.parent';
3
+
4
+ @Entity({ name: 'flatcoin_prices_1w' })
5
+ export class FlatcoinPriceOneWeek extends FlatcoinPriceParent {}
@@ -0,0 +1,5 @@
1
+ import { Entity } from 'typeorm';
2
+ import { FlatcoinPriceParent } from './flatcoin.price.parent';
3
+
4
+ @Entity({ name: 'flatcoin_prices_1y' })
5
+ export class FlatcoinPriceOneYear extends FlatcoinPriceParent {}
@@ -0,0 +1,24 @@
1
+ import { Entity, PrimaryGeneratedColumn, Column } from 'typeorm';
2
+ import { Field, ObjectType } from '@nestjs/graphql';
3
+
4
+ @ObjectType()
5
+ @Entity()
6
+ export abstract class FlatcoinPriceParent {
7
+ @PrimaryGeneratedColumn({ name: 'id' })
8
+ id: number;
9
+
10
+ @Field()
11
+ @Column({ name: 'price_usd', type: 'numeric', precision: 30 })
12
+ priceUsd: string;
13
+
14
+ @Field()
15
+ @Column({ name: 'price_usd_formatted', type: 'decimal', precision: 10, scale: 2 })
16
+ priceUsdFormatted: number;
17
+
18
+ @Field()
19
+ @Column({ name: 'timestamp', type: 'numeric', precision: 25 })
20
+ timestamp: number;
21
+
22
+ @Column({ name: 'block_number', type: 'numeric', precision: 25 })
23
+ blockNumber: number;
24
+ }
@@ -0,0 +1,5 @@
1
+ import { Entity } from 'typeorm';
2
+ import { FlatcoinPriceParent } from './flatcoin.price.parent';
3
+
4
+ @Entity({ name: 'flatcoin_prices' })
5
+ export class FlatcoinPrice extends FlatcoinPriceParent {}
@@ -0,0 +1,7 @@
1
+ export * from './apy';
2
+ export * from './flatcoin.price.one.day';
3
+ export * from './flatcoin.price.one.month';
4
+ export * from './flatcoin.price.one.week';
5
+ export * from './flatcoin.price.one.year';
6
+ export * from './flatcoin.price.parent';
7
+ export * from './flatcoin.price';
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './entity';
2
+ export * from './utils';
@@ -0,0 +1,25 @@
1
+ import { BigNumber } from 'ethers';
2
+
3
+ class ColumnNumericTransformer {
4
+ to(data: number): number {
5
+ return data;
6
+ }
7
+
8
+ from(data: string): number {
9
+ return parseFloat(data);
10
+ }
11
+ }
12
+
13
+ export const numericTransformer = new ColumnNumericTransformer();
14
+
15
+ class ColumnBigNumberTransformer {
16
+ to(data?: BigNumber): bigint | undefined {
17
+ return data?.toBigInt();
18
+ }
19
+
20
+ from(data?: bigint): BigNumber | null {
21
+ return data ? BigNumber.from(data) : null;
22
+ }
23
+ }
24
+
25
+ export const bigNumberTransformer = new ColumnBigNumberTransformer();
@@ -0,0 +1 @@
1
+ export * from './column.numeric.transformer';
package/tsconfig.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "compilerOptions": {
3
+ "module": "commonjs",
4
+ "declaration": true,
5
+ "strict": true,
6
+ "strictPropertyInitialization": false,
7
+ "removeComments": false,
8
+ "noLib": false,
9
+ "lib": ["es2017", "es2020.bigint"],
10
+ "emitDecoratorMetadata": true,
11
+ "esModuleInterop": true,
12
+ "useUnknownInCatchVariables": false,
13
+ "experimentalDecorators": true,
14
+ "target": "ES2021",
15
+ "sourceMap": false,
16
+ "outDir": "./dist",
17
+ "rootDir": "./src",
18
+ "skipLibCheck": true
19
+ },
20
+ "include": ["src/**/*"],
21
+ "exclude": ["node_modules", "**/*.spec.ts", "tests"]
22
+ }
@@ -1,39 +0,0 @@
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
@@ -1 +0,0 @@
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":[]}
@@ -1,31 +0,0 @@
1
- declare class Apy {
2
- id: number;
3
- monthly: number;
4
- weekly: number;
5
- daily: number;
6
- }
7
-
8
- declare abstract class FlatcoinPriceParent {
9
- id: number;
10
- priceUsd: string;
11
- priceUsdFormatted: number;
12
- timestamp: number;
13
- blockNumber: number;
14
- }
15
-
16
- declare class FlatcoinPriceOneDay extends FlatcoinPriceParent {
17
- }
18
-
19
- declare class FlatcoinPriceOneMonth extends FlatcoinPriceParent {
20
- }
21
-
22
- declare class FlatcoinPriceOneWeek extends FlatcoinPriceParent {
23
- }
24
-
25
- declare class FlatcoinPriceOneYear extends FlatcoinPriceParent {
26
- }
27
-
28
- declare class FlatcoinPrice extends FlatcoinPriceParent {
29
- }
30
-
31
- export { Apy, FlatcoinPrice, FlatcoinPriceOneDay, FlatcoinPriceOneMonth, FlatcoinPriceOneWeek, FlatcoinPriceOneYear, FlatcoinPriceParent };
@@ -1,109 +0,0 @@
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 {
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);
30
-
31
- // src/entity/flatcoin.price.one.day.ts
32
- import { Entity as Entity3 } from "typeorm";
33
-
34
- // src/entity/flatcoin.price.parent.ts
35
- import { Entity as Entity2, PrimaryGeneratedColumn as PrimaryGeneratedColumn2, Column as Column2 } from "typeorm";
36
- import { Field as Field2, ObjectType as ObjectType2 } from "@nestjs/graphql";
37
- var FlatcoinPriceParent = class {
38
- };
39
- __decorateClass([
40
- PrimaryGeneratedColumn2({ name: "id" })
41
- ], FlatcoinPriceParent.prototype, "id", 2);
42
- __decorateClass([
43
- Field2(),
44
- Column2({ name: "price_usd", type: "numeric", precision: 30 })
45
- ], FlatcoinPriceParent.prototype, "priceUsd", 2);
46
- __decorateClass([
47
- Field2(),
48
- Column2({ name: "price_usd_formatted", type: "decimal", precision: 10, scale: 2 })
49
- ], FlatcoinPriceParent.prototype, "priceUsdFormatted", 2);
50
- __decorateClass([
51
- Field2(),
52
- Column2({ name: "timestamp", type: "numeric", precision: 25 })
53
- ], FlatcoinPriceParent.prototype, "timestamp", 2);
54
- __decorateClass([
55
- Column2({ name: "block_number", type: "numeric", precision: 25 })
56
- ], FlatcoinPriceParent.prototype, "blockNumber", 2);
57
- FlatcoinPriceParent = __decorateClass([
58
- ObjectType2(),
59
- Entity2()
60
- ], FlatcoinPriceParent);
61
-
62
- // src/entity/flatcoin.price.one.day.ts
63
- var FlatcoinPriceOneDay = class extends FlatcoinPriceParent {
64
- };
65
- FlatcoinPriceOneDay = __decorateClass([
66
- Entity3({ name: "flatcoin_prices_1d" })
67
- ], FlatcoinPriceOneDay);
68
-
69
- // src/entity/flatcoin.price.one.month.ts
70
- import { Entity as Entity4 } from "typeorm";
71
- var FlatcoinPriceOneMonth = class extends FlatcoinPriceParent {
72
- };
73
- FlatcoinPriceOneMonth = __decorateClass([
74
- Entity4({ name: "flatcoin_prices_1m" })
75
- ], FlatcoinPriceOneMonth);
76
-
77
- // src/entity/flatcoin.price.one.week.ts
78
- import { Entity as Entity5 } from "typeorm";
79
- var FlatcoinPriceOneWeek = class extends FlatcoinPriceParent {
80
- };
81
- FlatcoinPriceOneWeek = __decorateClass([
82
- Entity5({ name: "flatcoin_prices_1w" })
83
- ], FlatcoinPriceOneWeek);
84
-
85
- // src/entity/flatcoin.price.one.year.ts
86
- import { Entity as Entity6 } from "typeorm";
87
- var FlatcoinPriceOneYear = class extends FlatcoinPriceParent {
88
- };
89
- FlatcoinPriceOneYear = __decorateClass([
90
- Entity6({ name: "flatcoin_prices_1y" })
91
- ], FlatcoinPriceOneYear);
92
-
93
- // src/entity/flatcoin.price.ts
94
- import { Entity as Entity7 } from "typeorm";
95
- var FlatcoinPrice = class extends FlatcoinPriceParent {
96
- };
97
- FlatcoinPrice = __decorateClass([
98
- Entity7({ name: "flatcoin_prices" })
99
- ], FlatcoinPrice);
100
- export {
101
- Apy,
102
- FlatcoinPrice,
103
- FlatcoinPriceOneDay,
104
- FlatcoinPriceOneMonth,
105
- FlatcoinPriceOneWeek,
106
- FlatcoinPriceOneYear,
107
- FlatcoinPriceParent
108
- };
109
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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"]}
package/dist/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
-
2
- export { }
package/dist/index.js DELETED
@@ -1 +0,0 @@
1
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,14 +0,0 @@
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 };
@@ -1,9 +0,0 @@
1
- import {
2
- bigNumberTransformer,
3
- numericTransformer
4
- } from "../chunk-YD2VGIAX.js";
5
- export {
6
- bigNumberTransformer,
7
- numericTransformer
8
- };
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,4 +0,0 @@
1
- {
2
- "type": "module",
3
- "main": "../dist/entity/index.js"
4
- }
@@ -1,4 +0,0 @@
1
- {
2
- "type": "module",
3
- "main": "../dist/utils/index.js"
4
- }