-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
109 lines (108 loc) · 3.44 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
specVersion: 0.0.4
description: "Yuser Collections Subgraph"
repository: https://github.com/yusernetwork/yuser-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: yuserFactory
network: mbase
source:
# has to be replaced with the correct factory address
address: '0xc7E7A4156EAe572E39FEd05b9F7581b2ae8Ece8C'
abi: yuserFactory
startBlock: 2642521
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mapping.ts
entities:
- Collection
abis:
- name: yuserFactory
file: ./artifacts/yuserFactory.abi.json
eventHandlers:
- event: CollectionCreated(address,uint256,address,string)
handler: handleNewCollection
- kind: ethereum/contract
name: yuserMarketplace
network: mbase
source:
# has to be replaced with the correct Marketplace address
address: '0xEEc874F2A9f79e8eB08BfF83B69AD554DaeCa0f4'
abi: yuserMarketplace
# has to be replaced with the correct start block
startBlock: 1642636
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mapping.ts
entities:
- ItemListed
- Bid
- Settled
abis:
- name: yuserMarketplace
file: ./artifacts/yuserMarketplace.abi.json
eventHandlers:
- event: ItemListed(uint256,uint256,indexed address,indexed uint256,address,indexed address,uint256)
handler: handleItemListed
- event: Bid(uint256,uint256,indexed address,indexed uint256)
handler: handleBid
- event: Settled(uint256,uint256,indexed address,indexed address,indexed uint256)
handler: handleSettled
- kind: ethereum/contract
name: nextGems
network: mbase
source:
# has to be replaced with the correct nextGems address
address: '0xaB150D32733E9c39b5a176A6d5a697ceeF6933eF'
abi: nextGems
# has to be replaced with the correct start block
startBlock: 1642636
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mapping.ts
entities:
- Transfer
abis:
- name: nextGems
file: ./artifacts/nextGems.abi.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleNextGemsTransfer
templates:
- name: Collection
kind: ethereum/contract
network: mbase
source:
abi: yuserCollection
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mapping.ts
entities:
- Initialized
- Transfer
- RoleGranted
- RoleRevoked
- Mint
abis:
- name: yuserCollection
file: ./artifacts/yuserCollection.abi.json
eventHandlers:
- event: Initialized(address,string)
handler: handleCollectionInitialized
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- event: RoleGranted(indexed bytes32,indexed address,indexed address)
handler: handleRoleGranted
- event: RoleRevoked(indexed bytes32,indexed address,indexed address)
handler: handleRoleRevoked
- event: Mint(indexed address,indexed address,indexed uint256,string)
handler: handleMint