This is a local toolchain for the PREDA smart contract programming language. PREDA is designed for parallel execution of smart contract transactions on sharding blockchains. The PREDA language preview toolchain includes the pre-built PREDA compilers and execution engines, VSCode extensions, and sample smart contracts and execution scripts. Programmers can use VSCode to edit, compile, and execute PREDA smart contracts in a local blockchain simulator and check the execution results, e.g., address states on the chain.
Installation
requires node v12.17.0 or higher for ES2015 and async function support.
$ npm install -g @vscode/vsce
Usages
To compile PREDA smart contract (.prd):
use shortcut Ctrl+5 / Command + 7
or right click the Text Editor and then click PREDA: Compile in editor context menu
or click PREDA: Compile button in context menu of file explorer
To set arguments for PREDA script (.prdts):
use shortcut Ctrl+6 / Command + 6
or right click the Text Editor and then click PREDA: Set Args in editor context menu
or click PREDA: Set Args button in context menu of file explorer
the arguments will be stored in a local file scriptArgs.json and be reused for further execution
To run PREDA script (.prdts):
use shortcut Ctrl+5 / Command + 5
or right click the Text Editor and then click PREDA: Run in editor context menu
or click PREDA: Run button in context menu of file explorer
a new VSCode Tab will be automatically launched after the execuiton of the PREDA script
To deploy PREDA smart contract (.prd):
use shortcut Ctrl+8 / Command + 8
or right click the Text Editor and then click PREDA: deploy in editor context menu