tornado-nova/hardhat.config.js

75 lines
1.6 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')
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
},
{
version: '0.7.5',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
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-10-04 13:18:55 +02:00
gasPrice: 25000000000,
2021-09-30 20:32:49 +02:00
},
2021-10-04 12:22:13 +02:00
bsc: {
url: process.env.ETH_RPC || 'https://bsc-dataseed.binance.org/',
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: {
mnemonic: 'test test test test test test test test test test test junk',
},
},
2021-10-18 10:39:19 +02:00
mainnet: {
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-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