2021-06-03 20:56:46 +02:00
|
|
|
require('@nomiclabs/hardhat-waffle')
|
2021-07-06 23:11:30 +02:00
|
|
|
require('@eth-optimism/hardhat-ovm')
|
2021-06-03 20:56:46 +02:00
|
|
|
require('dotenv').config()
|
|
|
|
|
|
|
|
const config = {
|
|
|
|
solidity: {
|
2021-07-06 23:10:18 +02:00
|
|
|
version: '0.7.6',
|
2021-06-03 20:56:46 +02:00
|
|
|
settings: {
|
|
|
|
optimizer: {
|
|
|
|
enabled: true,
|
|
|
|
runs: 200,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2021-07-06 23:11:30 +02:00
|
|
|
ovm: {
|
2021-07-08 19:50:44 +02:00
|
|
|
solcVersion: '0.7.6+commit.3b061308',
|
2021-07-06 23:11:30 +02:00
|
|
|
},
|
2021-06-03 20:56:46 +02:00
|
|
|
networks: {
|
2021-06-06 19:31:32 +02:00
|
|
|
// goerli: {
|
|
|
|
// url: process.env.ETH_RPC,
|
|
|
|
// accounts: process.env.PRIVATE_KEY
|
|
|
|
// ? [process.env.PRIVATE_KEY]
|
|
|
|
// : {
|
|
|
|
// mnemonic: 'test test test test test test test test test test test junk',
|
|
|
|
// },
|
|
|
|
// },
|
2021-07-06 23:11:30 +02:00
|
|
|
optimism: {
|
|
|
|
url: process.env.ETH_RPC,
|
|
|
|
accounts: process.env.PRIVATE_KEY
|
|
|
|
? [process.env.PRIVATE_KEY]
|
|
|
|
: {
|
|
|
|
mnemonic: 'test test test test test test test test test test test junk',
|
|
|
|
},
|
|
|
|
// This sets the gas price to 0 for all transactions on L2. We do this
|
|
|
|
// because account balances are not automatically initiated with an ETH
|
|
|
|
// balance (yet, sorry!).
|
|
|
|
gasPrice: 15000000,
|
|
|
|
ovm: true, // This sets the network as using the ovm and ensure contract will be compiled against that.
|
|
|
|
},
|
2021-06-03 20:56:46 +02:00
|
|
|
},
|
|
|
|
mocha: {
|
|
|
|
timeout: 600000000,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = config
|