This repository has been archived by the owner on Aug 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Home
David Ackerman edited this page Sep 3, 2019
·
2 revisions
This plugin provides a convenient development environment for Parity Substrate framework.
To start using this extension - install it from marketplace. To run this extension you need following pre-requirements:
- Visual Studio Code v1.37.0+
- Yarn v1.13.0+
Steps:
- Clone project and open it in VSCode.
- Execute command
yarn
andyarn compile
in terminal. - Press
F5
.
- Execute the command
yarn watch:views
. - Press
F5
. - Press
CMD + SHIFT + P
and typeShow webview
. - Make changes to webview in
./src/views
.
This extension provides the next features:
- Start/Stop a local node.
- Clear chain data.
- Manage accounts.
- Execute extrinsics.
- Subscribe for chain state changes.
Navigate to Substrate
plugin in sidebar menu.
You need to be in a directory with substrate project to execute the next commands:
- Start: In 'Nodes' section click at the '...' and 'Start local node'.
- Stop: You need to have an open terminal with node running - in 'Nodes' section click at the '...' and 'Stop local node'.
- Clear: In 'Nodes' section click at the '...' and 'Clear chain data'.
To run next commands you don't need to be in a directory with substrate project.
- Connect: In 'Nodes' section RMB click at the node and then click 'Connect...'.
- Remove: In 'Nodes' section RMB click at the node and then click 'Remove...'.
- Edit node: In 'Nodes' section RMB click at the node and then click 'Edit node...'.
- Edit types: In 'Nodes' section click at the '...' and 'Edit types' - type your custom substrate storage types.
- Add: In 'Accounts' section click at the '+' and type account name, account encryption type, Mnemonic/Seed/Uri.
- Change name: In 'Accounts' section RMB click at the account and then click 'Change name...'.
- Remove: In 'Accounts' section RMB click at the account and then click 'Remove...'.
- Import: In 'Accounts' section click at the '...' and choose a file with exported account.
- Export: In 'Accounts' section RMB click at the account and then click 'Export account...'.
- Copy address: In 'Accounts' section RMB click at the account and then click 'Copy address...'.
- Run extrinsic: In 'Extrinsics' section click at the module and choose extrinsic to execute. Then type all arguments and account which will sign extrinsic.
- Substrate: In 'Chain state' section click at the module and choose a state to subscribe and type key argument (if it's a map).