@aurigami/sdk 0.1.0 → 0.1.4

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