Skip to content
Verified contractExactMIT

EtherealRoseCREReceiver

Address0x123fbe5ff80554eee5f958bf25fbcd0fa0a29ca5
Balance

0 ETH

 

Transactions

1

 

Compiler

solc 0.8.34

 

Same code

Only this contract

 

Details

Compiler
solc 0.8.34+commit.80d5c536
Language
solidity
Optimization
No
License
MIT
Match
Exactcreation code: yes, runtime code: yes
Verified on Sourcify
Created in block
26,352,174
Creation transaction
0x5172e6f270…987fd0785f

EtherealRoseCREReceiver.sol

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

interface IEtherealRoseCalendarKeeper {
    function maintain() external;
}

/// @notice Minimal CRE receiver for The Ethereal Rose calendar keeper.
/// @dev Accepts reports only from Chainlink's configured Keystone Forwarder.
///      Report contents cannot select artwork, dates, ordering, or metadata; a
///      valid report can only ask the already-restricted keeper to maintain its
///      calendar. Early or duplicate maintenance still reverts in the keeper.
contract EtherealRoseCREReceiver {
    error OnlyForwarder();
    error InvalidConfiguration();

    event MaintenanceReportReceived(address indexed forwarder, bytes32 indexed reportHash);

    address public immutable forwarder;
    IEtherealRoseCalendarKeeper public immutable keeper;

    constructor(address forwarder_, address keeper_) {
        if (forwarder_ == address(0) || keeper_ == address(0)) revert InvalidConfiguration();
        forwarder = forwarder_;
        keeper = IEtherealRoseCalendarKeeper(keeper_);
    }

    /// @notice Chainlink CRE delivery entrypoint.
    /// @param metadata CRE delivery metadata; intentionally not used for control.
    /// @param report DON-signed report; intentionally not used for control.
    function onReport(bytes calldata metadata, bytes calldata report) external {
        if (msg.sender != forwarder) revert OnlyForwarder();

        keeper.maintain();
        emit MaintenanceReportReceived(msg.sender, keccak256(abi.encode(metadata, report)));
    }
}
Compiler settingsShow
{
  "optimizer": {
    "runs": 200,
    "enabled": false
  },
  "remappings": []
}

Source code and metadata: Sourcify.

The source code belongs to the authors of the contract.