Ethereum VM Contract Simulator
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
tests
.gitignore
README.md
requirements.txt
tox.ini

README.md

Ethereum VM Contract Simulator

Description

Simulator of the Ethereum Virtual Machine. The intention of this simulator is to help contract coders develop and test their work using test driven best practises and in full isolation, without the need to connect to the Ethereum Test Net. It currently support the Serpent, LLL and Mutan languages.

Working Examples

Name Contract file Test
Namecoin namecoin.se test_namecoin.py
Subcurrency subcurrency.se test_subcurrency.py
ReturnTen returnten.se test_returnten.py
Datafeed datafeed.se test_datafeed.py

Installation

Install the required Python libraries with pip, it is suggested to do this within a virtualenv.

pip install -r requirements.txt

Serpent support is available by default.

To use LLL, the lllc compiler binary needs to be installed and available on the PATH; install it from https://github.com/ethereum/cpp-ethereum/

To use Mutan, the mutan compiler binary needs to be installed and available on the PATH; install it from https://github.com/obscuren/mutan/

Usage

py.test tests/test_namecoin.py

Continious testing (will rerun as soon as a file is changed)

py.test -f tests/test_namecoin.py

License

Released under the MIT License.