File tree Expand file tree Collapse file tree 6 files changed +442
-19
lines changed Expand file tree Collapse file tree 6 files changed +442
-19
lines changed Original file line number Diff line number Diff line change 34
34
- name : Build
35
35
run : yarn build
36
36
- name : Test
37
- run : yarn workspace @mimic-fi/v3-tasks test
37
+ run : REPORT_GAS=true yarn workspace @mimic-fi/v3-tasks test
38
+ - name : Gas Report
39
+ env :
40
+ CC_SECRET : ${{ secrets.CODECHECKS_SECRET }}
41
+ run : yarn workspace @mimic-fi/v3-tasks codechecks
Original file line number Diff line number Diff line change 5
5
dist
6
6
.certora_internal
7
7
.certora_recent_jobs.json
8
+ gasReporterOutput.json
8
9
* .log
Original file line number Diff line number Diff line change
1
+ name : Codechecks
2
+ description : Run codechecks for gas reports
3
+
4
+ checks :
5
+ - name : eth-gas-reporter/codechecks
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import '@nomiclabs/hardhat-ethers'
2
2
import '@nomiclabs/hardhat-waffle'
3
3
import '@mimic-fi/v3-helpers/dist/tests'
4
4
import 'hardhat-local-networks-config-plugin'
5
+ import 'hardhat-gas-reporter'
5
6
6
7
import { homedir } from 'os'
7
8
import path from 'path'
@@ -17,4 +18,10 @@ export default {
17
18
} ,
18
19
} ,
19
20
} ,
21
+ gasReporter : {
22
+ outputFile : 'gasReporterOutput.json' ,
23
+ enabled : ! ! process . env . REPORT_GAS ,
24
+ noColors : true ,
25
+ excludeContracts : [ 'Mock' ] ,
26
+ } ,
20
27
}
Original file line number Diff line number Diff line change 31
31
"@quant-finance/solidity-datetime" : " 2.2.0"
32
32
},
33
33
"devDependencies" : {
34
+ "@codechecks/client" : " ^0.1.12" ,
34
35
"@nomiclabs/hardhat-ethers" : " ^2.2.3" ,
35
36
"@nomiclabs/hardhat-waffle" : " 2.0.3" ,
36
37
"@types/chai" : " ^4.3.5" ,
41
42
"ethereum-waffle" : " ^3.4.4" ,
42
43
"ethers" : " ~5.6.0" ,
43
44
"hardhat" : " ^2.14.1" ,
45
+ "hardhat-gas-reporter" : " ^1.0.9" ,
44
46
"hardhat-local-networks-config-plugin" : " ^0.0.6" ,
45
47
"mocha" : " ^10.2.0" ,
46
48
"solhint-config-mimic" : " ^0.0.3" ,
You can’t perform that action at this time.
0 commit comments