VSCode Extension for OntologyThis extension has been designed to help you in developing, testing and deploying smart contracts to Ontology blockchain network. FeaturesCompile
Deploy
Invoke
Debug
Tools
RequirementsOptional requirementsTo have proper code complete install also: Release NotesSee CHANGELOG.md Extension SettingsThis 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. CompileTo compile a smart contract, show context menu on any .py or .cs file. Press DeployTo deploy a smart contract, show context menu on compiled .avm file. Press You will be notified about the outcome of compilation through notifications. Invoke & DebugTo 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. ToolsTo open tools panel press Authors
LicenseThis project is licensed under the LGPL License - see the LICENSE.md file for details. |