forked from aragon/court-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
336 additions
and
344 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{} |
Empty file.
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,32 @@ | ||
# #!/usr/bin/env bash | ||
|
||
# # Exit script as soon as a command fails. | ||
# set -o errexit | ||
|
||
# # Run graph build | ||
# npm run build:graph | ||
|
||
# # Require $GRAPHKEY to be set | ||
# if [[ -z "${GRAPHKEY}" ]]; then | ||
# echo "Please set \$GRAPHKEY to your The Graph access token to run this command." | ||
# exit 1 | ||
# fi | ||
|
||
# # Use custom subgraph name based on target network | ||
# if [[ "$NETWORK" != "gnosis" ]]; then | ||
# SUBGRAPH_EXT="-${NETWORK}" | ||
# else | ||
# SUBGRAPH_EXT="" | ||
# fi | ||
|
||
# graph deploy --studio celeste-${SUBGRAPH_EXT} | ||
|
||
# # # Select IPFS and The Graph nodes | ||
# # if [[ "$NETWORK" = "rpc" ]]; then | ||
# # IPFS_NODE="http://localhost:5001" | ||
# # GRAPH_NODE="http://127.0.0.1:8020" | ||
# # else | ||
# # IPFS_NODE="https://api.thegraph.com/ipfs/" | ||
# # GRAPH_NODE="https://api.thegraph.com/deploy/" | ||
# # fi | ||
|
||
# # # Deploy subgraph | ||
# # graph deploy 1hive/celeste${SUBGRAPH_EXT} \ | ||
# # --ipfs ${IPFS_NODE} \ | ||
# # --node ${GRAPH_NODE} \ | ||
# # --access-token "$GRAPHKEY" > deploy-output.txt | ||
|
||
#!/usr/bin/env bash | ||
|
||
# Exit script as soon as a command fails. | ||
set -o errexit | ||
|
||
# Run graph build | ||
npm run build:graph | ||
|
||
# Require $GRAPHKEY to be set | ||
if [[ -z "${GRAPHKEY}" ]]; then | ||
echo "Please set \$GRAPHKEY to your The Graph access token to run this command." | ||
exit 1 | ||
fi | ||
|
||
# Use custom subgraph name based on target network | ||
if [[ "$NETWORK" != "xdai" ]]; then | ||
SUBGRAPH_EXT="-${NETWORK}" | ||
else | ||
SUBGRAPH_EXT="" | ||
fi | ||
|
||
# Select IPFS and The Graph nodes | ||
if [[ "$NETWORK" = "rpc" ]]; then | ||
IPFS_NODE="http://localhost:5001" | ||
GRAPH_NODE="http://127.0.0.1:8020" | ||
else | ||
IPFS_NODE="https://api.thegraph.com/ipfs/" | ||
GRAPH_NODE="https://api.thegraph.com/deploy/" | ||
fi | ||
|
||
# Deploy subgraph | ||
graph deploy --studio celeste-gnosis |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.