salmanbao / lottery-subgraph

Safemoon lottery subgraph

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Safemoon Subgraph

TheGraph exposes a GraphQL endpoint to query the events and entities within the Binance Smart Chain and Safemoon lottery.

Dependencies

  • Graph CLI
    • Required to generate and build local GraphQL dependencies.
yarn global add @graphprotocol/graph-cli

Deployment

For any of the subgraph: blocks as [subgraph]

  1. Run the cd subgraphs/lottery command to move to the subgraph directory.

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

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

  4. Run graph auth

  5. Deploy via yarn deploy:studio.

About

Safemoon lottery subgraph

License:GNU General Public License v3.0


Languages

Language:TypeScript 97.7%Language:Shell 2.3%