2022-09-08 07:56:01 +00:00
|
|
|
// 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
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-09-29 10:18:02 +00:00
|
|
|
function isCancelled(RequestId requestId) public view returns (bool) {
|
2022-09-08 07:56:01 +00:00
|
|
|
return _isCancelled(requestId);
|
|
|
|
}
|
|
|
|
|
2022-09-29 10:18:02 +00:00
|
|
|
function isSlotCancelled(SlotId slotId) public view returns (bool) {
|
2022-09-08 07:56:01 +00:00
|
|
|
return _isSlotCancelled(slotId);
|
|
|
|
}
|
2022-09-21 09:13:12 +00:00
|
|
|
|
2022-11-23 14:10:58 +00:00
|
|
|
function forciblyFreeSlot(SlotId slotId) public {
|
|
|
|
_forciblyFreeSlot(slotId);
|
2022-09-13 07:18:55 +00:00
|
|
|
}
|
|
|
|
|
2022-09-29 10:18:02 +00:00
|
|
|
function slot(SlotId slotId) public view returns (Slot memory) {
|
2022-09-13 07:18:55 +00:00
|
|
|
return _slot(slotId);
|
|
|
|
}
|
2022-09-21 09:57:26 +00:00
|
|
|
|
2022-09-29 10:18:02 +00:00
|
|
|
function testAcceptsProofs(SlotId slotId)
|
2022-09-21 09:57:26 +00:00
|
|
|
public
|
|
|
|
view
|
2022-09-22 02:21:49 +00:00
|
|
|
slotMustAcceptProofs(slotId)
|
2022-09-21 09:57:26 +00:00
|
|
|
// solhint-disable-next-line no-empty-blocks
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2022-09-21 09:13:12 +00:00
|
|
|
}
|