Multi-Tier Permissioning
Protocol Permissions System
Registry Level (Top)
function setRegistryType(address addr, RegistryType type_, bool status) external onlyOwner {
if (type_ == RegistryType.UNUSED) revert ErrorsLib.InvalidRole();
if (type_ == RegistryType.NODE) revert ErrorsLib.NotFactory();
roles[addr][type_] = status;
}Router Level (Middle)
function setWhitelistStatus(address component, bool status) external onlyRegistryOwner {
isWhitelisted[component] = status;
}Node Level (Bottom)
No Forced Upgrades
Adding Components & Routers
Last updated