From e31ddd954529bf4c08c61726f96a14687f66d9c9 Mon Sep 17 00:00:00 2001 From: decanus Date: Mon, 8 Oct 2018 00:15:25 +0200 Subject: [PATCH] waiting for solidity v0.5.0 --- contracts/HashRegistrar.sol | 2 -- contracts/Registrar.sol | 4 +++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/HashRegistrar.sol b/contracts/HashRegistrar.sol index c603f56e..9ac2a21e 100644 --- a/contracts/HashRegistrar.sol +++ b/contracts/HashRegistrar.sol @@ -28,8 +28,6 @@ contract HashRegistrar is Registrar { mapping (bytes32 => Entry) _entries; mapping (address => mapping (bytes32 => Deed)) public sealedBids; - - enum Mode { Open, Auction, Owned, Forbidden, Reveal, NotYetAvailable } uint32 constant totalAuctionLength = 5 days; uint32 constant revealPeriod = 48 hours; diff --git a/contracts/Registrar.sol b/contracts/Registrar.sol index 85acbdac..c88eae79 100644 --- a/contracts/Registrar.sol +++ b/contracts/Registrar.sol @@ -4,6 +4,8 @@ import "./Deed.sol"; interface Registrar { + enum Mode { Open, Auction, Owned, Forbidden, Reveal, NotYetAvailable } + event AuctionStarted(bytes32 indexed hash, uint registrationDate); event NewBid(bytes32 indexed hash, address indexed bidder, uint deposit); event BidRevealed(bytes32 indexed hash, address indexed owner, uint value, uint8 status); @@ -11,7 +13,6 @@ interface Registrar { event HashReleased(bytes32 indexed hash, uint value); event HashInvalidated(bytes32 indexed hash, string indexed name, uint value, uint registrationDate); - function startAuction(bytes32 _hash) public; function startAuctions(bytes32[] _hashes) public; function newBid(bytes32 sealedBid) public payable; @@ -25,4 +26,5 @@ interface Registrar { function eraseNode(bytes32[] labels) public; function transferRegistrars(bytes32 _hash) public; function acceptRegistrarTransfer(bytes32 hash, Deed deed, uint registrationDate) public; + function entries(bytes32 _hash) public view returns (Mode, address, uint, uint, uint); }