Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 863 Bytes

README.md

File metadata and controls

53 lines (34 loc) · 863 Bytes

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