@exodus/ethereum-lib 0.0.3 → 0.0.5

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,900 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _default = [{
8
+ constant: true,
9
+ inputs: [],
10
+ name: 'name',
11
+ outputs: [{
12
+ name: '',
13
+ type: 'string'
14
+ }],
15
+ payable: false,
16
+ stateMutability: 'view',
17
+ type: 'function'
18
+ }, {
19
+ constant: false,
20
+ inputs: [{
21
+ name: 'spender',
22
+ type: 'address'
23
+ }, {
24
+ name: 'amount',
25
+ type: 'uint256'
26
+ }],
27
+ name: 'approve',
28
+ outputs: [{
29
+ name: '',
30
+ type: 'bool'
31
+ }],
32
+ payable: false,
33
+ stateMutability: 'nonpayable',
34
+ type: 'function'
35
+ }, {
36
+ constant: false,
37
+ inputs: [{
38
+ name: 'repayAmount',
39
+ type: 'uint256'
40
+ }],
41
+ name: 'repayBorrow',
42
+ outputs: [{
43
+ name: '',
44
+ type: 'uint256'
45
+ }],
46
+ payable: false,
47
+ stateMutability: 'nonpayable',
48
+ type: 'function'
49
+ }, {
50
+ constant: true,
51
+ inputs: [],
52
+ name: 'reserveFactorMantissa',
53
+ outputs: [{
54
+ name: '',
55
+ type: 'uint256'
56
+ }],
57
+ payable: false,
58
+ stateMutability: 'view',
59
+ type: 'function'
60
+ }, {
61
+ constant: false,
62
+ inputs: [{
63
+ name: 'account',
64
+ type: 'address'
65
+ }],
66
+ name: 'borrowBalanceCurrent',
67
+ outputs: [{
68
+ name: '',
69
+ type: 'uint256'
70
+ }],
71
+ payable: false,
72
+ stateMutability: 'nonpayable',
73
+ type: 'function'
74
+ }, {
75
+ constant: true,
76
+ inputs: [],
77
+ name: 'totalSupply',
78
+ outputs: [{
79
+ name: '',
80
+ type: 'uint256'
81
+ }],
82
+ payable: false,
83
+ stateMutability: 'view',
84
+ type: 'function'
85
+ }, {
86
+ constant: true,
87
+ inputs: [],
88
+ name: 'exchangeRateStored',
89
+ outputs: [{
90
+ name: '',
91
+ type: 'uint256'
92
+ }],
93
+ payable: false,
94
+ stateMutability: 'view',
95
+ type: 'function'
96
+ }, {
97
+ constant: false,
98
+ inputs: [{
99
+ name: 'src',
100
+ type: 'address'
101
+ }, {
102
+ name: 'dst',
103
+ type: 'address'
104
+ }, {
105
+ name: 'amount',
106
+ type: 'uint256'
107
+ }],
108
+ name: 'transferFrom',
109
+ outputs: [{
110
+ name: '',
111
+ type: 'bool'
112
+ }],
113
+ payable: false,
114
+ stateMutability: 'nonpayable',
115
+ type: 'function'
116
+ }, {
117
+ constant: false,
118
+ inputs: [{
119
+ name: 'borrower',
120
+ type: 'address'
121
+ }, {
122
+ name: 'repayAmount',
123
+ type: 'uint256'
124
+ }],
125
+ name: 'repayBorrowBehalf',
126
+ outputs: [{
127
+ name: '',
128
+ type: 'uint256'
129
+ }],
130
+ payable: false,
131
+ stateMutability: 'nonpayable',
132
+ type: 'function'
133
+ }, {
134
+ constant: true,
135
+ inputs: [],
136
+ name: 'pendingAdmin',
137
+ outputs: [{
138
+ name: '',
139
+ type: 'address'
140
+ }],
141
+ payable: false,
142
+ stateMutability: 'view',
143
+ type: 'function'
144
+ }, {
145
+ constant: true,
146
+ inputs: [],
147
+ name: 'decimals',
148
+ outputs: [{
149
+ name: '',
150
+ type: 'uint256'
151
+ }],
152
+ payable: false,
153
+ stateMutability: 'view',
154
+ type: 'function'
155
+ }, {
156
+ constant: false,
157
+ inputs: [{
158
+ name: 'owner',
159
+ type: 'address'
160
+ }],
161
+ name: 'balanceOfUnderlying',
162
+ outputs: [{
163
+ name: '',
164
+ type: 'uint256'
165
+ }],
166
+ payable: false,
167
+ stateMutability: 'nonpayable',
168
+ type: 'function'
169
+ }, {
170
+ constant: true,
171
+ inputs: [],
172
+ name: 'getCash',
173
+ outputs: [{
174
+ name: '',
175
+ type: 'uint256'
176
+ }],
177
+ payable: false,
178
+ stateMutability: 'view',
179
+ type: 'function'
180
+ }, {
181
+ constant: false,
182
+ inputs: [{
183
+ name: 'newComptroller',
184
+ type: 'address'
185
+ }],
186
+ name: '_setComptroller',
187
+ outputs: [{
188
+ name: '',
189
+ type: 'uint256'
190
+ }],
191
+ payable: false,
192
+ stateMutability: 'nonpayable',
193
+ type: 'function'
194
+ }, {
195
+ constant: true,
196
+ inputs: [],
197
+ name: 'totalBorrows',
198
+ outputs: [{
199
+ name: '',
200
+ type: 'uint256'
201
+ }],
202
+ payable: false,
203
+ stateMutability: 'view',
204
+ type: 'function'
205
+ }, {
206
+ constant: true,
207
+ inputs: [],
208
+ name: 'comptroller',
209
+ outputs: [{
210
+ name: '',
211
+ type: 'address'
212
+ }],
213
+ payable: false,
214
+ stateMutability: 'view',
215
+ type: 'function'
216
+ }, {
217
+ constant: false,
218
+ inputs: [{
219
+ name: 'reduceAmount',
220
+ type: 'uint256'
221
+ }],
222
+ name: '_reduceReserves',
223
+ outputs: [{
224
+ name: '',
225
+ type: 'uint256'
226
+ }],
227
+ payable: false,
228
+ stateMutability: 'nonpayable',
229
+ type: 'function'
230
+ }, {
231
+ constant: true,
232
+ inputs: [],
233
+ name: 'initialExchangeRateMantissa',
234
+ outputs: [{
235
+ name: '',
236
+ type: 'uint256'
237
+ }],
238
+ payable: false,
239
+ stateMutability: 'view',
240
+ type: 'function'
241
+ }, {
242
+ constant: true,
243
+ inputs: [],
244
+ name: 'accrualBlockNumber',
245
+ outputs: [{
246
+ name: '',
247
+ type: 'uint256'
248
+ }],
249
+ payable: false,
250
+ stateMutability: 'view',
251
+ type: 'function'
252
+ }, {
253
+ constant: true,
254
+ inputs: [],
255
+ name: 'underlying',
256
+ outputs: [{
257
+ name: '',
258
+ type: 'address'
259
+ }],
260
+ payable: false,
261
+ stateMutability: 'view',
262
+ type: 'function'
263
+ }, {
264
+ constant: true,
265
+ inputs: [{
266
+ name: 'owner',
267
+ type: 'address'
268
+ }],
269
+ name: 'balanceOf',
270
+ outputs: [{
271
+ name: '',
272
+ type: 'uint256'
273
+ }],
274
+ payable: false,
275
+ stateMutability: 'view',
276
+ type: 'function'
277
+ }, {
278
+ constant: false,
279
+ inputs: [],
280
+ name: 'totalBorrowsCurrent',
281
+ outputs: [{
282
+ name: '',
283
+ type: 'uint256'
284
+ }],
285
+ payable: false,
286
+ stateMutability: 'nonpayable',
287
+ type: 'function'
288
+ }, {
289
+ constant: false,
290
+ inputs: [{
291
+ name: 'redeemAmount',
292
+ type: 'uint256'
293
+ }],
294
+ name: 'redeemUnderlying',
295
+ outputs: [{
296
+ name: '',
297
+ type: 'uint256'
298
+ }],
299
+ payable: false,
300
+ stateMutability: 'nonpayable',
301
+ type: 'function'
302
+ }, {
303
+ constant: true,
304
+ inputs: [],
305
+ name: 'totalReserves',
306
+ outputs: [{
307
+ name: '',
308
+ type: 'uint256'
309
+ }],
310
+ payable: false,
311
+ stateMutability: 'view',
312
+ type: 'function'
313
+ }, {
314
+ constant: true,
315
+ inputs: [],
316
+ name: 'symbol',
317
+ outputs: [{
318
+ name: '',
319
+ type: 'string'
320
+ }],
321
+ payable: false,
322
+ stateMutability: 'view',
323
+ type: 'function'
324
+ }, {
325
+ constant: true,
326
+ inputs: [{
327
+ name: 'account',
328
+ type: 'address'
329
+ }],
330
+ name: 'borrowBalanceStored',
331
+ outputs: [{
332
+ name: '',
333
+ type: 'uint256'
334
+ }],
335
+ payable: false,
336
+ stateMutability: 'view',
337
+ type: 'function'
338
+ }, {
339
+ constant: false,
340
+ inputs: [{
341
+ name: 'mintAmount',
342
+ type: 'uint256'
343
+ }],
344
+ name: 'mint',
345
+ outputs: [{
346
+ name: '',
347
+ type: 'uint256'
348
+ }],
349
+ payable: false,
350
+ stateMutability: 'nonpayable',
351
+ type: 'function'
352
+ }, {
353
+ constant: false,
354
+ inputs: [],
355
+ name: 'accrueInterest',
356
+ outputs: [{
357
+ name: '',
358
+ type: 'uint256'
359
+ }],
360
+ payable: false,
361
+ stateMutability: 'nonpayable',
362
+ type: 'function'
363
+ }, {
364
+ constant: false,
365
+ inputs: [{
366
+ name: 'dst',
367
+ type: 'address'
368
+ }, {
369
+ name: 'amount',
370
+ type: 'uint256'
371
+ }],
372
+ name: 'transfer',
373
+ outputs: [{
374
+ name: '',
375
+ type: 'bool'
376
+ }],
377
+ payable: false,
378
+ stateMutability: 'nonpayable',
379
+ type: 'function'
380
+ }, {
381
+ constant: true,
382
+ inputs: [],
383
+ name: 'borrowIndex',
384
+ outputs: [{
385
+ name: '',
386
+ type: 'uint256'
387
+ }],
388
+ payable: false,
389
+ stateMutability: 'view',
390
+ type: 'function'
391
+ }, {
392
+ constant: true,
393
+ inputs: [],
394
+ name: 'supplyRatePerBlock',
395
+ outputs: [{
396
+ name: '',
397
+ type: 'uint256'
398
+ }],
399
+ payable: false,
400
+ stateMutability: 'view',
401
+ type: 'function'
402
+ }, {
403
+ constant: false,
404
+ inputs: [{
405
+ name: 'liquidator',
406
+ type: 'address'
407
+ }, {
408
+ name: 'borrower',
409
+ type: 'address'
410
+ }, {
411
+ name: 'seizeTokens',
412
+ type: 'uint256'
413
+ }],
414
+ name: 'seize',
415
+ outputs: [{
416
+ name: '',
417
+ type: 'uint256'
418
+ }],
419
+ payable: false,
420
+ stateMutability: 'nonpayable',
421
+ type: 'function'
422
+ }, {
423
+ constant: false,
424
+ inputs: [{
425
+ name: 'newPendingAdmin',
426
+ type: 'address'
427
+ }],
428
+ name: '_setPendingAdmin',
429
+ outputs: [{
430
+ name: '',
431
+ type: 'uint256'
432
+ }],
433
+ payable: false,
434
+ stateMutability: 'nonpayable',
435
+ type: 'function'
436
+ }, {
437
+ constant: false,
438
+ inputs: [],
439
+ name: 'exchangeRateCurrent',
440
+ outputs: [{
441
+ name: '',
442
+ type: 'uint256'
443
+ }],
444
+ payable: false,
445
+ stateMutability: 'nonpayable',
446
+ type: 'function'
447
+ }, {
448
+ constant: true,
449
+ inputs: [{
450
+ name: 'account',
451
+ type: 'address'
452
+ }],
453
+ name: 'getAccountSnapshot',
454
+ outputs: [{
455
+ name: '',
456
+ type: 'uint256'
457
+ }, {
458
+ name: '',
459
+ type: 'uint256'
460
+ }, {
461
+ name: '',
462
+ type: 'uint256'
463
+ }, {
464
+ name: '',
465
+ type: 'uint256'
466
+ }],
467
+ payable: false,
468
+ stateMutability: 'view',
469
+ type: 'function'
470
+ }, {
471
+ constant: false,
472
+ inputs: [{
473
+ name: 'borrowAmount',
474
+ type: 'uint256'
475
+ }],
476
+ name: 'borrow',
477
+ outputs: [{
478
+ name: '',
479
+ type: 'uint256'
480
+ }],
481
+ payable: false,
482
+ stateMutability: 'nonpayable',
483
+ type: 'function'
484
+ }, {
485
+ constant: false,
486
+ inputs: [{
487
+ name: 'redeemTokens',
488
+ type: 'uint256'
489
+ }],
490
+ name: 'redeem',
491
+ outputs: [{
492
+ name: '',
493
+ type: 'uint256'
494
+ }],
495
+ payable: false,
496
+ stateMutability: 'nonpayable',
497
+ type: 'function'
498
+ }, {
499
+ constant: true,
500
+ inputs: [{
501
+ name: 'owner',
502
+ type: 'address'
503
+ }, {
504
+ name: 'spender',
505
+ type: 'address'
506
+ }],
507
+ name: 'allowance',
508
+ outputs: [{
509
+ name: '',
510
+ type: 'uint256'
511
+ }],
512
+ payable: false,
513
+ stateMutability: 'view',
514
+ type: 'function'
515
+ }, {
516
+ constant: false,
517
+ inputs: [],
518
+ name: '_acceptAdmin',
519
+ outputs: [{
520
+ name: '',
521
+ type: 'uint256'
522
+ }],
523
+ payable: false,
524
+ stateMutability: 'nonpayable',
525
+ type: 'function'
526
+ }, {
527
+ constant: false,
528
+ inputs: [{
529
+ name: 'newInterestRateModel',
530
+ type: 'address'
531
+ }],
532
+ name: '_setInterestRateModel',
533
+ outputs: [{
534
+ name: '',
535
+ type: 'uint256'
536
+ }],
537
+ payable: false,
538
+ stateMutability: 'nonpayable',
539
+ type: 'function'
540
+ }, {
541
+ constant: true,
542
+ inputs: [],
543
+ name: 'interestRateModel',
544
+ outputs: [{
545
+ name: '',
546
+ type: 'address'
547
+ }],
548
+ payable: false,
549
+ stateMutability: 'view',
550
+ type: 'function'
551
+ }, {
552
+ constant: false,
553
+ inputs: [{
554
+ name: 'borrower',
555
+ type: 'address'
556
+ }, {
557
+ name: 'repayAmount',
558
+ type: 'uint256'
559
+ }, {
560
+ name: 'cTokenCollateral',
561
+ type: 'address'
562
+ }],
563
+ name: 'liquidateBorrow',
564
+ outputs: [{
565
+ name: '',
566
+ type: 'uint256'
567
+ }],
568
+ payable: false,
569
+ stateMutability: 'nonpayable',
570
+ type: 'function'
571
+ }, {
572
+ constant: true,
573
+ inputs: [],
574
+ name: 'admin',
575
+ outputs: [{
576
+ name: '',
577
+ type: 'address'
578
+ }],
579
+ payable: false,
580
+ stateMutability: 'view',
581
+ type: 'function'
582
+ }, {
583
+ constant: true,
584
+ inputs: [],
585
+ name: 'borrowRatePerBlock',
586
+ outputs: [{
587
+ name: '',
588
+ type: 'uint256'
589
+ }],
590
+ payable: false,
591
+ stateMutability: 'view',
592
+ type: 'function'
593
+ }, {
594
+ constant: false,
595
+ inputs: [{
596
+ name: 'newReserveFactorMantissa',
597
+ type: 'uint256'
598
+ }],
599
+ name: '_setReserveFactor',
600
+ outputs: [{
601
+ name: '',
602
+ type: 'uint256'
603
+ }],
604
+ payable: false,
605
+ stateMutability: 'nonpayable',
606
+ type: 'function'
607
+ }, {
608
+ constant: true,
609
+ inputs: [],
610
+ name: 'isCToken',
611
+ outputs: [{
612
+ name: '',
613
+ type: 'bool'
614
+ }],
615
+ payable: false,
616
+ stateMutability: 'view',
617
+ type: 'function'
618
+ }, {
619
+ inputs: [{
620
+ name: 'underlying_',
621
+ type: 'address'
622
+ }, {
623
+ name: 'comptroller_',
624
+ type: 'address'
625
+ }, {
626
+ name: 'interestRateModel_',
627
+ type: 'address'
628
+ }, {
629
+ name: 'initialExchangeRateMantissa_',
630
+ type: 'uint256'
631
+ }, {
632
+ name: 'name_',
633
+ type: 'string'
634
+ }, {
635
+ name: 'symbol_',
636
+ type: 'string'
637
+ }, {
638
+ name: 'decimals_',
639
+ type: 'uint256'
640
+ }],
641
+ payable: false,
642
+ stateMutability: 'nonpayable',
643
+ type: 'constructor'
644
+ }, {
645
+ anonymous: false,
646
+ inputs: [{
647
+ indexed: false,
648
+ name: 'interestAccumulated',
649
+ type: 'uint256'
650
+ }, {
651
+ indexed: false,
652
+ name: 'borrowIndex',
653
+ type: 'uint256'
654
+ }, {
655
+ indexed: false,
656
+ name: 'totalBorrows',
657
+ type: 'uint256'
658
+ }],
659
+ name: 'AccrueInterest',
660
+ type: 'event'
661
+ }, {
662
+ anonymous: false,
663
+ inputs: [{
664
+ indexed: false,
665
+ name: 'minter',
666
+ type: 'address'
667
+ }, {
668
+ indexed: false,
669
+ name: 'mintAmount',
670
+ type: 'uint256'
671
+ }, {
672
+ indexed: false,
673
+ name: 'mintTokens',
674
+ type: 'uint256'
675
+ }],
676
+ name: 'Mint',
677
+ type: 'event'
678
+ }, {
679
+ anonymous: false,
680
+ inputs: [{
681
+ indexed: false,
682
+ name: 'redeemer',
683
+ type: 'address'
684
+ }, {
685
+ indexed: false,
686
+ name: 'redeemAmount',
687
+ type: 'uint256'
688
+ }, {
689
+ indexed: false,
690
+ name: 'redeemTokens',
691
+ type: 'uint256'
692
+ }],
693
+ name: 'Redeem',
694
+ type: 'event'
695
+ }, {
696
+ anonymous: false,
697
+ inputs: [{
698
+ indexed: false,
699
+ name: 'borrower',
700
+ type: 'address'
701
+ }, {
702
+ indexed: false,
703
+ name: 'borrowAmount',
704
+ type: 'uint256'
705
+ }, {
706
+ indexed: false,
707
+ name: 'accountBorrows',
708
+ type: 'uint256'
709
+ }, {
710
+ indexed: false,
711
+ name: 'totalBorrows',
712
+ type: 'uint256'
713
+ }],
714
+ name: 'Borrow',
715
+ type: 'event'
716
+ }, {
717
+ anonymous: false,
718
+ inputs: [{
719
+ indexed: false,
720
+ name: 'payer',
721
+ type: 'address'
722
+ }, {
723
+ indexed: false,
724
+ name: 'borrower',
725
+ type: 'address'
726
+ }, {
727
+ indexed: false,
728
+ name: 'repayAmount',
729
+ type: 'uint256'
730
+ }, {
731
+ indexed: false,
732
+ name: 'accountBorrows',
733
+ type: 'uint256'
734
+ }, {
735
+ indexed: false,
736
+ name: 'totalBorrows',
737
+ type: 'uint256'
738
+ }],
739
+ name: 'RepayBorrow',
740
+ type: 'event'
741
+ }, {
742
+ anonymous: false,
743
+ inputs: [{
744
+ indexed: false,
745
+ name: 'liquidator',
746
+ type: 'address'
747
+ }, {
748
+ indexed: false,
749
+ name: 'borrower',
750
+ type: 'address'
751
+ }, {
752
+ indexed: false,
753
+ name: 'repayAmount',
754
+ type: 'uint256'
755
+ }, {
756
+ indexed: false,
757
+ name: 'cTokenCollateral',
758
+ type: 'address'
759
+ }, {
760
+ indexed: false,
761
+ name: 'seizeTokens',
762
+ type: 'uint256'
763
+ }],
764
+ name: 'LiquidateBorrow',
765
+ type: 'event'
766
+ }, {
767
+ anonymous: false,
768
+ inputs: [{
769
+ indexed: false,
770
+ name: 'oldPendingAdmin',
771
+ type: 'address'
772
+ }, {
773
+ indexed: false,
774
+ name: 'newPendingAdmin',
775
+ type: 'address'
776
+ }],
777
+ name: 'NewPendingAdmin',
778
+ type: 'event'
779
+ }, {
780
+ anonymous: false,
781
+ inputs: [{
782
+ indexed: false,
783
+ name: 'oldAdmin',
784
+ type: 'address'
785
+ }, {
786
+ indexed: false,
787
+ name: 'newAdmin',
788
+ type: 'address'
789
+ }],
790
+ name: 'NewAdmin',
791
+ type: 'event'
792
+ }, {
793
+ anonymous: false,
794
+ inputs: [{
795
+ indexed: false,
796
+ name: 'oldComptroller',
797
+ type: 'address'
798
+ }, {
799
+ indexed: false,
800
+ name: 'newComptroller',
801
+ type: 'address'
802
+ }],
803
+ name: 'NewComptroller',
804
+ type: 'event'
805
+ }, {
806
+ anonymous: false,
807
+ inputs: [{
808
+ indexed: false,
809
+ name: 'oldInterestRateModel',
810
+ type: 'address'
811
+ }, {
812
+ indexed: false,
813
+ name: 'newInterestRateModel',
814
+ type: 'address'
815
+ }],
816
+ name: 'NewMarketInterestRateModel',
817
+ type: 'event'
818
+ }, {
819
+ anonymous: false,
820
+ inputs: [{
821
+ indexed: false,
822
+ name: 'oldReserveFactorMantissa',
823
+ type: 'uint256'
824
+ }, {
825
+ indexed: false,
826
+ name: 'newReserveFactorMantissa',
827
+ type: 'uint256'
828
+ }],
829
+ name: 'NewReserveFactor',
830
+ type: 'event'
831
+ }, {
832
+ anonymous: false,
833
+ inputs: [{
834
+ indexed: false,
835
+ name: 'admin',
836
+ type: 'address'
837
+ }, {
838
+ indexed: false,
839
+ name: 'reduceAmount',
840
+ type: 'uint256'
841
+ }, {
842
+ indexed: false,
843
+ name: 'newTotalReserves',
844
+ type: 'uint256'
845
+ }],
846
+ name: 'ReservesReduced',
847
+ type: 'event'
848
+ }, {
849
+ anonymous: false,
850
+ inputs: [{
851
+ indexed: false,
852
+ name: 'error',
853
+ type: 'uint256'
854
+ }, {
855
+ indexed: false,
856
+ name: 'info',
857
+ type: 'uint256'
858
+ }, {
859
+ indexed: false,
860
+ name: 'detail',
861
+ type: 'uint256'
862
+ }],
863
+ name: 'Failure',
864
+ type: 'event'
865
+ }, {
866
+ anonymous: false,
867
+ inputs: [{
868
+ indexed: true,
869
+ name: 'from',
870
+ type: 'address'
871
+ }, {
872
+ indexed: true,
873
+ name: 'to',
874
+ type: 'address'
875
+ }, {
876
+ indexed: false,
877
+ name: 'amount',
878
+ type: 'uint256'
879
+ }],
880
+ name: 'Transfer',
881
+ type: 'event'
882
+ }, {
883
+ anonymous: false,
884
+ inputs: [{
885
+ indexed: true,
886
+ name: 'owner',
887
+ type: 'address'
888
+ }, {
889
+ indexed: true,
890
+ name: 'spender',
891
+ type: 'address'
892
+ }, {
893
+ indexed: false,
894
+ name: 'amount',
895
+ type: 'uint256'
896
+ }],
897
+ name: 'Approval',
898
+ type: 'event'
899
+ }];
900
+ exports.default = _default;