logos-storage-contracts-eth/contracts/TestSlotReservations.sol
Eric 8b909f55d2
Remove saturation parameter
Remove saturation parameter, delta, and instead use expansionRate as part of the storage request, in preparation for a linear curve of the expanding window definition.
2024-09-20 15:57:14 +10:00

17 lines
443 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;
import "./SlotReservations.sol";
contract TestSlotReservations is SlotReservations {
using EnumerableSet for EnumerableSet.AddressSet;
function contains(SlotId slotId, address host) public view returns (bool) {
return _reservations[slotId].contains(host);
}
function length(SlotId slotId) public view returns (uint256) {
return _reservations[slotId].length();
}
}