Skip to content

Commit

Permalink
Merge pull request #168 from ourzora/blast
Browse files Browse the repository at this point in the history
feat: deploy blast
  • Loading branch information
kulkarohan committed Mar 4, 2024
2 parents 3370c1b + a867b16 commit 845276a
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/small-years-check.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@zoralabs/zora-721-contracts': patch
---

Deploy to Blast mainnet
10 changes: 10 additions & 0 deletions addresses/81457.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"DROP_METADATA_RENDERER": "0x3E8524770adD176bE381a0529E09f1c6c3502A5a",
"EDITION_METADATA_RENDERER": "0x805E0a08dE70f85C01F7848370d5e3fc08aAd0ea",
"ERC721DROP_IMPL": "0x8Ca5e648C5dFEfcdDa06d627F4b490B719ccFD98",
"ERC721DROP_IMPL_VERSION": 14,
"FACTORY_UPGRADE_GATE": "0xeB29A4e5b84fef428c072debA2444e93c080CE87",
"ZORA_NFT_CREATOR_PROXY": "0x53a85FbD2955EF713AA489Ae0C48523E727a0c07",
"ZORA_NFT_CREATOR_V1_IMPL": "0x76CC78EF3aafD52e716a8e37F3dBbE0C42c51d54"
}

9 changes: 9 additions & 0 deletions chainConfigs/81457.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"FACTORY_OWNER": "0x5b297B1b87f8De28C9fA7AFe183Db9F9e6295523",
"FACTORY_UPGRADE_GATE_OWNER": "0x5b297B1b87f8De28C9fA7AFe183Db9F9e6295523",
"MINT_FEE_AMOUNT": 777000000000000,
"MINT_FEE_RECIPIENT": "0x72E6394056f9152D3a41e5A25De383c191D16134",
"SUBSCRIPTION_MARKET_FILTER_ADDRESS": "0x0000000000000000000000000000000000000000",
"ZORA_ERC721_TRANSFER_HELPER": "0x0000000000000000000000000000000000000000",
"PROTOCOL_REWARDS": "0x7777777F279eba3d3Ad8F4E708545291A6fDBA8B"
}
4 changes: 2 additions & 2 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ contract Deploy is ZoraDropsDeployBase {
console2.log("Factory: ");
console2.log(address(factory));

deployTestContractForVerification(factory);
deployTestContractForVerification(factory, deployer);

// vm.stopBroadcast();
vm.stopBroadcast();

uint256 dropImplementationVersion = dropImplementation.contractVersion();

Expand Down
4 changes: 3 additions & 1 deletion script/UpgradeERC721DropFactory.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ contract UpgradeERC721DropFactory is ZoraDropsDeployBase {
console2.log("Factory/Creator IMPL: ");
console2.log(address(newZoraNFTCreatorImpl));

deployTestContractForVerification(newZoraNFTCreatorImpl);
address deployer = vm.envAddress("DEPLOYER");

deployTestContractForVerification(newZoraNFTCreatorImpl, deployer);

vm.stopBroadcast();

Expand Down
4 changes: 2 additions & 2 deletions script/ZoraDropsDeployBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ abstract contract ZoraDropsDeployBase is ScriptDeploymentConfig {

/// @notice Deploy a test contract for etherscan auto-verification
/// @param factory Factory address to use
function deployTestContractForVerification(ZoraNFTCreatorV1 factory) internal {
function deployTestContractForVerification(ZoraNFTCreatorV1 factory, address deployer) internal {
IERC721Drop.SalesConfiguration memory saleConfig;
address newContract = address(
factory.createEdition(unicode"☾*☽", "~", 0, 0, payable(address(0)), address(0), saleConfig, "", DEMO_IPFS_METADATA_FILE, DEMO_IPFS_METADATA_FILE)
factory.createEditionWithReferral(unicode"☾*☽", "~", 0, 0, payable(address(0)), address(0), saleConfig, "", DEMO_IPFS_METADATA_FILE, DEMO_IPFS_METADATA_FILE, deployer)
);
console2.log("Deployed new contract for verification purposes", newContract);
}
Expand Down

0 comments on commit 845276a

Please sign in to comment.