Skip to content

Commit 94e571f

Browse files
Certora Review (#812) (#814)
Co-authored-by: Michael Morami <[email protected]>
1 parent a00f28e commit 94e571f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1896
-3931
lines changed

.github/workflows/certora.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: certora
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
workflow_dispatch:
12+
13+
jobs:
14+
verify:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
- name: Check key
21+
env:
22+
CERTORAKEY: ${{ secrets.CERTORAKEY }}
23+
run: echo "key length" ${#CERTORAKEY}
24+
25+
- name: Install python
26+
uses: actions/setup-python@v2
27+
with: { python-version: 3.9 }
28+
29+
- name: Install java
30+
uses: actions/setup-java@v1
31+
with: { java-version: "11", java-package: jre }
32+
33+
- name: Install certora cli
34+
run: pip install certora-cli
35+
36+
- name: Install solc
37+
run: |
38+
wget https://github.com/ethereum/solidity/releases/download/v0.8.10/solc-static-linux
39+
chmod +x solc-static-linux
40+
sudo mv solc-static-linux /usr/local/bin/solc8.10
41+
42+
- name: Verify rule ${{ matrix.rule }}
43+
run: |
44+
cd certora
45+
touch applyHarness.patch
46+
make munged
47+
cd ..
48+
echo "key length" ${#CERTORAKEY}
49+
sh certora/scripts/${{ matrix.rule }}
50+
env:
51+
CERTORAKEY: ${{ secrets.CERTORAKEY }}
52+
53+
strategy:
54+
fail-fast: false
55+
max-parallel: 16
56+
matrix:
57+
rule:
58+
- verifyAToken.sh
59+
- verifyPool.sh getReserveNormalizedVariableDebtCheck
60+
- verifyReserveConfiguration.sh
61+
- verifyStableTokenCLI.sh
62+
- verifyUserConfigCLI.sh
63+
- verifyVariableTokenCLI.sh

.gitignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,12 @@ coverage
1818
.coverage_cache
1919
.coverage_contracts
2020
coverage.json
21-
deployments/
21+
deployments/
22+
23+
#certora
24+
.certora*
25+
.certora*.json
26+
**.last_conf*
27+
certora-logs
28+
certora_debug_log.txt
29+
resource_errors.json

0 commit comments

Comments
 (0)