hackbg / undexer

πŸŽ‰ The Undexer πŸŽ‰ Namada network indexer powering https://shielded.live/. See also: https://github.com/hackbg/undexer-node
5 stars 6 forks source link

Undexer

This is the Undexer. It decodes historical data from a Namada node, and caches it into PostgreSQL, so that you don't have to.

Undexer is the pilot project for Fadroma 2.0. See @fadroma/namada and @hackbg/borshest.

API reference and endpoints

For all endpoints available please refer to the OpenAPI specs.

Running

Dockerless staging deployment

Requires:

Setup:

git clone --recursive https://github.com/hackbg/undexer
cd undexer
pnpm i
pnpm build:wasm:dev # or pnpm build:wasm:prod
pnpm start # concurrently runs api and indexer

Dockerized staging deployment

Requires:

Setup:

git clone --recursive https://github.com/hackbg/undexer
cd undexer
just up # or `docker compose up`, etc.

Production deployment

Troubleshooting

The submodule

./fadroma is a Git submodule. Handle accordingly. For example, if the directory is empty, this usually means you cloned the Undexer repo without submodules. To populate it, use:

git submodule update --init --recursive

Others

If you catch anything breaking, get in touch by filing an issue or PR in this repository.