diff --git a/mover/chinazmc/code/task1/hello_move/.gitignore b/mover/chinazmc/code/task1/hello_move/.gitignore new file mode 100644 index 000000000..a007feab0 --- /dev/null +++ b/mover/chinazmc/code/task1/hello_move/.gitignore @@ -0,0 +1 @@ +build/* diff --git a/mover/chinazmc/code/task1/hello_move/Move.lock b/mover/chinazmc/code/task1/hello_move/Move.lock new file mode 100644 index 000000000..23b35ff8c --- /dev/null +++ b/mover/chinazmc/code/task1/hello_move/Move.lock @@ -0,0 +1,34 @@ +# @generated by Move, please check-in and do not edit manually. + +[move] +version = 3 +manifest_digest = "8B7DC3EDF1D81F9E2D46D8251E70F4B8D7097878F02438454C30AEF9F05D81D0" +deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082" +dependencies = [ + { id = "Sui", name = "Sui" }, +] + +[[move.package]] +id = "MoveStdlib" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates\\sui-framework\\packages\\move-stdlib" } + +[[move.package]] +id = "Sui" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/sui-framework" } + +dependencies = [ + { id = "MoveStdlib", name = "MoveStdlib" }, +] + +[move.toolchain-version] +compiler-version = "1.39.3" +edition = "2024.beta" +flavor = "sui" + +[env] + +[env.testnet] +chain-id = "4c78adac" +original-published-id = "0x2086062051f2695877681e2774c0dba3d3d2dfe6f5a106b267ac71a5e1eaab69" +latest-published-id = "0x2086062051f2695877681e2774c0dba3d3d2dfe6f5a106b267ac71a5e1eaab69" +published-version = "1" diff --git a/mover/chinazmc/code/task1/hello_move/Move.toml b/mover/chinazmc/code/task1/hello_move/Move.toml new file mode 100644 index 000000000..f99a76a8d --- /dev/null +++ b/mover/chinazmc/code/task1/hello_move/Move.toml @@ -0,0 +1,37 @@ +[package] +name = "hello_move" +edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move +# license = "" # e.g., "MIT", "GPL", "Apache 2.0" +# authors = ["..."] # e.g., ["Joe Smith (joesmith@noemail.com)", "John Snow (johnsnow@noemail.com)"] + +[dependencies] +Sui = { git = "https://github.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" } + +# For remote import, use the `{ git = "...", subdir = "...", rev = "..." }`. +# Revision can be a branch, a tag, and a commit hash. +# MyRemotePackage = { git = "https://some.remote/host.git", subdir = "remote/path", rev = "main" } + +# For local dependencies use `local = path`. Path is relative to the package root +# Local = { local = "../path/to" } + +# To resolve a version conflict and force a specific version for dependency +# override use `override = true` +# Override = { local = "../conflicting/version", override = true } + +[addresses] +hello_move = "0x0" + +# Named addresses will be accessible in Move as `@name`. They're also exported: +# for example, `std = "0x1"` is exported by the Standard Library. +# alice = "0xA11CE" + +[dev-dependencies] +# The dev-dependencies section allows overriding dependencies for `--test` and +# `--dev` modes. You can introduce test-only dependencies here. +# Local = { local = "../path/to/dev-build" } + +[dev-addresses] +# The dev-addresses section allows overwriting named addresses for the `--test` +# and `--dev` modes. +# alice = "0xB0B" + diff --git a/mover/chinazmc/code/task1/hello_move/sources/hello.move b/mover/chinazmc/code/task1/hello_move/sources/hello.move new file mode 100644 index 000000000..e6ceb1962 --- /dev/null +++ b/mover/chinazmc/code/task1/hello_move/sources/hello.move @@ -0,0 +1,27 @@ +/* +/// Module: hello_move +module hello_move::hello_move; +*/ + +// For Move coding conventions, see +// https://docs.sui.io/concepts/sui-move-concepts/conventions + +module hello_move::hello { + use std::ascii::{String, string}; + use sui::object::{Self,UID}; + use sui::transfer::transfer; + use sui::tx_context::{TxContext, sender}; + + public struct Hello has key{ + id:UID, + say: String + } + + fun init(ctx: &mut TxContext) { + let hello_move = Hello { + id:object::new(ctx), + say: string(b"hello chinazmc"), + }; + transfer(hello_move, sender(ctx)); + } +} \ No newline at end of file diff --git a/mover/chinazmc/code/task1/hello_move/tests/hello_move_tests.move b/mover/chinazmc/code/task1/hello_move/tests/hello_move_tests.move new file mode 100644 index 000000000..7798d8dda --- /dev/null +++ b/mover/chinazmc/code/task1/hello_move/tests/hello_move_tests.move @@ -0,0 +1,18 @@ +/* +#[test_only] +module hello_move::hello_move_tests; +// uncomment this line to import the module +// use hello_move::hello_move; + +const ENotImplemented: u64 = 0; + +#[test] +fun test_hello_move() { + // pass +} + +#[test, expected_failure(abort_code = ::hello_move::hello_move_tests::ENotImplemented)] +fun test_hello_move_fail() { + abort ENotImplemented +} +*/ diff --git a/mover/chinazmc/images/scan.png b/mover/chinazmc/images/scan.png new file mode 100644 index 000000000..d4ddd3774 Binary files /dev/null and b/mover/chinazmc/images/scan.png differ diff --git a/mover/chinazmc/images/sui_wallet.png b/mover/chinazmc/images/sui_wallet.png new file mode 100644 index 000000000..778af8c5c Binary files /dev/null and b/mover/chinazmc/images/sui_wallet.png differ diff --git a/mover/chinazmc/readme.md b/mover/chinazmc/readme.md new file mode 100644 index 000000000..49b1ffe83 --- /dev/null +++ b/mover/chinazmc/readme.md @@ -0,0 +1,21 @@ +## 基本信息 +- Sui钱包地址: `0x4e4c47cae9106a3a3a792447b2163a8f3a7584376ddc5f2458ef75e7319c1645` +> 首次参与需要完成第一个任务注册好钱包地址才被合并,并且后续学习奖励会打入这个地址 +- github: `chinazmc` + +## 个人简介 +- 工作经验: 5年 +- 技术栈: `java`,`golang` +> 重要提示 请认真写自己的简介 +- 多年web2开发经验,对Move特别感兴趣,想通过Move入门区块链 +- 联系方式: wx:Zmcxqbfbsx + +## 任务 + +## 01 hello move +- [✔] Sui cli version:sui 1.39.3-5d4350d66d2b +- [✔] Sui钱包截图: ![Sui钱包截图](./images/sui_wallet.png) +- [✔] package id: 0x2086062051f2695877681e2774c0dba3d3d2dfe6f5a106b267ac71a5e1eaab69 +- [✔] package id 在 suivision上的查看截图:![Scan截图](./images/scan.png) + +