Skip to content

Latest commit

 

History

History
33 lines (19 loc) · 1.07 KB

README.md

File metadata and controls

33 lines (19 loc) · 1.07 KB

Dead Man's Switch

Codeship Status for skmgoldin/dead-mans-switch

A smart contract for managing cryptoassets after shrugging off your mortal coil.

How it works

Deposit ERC-20 tokens using the deposit function. As the dead man, you must invoke the heartbeat function every heartbeatPeriod or you will be assumed dead and your beneficiaries will be allowed to withdraw your cryptoassets.

Install

npm i && npm run install && npm run compile

Test

npm run test

Deploy

Use the config file at conf/config.json to specify the owner, beneficiary and heartbeat period for the dead man's switch.

Deploying to a network other than the testRPC requires a secrets.json file with a mnemonic whose account on the m/44'/60'/0'/0 path is funded with Ether for the network being deployed to.

The secrets.json file should be in the following form:

{
  "mnemonic": "my very good mnemonic"
}

Rinkeby: npm run deploy-rinkeby