Skip to content

Commit

Permalink
feat(graph): add arbitrum-one flavor (#121)
Browse files Browse the repository at this point in the history
* feat(graph): add arbitrum-one flavor

* fix(graph): use correct gateway url for arb1
  • Loading branch information
chriswessels authored Oct 11, 2023
1 parent 984f071 commit 7e56ade
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 4 deletions.
4 changes: 2 additions & 2 deletions graph/values/arbitrum-goerli/graph-node.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
17 changes: 17 additions & 0 deletions graph/values/arbitrum-one/graph-network-indexer.yaml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 18 additions & 0 deletions graph/values/arbitrum-one/graph-node.yaml
Original file line number Diff line number Diff line change
@@ -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]
10 changes: 9 additions & 1 deletion schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
5 changes: 4 additions & 1 deletion src/schemas/graph.cue
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e56ade

Please sign in to comment.