Skip to content
Lattice

RecipeEntry

Git Source

One line of a diamond recipe: a curated ILatticeRegistry Tier-B facet to resolve and cut.

struct RecipeEntry {
    bytes32 nameHash;
    uint64 version;
    bytes4[] exclude;
}

Properties

NameTypeDescription
nameHashbytes32The curated name key (by convention keccak256("lattice.<FacetName>")).
versionuint64The semver-packed uint64 to pin (major<<48 | minor<<24 | patch). 0 — the registry's
reserved sentinel — means "resolve the curator's latest(nameHash) pointer when the transaction
EXECUTES": the curator can move it between signing and inclusion, so security-critical recipes pin an
exact version, and ILatticeFactory.deployStrict refuses 0.
excludebytes4[]Selectors to drop from the entry's registry cut (for a facet cut partially, such as the
governed vault's ERC20, whose name() another facet serves). Each must be in the facet's pinned
export, at most once; the remaining selectors keep their export order. Empty for a whole facet.