-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsubgraph.yaml
213 lines (213 loc) · 6.44 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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
## Clearinghouse
# V1
- kind: ethereum
name: Clearinghouse_V1
network: mainnet
source:
address: "0xd6a6e8d9e82534bd65821142fccd91ec9cf31880"
abi: Clearinghouse
startBlock: 18185779
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- ClearinghouseSnapshot
abis:
- name: Clearinghouse
file: ./abis/Clearinghouse.json
- name: Clearinghouse_V1_2
file: ./abis/Clearinghouse_v1-2.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC4626
file: ./abis/ERC4626.json
- name: BophadesKernel
file: ./abis/BophadesKernel.json
- name: TRSRY
file: ./abis/TRSRYv1.json
eventHandlers:
- event: Rebalance(bool,uint256)
handler: handleRebalance
- event: Defund(address,uint256)
handler: handleDefund
file: ./src/clearinghouse.ts
# V1.1
- kind: ethereum
name: ClearinghouseV1_1
network: mainnet
source:
address: "0xE6343ad0675C9b8D3f32679ae6aDbA0766A2ab4c"
abi: Clearinghouse
startBlock: 18234505
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- ClearinghouseSnapshot
abis:
- name: Clearinghouse
file: ./abis/Clearinghouse.json
- name: Clearinghouse_V1_2
file: ./abis/Clearinghouse_v1-2.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC4626
file: ./abis/ERC4626.json
- name: BophadesKernel
file: ./abis/BophadesKernel.json
- name: TRSRY
file: ./abis/TRSRYv1.json
eventHandlers:
- event: Rebalance(bool,uint256)
handler: handleRebalance
- event: Defund(address,uint256)
handler: handleDefund
file: ./src/clearinghouse.ts
# V1.2
- kind: ethereum
name: ClearinghouseV1_2
network: mainnet
source:
address: "0x1e094fE00E13Fd06D64EeA4FB3cD912893606fE0"
abi: Clearinghouse_V1_2
startBlock: 21216656 # Deployment
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- ClearinghouseSnapshot
abis:
- name: Clearinghouse
file: ./abis/Clearinghouse.json
- name: Clearinghouse_V1_2
file: ./abis/Clearinghouse_v1-2.json
- name: ERC20
file: ./abis/ERC20.json
- name: ERC4626
file: ./abis/ERC4626.json
- name: BophadesKernel
file: ./abis/BophadesKernel.json
- name: TRSRY
file: ./abis/TRSRYv1.json
eventHandlers:
- event: Rebalance(bool,uint256)
handler: handleRebalance
- event: Defund(address,uint256)
handler: handleDefund
file: ./src/clearinghouse.ts
## CoolerFactory
# V1
- kind: ethereum
name: CoolerFactory_V1
network: mainnet
source:
address: "0xDE3e735d37A8498AD2F141F603A6d0F976A6F772"
abi: CoolerFactory
startBlock: 18185633
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CoolerLoan
# Event records
- RequestLoanEvent
- RescindLoanRequestEvent
- ClearLoanRequestEvent
- ClaimDefaultedLoanEvent
- RepayLoanEvent
- ExtendLoanEvent
abis:
- name: CoolerFactory
file: ./abis/CoolerFactory.json
- name: Cooler
file: ./abis/Cooler.json
- name: Clearinghouse
file: ./abis/Clearinghouse.json
- name: ERC20
file: ./abis/ERC20.json
- name: gOHM
file: ./abis/gOHM.json
- name: ERC4626
file: ./abis/ERC4626.json
- name: BophadesKernel
file: ./abis/BophadesKernel.json
- name: TRSRY
file: ./abis/TRSRYv1.json
- name: ChainlinkPriceFeed
file: ./abis/ChainlinkPriceFeed.json
eventHandlers:
- event: RequestLoan(indexed address,address,address,uint256)
handler: handleRequest
- event: RescindRequest(indexed address,uint256)
handler: handleRescindRequest
- event: ClearRequest(indexed address,uint256,uint256)
handler: handleClearRequest
- event: DefaultLoan(indexed address,uint256,uint256)
handler: handleDefaultLoan
- event: RepayLoan(indexed address,uint256,uint256)
handler: handleRepayLoan
- event: ExtendLoan(indexed address,uint256,uint8)
handler: handleExtendLoan
file: ./src/cooler-factory.ts
# V1.1
- kind: ethereum
name: CoolerFactory_V1_1
network: mainnet
source:
address: "0x30Ce56e80aA96EbbA1E1a74bC5c0FEB5B0dB4216"
abi: CoolerFactory
startBlock: 18234504
mapping:
kind: ethereum/events
apiVersion: 0.0.7
language: wasm/assemblyscript
entities:
- CoolerLoan
# Event records
- RequestLoanEvent
- RescindLoanRequestEvent
- ClearLoanRequestEvent
- ClaimDefaultedLoanEvent
- RepayLoanEvent
- ExtendLoanEvent
abis:
- name: CoolerFactory
file: ./abis/CoolerFactory.json
- name: Cooler
file: ./abis/Cooler.json
- name: Clearinghouse
file: ./abis/Clearinghouse.json
- name: ERC20
file: ./abis/ERC20.json
- name: gOHM
file: ./abis/gOHM.json
- name: ERC4626
file: ./abis/ERC4626.json
- name: BophadesKernel
file: ./abis/BophadesKernel.json
- name: TRSRY
file: ./abis/TRSRYv1.json
- name: ChainlinkPriceFeed
file: ./abis/ChainlinkPriceFeed.json
eventHandlers:
- event: RequestLoan(indexed address,address,address,uint256)
handler: handleRequest
- event: RescindRequest(indexed address,uint256)
handler: handleRescindRequest
- event: ClearRequest(indexed address,uint256,uint256)
handler: handleClearRequest
- event: DefaultLoan(indexed address,uint256,uint256)
handler: handleDefaultLoan
- event: RepayLoan(indexed address,uint256,uint256)
handler: handleRepayLoan
- event: ExtendLoan(indexed address,uint256,uint8)
handler: handleExtendLoan
file: ./src/cooler-factory.ts