Skip to content
VS Code extension for developing Elrond smart contracts in C
CSS TypeScript HTML JavaScript C Rust
Branch: master
Clone or download
Latest commit 404c545 Jan 16, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode Move files. Oct 29, 2019
content
snippets Added extra sample. Jan 16, 2020
src Add string representation to vmOutput. Jan 16, 2020
.gitignore initial stub Sep 24, 2019
.vscodeignore initial stub Sep 24, 2019
CHANGELOG.md initial stub Sep 24, 2019
LICENSE
README.md Update readme. Dec 17, 2019
package-lock.json Update logo. Dec 20, 2019
package.json
tsconfig.json Less strict ts compiler. Oct 3, 2019
tslint.json initial stub Sep 24, 2019
vsc-extension-quickstart.md

README.md

Elrond IDE

This Visual Studio Code extension is still in development.

The Elrond IDE is a VS Code extension with two components: (1) the UI within VS Code itself, and (2) a debugging variant of the Elrond Node, known as node-debug, that runs in the background and is managed by the Elrond IDE through a REST API. The node-debug deploys and executes SmartContracts on demand and provides debugging information to the IDE. Note that you can reconfigure the IDE to connect to the REST API of any other Elrond Node.

The IDE also assists with the build process of a SmartContract, from a high-level language (C, Rust or Solidity) to WASM bytecode.

Features

  • List smart contracts in a Visual Studio Code workspace
  • Build smart contracts to WASM
  • Deploy smart contracts on node-debug
  • Execute exported functions of the smart contracts on the node-debug
  • Automatically prepare tools and dependencies (subset of LLVM, SOLL compiler, node-debug and so on)

Requirements

The extension will download many of its dependencies and install them itself, so you do not have to worry much about setting up the development environment. These automatically installed dependencies are:

In addition, the extension requires the following tools, which are not installed automatically:

  • untar and unzip - you most probably already have them installed on your machine.

How to install, uninstall and update the extension

Installation

  1. Download the latest VSIX package.
  2. Install the extension in Visual Studio Code:
    1. Go to the Extensions page of VS Code
    2. At the top of the left panel, click on the "···" menu, and select "Install from VSIX..."
    3. Navigate to the downloaded VSIX package and click on the "Install" button
  3. Wait for the notification "Completed installing the extension Elrond IDE"

The installation can also be performed from Visual Studio Code's command-line interface, by running the following command in a terminal:

code --install-extension vscode-elrond-ide-{version}.vsix

Uninstallation

  1. Go to the Extensions page of VS Code
  2. At the top of the left panel, click on the "···" menu, and select "Show Installed Extensions"
  3. In the list of installed Extensions, locate "Elrond IDE" and click its "Manage" button (the cogwheel symbol)
  4. Click "Uninstall"
  5. Close and reopen VS Code to complete the uninstallation

Update

Updating is simple:

  1. Uninstall the extension
  2. Perform the Installation steps anew, described above

Extension Settings

This extension contributes the following settings:

  • elrond.ideFolder: base folder for tools.
  • elrond.downloadMirror: download mirror for tools and dependencies.
  • elrond.restApi.port: port of the REST API (node-debug).
  • elrond.testnetUrl: URL of the testnet.

Extension Commands

This extension contributes the following commands (Ctrl+Shift+P):

  • openIDE: opens the Elrond IDE Web View.
  • buildCurrentFile: builds the source file on focus to WASM bytecode.
  • createSmartContract: creates a new smart contract (subproject) from a list of predefined prototypes (templates).
  • startNodeDebug: starts node-debug.
  • stopNodeDebug: stops node-debug.
You can’t perform that action at this time.