This subgraph dynamically tracks the new players joining the game, the interest generated in the game, if an player performs an early withdraw etc.
After cloning the repository run yarn install
Change the network name and the contract address in the YAML file.
Run yarn codegen
If everything compiles sucessfully then run yarn build
Now, you are ready for the network deployment.
Now, let's suppose the subgraph that is created on the graph ui has a name Maticgoodghosting.
then the deployment command would be like and make sure in your local the root folder name is Maticgoodghosting
--debug \
--node https://api.thegraph.com/deploy/ \
--ipfs https://api.thegraph.com/ipfs/ \
good-ghosting/Maticgoodghosting \
--access-token <ACCESS_TOKEN_IN_THE_GRAPH_DASHBOARD>```