@reality.eth/graph 0.4.72 → 0.4.74

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reality.eth/graph",
3
- "version": "0.4.72",
3
+ "version": "0.4.74",
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",
@@ -67,7 +67,7 @@
67
67
  "prettier-write": "prettier --write '**/*.ts'"
68
68
  },
69
69
  "dependencies": {
70
- "@reality.eth/contracts": "^3.0.69",
70
+ "@reality.eth/contracts": "^3.0.71",
71
71
  "babel-polyfill": "^6.26.0",
72
72
  "babel-register": "^6.26.0",
73
73
  "mustache": "^4.2.0",
@@ -77,5 +77,5 @@
77
77
  "@graphprotocol/graph-cli": "^0.54.0",
78
78
  "@graphprotocol/graph-ts": "^0.27.0"
79
79
  },
80
- "gitHead": "145d813ccb37b8213d8a15f84b591d8ae6f301a2"
80
+ "gitHead": "a04d423bccd358fac94fd9b4de3896aa2a19e79c"
81
81
  }
package/schema.graphql CHANGED
@@ -5,6 +5,7 @@ type Question @entity {
5
5
 
6
6
  createdBlock: BigInt!
7
7
  createdTimestamp: BigInt!
8
+ createdLogIndex: BigInt!
8
9
  updatedBlock: BigInt!
9
10
  updatedTimestamp: BigInt!
10
11
 
@@ -60,6 +61,7 @@ type Outcome @entity {
60
61
  type Response @entity {
61
62
  id: ID!
62
63
  timestamp: BigInt!
64
+ logIndex: BigInt!
63
65
  answer: Bytes
64
66
  isUnrevealed: Boolean!
65
67
  isCommitment: Boolean!
package/src/mapping.ts CHANGED
@@ -124,6 +124,7 @@ export function handleNewQuestion(event: LogNewQuestion): void {
124
124
 
125
125
  question.createdBlock = event.block.number;
126
126
  question.createdTimestamp = event.params.created;
127
+ question.createdLogIndex = event.logIndex;
127
128
  question.updatedBlock = event.block.number;
128
129
  question.updatedTimestamp = event.block.timestamp;
129
130
 
@@ -190,6 +191,7 @@ export function handleNewAnswer(event: LogNewAnswer): void {
190
191
  response.bond = event.params.bond;
191
192
  response.user = event.params.user;
192
193
  response.timestamp = event.params.ts;
194
+ response.logIndex = event.logIndex;
193
195
  response.isCommitment = isCommitment;
194
196
  response.historyHash = event.params.history_hash;
195
197
  response.save();