-
Notifications
You must be signed in to change notification settings - Fork 3
/
subgraph.template.yaml
217 lines (212 loc) · 7.14 KB
/
subgraph.template.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
specVersion: 0.0.2
description: KaliDAO
repository: https://github.com/nerderlyne/kali-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: KaliDAOFactory
network: {{network}}
source:
address: '{{address}}'
abi: KaliDAOFactory
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- DAO
- Token
- Member
- Tribute
- Crowdsale
- Redemption
abis:
- name: KaliDAOFactory
file: ./abis/KaliDAOFactory.json
- name: Erc20
file: ./abis/Erc20.json
eventHandlers:
- event: DAOdeployed(indexed address,string,string,string,bool,address[],bytes[],address[],uint256[],uint32[16])
handler: handleDAOdeployed
file: ./src/mappings/factory-mapping.ts
- kind: ethereum/contract
name: KaliDAOcrowdsaleV1
network: {{network}}
source:
address: '{{crowdsaleV1.address}}'
abi: KaliDAOcrowdsaleV1
startBlock: {{crowdsaleV1.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Crowdsale
- Token
- Purchase
abis:
- name: KaliDAOcrowdsaleV1
file: ./abis/KaliDAOcrowdsaleV1.json
- name: Erc20
file: ./abis/Erc20.json
eventHandlers:
- event: ExtensionSet(indexed address,uint256,address,uint8,uint96,uint32,string)
handler: handleExtensionSet
- event: ExtensionCalled(indexed address,indexed address,uint256)
handler: handleExtensionCalled
file: ./src/mappings/crowdsale-v1-mapping.ts
- kind: ethereum/contract
name: KaliDAOcrowdsaleV2
network: {{network}}
source:
address: '{{crowdsaleV2.address}}'
abi: KaliDAOcrowdsaleV2
startBlock: {{crowdsaleV2.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Crowdsale
- Token
- Purchase
abis:
- name: KaliDAOcrowdsaleV2
file: ./abis/KaliDAOcrowdsaleV2.json
- name: Erc20
file: ./abis/Erc20.json
eventHandlers:
- event: ExtensionSet(indexed address,uint256,uint256,address,uint32,uint96,uint96,string)
handler: handleExtensionSet
- event: ExtensionCalled(indexed address,indexed address,uint256,indexed address[])
handler: handleExtensionCalled
- event: ClaimTransferred(indexed address,indexed address)
handler: handleClaimTransferred
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: KaliRateSet(uint8)
handler: handleKaliRateSet
file: ./src/mappings/crowdsale-v2-mapping.ts
- kind: ethereum/contract
name: KaliAccessManager
network: {{network}}
source:
address: '{{accessManager.address}}'
abi: KaliAccessManager
startBlock: {{accessManager.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Crowdsale
- AccessList
abis:
- name: KaliAccessManager
file: ./abis/KaliAccessManager.json
eventHandlers:
- event: AccountListed(indexed address,uint256,bool)
handler: handleAccountListed
- event: ListCreated(indexed address,uint256)
handler: handleListCreated
- event: MerkleRootSet(uint256,bytes32)
handler: handleMerkleRootSet
- event: TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTransferSingle
- event: URI(string,indexed uint256)
handler: handleURI
file: ./src/mappings/access-manager-mapping.ts
- kind: ethereum/contract
name: KaliDAOtribute
network: {{network}}
source:
address: '{{tribute.address}}'
abi: KaliDAOtribute
startBlock: {{tribute.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Tribute
abis:
- name: KaliDAOtribute
file: ./abis/KaliDAOtribute.json
- name: Erc20
file: ./abis/Erc20.json
eventHandlers:
- event: NewTributeProposal(indexed address,indexed address,indexed uint256,address,bool,uint256)
handler: handleNewTributeProposal
- event: TributeProposalCancelled(indexed address,indexed uint256)
handler: handleTributeProposalCancelled
- event: TributeProposalReleased(indexed address,indexed uint256)
handler: handleTributeProposalReleased
file: ./src/mappings/tribute-mapping.ts
- kind: ethereum/contract
name: KaliDAOredemption
network: {{network}}
source:
address: '{{redemption.address}}'
abi: KaliDAOredemption
startBlock: {{redemption.startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Redemption
abis:
- name: KaliDAOredemption
file: ./abis/KaliDAOredemption.json
eventHandlers:
- event: ExtensionSet(indexed address,address[],indexed uint256)
handler: handleExtensionSet
- event: ExtensionCalled(indexed address,indexed address,indexed uint256)
handler: handleExtensionCalled
- event: TokensAdded(indexed address,address[])
handler: handleTokenAdded
- event: TokensRemoved(indexed address,uint256[])
handler: handleTokenRemoved
file: ./src/mappings/redemption-mapping.ts
templates:
- name: KaliDAO
kind: ethereum/contract
network: {{network}}
source:
abi: KaliDAO
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- DAO
- Token
- Member
- Proposal
abis:
- name: KaliDAO
file: ./abis/KaliDAO.json
- name: Erc20
file: ./abis/Erc20.json
eventHandlers:
- event: DelegateChanged(indexed address,indexed address,indexed address)
handler: handleDelegateChanged
- event: DelegateVotesChanged(indexed address,uint256,uint256)
handler: handleDelegateVotesChanged
- event: NewProposal(indexed address,indexed uint256,indexed uint8,string,address[],uint256[],bytes[])
handler: handleNewProposal
- event: ProposalProcessed(indexed uint256,indexed bool)
handler: handleProposalProcessed
- event: ProposalCancelled(indexed address,indexed uint256)
handler: handleProposalCancelled
- event: ProposalSponsored(indexed address,indexed uint256)
handler: handleProposalSponsored
- event: VoteCast(indexed address,indexed uint256,indexed bool)
handler: handleVoteCast
- event: PauseFlipped(bool)
handler: handlePauseFlipped
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
file: ./src/mappings/dao-mapping.ts