Skip to content

Commit

Permalink
Update decentralized network
Browse files Browse the repository at this point in the history
  • Loading branch information
shanefontaine committed May 21, 2024
1 parent 2e3c82c commit a74c5a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion buildfiles.template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,15 @@ else
if (test "$SUBGRAPH_STUDIO_DEPLOYMENT_NAME" = "arbitrum-one"); then
SUBGRAPH_STUDIO_DEPLOYMENT_NAME="arbitrum"
fi
if (test "$SUBGRAPH_STUDIO_DEPLOYMENT_NAME" = "matic"); then
SUBGRAPH_STUDIO_DEPLOYMENT_NAME="polygon"
fi

# auth studio:
npx graph auth --studio $DEPLOY_KEY

# deploy studio:
npx graph deploy --studio "hop-protocol-$SUBGRAPH_STUDIO_DEPLOYMENT_NAME"
npx graph deploy --studio "hop-protocol-$SUBGRAPH_STUDIO_DEPLOYMENT_NAME-studio"
else
echo 'running hosted build'
# auth:
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
"build-deploy:mainnet:subgraph-studio": "NETWORK=mainnet IS_SUBGRAPH_STUDIO=true ./build.sh",
"build-deploy:arbitrum:subgraph-studio": "NETWORK=arbitrum-one IS_SUBGRAPH_STUDIO=true ./build.sh",
"build-deploy:gnosis:subgraph-studio": "NETWORK=gnosis IS_SUBGRAPH_STUDIO=true ./build.sh",
"build-deploy:optimism:subgraph-studio": "NETWORK=optimism IS_SUBGRAPH_STUDIO=true ./build.sh",
"build-deploy:base:subgraph-studio": "NETWORK=base IS_SUBGRAPH_STUDIO=true ./build.sh",
"build-deploy:polygon:subgraph-studio": "NETWORK=matic IS_SUBGRAPH_STUDIO=true ./build.sh",
"clean": "./clean.sh",
"clean:data": "rimraf data"
},
Expand Down

0 comments on commit a74c5a0

Please sign in to comment.