-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsubgraph.yaml
46 lines (46 loc) · 1.39 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
specVersion: 0.0.2
description: Create a subgraph of NFT Tickets using GET Protocol (https://get-protocol.io).
repository: https://github.com/apuyou/graph-get-nft-ticket
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Contract
network: matic
source:
address: "0x308e44cA2153C61103b0DC67Fd038De650912b73"
abi: Contract
startBlock: 15980526
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- primarySaleMint
abis:
- name: Contract
file: ./abis/Contract.json
eventHandlers:
- event: primarySaleMint(indexed uint256,indexed uint64,address,address,uint256,indexed uint64)
handler: handleprimarySaleMint
file: ./src/mapping.ts
- kind: ethereum/contract
name: EventContract
network: matic
source:
address: "0xcDA348fF8C175f305Ed8682003ec6F8743067f79"
abi: EventContract
startBlock: 15980516
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- newEventRegistered
abis:
- name: EventContract
file: ./abis/EventContract.json
eventHandlers:
- event: newEventRegistered(indexed address,indexed uint256,string,indexed uint256)
handler: handlenewEventRegistered
file: ./src/mapping.ts