Eric Mastro 407d51bc9a
Refactor to data access layer
Create a DAL lib with a Database struct that contains all tables and relationships. Referential integrity is guaranteed.
2022-12-01 15:53:28 +11:00

46 lines
1.0 KiB
Solidity

// 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,
uint256 _collateral,
uint256 _proofPeriod,
uint256 _proofTimeout,
uint8 _proofDowntime
)
Marketplace(_token, _collateral, _proofPeriod,_proofTimeout,_proofDowntime)
// solhint-disable-next-line no-empty-blocks
{
}
function isCancelled(DAL.RequestId requestId) public view returns (bool) {
return _isCancelled(requestId);
}
function isSlotCancelled(DAL.SlotId slotId) public view returns (bool) {
return _isSlotCancelled(slotId);
}
function freeSlot(DAL.SlotId slotId) public {
_freeSlot(slotId);
}
function slot(DAL.SlotId slotId) public view returns (DAL.Slot memory) {
return _slot(slotId);
}
function testAcceptsProofs(DAL.SlotId slotId)
public
view
slotMustAcceptProofs(slotId)
// solhint-disable-next-line no-empty-blocks
{
}
}