-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
36 lines (36 loc) · 1.15 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
specVersion: 0.0.5
description: Subgraph for the Lock contract in the foundry-hardhat template.
repository: https://github.com/0xdavinchee/subgraph-template
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Lock
network: goerli
source:
abi: Lock
address: "0x0000000000000000000000000000000000000000"
startBlock: 0
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/lock.ts
entities:
- NewOwnerEvent
- NewUnlockTimeEvent
- WithdrawalEvent
- Owner
abis:
- name: Lock
file: ./abis/Lock.json
eventHandlers:
- event: NewOwner(indexed address,indexed address)
handler: handleNewOwner
receipt: true
- event: NewUnlockTime(indexed address,uint64)
handler: handleNewUnlockTime
receipt: true
- event: Withdrawal(uint256)
handler: handleWithdrawal
receipt: true