-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy premint v2 to zora goerli and zora sepolia. Simulate and give …
…instruactions for premint upgrades (#378) * updated deployment scripts to not fail if determinstic address not already created * improvements on deploy * deployed 2.5.1 to zora sepolia * clean up test * added a test contract deployer * deploy to zora goerli * making sure to stop prank * fix upgrade test * updated changeset * remove upgrade needed log
- Loading branch information
1 parent
eac806d
commit 7d9d0d7
Showing
11 changed files
with
306 additions
and
77 deletions.
There are no files selected for viewing
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,5 @@ | ||
--- | ||
"@zoralabs/protocol-deployments": patch | ||
--- | ||
|
||
Updated determinstic preminter deployment script to not fail if already deployed |
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,5 @@ | ||
--- | ||
"@zoralabs/protocol-deployments": patch | ||
--- | ||
|
||
Deployed 2.5.1 to zora sepolia and zora goerli |
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 |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"CONTRACT_1155_IMPL": "0xcD7230AFfBC8C720aE607e0Bc386fbCAF5C34C2E", | ||
"CONTRACT_1155_IMPL_VERSION": "2.4.0", | ||
"FACTORY_IMPL": "0x869Be2EaE4AB30Cf319a46B5dE50Ac203c8784Aa", | ||
"CONTRACT_1155_IMPL": "0xa2669e686fa4192166daEa69F269b262636eE198", | ||
"CONTRACT_1155_IMPL_VERSION": "2.5.1", | ||
"FACTORY_IMPL": "0x30ed75ffaDF6215A3190d43ec505750a70B29fAc", | ||
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021", | ||
"FIXED_PRICE_SALE_STRATEGY": "0x04E2516A2c207E84a1839755675dfd8eF6302F0a", | ||
"FIXED_PRICE_ALLOWED_MINTERS_STRATEGY": "0x9b4aEDF0989B0AF7c5f7511F55d721E37384ca6E", | ||
"MERKLE_MINT_SALE_STRATEGY": "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7", | ||
"PREMINTER_IMPL": "0x6E2AbBcd82935bFC68A1d5d2c96372b13b65eD9C", | ||
"PREMINTER_IMPL": "0x37A7c717c3EDA58e4ec7F424B2A46934Fd8f8468", | ||
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340", | ||
"REDEEM_MINTER_FACTORY": "0x78964965cF77850224513a367f899435C5B69174", | ||
"UPGRADE_GATE": "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900", | ||
"timestamp": 1699570171, | ||
"commit": "385e4932" | ||
"timestamp": 1700533625, | ||
"commit": "8c57238e" | ||
} |
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 |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{ | ||
"CONTRACT_1155_IMPL": "0xC6899816663891D7493939d74d83cb7f2BBcBB16", | ||
"CONTRACT_1155_IMPL_VERSION": "2.4.0", | ||
"FACTORY_IMPL": "0xA2d5B3C1feb801c0A1CF083Ee17d939A5E5D2464", | ||
"CONTRACT_1155_IMPL": "0xF3a46845548bE811Ce37e65153563f4a0AaEbe31", | ||
"CONTRACT_1155_IMPL_VERSION": "2.5.1", | ||
"FACTORY_IMPL": "0xF7e49F97E82cc38ACd82E303F37Fe046f5a190B5", | ||
"FACTORY_PROXY": "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021", | ||
"FIXED_PRICE_SALE_STRATEGY": "0x6d28164C3CE04A190D5F9f0f8881fc807EAD975A", | ||
"MERKLE_MINT_SALE_STRATEGY": "0x5e5fD4b758076BAD940db0284b711A67E8a3B88c", | ||
"PREMINTER_IMPL": "0x4e10791d56a6E90b4b7E2840Fa96DD4fB273F3F2", | ||
"PREMINTER_IMPL": "0x37A7c717c3EDA58e4ec7F424B2A46934Fd8f8468", | ||
"PREMINTER_PROXY": "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340", | ||
"REDEEM_MINTER_FACTORY": "0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6", | ||
"UPGRADE_GATE": "0x0000000000000000000000000000000000000000", | ||
"timestamp": 1700087849, | ||
"commit": "a2700107" | ||
"timestamp": 1700531325, | ||
"commit": "fdd3d044" | ||
} |
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
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); | ||
} | ||
} |
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
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
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
Oops, something went wrong.