Skip to content

DistributedCollective/babelfish-subgraph

Repository files navigation

Babelfish Subgraph

Babelfish Subgraph is the main data provider for Babelfish dapp.

Install

  • yarn install

Development

Set up config file

Each network deployment requires setting up a JSON configuration file in config/<NetworkName>.json.

Build, Deploy and run subgraph for specific network. This will run docker containers on your local machine, execute all needed commands inside:

$ yarn rsk
$ yarn rsk-testnet

Deployment

To deploy subgraphs for specific network, you just need to run this command on some server:

$ yarn rsk
$ yarn rsk-testnet

Remember to generate contracts types on each ABI change.

generate-contracts-types

Testing

$ yarn test

To remove all containers started by tests you need to run:

$ yarn clear-tests-dockers