Skip to content

allo-protocol/allo-v2-graph

Repository files navigation

Allo-V2 Graph

https://thegraph.com/docs/en/deploying/deploying-a-subgraph-to-hosted/#using-graph-cli

Supported Networks

Network Playground API Endpoint
mainnet 🔗 🔗
goerli 🔗 🔗
optimism 🔗 🔗
base 🔗 🔗
arbitrum 🔗 🔗
pgn 🔗 🔗
polygon 🔗 🔗
celo 🔗 🔗
zksync-era 🔗 🔗

Supported Test Networks

Network Playground API Endpoint
arbitrum-sepolia 🔗 🔗

Deploy

Run codegen

graph codegen

Authenticate - incase of hosted service

graph auth --product hosted-service <YOUR_API_KEY>

Authenticate - incase of studio

graph auth --studio <YOUR_API_KEY>

Local or Custom Node Deployment

# Create the subgraph
# graph create allo-protocol/allo --node http://localhost:8020/
graph graph create <GITHUB_USER>/<SUBGRAPH_NAME> --node <NODE_URL>

# Deploy the subgraph
# graph deploy  --node http://localhost:8020/ --ipfs http://localhost:5001/  gitcoin/allo ./subgraph.yaml
graph deploy  --node <NODE_URL> --ipfs <IPFS_URL>  <GITHUB_USER>/<SUBGRAPH_NAME> ./subgraph.yaml

Deploy Subgraph - incase of hosted service

graph deploy --product hosted-service <GITHUB_USER>/<SUBGRAPH_NAME>

Deploy Subgraph - incase of studio

graph deploy --studio <SUBGRAPH_NAME>

Note: If you find yourself wanting to run the entire flow in one command. Use this example where we deploy the subgraph on goerli

# Hosted Service
rm -rf generated && rm -rf build && rm -rf subgraph.yaml &&
    yarn run prepare:goerli &&
    graph codegen &&
    graph auth --product hosted-service <YOUR_API_KEY> &&
    graph deploy --product hosted-service <GITHUB_USER>/<SUBGRAPH_NAME>

# Studio
rm -rf generated && rm -rf build && rm -rf subgraph.yaml &&
    yarn run prepare:goerli &&
    graph codegen &&
    graph auth --product studio <YOUR_API_KEY> &&
    graph deploy --product studio <SUBGRAPH_NAME>

About

Indexing allo v2 via graph

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •