Registry

Address: 0xFA8beC73cebB9D88FF88a2f75E7D7312f2Fd39EC

The primary contract and system entry point is DIMORegistry. This contract has all of the storage and is in charge of adding, deleting, and updating modules. It also directs calls and transactions to the appropriate module, which houses the implementation logic, using delegate calls. Nevertheless, no module hasconstructor, and the only contract that does so is DIMORegistry.

The only contract that cannot be upgraded is DIMORegistry, which helps to increase security and fend against harmful attempts. Only addresses with the admin role can access the functions that alter modules.

struct Storage {
    // Maps function selectors to the implementations that execute the functions
    mapping(bytes4 => address) implementations;

    // Maps the implementation to the hash of all its selectors
    // implementation => keccak256(abi.encode(selectors))
    mapping(address => bytes32) selectorsHash; 
}

Last updated