From c336b3f52a73bfc332bfe3137fb239f252cb6f47 Mon Sep 17 00:00:00 2001 From: Jan-Felix Date: Thu, 10 Oct 2024 12:22:04 +0200 Subject: [PATCH] add subgraph support for base --- packages/subgraph/.env.sample | 3 ++- packages/subgraph/network_configs/base.json | 4 ++++ packages/subgraph/package.json | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 packages/subgraph/network_configs/base.json diff --git a/packages/subgraph/.env.sample b/packages/subgraph/.env.sample index 009850a84..7423927b2 100644 --- a/packages/subgraph/.env.sample +++ b/packages/subgraph/.env.sample @@ -7,4 +7,5 @@ HOSTED_SERVICE_SUBGRAPH__BSC=asgeir-eth/zodiac-modifier-roles-bsc HOSTED_SERVICE_SUBGRAPH__MAINNET=asgeir-eth/zodiac-modifier-roles-mainnet HOSTED_SERVICE_SUBGRAPH__OPTIMISM=asgeir-eth/zodiac-modifier-roles-optimism HOSTED_SERVICE_SUBGRAPH__POLYGON=asgeir-eth/zodiac-modifier-roles-polygon -HOSTED_SERVICE_SUBGRAPH__OPTIMISM_ON_GNOSIS_CHAIN=asgeir-eth/zodiac-modifier-roles-optimism-on-gnosis-chain \ No newline at end of file +HOSTED_SERVICE_SUBGRAPH__OPTIMISM_ON_GNOSIS_CHAIN=asgeir-eth/zodiac-modifier-roles-optimism-on-gnosis-chain +HOSTED_SERVICE_SUBGRAPH__BASE=asgeir-eth/zodiac-modifier-roles-base \ No newline at end of file diff --git a/packages/subgraph/network_configs/base.json b/packages/subgraph/network_configs/base.json new file mode 100644 index 000000000..e4df8c6e5 --- /dev/null +++ b/packages/subgraph/network_configs/base.json @@ -0,0 +1,4 @@ +{ + "network": "base", + "startBlock": 13191705 +} \ No newline at end of file diff --git a/packages/subgraph/package.json b/packages/subgraph/package.json index 0725435f9..6db9c31c8 100644 --- a/packages/subgraph/package.json +++ b/packages/subgraph/package.json @@ -20,6 +20,7 @@ "deploy:mainnet": "yarn prepare:mainnet && bash -c 'source .env || true && graph deploy --node https://api.thegraph.com/deploy/ $HOSTED_SERVICE_SUBGRAPH__MAINNET'", "deploy:optimism": "yarn prepare:optimism && bash -c 'source .env || true && graph deploy --node https://api.thegraph.com/deploy/ $HOSTED_SERVICE_SUBGRAPH__OPTIMISM'", "deploy:polygon": "yarn prepare:polygon && bash -c 'source .env || true && graph deploy --node https://api.thegraph.com/deploy/ $HOSTED_SERVICE_SUBGRAPH__POLYGON'", + "deploy:base": "yarn prepare:base && bash -c 'source .env || true && graph deploy --node https://api.thegraph.com/deploy/ $HOSTED_SERVICE_SUBGRAPH__BASE'", "prepare:goerli": "mustache network_configs/goerli.json subgraph.template.yaml > subgraph.yaml", "prepare:sepolia": "mustache network_configs/sepolia.json subgraph.template.yaml > subgraph.yaml", "prepare:avalanche": "mustache network_configs/avalanche.json subgraph.template.yaml > subgraph.yaml", @@ -27,6 +28,7 @@ "prepare:mainnet": "mustache network_configs/mainnet.json subgraph.template.yaml > subgraph.yaml", "prepare:optimism": "mustache network_configs/optimism.json subgraph.template.yaml > subgraph.yaml", "prepare:polygon": "mustache network_configs/polygon.json subgraph.template.yaml > subgraph.yaml", + "prepare:base": "mustache network_configs/base.json subgraph.template.yaml > subgraph.yaml", "deploy:optimism-on-gnosis-chain": "yarn prepare:optimism-on-gnosis-chain && bash -c 'source .env || true && graph deploy --node https://api.thegraph.com/deploy/ $HOSTED_SERVICE_SUBGRAPH__OPTIMISM_ON_GNOSIS_CHAIN'", "prepare:optimism-on-gnosis-chain": "mustache network_configs/optimism-on-gnosis-chain.json subgraph.template.yaml > subgraph.yaml", "prepare:arbitrum-one": "mustache network_configs/arbitrum-one.json subgraph.template.yaml > subgraph.yaml",