Skip to content

Commit

Permalink
feat: 🎸 Handling of the addCanceled function in the Storages
Browse files Browse the repository at this point in the history
✅ Closes: #218
  • Loading branch information
siriusyim committed Mar 13, 2024
1 parent 02d02c9 commit 890db63
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/v0.8/module/storage/Storages.sol
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ contract Storages is
);
}

/// @dev Completes the storage process for a given matching ID.
/// @param _matchingId The ID of the matching.
function completeStorage(uint64 _matchingId) public {}

/// @dev Gets the list of done cars in the matchedstore.
function getStoredCars(
uint64 _matchingId
Expand Down Expand Up @@ -213,6 +217,13 @@ contract Storages is
}
}

/// @dev Checks if the storage process is completed for a given matching ID.
/// @param _matchingId The ID of the matching.
/// @return A boolean indicating whether the storage process is completed or not.
function isStorageCompleted(
uint64 _matchingId
) public view returns (bool) {}

/// @dev Internal function to allocate matched datacap.
// solhint-disable-next-line
function _allocateDatacap(
Expand Down
1 change: 1 addition & 0 deletions src/v0.8/types/StorageType.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ library StorageType {
/// @notice Struct representing a storage deal.
struct Storage {
uint64[] doneCars;
bool completed;
}
}

0 comments on commit 890db63

Please sign in to comment.