Skip to content

motif-foundation/motif-ERC1155-subgraph

Repository files navigation

Motif - ERC1155 Subgraph

  1. Install repo update package.json with latest motif-item, motif-listing, motif-sdk yarn sudo apt-get install libsecret-1-dev
  2. Update subgraph update subgraph.yaml with data you got from motif-item, motif-listing update network, address, startblock. starblock is the block you want indexing to start
  3. Deploy subgraph to thegraph node clone the repo to server Install Yarn curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list sudo apt update && sudo apt install yarn yarn npm install -g @graphprotocol/graph-cli sudo apt-get install libsecret-1-dev make sure graph node runs as stated in motif-thegraph-node make sure ipfs port is not allowed sudo ufw deny 5001 create subgraph nano subgraph.yaml paste subgraph.yaml updated as above yarn build:all yarn create-motif yarn deploy-motif note the subgraph endpoints: Queries (HTTP): http://localhost:8000/subgraphs/name/motif-ERC1155-subgraph Subscriptions (WS): http://localhost:8001/subgraphs/name/motif-ERC1155-subgraph allow 8000 port on server sudo ufw allow 8000

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published