@bulla/registry 0.0.0-stage → 1.0.1

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