sCrypt extension for Visual Studio Code
sCrypt (pronounced “ess crypt”) is a high-level smart contract language for Bitcoin SV. This extension adds rich language support for sCrypt to VS Code.
This extension provides the following features to support writing sCrypt code in Visual Studio Code:
A typical sCrypt project has a structure like this:
You could use a boilerplate project to kickstart your own project.
This extension supports debugging scrypt contract with ease. You could start a debug session using one of the two methods described below, then run the contract step by step (line by line) or step in / out the called functions. Also breakpoints, variable values and call stack information are available during debugging.
Press 'F5' and then input some parameters with prompts.
Add proper configuration in .vscode/launch.json file and then press 'F5'.
REPL (Read-Eval-Print Loop) is available during a debug session, which makes it much easier for developers to move fast!
This extension supports running unit tests file within the editor/explorer context menu.
Note: The test files must be suffixed by
Note: A script named