Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions subgraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,14 @@ To build and deploy the subgraph to the graph hosted service:
```
# local deployment
./scripts/deploy-local.sh mainnet ampleforth-token-geyser-v2
```

You should have your own Goldsky API key to use with the Goldsky CLI.

Note you must set the (new) version to deploy to, and then update the tag separately.
```
# prod deployment
./scripts/deploy.sh mainnet ampleforth-token-geyser-v2
```
./scripts/deploy.sh mainnet ampleforth-token-geyser-v2 <VERSION>
# once deployed, update the tag that frg-web-api looks for.
goldsky subgraph tag create ampleforth-token-geyser-v2/<VERSION> --tag prod
```
8 changes: 1 addition & 7 deletions subgraph/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,4 @@ set -e

yarn mustache ./configs/$1.json subgraph.template.yaml > ./subgraph.yaml

yarn codegen

yarn build

yarn graph deploy $2 \
--node https://subgraphs.alchemy.com/api/subgraphs/deploy \
--deploy-key $GRAPH_AUTH
goldsky subgraph deploy $2/$3 --path .