2021-11-01 12:30:35 +01:00
|
|
|
// SPDX-License-Identifier: MIT
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
|
|
|
|
import "./Proofs.sol";
|
|
|
|
|
|
|
|
// exposes internal functions of Proofs for testing
|
|
|
|
contract TestProofs is Proofs {
|
2023-01-16 16:31:04 +01:00
|
|
|
mapping(SlotId => SlotState) private states;
|
2023-01-10 12:11:20 +01:00
|
|
|
|
2022-03-10 10:19:21 +01:00
|
|
|
constructor(
|
|
|
|
uint256 __period,
|
|
|
|
uint256 __timeout,
|
|
|
|
uint8 __downtime
|
|
|
|
)
|
|
|
|
Proofs(__period, __timeout, __downtime)
|
2022-03-02 15:44:58 +01:00
|
|
|
// solhint-disable-next-line no-empty-blocks
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2023-01-16 16:31:04 +01:00
|
|
|
function slotState(SlotId slotId) internal view override returns (SlotState) {
|
|
|
|
return states[slotId];
|
2023-01-10 12:11:20 +01:00
|
|
|
}
|
|
|
|
|
2023-01-10 12:51:26 +01:00
|
|
|
function startRequiringProofs(SlotId slot, uint256 _probability) public {
|
|
|
|
_startRequiringProofs(slot, _probability);
|
2021-11-01 12:30:35 +01:00
|
|
|
}
|
|
|
|
|
2023-01-10 14:16:32 +01:00
|
|
|
function markProofAsMissing(SlotId id, Period _period) public {
|
2022-03-08 15:58:08 +01:00
|
|
|
_markProofAsMissing(id, _period);
|
2021-11-01 12:30:35 +01:00
|
|
|
}
|
2022-09-29 20:07:55 +10:00
|
|
|
|
2023-01-16 16:31:04 +01:00
|
|
|
function setSlotState(SlotId id, SlotState state) public {
|
|
|
|
states[id] = state;
|
2022-09-29 20:07:55 +10:00
|
|
|
}
|
2021-11-01 12:30:35 +01:00
|
|
|
}
|