Skip to content

NikitaMishin/vyper-plugin

Repository files navigation

Vyper smart contracts programming language plugin for IntelliJ Platform

Build codecov Dependabot Updates Release

Vyper is a contract-oriented, pythonic programming language that targets the Ethereum Virtual Machine (EVM). It is designed to be a more secure alternative to Solidity, the most popular language for writing smart contracts on the Ethereum blockchain. Vyper is a statically-typed language with a syntax that is similar to Python, making it easy to learn and use for developers who are already familiar with Python. This plugin provides support for writing, compiling, and deploying Vyper smart contracts in JetBrains IDE's.

Features:

  • Syntax highlighting for .vy and .vyi files
  • Action to create new Vyper files
  • Find references
  • Brace matcher
  • Auto-complete
  • Runs the compiler inside Docker, so you basically need only IDEA and Docker :) ;
  • Nevertheless, pre-alpha.

Build

To build and run the project, open it in IntelliJ IDEA. Then, run the "Run Plugin" configuration, which is already set up in the project.

Alternatively, use the buildPlugin task to build it. After that, locate the created .zip in /bild/distributions folder and add it as external plugin ("Install Plguin from Disk... ").

To test the plugin without installation you might run runIde task in gradle, which will execute an IDEA instance with the plugin installed.

Generate files

To generate files for the plugin we use the Grammar Kit plugin. To generate the files, you should have the plugin installed.

More documentation: See JetBrains Grammar-Kit.