diff --git a/mover/ToanTri/README.md b/mover/ToanTri/README.md new file mode 100644 index 00000000..4f2938a1 --- /dev/null +++ b/mover/ToanTri/README.md @@ -0,0 +1,54 @@ +## Basic Information + +- Sui Wallet Address: `0x752e3bd6fa3af28efef30f029338c6ec84d8bb7c8a3dc7c9cbc32b6b1e5e9d8f` + > First-time participants must complete the registration of the wallet address through the first task to have it merged. You should use this address for subsequent tasks. We will also use this address to credit the learning rewards. +- Github: `ToanTri` + +## Personal Introduction + +- Work Experience: `2 months` +- Tech Stack: `React`, `C++`, `Python`, `JavaScript` , etc. + > Important: Please take your personal introduction seriously. +- Years of experience in web2 development, particularly interested in Move, aiming to use Move as an entry point into blockchain. (This is just an example, please write your own introduction and feel free to add more details.) +- Contact: telegram `xxx` + +## Tasks + +### 01 hello move + +- [x] Sui CLI Version: sui 1.39.3 +- [x] Sui Wallet Screenshot: ![](images/sui_wallet.png) +- [x] Package ID: 0x2a2faca7d88f7323b67b68055f575cccaa63f9c575467d36e63fd6fa2b7eee30 +- [x] Package ID's Screenshot from Explorer: ![](images/package_id_Explorer.png) + +### 02 move coin + +- [ ] `My Coin` Package ID: +- [ ] `Faucet Coin` Package ID: +- [ ] Transfer `My Coin` hash: +- [ ] `Faucet Coin` address 1 mint hash: +- [ ] `Faucet Coin` address 2 mint hash: + +### 03 move nft + +- [ ] NFT Package ID: +- [ ] NFT Object ID: +- [ ] Transfer NFT hash: +- [ ] NFT's Screenshot from Explorer: Link to image uploaded to `images` folder. + +### 04 move game + +- [ ] Game Package ID: +- [ ] Deposit Coin Hash: +- [ ] Withdraw Coin Hash: +- [ ] Play Game Hash: + +### 05 move swap + +- [ ] Swap Package ID: +- [ ] Call Swap Coin A -> Coin B hash: +- [ ] Call Swap Coin B -> Coin A hash: + +### 06 dapp-kit SDK PTB + +- [ ] Save Hash: diff --git a/mover/ToanTri/code/README.md b/mover/ToanTri/code/README.md new file mode 100644 index 00000000..e69de29b diff --git a/mover/ToanTri/code/task1/Hello_Move/.gitignore b/mover/ToanTri/code/task1/Hello_Move/.gitignore new file mode 100644 index 00000000..a007feab --- /dev/null +++ b/mover/ToanTri/code/task1/Hello_Move/.gitignore @@ -0,0 +1 @@ +build/* diff --git a/mover/ToanTri/code/task1/Hello_Move/Move.lock b/mover/ToanTri/code/task1/Hello_Move/Move.lock new file mode 100644 index 00000000..6fc27772 --- /dev/null +++ b/mover/ToanTri/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 = "52664DA431D121453DE4A63E2A2EEFD5594CFC5E814D55AE51888BE5A9230629" +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 = "0x2a2faca7d88f7323b67b68055f575cccaa63f9c575467d36e63fd6fa2b7eee30" +latest-published-id = "0x2a2faca7d88f7323b67b68055f575cccaa63f9c575467d36e63fd6fa2b7eee30" +published-version = "1" diff --git a/mover/ToanTri/code/task1/Hello_Move/Move.toml b/mover/ToanTri/code/task1/Hello_Move/Move.toml new file mode 100644 index 00000000..4412776d --- /dev/null +++ b/mover/ToanTri/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/ToanTri/code/task1/Hello_Move/sources/hello_move.move b/mover/ToanTri/code/task1/Hello_Move/sources/hello_move.move new file mode 100644 index 00000000..ee0b3d71 --- /dev/null +++ b/mover/ToanTri/code/task1/Hello_Move/sources/hello_move.move @@ -0,0 +1,27 @@ + + +module hello_move::hello { + + use sui::object::{Self, UID}; + + use std::string::{Self, String}; + + use sui::tx_context::{Self,TxContext}; + + public struct Hello_ToanTri has key { + id: UID, + name: String, + } + + public fun say_hello_ToanTri(ctx: &mut TxContext) { + let hello_world = Hello_ToanTri { + id: object::new(ctx), + name: string::utf8(b"Toan Tri") + }; + + transfer::transfer(hello_world, tx_context::sender(ctx)); + + } +} + + diff --git a/mover/ToanTri/code/task1/Hello_Move/tests/hello_move_tests.move b/mover/ToanTri/code/task1/Hello_Move/tests/hello_move_tests.move new file mode 100644 index 00000000..7798d8dd --- /dev/null +++ b/mover/ToanTri/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/ToanTri/code/task1/README.md b/mover/ToanTri/code/task1/README.md new file mode 100644 index 00000000..e69de29b diff --git a/mover/ToanTri/images/Package_id_Explorer.png b/mover/ToanTri/images/Package_id_Explorer.png new file mode 100644 index 00000000..4b1895be Binary files /dev/null and b/mover/ToanTri/images/Package_id_Explorer.png differ diff --git a/mover/ToanTri/images/README.md b/mover/ToanTri/images/README.md new file mode 100644 index 00000000..e69de29b diff --git a/mover/ToanTri/images/sui_wallet.png b/mover/ToanTri/images/sui_wallet.png new file mode 100644 index 00000000..942cc47c Binary files /dev/null and b/mover/ToanTri/images/sui_wallet.png differ diff --git a/mover/ToanTri/notes/README.md b/mover/ToanTri/notes/README.md new file mode 100644 index 00000000..e69de29b