Skip to content

Ethereum smart contract based on Robert Louis Stevenson's "The Bottle Imp" (written 1891)

License

Notifications You must be signed in to change notification settings

smithclay/etherimp

Repository files navigation

etherimp

ethereum smart contract based on Robert Louis Stevenson's "The Bottle Imp" (1891)

"You have bought it for less than I paid for it," replied the man, rubbing his hands. "It is yours now; and, for my part, I am only concerned to see the back of you." -The Bottle Imp

Background

Simple ethereum contract designed to run on testrpc without using frameworks: just a Makefile and some node.js needed.

Just like in "The Bottle Imp", this contract allows only one owner at a time, and whenever the bottle is transferred to a new owner it must be sold at a loss.

However, unlike the original short story if this smart contract is very unlikely to curse you and contains no known supernatural entities. The full source code is in contracts/.

Requirements: node.js >= 8.6.0 and testrpc >= 4.1.3

Installing dependencies: npm install

Interacting with the contract

Make sure testrpc is running (default options are fine), then run: make shell

Tests are a work-in-progress but can be run using: make test

About

Ethereum smart contract based on Robert Louis Stevenson's "The Bottle Imp" (written 1891)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published