tornado-nova/hardhat.config.js

53 lines
1.4 KiB
JavaScript
Raw Normal View History

2021-08-19 12:31:58 +02:00
/* eslint-disable indent */
2021-08-21 14:23:17 +02:00
require('@typechain/hardhat')
require('@nomiclabs/hardhat-ethers')
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: {
2021-08-19 18:22:04 +02:00
url: process.env.ETH_RPC || 'https://mainnet.optimism.io',
2021-07-06 23:11:30 +02:00
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,
},
2021-08-21 14:23:17 +02:00
typechain: {
outDir: 'src/types',
},
2021-06-03 20:56:46 +02:00
}
module.exports = config