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
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
function isCancelled(bytes32 requestId) public view returns (bool) {
|
|
|
|
return _isCancelled(requestId);
|
|
|
|
}
|
|
|
|
|
|
|
|
function isSlotCancelled(bytes32 slotId) public view returns (bool) {
|
|
|
|
return _isSlotCancelled(slotId);
|
|
|
|
}
|
2022-09-21 09:13:12 +00:00
|
|
|
|
2022-09-13 07:18:55 +00:00
|
|
|
function freeSlot(bytes32 slotId) public {
|
|
|
|
_freeSlot(slotId);
|
|
|
|
}
|
|
|
|
|
|
|
|
function slot(bytes32 slotId) public view returns (Slot memory) {
|
|
|
|
return _slot(slotId);
|
|
|
|
}
|
2022-09-21 09:57:26 +00:00
|
|
|
|
|
|
|
function testAcceptsProofs(bytes32 slotId)
|
|
|
|
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
|
|
|
}
|