Follow examples provided in base dependency duneapi
python3 -m venv venv
source ./venv/bin/activate
pip install -r requirements.txt
cp .env.sample .env <----- Copy your Dune credentials here!
- Importance: Generally this needs to be updated before the solver payouts (Tuesdays) because lack of token data could result in unusual slippage calculations.
- Action required: Create a PR to Dune Spellbook with the newest missing tokens data.
Instructions:
- Check V1 and V2 queries for missing tokens.
- If you have missing tokens and want to update them, fork dune/spellbook,
clone it to your local machine, and create a new branch with
git checkout -b missing-tokens
- Fetch the missing token data
Note that this will require a
python -m src.missing_tokens
DUNE_API_KEY
andINFURA_KEY
. This script will print the contents to be inserted in the console. - Results should be inserted into:
- V1 -
deprecated-dune-v1-abstractions/ethereum/erc20/tokens.sql
- V2 -
models/tokens/ethereum/tokens_ethereum_erc20.sql
- V1 -
- Commit changes to branch and create a PR. Previous Example PR: PR 1378