finalize deployment configuration with hardhat

Signed-off-by: AlienTornadosaurusHex <>
This commit is contained in:
AlienTornadosaurusHex 2023-06-29 20:58:37 +00:00
parent 476c8a5f27
commit c80b9697db
10 changed files with 31 additions and 6 deletions

@ -9,6 +9,8 @@ The `infrastructure-upgrade` repository. This contains `relayer-registry` contra
* [Storage Layout](./storage/)
* [Deployment Scripts](./script/)
Please note that deployments only work via Hardhat, and only with the specified configuration. It seems that Forge outputs different bytecode than Etherscan, and that Hardhat also outputs for some contracts different bytecode than Etherscan if optimizations are not disabled.
## Install
```bash

@ -1,16 +1,15 @@
require('dotenv').config()
require("dotenv").config();
require("@nomicfoundation/hardhat-ethers");
require("@nomicfoundation/hardhat-foundry");
require("@nomicfoundation/hardhat-verify");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
compilers: [
{
version: '0.6.12',
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
@ -20,8 +19,33 @@ module.exports = {
},
],
overrides: {
'src/proposals/*.sol': {
version: '0.6.12',
"src/v2/FeeOracleManager.sol": {
version: "0.6.12",
settings: {
optimizer: {
enabled: false,
},
},
},
"src/v2/UniswapFeeOracle.sol": {
version: "0.6.12",
settings: {
optimizer: {
enabled: false,
},
},
},
"src/proposals/CRVUSDInstancesProposal.sol.sol": {
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
runs: 1,
},
},
},
"src/proposals/InfrastructureUpgradeProposal.sol": {
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
@ -47,4 +71,3 @@ module.exports = {
apiKey: `${process.env.ETHERSCAN_KEY}`,
},
};