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