From 7e56adec46204d9984017cdbc9d02a7d81baabf8 Mon Sep 17 00:00:00 2001 From: Chris Wessels Date: Wed, 11 Oct 2023 17:07:21 -0500 Subject: [PATCH] feat(graph): add arbitrum-one flavor (#121) * feat(graph): add arbitrum-one flavor * fix(graph): use correct gateway url for arb1 --- graph/values/arbitrum-goerli/graph-node.yaml | 4 ++-- .../arbitrum-one/graph-network-indexer.yaml | 17 +++++++++++++++++ graph/values/arbitrum-one/graph-node.yaml | 18 ++++++++++++++++++ schema.json | 10 +++++++++- src/schemas/graph.cue | 5 ++++- 5 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 graph/values/arbitrum-one/graph-network-indexer.yaml create mode 100644 graph/values/arbitrum-one/graph-node.yaml diff --git a/graph/values/arbitrum-goerli/graph-node.yaml b/graph/values/arbitrum-goerli/graph-node.yaml index 95abc208..12eddb5e 100644 --- a/graph/values/arbitrum-goerli/graph-node.yaml +++ b/graph/values/arbitrum-goerli/graph-node.yaml @@ -10,9 +10,9 @@ chains: features: [archive, traces] arbitrum-goerli: - enabled: true + enabled: false shard: primary provider: - - label: eth-goerli + - label: arbitrum-goerli url: http://proxyd-proxyd.arbitrum-goerli:8545 features: [archive, traces] diff --git a/graph/values/arbitrum-one/graph-network-indexer.yaml b/graph/values/arbitrum-one/graph-network-indexer.yaml new file mode 100644 index 00000000..c3bb6b67 --- /dev/null +++ b/graph/values/arbitrum-one/graph-network-indexer.yaml @@ -0,0 +1,17 @@ +# This is a values.yaml override file for https://github.com/graphops/launchpad-charts/tree/main/charts/graph-network-indexer + +indexerDefaults: + config: + ethereum: "http://proxyd-proxyd.arbitrum-one:8545" + ethereum-network: "arbitrum-one" + network-subgraph-endpoint: "https://api.thegraph.com/subgraphs/name/graphprotocol/graph-network-arbitrum" + +indexerAgent: + config: + collect-receipts-endpoint: "https://gateway-arbitrum.network.thegraph.com/collect-receipts" + network-subgraph-deployment: "QmcMEEdcVn32kfpkjwmiw5ZADFJdP2JDzm9j56h9iEVrXn" # find at https://github.com/graphprotocol/indexer/blob/main/docs/networks.md + epoch-subgraph-endpoint: "https://api.thegraph.com/subgraphs/name/graphprotocol/arbitrum-epoch-block-oracle" # find at https://github.com/graphprotocol/indexer/blob/main/docs/networks.md + +indexerService: + config: + client-signer-address: "0xc483960d4D58eabc434Dc88a620AdFd883D6Dd4e" # find at https://github.com/graphprotocol/indexer/blob/main/docs/networks.md diff --git a/graph/values/arbitrum-one/graph-node.yaml b/graph/values/arbitrum-one/graph-node.yaml new file mode 100644 index 00000000..c032021f --- /dev/null +++ b/graph/values/arbitrum-one/graph-node.yaml @@ -0,0 +1,18 @@ +# This is a values.yaml override file for https://github.com/graphops/launchpad-charts/tree/main/charts/graph-node + +chains: + mainnet: + enabled: false + shard: primary + provider: + - label: eth-mainnet + url: http://proxyd-proxyd.eth-mainnet:8545 + features: [archive, traces] + + arbitrum-one: + enabled: false + shard: primary + provider: + - label: arbitrum-one + url: http://proxyd-proxyd.arbitrum-one:8545 + features: [archive, traces] diff --git a/schema.json b/schema.json index cc5fe85d..5efb9679 100644 --- a/schema.json +++ b/schema.json @@ -2534,12 +2534,20 @@ "arbitrum-goerli" ] }, + "namespaces.graph.flavor.arbitrum_one": { + "description": "suitable defaults for an arbitrum-one indexer", + "type": "string", + "enum": [ + "arbitrum-one" + ] + }, "namespaces.graph.flavor.enum": { "type": "string", "enum": [ "goerli", "mainnet", - "arbitrum-goerli" + "arbitrum-goerli", + "arbitrum-one" ] }, "namespaces.graph.flavor.goerli": { diff --git a/src/schemas/graph.cue b/src/schemas/graph.cue index e1c778fc..f215d2f5 100644 --- a/src/schemas/graph.cue +++ b/src/schemas/graph.cue @@ -20,10 +20,13 @@ package LaunchpadNamespaces // suitable defaults for an arbitrum-goerli indexer #arbitrum_goerli: "arbitrum-goerli" + // suitable defaults for an arbitrum-one indexer + #arbitrum_one: "arbitrum-one" + // suitable defaults for a mainnet indexer #mainnet: "mainnet" - #enum: ( #goerli | #mainnet | #arbitrum_goerli ) + #enum: ( #goerli | #mainnet | #arbitrum_goerli | #arbitrum_one ) } // Graph namespace values schema