Skip to content

arrayfinance/array-contracts

Repository files navigation

MythXBadge

Array Contracts

Deployed contracts

Access Control

Repo for Array contracts.

Testing

The testing-suite is configured for use with Ganache on a forked mainnet.

To run the tests-

  1. Install Python 3.8
  2. Install python requirements
    • pip3 install -r requirements.txt
  3. Install Node.js 10.x
  4. Install Ganache
    • npm install -g ganache-cli@6.12.1
  5. Install Yarn
  6. Install Black
    • python3 -m pip install black
  7. 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
  8. 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
  9. Close & re-open your terminal before proceeding (to get the new environment variable values)
  10. If you don't have git yet, go set it up
  11. 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)
  12. Run the test
    • brownie test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published