This repository has been archived by the owner on Dec 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
subgraph.yaml
59 lines (59 loc) · 1.66 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
specVersion: 0.0.2
description: Sound
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: ArtistCreator
network: mainnet
source:
address: '0x78e3adc0e811e4f93bd9f1f9389b923c9a3355c2'
abi: ArtistCreator
startBlock: 13725566
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Artist
- Account
abis:
- name: ArtistCreator
file: ./abis/ArtistCreator.json
- name: Artist
file: ./abis/Artist.json
eventHandlers:
- event: CreatedArtist(uint256,string,string,indexed address)
handler: handleCreatedArtist
file: ./src/ArtistCreator.ts
templates:
- kind: ethereum/contract
name: Artist
network: mainnet
source:
abi: Artist
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Artist
- Edition
- Token
- Sale
- Transfer
- Account
- Balance
abis:
- name: Artist
file: ./abis/Artist.json
eventHandlers:
- event: EditionCreated(indexed uint256,address,uint256,uint32,uint32,uint32,uint32)
handler: handleEditionCreated
- event: EditionPurchased(indexed uint256,indexed uint256,uint32,indexed address)
handler: handleEditionPurchased
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
file: ./src/Artist.ts