forked from Secured-Finance/secured-finance-subgraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
132 lines (132 loc) · 4.35 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
specVersion: 0.0.5
description: Secured Finance is decentralized P2P banking business for digital assets
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: LendingMarketOperationLogic
network: ~
source:
abi: LendingMarketController
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- LendingMarket
abis:
- name: LendingMarketController
file: ./abis/LendingMarketOperationLogic.json
eventHandlers:
- event: LendingMarketInitialized(indexed bytes32,uint256,uint256,uint256,uint256,address,address)
handler: handleLendingMarketInitialized
- event: OrderBookCreated(indexed bytes32,indexed uint8,uint256,uint256,uint256)
handler: handleOrderBookCreated
- event: OrderBooksRotated(bytes32,uint256,uint256)
handler: handleOrderBooksRotated
file: ./src/mappings/lending-controller.ts
- kind: ethereum
name: TokenVault
network: ~
source:
abi: TokenVault
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- User
abis:
- name: TokenVault
file: >-
./abis/TokenVault.json
eventHandlers:
- event: Deposit(indexed address,bytes32,uint256,address)
handler: handleDeposit
- event: Withdraw(indexed address,bytes32,uint256)
handler: handleWithdraw
file: ./src/mappings/token-vault.ts
- kind: ethereum
name: FundManagementLogic
network: ~
source:
abi: LendingMarketController
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Order
- Transaction
abis:
- name: LendingMarketController
file: ./abis/FundManagementLogic.json
eventHandlers:
- event: OrderPartiallyFilled(uint48,indexed address,indexed bytes32,uint8,uint256,uint256,uint256)
handler: handleOrderPartiallyFilled
file: ./src/mappings/fund-management.ts
- kind: ethereum
name: LiquidationLogic
network: ~
source:
abi: LendingMarketController
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Liquidation
abis:
- name: LendingMarketController
file: ./abis/LiquidationLogic.json
eventHandlers:
- event: LiquidationExecuted(indexed address,bytes32,indexed bytes32,indexed uint256,uint256)
handler: handleLiquidationExecuted
file: ./src/mappings/liquidation.ts
templates:
- kind: ethereum
name: OrderActionLogic
network: ~
source:
abi: OrderActionLogic
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- Order
- Transaction
- DailyVolume
abis:
- name: OrderActionLogic
file: ./abis/OrderActionLogic.json
eventHandlers:
- event: OrderExecuted(indexed address,uint8,indexed bytes32,indexed uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint48,uint256,uint256,bool)
handler: handleOrderExecuted
- event: PreOrderExecuted(indexed address,uint8,indexed bytes32,indexed uint256,uint256,uint256,uint48)
handler: handlePreOrderExecuted
- event: PositionUnwound(indexed address,uint8,indexed bytes32,indexed uint256,uint256,uint256,uint256,uint256,uint256,bool)
handler: handlePositionUnwound
- event: OrderCanceled(uint48,indexed address,uint8,bytes32,uint256,uint256,uint256)
handler: handleOrderCanceled
- event: OrdersCleaned(uint48[],indexed address,uint8,indexed bytes32,uint256,uint256,uint256)
handler: handleOrdersCleaned
file: ./src/mappings/lending-market.ts
- kind: ethereum
name: OrderBookLogic
network: ~
source:
abi: OrderBookLogic
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- LendingMarket
abis:
- name: OrderBookLogic
file: ./abis/OrderBookLogic.json
eventHandlers:
- event: ItayoseExecuted(bytes32,uint256,uint256,uint256,uint256,uint256)
handler: handleItayoseExecuted
file: ./src/mappings/lending-market.ts