-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New version subgraph + updated README (#11)
* Initialize subgraph * lock * Reverted snippet README.md
- Loading branch information
1 parent
3ef3ae3
commit 6312ced
Showing
9 changed files
with
113 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
174 changes: 93 additions & 81 deletions
174
graphs/omen-agentresultmapping/abis/OmenAgentResultMapping.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,127 +1,139 @@ | ||
[ | ||
{ "type": "constructor", "inputs": [], "stateMutability": "nonpayable" }, | ||
{ "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, | ||
{ | ||
"type": "function", | ||
"name": "addPrediction", | ||
"anonymous": false, | ||
"inputs": [ | ||
{ "name": "marketAddress", "type": "address", "internalType": "address" }, | ||
{ | ||
"name": "prediction", | ||
"type": "tuple", | ||
"internalType": "struct Prediction", | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "marketAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "uint16", | ||
"name": "estimatedProbabilityBps", | ||
"type": "uint16" | ||
}, | ||
{ | ||
"indexed": true, | ||
"internalType": "address", | ||
"name": "publisherAddress", | ||
"type": "address" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "bytes32[]", | ||
"name": "txHashes", | ||
"type": "bytes32[]" | ||
}, | ||
{ | ||
"indexed": false, | ||
"internalType": "bytes32", | ||
"name": "ipfsHash", | ||
"type": "bytes32" | ||
} | ||
], | ||
"name": "PredictionAdded", | ||
"type": "event" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "marketAddress", "type": "address" }, | ||
{ | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "publisherAddress", | ||
"type": "address", | ||
"internalType": "address" | ||
"type": "address" | ||
}, | ||
{ "name": "ipfsHash", "type": "bytes32", "internalType": "bytes32" }, | ||
{ "name": "txHash", "type": "bytes32", "internalType": "bytes32" }, | ||
{ "internalType": "bytes32", "name": "ipfsHash", "type": "bytes32" }, | ||
{ | ||
"internalType": "bytes32[]", | ||
"name": "txHashes", | ||
"type": "bytes32[]" | ||
}, | ||
{ | ||
"internalType": "uint16", | ||
"name": "estimatedProbabilityBps", | ||
"type": "uint16", | ||
"internalType": "uint16" | ||
"type": "uint16" | ||
} | ||
] | ||
], | ||
"internalType": "struct Prediction", | ||
"name": "prediction", | ||
"type": "tuple" | ||
} | ||
], | ||
"name": "addPrediction", | ||
"outputs": [], | ||
"stateMutability": "nonpayable" | ||
"stateMutability": "nonpayable", | ||
"type": "function" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "getPredictionByIndex", | ||
"inputs": [ | ||
{ "name": "marketAddress", "type": "address", "internalType": "address" }, | ||
{ "name": "index", "type": "uint256", "internalType": "uint256" } | ||
{ "internalType": "address", "name": "marketAddress", "type": "address" }, | ||
{ "internalType": "uint256", "name": "index", "type": "uint256" } | ||
], | ||
"name": "getPredictionByIndex", | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "tuple", | ||
"internalType": "struct Prediction", | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "publisherAddress", | ||
"type": "address", | ||
"internalType": "address" | ||
"type": "address" | ||
}, | ||
{ "name": "ipfsHash", "type": "bytes32", "internalType": "bytes32" }, | ||
{ "name": "txHash", "type": "bytes32", "internalType": "bytes32" }, | ||
{ "internalType": "bytes32", "name": "ipfsHash", "type": "bytes32" }, | ||
{ | ||
"internalType": "bytes32[]", | ||
"name": "txHashes", | ||
"type": "bytes32[]" | ||
}, | ||
{ | ||
"internalType": "uint16", | ||
"name": "estimatedProbabilityBps", | ||
"type": "uint16", | ||
"internalType": "uint16" | ||
"type": "uint16" | ||
} | ||
] | ||
], | ||
"internalType": "struct Prediction", | ||
"name": "", | ||
"type": "tuple" | ||
} | ||
], | ||
"stateMutability": "view" | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"type": "function", | ||
"name": "getPredictions", | ||
"inputs": [ | ||
{ "name": "marketAddress", "type": "address", "internalType": "address" } | ||
{ "internalType": "address", "name": "marketAddress", "type": "address" } | ||
], | ||
"name": "getPredictions", | ||
"outputs": [ | ||
{ | ||
"name": "", | ||
"type": "tuple[]", | ||
"internalType": "struct Prediction[]", | ||
"components": [ | ||
{ | ||
"internalType": "address", | ||
"name": "publisherAddress", | ||
"type": "address", | ||
"internalType": "address" | ||
"type": "address" | ||
}, | ||
{ "internalType": "bytes32", "name": "ipfsHash", "type": "bytes32" }, | ||
{ | ||
"internalType": "bytes32[]", | ||
"name": "txHashes", | ||
"type": "bytes32[]" | ||
}, | ||
{ "name": "ipfsHash", "type": "bytes32", "internalType": "bytes32" }, | ||
{ "name": "txHash", "type": "bytes32", "internalType": "bytes32" }, | ||
{ | ||
"internalType": "uint16", | ||
"name": "estimatedProbabilityBps", | ||
"type": "uint16", | ||
"internalType": "uint16" | ||
"type": "uint16" | ||
} | ||
] | ||
} | ||
], | ||
"stateMutability": "view" | ||
}, | ||
{ | ||
"type": "event", | ||
"name": "PredictionAdded", | ||
"inputs": [ | ||
{ | ||
"name": "marketAddress", | ||
"type": "address", | ||
"indexed": true, | ||
"internalType": "address" | ||
}, | ||
{ | ||
"name": "estimatedProbabilityBps", | ||
"type": "uint16", | ||
"indexed": false, | ||
"internalType": "uint16" | ||
}, | ||
{ | ||
"name": "publisherAddress", | ||
"type": "address", | ||
"indexed": true, | ||
"internalType": "address" | ||
}, | ||
{ | ||
"name": "txHash", | ||
"type": "bytes32", | ||
"indexed": false, | ||
"internalType": "bytes32" | ||
}, | ||
{ | ||
"name": "ipfsHash", | ||
"type": "bytes32", | ||
"indexed": false, | ||
"internalType": "bytes32" | ||
], | ||
"internalType": "struct Prediction[]", | ||
"name": "", | ||
"type": "tuple[]" | ||
} | ||
], | ||
"anonymous": false | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
{ | ||
"gnosis": { | ||
"OmenAgentResultMapping": { | ||
"address": "0xbe1F6944496923683ca849fc0cC93fD10523cB83", | ||
"startBlock": 36085528 | ||
"address": "0x260E1077dEA98e738324A6cEfB0EE9A272eD471a", | ||
"startBlock": 36267341 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters