-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubgraph.yaml
More file actions
50 lines (49 loc) · 1.29 KB
/
subgraph.yaml
File metadata and controls
50 lines (49 loc) · 1.29 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
specVersion: 0.0.7
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: TicketsFactory
network: base-sepolia
source:
address: "0xa6e146efc4Bea3079F92BeABD659B922FdBFB4ba"
abi: TicketsFactory
startBlock: 20638990
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Factory
- Ticket
abis:
- name: TicketsFactory
file: ./abis/TicketsFactory.json
- name: Ticket
file: ./abis/Ticket.json
eventHandlers:
- event: NewTicketDeployed(address,address)
handler: handleNewTicketDeployed
file: ./src/mapping.ts
templates:
- name: Ticket
kind: ethereum/contract
network: base-sepolia
source:
abi: Ticket
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Ticket
- Transfer
abis:
- name: Ticket
file: ./abis/Ticket.json
eventHandlers:
- event: TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTransferSingle
- event: TicketPurchased(uint256,uint256)
handler: handleTicketPurchased
file: ./src/mapping.ts