jagracar / dao_indexer

First tests creating an indexer for the Teia DAO smart contracts.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dao_indexer

Teia DAO indexer built with DipDup

Installation

This project is based on DipDup, a framework for building featureful dapps.

You need a Linux/macOS system with Python 3.11 installed. Use our installer for easy setup:

curl -Lsf https://dipdup.io/install.py | python3

See the Installation page for all options.

Usage

Run the indexer in-memory:

dipdup run

Store data in SQLite database:

dipdup -c . -c configs/dipdup.sqlite.yml run

Or spawn a Compose stack:

cd deploy
cp .env.default .env
# Edit .env file before running
docker compose up

Development setup

We recommend PDM for managing Python projects. To set up the development environment:

pdm install
$(pdm venv activate)

Some tools are included to help you keep the code quality high: black, ruff and mypy. Use scripts from the pyproject.toml to run checks manually or in CI:

# Format code
pdm format

# Lint code
pdm lint

# Build Docker image
pdm image

# Show all available scripts
pdm run --list

About

First tests creating an indexer for the Teia DAO smart contracts.

License:MIT License


Languages

Language:Python 99.3%Language:Dockerfile 0.7%