-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
30 lines (30 loc) · 943 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: "0xe088bD8Bb7e0aDcEB50D302bDF49763fD008ABBc"
abi: NftMarketplace
startBlock: 11137299
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- ItemBought
- ItemCancelled
- ItemListed
abis:
- name: NftMarketplace
file: ./abis/NftMarketplace.json
eventHandlers:
- event: ItemBought(indexed address,indexed address,indexed uint256,uint256)
handler: handleItemBought
- event: ItemCancelled(indexed address,indexed address,indexed uint256)
handler: handleItemCancelled
- event: ItemListed(indexed address,indexed address,indexed uint256,uint256)
handler: handleItemListed
file: ./src/nft-marketplace.ts