diff --git a/.env.example b/.env.example index cfee7d8..3469ec0 100644 --- a/.env.example +++ b/.env.example @@ -5,6 +5,7 @@ export PRIVATE_KEY= export RPC_URL= # Etherscan Verification +export ETHERSCAN_API_URL= export ETHERSCAN_API_KEY= # Deployment Configuration diff --git a/docs/Deployment.md b/docs/Deployment.md index 3bf5cad..15600e1 100644 --- a/docs/Deployment.md +++ b/docs/Deployment.md @@ -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 @@ -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 ```