Skip to content

Commit

Permalink
chore: Add predictionV3 AI subgraph
Browse files Browse the repository at this point in the history
  • Loading branch information
chef-huan committed Jun 9, 2024
1 parent 2b87e81 commit 400e8a4
Show file tree
Hide file tree
Showing 10 changed files with 1,816 additions and 3 deletions.
4 changes: 4 additions & 0 deletions config/bsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ module.exports = {
startBlock: 10333825,
address: "0x18B2A687610328590Bc8F2e5fEdDe3b582A49cdA",
},
predictionV3AI: {
startBlock: 10333825, //TODO update me
address: "0x505B6e8DA1c31f4033ef5b70cba426E00538Fb3c", //TODO update me
},
};
4 changes: 4 additions & 0 deletions config/chapel.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,8 @@ module.exports = {
masterChefAddress: "0x4c650fb471fe4e0f476fd3437c3411b1122c4e3b",
startBlock: 28492774,
},
predictionV3AI: {
startBlock: 40576515,
address: "0x505B6e8DA1c31f4033ef5b70cba426E00538Fb3c",
},
};
2 changes: 2 additions & 0 deletions subgraphs/masterchef-v3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
"template": "mustache ../../config/$NETWORK.js subgraph.template.yaml > subgraph.yaml",
"codegen": "graph codegen subgraph.yaml",
"build": "graph build subgraph.yaml",
"deploy:studio": "graph deploy --studio masterchef-v3-polygon-zkevm",

"deploy:chapel": "graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ chef-jojo/masterchef-v3-chapel subgraph.yaml",
"deploy:goerli": "graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ chef-jojo/masterchef-v3-goerli subgraph.yaml",
"deploy:eth": "graph deploy --product hosted-service --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ pancakeswap/masterchef-v3-eth subgraph.yaml",
Expand Down
6 changes: 3 additions & 3 deletions subgraphs/masterchef-v3/subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ schema:
dataSources:
- kind: ethereum/contract
name: MasterChefV3
network: zksync-era
network: linea
source:
address: "0x4c615e78c5fca1ad31e4d66eb0d8688d84307463"
address: ""
abi: MasterChefV3
startBlock: 8792225
startBlock:
mapping:
kind: ethereum/events
apiVersion: 0.0.4
Expand Down
Loading

0 comments on commit 400e8a4

Please sign in to comment.