-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from valory-xyz/vote_weighting_fuzzing
Vote weighting fuzzing
- Loading branch information
Showing
17 changed files
with
6,671 additions
and
247 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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,18 @@ | ||
# Fuzzing VoteWeighting | ||
|
||
## Prepare contracts for fuzzing | ||
contracts/test/VoteWeightingFuzzing.sol <br> | ||
contracts/test/EchidnaVoteWeightingAssert.sol <br> | ||
|
||
## Fuzzing | ||
```sh | ||
# Move the script to the root of the project | ||
cp start_echidna.sh ../../../ | ||
# Move config file to the root of the project | ||
cp echidna_assert.yaml ../../../ | ||
cd ../../../ | ||
# Run | ||
./start_echidna.sh | ||
``` | ||
result overflow: [fuzzing-overflow.PNG](fuzzing-overflow.PNG) <br> | ||
result assert: [fuzzing-assert.PNG](fuzzing-assert.PNG) |
2,072 changes: 2,072 additions & 0 deletions
2,072
audits/internal11/fuzzing/corpusEchidna/covered.1713373564.html
Large diffs are not rendered by default.
Oops, something went wrong.
2,073 changes: 2,073 additions & 0 deletions
2,073
audits/internal11/fuzzing/corpusEchidna/covered.1713373572.html
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,10 @@ | ||
#testMode: overflow | ||
testMode: assertion | ||
coverage: true | ||
corpusDir: corpusEchidna | ||
coverageFormats: ["html"] | ||
# maxBlockDelay: 12 | ||
# provide solc remappings to crytic-compile | ||
# https://www.justinsilver.com/technology/programming/slither-echidna-remappings/ | ||
cryticArgs: ['--solc-remaps', '@=node_modules/@'] | ||
|
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,10 @@ | ||
testMode: overflow | ||
#testMode: assertion | ||
coverage: true | ||
corpusDir: corpusEchidna | ||
coverageFormats: ["html"] | ||
# maxBlockDelay: 12 | ||
# provide solc remappings to crytic-compile | ||
# https://www.justinsilver.com/technology/programming/slither-echidna-remappings/ | ||
cryticArgs: ['--solc-remaps', '@=node_modules/@'] | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,4 @@ | ||
#!/bin/bash | ||
|
||
rm -rf corpusEchidna/ | ||
echidna contracts/test/EchidnaVoteWeightingAssert.sol --contract EchidnaVoteWeightingAssert --config echidna_assert.yaml |
Oops, something went wrong.