From c0030005e1f5abd6977d2e913d3acef4a0d011b3 Mon Sep 17 00:00:00 2001 From: nms-7 <57442379+nms-7@users.noreply.github.com> Date: Sun, 16 Nov 2025 08:41:41 -0500 Subject: [PATCH 1/2] updates subgraph deployment steps: alchemy->goldsky --- subgraph/README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/subgraph/README.md b/subgraph/README.md index 7266ccf4..85c70556 100644 --- a/subgraph/README.md +++ b/subgraph/README.md @@ -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 -``` \ No newline at end of file +./scripts/deploy.sh mainnet ampleforth-token-geyser-v2 +# once deployed, update the tag that frg-web-api looks for. +goldsky subgraph tag create ampleforth-token-geyser-v2/ --tag prod +``` From a86bc2668e5e3ded8c42ed8550d3d9add85a0dd3 Mon Sep 17 00:00:00 2001 From: nms-7 <57442379+nms-7@users.noreply.github.com> Date: Sun, 16 Nov 2025 08:42:45 -0500 Subject: [PATCH 2/2] Update deploy.sh --- subgraph/scripts/deploy.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/subgraph/scripts/deploy.sh b/subgraph/scripts/deploy.sh index a08341d0..c974fc23 100755 --- a/subgraph/scripts/deploy.sh +++ b/subgraph/scripts/deploy.sh @@ -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 \ No newline at end of file +goldsky subgraph deploy $2/$3 --path .