Skip to content

Commit

Permalink
update deploying upgrades docs
Browse files Browse the repository at this point in the history
  • Loading branch information
iainnash committed Oct 3, 2023
1 parent 6361928 commit e246bce
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion DEPLOYING.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Use `1.json` for reference. We are ordering keys alphabetically.

For example, to deploy on optimism goerli, this is the forge command:

forge script script/Deploy.s.sol --rpc-url $RPC --verify --etherscan-api-key $API_KEY --broadcast --interactives 1 --sender $SENDER_WALLET
forge script script/Deploy.s.sol $(chains optimism-goerli) --verify --broadcast --interactives 1 --sender $SENDER_WALLET

*Important*: Sender is required to have the simulation succeed. Without it, the drops contract is not deployed.

Expand All @@ -46,3 +46,20 @@ Use your own RPC configuration variables
Copies new addresses over to `addresses` folder:

node js-scripts/copy-latest-deployment-addresses.mjs deploy


## Upgrading an implementation on a new chain

### 1. Upgrade forge script

forge script script/UpgradeERC721DropFactory.s.sol --broadcast --verify $(chains optimism-goerli --deploy) --sender $SENDER_WALLET

*Important*: Sender is required to have the simulation succeed. Without it, the drops contract is not deployed.

Use your own RPC configuration variables

### 2. Copy new chain configuration for deployment

Copies new addresses over to `addresses` folder:

node js-scripts/copy-latest-deployment-addresses.mjs

0 comments on commit e246bce

Please sign in to comment.