@bulla/registry 0.0.0-stage → 1.0.0

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