Files
smom-dbis-138/contracts/mainnet-checkpoint/libraries/CheckpointFlags.sol
T
defiQUGandCursor 651fb59786 Add mainnet checkpoint stack: ISO attestation, participant Etherscan surface, and services.
Ship AddressActivityRegistry V1/V2, ISO20022IntakeGateway, Chain138ParticipantSurface,
checkpoint hub contracts, checkpoint-core package, aggregator/indexer/sdk services,
relay profile guards, M00 diamond bridge facet, and OMNL compliance contracts.

Co-authored-by: Cursor <[email protected]>
2026-06-24 21:54:05 -07:00

21 lines
710 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/**
* @title CheckpointFlags
* @notice Bitfield for CheckpointHeader.flags — extensible without upgrades when bits are reserved.
*/
library CheckpointFlags {
uint32 internal constant PARTIAL_BATCH = 1 << 0;
uint32 internal constant CALLDATA_ONLY = 1 << 1;
uint32 internal constant CCIP_INGRESS = 1 << 2;
uint32 internal constant RELAYER_SUBMIT = 1 << 3;
uint32 internal constant HAS_CONTENT_URI = 1 << 4;
uint32 internal constant HAS_RECEIPTS_ROOT = 1 << 5;
uint32 internal constant EMERGENCY = 1 << 6;
function has(uint32 flags, uint32 bit) internal pure returns (bool) {
return flags & bit != 0;
}
}