Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-aurele-besner committed Apr 3, 2022
1 parent 8e2a2b2 commit b4a4669
Show file tree
Hide file tree
Showing 14 changed files with 423 additions and 259 deletions.
Empty file added .github/.gitkeep
Empty file.
25 changes: 0 additions & 25 deletions .github/workflows/prettier.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/tslint.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,8 @@ typings/
# next.js build output
.next

# Work in progress
.wip

# hardhat-project
dist/
5 changes: 4 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
test/
test/

# Work in progress
.wip
5 changes: 4 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
node_modules
node_modules

# Work in progress
.wip
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,24 @@ import hardhatAwesomeCli from 'hardhat-awesome-cli'
## 💪 Done
- Run test on all or single test file (from all your file in test/)
- Run scripts on all or single scripts file (from all your file in scripts/)
- Settings:
- Setup chains, RPC and accounts:
- Activate/Disable chain to show on test/scripts options
- Build .env file with rpc url and private key (or mnemonic)
- More settings
- Exclude files from, tests and scripts selection (useful for config and share helper file)
- Create Mock contracts (ERC20, ERC721, ERC1155 + Upgradeable version)
- Add @openzeppelin/contracts || @openzeppelin/contracts-upgradeable if not already installed

## 🏗️ To do:
- Inject chain settings, rpc and accounts in hardhat.config
- Offer to generate deployment script and test script for Mock contract created
- Deployment contract generator
- Run coverage test (if solidity-coverage is installed)
- Setup chains, RPC and accounts:
- Disabling chains seams to be broken
- More Settings:
- Create github workflows file to run test and coverage test
- Setup slack API or email report to receive a copy of test result and contracts list deployed
- Add other hardhat plugins
- Add tool to log all contracts deploy on each chain (1 unique contractName/chain + full log)
- Add option to create Admin Proxy and Transparent proxy w/ appropriate deployment scripts
62 changes: 39 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@
"bugs": {
"url": "https://github.com/marc-aurele-besner/hardhat-easy-cli/issues"
},
"types": "dist/src/index.d.ts",
"keywords": [
"hardhat",
"hardhat-plugin",
"cli",
"test",
"deploy",
"deployment"
"deployment",
"smart-contracts"
],
"files": [
"dist/src/",
Expand All @@ -26,7 +29,7 @@
"README.md"
],
"scripts": {
"lint:fix": "prettier --write src/index.ts && tslint --fix --config tslint.json --project tsconfig.json",
"lint:fix": "prettier --write src/**/*.{js,ts} && tslint --fix --config tslint.json --project tsconfig.json",
"lint": "tslint --config tslint.json --project tsconfig.json",
"test": "scripts/run-tests.sh",
"prepublishOnly": "tsc --project tsconfig.prod.json",
Expand All @@ -35,6 +38,7 @@
"watch": "tsc -w"
},
"devDependencies": {
"@types/inquirer": "^8.2.1",
"@types/mocha": "^9.1.0",
"@types/node": "^17.0.23",
"hardhat": "^2.9.2",
Expand All @@ -50,9 +54,6 @@
"hardhat": "^2.0.2"
},
"dependencies": {
"@openzeppelin/contracts": "^4.5.0",
"@openzeppelin/contracts-upgradeable": "^4.5.2",
"chalk": "^4.1.2",
"dotenv": "^16.0.0",
"fs": "^0.0.1-security",
"inquirer": "^8.2.2"
Expand Down
5 changes: 5 additions & 0 deletions src/AwesomeCliEnvironmentField.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export class AwesomeCliEnvironmentField {
public sayHello() {
return 'hello'
}
}
Loading

0 comments on commit b4a4669

Please sign in to comment.