/ledger-subquery

This is the Fetch Ledger SubQuery project, an indexer for the Fetch network.

Primary LanguagePythonMIT LicenseMIT

Ledger SubQuery

This is the Fetch ledger SubQuery project, an indexer for the Fetch network.

Developing

Getting Started

1. Ensure submodules are updated

git submodule update --init --recursive

2. Install dependencies

yarn

# install submodule dependencies
(cd ./subql && yarn)

3. Generate types

yarn codegen

4. Build

yarn build

# build submodule
(cd ./subql && yarn build)

5. Run locally

yarn start:docker

End-to-end Testing

1. Install dependencies

pipenv install

2. Run all e2e tests

Note: end-to-end tests will truncate tables in the DB and interact with the configured fetchd node.

pipenv run python -m unittest discover -s ./test