You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
759 B
34 lines
759 B
require("@nomiclabs/hardhat-waffle");
|
|
require("@nomiclabs/hardhat-ethers");
|
|
require(__dirname + "/../plugins/nomiclabs.plugin");
|
|
|
|
if (!process.env.ALCHEMY_TOKEN){
|
|
throw new Error(
|
|
"This test requires that you set ALCHEMY_TOKEN to a valid token in your development env"
|
|
);
|
|
}
|
|
|
|
module.exports = {
|
|
solidity: {
|
|
version: "0.8.17",
|
|
settings: {
|
|
optimizer: {
|
|
enabled: true
|
|
},
|
|
viaIR: process.env.VIA_IR === "true"
|
|
}
|
|
},
|
|
networks: {
|
|
hardhat: {
|
|
timeout: 100000,
|
|
forking: {
|
|
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_TOKEN}`,
|
|
blockNumber: 14000000,
|
|
}
|
|
}
|
|
},
|
|
mocha: {
|
|
timeout: 100000
|
|
},
|
|
logger: process.env.SILENT ? { log: () => {} } : console,
|
|
};
|
|
|