Setting up ZIION or installing tools manually on Ubuntu
Setting up INFURA and Etherscan
- Clone the repository
git clone https://github.com/istvanbohm/hacktivity2022.git
- Enter ther brownie direcotry
cd hacktivity2022/brownie/
- Install the required NPM packages by executing the following command from the brownie directory
npm install
Simulate the blockchain locally using ganache, to start execute the following command:
ganache-cli --hardfork istanbul --fork https://mainnet.infura.io/v3/<INFURA_KEY> -i 80000000
Note that you need to get the URL from INFURA.
After running ganache, wait for the "RPC Listening on 127.0.0.1:8545" message, then execute the following command from the brownie directory:
brownie console --network mainnet-fork
- The scripts folder contains example brownie scripts.
- Paste scripts section by section and examine the behavior of the contracts.
- Learn the syntax using the examples
- The brownie documentation can be found here:
https://eth-brownie.readthedocs.io/en/stable/
https://eth-brownie.readthedocs.io/_/downloads/en/stable/pdf/
Identify vulnerabilities in the contracts.