1
+ name : Diffusc (fork mode)
2
+
3
+ on :
4
+ push :
5
+ paths-ignore :
6
+ - " **.md"
7
+ - " **.rs"
8
+ branches :
9
+ - main
10
+ pull_request :
11
+ schedule :
12
+ # run CI every day even if no PRs/merges occur
13
+ - cron : ' 0 12 * * *'
14
+
15
+ jobs :
16
+ tests :
17
+ name : ${{ matrix.name }}
18
+ runs-on : ubuntu-22.04
19
+ strategy :
20
+ fail-fast : false
21
+ max-parallel : 2
22
+ matrix :
23
+ include :
24
+ - name : Safemoon
25
+ args : 0x0296201bfdfb410c29ef30bcae1b395537aeeb31 0xEb11a0a0beF1AC028B8C2d4CD64138DD5938cA7A -p 0x42981d0bfbAf196529376EE702F2a9Eb9092fcB5 -n bsc -v 0.8.11
26
+ block : 26857408
27
+ rpckey : BSC_RPC_URL
28
+ apikey : BSC_API_KEY
29
+
30
+ # - name: Compound
31
+ # args: 0x75442Ac771a7243433e033F3F8EaB2631e22938f 0x374ABb8cE19A73f2c4EFAd642bda76c797f19233 -t 0x6C8c6b02E7b2BE14d4fA6022Dfd6d75921D90E4E,0xc00e94Cb662C3520282E6f5717214004A7f26888 -p 0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B -u -v 0.8.10 -T --token-holder 0x309d413391e975B553B7B8D19bC11F8a6c2eB889
32
+ # block: 13322797
33
+ # rpckey: ETHEREUM_RPC_URL
34
+ # apikey: ETHEREUM_API_KEY
35
+
36
+ - name : AnkrRewardEarningBNB
37
+ args : 0xE380B02b16e050c2801CcA83461916FEca652ecF 0x952398318838b4915ee5E800622a9613887759f5 -p 0xfe39985D7eFF914c50A06bA0cFfcCA8361e00C0e -t 0x52F24a5e03aee338Da5fd9Df68D2b6FAe1178827:0x2c00CE1a935FF8c9e78580533e2E17c36281c26E -T -n bsc -v 0.8.16
38
+ block : 28261629
39
+ rpckey : BSC_RPC_URL
40
+ apikey : BSC_API_KEY
41
+
42
+ - name : DeusFinanceDEI
43
+ args : 0x1472b3081d81b792e697aea90accbbc4adc5baf9 0xbc1b62db243b51dabcd9540473324f36e094ec55 -p 0xde1e704dae0b4051e80dabb26ab6ad6c12262da0 -n arbi -v 0.8.4
44
+ block : 87626025
45
+ rpckey : ARBITRUM_RPC_URL
46
+ apikey : ARBITRUM_API_KEY
47
+
48
+ # - name: ExactlyRewardController
49
+ # args: 0x3a31a7e94b30bd92151b4711522f118902977c3c 0xc91dc7a797cd5fbcf6f334c792a2b24eff55292c -p 0xBd1ba78A3976cAB420A9203E6ef14D18C2B2E031 -t 0x81C9A7B55A4df39A9B7B5F781ec0e53539694873:0xaec84eac74981ab22905919cb282b78c7ca782df,0xc4d4500326981eacD020e20A81b1c479c161c7EF:0xbd9c70db872fdd9029ee5fa2a0ea30eabf7a1583 -n optim -v 0.8.11
50
+ # block: 99811370
51
+ # rpckey: OPTIMISM_RPC_URL
52
+ # apikey: OPTIMISM_API_KEY
53
+
54
+ steps :
55
+ - name : Checkout repository
56
+ uses : actions/checkout@v3
57
+
58
+ - name : Setup Python 3.10
59
+ uses : actions/setup-python@v4
60
+ with :
61
+ python-version : ' 3.10'
62
+
63
+ - name : Install diffusc
64
+ run : |
65
+ pip3 install .
66
+ sudo cp bin/echidna /usr/local/bin
67
+ solc-select install 0.8.17
68
+ solc-select use 0.8.17
69
+
70
+ - name : Restore cached contracts/slots
71
+ id : cache-restore
72
+ uses : actions/cache/restore@v3
73
+ with :
74
+ path : |
75
+ ${{ matrix.name }}/corpus/cache
76
+ ${{ matrix.name }}/crytic-cache
77
+ key : cache=${{ matrix.name }}
78
+
79
+ - name : Run diffusc
80
+ id : prepare
81
+ run : |
82
+ #rm -rf crytic-export contracts
83
+ diffusc ${{ matrix.args }} -d ${{ matrix.name }} -L 200000 -r
84
+ env :
85
+ ECHIDNA_RPC_BLOCK : ${{ matrix.block }}
86
+ ECHIDNA_RPC_URL : ${{ secrets[matrix.rpckey] }}
87
+ ETHERSCAN_API_KEY : ${{ secrets[matrix.apikey] }}
88
+
89
+ # - name: Save cache
90
+ # uses: actions/cache/save@v3
91
+ # if: ${{ always() }}
92
+ # with:
93
+ # path: ${{ matrix.name }}/corpus/cache
94
+ # key: ${{ steps.cache-restore.outputs.cache-primary-key }}
0 commit comments