From 3d64c14cf78cbaa3928e269e8ccef5380cd370f3 Mon Sep 17 00:00:00 2001 From: Tronky Date: Wed, 12 Mar 2025 21:53:25 +0700 Subject: [PATCH] expanded IPurchaseTracker for CommunityVault refactoring --- src/IPurchaseTracker.sol | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/IPurchaseTracker.sol b/src/IPurchaseTracker.sol index 5de77af..9ec6929 100644 --- a/src/IPurchaseTracker.sol +++ b/src/IPurchaseTracker.sol @@ -3,4 +3,8 @@ pragma solidity ^0.8.20; interface IPurchaseTracker { function recordPurchase(bytes32 paymentId, address seller, address buyer, uint256 amount) external; + function getPurchaseCount(address recipient) external view returns (uint256); + function getPurchaseAmount(address recipient) external view returns (uint256); + function getSalesCount(address recipient) external view returns (uint256); + function getSalesAmount(address recipient) external view returns (uint256); }