-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIBullaClaimV2.sol
More file actions
65 lines (53 loc) · 2.04 KB
/
Copy pathIBullaClaimV2.sol
File metadata and controls
65 lines (53 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// SPDX-License-Identifier: BUSL-1.1
pragma solidity ^0.8.30;
import "./IBullaClaimCore.sol";
import "./IBullaClaimAdmin.sol";
interface IBullaClaimV2 is IBullaClaimCore, IBullaClaimAdmin {
/*///////////////////////////////////////////////////////////////
ERRORS
//////////////////////////////////////////////////////////////*/
error Locked();
error PastApprovalDeadline();
error NotOwner();
error NotController(address sender);
error ClaimPending();
error NotMinted();
error PaymentUnderApproved();
error WithdrawalFailed();
error InvalidInterface();
error IncorrectFee();
error CannotBindClaim();
error NotCreditorOrDebtor();
error NotCreditor();
error ClaimBound();
error ClaimNotPending();
error NotApproved();
error PayingZero();
error OverPaying(uint256 paymentAmount);
error ApprovalExpired();
error NotSupported();
error MustBeControlledClaim();
error IncorrectMsgValue();
/*///////////////////////////////////////////////////////////////
EVENTS
//////////////////////////////////////////////////////////////*/
event ClaimCreated(
uint256 indexed claimId,
address from,
address indexed creditor,
address indexed debtor,
uint256 claimAmount,
uint256 dueBy,
string description,
address token,
address controller,
ClaimBinding binding
);
event MetadataAdded(uint256 indexed claimId, string tokenURI, string attachmentURI);
event ClaimPayment(uint256 indexed claimId, address indexed paidBy, uint256 paymentAmount, uint256 totalPaidAmount);
event BindingUpdated(uint256 indexed claimId, address indexed from, ClaimBinding indexed binding);
event ClaimRejected(uint256 indexed claimId, address indexed from, string note);
event ClaimRescinded(uint256 indexed claimId, address indexed from, string note);
event ClaimImpaired(uint256 indexed claimId);
event ClaimMarkedAsPaid(uint256 indexed claimId);
}