-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubgraph.template.yaml
More file actions
77 lines (75 loc) · 2.37 KB
/
subgraph.template.yaml
File metadata and controls
77 lines (75 loc) · 2.37 KB
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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: EthunesLicenses
network: {{network}}
source:
address: "{{LicenseAddress}}"
abi: EthunesLicenses
startBlock: {{LicenseStartBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- TransferSingle
- TransferBatch
- ApprovalForAll
abis:
- name: EthunesLicenses
file: ./abis/EthunesLicenses.json
eventHandlers:
- event: TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTransferSingle
- event: TransferBatch(indexed address,indexed address,indexed address,uint256[],uint256[])
handler: handleTransferBatch
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
file: ./src/mapping/license.ts
- kind: ethereum/contract
name: EthunesSongs
network: {{network}}
source:
address: "{{SongAddress}}"
abi: EthunesSongs
startBlock: {{SongStartBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Transfer
- ApprovalForAll
abis:
- name: EthunesSongs
file: ./abis/EthunesSongs.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- event: Approval(indexed address,indexed address,indexed uint256)
handler: handleApproval
- event: ApprovalForAll(indexed address,indexed address,bool)
handler: handleApprovalForAll
file: ./src/mapping/song.ts
- kind: ethereum/contract
name: EthunesMarketplace
network: {{network}}
source:
address: "{{MarketplaceAddress}}"
abi: EthunesMarketplace
startBlock: {{MarketplaceStartBlock}}
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- EthunesLicenseAdded
abis:
- name: EthunesMarketplace
file: ./abis/EthunesMarketplace.json
eventHandlers:
- event: EthunesLicenseAdded(indexed uint256,indexed address,uint256)
handler: handleEthunesLicenseAdded
file: ./src/mapping/marketplace.ts