Skip to content

EthereumCommonwealth/Dex223-substream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Substream dex223

Install tools

  1. Install substream https://docs.substreams.dev/documentation/consume/installing-the-cli
  2. Create account in https://app.pinax.network/ and you have permision geting SUBSTREAMS_API_TOKEN="<SUBSTREAMS_API_TOKEN>"
  3. Install docker for up graph-node (only local)
  4. Run all instruction from ./subgraph/README.md and ./substreams/README.md

Graph-node local

  1. Open new terminal in ./graph-node and create .env file, check .env.example

  2. Run command

    export $(xargs < .env)
    bash ./substreams-config-gen.sh
    docker-compose -f docker-compose.yml up -d
  3. Open ./subgraph in other terminal

    yarn create-local
    yarn deploy-local

Publish to TheGraph

  1. ./subgrpah

  2. Run command

    graph publish

    You see link https://cli.thegraph.com/.... open this link input value in form and click Deploy

  3. If you want update

    graph publish --subgraph-id <SUBGRAPH ID>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages