-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AbstractENS interface and remove @aragon/os dependency
Address PR #22 comments.
- Loading branch information
Showing
9 changed files
with
32 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
module.exports = { | ||
norpc: true, | ||
copyPackages: ['@aragon/os'], | ||
skipFiles: [ | ||
'IFIFSResolvingRegistrar.sol', | ||
'ens/IPublicResolver.sol', | ||
'ens/', | ||
'interface/ApproveAndCallReceiver.sol', | ||
'misc/Migrations.sol', | ||
'zeppelin/ERC20.sol', | ||
'zeppelin/ERC20Basic.sol', | ||
'zeppelin/Ownable.sol', | ||
'zeppelin/', | ||
'test/', | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
pragma solidity ^0.4.15; | ||
|
||
|
||
interface AbstractENS { | ||
function owner(bytes32 _node) public constant returns (address); | ||
function resolver(bytes32 _node) public constant returns (address); | ||
function ttl(bytes32 _node) public constant returns (uint64); | ||
function setOwner(bytes32 _node, address _owner) public; | ||
function setSubnodeOwner(bytes32 _node, bytes32 label, address _owner) public; | ||
function setResolver(bytes32 _node, address _resolver) public; | ||
function setTTL(bytes32 _node, uint64 _ttl) public; | ||
|
||
// Logged when the owner of a node assigns a new owner to a subnode. | ||
event NewOwner(bytes32 indexed _node, bytes32 indexed _label, address _owner); | ||
|
||
// Logged when the owner of a node transfers ownership to a new account. | ||
event Transfer(bytes32 indexed _node, address _owner); | ||
|
||
// Logged when the resolver for a node changes. | ||
event NewResolver(bytes32 indexed _node, address _resolver); | ||
|
||
// Logged when the TTL of a node changes | ||
event NewTTL(bytes32 indexed _node, uint64 _ttl); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters