Skip to content

Commit

Permalink
Enable automated analysis using Oyente
Browse files Browse the repository at this point in the history
  • Loading branch information
protinam committed Dec 6, 2017
1 parent 0c07955 commit 6a3e1c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -68,7 +68,7 @@ Final output will be written to [docs](docs), which will be automatically publis

#### Misc

Run automated smart contract analysis (*presently disabled*):
Run automated smart contract analysis (requires [Oyente](https://github.com/melonproject/oyente)):

```bash
yarn analyze
Expand Down
17 changes: 6 additions & 11 deletions scripts/analyze.sh
@@ -1,15 +1,10 @@
#!/bin/sh

echo 'Warning: at the moment, this script does *not* autodetect new Solidity source files; you must edit it manually to add a new contract.'
echo 'Script temporarily disabled!'
yarn flatten

exit 0
alias oyente="docker run -v $(pwd):/opt luongnguyen/oyente /oyente/oyente/oyente.py"

# this is too buggy, need to update that library or use something else

node node_modules/solidity-static-analysis/analyse.js \
-s contracts/token/DelayedReleaseToken.sol \
-s contracts/token/UTXORedeemableToken.sol \
-s contracts/WyvernToken.sol
# -s contracts/dao/DelegatedShareholderAssociation.sol \
# -s contracts/WyvernDAO.sol
for contract in $(ls temp/); do
echo "Analyzing $contract..."
oyente -s /opt/temp/$contract
done

0 comments on commit 6a3e1c0

Please sign in to comment.