Skip to content

DeMaskFinance/demask-subgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

🌎 Demask Subgraph

TheGraph exposes a GraphQL endpoint to query the events and entities within the Demask ecosystem.

Currently, there are multiple subgraphs about Mumbai and Chapel network.

Subgraphs

  1. Mumbai: Tracks all events and entities Demask on Mumbai network.

  2. Chapel: Tracks all events and entities Demask on Chapel network.

Dependencies

  • Graph CLI
    • Required to generate and build local GraphQL dependencies.

Install with yarn:

yarn global add @graphprotocol/graph-cli

Install with npm:

npm install -g @graphprotocol/graph-cli

Initialize

graph init --product hosted-service <GITHUB_ACCOUNT>/<DIRECTORY>

Deployment

For hosted service of the subgraph:

  1. Run the cd <DIRECTORY> command to move to the subgraph directory.

  2. Run the graph codegen command to prepare the TypeScript sources for the GraphQL (generated/*).

  3. Run the graph build command to build the subgraph, and check compilation errors before deploying.

  4. Run graph auth --product hosted-service '<ACCESS_TOKEN>' command to authenticate with your deploy key.

  5. Deploy via graph deploy --product hosted-service <GITHUB_ACCOUNT_USER>/<DIRECTORY>.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors