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: add optimism network. #141

Merged
merged 1 commit into from
Sep 4, 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
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