-
Notifications
You must be signed in to change notification settings - Fork 434
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #813 from nounsDAO/verbs-dao-v3-fix-vote-gas-refun…
…d-blunder DAO V3.1: fix vote gas refund
- Loading branch information
Showing
41 changed files
with
1,027 additions
and
3,063 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 0 additions & 44 deletions
44
packages/nouns-contracts/contracts/test/NounsDAOImmutable.sol
This file was deleted.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
packages/nouns-contracts/script/DAOV3p1/DeployDAOV3LogicMainnet.s.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
|
||
import 'forge-std/Script.sol'; | ||
import { NounsDAOLogicV3 } from '../../contracts/governance/NounsDAOLogicV3.sol'; | ||
|
||
contract DeployDAOV3LogicMainnet is Script { | ||
function run() public returns (NounsDAOLogicV3 daoLogic) { | ||
uint256 deployerKey = vm.envUint('DEPLOYER_PRIVATE_KEY'); | ||
vm.startBroadcast(deployerKey); | ||
|
||
daoLogic = new NounsDAOLogicV3(); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
packages/nouns-contracts/script/DAOV3p1/ProposeDAOV3p1UpgradeMainnet.s.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
|
||
import 'forge-std/Script.sol'; | ||
|
||
interface NounsDAO { | ||
function propose( | ||
address[] memory targets, | ||
uint256[] memory values, | ||
string[] memory signatures, | ||
bytes[] memory calldatas, | ||
string memory description | ||
) external returns (uint256); | ||
} | ||
|
||
contract ProposeDAOV3p1UpgradeMainnet is Script { | ||
NounsDAO public constant NOUNS_DAO_PROXY_MAINNET = NounsDAO(0x6f3E6272A167e8AcCb32072d08E0957F9c79223d); | ||
|
||
function run() public returns (uint256 proposalId) { | ||
uint256 proposerKey = vm.envUint('PROPOSER_KEY'); | ||
address daoV3Implementation = vm.envAddress('DAO_V3_IMPL'); | ||
string memory description = vm.readFile(vm.envString('PROPOSAL_DESCRIPTION_FILE')); | ||
|
||
address[] memory targets = new address[](1); | ||
uint256[] memory values = new uint256[](1); | ||
string[] memory signatures = new string[](1); | ||
bytes[] memory calldatas = new bytes[](1); | ||
|
||
vm.startBroadcast(proposerKey); | ||
|
||
targets[0] = address(NOUNS_DAO_PROXY_MAINNET); | ||
values[0] = 0; | ||
signatures[0] = '_setImplementation(address)'; | ||
calldatas[0] = abi.encode(daoV3Implementation); | ||
|
||
proposalId = NOUNS_DAO_PROXY_MAINNET.propose(targets, values, signatures, calldatas, description); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.