-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.pohv1.template.yaml
69 lines (68 loc) · 2.33 KB
/
subgraph.pohv1.template.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
specVersion: 0.0.1
description: Proof of Humanity subgraph
features:
- fullTextSearch
- nonFatalErrors
- grafting
graft:
base: QmU128NqZGYPMzXyv2z8eDaqUGGCZfJc8oFLxf1QuTGZ4r
block: 12128450 # Block number
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: ProofOfHumanityOld
network: {{network}}
source:
address: "{{v1-address}}"
abi: ProofOfHumanityOld
startBlock: {{v1-start-block}}
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./mappings/legacy.ts
entities:
- Contract
- ArbitratorData
- Soul
- Claimer
- Request
- Vouch
- Evidence
- Counter
abis:
- name: ProofOfHumanityOld
file: ./abis/ProofOfHumanityOld.json
eventHandlers:
- event: MetaEvidence(indexed uint256,string)
handler: handleMetaEvidence
- event: VouchAdded(indexed address,indexed address)
handler: handleVouchAdded
- event: VouchRemoved(indexed address,indexed address)
handler: handleVouchRemoved
- event: Ruling(indexed address,indexed uint256,uint256)
handler: handleRuling
- event: Evidence(indexed address,indexed uint256,indexed address,string)
handler: handleEvidence
callHandlers:
- function: addSubmissionManually(address[],string[],string[])
handler: addSubmissionManuallyLegacy
- function: removeSubmissionManually(address)
handler: removeSubmissionManuallyLegacy
- function: addSubmission(string,string)
handler: addSubmissionLegacy
- function: reapplySubmission(string,string)
handler: reapplySubmissionLegacy
- function: removeSubmission(address,string)
handler: removeSubmissionLegacy
- function: withdrawSubmission()
handler: withdrawSubmissionLegacy
- function: changeStateToPending(address,address[],bytes[],uint256[])
handler: changeStateToPendingLegacy
- function: challengeRequest(address,uint8,address,string)
handler: challengeRequestLegacy
- function: executeRequest(address)
handler: executeRequestLegacy
- function: processVouches(address,uint256,uint256)
handler: processVouchesLegacy