Skip to content

Commit b4cb127

Browse files
committed
Fix ERC20Distribution test cases bad file copy
Add gas cost calculation test script Add launch cost calculation test script
1 parent f4b99a6 commit b4cb127

7 files changed

Lines changed: 1273 additions & 229 deletions

File tree

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
REPORT_GAS=false
2+
COINMARKETCAP=
3+
ETHERSCAN_API_KEY=

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.env
12
node_modules
23

34
#Hardhat files

hardhat.config.js

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
require("@nomiclabs/hardhat-waffle");
22
require('dotenv').config();
3+
require("hardhat-gas-reporter");
34

45
// This is a sample Hardhat task. To learn how to create your own go to
56
// https://hardhat.org/guides/create-task.html
@@ -55,5 +56,22 @@ module.exports = {
5556
},
5657

5758
},
58-
solidity: "0.8.0",
59+
solidity: {
60+
version: "0.8.2",
61+
settings: {
62+
optimizer: {
63+
enabled: true,
64+
runs: 300
65+
}
66+
},
67+
},
68+
gasReporter: {
69+
enabled: process.env.REPORT_GAS !== undefined,
70+
currency: "USD",
71+
gasPrice: 179,
72+
coinmarketcap: process.env.COINMARKETCAP,
73+
},
74+
etherscan: {
75+
apiKey: process.env.ETHERSCAN_API_KEY,
76+
},
5977
};

0 commit comments

Comments
 (0)