-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.template.yaml
69 lines (69 loc) · 2.39 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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: HyperVIBES
network: {{network}}
source:
address: "{{contractAddress}}"
abi: HyperVIBES
startBlock: {{startBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities: [ ]
abis:
- name: HyperVIBES
file: ./abis/HyperVIBES.json
- name: ERC721
file: ./abis/ERC721.json
- name: ERC20
file: ./abis/ERC20.json
eventHandlers:
- event: AdminAdded(indexed uint256,indexed address)
handler: handleAdminAdded
- event: AdminRemoved(indexed uint256,indexed address)
handler: handleAdminRemoved
- event: Claimed(indexed uint256,indexed address,indexed uint256,uint256)
handler: handleClaimed
- event: CollectionAdded(indexed uint256,indexed address)
handler: handleCollectionAdded
- event: CollectionRemoved(indexed uint256,indexed address)
handler: handleCollectionRemoved
- event: Infused(indexed uint256,indexed address,indexed uint256,address,uint256,string)
handler: handleInfused
- event: InfuserAdded(indexed uint256,indexed address)
handler: handleInfuserAdded
- event: InfuserRemoved(indexed uint256,indexed address)
handler: handleInfuserRemoved
- event: ClaimerAdded(indexed uint256,indexed address)
handler: handleClaimerAdded
- event: ClaimerRemoved(indexed uint256,indexed address)
handler: handleClaimerRemoved
- event: RealmCreated(indexed uint256,string,string)
handler: handleRealmCreated
- event: ProxyAdded(indexed uint256,indexed address)
handler: handleProxyAdded
- event: ProxyRemoved(indexed uint256,indexed address)
handler: handleProxyRemoved
file: ./src/mapping.ts
templates:
- name: ERC721Datasource
kind: ethereum/contract
network: {{network}}
source:
abi: ERC721
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
file: ./src/erc721.ts
entities: [ ]
abis:
- name: ERC721
file: ./abis/ERC721.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer