https://github.com/smithclay/etherimp
Ethereum smart contract based on Robert Louis Stevenson's "The Bottle Imp" (written 1891)
https://github.com/smithclay/etherimp
ethereum-contract ethereum-dapp testrpc
Last synced: 10 months ago
JSON representation
Ethereum smart contract based on Robert Louis Stevenson's "The Bottle Imp" (written 1891)
- Host: GitHub
- URL: https://github.com/smithclay/etherimp
- Owner: smithclay
- License: bsd-2-clause
- Created: 2017-10-15T21:18:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-28T03:55:34.000Z (over 8 years ago)
- Last Synced: 2025-07-13T20:03:55.830Z (10 months ago)
- Topics: ethereum-contract, ethereum-dapp, testrpc
- Language: JavaScript
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
## 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](http://gutenberg.spiegel.de/buch/the-bottle-imp-4357/1)
#### Background
Simple ethereum contract designed to run on [testrpc](https://github.com/ethereumjs/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`