|
2 | 2 |
|
3 | 3 | pragma solidity 0.8.24; |
4 | 4 |
|
5 | | -import "./Types.sol"; |
| 5 | +import {IERC20, Party, Status, Resolution, Transaction} from "./Types.sol"; |
6 | 6 |
|
7 | 7 | interface IEscrow { |
8 | 8 | // ************************************* // |
@@ -157,6 +157,43 @@ interface IEscrow { |
157 | 157 | /// @return The count of transactions. |
158 | 158 | function getTransactionCount() external view returns (uint256); |
159 | 159 |
|
| 160 | + /// @dev Getter for transaction details. |
| 161 | + /// @param _transactionID The index of the transaction. |
| 162 | + /// @return buyer The buyer address. |
| 163 | + /// @return seller The seller address. |
| 164 | + /// @return amount The escrowed amount. |
| 165 | + /// @return settlementBuyer Settlement amount proposed by the buyer. |
| 166 | + /// @return settlementSeller Settlement amount proposed by the seller. |
| 167 | + /// @return deadline The deadline timestamp. |
| 168 | + /// @return disputeID The dispute ID if any. |
| 169 | + /// @return buyerFee Total fees paid by the buyer. |
| 170 | + /// @return sellerFee Total fees paid by the seller. |
| 171 | + /// @return lastFeePaymentTime Timestamp of last fee payment or settlement proposal. |
| 172 | + /// @return status Current status. |
| 173 | + /// @return token Payment token (zero address for native). |
| 174 | + function transactions(uint256 _transactionID) |
| 175 | + external |
| 176 | + view |
| 177 | + returns ( |
| 178 | + address payable buyer, |
| 179 | + address payable seller, |
| 180 | + uint256 amount, |
| 181 | + uint256 settlementBuyer, |
| 182 | + uint256 settlementSeller, |
| 183 | + uint256 deadline, |
| 184 | + uint256 disputeID, |
| 185 | + uint256 buyerFee, |
| 186 | + uint256 sellerFee, |
| 187 | + uint256 lastFeePaymentTime, |
| 188 | + Status status, |
| 189 | + IERC20 token |
| 190 | + ); |
| 191 | + |
| 192 | + /// @dev Getter to map a dispute ID to its transaction ID. |
| 193 | + /// @param _disputeID The dispute identifier from the arbitrator. |
| 194 | + /// @return The corresponding transaction ID. |
| 195 | + function disputeIDtoTransactionID(uint256 _disputeID) external view returns (uint256); |
| 196 | + |
160 | 197 | // ************************************* // |
161 | 198 | // * Errors * // |
162 | 199 | // ************************************* // |
|
0 commit comments