Closed sichen1234 closed 3 years ago
See documentation on upgrading only Governor.sol and Timelock.sol while leaving DAOToken.sol and NetEmissionsTokenNetwork.sol the same: https://github.com/opentaps/blockchain-carbon-accounting/blob/main/net-emissions-token-network/docs/using-the-contracts.md#upgrading-governorsol-and-timelocksol-without-upgrading-daotokensol and commits https://github.com/opentaps/blockchain-carbon-accounting/commit/98b7e1d90805644ff7616e25c5996b552cbc8f6e https://github.com/opentaps/blockchain-carbon-accounting/commit/8f757b98ddd7bc31a2162bf1d0150805527d0210
What does "Make sure the current addresses of the contracts you'd like to upgrade are in deployments/"address": "0xCf7Ed3AccA5a467e9e704C703E8D87F634fB0Fc9",
in Governor.json?
When a contract is deployed, hardhat-deploy saves it to deployments/<network>/
so this folder needs to be committed to the repo and if you want to upgrade the Governor/Timelock on a given network, these files need to be there (so that the deployment script can reuse DAOToken and NetEmissionsTokenNetwork).
Test and document procedure for upgrading DAO Governor and Timelock while leaving the DAO token unchanged.