APMRegistry
Last updated
Was this helpful?
Last updated
Was this helpful?
is , ,
Source:
event``
NewRepo
(bytes32 id, string name, address repo)
Parameters:
id
- bytes32
name
- string
repo
- address
function``
_newRepo
(string _name, address _dev) internal returns (Repo)
Parameters:
_name
- string
_dev
- address
Returns:
Repo
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
function``
newClonedRepo
() internal returns (Repo)
Returns:
Repo
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
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
function``
repoAppId
() internal view returns (bytes32)
Returns:
bytes32