CoFHE FactoryRegistry migration automates contract registration
Nov 24 find · published Nov 22GHGitHub · FhenixProtocol/cofhe-contracts · 1 min readRead original
Developer tools, templates and guides from the teamsCoFHE FactoryRegistry feature for contract access management
Fhenix's CoFHE contracts PR #192 adds FactoryRegistry, a tree-based contract registration system that automates access list management. Approved factories can now register their own deployments to the TaskManager access list instead of requiring manual ops work. The registry supports up to 8 levels and 500 live contracts per factory, with unregister removing contracts and their subtrees in under 11.4M gas. Migration functions adoptFactories and adopt move existing manually-listed contracts into the tree structure without access gaps. The same access control model applies: DEFAULT_ADMIN_ROLE with delay, UPGRADER_ROLE, FACTORY_APPROVER_ROLE, and REVOKER_ROLE. Tests include 34 Hardhat tests and 9 Foundry gas tests.
8 levelsFactoryRegistry tree depth
500Live contracts per factory
11.4MGas for full tree unregister
Comments
Sign in to join the conversation.