Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(graph): add arbitrum-one flavor #121

Merged
merged 2 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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