@pearcurve/sdk 0.1.0 → 0.1.1

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