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 - bytes32

  • name - string

  • repo - 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