2022-01-27 12:51:34 +01:00
|
|
|
require('@nomiclabs/hardhat-waffle')
|
|
|
|
require('@nomiclabs/hardhat-etherscan')
|
|
|
|
require('solidity-coverage')
|
|
|
|
require('dotenv').config()
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @type import('hardhat/config').HardhatUserConfig
|
|
|
|
*/
|
|
|
|
module.exports = {
|
|
|
|
solidity: {
|
2022-01-27 16:46:30 +01:00
|
|
|
compilers: [
|
|
|
|
{
|
|
|
|
version: '0.6.12',
|
|
|
|
settings: {
|
|
|
|
optimizer: {
|
|
|
|
enabled: true,
|
|
|
|
runs: 200,
|
|
|
|
},
|
|
|
|
},
|
2022-01-27 12:51:34 +01:00
|
|
|
},
|
2022-01-27 16:46:30 +01:00
|
|
|
{
|
|
|
|
version: '0.7.5',
|
|
|
|
settings: {
|
|
|
|
optimizer: {
|
|
|
|
enabled: true,
|
|
|
|
runs: 200,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
version: '0.7.6',
|
|
|
|
settings: {
|
|
|
|
optimizer: {
|
|
|
|
enabled: true,
|
|
|
|
runs: 200,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2022-01-27 12:51:34 +01:00
|
|
|
},
|
|
|
|
networks: {
|
2022-01-27 16:46:30 +01:00
|
|
|
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,
|
2022-01-27 12:51:34 +01:00
|
|
|
},
|
2022-01-27 16:46:30 +01:00
|
|
|
localhost: {
|
|
|
|
forking: {
|
|
|
|
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
|
|
|
|
blockNumber: 13685625,
|
|
|
|
},
|
|
|
|
accounts: process.env.PRIVATE_KEY
|
|
|
|
? [process.env.PRIVATE_KEY]
|
2022-01-28 17:46:46 +01:00
|
|
|
: { mnemonic: 'test test test test test junk' },
|
2022-01-27 12:51:34 +01:00
|
|
|
},
|
|
|
|
mainnet: {
|
2022-01-27 16:46:30 +01:00
|
|
|
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_KEY}`,
|
|
|
|
accounts: process.env.PRIVATE_KEY
|
|
|
|
? [process.env.PRIVATE_KEY]
|
2022-01-28 17:46:46 +01:00
|
|
|
: { mnemonic: 'test test test test test junk' },
|
2022-01-27 16:46:30 +01:00
|
|
|
timeout: 2147483647,
|
2022-01-27 12:51:34 +01:00
|
|
|
},
|
2022-01-30 16:48:16 +01: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 junk' },
|
|
|
|
},
|
2022-01-28 17:46:46 +01:00
|
|
|
},
|
2022-02-16 23:11:16 +01:00
|
|
|
etherscan: {
|
|
|
|
apiKey: process.env.ETHERSCAN_KEY,
|
|
|
|
},
|
2022-01-27 12:51:34 +01:00
|
|
|
}
|