-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubgraph.yaml
More file actions
35 lines (35 loc) · 1.18 KB
/
subgraph.yaml
File metadata and controls
35 lines (35 loc) · 1.18 KB
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
specVersion: 0.0.2
description: Book-It subgraph for Ethereum
repository: https://github.com/stshort/bookit
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: BookIt
network: mainnet
source:
address: '0xE6FE0744AAA376a8a75b1215007e4832934327A5'
abi: BookIt
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
entities:
- Profile
- Booking
- Customer
abis:
- name: BookIt
file: ./abis/BookIt.json
eventHandlers:
- event: ProfileCreatedOrUpdated((address,uint256,bool,bool,bool,bool,bool,bool,bool,uint256,uint256))
handler: handleProfileCreatedOrUpdated
- event: ProfileRemoved(address)
handler: handleProfileRemoved
- event: BookingAdded((bytes32,uint256,uint256,uint256,uint256,address,address,bool))
handler: handleBookingAdded
- event: BookingApproved((bytes32,uint256,uint256,uint256,uint256,address,address,bool))
handler: handleBookingApproved
- event: BookingCanceled(address,address,bytes32)
handler: handleBookingCanceled
file: ./src/mapping.ts