VSCode Extension for Ontology
This extension has been designed to help you in developing, testing and deploying smart contracts to Ontology blockchain network.
To have proper code complete install also:
This extension contributes the following settings:
Those settings can be changes in standard VSCode settings accessible using the Gear box icon in lower left corner.
How to use this extension?
Press Ctrl+Shift+X or Cmd+Shift+X to open the Extensions pane. Find and install the VSCode Extension for Ontology extension. You can also install the extension from the Marketplace.
Open any .py or .cs file in VS Code. The extension is now activated. This extension enhances the whole Smart contract development process.
To compile a smart contract, show context menu on any .py or .cs file.
To deploy a smart contract, show context menu on compiled .avm file.
You will be notified about the outcome of compilation through notifications.
Invoke & Debug
To invoke a method of smart contract open the _abi.json file. A new panel with smart contract methods will show up.
Double click on any of the methods to show invoke form. Fill out all the parameters and choose if you want to preExec the transaction or you want to make paid transaction.
You will be notified about the progress of invocation through notifications and a new panel with invocation result will show up.
If you want to instead debug the smart contract invocation in embedded virtual machine, press Debug. You can use standard debug features of VSCode as StepIn, StepOut, Next, Continue, Restart, Stop and breakpoints together with variables preview and set.
To open tools panel press
This project is licensed under the LGPL License - see the LICENSE.md file for details.