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.
Showing
9 changed files
with
110 additions
and
99 deletions.
There are no files selected for viewing
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,8 +1,7 @@ | ||
|
||
module.exports = { | ||
xdai: [ | ||
gnosis: [ | ||
"0x41ab49872ed459c840d0caecd47fcdc201c48307", // Subscriptions v1.0 | ||
], | ||
rinkeby: [], | ||
polygon: [] | ||
} | ||
goerli: [], | ||
polygon: [], | ||
}; |
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,2 +1,2 @@ | ||
// This file was autogenerated at deployment time picking the list of blacklisted modules defined in "blacklisted-modules.js" for network polygon | ||
export const BLACKLISTED_MODULES: string[] = [] | ||
// This file was autogenerated at deployment time picking the list of blacklisted modules defined in "blacklisted-modules.js" for network gnosis | ||
export const BLACKLISTED_MODULES: string[] = ["0x41ab49872ed459c840d0caecd47fcdc201c48307"] |
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
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,36 +1,38 @@ | ||
#!/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 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" != "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 | ||
|
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.