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

Submodule stuff #4

Merged
merged 8 commits into from
Oct 3, 2022
Merged
Show file tree
Hide file tree
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
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
2) Install [foundry](https://book.getfoundry.sh/getting-started/installation)
3) ```forge install```
4) ```git submodule update --init --recursive```
4a) ```cd ./lib/ERC4626 && git checkout main```. This should switch it to ```corddry```'s fork.
5) (Optional) Occasionally update / pull your submodules to keep them up to date. ```git submodule update --recursive --remote```
6) Create your own .env and copy SAMPLE.env into there. Sample mainnet validator deposit keys are in test/deposit_data-TESTS-MAINNET.json if you need more.
7) You don't need to add PRIVATE_KEY, ETHERSCAN_KEY, or FRXETH_OWNER if you are not actually deploying on live mainnet
Expand Down Expand Up @@ -54,10 +55,13 @@ or ```source .env && forge test --fork-url $MAINNET_RPC_URL -m test_frxETHMinter

### Goerli
#### Single deploy
```forge create src/frxETH.sol:frxETH --private-key $PRIVATE_KEY --rpc-url $GOERLI_RPC_URL --verify --optimize --etherscan-api-key $ETHERSCAN_KEY --constructor-args $FRXETH_OWNER $TIMELOCK_ADDRESS```
```source .env && forge create src/frxETH.sol:frxETH --private-key $PRIVATE_KEY --rpc-url $GOERLI_RPC_URL --verify --optimize --etherscan-api-key $ETHERSCAN_KEY --constructor-args $FRXETH_OWNER $TIMELOCK_ADDRESS```

#### Group deploy script
```forge script script/deployGoerli.s.sol:Deploy --rpc-url $GOERLI_RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_KEY```
Goerli
```source .env && forge script script/deployGoerli.s.sol:Deploy --rpc-url $GOERLI_RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_KEY```
Mainnet
```source .env && forge script script/deployMainnet.s.sol:Deploy --rpc-url $MAINNET_RPC_URL --private-key $PRIVATE_KEY --broadcast --verify --etherscan-api-key $ETHERSCAN_KEY```

#### Etherscan Verification
Sometimes the deploy scripts above fail with Etherscan's verification API. In that case, use:
Expand Down
1 change: 1 addition & 0 deletions SAMPLE.env
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ VALIDATOR_TEST_DDROOT5="0x4645ce50940a306f2a120a8f2a80fd86bd9567760c3a742cf50aee

# Live
# =================================
VALIDATOR_MAINNET_WITHDRAWAL_CREDENTIALS=""
VALIDATOR_GOERLI_PUBKEY1=""
VALIDATOR_GOERLI_SIG1=""
VALIDATOR_GOERLI_DDROOT1=""
Expand Down
Loading