mirror of
https://github.com/tornadocash/nova-upgrade-proposal.git
synced 2024-11-22 09:36:51 +01:00
71 lines
1.6 KiB
JavaScript
71 lines
1.6 KiB
JavaScript
require('@nomiclabs/hardhat-waffle')
|
|
require('@nomiclabs/hardhat-etherscan')
|
|
require('solidity-coverage')
|
|
require('dotenv').config()
|
|
|
|
/**
|
|
* @type import('hardhat/config').HardhatUserConfig
|
|
*/
|
|
module.exports = {
|
|
solidity: {
|
|
compilers: [
|
|
{
|
|
version: '0.6.12',
|
|
settings: {
|
|
optimizer: {
|
|
enabled: true,
|
|
runs: 200,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
version: '0.7.5',
|
|
settings: {
|
|
optimizer: {
|
|
enabled: true,
|
|
runs: 200,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
version: '0.7.6',
|
|
settings: {
|
|
optimizer: {
|
|
enabled: true,
|
|
runs: 200,
|
|
},
|
|
},
|
|
},
|
|
],
|
|
},
|
|
networks: {
|
|
hardhat: {
|
|
forking: {
|
|
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
|
|
blockNumber: 13685625,
|
|
},
|
|
chainId: 1,
|
|
initialBaseFeePerGas: 5,
|
|
loggingEnabled: false,
|
|
allowUnlimitedContractSize: false,
|
|
blockGasLimit: 50000000,
|
|
},
|
|
localhost: {
|
|
forking: {
|
|
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
|
|
blockNumber: 13685625,
|
|
},
|
|
accounts: process.env.PRIVATE_KEY
|
|
? [process.env.PRIVATE_KEY]
|
|
: { mnemonic: 'test test test test test junk' },
|
|
},
|
|
mainnet: {
|
|
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
|
|
accounts: process.env.PRIVATE_KEY
|
|
? [process.env.PRIVATE_KEY]
|
|
: { mnemonic: 'test test test test test junk' },
|
|
timeout: 2147483647,
|
|
},
|
|
},
|
|
}
|