APMRegistry
contract APMRegistry
is AragonApp, AppProxyFactory, APMInternalAppNames
Source: contracts/apm/APMRegistry.sol
Index
Reference
Events
NewRepo
event``
NewRepo
(bytes32 id, string name, address repo)
Parameters:
id
- bytes32name
- stringrepo
- address
Functions
_newRepo
function``
_newRepo
(string _name, address _dev) internal returns (Repo)
Parameters:
_name
- string_dev
- address
Returns:
Repo
initialize
function``
initialize
(ENSSubdomainRegistrar _registrar) public
NEEDS CREATE_NAME_ROLE and POINT_ROOTNODE_ROLE permissions on registrar, Initialize can only be called once. It saves the block number in which it was initialized, Initialize this APMRegistry instance and set `_registrar` as the ENS subdomain registrar.
Modifiers:
Parameters:
_registrar
- ENSSubdomainRegistrar instance that holds registry root node ownership
newClonedRepo
function``
newClonedRepo
() internal returns (Repo)
Returns:
Repo
newRepo
function``
newRepo
(string _name, address _dev) public returns (Repo)
Create new repo in registry with `_name`.
Modifiers:
Parameters:
_name
- Repo name, must be ununsed_dev
- Address that will be given permission to create versions
Returns:
Repo
newRepoWithVersion
function``
newRepoWithVersion
(string _name, address _dev, uint16[] _initialSemanticVersion, address _contractAddress, bytes _contentURI) public returns (Repo)
Create new repo in registry with `_name` and publish a first version with contract `_contractAddress` and content `@fromHex(_contentURI)`.
Modifiers:
Parameters:
_name
- Repo name_dev
- Address that will be given permission to create versions_initialSemanticVersion
- Semantic version for new repo version_contractAddress
- address for smart contract logic for version (if set to 0, it uses last versions' contractAddress)_contentURI
- External URI for fetching new version's content
Returns:
Repo
repoAppId
function``
repoAppId
() internal view returns (bytes32)
Returns:
bytes32
Last updated