Skip to content

Latest commit

 

History

History
104 lines (53 loc) · 3.7 KB

README.md

File metadata and controls

104 lines (53 loc) · 3.7 KB

amax-devnet-docker

本地安装 amax-devnet开发环境

[注意] 已发布最新1.3.0版本

  • 运行开发环境

docker run -itd -p 22:22 --workdir=/root/contracts --name=amax-devnet1 hub500/amaxdevnet:1.3.0

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested 8dffcf5633574b656dd5de06125ab014c90902ba811a4d9f5d07c6a76241c1a2

  • 查看容器列表

docker ps

CONTAINER ID   IMAGE                     COMMAND           CREATED         STATUS         PORTS                NAMES
8dffcf563357   hub500/amaxdevnet:1.3.0   "/sbin/my_init"   6 seconds ago   Up 5 seconds   0.0.0.0:22->22/tcp   amax-devnet1
  • 进入容器

docker exec -it amax-devnet1 /bin/bash

root@8dffcf563357:~/contracts#

  • 查看 amax-cpp和amnod版本

amax-cpp --version

amax-cpp version 1.7.6

amnod --version

v0.5.2

  • 操作结果如下图
image

安装配置vscode开发环境

  • 安装 docker 插件
image
  • 安装 remote 远程桌面
image
  • 打开并进入 amax devnet 容程开发合约
image image image
  • 下载测试合约源码压缩包
image
  • 本地解压后 复制上传到窗器中
image

编译测试示例合约

chmod +x ./build.sh

image

bash ./build.sh

image
  • 【可选】安装Python 测试插件
image image image image image

运行测试用例

python3 test_nftone_xdao.py

image

最终运行结果如下

image

完成本地开发环境及全流程的测试