Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add instructions for deploy and verify #324

Merged
merged 2 commits into from
Aug 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions v2/scripts/deploy/deterministic/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,16 @@ To execute deployment script, following format is needed:
```
forge script scripts/deploy/deterministic/<Script>.s.sol --rpc-url <RPC_URL> --private-key <PRIVATE_KEY> --broadcast
```

To automatically verify contracts deployed with above scripts, verifier options are needed. Example for `GatewayEVM` which will deploy and verify both implementation and proxy contracts (it is the same for other scripts):

- etherscan
```
forge script scripts/deploy/deterministic/DeployGatewayEVM.s.sol --private-key <PRIVATE_KEY> --rpc-url <RPC_URL> --verify --etherscan-api-key <ETHERSCAN_API_KEY> --chain-id <CHAIN_ID> --broadcast
```

- blockscout
```

forge script scripts/deploy/deterministic/DeployGatewayEVM.s.sol --private-key <PRIVATE_KEY> --rpc-url <RPC_URL> --verify --verifier blockscout --verifier-url <VERIFIER_URL> --chain-id <CHAIN_ID> --broadcast
```
Loading