-
Notifications
You must be signed in to change notification settings - Fork 6
/
subgraph.yaml
195 lines (195 loc) · 5.93 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
specVersion: 0.0.2
repository: https://github.com/tarot-finance/tarot-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: TarotFactory
network: fantom
source:
address: "0x35c052bbf8338b06351782a565aa9aad173432ea"
abi: TarotFactory
startBlock: 9926326
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/tarotFactory.ts
entities:
- TarotFactory
abis:
- name: TarotFactory
file: ./abis/TarotFactory.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: UniswapFactory
file: ./abis/UniswapFactory.json
- name: UniswapRouter
file: ./abis/UniswapRouter.json
- name: Pair
file: ./abis/Pair.json
- name: FarmingPool
file: ./abis/FarmingPool.json
- name: Distributor
file: ./abis/Distributor.json
- name: Collateral
file: ./abis/Collateral.json
- name: Borrowable
file: ./abis/Borrowable.json
- name: VaultToken
file: ./abis/VaultToken.json
eventHandlers:
- event: LendingPoolInitialized(indexed address,indexed address,indexed address,address,address,address,uint256)
handler: handleLendingPoolInitialized
templates:
- kind: ethereum/contract
name: Pair
network: fantom
source:
abi: Pair
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/uniswapPair.ts
entities:
- Pair
- Token
abis:
- name: Pair
file: ./abis/Pair.json
- name: UniswapFactory
file: ./abis/UniswapFactory.json
- name: UniswapRouter
file: ./abis/UniswapRouter.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: PoolToken
file: ./abis/PoolToken.json
eventHandlers:
- event: Sync(uint112,uint112)
handler: handleSync1
- kind: ethereum/contract
name: Collateral
network: fantom
source:
abi: Collateral
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/collateral.ts
entities:
- Collateral
abis:
- name: Collateral
file: ./abis/Collateral.json
eventHandlers:
- event: Sync(uint256)
handler: handleSync
- event: NewSafetyMargin(uint256)
handler: handleNewSafetyMargin
- event: NewLiquidationIncentive(uint256)
handler: handleNewLiquidationIncentive
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- kind: ethereum/contract
name: Borrowable
network: fantom
source:
abi: Borrowable
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/borrowable.ts
entities:
- Borrowable
abis:
- name: Borrowable
file: ./abis/Borrowable.json
- name: FarmingPool
file: ./abis/FarmingPool.json
- name: Distributor
file: ./abis/Distributor.json
eventHandlers:
- event: Sync(uint256)
handler: handleSync
- event: AccrueInterest(uint256,uint256,uint256)
handler: handleAccrueInterest
- event: Borrow(indexed address,indexed address,indexed address,uint256,uint256,uint256,uint256,uint256)
handler: handleBorrow
- event: Liquidate(indexed address,indexed address,indexed address,uint256,uint256,uint256,uint256,uint256)
handler: handleLiquidate
- event: CalculateKinkBorrowRate(uint256)
handler: handleCalculateKinkBorrowRate
- event: CalculateBorrowRate(uint256)
handler: handleCalculateBorrowRate
- event: NewReserveFactor(uint256)
handler: handleNewReserveFactor
- event: NewKinkUtilizationRate(uint256)
handler: handleNewKinkUtilizationRate
- event: NewBorrowTracker(address)
handler: handleNewBorrowTracker
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer
- kind: ethereum/contract
name: FarmingPool
network: fantom
source:
abi: FarmingPool
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/farmingPool.ts
entities:
- FarmingPool
abis:
- name: FarmingPool
file: ./abis/FarmingPool.json
- name: Distributor
file: ./abis/Distributor.json
eventHandlers:
- event: Advance(uint256,uint256)
handler: handleAdvance
- kind: ethereum/contract
name: VaultToken
network: fantom
source:
abi: VaultToken
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ./src/mappings/uniswapPair.ts
entities:
- Pair
abis:
- name: VaultToken
file: ./abis/VaultToken.json
- name: Pair
file: ./abis/Pair.json
- name: UniswapFactory
file: ./abis/UniswapFactory.json
- name: UniswapRouter
file: ./abis/UniswapRouter.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC20SymbolBytes
file: ./abis/ERC20SymbolBytes.json
- name: ERC20NameBytes
file: ./abis/ERC20NameBytes.json
- name: PoolToken
file: ./abis/PoolToken.json
eventHandlers:
- event: Sync(uint256)
handler: handleSync2