mirror of
https://github.com/codex-storage/codex-contracts-eth.git
synced 2025-02-02 06:35:41 +00:00
ae70fd7c6f
Container for all configuration values, replaces separate constructor parameters and getters.
29 lines
761 B
Solidity
29 lines
761 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "./Proofs.sol";
|
|
|
|
// exposes internal functions of Proofs for testing
|
|
contract TestProofs is Proofs {
|
|
mapping(SlotId => SlotState) private states;
|
|
|
|
// solhint-disable-next-line no-empty-blocks
|
|
constructor(ProofConfig memory config) Proofs(config) {}
|
|
|
|
function slotState(SlotId slotId) internal view override returns (SlotState) {
|
|
return states[slotId];
|
|
}
|
|
|
|
function startRequiringProofs(SlotId slot, uint256 _probability) public {
|
|
_startRequiringProofs(slot, _probability);
|
|
}
|
|
|
|
function markProofAsMissing(SlotId id, Period _period) public {
|
|
_markProofAsMissing(id, _period);
|
|
}
|
|
|
|
function setSlotState(SlotId id, SlotState state) public {
|
|
states[id] = state;
|
|
}
|
|
}
|