-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
65 lines (65 loc) · 2.16 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
specVersion: 0.0.4
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: Controller
network: arbitrum-one
source:
address: "0xbE55638ACDdDe957fD934Ba1B37fA2Ef7A06425d"
abi: Controller
startBlock: 64381688
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Market
abis:
- name: Controller
file: ./abis/Controller.json
- name: HToken
file: ./abis/HToken.json
eventHandlers:
- event: MarketListed(indexed address)
handler: handleMarketListed
file: ./src/controller.ts
templates:
- kind: ethereum
name: HToken
network: arbitrum-one
source:
abi: HToken
address: "0x582be1f3d46b71c1c93b03b3cf195ebc4e13d8a2"
startBlock: 64381688
mapping:
kind: ethereum/events
apiVersion: 0.0.6
language: wasm/assemblyscript
entities:
- Coupon
- Collateral
- UserUnderlying
abis:
- name: HToken
file: ./abis/HToken.json
eventHandlers:
- event: Borrow(indexed address,uint256,uint256,uint256)
handler: handleBorrow
- event: BorrowLiquidated(indexed address,indexed address,address,uint256)
handler: handleBorrowLiquidated
- event: CollateralDeposited(indexed address,uint256,uint256)
handler: handleCollateralDeposited
- event: CollateralWithdrawn(indexed address,uint256)
handler: handleCollateralWithdrawn
- event: RepayBorrow(indexed address,indexed address,uint256,uint256,uint256,uint256)
handler: handleRepayBorrow
- event: UnderlyingDeposited(indexed address,indexed address,uint256,uint256,uint256)
handler: handleUnderlyingDeposited
- event: Redeem(indexed address,uint256,uint256,uint256)
handler: handleRedeem
- event: Withdraw(indexed address,uint256,uint256,uint256)
handler: handleWithdraw
- event: TransferSingle(indexed address,indexed address,indexed address,uint256,uint256)
handler: handleTransferSingle
file: ./src/h-token.ts