mirror of
https://github.com/logos-storage/logos-storage-contracts-eth.git
synced 2026-01-25 00:13:08 +00:00
Create a DAL lib with a Database struct that contains all tables and relationships. Referential integrity is guaranteed.
46 lines
1.0 KiB
Solidity
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
|
|
{
|
|
|
|
}
|
|
}
|