// SPDX-License-Identifier: MIT
pragma solidity ^0.8.23;

// Test-only helpers for AereMailboxV3. Not for mainnet deployment.

contract TestRecipientV3 {
    uint32 public lastOrigin;
    bytes32 public lastSender;
    bytes public lastBody;
    uint256 public handleCount;

    event Handled(uint32 origin, bytes32 sender, bytes body);

    function handle(uint32 origin, bytes32 sender, bytes calldata body) external payable {
        lastOrigin = origin;
        lastSender = sender;
        lastBody = body;
        handleCount += 1;
        emit Handled(origin, sender, body);
    }
}
