Skip to content

Commit

Permalink
Merge pull request #141 from metagov/feat/optimism
Browse files Browse the repository at this point in the history
feat: add optimism network.
  • Loading branch information
Rashmi-278 authored Sep 4, 2023
2 parents 0af9918 + d15266e commit 0522087
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Implementations/Subgraph/daostar/build/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ features:
templates:
- name: EIP4824Registration
kind: ethereum/contract
network: chapel
network: optimism
source:
abi: EIP4824Registration
mapping:
Expand All @@ -25,11 +25,11 @@ templates:
dataSources:
- kind: ethereum
name: EIP4824Index
network: chapel
network: optimism
source:
abi: EIP4824Index
address: "0x18CbB356cd64193b1a0CA49911fc72CB3D02a5E4"
startBlock: 32947350
startBlock: 109109991
mapping:
kind: ethereum/events
apiVersion: 0.0.6
Expand Down
6 changes: 6 additions & 0 deletions Implementations/Subgraph/daostar/networks.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,11 @@
"address": "0x18CbB356cd64193b1a0CA49911fc72CB3D02a5E4",
"startBlock": 32947350
}
},
"optimism": {
"EIP4824Index": {
"address": "0x18CbB356cd64193b1a0CA49911fc72CB3D02a5E4",
"startBlock": 109109991
}
}
}
2 changes: 2 additions & 0 deletions Implementations/Subgraph/daostar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"license": "UNLICENSED",
"scripts": {
"build:mainnet": "graph codegen && graph build --network mainnet",
"build:optimism": "graph codegen && graph build --network optimism",
"build:goerli": "graph codegen && graph build --network goerli",
"build:gnosis": "graph codegen && graph build --network gnosis",
"build:optimism-goerli": "graph codegen && graph build --network optimism-goerli",
Expand All @@ -11,6 +12,7 @@
"codegen": "graph codegen",
"build": "graph build",
"deploy:mainnet": "graph deploy --node https://api.thegraph.com/deploy/ ipatka/daostar",
"deploy:optimism": "graph deploy --node https://api.thegraph.com/deploy/ crazyyuan/daostar-optimism",
"deploy:goerli": "graph deploy --node https://api.thegraph.com/deploy/ ipatka/daostar-goerli",
"deploy:optimism-goerli": "graph deploy --node https://api.thegraph.com/deploy/ rashmi-278/daostar-optimism-goerli",
"deploy:gnosis": "graph deploy --node https://api.thegraph.com/deploy/ rashmi-278/daostar-gnosis",
Expand Down
6 changes: 3 additions & 3 deletions Implementations/Subgraph/daostar/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ features:
templates:
- name: EIP4824Registration
kind: ethereum/contract
network: chapel
network: optimism
source:
abi: EIP4824Registration
mapping:
Expand All @@ -25,11 +25,11 @@ templates:
dataSources:
- kind: ethereum
name: EIP4824Index
network: chapel
network: optimism
source:
abi: EIP4824Index
address: "0x18CbB356cd64193b1a0CA49911fc72CB3D02a5E4"
startBlock: 32947350
startBlock: 109109991
mapping:
kind: ethereum/events
apiVersion: 0.0.6
Expand Down

0 comments on commit 0522087

Please sign in to comment.