forked from compound-finance/compound-v2-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsubgraph.yaml
More file actions
73 lines (73 loc) · 2.05 KB
/
subgraph.yaml
File metadata and controls
73 lines (73 loc) · 2.05 KB
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
specVersion: 1.2.0
description: Ionic Mode Main Market
repository: https://github.com/ionicprotocol/ionic-subgraph
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum/contract
name: PoolDirectory
network: mode-mainnet
source:
address: "0x39C353Cf9041CcF467A04d0e78B63d961E81458a"
abi: PoolDirectory
startBlock: 2067120
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Pool
abis:
- name: PoolDirectory
file: ./abis/PoolDirectory.json
eventHandlers:
- event: PoolRegistered(uint256,(string,address,address,uint256,uint256))
handler: handlePoolRegistered
file: ./src/mappings/poolDirectory.ts
templates:
- name: Comptroller
kind: ethereum/contract
network: mode-mainnet
source:
abi: Comptroller
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/comptroller.ts
entities:
- Market
abis:
- name: Comptroller
file: ./abis/Comptroller.json
eventHandlers:
- event: MarketListed(address)
handler: handleMarketListed
- name: Market
kind: ethereum/contract
network: mode-mainnet
source:
abi: Market
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
file: ./src/mappings/market.ts
entities:
- Market
- User
- UserMarket
abis:
- name: Market
file: ./abis/CToken.json
eventHandlers:
- event: Borrow(address,uint256,uint256,uint256)
handler: handleBorrow
- event: Mint(address,uint256,uint256)
handler: handleMint
- event: RepayBorrow(address,address,uint256,uint256,uint256)
handler: handleRepayBorrow
- event: Redeem(address,uint256,uint256)
handler: handleRedeem
- event: Transfer(indexed address,indexed address,uint256)
handler: handleTransfer