Add Governor contracts (#2672)

Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
This commit is contained in:
Hadrien Croubois
2021-07-16 17:44:01 +02:00
committed by GitHub
parent f88e555234
commit 6c1a634053
39 changed files with 5302 additions and 377 deletions

View File

@ -23,6 +23,8 @@ for (const f of fs.readdirSync(path.join(__dirname, 'hardhat'))) {
require(path.join(__dirname, 'hardhat', f));
}
const withOptimizations = argv.enableGasReport || argv.compileMode === 'production';
/**
* @type import('hardhat/config').HardhatUserConfig
*/
@ -31,7 +33,7 @@ module.exports = {
version: '0.8.3',
settings: {
optimizer: {
enabled: argv.enableGasReport || argv.compileMode === 'production',
enabled: withOptimizations,
runs: 200,
},
},
@ -39,6 +41,7 @@ module.exports = {
networks: {
hardhat: {
blockGasLimit: 10000000,
allowUnlimitedContractSize: !withOptimizations,
},
},
gasReporter: {