Repo for Array contracts.
The testing-suite is configured for use with Ganache on a forked mainnet.
To run the tests:
-
Install Brownie & Ganache-CLI, if you haven't already.
-
Sign up for Infura and generate an API key. Store it in the
WEB3_INFURA_PROJECT_IDenvironment variable.
export WEB3_INFURA_PROJECT_ID=YourProjectID- Sign up for Etherscan and generate an API key. This is required for fetching source codes of the mainnet contracts we will be interacting with. Store the API key in the
ETHERSCAN_TOKENenvironment variable.
export ETHERSCAN_TOKEN=YourApiToken- Install project dependencies.
pip install -r requirements.txt- Run the tests.
brownie test -v -C -G