-
Notifications
You must be signed in to change notification settings - Fork 107
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
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
packages/protocol-deployments/script/DeployTestContracts.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,35 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.17; | ||
|
||
import "forge-std/Script.sol"; | ||
import "forge-std/console2.sol"; | ||
|
||
import {ZoraDeployerBase} from "../src/ZoraDeployerBase.sol"; | ||
import {Deployment} from "../src/DeploymentConfig.sol"; | ||
import {ZoraDeployerUtils} from "../src/ZoraDeployerUtils.sol"; | ||
import {IZoraCreator1155PremintExecutor} from "@zoralabs/zora-1155-contracts/src/interfaces/IZoraCreator1155PremintExecutor.sol"; | ||
|
||
contract DeployTestContracts is ZoraDeployerBase { | ||
function run() public returns (string memory) { | ||
Deployment memory deployment = getDeployment(); | ||
|
||
vm.startBroadcast(); | ||
|
||
ZoraDeployerUtils.deployTestContractForVerification(deployment.factoryProxy, makeAddr("admin")); | ||
|
||
address fundsRecipient = vm.envAddress("DEPLOYER"); | ||
IZoraCreator1155PremintExecutor.MintArguments memory mintArguments = IZoraCreator1155PremintExecutor.MintArguments({ | ||
mintRecipient: fundsRecipient, | ||
mintComment: "", | ||
mintReferral: fundsRecipient | ||
}); | ||
|
||
signAndExecutePremintV2(deployment.preminterProxy, fundsRecipient, mintArguments); | ||
|
||
vm.stopBroadcast(); | ||
|
||
// now test signing and executing premint | ||
|
||
return getDeploymentJSON(deployment); | ||
} | ||
} |