Skip to content

Commit

Permalink
rewrite AHV2 logic deployment using foundry
Browse files Browse the repository at this point in the history
  • Loading branch information
eladmallel committed Oct 3, 2023
1 parent 0429ca4 commit a62537a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 47 deletions.
26 changes: 26 additions & 0 deletions packages/nouns-contracts/script/DeployAuctionHouseV2.s.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.19;

import 'forge-std/Script.sol';
import { NounsAuctionHouse } from '../contracts/NounsAuctionHouse.sol';
import { NounsAuctionHouseV2 } from '../contracts/NounsAuctionHouseV2.sol';
import { NounsAuctionHousePreV2Migration } from '../contracts/NounsAuctionHousePreV2Migration.sol';

contract DeployAuctionHouseV2 is Script {
NounsAuctionHouse public immutable auctionV1;

constructor(address _auctionHouseProxy) {
auctionV1 = NounsAuctionHouse(payable(_auctionHouseProxy));
}

function run() public returns (NounsAuctionHouseV2 newLogic, NounsAuctionHousePreV2Migration migratorLogic) {
uint256 deployerKey = vm.envUint('DEPLOYER_PRIVATE_KEY');

vm.startBroadcast(deployerKey);

newLogic = new NounsAuctionHouseV2(auctionV1.nouns(), auctionV1.weth(), auctionV1.duration());
migratorLogic = new NounsAuctionHousePreV2Migration();

vm.stopBroadcast();
}
}
46 changes: 0 additions & 46 deletions packages/nouns-contracts/tasks/deploy-auctionhouse-v2-logic.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/nouns-contracts/tasks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export * from './verify-etherscan-daov2';
export * from './update-configs-daov2';
export * from './deploy-short-times-daov1';
export * from './deploy-and-configure-short-times-daov1';
export * from './deploy-auctionhouse-v2-logic';
export * from './deploy-local-dao-v3';
export * from './run-local-dao-v3';
export * from './deploy-short-times-dao-v3';
Expand Down

0 comments on commit a62537a

Please sign in to comment.