PackagedApp
contract PackagedApp
is BaseApp
App for an upgradeable project that can use different versions. This is the standard entry point for an upgradeable app.
Source: application/PackagedApp.sol
Reference
Functions
PackagedApp
function PackagedApp(Package _package, string _version, UpgradeabilityProxyFactory _factory) public
Constructor function.
- Modifiers:
- Parameters:
_package
- Package that stores the contract implementation addresses._version
- Initial version of the app._factory
- Proxy factory.
getProvider
function getProvider() internal view returns (ImplementationProvider)
Returns the provider for the current version.
- Returns:
- The provider for the current version.
setVersion
function setVersion(string newVersion) public
Sets the current version of the application. Contract implementations for the given version must already be registered in the package.
- Modifiers:
- onlyOwner
- Parameters:
newVersion
- Name of the new version.