Skip to content
Lattice

CrosschainLinkStorage

Git Source

ERC-7201 namespaced storage for CrosschainLink.

Note:

  • storage-location: erc7201:lattice.storage.CrosschainLink
struct CrosschainLinkStorage {
    /// @notice Per source-chain link, keyed by a "chain-only" interoperable address. APPEND-ONLY.
    mapping(bytes chain => Link) _links;
    /// @notice Inbound message handler per 4-byte payload tag. APPEND-ONLY.
    mapping(bytes4 tag => address handler) _handlers;
    /// @notice De-duplication set, keyed by `keccak256(abi.encode(gateway, receiveId))` — ERC-7786 only
    ///         guarantees receiveId uniqueness per-gateway, so the key is gateway-scoped. APPEND-ONLY.
    mapping(bytes32 usedKey => bool used) _used;
}

Properties

NameTypeDescription
_linksmapping(bytes chain => Link)
_handlersmapping(bytes4 tag => address handler)
_usedmapping(bytes32 usedKey => bool used)