Skip to content

Commit

Permalink
adding base and deployment instructions (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
iainnash authored Jul 17, 2023
1 parent c0b2b53 commit 9d82227
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions DEPLOYING.md
Original file line number Diff line number Diff line change
@@ -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.
10 changes: 10 additions & 0 deletions addresses/8453.json
Original file line number Diff line number Diff line change
@@ -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"
}
5 changes: 5 additions & 0 deletions chainConfigs/8453.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"FACTORY_OWNER": "0x99B5E1B42f018EEA69AFBB3a653F0338fc28013A",
"MINT_FEE_AMOUNT": 777000000000000,
"MINT_FEE_RECIPIENT": "0x44928735180F03b334F82617A552DEE4631c9Bdb"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 9d82227

Please sign in to comment.