Skip to content

Commit

Permalink
add subgraph support for base
Browse files Browse the repository at this point in the history
  • Loading branch information
jfschwarz committed Oct 10, 2024
1 parent 4523133 commit c336b3f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/subgraph/.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -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
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
4 changes: 4 additions & 0 deletions packages/subgraph/network_configs/base.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"network": "base",
"startBlock": 13191705
}
2 changes: 2 additions & 0 deletions packages/subgraph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@
"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",
"prepare:bsc": "mustache network_configs/bsc.json subgraph.template.yaml > subgraph.yaml",
"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",
Expand Down

0 comments on commit c336b3f

Please sign in to comment.