tornado-nova/hardhat.config.js

49 lines
941 B
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')
require('dotenv').config()
const config = {
solidity: {
2021-09-29 21:39:30 +02:00
compilers: [
{
version: '0.4.24',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
2021-06-03 20:56:46 +02:00
},
2021-09-29 21:39:30 +02:00
{
version: '0.7.6',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
2021-07-06 23:11:30 +02:00
},
2021-06-03 20:56:46 +02:00
networks: {
2021-09-30 20:32:49 +02:00
xdai: {
2021-09-30 20:43:56 +02:00
url: process.env.ETH_RPC || 'https://rpc.xdaichain.com/',
2021-09-30 20:32:49 +02:00
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: {
mnemonic: 'test test test test test test test test test test test junk',
},
},
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