Skip to content

Commit

Permalink
revert depreciated evm-utils & sol-utils packages. (#837)
Browse files Browse the repository at this point in the history
* revert depreciated evm-utils & sol-utils packages.
  • Loading branch information
b4rtaz authored Nov 21, 2022
1 parent 802597a commit 5cc48bd
Show file tree
Hide file tree
Showing 10 changed files with 100 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/evmUtils/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @moralisweb3/evm-utils

🚨 This package is depreciated. Please use the `@moralisweb3/common-evm-utils` package instead.
23 changes: 23 additions & 0 deletions packages/evmUtils/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "@moralisweb3/evm-utils",
"author": "Moralis",
"version": "2.7.4",
"license": "MIT",
"private": false,
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"sideEffects": false,
"files": [
"lib/*"
],
"scripts": {
"clean": "rm -rf lib && rm -rf tsconfig.tsbuildinfo && rm -rf tsconfig.build.tsbuildinfo && rm -rf ./node_modules/.cache/nx",
"build": "tsc -p tsconfig.build.json"
},
"devDependencies": {
"typescript": "^4.5.5"
},
"dependencies": {
"@moralisweb3/common-evm-utils": "^2.7.4"
}
}
6 changes: 6 additions & 0 deletions packages/evmUtils/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from '@moralisweb3/common-evm-utils';

// eslint-disable-next-line no-console
console.warn(
'moralis: @moralisweb3/evm-utils package is depreciated. Please use @moralisweb3/common-evm-utils instead',
);
9 changes: 9 additions & 0 deletions packages/evmUtils/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./lib/",
"declarationDir": "./lib/",
"rootDir": "./src"
},
"exclude": ["test/**/*", "**/__mocks__/*", "**/test/*", "**/*.test.ts", "integration/**/*"]
}
9 changes: 9 additions & 0 deletions packages/evmUtils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.package.json",
"compilerOptions": {
"outDir": "./lib",
"declarationDir": "./lib/",
"rootDir": "./src"
},
"include": ["src/**/*", "types/**/*"]
}
3 changes: 3 additions & 0 deletions packages/solUtils/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# @moralisweb3/sol-utils

🚨 This package is depreciated. Please use the `@moralisweb3/common-sol-utils` package instead.
23 changes: 23 additions & 0 deletions packages/solUtils/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "@moralisweb3/sol-utils",
"author": "Moralis",
"version": "2.7.4",
"license": "MIT",
"private": false,
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"sideEffects": false,
"files": [
"lib/*"
],
"scripts": {
"clean": "rm -rf lib && rm -rf tsconfig.tsbuildinfo && rm -rf tsconfig.build.tsbuildinfo && rm -rf ./node_modules/.cache/nx",
"build": "tsc -p tsconfig.build.json"
},
"devDependencies": {
"typescript": "^4.5.5"
},
"dependencies": {
"@moralisweb3/common-sol-utils": "^2.7.4"
}
}
6 changes: 6 additions & 0 deletions packages/solUtils/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
export * from '@moralisweb3/common-sol-utils';

// eslint-disable-next-line no-console
console.warn(
'moralis: @moralisweb3/sol-utils package is depreciated. Please use @moralisweb3/common-sol-utils instead',
);
9 changes: 9 additions & 0 deletions packages/solUtils/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./lib/",
"declarationDir": "./lib/",
"rootDir": "./src"
},
"exclude": ["test/**/*", "**/__mocks__/*", "**/test/*", "**/*.test.ts", "integration/**/*"]
}
9 changes: 9 additions & 0 deletions packages/solUtils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.package.json",
"compilerOptions": {
"outDir": "./lib",
"declarationDir": "./lib/",
"rootDir": "./src"
},
"include": ["src/**/*", "types/**/*"]
}

1 comment on commit 5cc48bd

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test coverage

Title Lines Statements Branches Functions
api-utils Coverage: 24%
25.68% (47/183) 19.56% (9/46) 22.85% (8/35)
auth Coverage: 94%
95.38% (124/130) 81.81% (18/22) 95.45% (42/44)
evm-api Coverage: 97%
97.46% (77/79) 66.66% (6/9) 95.74% (45/47)
common-evm-utils Coverage: 64%
65% (938/1443) 19.93% (123/617) 35.89% (201/560)
sol-api Coverage: 96%
96.66% (29/30) 66.66% (6/9) 91.66% (11/12)
common-sol-utils Coverage: 74%
73.77% (135/183) 60% (12/20) 65.67% (44/67)
common-streams-utils Coverage: 95%
95.6% (674/705) 97.93% (190/194) 100% (244/244)
streams Coverage: 87%
87.64% (525/599) 68.26% (71/104) 84.52% (142/168)

Please sign in to comment.