finalize deployment configuration with hardhat
Signed-off-by: AlienTornadosaurusHex <>
This commit is contained in:
parent
476c8a5f27
commit
c80b9697db
@ -9,6 +9,8 @@ The `infrastructure-upgrade` repository. This contains `relayer-registry` contra
|
|||||||
* [Storage Layout](./storage/)
|
* [Storage Layout](./storage/)
|
||||||
* [Deployment Scripts](./script/)
|
* [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
|
## Install
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
@ -1,16 +1,15 @@
|
|||||||
require('dotenv').config()
|
require("dotenv").config();
|
||||||
|
|
||||||
require("@nomicfoundation/hardhat-ethers");
|
require("@nomicfoundation/hardhat-ethers");
|
||||||
require("@nomicfoundation/hardhat-foundry");
|
require("@nomicfoundation/hardhat-foundry");
|
||||||
require("@nomicfoundation/hardhat-verify");
|
require("@nomicfoundation/hardhat-verify");
|
||||||
|
|
||||||
|
|
||||||
/** @type import('hardhat/config').HardhatUserConfig */
|
/** @type import('hardhat/config').HardhatUserConfig */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
solidity: {
|
solidity: {
|
||||||
compilers: [
|
compilers: [
|
||||||
{
|
{
|
||||||
version: '0.6.12',
|
version: "0.6.12",
|
||||||
settings: {
|
settings: {
|
||||||
optimizer: {
|
optimizer: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
@ -20,8 +19,33 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
overrides: {
|
overrides: {
|
||||||
'src/proposals/*.sol': {
|
"src/v2/FeeOracleManager.sol": {
|
||||||
version: '0.6.12',
|
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: {
|
settings: {
|
||||||
optimizer: {
|
optimizer: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
@ -47,4 +71,3 @@ module.exports = {
|
|||||||
apiKey: `${process.env.ETHERSCAN_KEY}`,
|
apiKey: `${process.env.ETHERSCAN_KEY}`,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user