Code coverage for Solidity smart-contracts
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.
|
|
|
require("@nomiclabs/hardhat-truffle5");
|
|
|
|
require(__dirname + "/../plugins/nomiclabs.plugin");
|
|
|
|
|
|
|
|
module.exports={
|
|
|
|
solidity: {
|
|
|
|
compilers: [
|
|
|
|
{
|
|
|
|
version: "0.8.17",
|
|
|
|
settings: {
|
|
|
|
optimizer: {
|
|
|
|
enabled: true
|
|
|
|
},
|
|
|
|
viaIR: process.env.VIA_IR === "true"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
version: "0.8.19"
|
|
|
|
},
|
|
|
|
// Make sure optimizer gets disabled
|
|
|
|
{
|
|
|
|
version: "0.8.12",
|
|
|
|
settings: {
|
|
|
|
optimizer: {
|
|
|
|
enabled: true,
|
|
|
|
runs: 200
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
overrides: {
|
|
|
|
"contracts/ContractA.sol": {
|
|
|
|
version: "0.8.24",
|
|
|
|
settings: {
|
|
|
|
optimizer: {
|
|
|
|
enabled: true,
|
|
|
|
runs: 200,
|
|
|
|
viaIR: process.env.VIA_IR === "true",
|
|
|
|
evmVersion: 'paris'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
logger: process.env.SILENT ? { log: () => {} } : console,
|
|
|
|
};
|