mongoloidkhulmikuki366385 / urban-couscous

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yearn Affiliate Wrapper Brownie Mix

What you'll find here

This mix is configured for use with Ganache on a forked mainnet.

Installation and Setup

  1. Install Brownie & Ganache-CLI, if you haven't already.

  2. Sign up for Infura and generate an API key. Store it in the WEB3_INFURA_PROJECT_ID environment variable.

export WEB3_INFURA_PROJECT_ID=YourProjectID
  1. 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_TOKEN environment variable.
export ETHERSCAN_TOKEN=YourApiToken
  1. Download the mix.
brownie bake yearn-affiliate

Known issues

No access to archive state errors

If you are using Ganache to fork a network, then you may have issues with the blockchain archive state every 30 minutes. This is due to your node provider (i.e. Infura) only allowing free users access to 30 minutes of archive state. To solve this, upgrade to a paid plan, or simply restart your ganache instance and redploy your contracts.

Resources

About

License:GNU Affero General Public License v3.0


Languages

Language:Python 78.5%Language:Solidity 21.0%Language:Shell 0.3%Language:JavaScript 0.2%