-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
98 lines (98 loc) · 3.39 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
specVersion: 1.0.0
indexerHints:
prune: auto
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: GovernorBravoDelegator
network: mainnet
source:
address: "0x0941233c964e7d7Efeb05D253176E5E634cEFfcD"
abi: GovernorBravoDelegator
startBlock: 20808218 # Not deployment, but close to first proposal
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- NewAdmin
- NewImplementation
- NewPendingAdmin
- ProposalCanceled
- ProposalCreated
- ProposalExecuted
- ProposalQueued
- ProposalThresholdSet
- ProposalVetoed
- ProposalVotingStarted
- VetoGuardianSet
- VoteCast
- VotingDelaySet
- VotingPeriodSet
- WhitelistAccountExpirationSet
- WhitelistGuardianSet
- Voter
abis:
- name: GovernorBravoDelegator
file: ./abis/GovernorBravoDelegator.json
eventHandlers:
- event: NewAdmin(address,address)
handler: handleNewAdmin
- event: NewImplementation(address,address)
handler: handleNewImplementation
- event: NewPendingAdmin(address,address)
handler: handleNewPendingAdmin
- event: ProposalCanceled(uint256)
handler: handleProposalCanceled
- event: ProposalCreated(uint256,address,address[],uint256[],string[],bytes[],uint256,string)
handler: handleProposalCreated
- event: ProposalExecuted(uint256)
handler: handleProposalExecuted
- event: ProposalQueued(uint256,uint256)
handler: handleProposalQueued
- event: ProposalThresholdSet(uint256,uint256)
handler: handleProposalThresholdSet
- event: ProposalVetoed(uint256)
handler: handleProposalVetoed
- event: ProposalVotingStarted(uint256)
handler: handleProposalVotingStarted
- event: VetoGuardianSet(address,address)
handler: handleVetoGuardianSet
- event: VoteCast(indexed address,uint256,uint8,uint256,string)
handler: handleVoteCast
- event: VotingDelaySet(uint256,uint256)
handler: handleVotingDelaySet
- event: VotingPeriodSet(uint256,uint256)
handler: handleVotingPeriodSet
- event: WhitelistAccountExpirationSet(address,uint256)
handler: handleWhitelistAccountExpirationSet
- event: WhitelistGuardianSet(address,address)
handler: handleWhitelistGuardianSet
file: ./src/governor-bravo-delegator.ts
- kind: ethereum
name: gOHM
network: mainnet
source:
address: "0x0ab87046fBb341D058F17CBC4c1133F25a20a52f"
abi: gOHM
startBlock: 13674957 # Deployment block, required in order to have complete delegation records
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- VoteDelegator
- Voter
- VoterVotingPowerSnapshot
- DelegateChanged
- DelegateVotesChanged
abis:
- name: gOHM
file: ./abis/gOHM.json
eventHandlers:
- event: DelegateChanged(indexed address,indexed address,indexed address)
handler: handleDelegateChanged
- event: DelegateVotesChanged(indexed address,uint256,uint256)
handler: handleDelegateVotesChanged
file: ./src/handlers/gOhm.ts