-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
71 lines (71 loc) · 2.54 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
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
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