Tags
In order to set your environment up in preparation for following the Runbook to test a BIP, follow these steps:
- Clone the
BeanstalkGitHub repository and change directories into the new folder. - Checkout the branch in the GitHub pull request linked in the BIP runbook.
- Change directories into the
protocolfolder. - Install all packages.
- Compile the Solidity code.
- Fork mainnet locally (need Foundry installed).
- Open another terminal window in order to run commands against your mainnet fork. At this point you are ready to follow the Runbook for the given BIP.
Suggestion: name the repository based on which BIP you are verifying. BIP-X will be the name of the directory on your computer after cloning the repository.
git clone git@github.com:BeanstalkFarms/Beanstalk.git BIP-X
cd BIP-X/git checkout example-branchcd protocol/yarnnpx hardhat clean && npx hardhat compileanvil --fork-url https://arb-mainnet.g.alchemy.com/v2/1CQLa5F51IhNe3tAGviuUpzON4Wbbo6I --chain-id 1337