defi-state-querier 0.0.6__py3-none-any.whl → 0.0.9__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- defi_services/__init__.py +1 -1
- defi_services/abis/lending/morpho/__init__.py +0 -0
- defi_services/abis/lending/morpho/morpho_aave_v2_comptroller_abi.py +2301 -0
- defi_services/abis/lending/morpho/morpho_aave_v2_lens_abi.py +1208 -0
- defi_services/abis/lending/morpho/morpho_aave_v3_comptroller_abi.py +2994 -0
- defi_services/abis/lending/morpho/morpho_compound_comptroller_abi.py +2301 -0
- defi_services/abis/lending/morpho/morpho_compound_lens_abi.py +1402 -0
- defi_services/abis/lending/morpho/morpho_compound_reward_manager_abi.py +307 -0
- defi_services/abis/lending/radiant_v2/__init__.py +0 -0
- defi_services/abis/lending/radiant_v2/radiant_v2_incentive_abi.py +1016 -0
- defi_services/abis/lending/wepiggy/__init__.py +0 -0
- defi_services/abis/lending/wepiggy/wepiggy_distribution_abi.py +1047 -0
- defi_services/constants/chain_constant.py +1 -0
- defi_services/constants/entities/lending_constant.py +26 -0
- defi_services/constants/entities/lending_services.py +85 -0
- defi_services/constants/query_constant.py +1 -0
- defi_services/constants/token_constant.py +2 -0
- defi_services/jobs/processors/__init__.py +0 -0
- defi_services/jobs/processors/solana_state_processor.py +101 -0
- defi_services/jobs/{state_processor.py → processors/state_processor.py} +9 -4
- defi_services/jobs/processors/substrate_state_processor.py +97 -0
- defi_services/jobs/queriers/__init__.py +0 -0
- defi_services/jobs/queriers/solana_state_querier.py +83 -0
- defi_services/jobs/{state_querier.py → queriers/state_querier.py} +3 -2
- defi_services/jobs/queriers/substrate_state_querier.py +84 -0
- defi_services/services/lending/aave_v2_services.py +8 -7
- defi_services/services/lending/aave_v3_services.py +12 -9
- defi_services/services/lending/compound_service.py +29 -10
- defi_services/services/lending/cream_services.py +5 -4
- defi_services/services/lending/flux_services.py +34 -27
- defi_services/services/lending/geist_services.py +4 -3
- defi_services/services/lending/granary_v1_services.py +6 -7
- defi_services/services/lending/iron_bank_service.py +20 -13
- defi_services/services/lending/lending_info/aave_v2_services.py +2 -2
- defi_services/services/lending/lending_info/ethereum/morpho_aave_v2_eth.py +53 -0
- defi_services/services/lending/lending_info/ethereum/morpho_aave_v3_eth.py +51 -0
- defi_services/services/lending/lending_info/ethereum/morpho_compound_eth.py +44 -0
- defi_services/services/lending/lending_info/ethereum/wepiggy_eth.py +41 -0
- defi_services/services/lending/liqee_service.py +5 -26
- defi_services/services/lending/morpho_aave_v2_services.py +89 -0
- defi_services/services/lending/morpho_aave_v3_services.py +159 -0
- defi_services/services/lending/morpho_compound_services.py +233 -0
- defi_services/services/lending/onyx_service.py +32 -13
- defi_services/services/lending/radiant_v2_services.py +30 -3
- defi_services/services/lending/strike_service.py +29 -10
- defi_services/services/lending/trava_services.py +8 -7
- defi_services/services/lending/uwu_services.py +8 -7
- defi_services/services/lending/valas_services.py +6 -5
- defi_services/services/lending/venus_services.py +28 -8
- defi_services/services/lending/wepiggy_services.py +519 -0
- defi_services/services/nft_services.py +1 -1
- defi_services/services/solana_token_services.py +46 -0
- defi_services/services/substrate_token_services.py +70 -0
- defi_services/services/token_services.py +1 -3
- defi_services/utils/init_services.py +3 -3
- {defi_state_querier-0.0.6.dist-info → defi_state_querier-0.0.9.dist-info}/METADATA +3 -3
- {defi_state_querier-0.0.6.dist-info → defi_state_querier-0.0.9.dist-info}/RECORD +60 -32
- defi_services/constants/entities/lending.py +0 -97
- {defi_state_querier-0.0.6.dist-info → defi_state_querier-0.0.9.dist-info}/LICENSE +0 -0
- {defi_state_querier-0.0.6.dist-info → defi_state_querier-0.0.9.dist-info}/WHEEL +0 -0
- {defi_state_querier-0.0.6.dist-info → defi_state_querier-0.0.9.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,307 @@
|
|
1
|
+
import json
|
2
|
+
|
3
|
+
MORPHO_COMPOUND_REWARD_MANAGER_ABI = json.loads('''
|
4
|
+
[
|
5
|
+
{
|
6
|
+
"inputs": [],
|
7
|
+
"stateMutability": "nonpayable",
|
8
|
+
"type": "constructor"
|
9
|
+
},
|
10
|
+
{
|
11
|
+
"inputs": [],
|
12
|
+
"name": "InvalidCToken",
|
13
|
+
"type": "error"
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"inputs": [],
|
17
|
+
"name": "OnlyMorpho",
|
18
|
+
"type": "error"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"inputs": [
|
22
|
+
{
|
23
|
+
"internalType": "address",
|
24
|
+
"name": "_user",
|
25
|
+
"type": "address"
|
26
|
+
},
|
27
|
+
{
|
28
|
+
"internalType": "address",
|
29
|
+
"name": "_poolToken",
|
30
|
+
"type": "address"
|
31
|
+
},
|
32
|
+
{
|
33
|
+
"internalType": "uint256",
|
34
|
+
"name": "_userBalance",
|
35
|
+
"type": "uint256"
|
36
|
+
}
|
37
|
+
],
|
38
|
+
"name": "accrueUserBorrowUnclaimedRewards",
|
39
|
+
"outputs": [],
|
40
|
+
"stateMutability": "nonpayable",
|
41
|
+
"type": "function"
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"inputs": [
|
45
|
+
{
|
46
|
+
"internalType": "address",
|
47
|
+
"name": "_user",
|
48
|
+
"type": "address"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"internalType": "address",
|
52
|
+
"name": "_poolToken",
|
53
|
+
"type": "address"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"internalType": "uint256",
|
57
|
+
"name": "_userBalance",
|
58
|
+
"type": "uint256"
|
59
|
+
}
|
60
|
+
],
|
61
|
+
"name": "accrueUserSupplyUnclaimedRewards",
|
62
|
+
"outputs": [],
|
63
|
+
"stateMutability": "nonpayable",
|
64
|
+
"type": "function"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"inputs": [
|
68
|
+
{
|
69
|
+
"internalType": "address[]",
|
70
|
+
"name": "_poolTokens",
|
71
|
+
"type": "address[]"
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"internalType": "address",
|
75
|
+
"name": "_user",
|
76
|
+
"type": "address"
|
77
|
+
}
|
78
|
+
],
|
79
|
+
"name": "claimRewards",
|
80
|
+
"outputs": [
|
81
|
+
{
|
82
|
+
"internalType": "uint256",
|
83
|
+
"name": "totalUnclaimedRewards",
|
84
|
+
"type": "uint256"
|
85
|
+
}
|
86
|
+
],
|
87
|
+
"stateMutability": "nonpayable",
|
88
|
+
"type": "function"
|
89
|
+
},
|
90
|
+
{
|
91
|
+
"inputs": [
|
92
|
+
{
|
93
|
+
"internalType": "address",
|
94
|
+
"name": "",
|
95
|
+
"type": "address"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"internalType": "address",
|
99
|
+
"name": "",
|
100
|
+
"type": "address"
|
101
|
+
}
|
102
|
+
],
|
103
|
+
"name": "compBorrowerIndex",
|
104
|
+
"outputs": [
|
105
|
+
{
|
106
|
+
"internalType": "uint256",
|
107
|
+
"name": "",
|
108
|
+
"type": "uint256"
|
109
|
+
}
|
110
|
+
],
|
111
|
+
"stateMutability": "view",
|
112
|
+
"type": "function"
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"inputs": [
|
116
|
+
{
|
117
|
+
"internalType": "address",
|
118
|
+
"name": "",
|
119
|
+
"type": "address"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"internalType": "address",
|
123
|
+
"name": "",
|
124
|
+
"type": "address"
|
125
|
+
}
|
126
|
+
],
|
127
|
+
"name": "compSupplierIndex",
|
128
|
+
"outputs": [
|
129
|
+
{
|
130
|
+
"internalType": "uint256",
|
131
|
+
"name": "",
|
132
|
+
"type": "uint256"
|
133
|
+
}
|
134
|
+
],
|
135
|
+
"stateMutability": "view",
|
136
|
+
"type": "function"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"inputs": [],
|
140
|
+
"name": "comptroller",
|
141
|
+
"outputs": [
|
142
|
+
{
|
143
|
+
"internalType": "contract IComptroller",
|
144
|
+
"name": "",
|
145
|
+
"type": "address"
|
146
|
+
}
|
147
|
+
],
|
148
|
+
"stateMutability": "view",
|
149
|
+
"type": "function"
|
150
|
+
},
|
151
|
+
{
|
152
|
+
"inputs": [
|
153
|
+
{
|
154
|
+
"internalType": "address",
|
155
|
+
"name": "_poolToken",
|
156
|
+
"type": "address"
|
157
|
+
}
|
158
|
+
],
|
159
|
+
"name": "getLocalCompBorrowState",
|
160
|
+
"outputs": [
|
161
|
+
{
|
162
|
+
"components": [
|
163
|
+
{
|
164
|
+
"internalType": "uint224",
|
165
|
+
"name": "index",
|
166
|
+
"type": "uint224"
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"internalType": "uint32",
|
170
|
+
"name": "block",
|
171
|
+
"type": "uint32"
|
172
|
+
}
|
173
|
+
],
|
174
|
+
"internalType": "struct IComptroller.CompMarketState",
|
175
|
+
"name": "",
|
176
|
+
"type": "tuple"
|
177
|
+
}
|
178
|
+
],
|
179
|
+
"stateMutability": "view",
|
180
|
+
"type": "function"
|
181
|
+
},
|
182
|
+
{
|
183
|
+
"inputs": [
|
184
|
+
{
|
185
|
+
"internalType": "address",
|
186
|
+
"name": "_poolToken",
|
187
|
+
"type": "address"
|
188
|
+
}
|
189
|
+
],
|
190
|
+
"name": "getLocalCompSupplyState",
|
191
|
+
"outputs": [
|
192
|
+
{
|
193
|
+
"components": [
|
194
|
+
{
|
195
|
+
"internalType": "uint224",
|
196
|
+
"name": "index",
|
197
|
+
"type": "uint224"
|
198
|
+
},
|
199
|
+
{
|
200
|
+
"internalType": "uint32",
|
201
|
+
"name": "block",
|
202
|
+
"type": "uint32"
|
203
|
+
}
|
204
|
+
],
|
205
|
+
"internalType": "struct IComptroller.CompMarketState",
|
206
|
+
"name": "",
|
207
|
+
"type": "tuple"
|
208
|
+
}
|
209
|
+
],
|
210
|
+
"stateMutability": "view",
|
211
|
+
"type": "function"
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"inputs": [
|
215
|
+
{
|
216
|
+
"internalType": "address",
|
217
|
+
"name": "_morpho",
|
218
|
+
"type": "address"
|
219
|
+
}
|
220
|
+
],
|
221
|
+
"name": "initialize",
|
222
|
+
"outputs": [],
|
223
|
+
"stateMutability": "nonpayable",
|
224
|
+
"type": "function"
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"inputs": [
|
228
|
+
{
|
229
|
+
"internalType": "address",
|
230
|
+
"name": "",
|
231
|
+
"type": "address"
|
232
|
+
}
|
233
|
+
],
|
234
|
+
"name": "localCompBorrowState",
|
235
|
+
"outputs": [
|
236
|
+
{
|
237
|
+
"internalType": "uint224",
|
238
|
+
"name": "index",
|
239
|
+
"type": "uint224"
|
240
|
+
},
|
241
|
+
{
|
242
|
+
"internalType": "uint32",
|
243
|
+
"name": "block",
|
244
|
+
"type": "uint32"
|
245
|
+
}
|
246
|
+
],
|
247
|
+
"stateMutability": "view",
|
248
|
+
"type": "function"
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"inputs": [
|
252
|
+
{
|
253
|
+
"internalType": "address",
|
254
|
+
"name": "",
|
255
|
+
"type": "address"
|
256
|
+
}
|
257
|
+
],
|
258
|
+
"name": "localCompSupplyState",
|
259
|
+
"outputs": [
|
260
|
+
{
|
261
|
+
"internalType": "uint224",
|
262
|
+
"name": "index",
|
263
|
+
"type": "uint224"
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"internalType": "uint32",
|
267
|
+
"name": "block",
|
268
|
+
"type": "uint32"
|
269
|
+
}
|
270
|
+
],
|
271
|
+
"stateMutability": "view",
|
272
|
+
"type": "function"
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"inputs": [],
|
276
|
+
"name": "morpho",
|
277
|
+
"outputs": [
|
278
|
+
{
|
279
|
+
"internalType": "contract IMorpho",
|
280
|
+
"name": "",
|
281
|
+
"type": "address"
|
282
|
+
}
|
283
|
+
],
|
284
|
+
"stateMutability": "view",
|
285
|
+
"type": "function"
|
286
|
+
},
|
287
|
+
{
|
288
|
+
"inputs": [
|
289
|
+
{
|
290
|
+
"internalType": "address",
|
291
|
+
"name": "",
|
292
|
+
"type": "address"
|
293
|
+
}
|
294
|
+
],
|
295
|
+
"name": "userUnclaimedCompRewards",
|
296
|
+
"outputs": [
|
297
|
+
{
|
298
|
+
"internalType": "uint256",
|
299
|
+
"name": "",
|
300
|
+
"type": "uint256"
|
301
|
+
}
|
302
|
+
],
|
303
|
+
"stateMutability": "view",
|
304
|
+
"type": "function"
|
305
|
+
}
|
306
|
+
]
|
307
|
+
''')
|
File without changes
|