The Heritable contract provides ownership transfer capabilities, in the case that the current owner stops "heartbeating". Only the heir can pronounce the owner's death.
event HeirChanged(address owner, address newHeir)
event HeirOwnershipClaimed(address previousOwner, address newOwner)
event OwnerHeartbeated(address owner)
event OwnerProclaimedDead(address owner, address heir, uint256 timeOfDeath)
Throw an exception if called by any account other than the heir's.
function Heritable(uint256 _heartbeatTimeout) public
Create a new Heritable Contract with heir address 0x0.
_heartbeatTimeout- time available for the owner to notify they are alive, before the heir can take ownership.
function claimHeirOwnership() public
Allows heir to transfer ownership only if heartbeat has timed out.
function heartbeat() public
Owner can send a heartbeat if they were mistakenly pronounced dead.
function heartbeatTimeout() public view returns (uint256)
function heir() public view returns (address)
Use these getter functions to access the internal variables in an inherited contract.
function ownerLives() internal view returns (bool)
function proclaimDeath() public
Heir can pronounce the owners death. To claim the ownership, they will have to wait for `heartbeatTimeout` seconds.
function removeHeir() public
Set heir = 0x0.
function setHeartbeatTimeout(uint256 newHeartbeatTimeout) internal
function setHeir(address newHeir) public
function timeOfDeath() public view returns (uint256)