Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support running local graph instance for local-ovm environment #107

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
network=$1
subgraph=$2
networks='mainnet optimism kovan optimism-kovan'
networks='mainnet optimism kovan optimism-kovan optimism-local'

GRAPH=${GRAPH:-graph}

Expand Down
5 changes: 3 additions & 2 deletions deploy.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash
set -ex
network=$1
subgraph=$2
token=$THEGRAPH_SNX_ACCESS_TOKEN
networks='mainnet optimism kovan optimism-kovan'
networks='mainnet optimism kovan optimism-kovan optimism-local'

GRAPH=${GRAPH:-graph}

Expand All @@ -12,5 +13,5 @@ if [ "all" == $network ]; then
SNX_NETWORK=$i $GRAPH deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ --access-token $THEGRAPH_SNX_ACCESS_TOKEN synthetixio-team/$i-$subgraph subgraphs/$subgraph.js
done
else
SNX_NETWORK=$network $GRAPH deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ --access-token $token synthetixio-team/$network-$subgraph subgraphs/$subgraph.js
SNX_NETWORK=$network npx $GRAPH deploy --node $GRAPH_NODE_URL --ipfs $IPFS_NODE_URL --access-token $token synthetixio-team/$network-$subgraph subgraphs/$subgraph.js
fi
Loading