added script for checking token sanity

This commit is contained in:
Michael George
2021-12-17 09:36:01 -05:00
parent 44cedd5ea2
commit 2304dd7bb1
3 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,5 @@
import "../munged/token/ERC20/extensions/draft-ERC20Permit.sol";
contract ERC20PermitHarness is ERC20Permit {
}

View File

@ -0,0 +1,9 @@
import "../munged/token/ERC20/extensions/ERC20Wrapper.sol";
contract ERC20WrapperHarness is ERC20Wrapper {
constructor(IERC20 underlyingToken, string memory _name, string memory _symbol)
ERC20Wrapper(underlyingToken)
{}
}

17
certora/scripts/sanityTokens.sh Executable file
View File

@ -0,0 +1,17 @@
#!/bin/bash
make -C certora munged
for f in certora/harnesses/{ERC20Votes,ERC20Wrapper,ERC20Permit}Harness.sol
do
echo "Processing $f"
file=$(basename $f)
echo ${file%.*}
certoraRun certora/harnesses/$file \
--verify ${file%.*}:certora/specs/sanity.spec "$@" \
--solc solc8.2 --staging \
--optimistic_loop \
--msg "checking sanity on ${file%.*}" \
--settings -copyLoopUnroll=4 \
--send_only
done