-
Notifications
You must be signed in to change notification settings - Fork 20
/
subgraph.yaml
30 lines (30 loc) · 931 Bytes
/
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
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: NftMarketplace
network: sepolia
source:
address: "0x813c6080F2BCdB5855c4c6A8B5E3f3c6DF91008E"
abi: NftMarketplace
startBlock: 3067519
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- ItemBought
- ItemCanceled
- ItemListed
abis:
- name: NftMarketplace
file: ./abis/NftMarketplace.json
eventHandlers:
- event: ItemBought(indexed address,indexed address,indexed uint256,uint256)
handler: handleItemBought
- event: ItemCanceled(indexed address,indexed address,indexed uint256)
handler: handleItemCanceled
- event: ItemListed(indexed address,indexed address,indexed uint256,uint256)
handler: handleItemListed
file: ./src/mapping.ts