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