This repository was archived by the owner on May 22, 2025. It is now read-only.

Description
Assuming the user uses APMRegistryFactory (all of our deployed instances do), let's say we want to deploy open.aragonpm.eth off of an existing aragonpm.eth instance:
- Take the parent
aragonpm.eth (this should resolve to an APMRegistry), find its ENSSubdomainRegistrar (.registrar())
- If not already done, grant an account the
ENSSubdomainRegistrar's CREATE_NAME_ROLE
- With that account, call
.createName() on the registrar to create the new name (sha3(open)) and assign ownership to the APMRegistryFactory contract
- Call
.newAPM() on the APMRegistryFactory with the new name (sha3(open)) and tld (namehash(aragonpm.eth)).