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.
17 lines
497 B
Solidity
17 lines
497 B
Solidity
// SPDX-License-Identifier: LGPL-3.0-only
|
|
pragma solidity 0.8.23;
|
|
|
|
/// @dev Tiny test helper: a call target that records how many times it was bumped and by whom,
|
|
/// so a test can assert the threshold account actually dispatched the authorized call.
|
|
contract EchoTarget {
|
|
uint256 public calls;
|
|
address public lastCaller;
|
|
uint256 public lastValue;
|
|
|
|
function bump() external payable {
|
|
calls += 1;
|
|
lastCaller = msg.sender;
|
|
lastValue = msg.value;
|
|
}
|
|
}
|