Awesome
battlezip-subgraph
Background
Subgraph implementation for the BattleZips protocol
BattleZips Repos
Subgraph: https://github.com/Ian-Bright/battlezip-subgraph
Contracts: https://github.com/jp4g/BattleZips
Current supported networks
- Goerli
- Mumbai
- Polygon
Setup
- 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>