dagger-contracts/contracts/TestMarketplace.sol

23 lines
553 B
Solidity
Raw Normal View History

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "./Marketplace.sol";
// exposes internal functions of Marketplace for testing
contract TestMarketplace is Marketplace {
constructor(
IERC20 token,
MarketplaceConfig memory config
2023-01-18 14:26:21 +00:00
)
2023-03-08 11:02:34 +00:00
Marketplace(token, config) // solhint-disable-next-line no-empty-blocks
2023-01-18 14:26:21 +00:00
{}
function forciblyFreeSlot(SlotId slotId) public {
_forciblyFreeSlot(slotId);
}
2023-03-08 11:02:34 +00:00
function getSlotCollateral(SlotId slotId) public view returns (uint256) {
return _slots[slotId].currentCollateral;
}
}