You can download a virtual machine with all the requirements installed and configured.
The following show how to install the requirements locally.
- Install truffle: https://github.com/trufflesuite/truffle
npm install -g truffle
- Install ganache: https://github.com/trufflesuite/ganache
- Follow https://github.com/trufflesuite/ganache#getting-started
- Consider using the prebuilt version: https://truffleframework.com/ganache
- Install geth: https://github.com/ethereum/go-ethereum
- Install solc: https://github.com/ethereum/solidity
- Follow https://solidity.readthedocs.io/en/latest/installing-solidity.html#binary-packages
- Consider using the binary version: https://github.com/ethereum/solidity/releases/download/v0.4.25/solc-static-linux
Once Ganache is built, run it (from the ganache directory):
$ npm start
The GUI should appear To have the same addresses and transactions hashes than the VM, update the menmonic:
- Setting
- Accounts & Keys
- Change to menmoic to:
wrap deliver mansion shoot example puppy upgrade delay will merge clay cousin
- Restart Ganache
Once Ganache run, you clone this repo, and deploy the exercises:
git clone https://github.com/trailofbits/grehack18
cd grehack18
truffle migrate
To restart the exersises, close and re-run ganache and truffle migrate
.