From 5c25a192a17f8844f7d6653b277a9d96d640306d Mon Sep 17 00:00:00 2001 From: emmdim Date: Wed, 14 Feb 2024 21:41:15 +0100 Subject: [PATCH] Subgraph updates for sepolia --- packages/subgraph/manifest/data/sepolia.json | 13 +++++++++++++ packages/subgraph/package.json | 4 ++-- packages/subgraph/scripts/deploy-subgraph.sh | 5 ++--- packages/subgraph/utils/constants.ts | 2 +- 4 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 packages/subgraph/manifest/data/sepolia.json diff --git a/packages/subgraph/manifest/data/sepolia.json b/packages/subgraph/manifest/data/sepolia.json new file mode 100644 index 00000000..50158ca6 --- /dev/null +++ b/packages/subgraph/manifest/data/sepolia.json @@ -0,0 +1,13 @@ +{ + "info": "# Do not edit subgraph.yaml,this is a generated file. \n# Instead, edit subgraph.placeholder.yaml and run: yarn manifest", + "network": "sepolia", + "dataSources": { + "PluginSetupProcessors": [ + { + "name": "PluginSetupProcessor", + "address": "0xb663C36d6fd959beeF2b82Bb40823660FEAaa55f", + "startBlock": 4421516 + } + ] + } +} diff --git a/packages/subgraph/package.json b/packages/subgraph/package.json index e1f08230..514a9356 100644 --- a/packages/subgraph/package.json +++ b/packages/subgraph/package.json @@ -21,8 +21,8 @@ }, "devDependencies": { "osx-ethersV120": "npm:@aragon/osx-ethers@1.2.1", - "@graphprotocol/graph-cli": "^0.51.0", - "@graphprotocol/graph-ts": "^0.31.0", + "@graphprotocol/graph-cli": "^0.68.0", + "@graphprotocol/graph-ts": "^0.32.0", "matchstick-as": "^0.5.2", "mustache": "^4.2.0", "ts-morph": "^17.0.1", diff --git a/packages/subgraph/scripts/deploy-subgraph.sh b/packages/subgraph/scripts/deploy-subgraph.sh index 2fe68d37..1ec529e9 100755 --- a/packages/subgraph/scripts/deploy-subgraph.sh +++ b/packages/subgraph/scripts/deploy-subgraph.sh @@ -45,13 +45,12 @@ then --ipfs http://localhost:5001 \ --node http://localhost:8020 else - graph deploy $FULLNAME \ + graph deploy --studio $FULLNAME \ --version-label $SUBGRAPH_VERSION \ - --node https://app.satsuma.xyz/api/subgraphs/deploy \ --deploy-key $GRAPH_KEY > deploy-output.txt SUBGRAPH_ID=$(grep "Build completed:" deploy-output.txt | grep -oE "Qm[a-zA-Z0-9]{44}") rm deploy-output.txt echo "The Graph deployment complete: ${SUBGRAPH_ID}" -fi \ No newline at end of file +fi diff --git a/packages/subgraph/utils/constants.ts b/packages/subgraph/utils/constants.ts index 158dd789..56f6cca9 100644 --- a/packages/subgraph/utils/constants.ts +++ b/packages/subgraph/utils/constants.ts @@ -1,4 +1,4 @@ export const ADDRESS_ZERO = '0x0000000000000000000000000000000000000000'; export const PLUGIN_INTERFACE = '0x11223344'; -export const PLUGIN_REPO_ADDRESS = '0x98c60a356f03244f9c33c9ca224d960cd45fd2c1'; // make sure address are lowercased +export const PLUGIN_REPO_ADDRESS = '0xb663C36d6fd959beeF2b82Bb40823660FEAaa55f'; // make sure address are lowercased