Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(script): change init script #5

Merged
merged 2 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@ you should install following tools:

```shell
pnpm init
pnpm install:slither
```
11 changes: 6 additions & 5 deletions init.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
#!/bin/bash

# foundry
curl -L https://foundry.paradigm.xyz | bash && foundryup
# slither
pip3 install slither-analyzer
pip3 install solc-select
solc-select install 0.8.20
solc-select use 0.8.20

pip3 install slither-analyzer &&
pip3 install solc-select &&
solc-select install 0.8.20 &&
solc-select use 0.8.20
#mythril
docker pull mythril/myth
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
"main": "index.js",
"scripts": {
"prepare": "husky install",
"init": "sh init.sh",
"build": "forge build",
"test": "forge test",
"lint:sol": "solhint src/**/*.sol script/**/*.sol test/**/*.sol",
"slither": "slither .",
"mythril": "docker run -v $(pwd):/code --workdir /code mythril/myth analyze src/*.sol --solc-json mythril.config.json",
"format:sol": "prettier --write --plugin=prettier-plugin-solidity src/**/*.sol script/**/*.sol test/**/*.sol",
"init": "sh init.sh"
"format:sol": "prettier --write --plugin=prettier-plugin-solidity src/**/*.sol script/**/*.sol test/**/*.sol"
},
"repository": {
"type": "git",
Expand Down
Loading