Merge branch 'feature/predictoor' of https://github.com/oceanprotocol/ocean-subgraph into issue715-add-truevalsubmitted-into-predictslots
This commit is contained in:
commit
6a7b2f5650
|
@ -100,4 +100,4 @@
|
|||
"publish": false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -703,7 +703,6 @@ type PredictTrueVal @entity{
|
|||
id: ID!
|
||||
slot: PredictSlot!
|
||||
trueValue: Boolean!
|
||||
floatValue: BigDecimal!
|
||||
"txId"
|
||||
txId: String
|
||||
eventIndex:Int!
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue