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 v2 prediction subgraph for arbitrum one for WBTC #250

Open
wants to merge 2 commits into
base: v3
Choose a base branch
from
Open
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 config/arbitrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ module.exports = {
startBlock: 105053701,
},
predictionV2: {
startBlock: 158927648,
address: "0xF2F90E718a3BFaCb430c1818cB962f05A2631998",
startBlock: 170624327,
address: "0x870CBfD72970E6ad146310Dd0EC546Db1Cbbe6F8",
},
};
5 changes: 5 additions & 0 deletions subgraphs/prediction/v2-generic/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Template

see `/v2-generic/config` folder for `$CONFIG` options.

for arb `CONFIG=arb yarn template`
7 changes: 7 additions & 0 deletions subgraphs/prediction/v2-generic/config/arb-goerli.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
network: "arbitrum-goerli",
predictionV2: {
startBlock: 52492780,
address: "0xd5330586c035a67bd32A6FD8e390c72DB9372861",
},
};
7 changes: 7 additions & 0 deletions subgraphs/prediction/v2-generic/config/arb-wbtc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
network: "arbitrum-one",
predictionV2: {
startBlock: 170624327,
address: "0x870CBfD72970E6ad146310Dd0EC546Db1Cbbe6F8",
},
};
7 changes: 7 additions & 0 deletions subgraphs/prediction/v2-generic/config/arb.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
network: "arbitrum-one",
predictionV2: {
startBlock: 158927648,
address: "0xF2F90E718a3BFaCb430c1818cB962f05A2631998",
},
};
6 changes: 3 additions & 3 deletions subgraphs/prediction/v2-generic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"author": "PancakeSwap",
"license": "GPL-3.0-or-later",
"scripts": {
"template": "mustache ../../../config/$NETWORK.js subgraph.template.yaml > subgraph.yaml",
"template": "mustache ./config/$CONFIG.js subgraph.template.yaml > subgraph.yaml",
"codegen": "graph codegen subgraph.yaml",
"build": "graph build subgraph.yaml",
"deploy:bsc": "graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ chef-cannoli/playground-subgraph subgraph.yaml",
"deploy:bsc": "graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ subgraph.yaml",
"deploy:arbitrum-goerli": "graph deploy --product hosted-service pancakeswap/prediction-v2-arbitrum-goreli",
"deploy:arbitrum": "graph deploy --product hosted-service pancakeswap/prediction-v2-arbitrum",
"deploy:arbitrum": "graph deploy --product hosted-service pancakeswap/prediction-v2-arbitrum-wbtc",
"deploy:zksync-era": "graph deploy --studio prediction-v2-zksync-era"
}
}
4 changes: 2 additions & 2 deletions subgraphs/prediction/v2-generic/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ dataSources:
name: PredictionV2
network: arbitrum-one
source:
address: "0xF2F90E718a3BFaCb430c1818cB962f05A2631998"
address: "0x870CBfD72970E6ad146310Dd0EC546Db1Cbbe6F8"
abi: PredictionV2
startBlock: 158927648
startBlock: 170624327
mapping:
kind: ethereum/events
apiVersion: 0.0.4
Expand Down
Loading