Skip to content

Commit

Permalink
Added gas cost script
Browse files Browse the repository at this point in the history
  • Loading branch information
alsco77 committed Jun 29, 2020
1 parent 98d4682 commit 8921585
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions buidler.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ export default {
gasReporter: {
currency: "USD",
gasPrice: 30,
enabled: process.env.REPORT_GAS === "true" ? true : false,
},
};
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"lint-sol": "solium -d contracts/ --fix ",
"coverage": "yarn buidler coverage --network coverage --solcoverjs ./.solcover.js --testfiles 'test/**/Test*.ts' --show-stack-traces",
"script": "yarn truffle exec ./scripts/main.js",
"test": "yarn run test-prep; yarn buidler test;",
"test": "yarn run test-prep; export REPORT_GAS=false && yarn buidler test;",
"test:fork": "yarn run test-prep; yarn buidler test --network fork;",
"test-prep": "yarn run compile; yarn run generate-typings;",
"test-lite": " yarn buidler test",
"test-gas-cost": "yarn run test-prep; yarn buidler test --network localhost",
"test-gas-cost": "yarn run test-prep; export REPORT_GAS=true && yarn buidler test --network localhost",
"compile": "yarn buidler compile --force",
"generate-typings": "rimraf ./types/generated && typechain --target 'truffle-v5' --outDir types/generated './build/contracts/*.json'",
"prettify": "prettier --write test/*.ts test/**/*.ts types/generated/*.ts types/*.ts artifacts/*.ts",
Expand Down Expand Up @@ -80,4 +80,4 @@
"_moduleAliases": {
"@utils": "transpiled/test-utils"
}
}
}

0 comments on commit 8921585

Please sign in to comment.