Aere Network public source. Everything here can be checked against the live chain (chain id 2800, https://rpc.aere.network). Scope note, stated up front rather than buried: consensus on chain 2800 is classical secp256k1 ECDSA QBFT. The post-quantum work in this repository is at the signature, precompile, account and transport layers. Nothing here makes the consensus post-quantum, and no document in it should be read as claiming so.
20 lines
650 B
Solidity
20 lines
650 B
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity 0.8.23;
|
|
|
|
import "../safety/AereDeathSwitch.sol";
|
|
|
|
contract MockDeathSwitchCondition is IDeathSwitchCondition {
|
|
bool public breached;
|
|
bytes32 public immutable BUCKET;
|
|
string public LABEL;
|
|
|
|
constructor(bytes32 bucket_, string memory label_) {
|
|
BUCKET = bucket_;
|
|
LABEL = label_;
|
|
}
|
|
function setBreached(bool v) external { breached = v; }
|
|
function isBreached() external view returns (bool) { return breached; }
|
|
function bucket() external view returns (bytes32) { return BUCKET; }
|
|
function label() external view returns (string memory) { return LABEL; }
|
|
}
|