Subgraph implementation for the BattleZips protocol
Subgraph: https://github.com/Ian-Bright/battlezip-subgraph
Contracts: https://github.com/jp4g/BattleZips
- Goerli
- Mumbai
- Polygon
- Generate template files for supported network of choice
yarn precodegen:<supported_network>
---
npm precodegen:<supported_network>
This command will populate the subgraph.yml file with the necessary parameters
- Generate code
yarn codegen
---
npm codegen
- (optional) Compile
yarn build
---
npm build
-
Update deploy script in package.json to point to your own subgraph
-
Deploy to respective network
yarn deploy:<supported_network>
---
npm deploy:<supported_network>