@reality.eth/graph 0.4.3 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/src/mapping.ts +6 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reality.eth/graph",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.7",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"create-local": "graph create realityeth/realityeth --node http://127.0.0.1:8020",
|
|
6
6
|
"remove-local": "graph remove realityeth/realityeth --node http://127.0.0.1:8020",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"@graphprotocol/graph-ts": "^0.20.0"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@reality.eth/contracts": "^3.0.
|
|
43
|
+
"@reality.eth/contracts": "^3.0.7",
|
|
44
44
|
"babel-polyfill": "^6.26.0",
|
|
45
45
|
"babel-register": "^6.26.0",
|
|
46
46
|
"mustache": "^4.2.0",
|
|
47
47
|
"truffle-hdwallet-provider": "^1.0.4"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "90c0439e77228028629bd5433698b2022b3f7eb6"
|
|
50
50
|
}
|
package/src/mapping.ts
CHANGED
|
@@ -135,8 +135,12 @@ export function handleNewQuestion(event: LogNewQuestion): void {
|
|
|
135
135
|
|
|
136
136
|
question.currentScheduledFinalizationTimestamp = BigInt.fromI32(I32.MAX_VALUE);
|
|
137
137
|
|
|
138
|
-
//
|
|
139
|
-
question.
|
|
138
|
+
// In version 3 and above the bounty should be picked up by the LogFundAnswerBounty event.
|
|
139
|
+
// In version 2 this isn't fired on question create.
|
|
140
|
+
// We could handle this with a call but this would mean we'd need an archive node to index.
|
|
141
|
+
// Instead, make sure we do a call in the UI for the current bounty when using the v2 contract.
|
|
142
|
+
// This shouldn't matter much as neither v2 nor the bounty feature is used much.
|
|
143
|
+
question.bounty = new BigInt(0);
|
|
140
144
|
|
|
141
145
|
question.save();
|
|
142
146
|
|