This repository has been archived by the owner on Jan 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enable basic linting * add config for mythrill
- Loading branch information
Showing
11 changed files
with
3,357 additions
and
1,321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"extends": "solhint:recommended", | ||
"rules": { | ||
"compiler-version": ["error", "0.8.18"], | ||
"func-visibility": ["warn", { "ignoreConstructors": true }], | ||
"prettier/prettier": "error", | ||
"no-global-import": "off" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
NETWORK ?= localnet | ||
|
||
check: | ||
slither . --config-file ./slither.config.json | ||
|
||
lint: | ||
solhint 'src/**/*.sol' | ||
|
||
check-gateway: | ||
docker run --rm -v $(shell pwd):/app -w /app mythril/myth:latest -v4 analyze --solc-json remappings.json ./src/Gateway.sol --solv 0.8.19 | ||
|
||
check-subnet: | ||
docker run --rm -v $(shell pwd):/app -w /app mythril/myth:latest -v4 analyze --solc-json remappings.json ./src/SubnetActor.sol --solv 0.8.19 | ||
|
||
deploy-ipc: | ||
./ops/deploy.sh $(NETWORK) | ||
|
||
.PHONY: deploy-ipc | ||
.PHONY: deploy-ipc check lint check-subnet check-gateway |
Oops, something went wrong.