Skip to content

Commit

Permalink
Merge pull request #4 from FraxFinance/travis
Browse files Browse the repository at this point in the history
Submodule stuff
  • Loading branch information
FortisFortuna authored Oct 3, 2022
2 parents e8f1a8a + 40421b7 commit 12fd940
Show file tree
Hide file tree
Showing 10 changed files with 1,348 additions and 170 deletions.
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

0 comments on commit 12fd940

Please sign in to comment.