-
Notifications
You must be signed in to change notification settings - Fork 0
/
subgraph.yaml
135 lines (135 loc) · 3.88 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
specVersion: 0.0.4
description: Unilend testnet on Mumbai
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: Core
network: matic
source:
abi: Core
address: "0xA9d39A0088466cbbB66266dB6C449f2645AF11c4"
startBlock: 50043218
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/core.ts
entities:
- FlashLoan
- NewDefaultInterestRateAddress
- NewDefaultMarketConfig
- NewGovernorAddress
- NewOracleAddress
- NewPositionAddress
- PoolCreated
abis:
- name: Core
file: ./abis/Core.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: Pool
file: ./abis/Pool.json
- name: Position
file: ./abis/Position.json
- name: Oracle
file: ./abis/Oracle.json
- name: Helper
file: ./abis/Helper.json
eventHandlers:
- event: PoolCreated(indexed address,indexed address,address,uint256)
handler: handlePoolCreated
- kind: ethereum
name: Oracle
network: matic
source:
abi: Oracle
address: "0xA2346BAec28Defee3edd2bd1f1de04F76BE60826"
startBlock: 50043218
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/oracle.ts
entities:
- Pool
- Transaction
- AssetOracleUpdated
abis:
- name: Core
file: ./abis/Core.json
- name: Pool
file: ./abis/Pool.json
- name: Position
file: ./abis/Position.json
- name: Oracle
file: ./abis/Oracle.json
eventHandlers:
- event: AssetOracleUpdated(indexed address,indexed address)
handler: handleAssetOracleUpdate
- kind: ethereum
name: Position
network: matic
source:
abi: Position
address: "0x864058b2fa9033D84Bc0cd6B92c88a697e2ac0fe"
startBlock: 50043218
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/position.ts
entities:
- Transfer
abis:
- name: Core
file: ./abis/Core.json
- name: Pool
file: ./abis/Pool.json
- name: Position
file: ./abis/Position.json
eventHandlers:
- event: Transfer(indexed address,indexed address,indexed uint256)
handler: handleTransfer
templates:
- name: Pool
kind: ethereum/contract
network: matic
source:
abi: Pool
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
file: ./src/mappings/pool.ts
entities:
- Pool
abis:
- name: Pool
file: ./abis/Pool.json
- name: ERC20
file: ./abis/ERC20.json
- name: Position
file: ./abis/Position.json
- name: Oracle
file: ./abis/Oracle.json
- name: Helper
file: ./abis/Helper.json
eventHandlers:
- event: Lend(indexed address,indexed uint256,uint256,uint256)
handler: handleLend
- event: Borrow(indexed address,indexed uint256,uint256,uint256,address)
handler: handleBorrow
- event: RepayBorrow(indexed address,indexed uint256,uint256,uint256,address)
handler: handleRepay
- event: Redeem(indexed address,indexed uint256,uint256,uint256)
handler: handleRedeem
- event: InterestUpdate(uint256,uint256,uint256,uint256)
handler: handleInterestUpdate
- event: LiquidateBorrow(indexed address,indexed uint256,indexed
uint256,uint256,uint256)
handler: handleLiquidateBorrow