diff --git a/.changeset/small-years-check.md b/.changeset/small-years-check.md new file mode 100644 index 0000000..9867a57 --- /dev/null +++ b/.changeset/small-years-check.md @@ -0,0 +1,5 @@ +--- +'@zoralabs/zora-721-contracts': patch +--- + +Deploy to Blast mainnet diff --git a/addresses/81457.json b/addresses/81457.json new file mode 100644 index 0000000..e179123 --- /dev/null +++ b/addresses/81457.json @@ -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" + } + \ No newline at end of file diff --git a/chainConfigs/81457.json b/chainConfigs/81457.json new file mode 100644 index 0000000..809ca9a --- /dev/null +++ b/chainConfigs/81457.json @@ -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" + } \ No newline at end of file diff --git a/script/Deploy.s.sol b/script/Deploy.s.sol index e361a60..0e81c4f 100644 --- a/script/Deploy.s.sol +++ b/script/Deploy.s.sol @@ -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(); diff --git a/script/UpgradeERC721DropFactory.s.sol b/script/UpgradeERC721DropFactory.s.sol index 58c6bfa..ebface8 100644 --- a/script/UpgradeERC721DropFactory.s.sol +++ b/script/UpgradeERC721DropFactory.s.sol @@ -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(); diff --git a/script/ZoraDropsDeployBase.sol b/script/ZoraDropsDeployBase.sol index 4d9e537..9afb2ad 100644 --- a/script/ZoraDropsDeployBase.sol +++ b/script/ZoraDropsDeployBase.sol @@ -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); }