proposal-25-restore-rewards/hardhat.config.js

76 lines
1.9 KiB
JavaScript
Raw Permalink Normal View History

require('dotenv').config()
require('@nomicfoundation/hardhat-foundry')
require('@nomicfoundation/hardhat-verify')
require('@nomiclabs/hardhat-ethers')
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
compilers: [
{
version: '0.6.2',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: '0.6.12',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
networks: {
hardhat: {
forking: {
url: `${process.env.MAINNET_RPC_URL}`,
},
chainId: 1,
loggingEnabled: false,
allowUnlimitedContractSize: false,
},
rinkeby: {
url: `${process.env.RINKEBY_RPC_URL}`,
accounts: `${process.env.PRIVATE_KEY}`
? [`${process.env.PRIVATE_KEY}`]
: { mnemonic: 'test test test test test junk' },
},
goerli: {
url: `${process.env.GOERLI_RPC_URL}`,
accounts: `${process.env.PRIVATE_KEY}`
? [`${process.env.PRIVATE_KEY}`]
: { mnemonic: 'test test test test test junk' },
},
sepolia: {
url: `${process.env.SEPOLIA_RPC_URL}`,
accounts: `${process.env.PRIVATE_KEY}`
? [`${process.env.PRIVATE_KEY}`]
: { mnemonic: 'test test test test test junk' },
},
mainnet: {
url: `${process.env.MAINNET_RPC_URL}`,
accounts: `${process.env.PRIVATE_KEY}`
? [`${process.env.PRIVATE_KEY}`]
: { mnemonic: 'test test test test test junk' },
},
},
mocha: {
timeout: 9999999999 /* The following simply does not work: ignore: ["factory.with.registry.test.js", "sidechain.instance.factory.test.js"] */,
},
spdxLicenseIdentifier: {
overwrite: true,
runOnCompile: true,
},
etherscan: {
apiKey: `${process.env.ETHERSCAN_KEY}`,
},
}