1
0
tornado-governance/hardhat.config.js

80 lines
1.7 KiB
JavaScript
Raw Normal View History

2023-05-21 20:02:21 +03:00
require('dotenv').config()
require('@nomicfoundation/hardhat-verify')
2023-05-21 20:02:21 +03:00
require('@nomiclabs/hardhat-ethers')
require('@nomiclabs/hardhat-waffle')
require('hardhat-spdx-license-identifier')
require('hardhat-storage-layout')
require('hardhat-log-remover')
require('hardhat-contract-sizer')
require('solidity-coverage')
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
compilers: [
{
version: '0.5.6',
2023-05-21 20:02:21 +03:00
settings: {
optimizer: {
enabled: true,
runs: 1_000,
2023-05-21 20:02:21 +03:00
},
},
},
{
version: '0.6.12',
settings: {
optimizer: {
enabled: true,
runs: 1_000_000,
},
},
},
2023-05-21 20:02:21 +03:00
],
overrides: {
'contracts/v4-patch/PatchProposal.sol': {
version: '0.6.12',
settings: {
optimizer: {
enabled: true,
runs: 1,
},
},
},
},
2023-05-21 20:02:21 +03:00
},
networks: {
hardhat: {
forking: {
url: `${process.env.RPC_URL}`,
timeout: 9999999999,
2023-05-21 20:02:21 +03:00
},
initialBaseFeePerGas: 5,
},
localhost: {
url: 'http://localhost:8545',
timeout: 120000,
},
goerli: {
url: `${process.env.RPC_URL}`,
accounts: process.env.PRIVATE_KEY ? [`${process.env.PRIVATE_KEY}`] : undefined,
timeout: 9999999,
},
2023-05-21 20:02:21 +03:00
mainnet: {
url: `${process.env.RPC_URL}`,
accounts: process.env.PRIVATE_KEY ? [`${process.env.PRIVATE_KEY}`] : undefined,
timeout: 9999999999,
2023-05-21 20:02:21 +03:00
},
},
mocha: { timeout: 9999999999 },
spdxLicenseIdentifier: {
overwrite: true,
runOnCompile: true,
},
etherscan: {
apiKey: `${process.env.ETHERSCAN_KEY}`,
},
}