-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
57 lines (57 loc) · 1.72 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
47
48
49
50
51
52
53
54
55
56
57
specVersion: 0.0.2
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: LlamaLendFactory
network: goerli
source:
address: "0x664885D29933c48728E85F5728808DffC40cb577"
abi: LlamaLendFactory
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- PoolCreated
abis:
- name: LlamaLendFactory
file: ./abis/LlamaLendFactory.json
- name: LlamaLend
file: ./abis/LlamaLend.json
eventHandlers:
- event: PoolCreated(indexed address,indexed address,address)
handler: handlePoolCreated
file: ./src/mapping.ts
templates:
- kind: ethereum/contract
name: LlamaLend
network: goerli
source:
abi: LlamaLend
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- Loan
abis:
- name: LlamaLend
file: ./abis/LlamaLend.json
eventHandlers:
- event: LoanCreated(indexed uint256,uint256,uint256,uint256,uint216)
handler: handleLoanCreated
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
- event: OwnershipTransferred(indexed address,indexed address)
handler: handleOwnershipTransferred
- event: LiquidatorAdded(address)
handler: handleLiquidatorAdded
- event: LiquidatorRemoved(address)
handler: handleLiquidatorRemoved
callHandlers:
- function: changeLTV(uint256)
handler: handleChangeLTV
- function: changeInterest(uint256,uint256)
handler: handleChangeInterest
file: ./src/mapping.ts