-
Notifications
You must be signed in to change notification settings - Fork 13
/
subgraph.yaml
40 lines (40 loc) · 1.53 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
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: LensHub
network: matic
source:
address: "0xDb46d1Dc155634FbC732f92E853b10B288AD5a1d"
abi: LensHub
startBlock: 28384641
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- AdminChanged
- BeaconUpgraded
- Upgraded
abis:
- name: LensHub
file: ./abis/LensHub.json
eventHandlers:
# - event: AdminChanged(address,address)
# handler: handleAdminChanged
# - event: BeaconUpgraded(indexed address)
# handler: handleBeaconUpgraded
# - event: Upgraded(indexed address)
# handler: handleUpgraded
- event: ProfileCreated(indexed uint256,indexed address,indexed address,string,string,address,bytes,string,uint256)
handler: handleProfileCreated
- event: PostCreated(indexed uint256,indexed uint256,string,address,bytes,address,bytes,uint256)
handler: handlePostCreated
- event: CommentCreated(indexed uint256,indexed uint256,string,uint256,uint256,bytes,address,bytes,address,bytes,uint256)
handler: handleCommentCreated
- event: MirrorCreated(indexed uint256,indexed uint256,uint256,uint256,bytes,address,bytes,uint256)
handler: handleMirrorCreated
- event: Collected(indexed address,indexed uint256,indexed uint256,uint256,uint256,uint256)
handler: handleCollected
file: ./src/lens-hub.ts