Skip to content

Commit

Permalink
add slither analysis (#487)
Browse files Browse the repository at this point in the history
* add slither

* add slither script & update package.json

Co-authored-by: Hal Hyatt <feewet@gmail.com>
  • Loading branch information
hal909 and feewet committed Feb 19, 2021
1 parent b818976 commit 8dbce63
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
7 changes: 4 additions & 3 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "truecurrency",
"name": "trusttoken-smart-contracts",
"version": "2.0.0",
"description": "",
"description": "TrueFi and True Currency Smart Contracts",
"scripts": {
"postinstall": "patch-package",
"flatten": "./flatten.sh",
Expand All @@ -16,7 +16,8 @@
"build": "yarn clean && yarn build:sol && yarn build:types && bash ./indexBuild.sh",
"test": "mocha",
"checks": "yarn lint && yarn typecheck && yarn test",
"docs": "npx solidity-docgen --solc-module solc-0.6 -i contracts -o docs"
"docs": "npx solidity-docgen --solc-module solc-0.6 -i contracts -o docs",
"slither": "./slither.sh"
},
"author": "",
"license": "SEE LICENSE IN LICENSE.md",
Expand Down
6 changes: 6 additions & 0 deletions slither.config.json
@@ -0,0 +1,6 @@
{
"exclude_informational": true,
"exclude_low": false,
"solc_disable_warnings": true,
"detectors_to_exclude": ""
}
17 changes: 17 additions & 0 deletions slither.sh
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
pip3 install slither-analyzer
pip3 install solc-select
solc-select install 0.6.10
solc-select use 0.6.10

yarn flatten

slither flatten/GovernorAlpha.sol --print human-summary
slither flatten/Liquidator.sol --print human-summary
slither flatten/LoanFactory.sol --print human-summary
slither flatten/LoanToken.sol --print human-summary
slither flatten/StkTruToken.sol --print human-summary
slither flatten/TrueLender.sol --print human-summary
slither flatten/TrueRatingAgencyV2.sol --print human-summary
slither flatten/TrustToken.sol --print human-summary
slither flatten/TimeLock.sol --print human-summary

0 comments on commit 8dbce63

Please sign in to comment.