plugeth/contracts/ens/contract/ENS.sol

26 lines
1015 B
Solidity
Raw Normal View History

2019-03-20 08:33:24 +00:00
pragma solidity >=0.4.24;
2019-03-20 08:33:24 +00:00
interface ENS {
2019-03-20 08:33:24 +00:00
// Logged when the owner of a node assigns a new owner to a subnode.
event NewOwner(bytes32 indexed node, bytes32 indexed label, address owner);
2019-03-20 08:33:24 +00:00
// Logged when the owner of a node transfers ownership to a new account.
event Transfer(bytes32 indexed node, address owner);
2019-03-20 08:33:24 +00:00
// Logged when the resolver for a node changes.
event NewResolver(bytes32 indexed node, address resolver);
2019-03-20 08:33:24 +00:00
// Logged when the TTL of a node changes
event NewTTL(bytes32 indexed node, uint64 ttl);
2019-03-20 08:33:24 +00:00
function setSubnodeOwner(bytes32 node, bytes32 label, address owner) external;
function setResolver(bytes32 node, address resolver) external;
function setOwner(bytes32 node, address owner) external;
function setTTL(bytes32 node, uint64 ttl) external;
function owner(bytes32 node) external view returns (address);
function resolver(bytes32 node) external view returns (address);
function ttl(bytes32 node) external view returns (uint64);
2019-03-20 08:33:24 +00:00
}