From 9d82227f0360449c3825b567079ffd1b8cf87277 Mon Sep 17 00:00:00 2001 From: Iain Nash Date: Mon, 17 Jul 2023 15:19:38 -0400 Subject: [PATCH] adding base and deployment instructions (#114) --- DEPLOYING.md | 13 +++++++++++++ addresses/8453.json | 10 ++++++++++ chainConfigs/8453.json | 5 +++++ package.json | 1 + script/Deploy.s.sol | 1 + 5 files changed, 30 insertions(+) create mode 100644 addresses/8453.json create mode 100644 chainConfigs/8453.json diff --git a/DEPLOYING.md b/DEPLOYING.md index e69de29bb..257df6d2c 100644 --- a/DEPLOYING.md +++ b/DEPLOYING.md @@ -0,0 +1,13 @@ + + +1. Setup new `chainConfigs` file setting 1. fee recipient, and 2. owner for factory contracts +2. Run forge/foundry deploy script: + +``` + +``` + +3. Update deployed addresses file `yarn run update-new-deployment-addresses` +4. Verify `addresses/CHAINID.json` exists. +5. Ensure contracts are verified on block explorer. +6. Make PR with new addresses json files. \ No newline at end of file diff --git a/addresses/8453.json b/addresses/8453.json new file mode 100644 index 000000000..5e5b5cb30 --- /dev/null +++ b/addresses/8453.json @@ -0,0 +1,10 @@ +{ + "CONTRACT_1155_IMPL": "0x3Ed969bf88166B85608C13b633242611F6220a14", + "FACTORY_IMPL": "0xA75f980Fdf9F02718423FDFDFf1fccc74bdDBa95", + "FACTORY_PROXY": "0xc652d4F4b41A9e1986a3D6134687eD0e5d4883a2", + "FIXED_PRICE_SALE_STRATEGY": "0x2fBdBc34B6015e7b40638179Aa05a2D2267452c7", + "MERKLE_MINT_SALE_STRATEGY": "0x677F06C6a93e167c1ebD4eaFa3A3f9370DFc665a", + "REDEEM_MINTER_FACTORY": "0xC04050e04708b33302E30E5A0fB1e8c38F4EBbB0", + "timestamp": 1689088857, + "commit": "4cfd3cc" +} \ No newline at end of file diff --git a/chainConfigs/8453.json b/chainConfigs/8453.json new file mode 100644 index 000000000..947c25139 --- /dev/null +++ b/chainConfigs/8453.json @@ -0,0 +1,5 @@ +{ + "FACTORY_OWNER": "0x99B5E1B42f018EEA69AFBB3a653F0338fc28013A", + "MINT_FEE_AMOUNT": 777000000000000, + "MINT_FEE_RECIPIENT": "0x44928735180F03b334F82617A552DEE4631c9Bdb" +} diff --git a/package.json b/package.json index a56a6690a..6c463cd27 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,7 @@ "coverage": "forge coverage --report lcov", "write-gas-report": "forge test --gas-report > gasreport.ansi", "prepack": "node script/copy-deployed-contracts.mjs && yarn wagmi && yarn bundle-configs && yarn build", + "update-new-deployment-addresses": "node script/copy-deployed-contracts.mjs deploy", "build": "tsup", "bundle-configs": "node script/bundle-chainConfigs.mjs && yarn prettier", "wagmi": "wagmi generate", diff --git a/script/Deploy.s.sol b/script/Deploy.s.sol index cfee171c6..1da1b0ab6 100644 --- a/script/Deploy.s.sol +++ b/script/Deploy.s.sol @@ -26,6 +26,7 @@ contract DeployScript is ZoraDeployerBase { console2.log("zoraFeeAmount", chainConfig.mintFeeAmount); console2.log("zoraFeeRecipient", chainConfig.mintFeeRecipient); + console2.log("factoryOwner", chainConfig.factoryOwner); address deployer = vm.envAddress("DEPLOYER");