-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.yaml
107 lines (107 loc) · 4.18 KB
/
subgraph.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: RealityETHV30
network: gnosis #goerli #xdai
source:
address: "0xE78996A233895bE74a66F451f1019cA9734205cc" # "0x6F80C5cBCF9FbC2dA2F0675E56A5900BB70Df72f" #<-- goerli, xdai "0xE78996A233895bE74a66F451f1019cA9734205cc"
abi: RealityETHV30
startBlock: 29114503 #7913496 # <--- goerli, xdai 29114503
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- LogNewAnswer
- LogNewQuestion
- LogNotifyOfArbitrationRequest
- RealityETHV30
abis:
- name: RealityETHV30
file: ./abis/RealityETHV30.json
eventHandlers:
- event: LogNewAnswer(bytes32,indexed bytes32,bytes32,indexed address,uint256,uint256,bool)
handler: handleLogNewAnswer
- event: LogNewQuestion(indexed bytes32,indexed address,uint256,string,indexed
bytes32,address,uint32,uint32,uint256,uint256)
handler: handleLogNewQuestion
- event: LogNotifyOfArbitrationRequest(indexed bytes32,indexed address)
handler: handleLogNotifyOfArbitrationRequest
file: ./src/reality-ethv-30.ts
- kind: ethereum
name: Realitio_v2_1_ArbitratorWithAppeals
network: gnosis #xdai
source:
address: "0xe04f5791d671d5C4e08ab49b39807087B591ea3e" #goerli "0x0a3fBb60D41F0Ec10f9E76368dd4e506885c3E7d" #xdai 0xe04f5791d671d5c4e08ab49b39807087b591ea3e
abi: Realitio_v2_1_ArbitratorWithAppeals
startBlock: 29114503 #8034496 #goerli, xdai 29114503
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- DisputeIDToQuestionID
- Ruling
- RulingFunded
abis:
- name: Realitio_v2_1_ArbitratorWithAppeals
file: ./abis/Realitio_v2_1_ArbitratorWithAppeals.json
eventHandlers:
- event: DisputeIDToQuestionID(indexed uint256,bytes32)
handler: handleDisputeIDToQuestionID
- event: RulingFunded(indexed uint256,indexed uint256,indexed uint256)
handler: handleRulingFunded
- event: Ruling(indexed address,indexed uint256,uint256)
handler: handleRuling
file: ./src/Realitio_v2_1_ArbitratorWithAppeals.ts
- kind: ethereum
name: Realitio_v2_1_ArbitratorWithAppeals_ES
network: gnosis #xdai
source:
address: "0x54068a67441a950ff33afa5a3247acc7188d0789" #goerli "0x8f0b33ab30D4073E0772A688A18E937beE34cd65" #xdai 0x1b433086a5c224a202fe55ef0169d1a7c1cbe584
abi: Realitio_v2_1_ArbitratorWithAppeals
startBlock: 29114503 #8034496 #goerli, xdai 29114503
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- DisputeIDToQuestionID
- Ruling
- RulingFunded
abis:
- name: Realitio_v2_1_ArbitratorWithAppeals
file: ./abis/Realitio_v2_1_ArbitratorWithAppeals.json
eventHandlers:
- event: DisputeIDToQuestionID(indexed uint256,bytes32)
handler: handleDisputeIDToQuestionID
- event: RulingFunded(indexed uint256,indexed uint256,indexed uint256)
handler: handleRulingFunded
- event: Ruling(indexed address,indexed uint256,uint256)
handler: handleRuling
file: ./src/Realitio_v2_1_ArbitratorWithAppeals.ts
- kind: ethereum
name: KlerosLiquid
network: gnosis #xdai
source:
address: "0x9C1dA9A04925bDfDedf0f6421bC7EEa8305F9002" # "0x1128eD55ab2d796fa92D2F8E1f336d745354a77A" # goerli # gnosis 0x9C1dA9A04925bDfDedf0f6421bC7EEa8305F9002
abi: KlerosLiquid
startBlock: 29114503 #goerli, 8034496 xdai 29114503
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- AppealPossible
- AppealDecision
abis:
- name: KlerosLiquid
file: ./abis/KlerosLiquid.json
eventHandlers:
- event: AppealPossible(indexed uint256,indexed address)
handler: handleAppealPossible
- event: AppealDecision(indexed uint256,indexed address)
handler: handleAppealDecision
file: ./src/KlerosLiquid.ts