command
module
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: May 13, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
XDEV 文档
XDEV 是 XuperChain 合约构建测试工具,支持
XDEV 安装
-
安装依赖项
XDEV 使用 Docker 进行 WASM 合约构建,如果你使用XDEV 构建 WASM 合约,在使用前你需要 安装Docker
-
构建 xdev
xdev 需要从源码开始构建
git clone https://github.com/xuperchain/xdev.git
cd xdev
git checkout v1.0.1
make
构建产出在当前目录下的 bin 目录下
-
设置环境变量(可选)
可以将<XDEV_ROOT>/bin 目录加入到环境变量,以便可以在任意路径使用xdev,其中 XDEV_ROOT 是 xdev 源码的根目录。
合约构建
- 单文件构建
以 C++ 合约counter 合约为例
xdev build -o counter.wasm example/counter.cc
- 多文件构建
以 xuper_relay 为例,执行
xdev build
合约测试
- 单文件测试
合约测试需要编写测试文件,以 xuper_relay 合约的测试为例
xdev test xuper_relay.test.js
参与贡献
如果你遇到问题或需要新功能,欢迎创建issue。
如果你可以解决某个issue, 欢迎发送PR。
如项目对您有帮助,欢迎star支持。
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
Package jstest is a test framework using js as test script
|
Package jstest is a test framework using js as test script |
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.