-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.yaml
42 lines (41 loc) · 1.67 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
dataSources:
- kind: ethereum/contract
name: WrappedSongFactory
// ... other configurations ...
eventHandlers:
- event: WrappedSongCreated(indexed address,address,address)
handler: handleWrappedSongCreated
- event: WrappedSongCreatedWithMetadata(indexed address,address,string,uint256,string)
handler: handleWrappedSongCreatedWithMetadata
templates:
- name: WrappedSongSmartAccount
kind: ethereum/contract
# ... other configurations ...
eventHandlers:
# ... (keep existing event handlers)
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- event: MetadataUpdated(indexed uint256,string,address)
handler: handleMetadataUpdated
- event: SharesSetForSale(indexed address,uint256,uint256)
handler: handleSharesSetForSale
- event: EarningsReceived(indexed address,uint256,uint256)
handler: handleEarningsReceived
- event: EarningsClaimed(indexed address,indexed address,uint256)
handler: handleEarningsClaimed
- event: EarningsUpdated(indexed address,uint256,uint256)
handler: handleEarningsUpdated
- event: EarningsRedeemed(indexed address,uint256)
handler: handleEarningsRedeemed
- name: WSTokenManagement
kind: ethereum/contract
# ... other configurations ...
eventHandlers:
- event: SharesSaleStarted(uint256,uint256)
handler: handleSharesSaleStarted
- event: SharesSold(address,uint256)
handler: handleSharesSold
- event: SharesSaleEnded()
handler: handleSharesSaleEnded
- event: FundsWithdrawn(indexed address,uint256)
handler: handleFundsWithdrawn