-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.template.yaml
234 lines (234 loc) · 6.9 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
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
specVersion: 0.0.4
description: Open Format
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: AppFactory
network: {{network}}
source:
{{#AppFactory.address}}
address: "{{AppFactory.address}}"
{{/AppFactory.address}}
{{#AppFactory.startBlock}}
startBlock: {{AppFactory.startBlock}}
{{/AppFactory.startBlock}}
abi: AppFactory
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- App
abis:
- name: AppFactory
file: ./abis/AppFactory.json
eventHandlers:
- event: Created(address,address,string)
handler: handleCreated
file: ./src/AppFactory.ts
templates:
- name: ERC721FactoryFacet
kind: ethereum/contract
network: {{network}}
source:
abi: ERC721Factory
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Contract
- ContractData
abis:
- name: ERC721Factory
file: ./abis/ERC721FactoryFacet.json
eventHandlers:
- event: Created(address,address,string,string,address,uint16,bytes32)
handler: handleCreated
file: ./src/facet/ERC721Factory.ts
- name: ERC721Base
kind: ethereum/contract
network: {{network}}
source:
abi: ERC721Base
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- NFT
abis:
- name: ERC721Base
file: ./abis/ERC721Base.json
eventHandlers:
- event: Minted(address,string)
handler: handleMinted
- event: BatchMinted(address,uint256,string)
handler: handleBatchMinted
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/ERC721Base.ts
- name: ERC721Badge
kind: ethereum/contract
network: {{network}}
source:
abi: ERC721Badge
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- NFT
abis:
- name: ERC721Badge
file: ./abis/ERC721Badge.json
eventHandlers:
- event: Minted(address,string)
handler: handleMinted
- event: BatchMinted(address,uint256,string)
handler: handleBatchMinted
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- event: UpdatedBaseURI(string)
handler: handleUpdatedBaseURI
file: ./src/ERC721Badge.ts
- name: ERC721LazyMint
kind: ethereum/contract
network: {{network}}
source:
abi: ERC721LazyMint
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- NFT
abis:
- name: ERC721LazyMint
file: ./abis/ERC721LazyMint.json
eventHandlers:
- event: Minted(address,string)
handler: handleMinted
- event: BatchMinted(address,uint256,string)
handler: handleBatchMinted
- event: TokensLazyMinted(indexed uint256,uint256,string,bytes)
handler: handleLazyMint
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/ERC721LazyMint.ts
- name: ERC20FactoryFacet
kind: ethereum/contract
network: {{network}}
source:
abi: ERC20FactoryFacet
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Contract
- ContractData
- User
abis:
- name: ERC20FactoryFacet
file: ./abis/ERC20FactoryFacet.json
eventHandlers:
- event: Created(address,address,string,string,uint8,uint256,bytes32)
handler: handleCreated
file: ./src/facet/ERC20Factory.ts
- name: ERC20Base
kind: ethereum/contract
network: {{network}}
source:
abi: ERC20Base
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Token
abis:
- name: ERC20Base
file: ./abis/ERC20Base.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: ContractURIUpdated(string,string)
handler: handleContractURIUpdated
file: ./src/ERC20Base.ts
- name: ERC20Point
kind: ethereum/contract
network: {{network}}
source:
abi: ERC20Point
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Token
abis:
- name: ERC20Point
file: ./abis/ERC20Point.json
eventHandlers:
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: ContractURIUpdated(string,string)
handler: handleContractURIUpdated
file: ./src/ERC20Point.ts
- name: RewardsFacet
kind: ethereum/contract
network: {{network}}
source:
abi: RewardsFacet
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Action
abis:
- name: RewardsFacet
file: ./abis/RewardsFacet.json
- name: ERC20Base
file: ./abis/ERC20Base.json
- name: ERC721Base
file: ./abis/ERC721Base.json
- name: ERC721Badge
file: ./abis/ERC721Badge.json
eventHandlers:
- event: TokenMinted(address,address,uint256,bytes32,bytes32,string)
handler: handleTokenMinted
- event: TokenTransferred(address,address,uint256,bytes32,bytes32,string)
handler: handleTokenTransferred
# legacy event signature name
- event: BadgeMinted(address,uint256,address,bytes32,bytes32,string)
handler: handleBadgeMintedLegacy
- event: ERC721Minted(address,uint256,address,bytes32,bytes32,string)
handler: handleERC721Minted
- event: BadgeMinted(address,uint256,address,bytes32,bytes32,bytes)
handler: handleBadgeMinted
- event: BadgeTransferred(address,address,uint256,bytes32,bytes32,string)
handler: handleBadgeTransferred
file: ./src/facet/RewardsFacet.ts
- name: ChargeFacet
kind: ethereum/contract
network: {{network}}
source:
abi: ChargeFacet
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Action
abis:
- name: ChargeFacet
file: ./abis/ChargeFacet.json
eventHandlers:
- event: ChargedUser(address,address,uint256,bytes32,bytes32)
handler: handleChargedUser
- event: RequiredTokenBalanceUpdated(address,uint256)
handler: handleRequiredTokenBalanceUpdated
file: ./src/facet/ChargeFacet.ts