Skip to content

Command Palette

Chris Segura edited this page May 1, 2019 · 5 revisions

Command Palette

This extension provides several commands for interacting with ledgers, building, compiling and testing your smart contract as well as several features designed to help you integrate ledgers with other systems such as SQL Server, IoT Hub etc. These features are enabled through the Command Palette and/or through several "right click" short cut menus.

To access the Command Palette, you may choose View, Command Palette from the VS Code menu, or ctrl+shift+p

Command Palette

Command Palette

Command Name Description
Azure Blockchain: Build Contracts Build/compile all contracts in the contracts directory
Azure Blockchain: Connect to Consortium Allows a developer to connect to Azure, local (Ganache), or public Ethereum networks
Azure Blockchain: Create Consortium Creates (deploys) an instance of Azure Blockchain Service into the users subscription
Azure Blockchain: Deploy Contracts Allows a developer to deploy a smart contract to Azure, local (Ganache), or a public Ethereum network
Azure Blockchain: Generate Smart Contract UI For a compiled contract, this command will autogenerate basic UI to interact with the contract using Truffle Suites - Drizzle component
Azure Blockchain: New Solidity Project This command will scaffold out a basic (default) Smart Contract folder structure. Includes simple contract (.sol), Truffle Migrate/config files and GitHub readiness (e.g., README etc). Optionally a developer can choose to unbox a Truffle box to get access to specific examples hosted by Truffle
Azure Blockchain: Start Ganache Server This command will start a local Ethereum emulator - Truffle's Ganache command line server (Ganache-cli). This server allows developers to deploy contracts to a local network which emulates a public, or Azure based, blockchain node
Azure Blockchain: Stop Ganache Server This command will stop the local Ganache, Ethereum, emulator
Azure Blockchain: Generate Data Publishing Workflows for Smart Contract [TODO]
Azure Blockchain: Generate Event Publishing Workflows for Smart Contracts [TODO]
Azure Blockchain: Generate Microservices for Smart Contract [TODO]
Azure Blockchain: Generate Report Publishing Workflows for Smart Contract [TODO]
Azure Blockchain: Show Welcome Page Will open the projects default Welcome Page which has simple examples and links to online-resources specific to this plugin, or to the Azure Blockchain Service

Right Click Shortcuts

Command Name Context Description
Copy Access Key right click on your Azure Blockchain Service Node Inserts the access key for your node into the copy/paste buffer
Copy Contract ABI right click on contract .json After compiling, right clicking on the contract, or the contract .json file will copy the contract ABI into your copy/paste buffer
Copy Contract Bytecode right click on contract .json After compiling, right clicking on the contract, or the contract .json file will copy the contract Bytecode into your copy/paste buffer
Copy RPC Endpoint Address right click on your Azure Blockchain Service Node Inserts the RPC endpoint address for your node into the copy/paste buffer
Disconnect Consortium right click on your Azure Blockchain, local, test or main Service Node in the Azure Blockchain tree view in VS Code This command will remove "disconnect" a node from your tree view. It will NOT, delete the resource from Azure
Deploy Contracts right click on your contract .sol or contract .json (after building) Deploys your contract to the selected destination (local, test/main-net or Azure Blockchain Service)
You can’t perform that action at this time.