-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.yaml
46 lines (45 loc) · 1.78 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
specVersion: 0.0.2
description: Moloch V2 Subgraph to support multiple tokens and new proposal types
repository: https://github.com/daodesigner/moloch-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Moloch
network: kovan
source:
address: '0xc73bB4DdD7Ac90fD20dDd6F1817e97a0AB183D4a'
abi: Moloch
startBlock: 16689700
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
entities:
- Moloch
- TokenBalance
- Token
- Member
- Vote
- Proposal
abis:
- name: Moloch
file: ./abis/Moloch.json
eventHandlers:
- event: SummonComplete(indexed address,address[],uint256,uint256,uint256,uint256,uint256,uint256,uint256)
handler: handleSummonComplete
- event: SubmitProposal(indexed address,uint256,uint256,uint256,address,uint256,address,string,bool[6],uint256,indexed address,indexed address)
handler: handleSubmitProposal
- event: SubmitVote(uint256,indexed uint256,indexed address,indexed address,uint8)
handler: handleSubmitVote
- event: SponsorProposal(indexed address,indexed address,uint256,uint256,uint256)
handler: handleSponsorProposal
- event: ProcessProposal(indexed uint256,indexed uint256,bool)
handler: handleProcessProposal
- event: ProcessGuildKickProposal(indexed uint256,indexed uint256,bool)
handler: handleProcessGuildKickProposal
- event: ProcessWhitelistProposal(indexed uint256,indexed uint256,bool)
handler: handleProcessWhitelistProposal
- event: UpdateDelegateKey(indexed address,address)
handler: handleUpdateDelegateKey
file: ./src/mapping.ts