参考地址: https://aptos.dev/cli-tools/aptos-cli-tool/use-aptos-cli#move-examples move原生数据结构API文档 :https://mp.weixin.qq.com/s/epwJmR6oXCgtKtSbBqJyAw 教学资料: https://movefuns.atlassian.net/wiki/spaces/MOVEFUNS/pages/491526/Move 钱包源码: https://github.com/leeduckgo/punk-wallet
aptos-cli使用参考:https://mp.weixin.qq.com/s/2_0wL1KIAdoxYqya-thi6Q
aptos init
$ aptos account fund-with-faucet --account 61f0b0362577500d6c4fb15612ae0fffd39d643ebd53e9d4b32779d47f6ec343
或者
aptos account fund-with-faucet --account default
aptos account list --query balance --account 61f0b0362577500d6c4fb15612ae0fffd39d643ebd53e9d4b32779d47f6ec343
或者
aptos account list --query balance --account default
参考文档地址: https://aptos.dev/tutorials/first-move-module 资料文档: https://blog.csdn.net/wallywxy/article/details/127056508
- 创建新的move合约
mkdir seaCoin
cd seaCoin
aptos move init --name seaCoin
- 编译并测试
- 编译
cd seaCoin aptos move compile --named-addresses sea_coin=default
- 测试模块运行
aptos move test --named-addresses sea_coin=default
- 验证智能合约:Move Prover 教程
TODO
- 注意事项
- 依赖包本地化
但是 move-stdlib 需要用 https://github.com/aptos-labs/aptos-core/tree/main/aptos-move/framework 这个里面提取出来的, 不能用 https://github.com/diem/diem/tree/latest/language/move-stdlib, 因为这个缺少 Move.toml