relayer-registry/hardhat.config.js

70 lines
2.0 KiB
JavaScript
Raw Permalink Normal View History

2021-08-11 17:04:24 +02:00
require('dotenv').config()
require('@nomiclabs/hardhat-waffle')
require('@nomiclabs/hardhat-etherscan')
2021-08-11 17:20:37 +02:00
require('hardhat-etherscan-abi')
2021-08-20 11:30:44 +02:00
require('hardhat-contract-sizer')
2021-08-11 17:04:24 +02:00
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
2021-08-13 16:06:29 +02:00
solidity: {
compilers: [{ version: '0.7.6' }, { version: '0.6.12' }],
},
2021-08-11 17:04:24 +02:00
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
networks: {
hardhat: {
blockGasLimit: 9500000,
chainId: 1,
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
2021-08-23 11:59:28 +02:00
blockNumber: 13061500,
2021-08-11 17:04:24 +02:00
},
},
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 test test test test test test junk' },
},
goerli: {
url: `https://eth-goerli.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: { mnemonic: 'test test test test test test test test test test test junk' },
},
mainnetInfura: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_KEY}`,
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: { mnemonic: 'test test test test test test test test test test test junk' },
},
goerliInfura: {
url: `https://goerli.infura.io/v3/${process.env.INFURA_KEY}`,
accounts: process.env.PRIVATE_KEY
? [process.env.PRIVATE_KEY]
: { mnemonic: 'test test test test test test test test test test test junk' },
},
localhost: {
chainId: 1,
gasPrice: 0,
timeout: 999999999,
},
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: process.env.ETHERSCAN_KEY,
},
2021-08-20 11:30:44 +02:00
contractSizer: {
alphaSort: true,
runOnCompile: true,
disambiguatePaths: false,
},
2021-08-11 17:04:24 +02:00
}