Skip to content

Commit 070653f

Browse files
authored
feat: add missing functions in interfaces (#99)
1 parent 9b09a97 commit 070653f

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/interfaces/IBullaClaimAdmin.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,7 @@ interface IBullaClaimAdmin {
2929

3030
function setFeeExemptions(address _feeExemptions) external;
3131

32+
function setClaimMetadataGenerator(address _metadataGenerator) external;
33+
3234
function withdrawAllFees() external;
3335
}

src/interfaces/IBullaInvoice.sol

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ interface IBullaInvoice {
7070
// Claim management functions
7171
function updateBinding(uint256 claimId, ClaimBinding binding) external;
7272
function cancelInvoice(uint256 claimId, string memory note) external;
73+
function impairInvoice(uint256 claimId) external;
74+
function markInvoiceAsPaid(uint256 claimId) external;
7375

7476
// Admin functions
7577
function setProtocolFee(uint16 _protocolFeeBPS) external;

test/foundry/BullaInvoice/BullaInvoiceERC165.t.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ contract BullaInvoiceERC165Test is Test {
5050
^ IBullaInvoice.cancelInvoice.selector ^ IBullaInvoice.setProtocolFee.selector
5151
^ IBullaInvoice.withdrawAllFees.selector ^ IBullaInvoice.addToFeeTokenWhitelist.selector
5252
^ IBullaInvoice.removeFromFeeTokenWhitelist.selector ^ IBullaInvoice.admin.selector
53-
^ IBullaInvoice.protocolFeeBPS.selector ^ IBullaInvoice.protocolFeesByToken.selector;
53+
^ IBullaInvoice.protocolFeeBPS.selector ^ IBullaInvoice.protocolFeesByToken.selector
54+
^ IBullaInvoice.impairInvoice.selector ^ IBullaInvoice.markInvoiceAsPaid.selector;
5455

5556
bytes4 actualInterfaceId = type(IBullaInvoice).interfaceId;
5657
assertEq(actualInterfaceId, expectedInterfaceId, "Interface ID calculation should match");

0 commit comments

Comments
 (0)