diff options
Diffstat (limited to 'contracts/ens/contract/AbstractENS.sol')
-rw-r--r-- | contracts/ens/contract/AbstractENS.sol | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/contracts/ens/contract/AbstractENS.sol b/contracts/ens/contract/AbstractENS.sol new file mode 100644 index 000000000..b80a1b0e6 --- /dev/null +++ b/contracts/ens/contract/AbstractENS.sol @@ -0,0 +1,23 @@ +pragma solidity ^0.4.0; + +contract AbstractENS { + function owner(bytes32 node) constant returns(address); + function resolver(bytes32 node) constant returns(address); + function ttl(bytes32 node) constant returns(uint64); + function setOwner(bytes32 node, address owner); + function setSubnodeOwner(bytes32 node, bytes32 label, address owner); + function setResolver(bytes32 node, address resolver); + function setTTL(bytes32 node, uint64 ttl); + + // 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); +} |