@pearcurve/sdk 0.1.0 → 0.1.2

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