defi-state-querier 0.0.9__py3-none-any.whl → 0.1.1__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. defi_services/__init__.py +1 -1
  2. defi_services/abis/lending/apeswape/__init__.py +0 -0
  3. defi_services/abis/lending/apeswape/apeswap_comptroller_abi.py +2235 -0
  4. defi_services/abis/lending/apeswape/apeswap_lens_abi.py +747 -0
  5. defi_services/abis/lending/apeswape/apswap_ctoken_abi.py +1485 -0
  6. defi_services/abis/lending/wepiggy/wepiggy_comptroller_abi.py +1684 -0
  7. defi_services/abis/lending/wepiggy/wepiggy_distribution_abi.py +959 -1041
  8. defi_services/abis/lending/wepiggy/wepiggy_lens_abi.py +1098 -0
  9. defi_services/constants/entities/lending_constant.py +3 -1
  10. defi_services/constants/entities/lending_services.py +28 -13
  11. defi_services/services/lending/apeswap_services.py +88 -0
  12. defi_services/services/lending/compound_service.py +1 -0
  13. defi_services/services/lending/{granary_v1_services.py → granary_services.py} +38 -18
  14. defi_services/services/lending/iron_bank_service.py +5 -1
  15. defi_services/services/lending/lending_info/arbitrum/granary_arbitrum.py +67 -0
  16. defi_services/services/lending/lending_info/arbitrum/wepiggy_arbitrum.py +36 -0
  17. defi_services/services/lending/lending_info/avalanche/granary_avalanche.py +55 -0
  18. defi_services/services/lending/lending_info/avalanche/iron_bank_avalanche.py +55 -0
  19. defi_services/services/lending/lending_info/bsc/apeswap_bsc.py +52 -0
  20. defi_services/services/lending/lending_info/bsc/granary_bsc.py +49 -0
  21. defi_services/services/lending/lending_info/bsc/liqee_bsc.py +85 -0
  22. defi_services/services/lending/lending_info/bsc/wepiggy_bsc.py +76 -0
  23. defi_services/services/lending/lending_info/ethereum/{granary_v1_eth.py → granary_eth.py} +1 -1
  24. defi_services/services/lending/lending_info/ethereum/iron_bank_eth.py +0 -1
  25. defi_services/services/lending/lending_info/ethereum/spark_eth.py +41 -94
  26. defi_services/services/lending/lending_info/ethereum/wepiggy_eth.py +18 -7
  27. defi_services/services/lending/lending_info/fantom/granary_ftm.py +67 -0
  28. defi_services/services/lending/lending_info/optimism/granary_optimism.py +84 -0
  29. defi_services/services/lending/lending_info/optimism/iron_bank_optimism.py +43 -0
  30. defi_services/services/lending/lending_info/optimism/wepiggy_optimism.py +40 -0
  31. defi_services/services/lending/lending_info/polygon/wepiggy_polygon.py +52 -0
  32. defi_services/services/lending/liqee_service.py +5 -3
  33. defi_services/services/lending/morpho_aave_v2_services.py +2 -2
  34. defi_services/services/lending/morpho_aave_v3_services.py +2 -2
  35. defi_services/services/lending/morpho_compound_services.py +1 -1
  36. defi_services/services/lending/spark_services.py +32 -0
  37. defi_services/services/lending/wepiggy_services.py +26 -237
  38. {defi_state_querier-0.0.9.dist-info → defi_state_querier-0.1.1.dist-info}/METADATA +1 -1
  39. {defi_state_querier-0.0.9.dist-info → defi_state_querier-0.1.1.dist-info}/RECORD +42 -21
  40. {defi_state_querier-0.0.9.dist-info → defi_state_querier-0.1.1.dist-info}/LICENSE +0 -0
  41. {defi_state_querier-0.0.9.dist-info → defi_state_querier-0.1.1.dist-info}/WHEEL +0 -0
  42. {defi_state_querier-0.0.9.dist-info → defi_state_querier-0.1.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,1684 @@
1
+ import json
2
+
3
+ WEPIGGY_COMPTROLLER_ABI = json.loads('''
4
+ [
5
+ {
6
+ "anonymous": false,
7
+ "inputs": [
8
+ {
9
+ "indexed": false,
10
+ "internalType": "string",
11
+ "name": "action",
12
+ "type": "string"
13
+ },
14
+ {
15
+ "indexed": false,
16
+ "internalType": "bool",
17
+ "name": "pauseState",
18
+ "type": "bool"
19
+ }
20
+ ],
21
+ "name": "ActionPaused",
22
+ "type": "event"
23
+ },
24
+ {
25
+ "anonymous": false,
26
+ "inputs": [
27
+ {
28
+ "indexed": false,
29
+ "internalType": "contract PToken",
30
+ "name": "pToken",
31
+ "type": "address"
32
+ },
33
+ {
34
+ "indexed": false,
35
+ "internalType": "string",
36
+ "name": "action",
37
+ "type": "string"
38
+ },
39
+ {
40
+ "indexed": false,
41
+ "internalType": "bool",
42
+ "name": "pauseState",
43
+ "type": "bool"
44
+ }
45
+ ],
46
+ "name": "ActionPaused",
47
+ "type": "event"
48
+ },
49
+ {
50
+ "anonymous": false,
51
+ "inputs": [
52
+ {
53
+ "indexed": false,
54
+ "internalType": "uint256",
55
+ "name": "error",
56
+ "type": "uint256"
57
+ },
58
+ {
59
+ "indexed": false,
60
+ "internalType": "uint256",
61
+ "name": "info",
62
+ "type": "uint256"
63
+ },
64
+ {
65
+ "indexed": false,
66
+ "internalType": "uint256",
67
+ "name": "detail",
68
+ "type": "uint256"
69
+ }
70
+ ],
71
+ "name": "Failure",
72
+ "type": "event"
73
+ },
74
+ {
75
+ "anonymous": false,
76
+ "inputs": [
77
+ {
78
+ "indexed": false,
79
+ "internalType": "contract PToken",
80
+ "name": "pToken",
81
+ "type": "address"
82
+ },
83
+ {
84
+ "indexed": false,
85
+ "internalType": "address",
86
+ "name": "account",
87
+ "type": "address"
88
+ }
89
+ ],
90
+ "name": "MarketEntered",
91
+ "type": "event"
92
+ },
93
+ {
94
+ "anonymous": false,
95
+ "inputs": [
96
+ {
97
+ "indexed": false,
98
+ "internalType": "contract PToken",
99
+ "name": "pToken",
100
+ "type": "address"
101
+ },
102
+ {
103
+ "indexed": false,
104
+ "internalType": "address",
105
+ "name": "account",
106
+ "type": "address"
107
+ }
108
+ ],
109
+ "name": "MarketExited",
110
+ "type": "event"
111
+ },
112
+ {
113
+ "anonymous": false,
114
+ "inputs": [
115
+ {
116
+ "indexed": false,
117
+ "internalType": "contract PToken",
118
+ "name": "pToken",
119
+ "type": "address"
120
+ }
121
+ ],
122
+ "name": "MarketListed",
123
+ "type": "event"
124
+ },
125
+ {
126
+ "anonymous": false,
127
+ "inputs": [
128
+ {
129
+ "indexed": true,
130
+ "internalType": "contract PToken",
131
+ "name": "pToken",
132
+ "type": "address"
133
+ },
134
+ {
135
+ "indexed": false,
136
+ "internalType": "uint256",
137
+ "name": "newBorrowCap",
138
+ "type": "uint256"
139
+ }
140
+ ],
141
+ "name": "NewBorrowCap",
142
+ "type": "event"
143
+ },
144
+ {
145
+ "anonymous": false,
146
+ "inputs": [
147
+ {
148
+ "indexed": false,
149
+ "internalType": "address",
150
+ "name": "oldBorrowCapGuardian",
151
+ "type": "address"
152
+ },
153
+ {
154
+ "indexed": false,
155
+ "internalType": "address",
156
+ "name": "newBorrowCapGuardian",
157
+ "type": "address"
158
+ }
159
+ ],
160
+ "name": "NewBorrowCapGuardian",
161
+ "type": "event"
162
+ },
163
+ {
164
+ "anonymous": false,
165
+ "inputs": [
166
+ {
167
+ "indexed": false,
168
+ "internalType": "uint256",
169
+ "name": "oldCloseFactorMantissa",
170
+ "type": "uint256"
171
+ },
172
+ {
173
+ "indexed": false,
174
+ "internalType": "uint256",
175
+ "name": "newCloseFactorMantissa",
176
+ "type": "uint256"
177
+ }
178
+ ],
179
+ "name": "NewCloseFactor",
180
+ "type": "event"
181
+ },
182
+ {
183
+ "anonymous": false,
184
+ "inputs": [
185
+ {
186
+ "indexed": false,
187
+ "internalType": "contract PToken",
188
+ "name": "pToken",
189
+ "type": "address"
190
+ },
191
+ {
192
+ "indexed": false,
193
+ "internalType": "uint256",
194
+ "name": "oldCollateralFactorMantissa",
195
+ "type": "uint256"
196
+ },
197
+ {
198
+ "indexed": false,
199
+ "internalType": "uint256",
200
+ "name": "newCollateralFactorMantissa",
201
+ "type": "uint256"
202
+ }
203
+ ],
204
+ "name": "NewCollateralFactor",
205
+ "type": "event"
206
+ },
207
+ {
208
+ "anonymous": false,
209
+ "inputs": [
210
+ {
211
+ "indexed": false,
212
+ "internalType": "uint256",
213
+ "name": "oldLiquidationIncentiveMantissa",
214
+ "type": "uint256"
215
+ },
216
+ {
217
+ "indexed": false,
218
+ "internalType": "uint256",
219
+ "name": "newLiquidationIncentiveMantissa",
220
+ "type": "uint256"
221
+ }
222
+ ],
223
+ "name": "NewLiquidationIncentive",
224
+ "type": "event"
225
+ },
226
+ {
227
+ "anonymous": false,
228
+ "inputs": [
229
+ {
230
+ "indexed": false,
231
+ "internalType": "uint256",
232
+ "name": "oldMaxAssets",
233
+ "type": "uint256"
234
+ },
235
+ {
236
+ "indexed": false,
237
+ "internalType": "uint256",
238
+ "name": "newMaxAssets",
239
+ "type": "uint256"
240
+ }
241
+ ],
242
+ "name": "NewMaxAssets",
243
+ "type": "event"
244
+ },
245
+ {
246
+ "anonymous": false,
247
+ "inputs": [
248
+ {
249
+ "indexed": true,
250
+ "internalType": "contract PToken",
251
+ "name": "pToken",
252
+ "type": "address"
253
+ },
254
+ {
255
+ "indexed": false,
256
+ "internalType": "uint256",
257
+ "name": "newMintCap",
258
+ "type": "uint256"
259
+ }
260
+ ],
261
+ "name": "NewMintCap",
262
+ "type": "event"
263
+ },
264
+ {
265
+ "anonymous": false,
266
+ "inputs": [
267
+ {
268
+ "indexed": false,
269
+ "internalType": "address",
270
+ "name": "oldPauseGuardian",
271
+ "type": "address"
272
+ },
273
+ {
274
+ "indexed": false,
275
+ "internalType": "address",
276
+ "name": "newPauseGuardian",
277
+ "type": "address"
278
+ }
279
+ ],
280
+ "name": "NewPauseGuardian",
281
+ "type": "event"
282
+ },
283
+ {
284
+ "anonymous": false,
285
+ "inputs": [
286
+ {
287
+ "indexed": false,
288
+ "internalType": "contract IPiggyDistribution",
289
+ "name": "oldPiggyDistribution",
290
+ "type": "address"
291
+ },
292
+ {
293
+ "indexed": false,
294
+ "internalType": "contract IPiggyDistribution",
295
+ "name": "newPiggyDistribution",
296
+ "type": "address"
297
+ }
298
+ ],
299
+ "name": "NewPiggyDistribution",
300
+ "type": "event"
301
+ },
302
+ {
303
+ "anonymous": false,
304
+ "inputs": [
305
+ {
306
+ "indexed": false,
307
+ "internalType": "contract IPriceOracle",
308
+ "name": "oldPriceOracle",
309
+ "type": "address"
310
+ },
311
+ {
312
+ "indexed": false,
313
+ "internalType": "contract IPriceOracle",
314
+ "name": "newPriceOracle",
315
+ "type": "address"
316
+ }
317
+ ],
318
+ "name": "NewPriceOracle",
319
+ "type": "event"
320
+ },
321
+ {
322
+ "anonymous": false,
323
+ "inputs": [
324
+ {
325
+ "indexed": true,
326
+ "internalType": "address",
327
+ "name": "previousOwner",
328
+ "type": "address"
329
+ },
330
+ {
331
+ "indexed": true,
332
+ "internalType": "address",
333
+ "name": "newOwner",
334
+ "type": "address"
335
+ }
336
+ ],
337
+ "name": "OwnershipTransferred",
338
+ "type": "event"
339
+ },
340
+ {
341
+ "inputs": [],
342
+ "name": "_borrowGuardianPaused",
343
+ "outputs": [
344
+ {
345
+ "internalType": "bool",
346
+ "name": "",
347
+ "type": "bool"
348
+ }
349
+ ],
350
+ "stateMutability": "view",
351
+ "type": "function"
352
+ },
353
+ {
354
+ "inputs": [],
355
+ "name": "_mintGuardianPaused",
356
+ "outputs": [
357
+ {
358
+ "internalType": "bool",
359
+ "name": "",
360
+ "type": "bool"
361
+ }
362
+ ],
363
+ "stateMutability": "view",
364
+ "type": "function"
365
+ },
366
+ {
367
+ "inputs": [
368
+ {
369
+ "internalType": "address",
370
+ "name": "newBorrowCapGuardian",
371
+ "type": "address"
372
+ }
373
+ ],
374
+ "name": "_setBorrowCapGuardian",
375
+ "outputs": [],
376
+ "stateMutability": "nonpayable",
377
+ "type": "function"
378
+ },
379
+ {
380
+ "inputs": [
381
+ {
382
+ "internalType": "contract PToken",
383
+ "name": "pToken",
384
+ "type": "address"
385
+ },
386
+ {
387
+ "internalType": "bool",
388
+ "name": "state",
389
+ "type": "bool"
390
+ }
391
+ ],
392
+ "name": "_setBorrowPaused",
393
+ "outputs": [
394
+ {
395
+ "internalType": "bool",
396
+ "name": "",
397
+ "type": "bool"
398
+ }
399
+ ],
400
+ "stateMutability": "nonpayable",
401
+ "type": "function"
402
+ },
403
+ {
404
+ "inputs": [
405
+ {
406
+ "internalType": "uint256",
407
+ "name": "newCloseFactorMantissa",
408
+ "type": "uint256"
409
+ }
410
+ ],
411
+ "name": "_setCloseFactor",
412
+ "outputs": [
413
+ {
414
+ "internalType": "uint256",
415
+ "name": "",
416
+ "type": "uint256"
417
+ }
418
+ ],
419
+ "stateMutability": "nonpayable",
420
+ "type": "function"
421
+ },
422
+ {
423
+ "inputs": [
424
+ {
425
+ "internalType": "contract PToken",
426
+ "name": "pToken",
427
+ "type": "address"
428
+ },
429
+ {
430
+ "internalType": "uint256",
431
+ "name": "newCollateralFactorMantissa",
432
+ "type": "uint256"
433
+ }
434
+ ],
435
+ "name": "_setCollateralFactor",
436
+ "outputs": [
437
+ {
438
+ "internalType": "uint256",
439
+ "name": "",
440
+ "type": "uint256"
441
+ }
442
+ ],
443
+ "stateMutability": "nonpayable",
444
+ "type": "function"
445
+ },
446
+ {
447
+ "inputs": [
448
+ {
449
+ "internalType": "bool",
450
+ "name": "state",
451
+ "type": "bool"
452
+ }
453
+ ],
454
+ "name": "_setDistributeWpcPaused",
455
+ "outputs": [
456
+ {
457
+ "internalType": "bool",
458
+ "name": "",
459
+ "type": "bool"
460
+ }
461
+ ],
462
+ "stateMutability": "nonpayable",
463
+ "type": "function"
464
+ },
465
+ {
466
+ "inputs": [
467
+ {
468
+ "internalType": "uint256",
469
+ "name": "newLiquidationIncentiveMantissa",
470
+ "type": "uint256"
471
+ }
472
+ ],
473
+ "name": "_setLiquidationIncentive",
474
+ "outputs": [
475
+ {
476
+ "internalType": "uint256",
477
+ "name": "",
478
+ "type": "uint256"
479
+ }
480
+ ],
481
+ "stateMutability": "nonpayable",
482
+ "type": "function"
483
+ },
484
+ {
485
+ "inputs": [
486
+ {
487
+ "internalType": "contract PToken[]",
488
+ "name": "pTokens",
489
+ "type": "address[]"
490
+ },
491
+ {
492
+ "internalType": "uint256[]",
493
+ "name": "newBorrowCaps",
494
+ "type": "uint256[]"
495
+ }
496
+ ],
497
+ "name": "_setMarketBorrowCaps",
498
+ "outputs": [],
499
+ "stateMutability": "nonpayable",
500
+ "type": "function"
501
+ },
502
+ {
503
+ "inputs": [
504
+ {
505
+ "internalType": "contract PToken[]",
506
+ "name": "pTokens",
507
+ "type": "address[]"
508
+ },
509
+ {
510
+ "internalType": "uint256[]",
511
+ "name": "newMintCaps",
512
+ "type": "uint256[]"
513
+ }
514
+ ],
515
+ "name": "_setMarketMintCaps",
516
+ "outputs": [],
517
+ "stateMutability": "nonpayable",
518
+ "type": "function"
519
+ },
520
+ {
521
+ "inputs": [
522
+ {
523
+ "internalType": "address",
524
+ "name": "pToken",
525
+ "type": "address"
526
+ },
527
+ {
528
+ "internalType": "bool",
529
+ "name": "status",
530
+ "type": "bool"
531
+ }
532
+ ],
533
+ "name": "_setMarketMinted",
534
+ "outputs": [],
535
+ "stateMutability": "nonpayable",
536
+ "type": "function"
537
+ },
538
+ {
539
+ "inputs": [
540
+ {
541
+ "internalType": "uint256",
542
+ "name": "newMaxAssets",
543
+ "type": "uint256"
544
+ }
545
+ ],
546
+ "name": "_setMaxAssets",
547
+ "outputs": [
548
+ {
549
+ "internalType": "uint256",
550
+ "name": "",
551
+ "type": "uint256"
552
+ }
553
+ ],
554
+ "stateMutability": "nonpayable",
555
+ "type": "function"
556
+ },
557
+ {
558
+ "inputs": [
559
+ {
560
+ "internalType": "contract PToken",
561
+ "name": "pToken",
562
+ "type": "address"
563
+ },
564
+ {
565
+ "internalType": "bool",
566
+ "name": "state",
567
+ "type": "bool"
568
+ }
569
+ ],
570
+ "name": "_setMintPaused",
571
+ "outputs": [
572
+ {
573
+ "internalType": "bool",
574
+ "name": "",
575
+ "type": "bool"
576
+ }
577
+ ],
578
+ "stateMutability": "nonpayable",
579
+ "type": "function"
580
+ },
581
+ {
582
+ "inputs": [
583
+ {
584
+ "internalType": "address",
585
+ "name": "newPauseGuardian",
586
+ "type": "address"
587
+ }
588
+ ],
589
+ "name": "_setPauseGuardian",
590
+ "outputs": [
591
+ {
592
+ "internalType": "uint256",
593
+ "name": "",
594
+ "type": "uint256"
595
+ }
596
+ ],
597
+ "stateMutability": "nonpayable",
598
+ "type": "function"
599
+ },
600
+ {
601
+ "inputs": [
602
+ {
603
+ "internalType": "contract IPiggyDistribution",
604
+ "name": "newPiggyDistribution",
605
+ "type": "address"
606
+ }
607
+ ],
608
+ "name": "_setPiggyDistribution",
609
+ "outputs": [
610
+ {
611
+ "internalType": "uint256",
612
+ "name": "",
613
+ "type": "uint256"
614
+ }
615
+ ],
616
+ "stateMutability": "nonpayable",
617
+ "type": "function"
618
+ },
619
+ {
620
+ "inputs": [
621
+ {
622
+ "internalType": "contract IPriceOracle",
623
+ "name": "newOracle",
624
+ "type": "address"
625
+ }
626
+ ],
627
+ "name": "_setPriceOracle",
628
+ "outputs": [
629
+ {
630
+ "internalType": "uint256",
631
+ "name": "",
632
+ "type": "uint256"
633
+ }
634
+ ],
635
+ "stateMutability": "nonpayable",
636
+ "type": "function"
637
+ },
638
+ {
639
+ "inputs": [
640
+ {
641
+ "internalType": "bool",
642
+ "name": "state",
643
+ "type": "bool"
644
+ }
645
+ ],
646
+ "name": "_setSeizePaused",
647
+ "outputs": [
648
+ {
649
+ "internalType": "bool",
650
+ "name": "",
651
+ "type": "bool"
652
+ }
653
+ ],
654
+ "stateMutability": "nonpayable",
655
+ "type": "function"
656
+ },
657
+ {
658
+ "inputs": [
659
+ {
660
+ "internalType": "bool",
661
+ "name": "state",
662
+ "type": "bool"
663
+ }
664
+ ],
665
+ "name": "_setTransferPaused",
666
+ "outputs": [
667
+ {
668
+ "internalType": "bool",
669
+ "name": "",
670
+ "type": "bool"
671
+ }
672
+ ],
673
+ "stateMutability": "nonpayable",
674
+ "type": "function"
675
+ },
676
+ {
677
+ "inputs": [
678
+ {
679
+ "internalType": "contract PToken",
680
+ "name": "pToken",
681
+ "type": "address"
682
+ }
683
+ ],
684
+ "name": "_supportMarket",
685
+ "outputs": [
686
+ {
687
+ "internalType": "uint256",
688
+ "name": "",
689
+ "type": "uint256"
690
+ }
691
+ ],
692
+ "stateMutability": "nonpayable",
693
+ "type": "function"
694
+ },
695
+ {
696
+ "inputs": [
697
+ {
698
+ "internalType": "address",
699
+ "name": "",
700
+ "type": "address"
701
+ },
702
+ {
703
+ "internalType": "uint256",
704
+ "name": "",
705
+ "type": "uint256"
706
+ }
707
+ ],
708
+ "name": "accountAssets",
709
+ "outputs": [
710
+ {
711
+ "internalType": "contract PToken",
712
+ "name": "",
713
+ "type": "address"
714
+ }
715
+ ],
716
+ "stateMutability": "view",
717
+ "type": "function"
718
+ },
719
+ {
720
+ "inputs": [
721
+ {
722
+ "internalType": "uint256",
723
+ "name": "",
724
+ "type": "uint256"
725
+ }
726
+ ],
727
+ "name": "allMarkets",
728
+ "outputs": [
729
+ {
730
+ "internalType": "contract PToken",
731
+ "name": "",
732
+ "type": "address"
733
+ }
734
+ ],
735
+ "stateMutability": "view",
736
+ "type": "function"
737
+ },
738
+ {
739
+ "inputs": [
740
+ {
741
+ "internalType": "address",
742
+ "name": "pToken",
743
+ "type": "address"
744
+ },
745
+ {
746
+ "internalType": "address",
747
+ "name": "borrower",
748
+ "type": "address"
749
+ },
750
+ {
751
+ "internalType": "uint256",
752
+ "name": "borrowAmount",
753
+ "type": "uint256"
754
+ }
755
+ ],
756
+ "name": "borrowAllowed",
757
+ "outputs": [
758
+ {
759
+ "internalType": "uint256",
760
+ "name": "",
761
+ "type": "uint256"
762
+ }
763
+ ],
764
+ "stateMutability": "nonpayable",
765
+ "type": "function"
766
+ },
767
+ {
768
+ "inputs": [],
769
+ "name": "borrowCapGuardian",
770
+ "outputs": [
771
+ {
772
+ "internalType": "address",
773
+ "name": "",
774
+ "type": "address"
775
+ }
776
+ ],
777
+ "stateMutability": "view",
778
+ "type": "function"
779
+ },
780
+ {
781
+ "inputs": [
782
+ {
783
+ "internalType": "address",
784
+ "name": "",
785
+ "type": "address"
786
+ }
787
+ ],
788
+ "name": "borrowCaps",
789
+ "outputs": [
790
+ {
791
+ "internalType": "uint256",
792
+ "name": "",
793
+ "type": "uint256"
794
+ }
795
+ ],
796
+ "stateMutability": "view",
797
+ "type": "function"
798
+ },
799
+ {
800
+ "inputs": [
801
+ {
802
+ "internalType": "address",
803
+ "name": "pToken",
804
+ "type": "address"
805
+ },
806
+ {
807
+ "internalType": "address",
808
+ "name": "borrower",
809
+ "type": "address"
810
+ },
811
+ {
812
+ "internalType": "uint256",
813
+ "name": "borrowAmount",
814
+ "type": "uint256"
815
+ }
816
+ ],
817
+ "name": "borrowVerify",
818
+ "outputs": [],
819
+ "stateMutability": "nonpayable",
820
+ "type": "function"
821
+ },
822
+ {
823
+ "inputs": [
824
+ {
825
+ "internalType": "address",
826
+ "name": "account",
827
+ "type": "address"
828
+ },
829
+ {
830
+ "internalType": "contract PToken",
831
+ "name": "pToken",
832
+ "type": "address"
833
+ }
834
+ ],
835
+ "name": "checkMembership",
836
+ "outputs": [
837
+ {
838
+ "internalType": "bool",
839
+ "name": "",
840
+ "type": "bool"
841
+ }
842
+ ],
843
+ "stateMutability": "view",
844
+ "type": "function"
845
+ },
846
+ {
847
+ "inputs": [],
848
+ "name": "closeFactorMantissa",
849
+ "outputs": [
850
+ {
851
+ "internalType": "uint256",
852
+ "name": "",
853
+ "type": "uint256"
854
+ }
855
+ ],
856
+ "stateMutability": "view",
857
+ "type": "function"
858
+ },
859
+ {
860
+ "inputs": [],
861
+ "name": "distributeWpcPaused",
862
+ "outputs": [
863
+ {
864
+ "internalType": "bool",
865
+ "name": "",
866
+ "type": "bool"
867
+ }
868
+ ],
869
+ "stateMutability": "view",
870
+ "type": "function"
871
+ },
872
+ {
873
+ "inputs": [
874
+ {
875
+ "internalType": "address[]",
876
+ "name": "pTokens",
877
+ "type": "address[]"
878
+ }
879
+ ],
880
+ "name": "enterMarkets",
881
+ "outputs": [
882
+ {
883
+ "internalType": "uint256[]",
884
+ "name": "",
885
+ "type": "uint256[]"
886
+ }
887
+ ],
888
+ "stateMutability": "nonpayable",
889
+ "type": "function"
890
+ },
891
+ {
892
+ "inputs": [
893
+ {
894
+ "internalType": "address",
895
+ "name": "pTokenAddress",
896
+ "type": "address"
897
+ }
898
+ ],
899
+ "name": "exitMarket",
900
+ "outputs": [
901
+ {
902
+ "internalType": "uint256",
903
+ "name": "",
904
+ "type": "uint256"
905
+ }
906
+ ],
907
+ "stateMutability": "nonpayable",
908
+ "type": "function"
909
+ },
910
+ {
911
+ "inputs": [
912
+ {
913
+ "internalType": "address",
914
+ "name": "account",
915
+ "type": "address"
916
+ }
917
+ ],
918
+ "name": "getAccountLiquidity",
919
+ "outputs": [
920
+ {
921
+ "internalType": "uint256",
922
+ "name": "",
923
+ "type": "uint256"
924
+ },
925
+ {
926
+ "internalType": "uint256",
927
+ "name": "",
928
+ "type": "uint256"
929
+ },
930
+ {
931
+ "internalType": "uint256",
932
+ "name": "",
933
+ "type": "uint256"
934
+ }
935
+ ],
936
+ "stateMutability": "view",
937
+ "type": "function"
938
+ },
939
+ {
940
+ "inputs": [],
941
+ "name": "getAllMarkets",
942
+ "outputs": [
943
+ {
944
+ "internalType": "contract PToken[]",
945
+ "name": "",
946
+ "type": "address[]"
947
+ }
948
+ ],
949
+ "stateMutability": "view",
950
+ "type": "function"
951
+ },
952
+ {
953
+ "inputs": [
954
+ {
955
+ "internalType": "address",
956
+ "name": "account",
957
+ "type": "address"
958
+ }
959
+ ],
960
+ "name": "getAssetsIn",
961
+ "outputs": [
962
+ {
963
+ "internalType": "contract PToken[]",
964
+ "name": "",
965
+ "type": "address[]"
966
+ }
967
+ ],
968
+ "stateMutability": "view",
969
+ "type": "function"
970
+ },
971
+ {
972
+ "inputs": [
973
+ {
974
+ "internalType": "address",
975
+ "name": "account",
976
+ "type": "address"
977
+ },
978
+ {
979
+ "internalType": "address",
980
+ "name": "pTokenModify",
981
+ "type": "address"
982
+ },
983
+ {
984
+ "internalType": "uint256",
985
+ "name": "redeemTokens",
986
+ "type": "uint256"
987
+ },
988
+ {
989
+ "internalType": "uint256",
990
+ "name": "borrowAmount",
991
+ "type": "uint256"
992
+ }
993
+ ],
994
+ "name": "getHypotheticalAccountLiquidity",
995
+ "outputs": [
996
+ {
997
+ "internalType": "uint256",
998
+ "name": "",
999
+ "type": "uint256"
1000
+ },
1001
+ {
1002
+ "internalType": "uint256",
1003
+ "name": "",
1004
+ "type": "uint256"
1005
+ },
1006
+ {
1007
+ "internalType": "uint256",
1008
+ "name": "",
1009
+ "type": "uint256"
1010
+ }
1011
+ ],
1012
+ "stateMutability": "view",
1013
+ "type": "function"
1014
+ },
1015
+ {
1016
+ "inputs": [],
1017
+ "name": "initialize",
1018
+ "outputs": [],
1019
+ "stateMutability": "nonpayable",
1020
+ "type": "function"
1021
+ },
1022
+ {
1023
+ "inputs": [
1024
+ {
1025
+ "internalType": "address",
1026
+ "name": "pToken",
1027
+ "type": "address"
1028
+ }
1029
+ ],
1030
+ "name": "isMarketListed",
1031
+ "outputs": [
1032
+ {
1033
+ "internalType": "bool",
1034
+ "name": "",
1035
+ "type": "bool"
1036
+ }
1037
+ ],
1038
+ "stateMutability": "view",
1039
+ "type": "function"
1040
+ },
1041
+ {
1042
+ "inputs": [
1043
+ {
1044
+ "internalType": "address",
1045
+ "name": "pToken",
1046
+ "type": "address"
1047
+ }
1048
+ ],
1049
+ "name": "isMarketMinted",
1050
+ "outputs": [
1051
+ {
1052
+ "internalType": "bool",
1053
+ "name": "",
1054
+ "type": "bool"
1055
+ }
1056
+ ],
1057
+ "stateMutability": "view",
1058
+ "type": "function"
1059
+ },
1060
+ {
1061
+ "inputs": [
1062
+ {
1063
+ "internalType": "address",
1064
+ "name": "pTokenBorrowed",
1065
+ "type": "address"
1066
+ },
1067
+ {
1068
+ "internalType": "address",
1069
+ "name": "pTokenCollateral",
1070
+ "type": "address"
1071
+ },
1072
+ {
1073
+ "internalType": "address",
1074
+ "name": "liquidator",
1075
+ "type": "address"
1076
+ },
1077
+ {
1078
+ "internalType": "address",
1079
+ "name": "borrower",
1080
+ "type": "address"
1081
+ },
1082
+ {
1083
+ "internalType": "uint256",
1084
+ "name": "repayAmount",
1085
+ "type": "uint256"
1086
+ }
1087
+ ],
1088
+ "name": "liquidateBorrowAllowed",
1089
+ "outputs": [
1090
+ {
1091
+ "internalType": "uint256",
1092
+ "name": "",
1093
+ "type": "uint256"
1094
+ }
1095
+ ],
1096
+ "stateMutability": "nonpayable",
1097
+ "type": "function"
1098
+ },
1099
+ {
1100
+ "inputs": [
1101
+ {
1102
+ "internalType": "address",
1103
+ "name": "pTokenBorrowed",
1104
+ "type": "address"
1105
+ },
1106
+ {
1107
+ "internalType": "address",
1108
+ "name": "pTokenCollateral",
1109
+ "type": "address"
1110
+ },
1111
+ {
1112
+ "internalType": "address",
1113
+ "name": "liquidator",
1114
+ "type": "address"
1115
+ },
1116
+ {
1117
+ "internalType": "address",
1118
+ "name": "borrower",
1119
+ "type": "address"
1120
+ },
1121
+ {
1122
+ "internalType": "uint256",
1123
+ "name": "repayAmount",
1124
+ "type": "uint256"
1125
+ },
1126
+ {
1127
+ "internalType": "uint256",
1128
+ "name": "seizeTokens",
1129
+ "type": "uint256"
1130
+ }
1131
+ ],
1132
+ "name": "liquidateBorrowVerify",
1133
+ "outputs": [],
1134
+ "stateMutability": "nonpayable",
1135
+ "type": "function"
1136
+ },
1137
+ {
1138
+ "inputs": [
1139
+ {
1140
+ "internalType": "address",
1141
+ "name": "pTokenBorrowed",
1142
+ "type": "address"
1143
+ },
1144
+ {
1145
+ "internalType": "address",
1146
+ "name": "pTokenCollateral",
1147
+ "type": "address"
1148
+ },
1149
+ {
1150
+ "internalType": "uint256",
1151
+ "name": "actualRepayAmount",
1152
+ "type": "uint256"
1153
+ }
1154
+ ],
1155
+ "name": "liquidateCalculateSeizeTokens",
1156
+ "outputs": [
1157
+ {
1158
+ "internalType": "uint256",
1159
+ "name": "",
1160
+ "type": "uint256"
1161
+ },
1162
+ {
1163
+ "internalType": "uint256",
1164
+ "name": "",
1165
+ "type": "uint256"
1166
+ }
1167
+ ],
1168
+ "stateMutability": "view",
1169
+ "type": "function"
1170
+ },
1171
+ {
1172
+ "inputs": [],
1173
+ "name": "liquidationIncentiveMantissa",
1174
+ "outputs": [
1175
+ {
1176
+ "internalType": "uint256",
1177
+ "name": "",
1178
+ "type": "uint256"
1179
+ }
1180
+ ],
1181
+ "stateMutability": "view",
1182
+ "type": "function"
1183
+ },
1184
+ {
1185
+ "inputs": [
1186
+ {
1187
+ "internalType": "address",
1188
+ "name": "",
1189
+ "type": "address"
1190
+ }
1191
+ ],
1192
+ "name": "markets",
1193
+ "outputs": [
1194
+ {
1195
+ "internalType": "bool",
1196
+ "name": "isListed",
1197
+ "type": "bool"
1198
+ },
1199
+ {
1200
+ "internalType": "uint256",
1201
+ "name": "collateralFactorMantissa",
1202
+ "type": "uint256"
1203
+ },
1204
+ {
1205
+ "internalType": "bool",
1206
+ "name": "isMinted",
1207
+ "type": "bool"
1208
+ }
1209
+ ],
1210
+ "stateMutability": "view",
1211
+ "type": "function"
1212
+ },
1213
+ {
1214
+ "inputs": [],
1215
+ "name": "maxAssets",
1216
+ "outputs": [
1217
+ {
1218
+ "internalType": "uint256",
1219
+ "name": "",
1220
+ "type": "uint256"
1221
+ }
1222
+ ],
1223
+ "stateMutability": "view",
1224
+ "type": "function"
1225
+ },
1226
+ {
1227
+ "inputs": [
1228
+ {
1229
+ "internalType": "address",
1230
+ "name": "pToken",
1231
+ "type": "address"
1232
+ },
1233
+ {
1234
+ "internalType": "address",
1235
+ "name": "minter",
1236
+ "type": "address"
1237
+ },
1238
+ {
1239
+ "internalType": "uint256",
1240
+ "name": "mintAmount",
1241
+ "type": "uint256"
1242
+ }
1243
+ ],
1244
+ "name": "mintAllowed",
1245
+ "outputs": [
1246
+ {
1247
+ "internalType": "uint256",
1248
+ "name": "",
1249
+ "type": "uint256"
1250
+ }
1251
+ ],
1252
+ "stateMutability": "nonpayable",
1253
+ "type": "function"
1254
+ },
1255
+ {
1256
+ "inputs": [
1257
+ {
1258
+ "internalType": "address",
1259
+ "name": "",
1260
+ "type": "address"
1261
+ }
1262
+ ],
1263
+ "name": "mintCaps",
1264
+ "outputs": [
1265
+ {
1266
+ "internalType": "uint256",
1267
+ "name": "",
1268
+ "type": "uint256"
1269
+ }
1270
+ ],
1271
+ "stateMutability": "view",
1272
+ "type": "function"
1273
+ },
1274
+ {
1275
+ "inputs": [
1276
+ {
1277
+ "internalType": "address",
1278
+ "name": "pToken",
1279
+ "type": "address"
1280
+ },
1281
+ {
1282
+ "internalType": "address",
1283
+ "name": "minter",
1284
+ "type": "address"
1285
+ },
1286
+ {
1287
+ "internalType": "uint256",
1288
+ "name": "mintAmount",
1289
+ "type": "uint256"
1290
+ },
1291
+ {
1292
+ "internalType": "uint256",
1293
+ "name": "mintTokens",
1294
+ "type": "uint256"
1295
+ }
1296
+ ],
1297
+ "name": "mintVerify",
1298
+ "outputs": [],
1299
+ "stateMutability": "nonpayable",
1300
+ "type": "function"
1301
+ },
1302
+ {
1303
+ "inputs": [],
1304
+ "name": "oracle",
1305
+ "outputs": [
1306
+ {
1307
+ "internalType": "contract IPriceOracle",
1308
+ "name": "",
1309
+ "type": "address"
1310
+ }
1311
+ ],
1312
+ "stateMutability": "view",
1313
+ "type": "function"
1314
+ },
1315
+ {
1316
+ "inputs": [],
1317
+ "name": "owner",
1318
+ "outputs": [
1319
+ {
1320
+ "internalType": "address",
1321
+ "name": "",
1322
+ "type": "address"
1323
+ }
1324
+ ],
1325
+ "stateMutability": "view",
1326
+ "type": "function"
1327
+ },
1328
+ {
1329
+ "inputs": [
1330
+ {
1331
+ "internalType": "address",
1332
+ "name": "",
1333
+ "type": "address"
1334
+ }
1335
+ ],
1336
+ "name": "pTokenBorrowGuardianPaused",
1337
+ "outputs": [
1338
+ {
1339
+ "internalType": "bool",
1340
+ "name": "",
1341
+ "type": "bool"
1342
+ }
1343
+ ],
1344
+ "stateMutability": "view",
1345
+ "type": "function"
1346
+ },
1347
+ {
1348
+ "inputs": [
1349
+ {
1350
+ "internalType": "address",
1351
+ "name": "",
1352
+ "type": "address"
1353
+ }
1354
+ ],
1355
+ "name": "pTokenMintGuardianPaused",
1356
+ "outputs": [
1357
+ {
1358
+ "internalType": "bool",
1359
+ "name": "",
1360
+ "type": "bool"
1361
+ }
1362
+ ],
1363
+ "stateMutability": "view",
1364
+ "type": "function"
1365
+ },
1366
+ {
1367
+ "inputs": [],
1368
+ "name": "pauseGuardian",
1369
+ "outputs": [
1370
+ {
1371
+ "internalType": "address",
1372
+ "name": "",
1373
+ "type": "address"
1374
+ }
1375
+ ],
1376
+ "stateMutability": "view",
1377
+ "type": "function"
1378
+ },
1379
+ {
1380
+ "inputs": [
1381
+ {
1382
+ "internalType": "address",
1383
+ "name": "pToken",
1384
+ "type": "address"
1385
+ },
1386
+ {
1387
+ "internalType": "address",
1388
+ "name": "redeemer",
1389
+ "type": "address"
1390
+ },
1391
+ {
1392
+ "internalType": "uint256",
1393
+ "name": "redeemTokens",
1394
+ "type": "uint256"
1395
+ }
1396
+ ],
1397
+ "name": "redeemAllowed",
1398
+ "outputs": [
1399
+ {
1400
+ "internalType": "uint256",
1401
+ "name": "",
1402
+ "type": "uint256"
1403
+ }
1404
+ ],
1405
+ "stateMutability": "nonpayable",
1406
+ "type": "function"
1407
+ },
1408
+ {
1409
+ "inputs": [
1410
+ {
1411
+ "internalType": "address",
1412
+ "name": "pToken",
1413
+ "type": "address"
1414
+ },
1415
+ {
1416
+ "internalType": "address",
1417
+ "name": "redeemer",
1418
+ "type": "address"
1419
+ },
1420
+ {
1421
+ "internalType": "uint256",
1422
+ "name": "redeemAmount",
1423
+ "type": "uint256"
1424
+ },
1425
+ {
1426
+ "internalType": "uint256",
1427
+ "name": "redeemTokens",
1428
+ "type": "uint256"
1429
+ }
1430
+ ],
1431
+ "name": "redeemVerify",
1432
+ "outputs": [],
1433
+ "stateMutability": "nonpayable",
1434
+ "type": "function"
1435
+ },
1436
+ {
1437
+ "inputs": [],
1438
+ "name": "renounceOwnership",
1439
+ "outputs": [],
1440
+ "stateMutability": "nonpayable",
1441
+ "type": "function"
1442
+ },
1443
+ {
1444
+ "inputs": [
1445
+ {
1446
+ "internalType": "address",
1447
+ "name": "pToken",
1448
+ "type": "address"
1449
+ },
1450
+ {
1451
+ "internalType": "address",
1452
+ "name": "payer",
1453
+ "type": "address"
1454
+ },
1455
+ {
1456
+ "internalType": "address",
1457
+ "name": "borrower",
1458
+ "type": "address"
1459
+ },
1460
+ {
1461
+ "internalType": "uint256",
1462
+ "name": "repayAmount",
1463
+ "type": "uint256"
1464
+ }
1465
+ ],
1466
+ "name": "repayBorrowAllowed",
1467
+ "outputs": [
1468
+ {
1469
+ "internalType": "uint256",
1470
+ "name": "",
1471
+ "type": "uint256"
1472
+ }
1473
+ ],
1474
+ "stateMutability": "nonpayable",
1475
+ "type": "function"
1476
+ },
1477
+ {
1478
+ "inputs": [
1479
+ {
1480
+ "internalType": "address",
1481
+ "name": "pToken",
1482
+ "type": "address"
1483
+ },
1484
+ {
1485
+ "internalType": "address",
1486
+ "name": "payer",
1487
+ "type": "address"
1488
+ },
1489
+ {
1490
+ "internalType": "address",
1491
+ "name": "borrower",
1492
+ "type": "address"
1493
+ },
1494
+ {
1495
+ "internalType": "uint256",
1496
+ "name": "repayAmount",
1497
+ "type": "uint256"
1498
+ },
1499
+ {
1500
+ "internalType": "uint256",
1501
+ "name": "borrowerIndex",
1502
+ "type": "uint256"
1503
+ }
1504
+ ],
1505
+ "name": "repayBorrowVerify",
1506
+ "outputs": [],
1507
+ "stateMutability": "nonpayable",
1508
+ "type": "function"
1509
+ },
1510
+ {
1511
+ "inputs": [
1512
+ {
1513
+ "internalType": "address",
1514
+ "name": "pTokenCollateral",
1515
+ "type": "address"
1516
+ },
1517
+ {
1518
+ "internalType": "address",
1519
+ "name": "pTokenBorrowed",
1520
+ "type": "address"
1521
+ },
1522
+ {
1523
+ "internalType": "address",
1524
+ "name": "liquidator",
1525
+ "type": "address"
1526
+ },
1527
+ {
1528
+ "internalType": "address",
1529
+ "name": "borrower",
1530
+ "type": "address"
1531
+ },
1532
+ {
1533
+ "internalType": "uint256",
1534
+ "name": "seizeTokens",
1535
+ "type": "uint256"
1536
+ }
1537
+ ],
1538
+ "name": "seizeAllowed",
1539
+ "outputs": [
1540
+ {
1541
+ "internalType": "uint256",
1542
+ "name": "",
1543
+ "type": "uint256"
1544
+ }
1545
+ ],
1546
+ "stateMutability": "nonpayable",
1547
+ "type": "function"
1548
+ },
1549
+ {
1550
+ "inputs": [],
1551
+ "name": "seizeGuardianPaused",
1552
+ "outputs": [
1553
+ {
1554
+ "internalType": "bool",
1555
+ "name": "",
1556
+ "type": "bool"
1557
+ }
1558
+ ],
1559
+ "stateMutability": "view",
1560
+ "type": "function"
1561
+ },
1562
+ {
1563
+ "inputs": [
1564
+ {
1565
+ "internalType": "address",
1566
+ "name": "pTokenCollateral",
1567
+ "type": "address"
1568
+ },
1569
+ {
1570
+ "internalType": "address",
1571
+ "name": "pTokenBorrowed",
1572
+ "type": "address"
1573
+ },
1574
+ {
1575
+ "internalType": "address",
1576
+ "name": "liquidator",
1577
+ "type": "address"
1578
+ },
1579
+ {
1580
+ "internalType": "address",
1581
+ "name": "borrower",
1582
+ "type": "address"
1583
+ },
1584
+ {
1585
+ "internalType": "uint256",
1586
+ "name": "seizeTokens",
1587
+ "type": "uint256"
1588
+ }
1589
+ ],
1590
+ "name": "seizeVerify",
1591
+ "outputs": [],
1592
+ "stateMutability": "nonpayable",
1593
+ "type": "function"
1594
+ },
1595
+ {
1596
+ "inputs": [
1597
+ {
1598
+ "internalType": "address",
1599
+ "name": "pToken",
1600
+ "type": "address"
1601
+ },
1602
+ {
1603
+ "internalType": "address",
1604
+ "name": "src",
1605
+ "type": "address"
1606
+ },
1607
+ {
1608
+ "internalType": "address",
1609
+ "name": "dst",
1610
+ "type": "address"
1611
+ },
1612
+ {
1613
+ "internalType": "uint256",
1614
+ "name": "transferTokens",
1615
+ "type": "uint256"
1616
+ }
1617
+ ],
1618
+ "name": "transferAllowed",
1619
+ "outputs": [
1620
+ {
1621
+ "internalType": "uint256",
1622
+ "name": "",
1623
+ "type": "uint256"
1624
+ }
1625
+ ],
1626
+ "stateMutability": "nonpayable",
1627
+ "type": "function"
1628
+ },
1629
+ {
1630
+ "inputs": [],
1631
+ "name": "transferGuardianPaused",
1632
+ "outputs": [
1633
+ {
1634
+ "internalType": "bool",
1635
+ "name": "",
1636
+ "type": "bool"
1637
+ }
1638
+ ],
1639
+ "stateMutability": "view",
1640
+ "type": "function"
1641
+ },
1642
+ {
1643
+ "inputs": [
1644
+ {
1645
+ "internalType": "address",
1646
+ "name": "newOwner",
1647
+ "type": "address"
1648
+ }
1649
+ ],
1650
+ "name": "transferOwnership",
1651
+ "outputs": [],
1652
+ "stateMutability": "nonpayable",
1653
+ "type": "function"
1654
+ },
1655
+ {
1656
+ "inputs": [
1657
+ {
1658
+ "internalType": "address",
1659
+ "name": "pToken",
1660
+ "type": "address"
1661
+ },
1662
+ {
1663
+ "internalType": "address",
1664
+ "name": "src",
1665
+ "type": "address"
1666
+ },
1667
+ {
1668
+ "internalType": "address",
1669
+ "name": "dst",
1670
+ "type": "address"
1671
+ },
1672
+ {
1673
+ "internalType": "uint256",
1674
+ "name": "transferTokens",
1675
+ "type": "uint256"
1676
+ }
1677
+ ],
1678
+ "name": "transferVerify",
1679
+ "outputs": [],
1680
+ "stateMutability": "nonpayable",
1681
+ "type": "function"
1682
+ }
1683
+ ]
1684
+ ''')