Giter VIP home page Giter VIP logo

data-misc's Introduction

Data Misc

Local Development

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!

Alert Responses

Missing Tokens

  • 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.

New updated Docker instructions:

  1. If you have missing tokens and want to update them, fork dune/spellbook

  2. Run and have your spellbook automatically updated with the latest missing tokens.

docker run \                                                   
    -e SPELLBOOK_PATH=$SPELLBOOK_PATH \
    -e DUNE_API_KEY=$DUNE_API_KEY \
    -v $SPELLBOOK_PATH:$SPELLBOOK_PATH \
    ghcr.io/cowprotocol/data-misc-missing-tokens:main

Note that this will require SPELLBOOK_PATH, DUNE_API_KEY variables set.

Step-by-step instructions:

  1. Check V1 and V2 queries for missing tokens.
  2. 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
  3. Fetch the missing token data
    python -m src.missing_tokens
    Note that this will require a DUNE_API_KEY This script will print the contents to be inserted in the console.
  4. Results should be inserted into:
    • V1 - deprecated-dune-v1-abstractions/ethereum/erc20/tokens.sql
    • V2 - models/tokens/ethereum/tokens_ethereum_erc20.sql
  5. Commit changes to branch and create a PR. Previous Example PR: PR 1378

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.