diff --git a/mover/minh20051202/README.md b/mover/minh20051202/README.md new file mode 100644 index 00000000..aacd68d0 --- /dev/null +++ b/mover/minh20051202/README.md @@ -0,0 +1,54 @@ +## Basic Information + +- Sui Wallet Address: `0x56251651efea57ace458000cd091e8e9e6286d41f7408c6a53244647cbb3b47c` + > 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: `minh20051202` + +## Personal Introduction + +- Work Experience: `0 year` +- Tech Stack: `Solidity` + > Important: Please take your personal introduction seriously. +- I'm a sophomore student at Hanoi University of Science and Technology. Currently, I'm learning about blockchain, smart contract development(solidity, move), smart contract security and cryptography(especially zkp). +- Contact: telegram `@Nguyen_Minhh` + +## Tasks + +### 01 hello move + +- [x] Sui CLI Version: sui 1.42.0 +- [x] Sui Wallet Screenshot: ![](images/sui_wallet.png) +- [x] Package ID: 0xa3c79bb9c853521d792383186b3b4bb41ad38a764cb7f959763fa71b07a57eab +- [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/minh20051202/code/README.md b/mover/minh20051202/code/README.md new file mode 100644 index 00000000..e69de29b diff --git a/mover/minh20051202/code/task1/README.md b/mover/minh20051202/code/task1/README.md new file mode 100644 index 00000000..e69de29b diff --git a/mover/minh20051202/code/task1/hello_move/.gitignore b/mover/minh20051202/code/task1/hello_move/.gitignore new file mode 100644 index 00000000..a007feab --- /dev/null +++ b/mover/minh20051202/code/task1/hello_move/.gitignore @@ -0,0 +1 @@ +build/* diff --git a/mover/minh20051202/code/task1/hello_move/Move.lock b/mover/minh20051202/code/task1/hello_move/Move.lock new file mode 100644 index 00000000..e6b0eb7c --- /dev/null +++ b/mover/minh20051202/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 = "388D296DC051FBF83492E61CE2A0C69772E81848EAB76E5FCF1E2F4C88C6588D" +deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082" +dependencies = [ + { id = "Sui", name = "Sui" }, +] + +[[move.package]] +id = "MoveStdlib" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/devnet", subdir = "crates/sui-framework/packages/move-stdlib" } + +[[move.package]] +id = "Sui" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/devnet", subdir = "crates/sui-framework/packages/sui-framework" } + +dependencies = [ + { id = "MoveStdlib", name = "MoveStdlib" }, +] + +[move.toolchain-version] +compiler-version = "1.42.0" +edition = "2024.beta" +flavor = "sui" + +[env] + +[env.devnet] +chain-id = "3f2108a2" +original-published-id = "0xa3c79bb9c853521d792383186b3b4bb41ad38a764cb7f959763fa71b07a57eab" +latest-published-id = "0xa3c79bb9c853521d792383186b3b4bb41ad38a764cb7f959763fa71b07a57eab" +published-version = "1" diff --git a/mover/minh20051202/code/task1/hello_move/Move.toml b/mover/minh20051202/code/task1/hello_move/Move.toml new file mode 100644 index 00000000..9f2796b6 --- /dev/null +++ b/mover/minh20051202/code/task1/hello_move/Move.toml @@ -0,0 +1,36 @@ +[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/devnet", override = true } + +# 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/minh20051202/code/task1/hello_move/sources/hello_move.move b/mover/minh20051202/code/task1/hello_move/sources/hello_move.move new file mode 100644 index 00000000..fcd7cc74 --- /dev/null +++ b/mover/minh20051202/code/task1/hello_move/sources/hello_move.move @@ -0,0 +1,17 @@ +module hello_move::hello; + +use std::string::{ Self, String }; + +public struct HelloMinh20051202 has key { + id: UID, + name: String, +} + +public entry fun say_hello_minh20051202(ctx: &mut TxContext) { + let hello = HelloMinh20051202 { + id: object::new(ctx), + name: string::utf8(b"Hello minh20051202") + }; + + transfer::transfer(hello, tx_context::sender(ctx)); +} \ No newline at end of file diff --git a/mover/minh20051202/code/task1/hello_move/tests/hello_move_tests.move b/mover/minh20051202/code/task1/hello_move/tests/hello_move_tests.move new file mode 100644 index 00000000..7798d8dd --- /dev/null +++ b/mover/minh20051202/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/minh20051202/images/README.md b/mover/minh20051202/images/README.md new file mode 100644 index 00000000..e69de29b diff --git a/mover/minh20051202/images/package_id_explorer.png b/mover/minh20051202/images/package_id_explorer.png new file mode 100644 index 00000000..432d5b83 Binary files /dev/null and b/mover/minh20051202/images/package_id_explorer.png differ diff --git a/mover/minh20051202/images/sui_wallet.png b/mover/minh20051202/images/sui_wallet.png new file mode 100644 index 00000000..7bb58176 Binary files /dev/null and b/mover/minh20051202/images/sui_wallet.png differ diff --git a/mover/minh20051202/notes/README.md b/mover/minh20051202/notes/README.md new file mode 100644 index 00000000..e69de29b