Repo for Array contracts.
The testing-suite is configured for use with Ganache on a forked mainnet.
To run the tests-
- Install Python 3.8
- Linux: Refer to your distro documentation
- Mac installer
- Windows installer
- Install python requirements
pip3 install -r requirements.txt
- Install Node.js 10.x
- Linux or Mac: via your package manager
- Windows: x64 installer
- Other 10.x downloads
- Install Ganache
npm install -g [email protected]
- Install Yarn
- Install Black
python3 -m pip install black
- Setup an account on Etherscan and create an API key
- Set
ETHERSCAN_TOKEN
environment variable to this key's value- Windows:
setx ETHERSCAN_TOKEN yourtokenvalue
- Mac/Linux:
echo "export ETHERSCAN_TOKEN=\"yourtokenvalue\"" | sudo tee -a ~/.bash_profile
- Windows:
- Set
- Setup an account on Infura and create an API key
- Set
WEB3_INFURA_PROJECT_ID
environment variable to this key's value- Windows:
setx WEB3_INFURA_PROJECT_ID yourtokenvalue
- Mac/Linux:
echo "export WEB3_INFURA_PROJECT_ID=\"yourtokenvalue\"" | sudo tee -a ~/.bash_profile
- Windows:
- Set
- Close & re-open your terminal before proceeding (to get the new environment variable values)
- If you don't have git yet, go set it up
- Pull the repository from GitHub and install its dependencies
yarn install --lock-file
- You may have to install with
--ignore-engines
(try this if you get an error)
- You may have to install with
- Run the test
brownie test