-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
118 lines (118 loc) · 3.82 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
108
109
110
111
112
113
114
115
116
117
118
specVersion: 0.0.6
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: TruthPost
network: goerli
source:
address: "0x1B6B1381781fB6BA1ee271CCD9Fad9a1bb70fA24"
abi: TruthPost
startBlock: 9132019
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- BalanceUpdate
- Challenge
- Contribution
- Debunked
- Dispute
- Evidence
- MetaEvidence
- NewArticle
- Ruling
- RulingFunded
- TimelockStarted
- Withdrawal
- Withdrew
abis:
- name: TruthPost
file: ./abis/TruthPost.json
- name: KlerosLiquid
file: ./abis/KlerosLiquid.json
eventHandlers:
- event: BalanceUpdate(uint256,uint256)
handler: handleBalanceUpdate
- event: Challenge(indexed uint256,address,uint256)
handler: handleChallenge
- event: Contribution(indexed uint256,indexed uint256,uint8,indexed address,uint256)
handler: handleContribution
- event: Debunked(uint256)
handler: handleDebunked
- event: Dispute(indexed address,indexed uint256,uint256,uint256)
handler: handleDispute
- event: Evidence(indexed address,indexed uint256,indexed address,string)
handler: handleEvidence
- event: MetaEvidence(indexed uint256,string)
handler: handleMetaEvidence
- event: NewArticle(string,uint8,uint256)
handler: handleNewArticle
- event: Ruling(indexed address,indexed uint256,uint256)
handler: handleRuling
- event: RulingFunded(indexed uint256,indexed uint256,indexed uint8)
handler: handleRulingFunded
- event: TimelockStarted(uint256)
handler: handleTimelockStarted
- event: Withdrawal(indexed uint256,indexed uint256,uint8,indexed address,uint256)
handler: handleWithdrawal
- event: ArticleWithdrawn(uint256)
handler: handleArticleWithdrawal
file: ./src/TruthPost.ts
- kind: ethereum
name: PolicyRegistry
network: goerli
source:
address: "0x28c8A3A2E3c8Cd3F795DB83764316a1129a069bA"
abi: PolicyRegistry
startBlock: 5894121
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- CourtEntity
abis:
- name: PolicyRegistry
file: ./abis/PolicyRegistry.json
eventHandlers:
- event: PolicyUpdate(indexed uint256,string)
handler: handlePolicyUpdate
file: ./src/PolicyRegistry.ts
- kind: ethereum
name: KlerosLiquid
network: goerli
source:
address: "0x1128eD55ab2d796fa92D2F8E1f336d745354a77A"
abi: KlerosLiquid
startBlock: 8767469
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- CourtEntity
- DisputeEntity
abis:
- name: KlerosLiquid
file: ./abis/KlerosLiquid.json
- name: TruthPost
file: ./abis/TruthPost.json
eventHandlers:
- event: NewPeriod(indexed uint256,uint8)
handler: handleNewPeriod
- event: NewPhase(uint8)
handler: handleNewPhase
- event: StakeSet(indexed address,uint256,uint128,uint256)
handler: handleStakeSet
- event: AppealDecision(indexed uint256,indexed address)
handler: handleAppealDecision
- event: AppealPossible(indexed uint256,indexed address)
handler: handleAppealPossible
callHandlers:
- function: executeDelayedSetStakes(uint256)
handler: handleExecuteDelayedSetStakes
- function: castVote(uint256,uint256[],uint256,uint256)
handler: handleCastVote
file: ./src/KlerosLiquid.ts