-
Notifications
You must be signed in to change notification settings - Fork 80
/
governor.yaml
30 lines (30 loc) · 1.09 KB
/
governor.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
- kind: ethereum/contract
name: {id}
network: {chain}
source:
address: "{address}"
abi: Governor
startBlock: {startBlock}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Governor
abis:
- name: Governor
file: {root}/node_modules/@openzeppelin/contracts/build/contracts/IGovernorTimelock.json
eventHandlers:
- event: ProposalCanceled(uint256)
handler: handleProposalCanceled
- event: ProposalCreated(uint256,address,address[],uint256[],string[],bytes[],uint256,uint256,string)
handler: handleProposalCreated
- event: ProposalExecuted(uint256)
handler: handleProposalExecuted
- event: ProposalQueued(uint256,uint256)
handler: handleProposalQueued
- event: VoteCast(indexed address,uint256,uint8,uint256,string)
handler: handleVoteCast
- event: VoteCastWithParams(indexed address,uint256,uint8,uint256,string,bytes)
handler: handleVoteCastWithParams
file: {file}