/xdev

The compiler and test tool for contract

Primary LanguageGoApache License 2.0Apache-2.0

The smart contract compiler and unit test tool for XuperChain

Dependencies

Docker

Golang1.13+

Install

  1. Install from source code

        git clone https://github.com/xuperchain/xdev.git
        # build executable xdev into current directory 
        make build 
        # install the executable into your $GOBIN
        make install 
  2. Install using go get

        go get github.com/xuperchain/xdev
  3. Install use prebuild distribution release

        TBD
        curl github.com/

Usage

  1. Build Single File contract

        xdev build testdata/counter.cc
  2. Run Smart Contract Unitest

        xdev test testdata/counter.test.js

    For more usage guide see Using Xdev

Contribution

We weleome contribution in any form(feature, issue, documentation etc.), See Contribution Guide for more information of contributing to XuperChain