Skip to content

Commit

Permalink
feat: Update config
Browse files Browse the repository at this point in the history
  • Loading branch information
0xjojoex committed Jan 16, 2024
1 parent 2b98d40 commit e8c2741
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 4 deletions.
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",
},
};
4 changes: 2 additions & 2 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/ 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-WBTC",
"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

0 comments on commit e8c2741

Please sign in to comment.