Skip to content

Commit

Permalink
docs: Updates deployment command
Browse files Browse the repository at this point in the history
  • Loading branch information
pmerkleplant committed Mar 26, 2024
1 parent 97b5806 commit 6994346
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export PRIVATE_KEY=
export RPC_URL=

# Etherscan Verification
export ETHERSCAN_API_URL=
export ETHERSCAN_API_KEY=

# Deployment Configuration
Expand Down
12 changes: 8 additions & 4 deletions docs/Deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ The following environment variables must be set:

- `RPC_URL`: The RPC URL of an EVM node
- `PRIVATE_KEY`: The private key to use
- `ETHERSCAN_API_URL`: The Etherscan API URL for the Etherscan's chain instance
- Note that the API endpoint varies per Etherscan chain instance
- Note to point to actual API endpoint (e.g. `/api`) and not just host
- `ETHERSCAN_API_KEY`: The Etherscan API key for the Etherscan's chain instance
- `INITIAL_AUTHED`: The address being auth'ed on the newly deployed `Greenhouse` instance

Expand All @@ -19,12 +22,13 @@ Run:

```bash
$ forge script \
--private-key $PRIVATE_KEY \
--private-key "$PRIVATE_KEY" \
--broadcast \
--rpc-url $RPC_URL \
--etherscan-api-key $ETHERSCAN_API_KEY \
--rpc-url "$RPC_URL" \
--verifier-url "$ETHERSCAN_API_URL" \
--etherscan-api-key "$ETHERSCAN_API_KEY" \
--verify \
--sig $(cast calldata "deploy(address)" $INITIAL_AUTHED) \
--sig $(cast calldata "deploy(address)" "$INITIAL_AUTHED") \
-vvv \
script/Greenhouse.s.sol:GreenhouseScript
```

0 comments on commit 6994346

Please sign in to comment.