forked from HausDAO/daohaus-v3-subgraph-sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
78 lines (78 loc) · 2.81 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
specVersion: 0.0.2
description: DAOHaus V3 Subgraph
repository: 'https://github.com/hausdao/daohaus-v3-subgraph-sandbox'
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: BaalSummoner
network: rinkeby
source:
address: '0x65e6d705e9D73c17aB4E9a8C01653cE7C32B8358'
abi: BaalSummoner
startBlock: 10305239
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Dao
abis:
- name: BaalSummoner
file: ./abis/BaalSummoner.json
eventHandlers:
- event: 'SummonBaal(indexed address,indexed address,indexed address)'
handler: handleSummonBaal
file: ./src/baal-summoner-mapping.ts
templates:
- kind: ethereum/contract
name: BaalTemplate
network: rinkeby
source:
abi: Baal
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/baal-mapping.ts
entities:
- Dao
abis:
- name: Baal
file: ./abis/Baal.json
eventHandlers:
- event: >-
SetupComplete(bool,bool,uint32,uint32,uint256,uint256,uint256,uint256,string,string,uint256,uint256)
handler: handleSetupComplete
- event: 'GovernanceConfigSet(uint32,uint32,uint256,uint256,uint256,uint256)'
handler: handleGovernanceConfigSet
- event: 'Transfer(indexed address,indexed address,uint256)'
handler: handleTransfer
- event: 'TransferLoot(indexed address,indexed address,uint256)'
handler: handleTransferLoot
- event: LootPaused(bool)
handler: handleLootPaused
- event: SharesPaused(bool)
handler: handleSharesPaused
- event: >-
SubmitProposal(indexed uint256,indexed
bytes32,uint256,bytes,uint256,bool,uint256,string)
handler: handleSubmitProposal
- event: 'SponsorProposal(indexed address,indexed uint256,indexed uint256)'
handler: handleSponsorProposal
- event: 'ProcessProposal(indexed uint256,bool,bool)'
handler: handleProcessProposal
- event: ProcessingFailed(indexed uint256)
handler: handleProcessingFailed
- event: CancelProposal(indexed uint256)
handler: handleCancelProposal
- event: 'SubmitVote(indexed address,uint256,indexed uint256,indexed bool)'
handler: handleSubmitVote
- event: >-
Ragequit(indexed address,address,indexed uint256,indexed
uint256,address[])
handler: handleRageQuit
- event: 'DelegateChanged(indexed address,indexed address,indexed address)'
handler: handleDelegateChanged
- event: 'DelegateVotesChanged(indexed address,uint256,uint256)'
handler: handleDelegateVotesChanged