-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
36 lines (36 loc) · 1.09 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: mainnet
source:
address: "0xc0da01a04c3f3e0be433606045bb7017a7323e38"
abi: Contract
startBlock: 9601459
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- ProposalCanceled
- ProposalCreated
- ProposalExecuted
- ProposalQueued
- VoteCast
abis:
- name: Contract
file: ./abis/Contract.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(address,uint256,bool,uint256)
handler: handleVoteCast
file: ./src/mapping.ts