AppDirectory
contract AppDirectory
Implementation directory with a standard library as a fallback provider. If the implementation is not found in the directory, it will search in the standard library.
Source: application/AppDirectory.sol
Reference
Events
StdlibChanged
event StdlibChanged(address newStdlib)
Emitted when the standard library is changed.
- Parameters:
newStdlib
- Address of the new standard library.
Functions
AppDirectory
function AppDirectory(ImplementationProvider _stdlib) public
Constructor function.
- Parameters:
_stdlib
- Provider for standard library implementations.
getImplementation
function getImplementation(string contractName) public view returns (address)
Returns the implementation address for a given contract name. If the implementation is not found in the directory, it will search in the standard library.
- Parameters:
contractName
- Name of the contract.- Returns:
- Address where the contract is implemented, or 0 if it is not found.
setStdlib
function setStdlib(ImplementationProvider _stdlib) public
Sets a new implementation provider for standard library contracts.
- Modifiers:
- onlyOwner
- Parameters:
_stdlib
- Standard library implementation provider.