-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
41 lines (41 loc) · 1.46 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
specVersion: 0.0.2
description: Decentralized news platform against misinformation
repository: https://github.com/gazzeth/protocol-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Protocol Ropsten V0
network: ropsten
source:
address: '0x5De246E6FA46aA928B092F97dc0CA554b640D3AB'
abi: Protocol
startBlock: 10380085
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Publication
- Voting
- Vote
- Topic
- Juror
- JurorSubscription
abis:
- name: Protocol
file: ./abis/Protocol.json
eventHandlers:
- event: TopicCreation(indexed string,string,uint256,uint256,uint256,uint256,uint256,uint256)
handler: handleTopicCreation
- event: JurorSubscription(indexed address,indexed string,string,uint256)
handler: handleJurorSubscription
- event: PublicationSubmission(indexed uint256,indexed address,indexed string,string,address[],string,uint256)
handler: handlePublicationSubmission
- event: VoteCommitment(indexed address,indexed uint256,bytes32)
handler: handleVoteCommitment
- event: VoteReveal(indexed address,indexed uint256,indexed uint8,string,uint256[],uint8)
handler: handleVoteReveal
- event: Withdrawal(indexed uint256)
handler: handleWithdrawal
file: ./src/mapping.ts