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: 7 additions & 4 deletions subgraph/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The Graph is a tool for for indexing events emitted on the Ethereum blockchain.

```
Public graphql endpoint:
https://api.thegraph.com/subgraphs/name/aalavandhan/ampleforth
https://api.goldsky.com/api/public/project_cmgzjl03n004g5np20v5j3qpx/subgraphs/ampleforth-core/prod/gn
```

## Getting started
Expand Down Expand Up @@ -34,6 +34,9 @@ To build and deploy the subgraph to the graph hosted service:
./scripts/deploy.sh goerli ampleforth-core-goerli

# production deployment
./scripts/deploy.sh mainnet ampleforth-core
./scripts/deploy.sh avalanche ampleforth-core-avalanche
```
./scripts/deploy.sh mainnet ampleforth-core <VERSION>
./scripts/deploy.sh avalanche ampleforth-core-avalanche <VERSION>
# once deployed, update the tag that frg-web-api looks for.
goldsky subgraph tag create ampleforth-core/<VERSION> --tag prod
```
```
10 changes: 1 addition & 9 deletions subgraph/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +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 \
--ipfs https://ipfs.satsuma.xyz

goldsky subgraph deploy $2/$3 --path .