-
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.
rewrite AHV2 logic deployment using foundry
- Loading branch information
1 parent
0429ca4
commit a62537a
Showing
3 changed files
with
26 additions
and
47 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
packages/nouns-contracts/script/DeployAuctionHouseV2.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,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
46
packages/nouns-contracts/tasks/deploy-auctionhouse-v2-logic.ts
This file was deleted.
Oops, something went wrong.
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