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,1485 @@
1
+ import json
2
+
3
+ APESWAP_CTOKEN_ABI = json.loads('''
4
+ [
5
+ {
6
+ "inputs": [],
7
+ "payable": false,
8
+ "stateMutability": "nonpayable",
9
+ "type": "constructor"
10
+ },
11
+ {
12
+ "anonymous": false,
13
+ "inputs": [
14
+ {
15
+ "indexed": false,
16
+ "internalType": "uint256",
17
+ "name": "cashPrior",
18
+ "type": "uint256"
19
+ },
20
+ {
21
+ "indexed": false,
22
+ "internalType": "uint256",
23
+ "name": "interestAccumulated",
24
+ "type": "uint256"
25
+ },
26
+ {
27
+ "indexed": false,
28
+ "internalType": "uint256",
29
+ "name": "borrowIndex",
30
+ "type": "uint256"
31
+ },
32
+ {
33
+ "indexed": false,
34
+ "internalType": "uint256",
35
+ "name": "totalBorrows",
36
+ "type": "uint256"
37
+ }
38
+ ],
39
+ "name": "AccrueInterest",
40
+ "type": "event"
41
+ },
42
+ {
43
+ "anonymous": false,
44
+ "inputs": [
45
+ {
46
+ "indexed": true,
47
+ "internalType": "address",
48
+ "name": "owner",
49
+ "type": "address"
50
+ },
51
+ {
52
+ "indexed": true,
53
+ "internalType": "address",
54
+ "name": "spender",
55
+ "type": "address"
56
+ },
57
+ {
58
+ "indexed": false,
59
+ "internalType": "uint256",
60
+ "name": "amount",
61
+ "type": "uint256"
62
+ }
63
+ ],
64
+ "name": "Approval",
65
+ "type": "event"
66
+ },
67
+ {
68
+ "anonymous": false,
69
+ "inputs": [
70
+ {
71
+ "indexed": false,
72
+ "internalType": "address",
73
+ "name": "borrower",
74
+ "type": "address"
75
+ },
76
+ {
77
+ "indexed": false,
78
+ "internalType": "uint256",
79
+ "name": "borrowAmount",
80
+ "type": "uint256"
81
+ },
82
+ {
83
+ "indexed": false,
84
+ "internalType": "uint256",
85
+ "name": "accountBorrows",
86
+ "type": "uint256"
87
+ },
88
+ {
89
+ "indexed": false,
90
+ "internalType": "uint256",
91
+ "name": "totalBorrows",
92
+ "type": "uint256"
93
+ }
94
+ ],
95
+ "name": "Borrow",
96
+ "type": "event"
97
+ },
98
+ {
99
+ "anonymous": false,
100
+ "inputs": [
101
+ {
102
+ "indexed": false,
103
+ "internalType": "uint256",
104
+ "name": "error",
105
+ "type": "uint256"
106
+ },
107
+ {
108
+ "indexed": false,
109
+ "internalType": "uint256",
110
+ "name": "info",
111
+ "type": "uint256"
112
+ },
113
+ {
114
+ "indexed": false,
115
+ "internalType": "uint256",
116
+ "name": "detail",
117
+ "type": "uint256"
118
+ }
119
+ ],
120
+ "name": "Failure",
121
+ "type": "event"
122
+ },
123
+ {
124
+ "anonymous": false,
125
+ "inputs": [
126
+ {
127
+ "indexed": false,
128
+ "internalType": "address",
129
+ "name": "liquidator",
130
+ "type": "address"
131
+ },
132
+ {
133
+ "indexed": false,
134
+ "internalType": "address",
135
+ "name": "borrower",
136
+ "type": "address"
137
+ },
138
+ {
139
+ "indexed": false,
140
+ "internalType": "uint256",
141
+ "name": "repayAmount",
142
+ "type": "uint256"
143
+ },
144
+ {
145
+ "indexed": false,
146
+ "internalType": "address",
147
+ "name": "cTokenCollateral",
148
+ "type": "address"
149
+ },
150
+ {
151
+ "indexed": false,
152
+ "internalType": "uint256",
153
+ "name": "seizeTokens",
154
+ "type": "uint256"
155
+ }
156
+ ],
157
+ "name": "LiquidateBorrow",
158
+ "type": "event"
159
+ },
160
+ {
161
+ "anonymous": false,
162
+ "inputs": [
163
+ {
164
+ "indexed": false,
165
+ "internalType": "address",
166
+ "name": "minter",
167
+ "type": "address"
168
+ },
169
+ {
170
+ "indexed": false,
171
+ "internalType": "uint256",
172
+ "name": "mintAmount",
173
+ "type": "uint256"
174
+ },
175
+ {
176
+ "indexed": false,
177
+ "internalType": "uint256",
178
+ "name": "mintTokens",
179
+ "type": "uint256"
180
+ }
181
+ ],
182
+ "name": "Mint",
183
+ "type": "event"
184
+ },
185
+ {
186
+ "anonymous": false,
187
+ "inputs": [
188
+ {
189
+ "indexed": false,
190
+ "internalType": "address",
191
+ "name": "oldAdmin",
192
+ "type": "address"
193
+ },
194
+ {
195
+ "indexed": false,
196
+ "internalType": "address",
197
+ "name": "newAdmin",
198
+ "type": "address"
199
+ }
200
+ ],
201
+ "name": "NewAdmin",
202
+ "type": "event"
203
+ },
204
+ {
205
+ "anonymous": false,
206
+ "inputs": [
207
+ {
208
+ "indexed": false,
209
+ "internalType": "contract ComptrollerInterface",
210
+ "name": "oldComptroller",
211
+ "type": "address"
212
+ },
213
+ {
214
+ "indexed": false,
215
+ "internalType": "contract ComptrollerInterface",
216
+ "name": "newComptroller",
217
+ "type": "address"
218
+ }
219
+ ],
220
+ "name": "NewComptroller",
221
+ "type": "event"
222
+ },
223
+ {
224
+ "anonymous": false,
225
+ "inputs": [
226
+ {
227
+ "indexed": false,
228
+ "internalType": "contract InterestRateModel",
229
+ "name": "oldInterestRateModel",
230
+ "type": "address"
231
+ },
232
+ {
233
+ "indexed": false,
234
+ "internalType": "contract InterestRateModel",
235
+ "name": "newInterestRateModel",
236
+ "type": "address"
237
+ }
238
+ ],
239
+ "name": "NewMarketInterestRateModel",
240
+ "type": "event"
241
+ },
242
+ {
243
+ "anonymous": false,
244
+ "inputs": [
245
+ {
246
+ "indexed": false,
247
+ "internalType": "address",
248
+ "name": "oldPendingAdmin",
249
+ "type": "address"
250
+ },
251
+ {
252
+ "indexed": false,
253
+ "internalType": "address",
254
+ "name": "newPendingAdmin",
255
+ "type": "address"
256
+ }
257
+ ],
258
+ "name": "NewPendingAdmin",
259
+ "type": "event"
260
+ },
261
+ {
262
+ "anonymous": false,
263
+ "inputs": [
264
+ {
265
+ "indexed": false,
266
+ "internalType": "uint256",
267
+ "name": "oldReserveFactorMantissa",
268
+ "type": "uint256"
269
+ },
270
+ {
271
+ "indexed": false,
272
+ "internalType": "uint256",
273
+ "name": "newReserveFactorMantissa",
274
+ "type": "uint256"
275
+ }
276
+ ],
277
+ "name": "NewReserveFactor",
278
+ "type": "event"
279
+ },
280
+ {
281
+ "anonymous": false,
282
+ "inputs": [
283
+ {
284
+ "indexed": false,
285
+ "internalType": "address",
286
+ "name": "redeemer",
287
+ "type": "address"
288
+ },
289
+ {
290
+ "indexed": false,
291
+ "internalType": "uint256",
292
+ "name": "redeemAmount",
293
+ "type": "uint256"
294
+ },
295
+ {
296
+ "indexed": false,
297
+ "internalType": "uint256",
298
+ "name": "redeemTokens",
299
+ "type": "uint256"
300
+ }
301
+ ],
302
+ "name": "Redeem",
303
+ "type": "event"
304
+ },
305
+ {
306
+ "anonymous": false,
307
+ "inputs": [
308
+ {
309
+ "indexed": false,
310
+ "internalType": "address",
311
+ "name": "payer",
312
+ "type": "address"
313
+ },
314
+ {
315
+ "indexed": false,
316
+ "internalType": "address",
317
+ "name": "borrower",
318
+ "type": "address"
319
+ },
320
+ {
321
+ "indexed": false,
322
+ "internalType": "uint256",
323
+ "name": "repayAmount",
324
+ "type": "uint256"
325
+ },
326
+ {
327
+ "indexed": false,
328
+ "internalType": "uint256",
329
+ "name": "accountBorrows",
330
+ "type": "uint256"
331
+ },
332
+ {
333
+ "indexed": false,
334
+ "internalType": "uint256",
335
+ "name": "totalBorrows",
336
+ "type": "uint256"
337
+ }
338
+ ],
339
+ "name": "RepayBorrow",
340
+ "type": "event"
341
+ },
342
+ {
343
+ "anonymous": false,
344
+ "inputs": [
345
+ {
346
+ "indexed": false,
347
+ "internalType": "address",
348
+ "name": "admin",
349
+ "type": "address"
350
+ },
351
+ {
352
+ "indexed": false,
353
+ "internalType": "uint256",
354
+ "name": "adminPart",
355
+ "type": "uint256"
356
+ },
357
+ {
358
+ "indexed": false,
359
+ "internalType": "address",
360
+ "name": "olaBank",
361
+ "type": "address"
362
+ },
363
+ {
364
+ "indexed": false,
365
+ "internalType": "uint256",
366
+ "name": "olaPart",
367
+ "type": "uint256"
368
+ },
369
+ {
370
+ "indexed": false,
371
+ "internalType": "uint256",
372
+ "name": "newTotalReserves",
373
+ "type": "uint256"
374
+ }
375
+ ],
376
+ "name": "ReservesReduced",
377
+ "type": "event"
378
+ },
379
+ {
380
+ "anonymous": false,
381
+ "inputs": [
382
+ {
383
+ "indexed": true,
384
+ "internalType": "address",
385
+ "name": "from",
386
+ "type": "address"
387
+ },
388
+ {
389
+ "indexed": true,
390
+ "internalType": "address",
391
+ "name": "to",
392
+ "type": "address"
393
+ },
394
+ {
395
+ "indexed": false,
396
+ "internalType": "uint256",
397
+ "name": "amount",
398
+ "type": "uint256"
399
+ }
400
+ ],
401
+ "name": "Transfer",
402
+ "type": "event"
403
+ },
404
+ {
405
+ "constant": false,
406
+ "inputs": [],
407
+ "name": "_acceptAdmin",
408
+ "outputs": [
409
+ {
410
+ "internalType": "uint256",
411
+ "name": "",
412
+ "type": "uint256"
413
+ }
414
+ ],
415
+ "payable": false,
416
+ "stateMutability": "nonpayable",
417
+ "type": "function"
418
+ },
419
+ {
420
+ "constant": false,
421
+ "inputs": [
422
+ {
423
+ "internalType": "bytes",
424
+ "name": "data",
425
+ "type": "bytes"
426
+ }
427
+ ],
428
+ "name": "_becomeImplementation",
429
+ "outputs": [],
430
+ "payable": false,
431
+ "stateMutability": "nonpayable",
432
+ "type": "function"
433
+ },
434
+ {
435
+ "constant": false,
436
+ "inputs": [
437
+ {
438
+ "internalType": "uint256",
439
+ "name": "reduceAmount",
440
+ "type": "uint256"
441
+ }
442
+ ],
443
+ "name": "_reduceReserves",
444
+ "outputs": [
445
+ {
446
+ "internalType": "uint256",
447
+ "name": "",
448
+ "type": "uint256"
449
+ }
450
+ ],
451
+ "payable": false,
452
+ "stateMutability": "nonpayable",
453
+ "type": "function"
454
+ },
455
+ {
456
+ "constant": false,
457
+ "inputs": [],
458
+ "name": "_resignImplementation",
459
+ "outputs": [],
460
+ "payable": false,
461
+ "stateMutability": "nonpayable",
462
+ "type": "function"
463
+ },
464
+ {
465
+ "constant": false,
466
+ "inputs": [
467
+ {
468
+ "internalType": "contract InterestRateModel",
469
+ "name": "newInterestRateModel",
470
+ "type": "address"
471
+ }
472
+ ],
473
+ "name": "_setInterestRateModel",
474
+ "outputs": [
475
+ {
476
+ "internalType": "uint256",
477
+ "name": "",
478
+ "type": "uint256"
479
+ }
480
+ ],
481
+ "payable": false,
482
+ "stateMutability": "nonpayable",
483
+ "type": "function"
484
+ },
485
+ {
486
+ "constant": false,
487
+ "inputs": [
488
+ {
489
+ "internalType": "address payable",
490
+ "name": "newPendingAdmin",
491
+ "type": "address"
492
+ }
493
+ ],
494
+ "name": "_setPendingAdmin",
495
+ "outputs": [
496
+ {
497
+ "internalType": "uint256",
498
+ "name": "",
499
+ "type": "uint256"
500
+ }
501
+ ],
502
+ "payable": false,
503
+ "stateMutability": "nonpayable",
504
+ "type": "function"
505
+ },
506
+ {
507
+ "constant": false,
508
+ "inputs": [
509
+ {
510
+ "internalType": "uint256",
511
+ "name": "newReserveFactorMantissa",
512
+ "type": "uint256"
513
+ }
514
+ ],
515
+ "name": "_setReserveFactor",
516
+ "outputs": [
517
+ {
518
+ "internalType": "uint256",
519
+ "name": "",
520
+ "type": "uint256"
521
+ }
522
+ ],
523
+ "payable": false,
524
+ "stateMutability": "nonpayable",
525
+ "type": "function"
526
+ },
527
+ {
528
+ "constant": true,
529
+ "inputs": [],
530
+ "name": "accrualBlockNumber",
531
+ "outputs": [
532
+ {
533
+ "internalType": "uint256",
534
+ "name": "",
535
+ "type": "uint256"
536
+ }
537
+ ],
538
+ "payable": false,
539
+ "stateMutability": "view",
540
+ "type": "function"
541
+ },
542
+ {
543
+ "constant": true,
544
+ "inputs": [],
545
+ "name": "accrualBlockTimestamp",
546
+ "outputs": [
547
+ {
548
+ "internalType": "uint256",
549
+ "name": "",
550
+ "type": "uint256"
551
+ }
552
+ ],
553
+ "payable": false,
554
+ "stateMutability": "view",
555
+ "type": "function"
556
+ },
557
+ {
558
+ "constant": false,
559
+ "inputs": [],
560
+ "name": "accrueInterest",
561
+ "outputs": [
562
+ {
563
+ "internalType": "uint256",
564
+ "name": "",
565
+ "type": "uint256"
566
+ }
567
+ ],
568
+ "payable": false,
569
+ "stateMutability": "nonpayable",
570
+ "type": "function"
571
+ },
572
+ {
573
+ "constant": true,
574
+ "inputs": [],
575
+ "name": "admin",
576
+ "outputs": [
577
+ {
578
+ "internalType": "address payable",
579
+ "name": "",
580
+ "type": "address"
581
+ }
582
+ ],
583
+ "payable": false,
584
+ "stateMutability": "view",
585
+ "type": "function"
586
+ },
587
+ {
588
+ "constant": true,
589
+ "inputs": [
590
+ {
591
+ "internalType": "address",
592
+ "name": "owner",
593
+ "type": "address"
594
+ },
595
+ {
596
+ "internalType": "address",
597
+ "name": "spender",
598
+ "type": "address"
599
+ }
600
+ ],
601
+ "name": "allowance",
602
+ "outputs": [
603
+ {
604
+ "internalType": "uint256",
605
+ "name": "",
606
+ "type": "uint256"
607
+ }
608
+ ],
609
+ "payable": false,
610
+ "stateMutability": "view",
611
+ "type": "function"
612
+ },
613
+ {
614
+ "constant": false,
615
+ "inputs": [
616
+ {
617
+ "internalType": "address",
618
+ "name": "spender",
619
+ "type": "address"
620
+ },
621
+ {
622
+ "internalType": "uint256",
623
+ "name": "amount",
624
+ "type": "uint256"
625
+ }
626
+ ],
627
+ "name": "approve",
628
+ "outputs": [
629
+ {
630
+ "internalType": "bool",
631
+ "name": "",
632
+ "type": "bool"
633
+ }
634
+ ],
635
+ "payable": false,
636
+ "stateMutability": "nonpayable",
637
+ "type": "function"
638
+ },
639
+ {
640
+ "constant": true,
641
+ "inputs": [
642
+ {
643
+ "internalType": "address",
644
+ "name": "owner",
645
+ "type": "address"
646
+ }
647
+ ],
648
+ "name": "balanceOf",
649
+ "outputs": [
650
+ {
651
+ "internalType": "uint256",
652
+ "name": "",
653
+ "type": "uint256"
654
+ }
655
+ ],
656
+ "payable": false,
657
+ "stateMutability": "view",
658
+ "type": "function"
659
+ },
660
+ {
661
+ "constant": false,
662
+ "inputs": [
663
+ {
664
+ "internalType": "address",
665
+ "name": "owner",
666
+ "type": "address"
667
+ }
668
+ ],
669
+ "name": "balanceOfUnderlying",
670
+ "outputs": [
671
+ {
672
+ "internalType": "uint256",
673
+ "name": "",
674
+ "type": "uint256"
675
+ }
676
+ ],
677
+ "payable": false,
678
+ "stateMutability": "nonpayable",
679
+ "type": "function"
680
+ },
681
+ {
682
+ "constant": true,
683
+ "inputs": [],
684
+ "name": "blocksBased",
685
+ "outputs": [
686
+ {
687
+ "internalType": "bool",
688
+ "name": "",
689
+ "type": "bool"
690
+ }
691
+ ],
692
+ "payable": false,
693
+ "stateMutability": "view",
694
+ "type": "function"
695
+ },
696
+ {
697
+ "constant": false,
698
+ "inputs": [
699
+ {
700
+ "internalType": "uint256",
701
+ "name": "borrowAmount",
702
+ "type": "uint256"
703
+ }
704
+ ],
705
+ "name": "borrow",
706
+ "outputs": [
707
+ {
708
+ "internalType": "uint256",
709
+ "name": "",
710
+ "type": "uint256"
711
+ }
712
+ ],
713
+ "payable": false,
714
+ "stateMutability": "nonpayable",
715
+ "type": "function"
716
+ },
717
+ {
718
+ "constant": false,
719
+ "inputs": [
720
+ {
721
+ "internalType": "address",
722
+ "name": "account",
723
+ "type": "address"
724
+ }
725
+ ],
726
+ "name": "borrowBalanceCurrent",
727
+ "outputs": [
728
+ {
729
+ "internalType": "uint256",
730
+ "name": "",
731
+ "type": "uint256"
732
+ }
733
+ ],
734
+ "payable": false,
735
+ "stateMutability": "nonpayable",
736
+ "type": "function"
737
+ },
738
+ {
739
+ "constant": true,
740
+ "inputs": [
741
+ {
742
+ "internalType": "address",
743
+ "name": "account",
744
+ "type": "address"
745
+ }
746
+ ],
747
+ "name": "borrowBalanceStored",
748
+ "outputs": [
749
+ {
750
+ "internalType": "uint256",
751
+ "name": "",
752
+ "type": "uint256"
753
+ }
754
+ ],
755
+ "payable": false,
756
+ "stateMutability": "view",
757
+ "type": "function"
758
+ },
759
+ {
760
+ "constant": true,
761
+ "inputs": [],
762
+ "name": "borrowIndex",
763
+ "outputs": [
764
+ {
765
+ "internalType": "uint256",
766
+ "name": "",
767
+ "type": "uint256"
768
+ }
769
+ ],
770
+ "payable": false,
771
+ "stateMutability": "view",
772
+ "type": "function"
773
+ },
774
+ {
775
+ "constant": true,
776
+ "inputs": [],
777
+ "name": "borrowRatePerBlock",
778
+ "outputs": [
779
+ {
780
+ "internalType": "uint256",
781
+ "name": "",
782
+ "type": "uint256"
783
+ }
784
+ ],
785
+ "payable": false,
786
+ "stateMutability": "view",
787
+ "type": "function"
788
+ },
789
+ {
790
+ "constant": true,
791
+ "inputs": [],
792
+ "name": "comptroller",
793
+ "outputs": [
794
+ {
795
+ "internalType": "contract ComptrollerInterface",
796
+ "name": "",
797
+ "type": "address"
798
+ }
799
+ ],
800
+ "payable": false,
801
+ "stateMutability": "view",
802
+ "type": "function"
803
+ },
804
+ {
805
+ "constant": true,
806
+ "inputs": [],
807
+ "name": "contractNameHash",
808
+ "outputs": [
809
+ {
810
+ "internalType": "bytes32",
811
+ "name": "",
812
+ "type": "bytes32"
813
+ }
814
+ ],
815
+ "payable": false,
816
+ "stateMutability": "view",
817
+ "type": "function"
818
+ },
819
+ {
820
+ "constant": true,
821
+ "inputs": [],
822
+ "name": "decimals",
823
+ "outputs": [
824
+ {
825
+ "internalType": "uint8",
826
+ "name": "",
827
+ "type": "uint8"
828
+ }
829
+ ],
830
+ "payable": false,
831
+ "stateMutability": "view",
832
+ "type": "function"
833
+ },
834
+ {
835
+ "constant": false,
836
+ "inputs": [],
837
+ "name": "exchangeRateCurrent",
838
+ "outputs": [
839
+ {
840
+ "internalType": "uint256",
841
+ "name": "",
842
+ "type": "uint256"
843
+ }
844
+ ],
845
+ "payable": false,
846
+ "stateMutability": "nonpayable",
847
+ "type": "function"
848
+ },
849
+ {
850
+ "constant": true,
851
+ "inputs": [],
852
+ "name": "exchangeRateStored",
853
+ "outputs": [
854
+ {
855
+ "internalType": "uint256",
856
+ "name": "",
857
+ "type": "uint256"
858
+ }
859
+ ],
860
+ "payable": false,
861
+ "stateMutability": "view",
862
+ "type": "function"
863
+ },
864
+ {
865
+ "constant": true,
866
+ "inputs": [
867
+ {
868
+ "internalType": "address",
869
+ "name": "account",
870
+ "type": "address"
871
+ }
872
+ ],
873
+ "name": "getAccountSnapshot",
874
+ "outputs": [
875
+ {
876
+ "internalType": "uint256",
877
+ "name": "",
878
+ "type": "uint256"
879
+ },
880
+ {
881
+ "internalType": "uint256",
882
+ "name": "",
883
+ "type": "uint256"
884
+ },
885
+ {
886
+ "internalType": "uint256",
887
+ "name": "",
888
+ "type": "uint256"
889
+ },
890
+ {
891
+ "internalType": "uint256",
892
+ "name": "",
893
+ "type": "uint256"
894
+ }
895
+ ],
896
+ "payable": false,
897
+ "stateMutability": "view",
898
+ "type": "function"
899
+ },
900
+ {
901
+ "constant": true,
902
+ "inputs": [],
903
+ "name": "getAccrualBlockNumber",
904
+ "outputs": [
905
+ {
906
+ "internalType": "uint256",
907
+ "name": "",
908
+ "type": "uint256"
909
+ }
910
+ ],
911
+ "payable": false,
912
+ "stateMutability": "view",
913
+ "type": "function"
914
+ },
915
+ {
916
+ "constant": true,
917
+ "inputs": [],
918
+ "name": "getCash",
919
+ "outputs": [
920
+ {
921
+ "internalType": "uint256",
922
+ "name": "",
923
+ "type": "uint256"
924
+ }
925
+ ],
926
+ "payable": false,
927
+ "stateMutability": "view",
928
+ "type": "function"
929
+ },
930
+ {
931
+ "constant": true,
932
+ "inputs": [],
933
+ "name": "implementation",
934
+ "outputs": [
935
+ {
936
+ "internalType": "address",
937
+ "name": "",
938
+ "type": "address"
939
+ }
940
+ ],
941
+ "payable": false,
942
+ "stateMutability": "view",
943
+ "type": "function"
944
+ },
945
+ {
946
+ "constant": false,
947
+ "inputs": [
948
+ {
949
+ "internalType": "address",
950
+ "name": "underlying_",
951
+ "type": "address"
952
+ },
953
+ {
954
+ "internalType": "contract ComptrollerInterface",
955
+ "name": "comptroller_",
956
+ "type": "address"
957
+ },
958
+ {
959
+ "internalType": "contract InterestRateModel",
960
+ "name": "interestRateModel_",
961
+ "type": "address"
962
+ },
963
+ {
964
+ "internalType": "uint256",
965
+ "name": "initialExchangeRateMantissa_",
966
+ "type": "uint256"
967
+ },
968
+ {
969
+ "internalType": "string",
970
+ "name": "name_",
971
+ "type": "string"
972
+ },
973
+ {
974
+ "internalType": "string",
975
+ "name": "symbol_",
976
+ "type": "string"
977
+ },
978
+ {
979
+ "internalType": "uint8",
980
+ "name": "decimals_",
981
+ "type": "uint8"
982
+ }
983
+ ],
984
+ "name": "initialize",
985
+ "outputs": [],
986
+ "payable": false,
987
+ "stateMutability": "nonpayable",
988
+ "type": "function"
989
+ },
990
+ {
991
+ "constant": false,
992
+ "inputs": [
993
+ {
994
+ "internalType": "contract ComptrollerInterface",
995
+ "name": "comptroller_",
996
+ "type": "address"
997
+ },
998
+ {
999
+ "internalType": "contract InterestRateModel",
1000
+ "name": "interestRateModel_",
1001
+ "type": "address"
1002
+ },
1003
+ {
1004
+ "internalType": "uint256",
1005
+ "name": "initialExchangeRateMantissa_",
1006
+ "type": "uint256"
1007
+ },
1008
+ {
1009
+ "internalType": "string",
1010
+ "name": "name_",
1011
+ "type": "string"
1012
+ },
1013
+ {
1014
+ "internalType": "string",
1015
+ "name": "symbol_",
1016
+ "type": "string"
1017
+ },
1018
+ {
1019
+ "internalType": "uint8",
1020
+ "name": "decimals_",
1021
+ "type": "uint8"
1022
+ }
1023
+ ],
1024
+ "name": "initialize",
1025
+ "outputs": [],
1026
+ "payable": false,
1027
+ "stateMutability": "nonpayable",
1028
+ "type": "function"
1029
+ },
1030
+ {
1031
+ "constant": true,
1032
+ "inputs": [],
1033
+ "name": "interestRateModel",
1034
+ "outputs": [
1035
+ {
1036
+ "internalType": "contract InterestRateModel",
1037
+ "name": "",
1038
+ "type": "address"
1039
+ }
1040
+ ],
1041
+ "payable": false,
1042
+ "stateMutability": "view",
1043
+ "type": "function"
1044
+ },
1045
+ {
1046
+ "constant": true,
1047
+ "inputs": [],
1048
+ "name": "isCToken",
1049
+ "outputs": [
1050
+ {
1051
+ "internalType": "bool",
1052
+ "name": "",
1053
+ "type": "bool"
1054
+ }
1055
+ ],
1056
+ "payable": false,
1057
+ "stateMutability": "view",
1058
+ "type": "function"
1059
+ },
1060
+ {
1061
+ "constant": false,
1062
+ "inputs": [
1063
+ {
1064
+ "internalType": "address",
1065
+ "name": "borrower",
1066
+ "type": "address"
1067
+ },
1068
+ {
1069
+ "internalType": "uint256",
1070
+ "name": "repayAmount",
1071
+ "type": "uint256"
1072
+ },
1073
+ {
1074
+ "internalType": "contract CTokenInterface",
1075
+ "name": "cTokenCollateral",
1076
+ "type": "address"
1077
+ }
1078
+ ],
1079
+ "name": "liquidateBorrow",
1080
+ "outputs": [
1081
+ {
1082
+ "internalType": "uint256",
1083
+ "name": "",
1084
+ "type": "uint256"
1085
+ }
1086
+ ],
1087
+ "payable": false,
1088
+ "stateMutability": "nonpayable",
1089
+ "type": "function"
1090
+ },
1091
+ {
1092
+ "constant": false,
1093
+ "inputs": [
1094
+ {
1095
+ "internalType": "uint256",
1096
+ "name": "mintAmount",
1097
+ "type": "uint256"
1098
+ }
1099
+ ],
1100
+ "name": "mint",
1101
+ "outputs": [
1102
+ {
1103
+ "internalType": "uint256",
1104
+ "name": "",
1105
+ "type": "uint256"
1106
+ }
1107
+ ],
1108
+ "payable": false,
1109
+ "stateMutability": "nonpayable",
1110
+ "type": "function"
1111
+ },
1112
+ {
1113
+ "constant": true,
1114
+ "inputs": [],
1115
+ "name": "name",
1116
+ "outputs": [
1117
+ {
1118
+ "internalType": "string",
1119
+ "name": "",
1120
+ "type": "string"
1121
+ }
1122
+ ],
1123
+ "payable": false,
1124
+ "stateMutability": "view",
1125
+ "type": "function"
1126
+ },
1127
+ {
1128
+ "constant": true,
1129
+ "inputs": [],
1130
+ "name": "nativeCoinUnderlying",
1131
+ "outputs": [
1132
+ {
1133
+ "internalType": "address",
1134
+ "name": "",
1135
+ "type": "address"
1136
+ }
1137
+ ],
1138
+ "payable": false,
1139
+ "stateMutability": "view",
1140
+ "type": "function"
1141
+ },
1142
+ {
1143
+ "constant": true,
1144
+ "inputs": [],
1145
+ "name": "olaReserveFactorMantissa",
1146
+ "outputs": [
1147
+ {
1148
+ "internalType": "uint256",
1149
+ "name": "",
1150
+ "type": "uint256"
1151
+ }
1152
+ ],
1153
+ "payable": false,
1154
+ "stateMutability": "view",
1155
+ "type": "function"
1156
+ },
1157
+ {
1158
+ "constant": true,
1159
+ "inputs": [],
1160
+ "name": "pendingAdmin",
1161
+ "outputs": [
1162
+ {
1163
+ "internalType": "address payable",
1164
+ "name": "",
1165
+ "type": "address"
1166
+ }
1167
+ ],
1168
+ "payable": false,
1169
+ "stateMutability": "view",
1170
+ "type": "function"
1171
+ },
1172
+ {
1173
+ "constant": false,
1174
+ "inputs": [
1175
+ {
1176
+ "internalType": "uint256",
1177
+ "name": "redeemTokens",
1178
+ "type": "uint256"
1179
+ }
1180
+ ],
1181
+ "name": "redeem",
1182
+ "outputs": [
1183
+ {
1184
+ "internalType": "uint256",
1185
+ "name": "",
1186
+ "type": "uint256"
1187
+ }
1188
+ ],
1189
+ "payable": false,
1190
+ "stateMutability": "nonpayable",
1191
+ "type": "function"
1192
+ },
1193
+ {
1194
+ "constant": false,
1195
+ "inputs": [
1196
+ {
1197
+ "internalType": "uint256",
1198
+ "name": "redeemAmount",
1199
+ "type": "uint256"
1200
+ }
1201
+ ],
1202
+ "name": "redeemUnderlying",
1203
+ "outputs": [
1204
+ {
1205
+ "internalType": "uint256",
1206
+ "name": "",
1207
+ "type": "uint256"
1208
+ }
1209
+ ],
1210
+ "payable": false,
1211
+ "stateMutability": "nonpayable",
1212
+ "type": "function"
1213
+ },
1214
+ {
1215
+ "constant": false,
1216
+ "inputs": [
1217
+ {
1218
+ "internalType": "uint256",
1219
+ "name": "repayAmount",
1220
+ "type": "uint256"
1221
+ }
1222
+ ],
1223
+ "name": "repayBorrow",
1224
+ "outputs": [
1225
+ {
1226
+ "internalType": "uint256",
1227
+ "name": "",
1228
+ "type": "uint256"
1229
+ }
1230
+ ],
1231
+ "payable": false,
1232
+ "stateMutability": "nonpayable",
1233
+ "type": "function"
1234
+ },
1235
+ {
1236
+ "constant": false,
1237
+ "inputs": [
1238
+ {
1239
+ "internalType": "address",
1240
+ "name": "borrower",
1241
+ "type": "address"
1242
+ },
1243
+ {
1244
+ "internalType": "uint256",
1245
+ "name": "repayAmount",
1246
+ "type": "uint256"
1247
+ }
1248
+ ],
1249
+ "name": "repayBorrowBehalf",
1250
+ "outputs": [
1251
+ {
1252
+ "internalType": "uint256",
1253
+ "name": "",
1254
+ "type": "uint256"
1255
+ }
1256
+ ],
1257
+ "payable": false,
1258
+ "stateMutability": "nonpayable",
1259
+ "type": "function"
1260
+ },
1261
+ {
1262
+ "constant": true,
1263
+ "inputs": [],
1264
+ "name": "reserveFactorMantissa",
1265
+ "outputs": [
1266
+ {
1267
+ "internalType": "uint256",
1268
+ "name": "",
1269
+ "type": "uint256"
1270
+ }
1271
+ ],
1272
+ "payable": false,
1273
+ "stateMutability": "view",
1274
+ "type": "function"
1275
+ },
1276
+ {
1277
+ "constant": false,
1278
+ "inputs": [
1279
+ {
1280
+ "internalType": "address",
1281
+ "name": "liquidator",
1282
+ "type": "address"
1283
+ },
1284
+ {
1285
+ "internalType": "address",
1286
+ "name": "borrower",
1287
+ "type": "address"
1288
+ },
1289
+ {
1290
+ "internalType": "uint256",
1291
+ "name": "seizeTokens",
1292
+ "type": "uint256"
1293
+ }
1294
+ ],
1295
+ "name": "seize",
1296
+ "outputs": [
1297
+ {
1298
+ "internalType": "uint256",
1299
+ "name": "",
1300
+ "type": "uint256"
1301
+ }
1302
+ ],
1303
+ "payable": false,
1304
+ "stateMutability": "nonpayable",
1305
+ "type": "function"
1306
+ },
1307
+ {
1308
+ "constant": true,
1309
+ "inputs": [],
1310
+ "name": "supplyRatePerBlock",
1311
+ "outputs": [
1312
+ {
1313
+ "internalType": "uint256",
1314
+ "name": "",
1315
+ "type": "uint256"
1316
+ }
1317
+ ],
1318
+ "payable": false,
1319
+ "stateMutability": "view",
1320
+ "type": "function"
1321
+ },
1322
+ {
1323
+ "constant": false,
1324
+ "inputs": [
1325
+ {
1326
+ "internalType": "contract EIP20NonStandardInterface",
1327
+ "name": "token",
1328
+ "type": "address"
1329
+ }
1330
+ ],
1331
+ "name": "sweepToken",
1332
+ "outputs": [],
1333
+ "payable": false,
1334
+ "stateMutability": "nonpayable",
1335
+ "type": "function"
1336
+ },
1337
+ {
1338
+ "constant": true,
1339
+ "inputs": [],
1340
+ "name": "symbol",
1341
+ "outputs": [
1342
+ {
1343
+ "internalType": "string",
1344
+ "name": "",
1345
+ "type": "string"
1346
+ }
1347
+ ],
1348
+ "payable": false,
1349
+ "stateMutability": "view",
1350
+ "type": "function"
1351
+ },
1352
+ {
1353
+ "constant": true,
1354
+ "inputs": [],
1355
+ "name": "totalBorrows",
1356
+ "outputs": [
1357
+ {
1358
+ "internalType": "uint256",
1359
+ "name": "",
1360
+ "type": "uint256"
1361
+ }
1362
+ ],
1363
+ "payable": false,
1364
+ "stateMutability": "view",
1365
+ "type": "function"
1366
+ },
1367
+ {
1368
+ "constant": false,
1369
+ "inputs": [],
1370
+ "name": "totalBorrowsCurrent",
1371
+ "outputs": [
1372
+ {
1373
+ "internalType": "uint256",
1374
+ "name": "",
1375
+ "type": "uint256"
1376
+ }
1377
+ ],
1378
+ "payable": false,
1379
+ "stateMutability": "nonpayable",
1380
+ "type": "function"
1381
+ },
1382
+ {
1383
+ "constant": true,
1384
+ "inputs": [],
1385
+ "name": "totalReserves",
1386
+ "outputs": [
1387
+ {
1388
+ "internalType": "uint256",
1389
+ "name": "",
1390
+ "type": "uint256"
1391
+ }
1392
+ ],
1393
+ "payable": false,
1394
+ "stateMutability": "view",
1395
+ "type": "function"
1396
+ },
1397
+ {
1398
+ "constant": true,
1399
+ "inputs": [],
1400
+ "name": "totalSupply",
1401
+ "outputs": [
1402
+ {
1403
+ "internalType": "uint256",
1404
+ "name": "",
1405
+ "type": "uint256"
1406
+ }
1407
+ ],
1408
+ "payable": false,
1409
+ "stateMutability": "view",
1410
+ "type": "function"
1411
+ },
1412
+ {
1413
+ "constant": false,
1414
+ "inputs": [
1415
+ {
1416
+ "internalType": "address",
1417
+ "name": "dst",
1418
+ "type": "address"
1419
+ },
1420
+ {
1421
+ "internalType": "uint256",
1422
+ "name": "amount",
1423
+ "type": "uint256"
1424
+ }
1425
+ ],
1426
+ "name": "transfer",
1427
+ "outputs": [
1428
+ {
1429
+ "internalType": "bool",
1430
+ "name": "",
1431
+ "type": "bool"
1432
+ }
1433
+ ],
1434
+ "payable": false,
1435
+ "stateMutability": "nonpayable",
1436
+ "type": "function"
1437
+ },
1438
+ {
1439
+ "constant": false,
1440
+ "inputs": [
1441
+ {
1442
+ "internalType": "address",
1443
+ "name": "src",
1444
+ "type": "address"
1445
+ },
1446
+ {
1447
+ "internalType": "address",
1448
+ "name": "dst",
1449
+ "type": "address"
1450
+ },
1451
+ {
1452
+ "internalType": "uint256",
1453
+ "name": "amount",
1454
+ "type": "uint256"
1455
+ }
1456
+ ],
1457
+ "name": "transferFrom",
1458
+ "outputs": [
1459
+ {
1460
+ "internalType": "bool",
1461
+ "name": "",
1462
+ "type": "bool"
1463
+ }
1464
+ ],
1465
+ "payable": false,
1466
+ "stateMutability": "nonpayable",
1467
+ "type": "function"
1468
+ },
1469
+ {
1470
+ "constant": true,
1471
+ "inputs": [],
1472
+ "name": "underlying",
1473
+ "outputs": [
1474
+ {
1475
+ "internalType": "address",
1476
+ "name": "",
1477
+ "type": "address"
1478
+ }
1479
+ ],
1480
+ "payable": false,
1481
+ "stateMutability": "view",
1482
+ "type": "function"
1483
+ }
1484
+ ]
1485
+ ''')