-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
30 lines (30 loc) · 940 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.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: NftMarketplace
network: rinkeby
source:
address: "0xB12210c4bc27F8a174d44f5bB2b65159b8f70532"
abi: NftMarketplace
startBlock: 10857412
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/nft-marketplace.ts