diff --git a/.gitignore b/.gitignore index c5d6f52..6d1278f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,8 @@ .DS_STORE -deploy.sh -ropsten-deploy.sh yarn-error.log node_modules/ .idea/ build/ generated/ subgraph.yaml +thegraph-access-token.txt diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..873f46e --- /dev/null +++ b/deploy.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +THEGRAPH_ACCESS_TOKEN="$(cat thegraph-access-token.txt)" +npm run prepare:mainnet && ./node_modules/.bin/graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ wise-foundation/wise --access-token $THEGRAPH_ACCESS_TOKEN diff --git a/ropsten-deploy.sh b/ropsten-deploy.sh new file mode 100755 index 0000000..04a1aa6 --- /dev/null +++ b/ropsten-deploy.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +THEGRAPH_ACCESS_TOKEN="$(cat thegraph-access-token.txt)" +npm run prepare:ropsten && ./node_modules/.bin/graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ wise-foundation/wise-ropsten --access-token $THEGRAPH_ACCESS_TOKEN