ethereum/vyper

Name: vyper

Owner: ethereum

Description: New experimental programming language

Created: 2016-11-11 08:56:41.0

Updated: 2018-01-17 14:33:05.0

Pushed: 2018-01-16 22:38:52.0

Homepage: null

Size: 1117

Language: Python

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Join the chat at https://gitter.im/bethereum/vyper Build Status Documentation Status Coverage Status

Principles and Goals

Viper is an experimental programming language that aims for some of the following goals:

Some examples of what Viper does NOT have and why:

Some changes that may be considered after Metropolis when STATICCALL becomes available include:

Viper does NOT strive to be a 100% replacement for everything that can be done in Solidity; it will deliberately forbid things or make things harder if it deems fit to do so for the goal of increasing security.

Note: Viper is still alpha software, use with care

Installation

See the Viper documentation for build instructions.

Compiling a contract

To compile a contract, use:

viper yourFileName.v.py

Note: Since .vy is not official a language supported by any syntax highlights or linter, it is recommended to name your viper file into .v.py to have a python highlights.

Alternative for GitHub syntax highlighting: Add a .gitattributes file with the line *.vy linguist-language=Python

There is also an online compiler available you can use to experiment with the language and compile to bytecode and/or LLL.

Note: While the viper version of the online compiler is updated on a regular basis it might be a bit behind the latest version found in the master branch of this repository.

Testing (using pytest)
python setup.py test

For testing strategy, please see Testing

Contributing


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.