Skip to content

everscale-actions/tondev-vscode

 
 

Repository files navigation

TONDEV Visual Studio Code plugin

Access TONDEV Toolkit functionality directly from VS Code IDE with TONDEV extension.

Content Table

Installation

Search for TONDev extention in VS Code Marketplace and install it.

Supported operations

Go to View -> Command Pallete... and enter tondev. You will see the list of available commands.
Also some commands can be accessed from context menu of Code Explorer (click on empty area) or files that have .sol, .cpp, abi.json and .tvc extensions.

TONDEV commands

Solidity

Create your first contract

This command creates a hello-world Solidity contract with comments that you can observe and compile.

Click on the empty space in Explorer and find Create Solidity Contract command or access it from

View->Command palette->TONDEV: Create Solidity Contract.

Create Solidity contract.

We named the contract Contract. After command is finished you will see the source code of hello world contract that you can now compile.

Created Solidity contract.

Compile

This command compiles and links a selected Solidity contract. After successful compilation you get .abi.json and .tvc files that you can later use in your DApps to deploy and call contract methods.

Find Compile Solidity Contract command in the .sol file context menu or access it from

View->Command palette->TONDEV: Compile Solidity Contract

Compile Solidity Contract

Version

This command shows the currently installed Solidity compiler version.

Access this command from View->Command palette->TONDEV: Show Solidity Version

Update

This command updates the compiler to the latest version.

In case you had some problems with installation or want to pull the latest compiler version use this command. Access it from View->Command palette->TONDEV: Update Solidity Compiler

C++

Create your first contract

This command creates a hello-world C++ contract with comments that you can observe and compile.

Click on the empty space in Explorer and find Create C++ Contract command or access it from

View->Command palette->TONDEV: Create C++ Contract.

We named the contract Contract. After command is finished you will see the source code of hello world contract that you can now compile.

Compile

This command compiles and links a selected C++ contract. After successful compilation you get .abi.json and .tvc files that you can later use in your DApps to deploy and call contract methods.

Find Compile C++ Contract command in the .sol file context menu or access it from

View->Command palette->TONDEV: Compile C++ Contract

Version

This command shows the currently installed Solidity compiler version.

Access this command from View->Command palette->TONDEV: Show C++ Version

Update

This command updates the compiler to the latest version.

SDK

Create Demo Project

This command creates a Node.js project with SDK latest dependencies and index.js file with main Client object creation.

Click on the empty space in Explorer and find Create TON JS App command or access it from View->Command palette->TONDEV: Create TON JS App.

Create NodeJS project

We named our project demo. After command is finished you will see package.json with js sdk dependencies and index.js file with client creation, connecting to local blockchain TONOS Startup Edition.

To connect to the local blockchain you need to run it. Find out how to launch it here.

Client creation: Client creation

Dependencies: Dependencies

Backlog

Compilers

  • Support other compilation and linking options

TS4

  • Debug contracts with TS framework and tools

Network registry support

  • Support GUI for network management

Signer registry support

  • Support GUI for keys management

Contract management support

  • Support deploy and execution of contracts with nice UI

Packages

No packages published

Languages

  • TypeScript 100.0%