An open-source subgraph index for Burning Zombies, powered by Avalanche.
It stores the collection info.
Stores token info.
It stores trait info assigned to tokens.
It stores the token's events.
{
zombies(first: 10, orderBy: score, orderDirection: desc) {
id
name
owner
imageURI
score
}
}
{
zombies(where: { name: "Yelena" }) {
id
name
owner
imageURI
score
history {
eventType
date
from
to
}
}
}
npm run install # Install dependencies
npm run codegen # Generates AssemblyScript types
npm run build # Build subgraph
npm run deploy # Deploy to network
npm run create-local # Create local subgraph (check the host and port in the package.json)
npm run remove-local # Remove local subgraph (check the host and port in the package.json)
npm run deploy-local # Deploy local subgraph (check the host and port in the package.json)