Skip to content

Commit

Permalink
feat: v2 prediction generic (#244)
Browse files Browse the repository at this point in the history
* feat: Add a generic config

* feat: Add a new v2 prediction generic subgraph

* feat: Adjust generic config

* feat: Add v2 prediction subgraph for arbitrum one

* fix: Duplicated pkg name

---------

Co-authored-by: ChefJoJo <[email protected]>
  • Loading branch information
chef-cannoli and 0xjojoex authored Jan 15, 2024
1 parent b196c10 commit 6a85f1b
Show file tree
Hide file tree
Showing 12 changed files with 1,837 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/arbitrum-goerli.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ module.exports = {
],
minETHLocked: 5,
},
predictionV2: {
startBlock: 52492780,
address: "0xd5330586c035a67bd32A6FD8e390c72DB9372861",
},
};
4 changes: 4 additions & 0 deletions config/arbitrum.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ module.exports = {
masterChefAddress: "0x5e09acf80c0296740ec5d6f643005a4ef8daa694",
startBlock: 105053701,
},
predictionV2: {
startBlock: 158927648,
address: "0xF2F90E718a3BFaCb430c1818cB962f05A2631998",
},
};
4 changes: 4 additions & 0 deletions config/bsc.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,8 @@ module.exports = {
masterChefAddress: "0x556b9306565093c855aea9ae92a594704c2cd59e",
startBlock: 26933904,
},
predictionV2: {
startBlock: 10333825,
address: "0x18B2A687610328590Bc8F2e5fEdDe3b582A49cdA",
},
};
4 changes: 4 additions & 0 deletions config/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ export type NetworkConfig = {
startBlock: number;
masterChefAddress: string;
};
predictionV2: {
startBlock: number;
address: string;
};
};
4 changes: 4 additions & 0 deletions config/zksync-era.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,8 @@ module.exports = {
masterChefAddress: "0x4c615e78c5fca1ad31e4d66eb0d8688d84307463",
startBlock: 8792225,
},
predictionV2: {
startBlock: 22038753,
address: "0x43c7771DEB958A2e3198ED98772056ba70DaA84c",
},
};
1 change: 1 addition & 0 deletions subgraphs/affiliate-program/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "affiliate-program",
"license": "UNLICENSED",
"version": "0.0.1",
"scripts": {
"auth": "graph auth --product hosted-service SUBGRAPH_KEY",
"codegen": "graph codegen subgraph.yaml",
Expand Down
Loading

0 comments on commit 6a85f1b

Please sign in to comment.