@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,3157 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "_asset",
7
+ "type": "address",
8
+ "internalType": "contract IERC20"
9
+ },
10
+ {
11
+ "name": "_invoiceProviderAdapter",
12
+ "type": "address",
13
+ "internalType": "contract IInvoiceProviderAdapterV2"
14
+ },
15
+ {
16
+ "name": "_bullaFrendLend",
17
+ "type": "address",
18
+ "internalType": "contract IBullaFrendLendV2"
19
+ },
20
+ {
21
+ "name": "_underwriter",
22
+ "type": "address",
23
+ "internalType": "address"
24
+ },
25
+ {
26
+ "name": "_depositPermissions",
27
+ "type": "address",
28
+ "internalType": "contract Permissions"
29
+ },
30
+ {
31
+ "name": "_redeemPermissions",
32
+ "type": "address",
33
+ "internalType": "contract Permissions"
34
+ },
35
+ {
36
+ "name": "_factoringPermissions",
37
+ "type": "address",
38
+ "internalType": "contract Permissions"
39
+ },
40
+ {
41
+ "name": "_bullaDao",
42
+ "type": "address",
43
+ "internalType": "address"
44
+ },
45
+ {
46
+ "name": "_protocolFeeBps",
47
+ "type": "uint16",
48
+ "internalType": "uint16"
49
+ },
50
+ {
51
+ "name": "_adminFeeBps",
52
+ "type": "uint16",
53
+ "internalType": "uint16"
54
+ },
55
+ {
56
+ "name": "_poolName",
57
+ "type": "string",
58
+ "internalType": "string"
59
+ },
60
+ {
61
+ "name": "_targetYieldBps",
62
+ "type": "uint16",
63
+ "internalType": "uint16"
64
+ },
65
+ {
66
+ "name": "_tokenName",
67
+ "type": "string",
68
+ "internalType": "string"
69
+ },
70
+ {
71
+ "name": "_tokenSymbol",
72
+ "type": "string",
73
+ "internalType": "string"
74
+ },
75
+ {
76
+ "name": "_insurer",
77
+ "type": "address",
78
+ "internalType": "address"
79
+ },
80
+ {
81
+ "name": "_insuranceFeeBps",
82
+ "type": "uint16",
83
+ "internalType": "uint16"
84
+ },
85
+ {
86
+ "name": "_impairmentGrossGainBps",
87
+ "type": "uint16",
88
+ "internalType": "uint16"
89
+ },
90
+ {
91
+ "name": "_recoveryProfitRatioBps",
92
+ "type": "uint16",
93
+ "internalType": "uint16"
94
+ }
95
+ ],
96
+ "stateMutability": "nonpayable"
97
+ },
98
+ {
99
+ "type": "function",
100
+ "name": "adminFeeBalance",
101
+ "inputs": [],
102
+ "outputs": [
103
+ {
104
+ "name": "",
105
+ "type": "uint256",
106
+ "internalType": "uint256"
107
+ }
108
+ ],
109
+ "stateMutability": "view"
110
+ },
111
+ {
112
+ "type": "function",
113
+ "name": "adminFeeBps",
114
+ "inputs": [],
115
+ "outputs": [
116
+ {
117
+ "name": "",
118
+ "type": "uint16",
119
+ "internalType": "uint16"
120
+ }
121
+ ],
122
+ "stateMutability": "view"
123
+ },
124
+ {
125
+ "type": "function",
126
+ "name": "allowance",
127
+ "inputs": [
128
+ {
129
+ "name": "owner",
130
+ "type": "address",
131
+ "internalType": "address"
132
+ },
133
+ {
134
+ "name": "spender",
135
+ "type": "address",
136
+ "internalType": "address"
137
+ }
138
+ ],
139
+ "outputs": [
140
+ {
141
+ "name": "",
142
+ "type": "uint256",
143
+ "internalType": "uint256"
144
+ }
145
+ ],
146
+ "stateMutability": "view"
147
+ },
148
+ {
149
+ "type": "function",
150
+ "name": "approvalDuration",
151
+ "inputs": [],
152
+ "outputs": [
153
+ {
154
+ "name": "",
155
+ "type": "uint256",
156
+ "internalType": "uint256"
157
+ }
158
+ ],
159
+ "stateMutability": "view"
160
+ },
161
+ {
162
+ "type": "function",
163
+ "name": "approve",
164
+ "inputs": [
165
+ {
166
+ "name": "spender",
167
+ "type": "address",
168
+ "internalType": "address"
169
+ },
170
+ {
171
+ "name": "value",
172
+ "type": "uint256",
173
+ "internalType": "uint256"
174
+ }
175
+ ],
176
+ "outputs": [
177
+ {
178
+ "name": "",
179
+ "type": "bool",
180
+ "internalType": "bool"
181
+ }
182
+ ],
183
+ "stateMutability": "nonpayable"
184
+ },
185
+ {
186
+ "type": "function",
187
+ "name": "approveInvoices",
188
+ "inputs": [
189
+ {
190
+ "name": "params",
191
+ "type": "tuple[]",
192
+ "internalType": "struct IBullaFactoringV2_2.ApproveInvoiceParams[]",
193
+ "components": [
194
+ {
195
+ "name": "invoiceId",
196
+ "type": "uint256",
197
+ "internalType": "uint256"
198
+ },
199
+ {
200
+ "name": "targetYieldBps",
201
+ "type": "uint16",
202
+ "internalType": "uint16"
203
+ },
204
+ {
205
+ "name": "spreadBps",
206
+ "type": "uint16",
207
+ "internalType": "uint16"
208
+ },
209
+ {
210
+ "name": "upfrontBps",
211
+ "type": "uint16",
212
+ "internalType": "uint16"
213
+ },
214
+ {
215
+ "name": "initialInvoiceValueOverride",
216
+ "type": "uint256",
217
+ "internalType": "uint256"
218
+ }
219
+ ]
220
+ }
221
+ ],
222
+ "outputs": [],
223
+ "stateMutability": "nonpayable"
224
+ },
225
+ {
226
+ "type": "function",
227
+ "name": "approvedInvoices",
228
+ "inputs": [
229
+ {
230
+ "name": "",
231
+ "type": "uint256",
232
+ "internalType": "uint256"
233
+ }
234
+ ],
235
+ "outputs": [
236
+ {
237
+ "name": "approved",
238
+ "type": "bool",
239
+ "internalType": "bool"
240
+ },
241
+ {
242
+ "name": "creditor",
243
+ "type": "address",
244
+ "internalType": "address"
245
+ },
246
+ {
247
+ "name": "validUntil",
248
+ "type": "uint256",
249
+ "internalType": "uint256"
250
+ },
251
+ {
252
+ "name": "invoiceDueDate",
253
+ "type": "uint256",
254
+ "internalType": "uint256"
255
+ },
256
+ {
257
+ "name": "impairmentDate",
258
+ "type": "uint256",
259
+ "internalType": "uint256"
260
+ },
261
+ {
262
+ "name": "fundedTimestamp",
263
+ "type": "uint256",
264
+ "internalType": "uint256"
265
+ },
266
+ {
267
+ "name": "fundedAmountGross",
268
+ "type": "uint256",
269
+ "internalType": "uint256"
270
+ },
271
+ {
272
+ "name": "fundedAmountNet",
273
+ "type": "uint256",
274
+ "internalType": "uint256"
275
+ },
276
+ {
277
+ "name": "initialInvoiceValue",
278
+ "type": "uint256",
279
+ "internalType": "uint256"
280
+ },
281
+ {
282
+ "name": "initialPaidAmount",
283
+ "type": "uint256",
284
+ "internalType": "uint256"
285
+ },
286
+ {
287
+ "name": "protocolFee",
288
+ "type": "uint256",
289
+ "internalType": "uint256"
290
+ },
291
+ {
292
+ "name": "receiverAddress",
293
+ "type": "address",
294
+ "internalType": "address"
295
+ },
296
+ {
297
+ "name": "feeParams",
298
+ "type": "tuple",
299
+ "internalType": "struct IBullaFactoringV2_2.FeeParams",
300
+ "components": [
301
+ {
302
+ "name": "targetYieldBps",
303
+ "type": "uint16",
304
+ "internalType": "uint16"
305
+ },
306
+ {
307
+ "name": "spreadBps",
308
+ "type": "uint16",
309
+ "internalType": "uint16"
310
+ },
311
+ {
312
+ "name": "upfrontBps",
313
+ "type": "uint16",
314
+ "internalType": "uint16"
315
+ },
316
+ {
317
+ "name": "protocolFeeBps",
318
+ "type": "uint16",
319
+ "internalType": "uint16"
320
+ },
321
+ {
322
+ "name": "adminFeeBps",
323
+ "type": "uint16",
324
+ "internalType": "uint16"
325
+ }
326
+ ]
327
+ },
328
+ {
329
+ "name": "perSecondInterestRateRay",
330
+ "type": "uint256",
331
+ "internalType": "uint256"
332
+ }
333
+ ],
334
+ "stateMutability": "view"
335
+ },
336
+ {
337
+ "type": "function",
338
+ "name": "asset",
339
+ "inputs": [],
340
+ "outputs": [
341
+ {
342
+ "name": "",
343
+ "type": "address",
344
+ "internalType": "address"
345
+ }
346
+ ],
347
+ "stateMutability": "view"
348
+ },
349
+ {
350
+ "type": "function",
351
+ "name": "assetAddress",
352
+ "inputs": [],
353
+ "outputs": [
354
+ {
355
+ "name": "",
356
+ "type": "address",
357
+ "internalType": "contract IERC20"
358
+ }
359
+ ],
360
+ "stateMutability": "view"
361
+ },
362
+ {
363
+ "type": "function",
364
+ "name": "balanceOf",
365
+ "inputs": [
366
+ {
367
+ "name": "account",
368
+ "type": "address",
369
+ "internalType": "address"
370
+ }
371
+ ],
372
+ "outputs": [
373
+ {
374
+ "name": "",
375
+ "type": "uint256",
376
+ "internalType": "uint256"
377
+ }
378
+ ],
379
+ "stateMutability": "view"
380
+ },
381
+ {
382
+ "type": "function",
383
+ "name": "bullaDao",
384
+ "inputs": [],
385
+ "outputs": [
386
+ {
387
+ "name": "",
388
+ "type": "address",
389
+ "internalType": "address"
390
+ }
391
+ ],
392
+ "stateMutability": "view"
393
+ },
394
+ {
395
+ "type": "function",
396
+ "name": "bullaFrendLend",
397
+ "inputs": [],
398
+ "outputs": [
399
+ {
400
+ "name": "",
401
+ "type": "address",
402
+ "internalType": "contract IBullaFrendLendV2"
403
+ }
404
+ ],
405
+ "stateMutability": "view"
406
+ },
407
+ {
408
+ "type": "function",
409
+ "name": "calculateAccruedProfits",
410
+ "inputs": [],
411
+ "outputs": [
412
+ {
413
+ "name": "",
414
+ "type": "uint256",
415
+ "internalType": "uint256"
416
+ }
417
+ ],
418
+ "stateMutability": "view"
419
+ },
420
+ {
421
+ "type": "function",
422
+ "name": "calculateCapitalAccount",
423
+ "inputs": [],
424
+ "outputs": [
425
+ {
426
+ "name": "",
427
+ "type": "uint256",
428
+ "internalType": "uint256"
429
+ }
430
+ ],
431
+ "stateMutability": "view"
432
+ },
433
+ {
434
+ "type": "function",
435
+ "name": "calculateKickbackAmount",
436
+ "inputs": [
437
+ {
438
+ "name": "invoiceId",
439
+ "type": "uint256",
440
+ "internalType": "uint256"
441
+ }
442
+ ],
443
+ "outputs": [
444
+ {
445
+ "name": "kickbackAmount",
446
+ "type": "uint256",
447
+ "internalType": "uint256"
448
+ },
449
+ {
450
+ "name": "trueInterest",
451
+ "type": "uint256",
452
+ "internalType": "uint256"
453
+ },
454
+ {
455
+ "name": "trueSpreadAmount",
456
+ "type": "uint256",
457
+ "internalType": "uint256"
458
+ },
459
+ {
460
+ "name": "trueAdminFee",
461
+ "type": "uint256",
462
+ "internalType": "uint256"
463
+ }
464
+ ],
465
+ "stateMutability": "view"
466
+ },
467
+ {
468
+ "type": "function",
469
+ "name": "calculateTargetFees",
470
+ "inputs": [
471
+ {
472
+ "name": "invoiceId",
473
+ "type": "uint256",
474
+ "internalType": "uint256"
475
+ },
476
+ {
477
+ "name": "factorerUpfrontBps",
478
+ "type": "uint16",
479
+ "internalType": "uint16"
480
+ }
481
+ ],
482
+ "outputs": [
483
+ {
484
+ "name": "fundedAmountGross",
485
+ "type": "uint256",
486
+ "internalType": "uint256"
487
+ },
488
+ {
489
+ "name": "adminFee",
490
+ "type": "uint256",
491
+ "internalType": "uint256"
492
+ },
493
+ {
494
+ "name": "targetInterest",
495
+ "type": "uint256",
496
+ "internalType": "uint256"
497
+ },
498
+ {
499
+ "name": "targetSpreadAmount",
500
+ "type": "uint256",
501
+ "internalType": "uint256"
502
+ },
503
+ {
504
+ "name": "protocolFee",
505
+ "type": "uint256",
506
+ "internalType": "uint256"
507
+ },
508
+ {
509
+ "name": "insurancePremium",
510
+ "type": "uint256",
511
+ "internalType": "uint256"
512
+ },
513
+ {
514
+ "name": "netFundedAmount",
515
+ "type": "uint256",
516
+ "internalType": "uint256"
517
+ }
518
+ ],
519
+ "stateMutability": "view"
520
+ },
521
+ {
522
+ "type": "function",
523
+ "name": "clearStalePendingLoanOffers",
524
+ "inputs": [
525
+ {
526
+ "name": "offset",
527
+ "type": "uint256",
528
+ "internalType": "uint256"
529
+ },
530
+ {
531
+ "name": "limit",
532
+ "type": "uint256",
533
+ "internalType": "uint256"
534
+ }
535
+ ],
536
+ "outputs": [
537
+ {
538
+ "name": "processed",
539
+ "type": "uint256",
540
+ "internalType": "uint256"
541
+ },
542
+ {
543
+ "name": "removed",
544
+ "type": "uint256",
545
+ "internalType": "uint256"
546
+ },
547
+ {
548
+ "name": "remaining",
549
+ "type": "uint256",
550
+ "internalType": "uint256"
551
+ }
552
+ ],
553
+ "stateMutability": "nonpayable"
554
+ },
555
+ {
556
+ "type": "function",
557
+ "name": "convertToAssets",
558
+ "inputs": [
559
+ {
560
+ "name": "shares",
561
+ "type": "uint256",
562
+ "internalType": "uint256"
563
+ }
564
+ ],
565
+ "outputs": [
566
+ {
567
+ "name": "",
568
+ "type": "uint256",
569
+ "internalType": "uint256"
570
+ }
571
+ ],
572
+ "stateMutability": "view"
573
+ },
574
+ {
575
+ "type": "function",
576
+ "name": "convertToShares",
577
+ "inputs": [
578
+ {
579
+ "name": "assets",
580
+ "type": "uint256",
581
+ "internalType": "uint256"
582
+ }
583
+ ],
584
+ "outputs": [
585
+ {
586
+ "name": "",
587
+ "type": "uint256",
588
+ "internalType": "uint256"
589
+ }
590
+ ],
591
+ "stateMutability": "view"
592
+ },
593
+ {
594
+ "type": "function",
595
+ "name": "creationTimestamp",
596
+ "inputs": [],
597
+ "outputs": [
598
+ {
599
+ "name": "",
600
+ "type": "uint256",
601
+ "internalType": "uint256"
602
+ }
603
+ ],
604
+ "stateMutability": "view"
605
+ },
606
+ {
607
+ "type": "function",
608
+ "name": "decimals",
609
+ "inputs": [],
610
+ "outputs": [
611
+ {
612
+ "name": "",
613
+ "type": "uint8",
614
+ "internalType": "uint8"
615
+ }
616
+ ],
617
+ "stateMutability": "view"
618
+ },
619
+ {
620
+ "type": "function",
621
+ "name": "deposit",
622
+ "inputs": [
623
+ {
624
+ "name": "assets",
625
+ "type": "uint256",
626
+ "internalType": "uint256"
627
+ },
628
+ {
629
+ "name": "receiver",
630
+ "type": "address",
631
+ "internalType": "address"
632
+ }
633
+ ],
634
+ "outputs": [
635
+ {
636
+ "name": "",
637
+ "type": "uint256",
638
+ "internalType": "uint256"
639
+ }
640
+ ],
641
+ "stateMutability": "nonpayable"
642
+ },
643
+ {
644
+ "type": "function",
645
+ "name": "depositPermissions",
646
+ "inputs": [],
647
+ "outputs": [
648
+ {
649
+ "name": "",
650
+ "type": "address",
651
+ "internalType": "contract Permissions"
652
+ }
653
+ ],
654
+ "stateMutability": "view"
655
+ },
656
+ {
657
+ "type": "function",
658
+ "name": "factoringPermissions",
659
+ "inputs": [],
660
+ "outputs": [
661
+ {
662
+ "name": "",
663
+ "type": "address",
664
+ "internalType": "contract Permissions"
665
+ }
666
+ ],
667
+ "stateMutability": "view"
668
+ },
669
+ {
670
+ "type": "function",
671
+ "name": "fundInvoices",
672
+ "inputs": [
673
+ {
674
+ "name": "params",
675
+ "type": "tuple[]",
676
+ "internalType": "struct IBullaFactoringV2_2.FundInvoiceParams[]",
677
+ "components": [
678
+ {
679
+ "name": "invoiceId",
680
+ "type": "uint256",
681
+ "internalType": "uint256"
682
+ },
683
+ {
684
+ "name": "factorerUpfrontBps",
685
+ "type": "uint16",
686
+ "internalType": "uint16"
687
+ },
688
+ {
689
+ "name": "receiverAddressIndex",
690
+ "type": "uint8",
691
+ "internalType": "uint8"
692
+ }
693
+ ]
694
+ },
695
+ {
696
+ "name": "receiverAddresses",
697
+ "type": "address[]",
698
+ "internalType": "address[]"
699
+ }
700
+ ],
701
+ "outputs": [
702
+ {
703
+ "name": "fundedAmounts",
704
+ "type": "uint256[]",
705
+ "internalType": "uint256[]"
706
+ }
707
+ ],
708
+ "stateMutability": "nonpayable"
709
+ },
710
+ {
711
+ "type": "function",
712
+ "name": "getActiveInvoiceAt",
713
+ "inputs": [
714
+ {
715
+ "name": "index",
716
+ "type": "uint256",
717
+ "internalType": "uint256"
718
+ }
719
+ ],
720
+ "outputs": [
721
+ {
722
+ "name": "",
723
+ "type": "uint256",
724
+ "internalType": "uint256"
725
+ }
726
+ ],
727
+ "stateMutability": "view"
728
+ },
729
+ {
730
+ "type": "function",
731
+ "name": "getActiveInvoices",
732
+ "inputs": [],
733
+ "outputs": [
734
+ {
735
+ "name": "",
736
+ "type": "uint256[]",
737
+ "internalType": "uint256[]"
738
+ }
739
+ ],
740
+ "stateMutability": "view"
741
+ },
742
+ {
743
+ "type": "function",
744
+ "name": "getActiveInvoicesCount",
745
+ "inputs": [],
746
+ "outputs": [
747
+ {
748
+ "name": "",
749
+ "type": "uint256",
750
+ "internalType": "uint256"
751
+ }
752
+ ],
753
+ "stateMutability": "view"
754
+ },
755
+ {
756
+ "type": "function",
757
+ "name": "getFundInfo",
758
+ "inputs": [],
759
+ "outputs": [
760
+ {
761
+ "name": "",
762
+ "type": "tuple",
763
+ "internalType": "struct IBullaFactoringV2_2.FundInfo",
764
+ "components": [
765
+ {
766
+ "name": "name",
767
+ "type": "string",
768
+ "internalType": "string"
769
+ },
770
+ {
771
+ "name": "creationTimestamp",
772
+ "type": "uint256",
773
+ "internalType": "uint256"
774
+ },
775
+ {
776
+ "name": "fundBalance",
777
+ "type": "uint256",
778
+ "internalType": "uint256"
779
+ },
780
+ {
781
+ "name": "deployedCapital",
782
+ "type": "uint256",
783
+ "internalType": "uint256"
784
+ },
785
+ {
786
+ "name": "capitalAccount",
787
+ "type": "uint256",
788
+ "internalType": "uint256"
789
+ },
790
+ {
791
+ "name": "price",
792
+ "type": "uint256",
793
+ "internalType": "uint256"
794
+ },
795
+ {
796
+ "name": "tokensAvailableForRedemption",
797
+ "type": "uint256",
798
+ "internalType": "uint256"
799
+ },
800
+ {
801
+ "name": "adminFeeBps",
802
+ "type": "uint16",
803
+ "internalType": "uint16"
804
+ },
805
+ {
806
+ "name": "targetYieldBps",
807
+ "type": "uint256",
808
+ "internalType": "uint256"
809
+ }
810
+ ]
811
+ }
812
+ ],
813
+ "stateMutability": "view"
814
+ },
815
+ {
816
+ "type": "function",
817
+ "name": "getRedemptionQueue",
818
+ "inputs": [],
819
+ "outputs": [
820
+ {
821
+ "name": "",
822
+ "type": "address",
823
+ "internalType": "contract IRedemptionQueue"
824
+ }
825
+ ],
826
+ "stateMutability": "view"
827
+ },
828
+ {
829
+ "type": "function",
830
+ "name": "gracePeriodDays",
831
+ "inputs": [],
832
+ "outputs": [
833
+ {
834
+ "name": "",
835
+ "type": "uint256",
836
+ "internalType": "uint256"
837
+ }
838
+ ],
839
+ "stateMutability": "view"
840
+ },
841
+ {
842
+ "type": "function",
843
+ "name": "impairInvoice",
844
+ "inputs": [
845
+ {
846
+ "name": "invoiceId",
847
+ "type": "uint256",
848
+ "internalType": "uint256"
849
+ }
850
+ ],
851
+ "outputs": [],
852
+ "stateMutability": "nonpayable"
853
+ },
854
+ {
855
+ "type": "function",
856
+ "name": "impairedInvoices",
857
+ "inputs": [
858
+ {
859
+ "name": "",
860
+ "type": "uint256",
861
+ "internalType": "uint256"
862
+ }
863
+ ],
864
+ "outputs": [
865
+ {
866
+ "name": "",
867
+ "type": "uint256",
868
+ "internalType": "uint256"
869
+ }
870
+ ],
871
+ "stateMutability": "view"
872
+ },
873
+ {
874
+ "type": "function",
875
+ "name": "impairmentGrossGainBps",
876
+ "inputs": [],
877
+ "outputs": [
878
+ {
879
+ "name": "",
880
+ "type": "uint16",
881
+ "internalType": "uint16"
882
+ }
883
+ ],
884
+ "stateMutability": "view"
885
+ },
886
+ {
887
+ "type": "function",
888
+ "name": "impairmentInfo",
889
+ "inputs": [
890
+ {
891
+ "name": "",
892
+ "type": "uint256",
893
+ "internalType": "uint256"
894
+ }
895
+ ],
896
+ "outputs": [
897
+ {
898
+ "name": "isImpaired",
899
+ "type": "bool",
900
+ "internalType": "bool"
901
+ },
902
+ {
903
+ "name": "purchasePrice",
904
+ "type": "uint256",
905
+ "internalType": "uint256"
906
+ },
907
+ {
908
+ "name": "paidAmountAtImpairment",
909
+ "type": "uint256",
910
+ "internalType": "uint256"
911
+ }
912
+ ],
913
+ "stateMutability": "view"
914
+ },
915
+ {
916
+ "type": "function",
917
+ "name": "insuranceBalance",
918
+ "inputs": [],
919
+ "outputs": [
920
+ {
921
+ "name": "",
922
+ "type": "uint256",
923
+ "internalType": "uint256"
924
+ }
925
+ ],
926
+ "stateMutability": "view"
927
+ },
928
+ {
929
+ "type": "function",
930
+ "name": "insuranceFeeBps",
931
+ "inputs": [],
932
+ "outputs": [
933
+ {
934
+ "name": "",
935
+ "type": "uint16",
936
+ "internalType": "uint16"
937
+ }
938
+ ],
939
+ "stateMutability": "view"
940
+ },
941
+ {
942
+ "type": "function",
943
+ "name": "insurer",
944
+ "inputs": [],
945
+ "outputs": [
946
+ {
947
+ "name": "",
948
+ "type": "address",
949
+ "internalType": "address"
950
+ }
951
+ ],
952
+ "stateMutability": "view"
953
+ },
954
+ {
955
+ "type": "function",
956
+ "name": "invoiceProviderAdapter",
957
+ "inputs": [],
958
+ "outputs": [
959
+ {
960
+ "name": "",
961
+ "type": "address",
962
+ "internalType": "contract IInvoiceProviderAdapterV2"
963
+ }
964
+ ],
965
+ "stateMutability": "view"
966
+ },
967
+ {
968
+ "type": "function",
969
+ "name": "maxDeposit",
970
+ "inputs": [
971
+ {
972
+ "name": "",
973
+ "type": "address",
974
+ "internalType": "address"
975
+ }
976
+ ],
977
+ "outputs": [
978
+ {
979
+ "name": "",
980
+ "type": "uint256",
981
+ "internalType": "uint256"
982
+ }
983
+ ],
984
+ "stateMutability": "view"
985
+ },
986
+ {
987
+ "type": "function",
988
+ "name": "maxMint",
989
+ "inputs": [
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": "maxRedeem",
1008
+ "inputs": [],
1009
+ "outputs": [
1010
+ {
1011
+ "name": "",
1012
+ "type": "uint256",
1013
+ "internalType": "uint256"
1014
+ }
1015
+ ],
1016
+ "stateMutability": "view"
1017
+ },
1018
+ {
1019
+ "type": "function",
1020
+ "name": "maxRedeem",
1021
+ "inputs": [
1022
+ {
1023
+ "name": "_owner",
1024
+ "type": "address",
1025
+ "internalType": "address"
1026
+ }
1027
+ ],
1028
+ "outputs": [
1029
+ {
1030
+ "name": "",
1031
+ "type": "uint256",
1032
+ "internalType": "uint256"
1033
+ }
1034
+ ],
1035
+ "stateMutability": "view"
1036
+ },
1037
+ {
1038
+ "type": "function",
1039
+ "name": "maxWithdraw",
1040
+ "inputs": [
1041
+ {
1042
+ "name": "_owner",
1043
+ "type": "address",
1044
+ "internalType": "address"
1045
+ }
1046
+ ],
1047
+ "outputs": [
1048
+ {
1049
+ "name": "",
1050
+ "type": "uint256",
1051
+ "internalType": "uint256"
1052
+ }
1053
+ ],
1054
+ "stateMutability": "view"
1055
+ },
1056
+ {
1057
+ "type": "function",
1058
+ "name": "mint",
1059
+ "inputs": [
1060
+ {
1061
+ "name": "",
1062
+ "type": "uint256",
1063
+ "internalType": "uint256"
1064
+ },
1065
+ {
1066
+ "name": "",
1067
+ "type": "address",
1068
+ "internalType": "address"
1069
+ }
1070
+ ],
1071
+ "outputs": [
1072
+ {
1073
+ "name": "",
1074
+ "type": "uint256",
1075
+ "internalType": "uint256"
1076
+ }
1077
+ ],
1078
+ "stateMutability": "pure"
1079
+ },
1080
+ {
1081
+ "type": "function",
1082
+ "name": "name",
1083
+ "inputs": [],
1084
+ "outputs": [
1085
+ {
1086
+ "name": "",
1087
+ "type": "string",
1088
+ "internalType": "string"
1089
+ }
1090
+ ],
1091
+ "stateMutability": "view"
1092
+ },
1093
+ {
1094
+ "type": "function",
1095
+ "name": "offerLoan",
1096
+ "inputs": [
1097
+ {
1098
+ "name": "debtor",
1099
+ "type": "address",
1100
+ "internalType": "address"
1101
+ },
1102
+ {
1103
+ "name": "_targetYieldBps",
1104
+ "type": "uint16",
1105
+ "internalType": "uint16"
1106
+ },
1107
+ {
1108
+ "name": "spreadBps",
1109
+ "type": "uint16",
1110
+ "internalType": "uint16"
1111
+ },
1112
+ {
1113
+ "name": "principalAmount",
1114
+ "type": "uint256",
1115
+ "internalType": "uint256"
1116
+ },
1117
+ {
1118
+ "name": "termLength",
1119
+ "type": "uint256",
1120
+ "internalType": "uint256"
1121
+ },
1122
+ {
1123
+ "name": "numberOfPeriodsPerYear",
1124
+ "type": "uint16",
1125
+ "internalType": "uint16"
1126
+ },
1127
+ {
1128
+ "name": "description",
1129
+ "type": "string",
1130
+ "internalType": "string"
1131
+ }
1132
+ ],
1133
+ "outputs": [
1134
+ {
1135
+ "name": "loanOfferId",
1136
+ "type": "uint256",
1137
+ "internalType": "uint256"
1138
+ }
1139
+ ],
1140
+ "stateMutability": "nonpayable"
1141
+ },
1142
+ {
1143
+ "type": "function",
1144
+ "name": "onLoanOfferAccepted",
1145
+ "inputs": [
1146
+ {
1147
+ "name": "loanOfferId",
1148
+ "type": "uint256",
1149
+ "internalType": "uint256"
1150
+ },
1151
+ {
1152
+ "name": "loanId",
1153
+ "type": "uint256",
1154
+ "internalType": "uint256"
1155
+ }
1156
+ ],
1157
+ "outputs": [],
1158
+ "stateMutability": "nonpayable"
1159
+ },
1160
+ {
1161
+ "type": "function",
1162
+ "name": "originalCreditors",
1163
+ "inputs": [
1164
+ {
1165
+ "name": "",
1166
+ "type": "uint256",
1167
+ "internalType": "uint256"
1168
+ }
1169
+ ],
1170
+ "outputs": [
1171
+ {
1172
+ "name": "",
1173
+ "type": "address",
1174
+ "internalType": "address"
1175
+ }
1176
+ ],
1177
+ "stateMutability": "view"
1178
+ },
1179
+ {
1180
+ "type": "function",
1181
+ "name": "owner",
1182
+ "inputs": [],
1183
+ "outputs": [
1184
+ {
1185
+ "name": "",
1186
+ "type": "address",
1187
+ "internalType": "address"
1188
+ }
1189
+ ],
1190
+ "stateMutability": "view"
1191
+ },
1192
+ {
1193
+ "type": "function",
1194
+ "name": "paidInvoicesGain",
1195
+ "inputs": [],
1196
+ "outputs": [
1197
+ {
1198
+ "name": "",
1199
+ "type": "uint256",
1200
+ "internalType": "uint256"
1201
+ }
1202
+ ],
1203
+ "stateMutability": "view"
1204
+ },
1205
+ {
1206
+ "type": "function",
1207
+ "name": "pendingLoanOffersByLoanOfferId",
1208
+ "inputs": [
1209
+ {
1210
+ "name": "",
1211
+ "type": "uint256",
1212
+ "internalType": "uint256"
1213
+ }
1214
+ ],
1215
+ "outputs": [
1216
+ {
1217
+ "name": "offeredAt",
1218
+ "type": "uint256",
1219
+ "internalType": "uint256"
1220
+ },
1221
+ {
1222
+ "name": "principalAmount",
1223
+ "type": "uint256",
1224
+ "internalType": "uint256"
1225
+ },
1226
+ {
1227
+ "name": "termLength",
1228
+ "type": "uint256",
1229
+ "internalType": "uint256"
1230
+ },
1231
+ {
1232
+ "name": "exists",
1233
+ "type": "bool",
1234
+ "internalType": "bool"
1235
+ },
1236
+ {
1237
+ "name": "feeParams",
1238
+ "type": "tuple",
1239
+ "internalType": "struct IBullaFactoringV2_2.FeeParams",
1240
+ "components": [
1241
+ {
1242
+ "name": "targetYieldBps",
1243
+ "type": "uint16",
1244
+ "internalType": "uint16"
1245
+ },
1246
+ {
1247
+ "name": "spreadBps",
1248
+ "type": "uint16",
1249
+ "internalType": "uint16"
1250
+ },
1251
+ {
1252
+ "name": "upfrontBps",
1253
+ "type": "uint16",
1254
+ "internalType": "uint16"
1255
+ },
1256
+ {
1257
+ "name": "protocolFeeBps",
1258
+ "type": "uint16",
1259
+ "internalType": "uint16"
1260
+ },
1261
+ {
1262
+ "name": "adminFeeBps",
1263
+ "type": "uint16",
1264
+ "internalType": "uint16"
1265
+ }
1266
+ ]
1267
+ }
1268
+ ],
1269
+ "stateMutability": "view"
1270
+ },
1271
+ {
1272
+ "type": "function",
1273
+ "name": "pendingLoanOffersIds",
1274
+ "inputs": [
1275
+ {
1276
+ "name": "",
1277
+ "type": "uint256",
1278
+ "internalType": "uint256"
1279
+ }
1280
+ ],
1281
+ "outputs": [
1282
+ {
1283
+ "name": "",
1284
+ "type": "uint256",
1285
+ "internalType": "uint256"
1286
+ }
1287
+ ],
1288
+ "stateMutability": "view"
1289
+ },
1290
+ {
1291
+ "type": "function",
1292
+ "name": "poolName",
1293
+ "inputs": [],
1294
+ "outputs": [
1295
+ {
1296
+ "name": "",
1297
+ "type": "string",
1298
+ "internalType": "string"
1299
+ }
1300
+ ],
1301
+ "stateMutability": "view"
1302
+ },
1303
+ {
1304
+ "type": "function",
1305
+ "name": "previewDeposit",
1306
+ "inputs": [
1307
+ {
1308
+ "name": "assets",
1309
+ "type": "uint256",
1310
+ "internalType": "uint256"
1311
+ }
1312
+ ],
1313
+ "outputs": [
1314
+ {
1315
+ "name": "",
1316
+ "type": "uint256",
1317
+ "internalType": "uint256"
1318
+ }
1319
+ ],
1320
+ "stateMutability": "view"
1321
+ },
1322
+ {
1323
+ "type": "function",
1324
+ "name": "previewImpair",
1325
+ "inputs": [
1326
+ {
1327
+ "name": "invoiceId",
1328
+ "type": "uint256",
1329
+ "internalType": "uint256"
1330
+ }
1331
+ ],
1332
+ "outputs": [
1333
+ {
1334
+ "name": "outstandingBalance",
1335
+ "type": "uint256",
1336
+ "internalType": "uint256"
1337
+ },
1338
+ {
1339
+ "name": "impairmentGrossGain",
1340
+ "type": "uint256",
1341
+ "internalType": "uint256"
1342
+ },
1343
+ {
1344
+ "name": "adminFeeOwed",
1345
+ "type": "uint256",
1346
+ "internalType": "uint256"
1347
+ },
1348
+ {
1349
+ "name": "impairmentNetGain",
1350
+ "type": "uint256",
1351
+ "internalType": "uint256"
1352
+ },
1353
+ {
1354
+ "name": "outOfPocketCost",
1355
+ "type": "uint256",
1356
+ "internalType": "uint256"
1357
+ },
1358
+ {
1359
+ "name": "currentPaidAmount",
1360
+ "type": "uint256",
1361
+ "internalType": "uint256"
1362
+ }
1363
+ ],
1364
+ "stateMutability": "view"
1365
+ },
1366
+ {
1367
+ "type": "function",
1368
+ "name": "previewMint",
1369
+ "inputs": [
1370
+ {
1371
+ "name": "shares",
1372
+ "type": "uint256",
1373
+ "internalType": "uint256"
1374
+ }
1375
+ ],
1376
+ "outputs": [
1377
+ {
1378
+ "name": "",
1379
+ "type": "uint256",
1380
+ "internalType": "uint256"
1381
+ }
1382
+ ],
1383
+ "stateMutability": "view"
1384
+ },
1385
+ {
1386
+ "type": "function",
1387
+ "name": "previewRedeem",
1388
+ "inputs": [
1389
+ {
1390
+ "name": "shares",
1391
+ "type": "uint256",
1392
+ "internalType": "uint256"
1393
+ }
1394
+ ],
1395
+ "outputs": [
1396
+ {
1397
+ "name": "",
1398
+ "type": "uint256",
1399
+ "internalType": "uint256"
1400
+ }
1401
+ ],
1402
+ "stateMutability": "view"
1403
+ },
1404
+ {
1405
+ "type": "function",
1406
+ "name": "previewUnfactor",
1407
+ "inputs": [
1408
+ {
1409
+ "name": "invoiceId",
1410
+ "type": "uint256",
1411
+ "internalType": "uint256"
1412
+ }
1413
+ ],
1414
+ "outputs": [
1415
+ {
1416
+ "name": "totalRefundOrPaymentAmount",
1417
+ "type": "int256",
1418
+ "internalType": "int256"
1419
+ }
1420
+ ],
1421
+ "stateMutability": "view"
1422
+ },
1423
+ {
1424
+ "type": "function",
1425
+ "name": "previewWithdraw",
1426
+ "inputs": [
1427
+ {
1428
+ "name": "assets",
1429
+ "type": "uint256",
1430
+ "internalType": "uint256"
1431
+ }
1432
+ ],
1433
+ "outputs": [
1434
+ {
1435
+ "name": "",
1436
+ "type": "uint256",
1437
+ "internalType": "uint256"
1438
+ }
1439
+ ],
1440
+ "stateMutability": "view"
1441
+ },
1442
+ {
1443
+ "type": "function",
1444
+ "name": "pricePerShare",
1445
+ "inputs": [],
1446
+ "outputs": [
1447
+ {
1448
+ "name": "",
1449
+ "type": "uint256",
1450
+ "internalType": "uint256"
1451
+ }
1452
+ ],
1453
+ "stateMutability": "view"
1454
+ },
1455
+ {
1456
+ "type": "function",
1457
+ "name": "processRedemptionQueue",
1458
+ "inputs": [],
1459
+ "outputs": [],
1460
+ "stateMutability": "nonpayable"
1461
+ },
1462
+ {
1463
+ "type": "function",
1464
+ "name": "protocolFeeBalance",
1465
+ "inputs": [],
1466
+ "outputs": [
1467
+ {
1468
+ "name": "",
1469
+ "type": "uint256",
1470
+ "internalType": "uint256"
1471
+ }
1472
+ ],
1473
+ "stateMutability": "view"
1474
+ },
1475
+ {
1476
+ "type": "function",
1477
+ "name": "protocolFeeBps",
1478
+ "inputs": [],
1479
+ "outputs": [
1480
+ {
1481
+ "name": "",
1482
+ "type": "uint16",
1483
+ "internalType": "uint16"
1484
+ }
1485
+ ],
1486
+ "stateMutability": "view"
1487
+ },
1488
+ {
1489
+ "type": "function",
1490
+ "name": "reconcileSingleInvoice",
1491
+ "inputs": [
1492
+ {
1493
+ "name": "invoiceId",
1494
+ "type": "uint256",
1495
+ "internalType": "uint256"
1496
+ }
1497
+ ],
1498
+ "outputs": [],
1499
+ "stateMutability": "nonpayable"
1500
+ },
1501
+ {
1502
+ "type": "function",
1503
+ "name": "recoveryProfitRatioBps",
1504
+ "inputs": [],
1505
+ "outputs": [
1506
+ {
1507
+ "name": "",
1508
+ "type": "uint16",
1509
+ "internalType": "uint16"
1510
+ }
1511
+ ],
1512
+ "stateMutability": "view"
1513
+ },
1514
+ {
1515
+ "type": "function",
1516
+ "name": "redeem",
1517
+ "inputs": [
1518
+ {
1519
+ "name": "shares",
1520
+ "type": "uint256",
1521
+ "internalType": "uint256"
1522
+ },
1523
+ {
1524
+ "name": "receiver",
1525
+ "type": "address",
1526
+ "internalType": "address"
1527
+ },
1528
+ {
1529
+ "name": "_owner",
1530
+ "type": "address",
1531
+ "internalType": "address"
1532
+ }
1533
+ ],
1534
+ "outputs": [
1535
+ {
1536
+ "name": "",
1537
+ "type": "uint256",
1538
+ "internalType": "uint256"
1539
+ }
1540
+ ],
1541
+ "stateMutability": "nonpayable"
1542
+ },
1543
+ {
1544
+ "type": "function",
1545
+ "name": "redeemPermissions",
1546
+ "inputs": [],
1547
+ "outputs": [
1548
+ {
1549
+ "name": "",
1550
+ "type": "address",
1551
+ "internalType": "contract Permissions"
1552
+ }
1553
+ ],
1554
+ "stateMutability": "view"
1555
+ },
1556
+ {
1557
+ "type": "function",
1558
+ "name": "redemptionQueue",
1559
+ "inputs": [],
1560
+ "outputs": [
1561
+ {
1562
+ "name": "",
1563
+ "type": "address",
1564
+ "internalType": "contract IRedemptionQueue"
1565
+ }
1566
+ ],
1567
+ "stateMutability": "view"
1568
+ },
1569
+ {
1570
+ "type": "function",
1571
+ "name": "renounceOwnership",
1572
+ "inputs": [],
1573
+ "outputs": [],
1574
+ "stateMutability": "nonpayable"
1575
+ },
1576
+ {
1577
+ "type": "function",
1578
+ "name": "setAdminFeeBps",
1579
+ "inputs": [
1580
+ {
1581
+ "name": "_newAdminFeeBps",
1582
+ "type": "uint16",
1583
+ "internalType": "uint16"
1584
+ }
1585
+ ],
1586
+ "outputs": [],
1587
+ "stateMutability": "nonpayable"
1588
+ },
1589
+ {
1590
+ "type": "function",
1591
+ "name": "setApprovalDuration",
1592
+ "inputs": [
1593
+ {
1594
+ "name": "_duration",
1595
+ "type": "uint256",
1596
+ "internalType": "uint256"
1597
+ }
1598
+ ],
1599
+ "outputs": [],
1600
+ "stateMutability": "nonpayable"
1601
+ },
1602
+ {
1603
+ "type": "function",
1604
+ "name": "setBullaDaoAddress",
1605
+ "inputs": [
1606
+ {
1607
+ "name": "_newBullaDao",
1608
+ "type": "address",
1609
+ "internalType": "address"
1610
+ }
1611
+ ],
1612
+ "outputs": [],
1613
+ "stateMutability": "nonpayable"
1614
+ },
1615
+ {
1616
+ "type": "function",
1617
+ "name": "setDepositPermissions",
1618
+ "inputs": [
1619
+ {
1620
+ "name": "_newDepositPermissionsAddress",
1621
+ "type": "address",
1622
+ "internalType": "address"
1623
+ }
1624
+ ],
1625
+ "outputs": [],
1626
+ "stateMutability": "nonpayable"
1627
+ },
1628
+ {
1629
+ "type": "function",
1630
+ "name": "setFactoringPermissions",
1631
+ "inputs": [
1632
+ {
1633
+ "name": "_newFactoringPermissionsAddress",
1634
+ "type": "address",
1635
+ "internalType": "address"
1636
+ }
1637
+ ],
1638
+ "outputs": [],
1639
+ "stateMutability": "nonpayable"
1640
+ },
1641
+ {
1642
+ "type": "function",
1643
+ "name": "setGracePeriodDays",
1644
+ "inputs": [
1645
+ {
1646
+ "name": "_days",
1647
+ "type": "uint256",
1648
+ "internalType": "uint256"
1649
+ }
1650
+ ],
1651
+ "outputs": [],
1652
+ "stateMutability": "nonpayable"
1653
+ },
1654
+ {
1655
+ "type": "function",
1656
+ "name": "setInsuranceParams",
1657
+ "inputs": [
1658
+ {
1659
+ "name": "_insuranceFeeBps",
1660
+ "type": "uint16",
1661
+ "internalType": "uint16"
1662
+ },
1663
+ {
1664
+ "name": "_impairmentGrossGainBps",
1665
+ "type": "uint16",
1666
+ "internalType": "uint16"
1667
+ },
1668
+ {
1669
+ "name": "_recoveryProfitRatioBps",
1670
+ "type": "uint16",
1671
+ "internalType": "uint16"
1672
+ }
1673
+ ],
1674
+ "outputs": [],
1675
+ "stateMutability": "nonpayable"
1676
+ },
1677
+ {
1678
+ "type": "function",
1679
+ "name": "setInsurer",
1680
+ "inputs": [
1681
+ {
1682
+ "name": "_newInsurer",
1683
+ "type": "address",
1684
+ "internalType": "address"
1685
+ }
1686
+ ],
1687
+ "outputs": [],
1688
+ "stateMutability": "nonpayable"
1689
+ },
1690
+ {
1691
+ "type": "function",
1692
+ "name": "setProtocolFeeBps",
1693
+ "inputs": [
1694
+ {
1695
+ "name": "_newProtocolFeeBps",
1696
+ "type": "uint16",
1697
+ "internalType": "uint16"
1698
+ }
1699
+ ],
1700
+ "outputs": [],
1701
+ "stateMutability": "nonpayable"
1702
+ },
1703
+ {
1704
+ "type": "function",
1705
+ "name": "setRedeemPermissions",
1706
+ "inputs": [
1707
+ {
1708
+ "name": "_newRedeemPermissionsAddress",
1709
+ "type": "address",
1710
+ "internalType": "address"
1711
+ }
1712
+ ],
1713
+ "outputs": [],
1714
+ "stateMutability": "nonpayable"
1715
+ },
1716
+ {
1717
+ "type": "function",
1718
+ "name": "setRedemptionQueue",
1719
+ "inputs": [
1720
+ {
1721
+ "name": "_redemptionQueue",
1722
+ "type": "address",
1723
+ "internalType": "address"
1724
+ }
1725
+ ],
1726
+ "outputs": [],
1727
+ "stateMutability": "nonpayable"
1728
+ },
1729
+ {
1730
+ "type": "function",
1731
+ "name": "setTargetYield",
1732
+ "inputs": [
1733
+ {
1734
+ "name": "_targetYieldBps",
1735
+ "type": "uint16",
1736
+ "internalType": "uint16"
1737
+ }
1738
+ ],
1739
+ "outputs": [],
1740
+ "stateMutability": "nonpayable"
1741
+ },
1742
+ {
1743
+ "type": "function",
1744
+ "name": "setUnderwriter",
1745
+ "inputs": [
1746
+ {
1747
+ "name": "_newUnderwriter",
1748
+ "type": "address",
1749
+ "internalType": "address"
1750
+ }
1751
+ ],
1752
+ "outputs": [],
1753
+ "stateMutability": "nonpayable"
1754
+ },
1755
+ {
1756
+ "type": "function",
1757
+ "name": "symbol",
1758
+ "inputs": [],
1759
+ "outputs": [
1760
+ {
1761
+ "name": "",
1762
+ "type": "string",
1763
+ "internalType": "string"
1764
+ }
1765
+ ],
1766
+ "stateMutability": "view"
1767
+ },
1768
+ {
1769
+ "type": "function",
1770
+ "name": "targetYieldBps",
1771
+ "inputs": [],
1772
+ "outputs": [
1773
+ {
1774
+ "name": "",
1775
+ "type": "uint16",
1776
+ "internalType": "uint16"
1777
+ }
1778
+ ],
1779
+ "stateMutability": "view"
1780
+ },
1781
+ {
1782
+ "type": "function",
1783
+ "name": "totalAssets",
1784
+ "inputs": [],
1785
+ "outputs": [
1786
+ {
1787
+ "name": "",
1788
+ "type": "uint256",
1789
+ "internalType": "uint256"
1790
+ }
1791
+ ],
1792
+ "stateMutability": "view"
1793
+ },
1794
+ {
1795
+ "type": "function",
1796
+ "name": "totalSupply",
1797
+ "inputs": [],
1798
+ "outputs": [
1799
+ {
1800
+ "name": "",
1801
+ "type": "uint256",
1802
+ "internalType": "uint256"
1803
+ }
1804
+ ],
1805
+ "stateMutability": "view"
1806
+ },
1807
+ {
1808
+ "type": "function",
1809
+ "name": "transfer",
1810
+ "inputs": [
1811
+ {
1812
+ "name": "to",
1813
+ "type": "address",
1814
+ "internalType": "address"
1815
+ },
1816
+ {
1817
+ "name": "value",
1818
+ "type": "uint256",
1819
+ "internalType": "uint256"
1820
+ }
1821
+ ],
1822
+ "outputs": [
1823
+ {
1824
+ "name": "",
1825
+ "type": "bool",
1826
+ "internalType": "bool"
1827
+ }
1828
+ ],
1829
+ "stateMutability": "nonpayable"
1830
+ },
1831
+ {
1832
+ "type": "function",
1833
+ "name": "transferFrom",
1834
+ "inputs": [
1835
+ {
1836
+ "name": "from",
1837
+ "type": "address",
1838
+ "internalType": "address"
1839
+ },
1840
+ {
1841
+ "name": "to",
1842
+ "type": "address",
1843
+ "internalType": "address"
1844
+ },
1845
+ {
1846
+ "name": "value",
1847
+ "type": "uint256",
1848
+ "internalType": "uint256"
1849
+ }
1850
+ ],
1851
+ "outputs": [
1852
+ {
1853
+ "name": "",
1854
+ "type": "bool",
1855
+ "internalType": "bool"
1856
+ }
1857
+ ],
1858
+ "stateMutability": "nonpayable"
1859
+ },
1860
+ {
1861
+ "type": "function",
1862
+ "name": "transferOwnership",
1863
+ "inputs": [
1864
+ {
1865
+ "name": "newOwner",
1866
+ "type": "address",
1867
+ "internalType": "address"
1868
+ }
1869
+ ],
1870
+ "outputs": [],
1871
+ "stateMutability": "nonpayable"
1872
+ },
1873
+ {
1874
+ "type": "function",
1875
+ "name": "underwriter",
1876
+ "inputs": [],
1877
+ "outputs": [
1878
+ {
1879
+ "name": "",
1880
+ "type": "address",
1881
+ "internalType": "address"
1882
+ }
1883
+ ],
1884
+ "stateMutability": "view"
1885
+ },
1886
+ {
1887
+ "type": "function",
1888
+ "name": "unfactorInvoice",
1889
+ "inputs": [
1890
+ {
1891
+ "name": "invoiceId",
1892
+ "type": "uint256",
1893
+ "internalType": "uint256"
1894
+ }
1895
+ ],
1896
+ "outputs": [],
1897
+ "stateMutability": "nonpayable"
1898
+ },
1899
+ {
1900
+ "type": "function",
1901
+ "name": "viewPoolStatus",
1902
+ "inputs": [
1903
+ {
1904
+ "name": "offset",
1905
+ "type": "uint256",
1906
+ "internalType": "uint256"
1907
+ },
1908
+ {
1909
+ "name": "limit",
1910
+ "type": "uint256",
1911
+ "internalType": "uint256"
1912
+ }
1913
+ ],
1914
+ "outputs": [
1915
+ {
1916
+ "name": "impairedInvoiceIds",
1917
+ "type": "uint256[]",
1918
+ "internalType": "uint256[]"
1919
+ },
1920
+ {
1921
+ "name": "hasMore",
1922
+ "type": "bool",
1923
+ "internalType": "bool"
1924
+ }
1925
+ ],
1926
+ "stateMutability": "view"
1927
+ },
1928
+ {
1929
+ "type": "function",
1930
+ "name": "withdraw",
1931
+ "inputs": [
1932
+ {
1933
+ "name": "assets",
1934
+ "type": "uint256",
1935
+ "internalType": "uint256"
1936
+ },
1937
+ {
1938
+ "name": "receiver",
1939
+ "type": "address",
1940
+ "internalType": "address"
1941
+ },
1942
+ {
1943
+ "name": "_owner",
1944
+ "type": "address",
1945
+ "internalType": "address"
1946
+ }
1947
+ ],
1948
+ "outputs": [
1949
+ {
1950
+ "name": "",
1951
+ "type": "uint256",
1952
+ "internalType": "uint256"
1953
+ }
1954
+ ],
1955
+ "stateMutability": "nonpayable"
1956
+ },
1957
+ {
1958
+ "type": "function",
1959
+ "name": "withdrawAdminFeesAndSpreadGains",
1960
+ "inputs": [],
1961
+ "outputs": [],
1962
+ "stateMutability": "nonpayable"
1963
+ },
1964
+ {
1965
+ "type": "function",
1966
+ "name": "withdrawInsuranceBalance",
1967
+ "inputs": [],
1968
+ "outputs": [],
1969
+ "stateMutability": "nonpayable"
1970
+ },
1971
+ {
1972
+ "type": "function",
1973
+ "name": "withdrawProtocolFees",
1974
+ "inputs": [],
1975
+ "outputs": [],
1976
+ "stateMutability": "nonpayable"
1977
+ },
1978
+ {
1979
+ "type": "event",
1980
+ "name": "ActivePaidInvoicesReconciled",
1981
+ "inputs": [
1982
+ {
1983
+ "name": "paidInvoiceIds",
1984
+ "type": "uint256[]",
1985
+ "indexed": false,
1986
+ "internalType": "uint256[]"
1987
+ }
1988
+ ],
1989
+ "anonymous": false
1990
+ },
1991
+ {
1992
+ "type": "event",
1993
+ "name": "AdminFeeBpsChanged",
1994
+ "inputs": [
1995
+ {
1996
+ "name": "oldFeeBps",
1997
+ "type": "uint16",
1998
+ "indexed": true,
1999
+ "internalType": "uint16"
2000
+ },
2001
+ {
2002
+ "name": "newFeeBps",
2003
+ "type": "uint16",
2004
+ "indexed": true,
2005
+ "internalType": "uint16"
2006
+ }
2007
+ ],
2008
+ "anonymous": false
2009
+ },
2010
+ {
2011
+ "type": "event",
2012
+ "name": "AdminFeesWithdrawn",
2013
+ "inputs": [
2014
+ {
2015
+ "name": "bullaDao",
2016
+ "type": "address",
2017
+ "indexed": true,
2018
+ "internalType": "address"
2019
+ },
2020
+ {
2021
+ "name": "amount",
2022
+ "type": "uint256",
2023
+ "indexed": false,
2024
+ "internalType": "uint256"
2025
+ }
2026
+ ],
2027
+ "anonymous": false
2028
+ },
2029
+ {
2030
+ "type": "event",
2031
+ "name": "Approval",
2032
+ "inputs": [
2033
+ {
2034
+ "name": "owner",
2035
+ "type": "address",
2036
+ "indexed": true,
2037
+ "internalType": "address"
2038
+ },
2039
+ {
2040
+ "name": "spender",
2041
+ "type": "address",
2042
+ "indexed": true,
2043
+ "internalType": "address"
2044
+ },
2045
+ {
2046
+ "name": "value",
2047
+ "type": "uint256",
2048
+ "indexed": false,
2049
+ "internalType": "uint256"
2050
+ }
2051
+ ],
2052
+ "anonymous": false
2053
+ },
2054
+ {
2055
+ "type": "event",
2056
+ "name": "ApprovalDurationChanged",
2057
+ "inputs": [
2058
+ {
2059
+ "name": "newDuration",
2060
+ "type": "uint256",
2061
+ "indexed": false,
2062
+ "internalType": "uint256"
2063
+ }
2064
+ ],
2065
+ "anonymous": false
2066
+ },
2067
+ {
2068
+ "type": "event",
2069
+ "name": "BullaDaoAddressChanged",
2070
+ "inputs": [
2071
+ {
2072
+ "name": "oldAddress",
2073
+ "type": "address",
2074
+ "indexed": true,
2075
+ "internalType": "address"
2076
+ },
2077
+ {
2078
+ "name": "newAddress",
2079
+ "type": "address",
2080
+ "indexed": true,
2081
+ "internalType": "address"
2082
+ }
2083
+ ],
2084
+ "anonymous": false
2085
+ },
2086
+ {
2087
+ "type": "event",
2088
+ "name": "Deposit",
2089
+ "inputs": [
2090
+ {
2091
+ "name": "sender",
2092
+ "type": "address",
2093
+ "indexed": true,
2094
+ "internalType": "address"
2095
+ },
2096
+ {
2097
+ "name": "owner",
2098
+ "type": "address",
2099
+ "indexed": true,
2100
+ "internalType": "address"
2101
+ },
2102
+ {
2103
+ "name": "assets",
2104
+ "type": "uint256",
2105
+ "indexed": false,
2106
+ "internalType": "uint256"
2107
+ },
2108
+ {
2109
+ "name": "shares",
2110
+ "type": "uint256",
2111
+ "indexed": false,
2112
+ "internalType": "uint256"
2113
+ }
2114
+ ],
2115
+ "anonymous": false
2116
+ },
2117
+ {
2118
+ "type": "event",
2119
+ "name": "DepositPermissionsChanged",
2120
+ "inputs": [
2121
+ {
2122
+ "name": "newAddress",
2123
+ "type": "address",
2124
+ "indexed": false,
2125
+ "internalType": "address"
2126
+ }
2127
+ ],
2128
+ "anonymous": false
2129
+ },
2130
+ {
2131
+ "type": "event",
2132
+ "name": "FactoringPermissionsChanged",
2133
+ "inputs": [
2134
+ {
2135
+ "name": "newAddress",
2136
+ "type": "address",
2137
+ "indexed": false,
2138
+ "internalType": "address"
2139
+ }
2140
+ ],
2141
+ "anonymous": false
2142
+ },
2143
+ {
2144
+ "type": "event",
2145
+ "name": "GracePeriodDaysChanged",
2146
+ "inputs": [
2147
+ {
2148
+ "name": "newGracePeriodDays",
2149
+ "type": "uint256",
2150
+ "indexed": false,
2151
+ "internalType": "uint256"
2152
+ }
2153
+ ],
2154
+ "anonymous": false
2155
+ },
2156
+ {
2157
+ "type": "event",
2158
+ "name": "ImpairedInvoiceReconciled",
2159
+ "inputs": [
2160
+ {
2161
+ "name": "invoiceId",
2162
+ "type": "uint256",
2163
+ "indexed": true,
2164
+ "internalType": "uint256"
2165
+ },
2166
+ {
2167
+ "name": "amountRecovered",
2168
+ "type": "uint256",
2169
+ "indexed": false,
2170
+ "internalType": "uint256"
2171
+ },
2172
+ {
2173
+ "name": "insuranceShare",
2174
+ "type": "uint256",
2175
+ "indexed": false,
2176
+ "internalType": "uint256"
2177
+ },
2178
+ {
2179
+ "name": "investorShare",
2180
+ "type": "uint256",
2181
+ "indexed": false,
2182
+ "internalType": "uint256"
2183
+ }
2184
+ ],
2185
+ "anonymous": false
2186
+ },
2187
+ {
2188
+ "type": "event",
2189
+ "name": "InsuranceParamsChanged",
2190
+ "inputs": [
2191
+ {
2192
+ "name": "insuranceFeeBps",
2193
+ "type": "uint16",
2194
+ "indexed": false,
2195
+ "internalType": "uint16"
2196
+ },
2197
+ {
2198
+ "name": "impairmentGrossGainBps",
2199
+ "type": "uint16",
2200
+ "indexed": false,
2201
+ "internalType": "uint16"
2202
+ },
2203
+ {
2204
+ "name": "recoveryProfitRatioBps",
2205
+ "type": "uint16",
2206
+ "indexed": false,
2207
+ "internalType": "uint16"
2208
+ }
2209
+ ],
2210
+ "anonymous": false
2211
+ },
2212
+ {
2213
+ "type": "event",
2214
+ "name": "InsuranceRecovered",
2215
+ "inputs": [
2216
+ {
2217
+ "name": "invoiceId",
2218
+ "type": "uint256",
2219
+ "indexed": true,
2220
+ "internalType": "uint256"
2221
+ },
2222
+ {
2223
+ "name": "amount",
2224
+ "type": "uint256",
2225
+ "indexed": false,
2226
+ "internalType": "uint256"
2227
+ }
2228
+ ],
2229
+ "anonymous": false
2230
+ },
2231
+ {
2232
+ "type": "event",
2233
+ "name": "InsuranceWithdrawn",
2234
+ "inputs": [
2235
+ {
2236
+ "name": "insurer",
2237
+ "type": "address",
2238
+ "indexed": true,
2239
+ "internalType": "address"
2240
+ },
2241
+ {
2242
+ "name": "amount",
2243
+ "type": "uint256",
2244
+ "indexed": false,
2245
+ "internalType": "uint256"
2246
+ }
2247
+ ],
2248
+ "anonymous": false
2249
+ },
2250
+ {
2251
+ "type": "event",
2252
+ "name": "InsurerChanged",
2253
+ "inputs": [
2254
+ {
2255
+ "name": "oldInsurer",
2256
+ "type": "address",
2257
+ "indexed": true,
2258
+ "internalType": "address"
2259
+ },
2260
+ {
2261
+ "name": "newInsurer",
2262
+ "type": "address",
2263
+ "indexed": true,
2264
+ "internalType": "address"
2265
+ }
2266
+ ],
2267
+ "anonymous": false
2268
+ },
2269
+ {
2270
+ "type": "event",
2271
+ "name": "InvoiceApproved",
2272
+ "inputs": [
2273
+ {
2274
+ "name": "invoiceId",
2275
+ "type": "uint256",
2276
+ "indexed": true,
2277
+ "internalType": "uint256"
2278
+ },
2279
+ {
2280
+ "name": "validUntil",
2281
+ "type": "uint256",
2282
+ "indexed": false,
2283
+ "internalType": "uint256"
2284
+ },
2285
+ {
2286
+ "name": "feeParams",
2287
+ "type": "tuple",
2288
+ "indexed": false,
2289
+ "internalType": "struct IBullaFactoringV2_2.FeeParams",
2290
+ "components": [
2291
+ {
2292
+ "name": "targetYieldBps",
2293
+ "type": "uint16",
2294
+ "internalType": "uint16"
2295
+ },
2296
+ {
2297
+ "name": "spreadBps",
2298
+ "type": "uint16",
2299
+ "internalType": "uint16"
2300
+ },
2301
+ {
2302
+ "name": "upfrontBps",
2303
+ "type": "uint16",
2304
+ "internalType": "uint16"
2305
+ },
2306
+ {
2307
+ "name": "protocolFeeBps",
2308
+ "type": "uint16",
2309
+ "internalType": "uint16"
2310
+ },
2311
+ {
2312
+ "name": "adminFeeBps",
2313
+ "type": "uint16",
2314
+ "internalType": "uint16"
2315
+ }
2316
+ ]
2317
+ }
2318
+ ],
2319
+ "anonymous": false
2320
+ },
2321
+ {
2322
+ "type": "event",
2323
+ "name": "InvoiceFunded",
2324
+ "inputs": [
2325
+ {
2326
+ "name": "invoiceId",
2327
+ "type": "uint256",
2328
+ "indexed": true,
2329
+ "internalType": "uint256"
2330
+ },
2331
+ {
2332
+ "name": "fundedAmount",
2333
+ "type": "uint256",
2334
+ "indexed": false,
2335
+ "internalType": "uint256"
2336
+ },
2337
+ {
2338
+ "name": "originalCreditor",
2339
+ "type": "address",
2340
+ "indexed": true,
2341
+ "internalType": "address"
2342
+ },
2343
+ {
2344
+ "name": "dueDate",
2345
+ "type": "uint256",
2346
+ "indexed": false,
2347
+ "internalType": "uint256"
2348
+ },
2349
+ {
2350
+ "name": "upfrontBps",
2351
+ "type": "uint16",
2352
+ "indexed": false,
2353
+ "internalType": "uint16"
2354
+ },
2355
+ {
2356
+ "name": "protocolFee",
2357
+ "type": "uint256",
2358
+ "indexed": false,
2359
+ "internalType": "uint256"
2360
+ },
2361
+ {
2362
+ "name": "fundsReceiver",
2363
+ "type": "address",
2364
+ "indexed": false,
2365
+ "internalType": "address"
2366
+ }
2367
+ ],
2368
+ "anonymous": false
2369
+ },
2370
+ {
2371
+ "type": "event",
2372
+ "name": "InvoiceImpaired",
2373
+ "inputs": [
2374
+ {
2375
+ "name": "invoiceId",
2376
+ "type": "uint256",
2377
+ "indexed": true,
2378
+ "internalType": "uint256"
2379
+ },
2380
+ {
2381
+ "name": "outstandingBalance",
2382
+ "type": "uint256",
2383
+ "indexed": false,
2384
+ "internalType": "uint256"
2385
+ },
2386
+ {
2387
+ "name": "impairmentGrossGain",
2388
+ "type": "uint256",
2389
+ "indexed": false,
2390
+ "internalType": "uint256"
2391
+ },
2392
+ {
2393
+ "name": "impairmentNetGain",
2394
+ "type": "uint256",
2395
+ "indexed": false,
2396
+ "internalType": "uint256"
2397
+ }
2398
+ ],
2399
+ "anonymous": false
2400
+ },
2401
+ {
2402
+ "type": "event",
2403
+ "name": "InvoiceKickbackAmountSent",
2404
+ "inputs": [
2405
+ {
2406
+ "name": "invoiceId",
2407
+ "type": "uint256",
2408
+ "indexed": true,
2409
+ "internalType": "uint256"
2410
+ },
2411
+ {
2412
+ "name": "kickbackAmount",
2413
+ "type": "uint256",
2414
+ "indexed": false,
2415
+ "internalType": "uint256"
2416
+ },
2417
+ {
2418
+ "name": "originalCreditor",
2419
+ "type": "address",
2420
+ "indexed": true,
2421
+ "internalType": "address"
2422
+ }
2423
+ ],
2424
+ "anonymous": false
2425
+ },
2426
+ {
2427
+ "type": "event",
2428
+ "name": "InvoicePaid",
2429
+ "inputs": [
2430
+ {
2431
+ "name": "invoiceId",
2432
+ "type": "uint256",
2433
+ "indexed": true,
2434
+ "internalType": "uint256"
2435
+ },
2436
+ {
2437
+ "name": "trueInterest",
2438
+ "type": "uint256",
2439
+ "indexed": false,
2440
+ "internalType": "uint256"
2441
+ },
2442
+ {
2443
+ "name": "trueSpreadAmount",
2444
+ "type": "uint256",
2445
+ "indexed": false,
2446
+ "internalType": "uint256"
2447
+ },
2448
+ {
2449
+ "name": "trueAdminFee",
2450
+ "type": "uint256",
2451
+ "indexed": false,
2452
+ "internalType": "uint256"
2453
+ },
2454
+ {
2455
+ "name": "fundedAmountNet",
2456
+ "type": "uint256",
2457
+ "indexed": false,
2458
+ "internalType": "uint256"
2459
+ },
2460
+ {
2461
+ "name": "kickbackAmount",
2462
+ "type": "uint256",
2463
+ "indexed": false,
2464
+ "internalType": "uint256"
2465
+ },
2466
+ {
2467
+ "name": "originalCreditor",
2468
+ "type": "address",
2469
+ "indexed": true,
2470
+ "internalType": "address"
2471
+ }
2472
+ ],
2473
+ "anonymous": false
2474
+ },
2475
+ {
2476
+ "type": "event",
2477
+ "name": "InvoiceUnfactored",
2478
+ "inputs": [
2479
+ {
2480
+ "name": "invoiceId",
2481
+ "type": "uint256",
2482
+ "indexed": true,
2483
+ "internalType": "uint256"
2484
+ },
2485
+ {
2486
+ "name": "originalCreditor",
2487
+ "type": "address",
2488
+ "indexed": false,
2489
+ "internalType": "address"
2490
+ },
2491
+ {
2492
+ "name": "totalRefundOrPaymentAmount",
2493
+ "type": "int256",
2494
+ "indexed": false,
2495
+ "internalType": "int256"
2496
+ },
2497
+ {
2498
+ "name": "interestToCharge",
2499
+ "type": "uint256",
2500
+ "indexed": false,
2501
+ "internalType": "uint256"
2502
+ },
2503
+ {
2504
+ "name": "spreadAmount",
2505
+ "type": "uint256",
2506
+ "indexed": false,
2507
+ "internalType": "uint256"
2508
+ },
2509
+ {
2510
+ "name": "adminFee",
2511
+ "type": "uint256",
2512
+ "indexed": false,
2513
+ "internalType": "uint256"
2514
+ },
2515
+ {
2516
+ "name": "unfactoredByOwner",
2517
+ "type": "bool",
2518
+ "indexed": false,
2519
+ "internalType": "bool"
2520
+ }
2521
+ ],
2522
+ "anonymous": false
2523
+ },
2524
+ {
2525
+ "type": "event",
2526
+ "name": "OwnershipTransferred",
2527
+ "inputs": [
2528
+ {
2529
+ "name": "previousOwner",
2530
+ "type": "address",
2531
+ "indexed": true,
2532
+ "internalType": "address"
2533
+ },
2534
+ {
2535
+ "name": "newOwner",
2536
+ "type": "address",
2537
+ "indexed": true,
2538
+ "internalType": "address"
2539
+ }
2540
+ ],
2541
+ "anonymous": false
2542
+ },
2543
+ {
2544
+ "type": "event",
2545
+ "name": "ProtocolFeeBpsChanged",
2546
+ "inputs": [
2547
+ {
2548
+ "name": "oldProtocolFeeBps",
2549
+ "type": "uint16",
2550
+ "indexed": false,
2551
+ "internalType": "uint16"
2552
+ },
2553
+ {
2554
+ "name": "newProtocolFeeBps",
2555
+ "type": "uint16",
2556
+ "indexed": false,
2557
+ "internalType": "uint16"
2558
+ }
2559
+ ],
2560
+ "anonymous": false
2561
+ },
2562
+ {
2563
+ "type": "event",
2564
+ "name": "ProtocolFeesWithdrawn",
2565
+ "inputs": [
2566
+ {
2567
+ "name": "bullaDao",
2568
+ "type": "address",
2569
+ "indexed": true,
2570
+ "internalType": "address"
2571
+ },
2572
+ {
2573
+ "name": "amount",
2574
+ "type": "uint256",
2575
+ "indexed": false,
2576
+ "internalType": "uint256"
2577
+ }
2578
+ ],
2579
+ "anonymous": false
2580
+ },
2581
+ {
2582
+ "type": "event",
2583
+ "name": "RedeemPermissionsChanged",
2584
+ "inputs": [
2585
+ {
2586
+ "name": "newAddress",
2587
+ "type": "address",
2588
+ "indexed": false,
2589
+ "internalType": "address"
2590
+ }
2591
+ ],
2592
+ "anonymous": false
2593
+ },
2594
+ {
2595
+ "type": "event",
2596
+ "name": "RedemptionQueueChanged",
2597
+ "inputs": [
2598
+ {
2599
+ "name": "oldQueue",
2600
+ "type": "address",
2601
+ "indexed": true,
2602
+ "internalType": "address"
2603
+ },
2604
+ {
2605
+ "name": "newQueue",
2606
+ "type": "address",
2607
+ "indexed": true,
2608
+ "internalType": "address"
2609
+ }
2610
+ ],
2611
+ "anonymous": false
2612
+ },
2613
+ {
2614
+ "type": "event",
2615
+ "name": "TargetYieldChanged",
2616
+ "inputs": [
2617
+ {
2618
+ "name": "newTargetYield",
2619
+ "type": "uint16",
2620
+ "indexed": false,
2621
+ "internalType": "uint16"
2622
+ }
2623
+ ],
2624
+ "anonymous": false
2625
+ },
2626
+ {
2627
+ "type": "event",
2628
+ "name": "Transfer",
2629
+ "inputs": [
2630
+ {
2631
+ "name": "from",
2632
+ "type": "address",
2633
+ "indexed": true,
2634
+ "internalType": "address"
2635
+ },
2636
+ {
2637
+ "name": "to",
2638
+ "type": "address",
2639
+ "indexed": true,
2640
+ "internalType": "address"
2641
+ },
2642
+ {
2643
+ "name": "value",
2644
+ "type": "uint256",
2645
+ "indexed": false,
2646
+ "internalType": "uint256"
2647
+ }
2648
+ ],
2649
+ "anonymous": false
2650
+ },
2651
+ {
2652
+ "type": "event",
2653
+ "name": "UnderwriterChanged",
2654
+ "inputs": [
2655
+ {
2656
+ "name": "oldUnderwriter",
2657
+ "type": "address",
2658
+ "indexed": true,
2659
+ "internalType": "address"
2660
+ },
2661
+ {
2662
+ "name": "newUnderwriter",
2663
+ "type": "address",
2664
+ "indexed": true,
2665
+ "internalType": "address"
2666
+ }
2667
+ ],
2668
+ "anonymous": false
2669
+ },
2670
+ {
2671
+ "type": "event",
2672
+ "name": "Withdraw",
2673
+ "inputs": [
2674
+ {
2675
+ "name": "sender",
2676
+ "type": "address",
2677
+ "indexed": true,
2678
+ "internalType": "address"
2679
+ },
2680
+ {
2681
+ "name": "receiver",
2682
+ "type": "address",
2683
+ "indexed": true,
2684
+ "internalType": "address"
2685
+ },
2686
+ {
2687
+ "name": "owner",
2688
+ "type": "address",
2689
+ "indexed": true,
2690
+ "internalType": "address"
2691
+ },
2692
+ {
2693
+ "name": "assets",
2694
+ "type": "uint256",
2695
+ "indexed": false,
2696
+ "internalType": "uint256"
2697
+ },
2698
+ {
2699
+ "name": "shares",
2700
+ "type": "uint256",
2701
+ "indexed": false,
2702
+ "internalType": "uint256"
2703
+ }
2704
+ ],
2705
+ "anonymous": false
2706
+ },
2707
+ {
2708
+ "type": "error",
2709
+ "name": "ApprovalExpired",
2710
+ "inputs": []
2711
+ },
2712
+ {
2713
+ "type": "error",
2714
+ "name": "CallerNotBullaDao",
2715
+ "inputs": []
2716
+ },
2717
+ {
2718
+ "type": "error",
2719
+ "name": "CallerNotBullaFrendLend",
2720
+ "inputs": []
2721
+ },
2722
+ {
2723
+ "type": "error",
2724
+ "name": "CallerNotInsurer",
2725
+ "inputs": []
2726
+ },
2727
+ {
2728
+ "type": "error",
2729
+ "name": "CallerNotInvoiceContract",
2730
+ "inputs": []
2731
+ },
2732
+ {
2733
+ "type": "error",
2734
+ "name": "CallerNotOriginalCreditor",
2735
+ "inputs": []
2736
+ },
2737
+ {
2738
+ "type": "error",
2739
+ "name": "CallerNotUnderwriter",
2740
+ "inputs": []
2741
+ },
2742
+ {
2743
+ "type": "error",
2744
+ "name": "ERC20InsufficientAllowance",
2745
+ "inputs": [
2746
+ {
2747
+ "name": "spender",
2748
+ "type": "address",
2749
+ "internalType": "address"
2750
+ },
2751
+ {
2752
+ "name": "allowance",
2753
+ "type": "uint256",
2754
+ "internalType": "uint256"
2755
+ },
2756
+ {
2757
+ "name": "needed",
2758
+ "type": "uint256",
2759
+ "internalType": "uint256"
2760
+ }
2761
+ ]
2762
+ },
2763
+ {
2764
+ "type": "error",
2765
+ "name": "ERC20InsufficientBalance",
2766
+ "inputs": [
2767
+ {
2768
+ "name": "sender",
2769
+ "type": "address",
2770
+ "internalType": "address"
2771
+ },
2772
+ {
2773
+ "name": "balance",
2774
+ "type": "uint256",
2775
+ "internalType": "uint256"
2776
+ },
2777
+ {
2778
+ "name": "needed",
2779
+ "type": "uint256",
2780
+ "internalType": "uint256"
2781
+ }
2782
+ ]
2783
+ },
2784
+ {
2785
+ "type": "error",
2786
+ "name": "ERC20InvalidApprover",
2787
+ "inputs": [
2788
+ {
2789
+ "name": "approver",
2790
+ "type": "address",
2791
+ "internalType": "address"
2792
+ }
2793
+ ]
2794
+ },
2795
+ {
2796
+ "type": "error",
2797
+ "name": "ERC20InvalidReceiver",
2798
+ "inputs": [
2799
+ {
2800
+ "name": "receiver",
2801
+ "type": "address",
2802
+ "internalType": "address"
2803
+ }
2804
+ ]
2805
+ },
2806
+ {
2807
+ "type": "error",
2808
+ "name": "ERC20InvalidSender",
2809
+ "inputs": [
2810
+ {
2811
+ "name": "sender",
2812
+ "type": "address",
2813
+ "internalType": "address"
2814
+ }
2815
+ ]
2816
+ },
2817
+ {
2818
+ "type": "error",
2819
+ "name": "ERC20InvalidSpender",
2820
+ "inputs": [
2821
+ {
2822
+ "name": "spender",
2823
+ "type": "address",
2824
+ "internalType": "address"
2825
+ }
2826
+ ]
2827
+ },
2828
+ {
2829
+ "type": "error",
2830
+ "name": "ERC4626ExceededMaxDeposit",
2831
+ "inputs": [
2832
+ {
2833
+ "name": "receiver",
2834
+ "type": "address",
2835
+ "internalType": "address"
2836
+ },
2837
+ {
2838
+ "name": "assets",
2839
+ "type": "uint256",
2840
+ "internalType": "uint256"
2841
+ },
2842
+ {
2843
+ "name": "max",
2844
+ "type": "uint256",
2845
+ "internalType": "uint256"
2846
+ }
2847
+ ]
2848
+ },
2849
+ {
2850
+ "type": "error",
2851
+ "name": "ERC4626ExceededMaxMint",
2852
+ "inputs": [
2853
+ {
2854
+ "name": "receiver",
2855
+ "type": "address",
2856
+ "internalType": "address"
2857
+ },
2858
+ {
2859
+ "name": "shares",
2860
+ "type": "uint256",
2861
+ "internalType": "uint256"
2862
+ },
2863
+ {
2864
+ "name": "max",
2865
+ "type": "uint256",
2866
+ "internalType": "uint256"
2867
+ }
2868
+ ]
2869
+ },
2870
+ {
2871
+ "type": "error",
2872
+ "name": "ERC4626ExceededMaxRedeem",
2873
+ "inputs": [
2874
+ {
2875
+ "name": "owner",
2876
+ "type": "address",
2877
+ "internalType": "address"
2878
+ },
2879
+ {
2880
+ "name": "shares",
2881
+ "type": "uint256",
2882
+ "internalType": "uint256"
2883
+ },
2884
+ {
2885
+ "name": "max",
2886
+ "type": "uint256",
2887
+ "internalType": "uint256"
2888
+ }
2889
+ ]
2890
+ },
2891
+ {
2892
+ "type": "error",
2893
+ "name": "ERC4626ExceededMaxWithdraw",
2894
+ "inputs": [
2895
+ {
2896
+ "name": "owner",
2897
+ "type": "address",
2898
+ "internalType": "address"
2899
+ },
2900
+ {
2901
+ "name": "assets",
2902
+ "type": "uint256",
2903
+ "internalType": "uint256"
2904
+ },
2905
+ {
2906
+ "name": "max",
2907
+ "type": "uint256",
2908
+ "internalType": "uint256"
2909
+ }
2910
+ ]
2911
+ },
2912
+ {
2913
+ "type": "error",
2914
+ "name": "FunctionNotSupported",
2915
+ "inputs": []
2916
+ },
2917
+ {
2918
+ "type": "error",
2919
+ "name": "ImpairmentGrossGainBpsMustBePositive",
2920
+ "inputs": []
2921
+ },
2922
+ {
2923
+ "type": "error",
2924
+ "name": "ImpairmentPriceTooLow",
2925
+ "inputs": []
2926
+ },
2927
+ {
2928
+ "type": "error",
2929
+ "name": "InsufficientFunds",
2930
+ "inputs": [
2931
+ {
2932
+ "name": "available",
2933
+ "type": "uint256",
2934
+ "internalType": "uint256"
2935
+ },
2936
+ {
2937
+ "name": "required",
2938
+ "type": "uint256",
2939
+ "internalType": "uint256"
2940
+ }
2941
+ ]
2942
+ },
2943
+ {
2944
+ "type": "error",
2945
+ "name": "InsufficientInsuranceFunds",
2946
+ "inputs": [
2947
+ {
2948
+ "name": "available",
2949
+ "type": "uint256",
2950
+ "internalType": "uint256"
2951
+ },
2952
+ {
2953
+ "name": "required",
2954
+ "type": "uint256",
2955
+ "internalType": "uint256"
2956
+ }
2957
+ ]
2958
+ },
2959
+ {
2960
+ "type": "error",
2961
+ "name": "InvalidAddress",
2962
+ "inputs": []
2963
+ },
2964
+ {
2965
+ "type": "error",
2966
+ "name": "InvalidPercentage",
2967
+ "inputs": []
2968
+ },
2969
+ {
2970
+ "type": "error",
2971
+ "name": "InvalidReceiverAddressIndex",
2972
+ "inputs": []
2973
+ },
2974
+ {
2975
+ "type": "error",
2976
+ "name": "InvoiceAlreadyFunded",
2977
+ "inputs": []
2978
+ },
2979
+ {
2980
+ "type": "error",
2981
+ "name": "InvoiceAlreadyImpaired",
2982
+ "inputs": []
2983
+ },
2984
+ {
2985
+ "type": "error",
2986
+ "name": "InvoiceAlreadyPaid",
2987
+ "inputs": []
2988
+ },
2989
+ {
2990
+ "type": "error",
2991
+ "name": "InvoiceCanceled",
2992
+ "inputs": []
2993
+ },
2994
+ {
2995
+ "type": "error",
2996
+ "name": "InvoiceCannotBePaid",
2997
+ "inputs": []
2998
+ },
2999
+ {
3000
+ "type": "error",
3001
+ "name": "InvoiceCreditorChanged",
3002
+ "inputs": []
3003
+ },
3004
+ {
3005
+ "type": "error",
3006
+ "name": "InvoiceImpairFailed",
3007
+ "inputs": []
3008
+ },
3009
+ {
3010
+ "type": "error",
3011
+ "name": "InvoiceNotActive",
3012
+ "inputs": []
3013
+ },
3014
+ {
3015
+ "type": "error",
3016
+ "name": "InvoiceNotApproved",
3017
+ "inputs": []
3018
+ },
3019
+ {
3020
+ "type": "error",
3021
+ "name": "InvoiceNotImpaired",
3022
+ "inputs": []
3023
+ },
3024
+ {
3025
+ "type": "error",
3026
+ "name": "InvoiceNotPaid",
3027
+ "inputs": []
3028
+ },
3029
+ {
3030
+ "type": "error",
3031
+ "name": "InvoicePaidAmountChanged",
3032
+ "inputs": []
3033
+ },
3034
+ {
3035
+ "type": "error",
3036
+ "name": "InvoiceSetPaidCallbackFailed",
3037
+ "inputs": []
3038
+ },
3039
+ {
3040
+ "type": "error",
3041
+ "name": "InvoiceTokenMismatch",
3042
+ "inputs": []
3043
+ },
3044
+ {
3045
+ "type": "error",
3046
+ "name": "LoanOfferAlreadyAccepted",
3047
+ "inputs": []
3048
+ },
3049
+ {
3050
+ "type": "error",
3051
+ "name": "LoanOfferNotExists",
3052
+ "inputs": []
3053
+ },
3054
+ {
3055
+ "type": "error",
3056
+ "name": "NoFeesToWithdraw",
3057
+ "inputs": []
3058
+ },
3059
+ {
3060
+ "type": "error",
3061
+ "name": "OwnableInvalidOwner",
3062
+ "inputs": [
3063
+ {
3064
+ "name": "owner",
3065
+ "type": "address",
3066
+ "internalType": "address"
3067
+ }
3068
+ ]
3069
+ },
3070
+ {
3071
+ "type": "error",
3072
+ "name": "OwnableUnauthorizedAccount",
3073
+ "inputs": [
3074
+ {
3075
+ "name": "account",
3076
+ "type": "address",
3077
+ "internalType": "address"
3078
+ }
3079
+ ]
3080
+ },
3081
+ {
3082
+ "type": "error",
3083
+ "name": "RedemptionQueueNotEmpty",
3084
+ "inputs": []
3085
+ },
3086
+ {
3087
+ "type": "error",
3088
+ "name": "SafeERC20FailedOperation",
3089
+ "inputs": [
3090
+ {
3091
+ "name": "token",
3092
+ "type": "address",
3093
+ "internalType": "address"
3094
+ }
3095
+ ]
3096
+ },
3097
+ {
3098
+ "type": "error",
3099
+ "name": "TooManyPendingLoanOffers",
3100
+ "inputs": [
3101
+ {
3102
+ "name": "current",
3103
+ "type": "uint256",
3104
+ "internalType": "uint256"
3105
+ },
3106
+ {
3107
+ "name": "max",
3108
+ "type": "uint256",
3109
+ "internalType": "uint256"
3110
+ }
3111
+ ]
3112
+ },
3113
+ {
3114
+ "type": "error",
3115
+ "name": "UnauthorizedDeposit",
3116
+ "inputs": [
3117
+ {
3118
+ "name": "caller",
3119
+ "type": "address",
3120
+ "internalType": "address"
3121
+ }
3122
+ ]
3123
+ },
3124
+ {
3125
+ "type": "error",
3126
+ "name": "UnauthorizedFactoring",
3127
+ "inputs": [
3128
+ {
3129
+ "name": "caller",
3130
+ "type": "address",
3131
+ "internalType": "address"
3132
+ }
3133
+ ]
3134
+ },
3135
+ {
3136
+ "type": "error",
3137
+ "name": "UnauthorizedRedeem",
3138
+ "inputs": [
3139
+ {
3140
+ "name": "caller",
3141
+ "type": "address",
3142
+ "internalType": "address"
3143
+ }
3144
+ ]
3145
+ },
3146
+ {
3147
+ "type": "error",
3148
+ "name": "UnauthorizedWithdrawal",
3149
+ "inputs": [
3150
+ {
3151
+ "name": "caller",
3152
+ "type": "address",
3153
+ "internalType": "address"
3154
+ }
3155
+ ]
3156
+ }
3157
+ ]