-
Notifications
You must be signed in to change notification settings - Fork 2
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
7 changed files
with
66 additions
and
15 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
CHAIN=$1 | ||
|
||
if [ -z "$CHAIN" ]; then | ||
echo "Usage: $0 <chain>" | ||
exit 1 | ||
fi | ||
|
||
SUBGRAPH=beefyfinance/clm-$CHAIN | ||
|
||
yarn prepare:$CHAIN | ||
yarn codegen | ||
yarn build | ||
|
||
yarn run graph remove $SUBGRAPH --node https://api.0xgraph.xyz/deploy | ||
sleep 5 | ||
|
||
yarn run graph create $SUBGRAPH --node https://api.0xgraph.xyz/deploy | ||
sleep 5 | ||
|
||
yarn run graph deploy $SUBGRAPH --node https://api.0xgraph.xyz/deploy --ipfs https://api.0xgraph.xyz/ipfs --version-label=v0.0.1 |
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,19 @@ | ||
#!/bin/bash | ||
|
||
CHAIN=$1 | ||
|
||
if [ -z "$CHAIN" ]; then | ||
echo "Usage: $0 <chain>" | ||
exit 1 | ||
fi | ||
|
||
SUBGRAPH=beefyfinance/clm-$CHAIN | ||
|
||
yarn prepare:$CHAIN | ||
yarn codegen | ||
yarn build | ||
|
||
goldsky subgraph delete $SUBGRAPH/0.0.1 | ||
sleep 5 | ||
|
||
goldsky subgraph deploy $SUBGRAPH/0.0.1 --path . |
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,13 @@ | ||
#!/bin/bash | ||
|
||
CHAIN=$1 | ||
|
||
if [ -z "$CHAIN" ]; then | ||
echo "Usage: $0 <chain>" | ||
exit 1 | ||
fi | ||
|
||
set -e | ||
|
||
yarn --silent run mustache config/$CHAIN.json subgraph.template.yaml > subgraph.yaml | ||
yarn --silent run mustache config/$CHAIN.json src/config.template.ts > src/config.ts |
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