ITwoKeySingletonesRegistry
interface ITwoKeySingletonesRegistry
This contract represents the interface of a registry contract.
Reference
Events
ProxyCreated
event ProxyCreated(address proxy)This event will be emitted every time a new proxy is created.
- Parameters:
proxy- representing the address of the proxy created
VersionAdded
event VersionAdded(string version, address implementation)This event will be emitted every time a new implementation is registered.
- Parameters:
version- representing the version name of the registered implementationimplementation- representing the address of the registered implementation
Functions
addVersion
abstract function addVersion(string _contractName, string version, address implementation) publicRegisters a new version with its implementation address.
- Parameters:
_contractName- stringversion- representing the version name of the new implementation to be registeredimplementation- representing the address of the new implementation to be registered
getVersion
abstract function getVersion(string _contractName, string version) public view returns (address)Tells the address of the implementation for a given version.
- Parameters:
_contractName- is the name of the contract we're queryingversion- to query the implementation of- Returns:
- address of the implementation registered for the given version