1
- pragma solidity ^ 0.4.18 ;
2
-
1
+ pragma solidity 0.4.24 ;
3
2
4
3
import '../Registrar.sol ' ;
5
4
import '@aragon/os/contracts/apps/AragonApp.sol ' ;
@@ -14,35 +13,35 @@ import '@aragon/os/contracts/factory/ENSFactory.sol';
14
13
import '@aragon/os/contracts/factory/APMRegistryFactory.sol ' ;
15
14
16
15
contract AragonRegistrar is AragonApp , Registrar {
17
- // bytes32 constant public CREATE_NAME_ROLE = keccak256("CREATE_NAME_ROLE");
18
- // bytes32 constant public DELETE_NAME_ROLE = keccak256("DELETE_NAME_ROLE");
19
- // bytes32 constant public POINT_ROOTNODE_ROLE = keccak256("POINT_ROOTNODE_ROLE");
20
- bytes32 constant public CREATE_NAME_ROLE = 0xf86bc2abe0919ab91ef714b2bec7c148d94f61fdb069b91a6cfe9ecdee1799ba ;
21
- bytes32 constant public DELETE_NAME_ROLE = 0x03d74c8724218ad4a99859bcb2d846d39999449fd18013dd8d69096627e68622 ;
22
- bytes32 constant public POINT_ROOTNODE_ROLE = 0x9ecd0e7bddb2e241c41b595a436c4ea4fd33c9fa0caa8056acf084fc3aa3bfbe ;
23
-
24
- function ens () public view returns (AbstractENS) {
25
- return AbstractENS (registry);
26
- }
16
+ // bytes32 public constant CREATE_NAME_ROLE = keccak256("CREATE_NAME_ROLE");
17
+ // bytes32 public constant DELETE_NAME_ROLE = keccak256("DELETE_NAME_ROLE");
18
+ // bytes32 public constant POINT_ROOTNODE_ROLE = keccak256("POINT_ROOTNODE_ROLE");
19
+ bytes32 public constant CREATE_NAME_ROLE = 0xf86bc2abe0919ab91ef714b2bec7c148d94f61fdb069b91a6cfe9ecdee1799ba ;
20
+ bytes32 public constant DELETE_NAME_ROLE = 0x03d74c8724218ad4a99859bcb2d846d39999449fd18013dd8d69096627e68622 ;
21
+ bytes32 public constant POINT_ROOTNODE_ROLE = 0x9ecd0e7bddb2e241c41b595a436c4ea4fd33c9fa0caa8056acf084fc3aa3bfbe ;
27
22
28
23
function initialize (ERC137Registry _registry , bytes32 _rootNode ) public onlyInit {
29
24
initialized ();
30
25
Registrar.initialize (_registry, _rootNode);
31
26
}
32
27
28
+ function ens () public view returns (ERC137Registry ) {
29
+ return registry;
30
+ }
31
+
33
32
function createName (bytes32 _label , address _owner ) public auth (CREATE_NAME_ROLE) returns (bytes32 ) {
34
- super .createName (_label, _owner);
33
+ return super .createName (_label, _owner);
35
34
}
36
35
37
36
function createNameAndPoint (bytes32 _label , address _target ) public auth (CREATE_NAME_ROLE) returns (bytes32 ) {
38
- super .createNameAndPoint (_label, _target);
37
+ return super .createNameAndPoint (_label, _target);
39
38
}
40
39
41
40
function pointRootNode (address _target ) public auth (POINT_ROOTNODE_ROLE) {
42
41
super .pointRootNode (_target);
43
42
}
44
43
45
- function deleteName (bytes32 _label ) public auth (DELETE_NAME_ROLE) {
44
+ function deleteName (bytes32 _label ) public auth (DELETE_NAME_ROLE) {
46
45
super .deleteName (_label);
47
46
}
48
47
}
0 commit comments