@reality.eth/graph 0.4.73 → 0.4.75
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 +7 -3
- package/schema.graphql +2 -0
- package/src/mapping.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reality.eth/graph",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.75",
|
|
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,6 +40,8 @@
|
|
|
40
40
|
"deploy-studio:sepolia": "npm run prepare:sepolia && graph deploy $GRAPH_AUTH --studio realityeth-sepolia",
|
|
41
41
|
"deploy-studio:sokol": "npm run prepare:sokol && graph deploy $GRAPH_AUTH --studio realityeth-sokol",
|
|
42
42
|
"deploy-studio:gnosis": "npm run prepare:gnosis && graph deploy $GRAPH_AUTH --studio realityeth-gnosis",
|
|
43
|
+
"deploy-studio:unichain": "npm run prepare:unichain && graph deploy $GRAPH_AUTH --studio realityeth-unichain",
|
|
44
|
+
"deploy-studio:base": "npm run prepare:base && graph deploy $GRAPH_AUTH --studio realityeth-base",
|
|
43
45
|
"deploy-studio:zksync-goerli": "npm run prepare:zksync-goerli && graph deploy $GRAPH_AUTH realityeth-zksync-goerli-2",
|
|
44
46
|
"deploy-studio:zksync-era": "npm run prepare:zksync-era && graph deploy $GRAPH_AUTH realityeth-zksync-era",
|
|
45
47
|
"deploy-studio:all": "npm run deploy-studio:arbitrum && npm run deploy-studio:ava && npm run deploy-studio:bsc && npm run deploy-studio:kovan && npm run deploy-studio:mainnet && npm run deploy-studio:mainnet && npm run deploy-studio:optimism && npm run deploy-studio:polygon && npm run deploy-studio:rinkeby && npm run deploy-studio:sokol && npm run deploy-studio:gnosis",
|
|
@@ -59,6 +61,8 @@
|
|
|
59
61
|
"prepare:sepolia": "npm run clean && node render-templates.js 11155111 && graph codegen",
|
|
60
62
|
"prepare:sokol": "npm run clean && node render-templates.js 77 && graph codegen",
|
|
61
63
|
"prepare:gnosis": "npm run clean && node render-templates.js 100 && graph codegen",
|
|
64
|
+
"prepare:unichain": "npm run clean && node render-templates.js 130 && graph codegen",
|
|
65
|
+
"prepare:base": "npm run clean && node render-templates.js 8453 && graph codegen",
|
|
62
66
|
"prepare:zksync-goerli": "npm run clean && node render-templates.js 280 && graph codegen",
|
|
63
67
|
"clean": "rm -rf build/Reality*",
|
|
64
68
|
"lint": "npm run eslint .",
|
|
@@ -67,7 +71,7 @@
|
|
|
67
71
|
"prettier-write": "prettier --write '**/*.ts'"
|
|
68
72
|
},
|
|
69
73
|
"dependencies": {
|
|
70
|
-
"@reality.eth/contracts": "^3.0.
|
|
74
|
+
"@reality.eth/contracts": "^3.0.72",
|
|
71
75
|
"babel-polyfill": "^6.26.0",
|
|
72
76
|
"babel-register": "^6.26.0",
|
|
73
77
|
"mustache": "^4.2.0",
|
|
@@ -77,5 +81,5 @@
|
|
|
77
81
|
"@graphprotocol/graph-cli": "^0.54.0",
|
|
78
82
|
"@graphprotocol/graph-ts": "^0.27.0"
|
|
79
83
|
},
|
|
80
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "d78e484c63f01925317e36e408cad8a06ba58bc4"
|
|
81
85
|
}
|
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();
|