Skip to content

nekineznanec/surf-subgraph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Surf Finance Subgraph

Surf subgraph queries the following events and entities occuring within the Surf's main token and Whirlpool contract:

  • transaction data
  • token information
  • supply information

The GraphQL schema is currently in rudimentary form and under development.

Setup

Prerequisites

  • Global Yarn Packages
    • ganache-cli
    • truffle
    • graph-cli
  • Docker

Subgraph

Clone the balancer subgraph

git clone [email protected]:nekineznanec/surf-subgraph.git

Update factory address in subgraph.yaml to the one listed as part of the deploy

Install dependencies

yarn

Generate the Graph code

yarn codegen

Create local node

yarn create:local

Deploy locally

yarn deploy:local

Any updates can be made to this repo and re-running yarn deploy:local without needing to re-initialize the environment.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published