- Install repo update package.json with latest motif-item, motif-listing, motif-sdk yarn sudo apt-get install libsecret-1-dev
- 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
- 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
-
Notifications
You must be signed in to change notification settings - Fork 0
motif-foundation/motif-ERC1155-subgraph
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published