-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
156 additions
and
0 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
packages/nouns-contracts/broadcast/DeployAuctionHouseV3Mainnet.s.sol/1/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
55 changes: 55 additions & 0 deletions
55
...ages/nouns-contracts/broadcast/DeployAuctionHouseV3Sepolia.s.sol/11155111/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
26 changes: 26 additions & 0 deletions
26
packages/nouns-contracts/script/AuctionHouseV3/DeployAuctionHouseV3Base.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 { INounsAuctionHouseV2 } from '../../contracts/interfaces/INounsAuctionHouseV2.sol'; | ||
import { NounsAuctionHouseV3 } from '../../contracts/NounsAuctionHouseV3.sol'; | ||
import { OptimizedScript } from '../OptimizedScript.s.sol'; | ||
|
||
abstract contract DeployAuctionHouseV3Base is OptimizedScript { | ||
INounsAuctionHouseV2 public immutable auctionV2; | ||
|
||
constructor(address _auctionHouseProxy) { | ||
auctionV2 = INounsAuctionHouseV2(payable(_auctionHouseProxy)); | ||
} | ||
|
||
function run() public returns (NounsAuctionHouseV3 newLogic) { | ||
requireDefaultProfile(); | ||
uint256 deployerKey = vm.envUint('DEPLOYER_PRIVATE_KEY'); | ||
|
||
vm.startBroadcast(deployerKey); | ||
|
||
newLogic = new NounsAuctionHouseV3(auctionV2.nouns(), auctionV2.weth(), auctionV2.duration()); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/nouns-contracts/script/AuctionHouseV3/DeployAuctionHouseV3Mainnet.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,10 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
|
||
import { DeployAuctionHouseV3Base } from './DeployAuctionHouseV3Base.s.sol'; | ||
|
||
contract DeployAuctionHouseV3Mainnet is DeployAuctionHouseV3Base { | ||
address constant AUCTION_HOUSE_PROXY_MAINNET = 0x830BD73E4184ceF73443C15111a1DF14e495C706; | ||
|
||
constructor() DeployAuctionHouseV3Base(AUCTION_HOUSE_PROXY_MAINNET) {} | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/nouns-contracts/script/AuctionHouseV3/DeployAuctionHouseV3Sepolia.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,10 @@ | ||
// SPDX-License-Identifier: GPL-3.0 | ||
pragma solidity ^0.8.19; | ||
|
||
import { DeployAuctionHouseV3Base } from './DeployAuctionHouseV3Base.s.sol'; | ||
|
||
contract DeployAuctionHouseV3Sepolia is DeployAuctionHouseV3Base { | ||
address constant AUCTION_HOUSE_SEPOLIA = 0xf459b7573a9c2B37eF21F2f7a1a96339E343CdD8; | ||
|
||
constructor() DeployAuctionHouseV3Base(AUCTION_HOUSE_SEPOLIA) {} | ||
} |