forked from protofire/compound-governance-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsubgraph.yaml
63 lines (63 loc) · 1.98 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
specVersion: 0.0.2
description: Venus Governance Subgraph
repository: https://github.com/protofire/venus-governance-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: GovernorAlpha
network: bsc
source:
address: "0x406f48f47d25e9caa29f17e7cfbd1dc6878f078f"
abi: GovernorAlpha
startBlock: 2474351
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/mappings.ts
entities:
- Delegate
- TokenHolder
- Proposal
- Vote
- Governance
abis:
- name: GovernorAlpha
file: ./abis/GovernorAlpha.json
eventHandlers:
- event: ProposalCreated(uint256,address,address[],uint256[],string[],bytes[],uint256,uint256,string)
handler: handleProposalCreated
- event: ProposalCanceled(uint256)
handler: handleProposalCanceled
- event: ProposalQueued(uint256,uint256)
handler: handleProposalQueued
- event: ProposalExecuted(uint256)
handler: handleProposalExecuted
- event: VoteCast(address,uint256,bool,uint256)
handler: handleVoteCast
- kind: ethereum/contract
name: VenusToken
network: bsc
source:
address: "0xcf6bb5389c92bdda8a3747ddb454cb7a64626c63"
abi: VenusToken
startBlock: 858561
mapping:
kind: ethereum/events
apiVersion: 0.0.3
language: wasm/assemblyscript
file: ./src/mappings.ts
entities:
- Delegate
- TokenHolder
abis:
- name: VenusToken
file: ./abis/VenusToken.json
eventHandlers:
- event: DelegateChanged(indexed address,indexed address,indexed address)
handler: handleDelegateChanged
- event: DelegateVotesChanged(indexed address,uint256,uint256)
handler: handleDelegateVotesChanged
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer