Merge branch 'feature/predictoor' of https://github.com/oceanprotocol/ocean-subgraph into issue715-add-truevalsubmitted-into-predictslots

This commit is contained in:
trizin 2023-08-22 11:58:01 +00:00 committed by GitHub
commit 6a7b2f5650
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 7 deletions

View File

@ -100,4 +100,4 @@
"publish": false
}
}
}
}

View File

@ -703,7 +703,6 @@ type PredictTrueVal @entity{
id: ID!
slot: PredictSlot!
trueValue: Boolean!
floatValue: BigDecimal!
"txId"
txId: String
eventIndex:Int!

View File

@ -152,10 +152,6 @@ export function handleTruevalSubmitted(event: TruevalSubmitted): void {
newPredictTrueVals.txId = event.transaction.hash.toHexString()
newPredictTrueVals.eventIndex = event.logIndex.toI32()
newPredictTrueVals.timestamp = event.block.timestamp.toI32()
newPredictTrueVals.floatValue = weiToDecimal(
event.params.floatValue.toBigDecimal(),
18
)
newPredictTrueVals.save()
let decimals = 18
const predictContract = getPredictContract(event.address)

View File

@ -80,7 +80,7 @@ templates:
handler: handlePredictionPayout
- event: NewSubscription(indexed address,uint256,uint256)
handler: handleNewSubscription
- event: TruevalSubmitted(indexed uint256,bool,uint256,uint8,uint256,uint256)
- event: TruevalSubmitted(indexed uint256,bool,uint8,uint256,uint256)
handler: handleTruevalSubmitted
- event: SettingChanged(uint256,uint256,uint256,address)
handler: handleSettingChanged