Remove floatValue from predictoor trueval handler (#714)
This commit is contained in:
parent
3c39d6eff2
commit
0c846d5bb2
|
@ -9,7 +9,7 @@
|
|||
"version": "3.0.9",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@oceanprotocol/contracts": "^2.0.0-next.9",
|
||||
"@oceanprotocol/contracts": "^2.0.0-next.10",
|
||||
"@oceanprotocol/lib": "^2.7.0",
|
||||
"cross-fetch": "^3.1.6",
|
||||
"ethereumjs-util": "^7.1.5"
|
||||
|
@ -964,9 +964,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@oceanprotocol/contracts": {
|
||||
"version": "2.0.0-next.9",
|
||||
"resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-2.0.0-next.9.tgz",
|
||||
"integrity": "sha512-00KPl4VEf2AkgycwlSPHlwBSeS0n+zvMSktW5CYXJk2RnpYZygRatMAG3gX7NOpu2JeX/ihNAfMoeQJrgBx3KQ=="
|
||||
"version": "2.0.0-next.10",
|
||||
"resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-2.0.0-next.10.tgz",
|
||||
"integrity": "sha512-URfLCsQ+AQZXMN7n3urMXqKjklfA3ECu1vCVmk42cYxMK5qxdCpOhJBmlrpCpeCBFTfOd71EYRRuTeQXB/f67g=="
|
||||
},
|
||||
"node_modules/@oceanprotocol/lib": {
|
||||
"version": "2.7.0",
|
||||
|
@ -15341,9 +15341,9 @@
|
|||
}
|
||||
},
|
||||
"@oceanprotocol/contracts": {
|
||||
"version": "2.0.0-next.9",
|
||||
"resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-2.0.0-next.9.tgz",
|
||||
"integrity": "sha512-00KPl4VEf2AkgycwlSPHlwBSeS0n+zvMSktW5CYXJk2RnpYZygRatMAG3gX7NOpu2JeX/ihNAfMoeQJrgBx3KQ=="
|
||||
"version": "2.0.0-next.10",
|
||||
"resolved": "https://registry.npmjs.org/@oceanprotocol/contracts/-/contracts-2.0.0-next.10.tgz",
|
||||
"integrity": "sha512-URfLCsQ+AQZXMN7n3urMXqKjklfA3ECu1vCVmk42cYxMK5qxdCpOhJBmlrpCpeCBFTfOd71EYRRuTeQXB/f67g=="
|
||||
},
|
||||
"@oceanprotocol/lib": {
|
||||
"version": "2.7.0",
|
||||
|
|
|
@ -75,7 +75,7 @@
|
|||
"typescript": "^5.0.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"@oceanprotocol/contracts": "^2.0.0-next.9",
|
||||
"@oceanprotocol/contracts": "^2.0.0-next.10",
|
||||
"@oceanprotocol/lib": "^2.7.0",
|
||||
"cross-fetch": "^3.1.6",
|
||||
"ethereumjs-util": "^7.1.5"
|
||||
|
@ -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