IBoolConsumerBase.sol

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

import {IERC165} from "@openzeppelin/contracts/utils/introspection/IERC165.sol";

interface IBoolConsumerBase is IERC165 {
    function anchor() external view returns (address);
    
    /// @dev Application builder should define their logic here
    /// @dev to decode "payload" received from the corresponding Anchor
    function receiveFromAnchor(bytes32 txUniqueIdentification, bytes memory payload) external;
}

Last updated