Blockchain extension for VS Code
Перейти к файлу
Chris Segura 1a28f904f4
Merge pull request #27 from microsoft/caleteet-0113-updates
Updates from release v0.1.13
2020-01-09 19:12:53 -08:00
.vscode Updates from release v0.1.13 2020-01-09 20:03:34 -05:00
drizzleUI Updates from release v0.1.13 2020-01-09 20:03:34 -05:00
images Updates from release v0.1.13 2020-01-09 20:03:34 -05:00
resources Updates from release v0.1.13 2020-01-09 20:03:34 -05:00
src Updates from release v0.1.13 2020-01-09 20:03:34 -05:00
test Updates from release v0.1.13 2020-01-09 20:03:34 -05:00
.editorconfig release 0.1.3 2019-05-15 08:20:11 -07:00
.gitignore 017 udpates 2019-08-02 15:20:21 -07:00
.vscodeignore Updates from release v0.1.13 2020-01-09 20:03:34 -05:00
CHANGELOG.md Updates from release v0.1.13 2020-01-09 20:03:34 -05:00
CONTRIBUTING.md initial commit 2019-05-01 19:53:37 -07:00
LICENSE initial commit 2019-05-01 19:53:37 -07:00
NOTICE.txt 0.1.12 release 2019-12-02 14:27:41 -08:00
PRIVACY.md initial commit 2019-05-01 19:53:37 -07:00
README.md Updates from release v0.1.13 2020-01-09 20:03:34 -05:00
coverconfig.json updated features and tests 2019-06-24 10:52:28 -07:00
package.json Updates from release v0.1.13 2020-01-09 20:03:34 -05:00
tsconfig.json Updates from release v0.1.13 2020-01-09 20:03:34 -05:00
tslint.json telemetry udpates 2019-07-23 10:20:30 -07:00
webpack.config.js Updates from release v0.1.13 2020-01-09 20:03:34 -05:00

README.md

Azure Blockchain Development Kit

Version Installs Rating Build status

Azure Blockchain Development Kit simplifies how you create, connect to, build and deploy smart contracts on Ethereum ledgers.

Our Wiki page includes a comprehensive getting started guide with detailed usage instructions for this plugin

Prerequisites

  1. If you do not have an Azure subscription, create a free account before you begin.

System Requirements

  • Supported Operating Systems
    • Windows 10
    • Mac OSX
  • VS Code 1.36.1 (or greater)
  • Python 2.7.15
  • Node 10.15.x
  • Git 2.10.x

Create an Azure Blockchain Service

The first thing to do is to create an Azure Blockchain Service in your subscription. You can do this directly through VS Code once you've installed this extension.

  1. Click -> Create a new network in the AZURE BLOCKCHAIN tab, or type Azure Blockchain: Create a new network in the Command Palette.

    Create and Azure Blockchain Service

  2. Choose your subscription, resource group and region to deploy to.

  3. Enter the name of your Consortium

  4. Wait until your resource has been created in Azure. Note: Deploying the Azure Blockchain Service takes quite some time to complete. Please check the deployment status in the Azure portal.

Create a new Solidity Contract

The Azure Blockchain Developer Kit for Ethereum leverages the Truffle Suite of tools to help scaffold, build and deploy contracts.

Developers that are familiar with Truffle Suite may use the Truffle command line e.g., Truffle Init directly from the VS Code terminal.

For developers who are not familiar with Truffle, or prefer to use the Command Palette, the Azure Blockchain Toolkit for Ethereum can easily scaffold out a project directory using the following steps.

  1. From the Command Palette, type Azure Blockchain: New Solidity Project

    Command Palette - New Solidity Project

  2. Select an empty directory to scaffold out your project.

  3. Choose a name for your contract.

  4. Enter.

Once complete, your project directory should look like this:

completed directory

Build your Solidity Contract

Your newly scaffolded out directory includes a simple contract and all the necessary files to build and deploy a simple, working, contract to the Azure Blockchain Service. Use the following steps to build your contract

Option 1: Command Palette

  1. From the Command Palette, type Azure Blockchain: Build Contracts

    Command Palette - Build Contracts

Option 2: Right click on your .sol file

  1. Select your contract Solidity (.sol) file, right click and choose Build Contracts

    Right click shortcut - build contracts

Deploy your smart contract to Azure Blockchain Service

Once compiled, you will have your contract, contract metadata (e.g., contract ABI, bytecode) available in the smart contract .json file which will be located in the./build directory

Once you deployment/creation of the Azure Blockchain Service is complete you will also see that consortium in your VS Code Blockchain tab. Once all these components are ready, deploying your new contract is simple and fast. Use the following steps to deploy your contract

Option 1: Command Palette

  1. From the Command Palette, type Azure Blockchain: Deploy Contracts

    Command Palette - Deploy Contracts

Option 2: Right click on your .sol file

  1. Select your contract Solidity (.sol) file, right click and choose Deploy Contracts

    Right click smart contract - deploy contract

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Telemetry

VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you dont wish to send usage data to Microsoft, you can set the telemetry.enableTelemetry setting to false. Learn more in our FAQ.