-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
65 lines (65 loc) · 2.22 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
specVersion: 0.0.4
description: Gravatar for Ethereum
repository: https://github.com/SInoLabs-Blockchain/Indexer
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Marketplace
network: mainnet
source:
address: "0x62011AE9BFd9dCa2A2BFd037fb66b0bcC4a0e4C2"
abi: Marketplace
startBlock: 30563285
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- ArtworkNftEntity
- ArtworkOrderEntity
- ArtworkBidEntity
abis:
- name: Marketplace
file: ./abis/Marketplace.json
eventHandlers:
- event: ArtworkList(indexed bytes32,address,uint256,uint256,uint256,uint256,uint256,uint256)
handler: handleArtworkList
- event: ArtworkBid(indexed bytes32,address,uint256,uint256)
handler: handleArtworkBid
- event: ArtworkClaim(indexed bytes32,address,uint256)
handler: handleArtworkClaim
- event: ArtworkMint(address,indexed uint256,string,uint256)
handler: handleArtworkMint
- event: ArtworkWithdraw(indexed bytes32,uint256)
handler: handleArtworkWithdraw
file: ./src/handlers/Marketplace.mapping.ts
templates:
- kind: ethereum/contract
name: Marketplace
network: mainnet
source:
abi: Marketplace
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/handlers/Marketplace.mapping.ts
entities:
- ArtworkNftEntity
- ArtworkOrderEntity
- ArtworkBidEntity
abis:
- name: Marketplace
file: ./abis/Marketplace.json
eventHandlers:
- event: ArtworkList(indexed bytes32,address,uint256,uint256,uint256,uint256,uint256,uint256)
handler: handleArtworkList
- event: ArtworkBid(indexed bytes32,address,uint256,uint256)
handler: handleArtworkBid
- event: ArtworkClaim(indexed bytes32,address,uint256)
handler: handleArtworkClaim
- event: ArtworkMint(address,indexed uint256,string,uint256)
handler: handleArtworkMint
- event: ArtworkWithdraw(indexed bytes32,uint256)
handler: handleArtworkWithdraw