forked from ChaosLabsInc/subgraph-benqi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
28 lines (28 loc) · 897 Bytes
/
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
specVersion: 0.0.2
description: Benqi is an open-source protocol for algorithmic, efficient Money Markets on the Avalanche blockchain.
repository: https://github.com/ChaosLabsInc/subgraph-benqi-qi-staking
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: veQi
network: avalanche
source:
address: "0x7Ee65Fdc1C534A6b4f9ea2Cc3ca9aC8d6c602aBd" # veQi contract
abi: veQi
startBlock: 20035028 # veQi contract deployment
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/veQi.ts
entities:
- Void
abis:
- name: veQi
file: ./abis/veQi.json
eventHandlers:
- event: Staked(indexed address,uint256)
handler: handleStaked
- event: Unstaked(indexed address,uint256)
handler: handleUnstaked