diff --git a/mover/HlLming/code/task2/Move.toml b/mover/HlLming/code/task2/Move.toml new file mode 100644 index 000000000..d06aa9b3a --- /dev/null +++ b/mover/HlLming/code/task2/Move.toml @@ -0,0 +1,37 @@ +[package] +name = "task2" +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/mainnet" } + +# 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] +task2 = "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/HlLming/code/task2/sources/coin.move b/mover/HlLming/code/task2/sources/coin.move new file mode 100644 index 000000000..b4b81e138 --- /dev/null +++ b/mover/HlLming/code/task2/sources/coin.move @@ -0,0 +1,34 @@ +module task2::hllming_coin { + use sui::coin::{Self, Coin, TreasuryCap}; + use sui::url::{Self,Url}; + + public struct HLLMING_COIN has drop {} + + fun init(witness: HLLMING_COIN, ctx: &mut TxContext) { + let (treasury_cap, metadata) = coin::create_currency( + witness, + 9, + b"HLLMING_COIN", + b"HLLMING_COIN", + b"coin create by mqh", + option::some(url::new_unsafe_from_bytes(b"https://avatars.githubusercontent.com/u/169317797")), + ctx + ); + transfer::public_freeze_object(metadata); + transfer::public_transfer(treasury_cap, tx_context::sender(ctx)) + } + public entry fun mint( + treasury_cap: &mut TreasuryCap, + amount: u64, + recipient: address, + ctx: &mut TxContext + ) { + coin::mint_and_transfer(treasury_cap, amount, recipient, ctx); + } + public fun burn( + treasury_cap: &mut TreasuryCap, + coin: Coin + ) { + coin::burn(treasury_cap, coin); + } +} \ No newline at end of file diff --git a/mover/HlLming/code/task2/sources/faucet.move b/mover/HlLming/code/task2/sources/faucet.move new file mode 100644 index 000000000..65b27e726 --- /dev/null +++ b/mover/HlLming/code/task2/sources/faucet.move @@ -0,0 +1,35 @@ +module task2::hllming_faucet_coin { + use sui::coin::{Self, Coin, TreasuryCap}; + use sui::url::{Self,Url}; + + public struct HLLMING_FAUCET_COIN has drop {} + + #[allow(lint(share_owned))] + fun init(witness: HLLMING_FAUCET_COIN, ctx: &mut TxContext) { + let (treasury_cap, metadata) = coin::create_currency( + witness, + 9, + b"HLLMING_FAUCET", + b"HLLMING_FAUCET", + b"faucet coin defined by mqh, everyone can access and mutate", + option::some(url::new_unsafe_from_bytes(b"https://avatars.githubusercontent.com/u/169317797")), + ctx + ); + transfer::public_freeze_object(metadata); + transfer::public_share_object(treasury_cap) + } + public entry fun mint( + treasury_cap: &mut TreasuryCap, + amount: u64, + recipient: address, + ctx: &mut TxContext + ) { + coin::mint_and_transfer(treasury_cap, amount, recipient, ctx); + } + public fun burn( + treasury_cap: &mut TreasuryCap, + coin: Coin + ) { + coin::burn(treasury_cap, coin); + } +} \ No newline at end of file diff --git a/mover/HlLming/code/task3/Move.toml b/mover/HlLming/code/task3/Move.toml new file mode 100644 index 000000000..63e66c4e5 --- /dev/null +++ b/mover/HlLming/code/task3/Move.toml @@ -0,0 +1,37 @@ +[package] +name = "task3" +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/mainnet" } + +# 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] +task3 = "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/HlLming/code/task3/sources/task3.move b/mover/HlLming/code/task3/sources/task3.move new file mode 100644 index 000000000..b7a22548b --- /dev/null +++ b/mover/HlLming/code/task3/sources/task3.move @@ -0,0 +1,47 @@ +module task3::hllming_nft { + use std::ascii::String; + use std::string::utf8; + use sui::display; + use sui::object; + use sui::object::{UID}; + use sui::package; + use sui::transfer; + use sui::transfer::public_transfer; + use sui::tx_context; + use sui::tx_context::{TxContext}; + + public struct HLLMING_NFT has drop {} + + public struct NFT has key,store { + id: UID, + name: String, + } + + fun init(otw: HLLMING_NFT, ctx: &mut sui::tx_context::TxContext) { + let keys = vector[ + utf8(b"name"), + utf8(b"image_url"), + ]; + + let values = vector[ + utf8(b"{name}"), + utf8(b"https://avatars.githubusercontent.com/u/169317797"), + ]; + + let publisher = package::claim(otw, ctx); + let mut display = display::new_with_fields(&publisher, keys, values,ctx); + + display::update_version(&mut display); + + transfer::public_transfer(publisher, tx_context::sender(ctx)); + transfer::public_transfer(display, tx_context::sender(ctx)); + } + + public entry fun mint_to(name: String, recipient: address,ctx: &mut TxContext) { + let nft = NFT{ + id: object::new(ctx), + name, + }; + public_transfer(nft, recipient) + } +} \ No newline at end of file diff --git a/mover/HlLming/notes/nft.png b/mover/HlLming/notes/nft.png new file mode 100644 index 000000000..2a6bcb5ef Binary files /dev/null and b/mover/HlLming/notes/nft.png differ diff --git a/mover/HlLming/readme.md b/mover/HlLming/readme.md index f6d6b3e9d..ffe2a6d37 100644 --- a/mover/HlLming/readme.md +++ b/mover/HlLming/readme.md @@ -18,17 +18,17 @@ - [x] package id 在 scan上的查看截图:![Scan截图](./notes/package.png) ## 02 move coin -- [] My Coin package id : -- [] Faucet package id : -- [] 转账 `My Coin` hash: -- [] `Faucet Coin` address1 mint hash: -- [] `Faucet Coin` address2 mint hash: +- [x] My Coin package id : 0x920491420bc64ee56160c3b36d1938575b07527e0e35310f1f5e42695b4ee83b +- [x] Faucet package id : 0x920491420bc64ee56160c3b36d1938575b07527e0e35310f1f5e42695b4ee83b +- [x] 转账 `My Coin` hash: NARDUX1DeBeyi4RzcnuDGrrDWKHfH1sEK81vQRcB1YP +- [x] `Faucet Coin` address1 mint hash: BBWHCM9HiALsnuUt1FopeoNznFxzz81JruLJzbzRk2Kn +- [x] `Faucet Coin` address2 mint hash: 4iYeXqf3hLT6DUQM6R4a9iLLEv7ciCrrsVTudnXWGfRu ## 03 move NFT -- [] nft package id : -- [] nft object id : -- [] 转账 nft hash: -- [] scan上的NFT截图:![Scan截图](./images/你的图片地址) +- [x] nft package id : 0xdb866ab73c2aa59855d267a13a07b48799ca4adfacaa85acaec03721d9af0f6c +- [x] nft object id : 0x03564380160f5d9382ba81c79b41415c827c8d532b83c892136286582275d925 +- [x] 转账 nft hash: 67yG86BBCWRfuFWNQvr7jYDqZ32R4PwjsMvB2vKf1ZoP +- [x] scan上的NFT截图:![Scan截图](./notes/nft.png) ## 04 Move Game - [] game package id : diff --git a/mover/fyj1230/notes/54.png b/mover/fyj1230/notes/54.png new file mode 100644 index 000000000..1a37da613 Binary files /dev/null and b/mover/fyj1230/notes/54.png differ diff --git a/mover/fyj1230/readme.md b/mover/fyj1230/readme.md index 8fac131b4..12011b452 100644 --- a/mover/fyj1230/readme.md +++ b/mover/fyj1230/readme.md @@ -44,3 +44,11 @@ ## 06 Dapp-kit SDK PTB - [x] save hash : 7vHD9XctZ6kcfapUmFaCZ8CHpcsRFUY8HKTo2zjzMx1Y + +## 07 Move CTF Check In +- [x] CLI call 截图 : ![截图](./notes/54.png) +- [x] flag hash : H6rTN42N3WyZHU2DHCizUYRwr319h3MwG65GypqXP6vs + +## 08 Move CTF Lets Move +- [x] proof : 3f306002c8309be9c540 +- [x] flag hash : 27BaJFRk3bPBptrNRMvogDib7N7AxT2n9vFYH3t4r5Gx \ No newline at end of file diff --git a/mover/wasd845/code/task1/HelloMove/Move.lock b/mover/wasd845/code/task1/HelloMove/Move.lock new file mode 100644 index 000000000..5724471ea --- /dev/null +++ b/mover/wasd845/code/task1/HelloMove/Move.lock @@ -0,0 +1,34 @@ +# @generated by Move, please check-in and do not edit manually. + +[move] +version = 2 +manifest_digest = "D5EDEAFDDE5D5222CD6E0111A755BFED9E8CCA7C84C18CEA36E6DEB6FB5C5F17" +deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082" +dependencies = [ + { name = "Sui" }, +] + +[[move.package]] +name = "MoveStdlib" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates\\sui-framework\\packages\\move-stdlib" } + +[[move.package]] +name = "Sui" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/sui-framework" } + +dependencies = [ + { name = "MoveStdlib" }, +] + +[move.toolchain-version] +compiler-version = "1.29.1" +edition = "2024.beta" +flavor = "sui" + +[env] + +[env.testnet] +chain-id = "4c78adac" +original-published-id = "0xa8376a9a796495e42a8f8a8d7aacd98d51aef349f10d02d5bbca3cb3ebcbefbc" +latest-published-id = "0xa8376a9a796495e42a8f8a8d7aacd98d51aef349f10d02d5bbca3cb3ebcbefbc" +published-version = "1" diff --git a/mover/wasd845/code/task1/HelloMove/Move.toml b/mover/wasd845/code/task1/HelloMove/Move.toml new file mode 100644 index 000000000..45fa6891c --- /dev/null +++ b/mover/wasd845/code/task1/HelloMove/Move.toml @@ -0,0 +1,37 @@ +[package] +name = "HelloMove" +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] +hellomove = "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/wasd845/code/task1/HelloMove/sources/hellomove.move b/mover/wasd845/code/task1/HelloMove/sources/hellomove.move new file mode 100644 index 000000000..0654438ef --- /dev/null +++ b/mover/wasd845/code/task1/HelloMove/sources/hellomove.move @@ -0,0 +1,18 @@ +/// Module: hellomove +module hellomove::hellomove { + 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"wasd845"), + }; + transfer(hello_move, sender(ctx)); + }} + diff --git a/mover/wasd845/code/task1/HelloMove/tests/hellomove_tests.move b/mover/wasd845/code/task1/HelloMove/tests/hellomove_tests.move new file mode 100644 index 000000000..2eb514e2f --- /dev/null +++ b/mover/wasd845/code/task1/HelloMove/tests/hellomove_tests.move @@ -0,0 +1,19 @@ +/* +#[test_only] +module hellomove::hellomove_tests { + // uncomment this line to import the module + // use hellomove::hellomove; + + const ENotImplemented: u64 = 0; + + #[test] + fun test_hellomove() { + // pass + } + + #[test, expected_failure(abort_code = ::hellomove::hellomove_tests::ENotImplemented)] + fun test_hellomove_fail() { + abort ENotImplemented + } +} +*/ diff --git a/mover/wasd845/images/Screenshot.png b/mover/wasd845/images/Screenshot.png new file mode 100644 index 000000000..08b7ec4c6 Binary files /dev/null and b/mover/wasd845/images/Screenshot.png differ diff --git a/mover/wasd845/images/Screenshot2.png b/mover/wasd845/images/Screenshot2.png new file mode 100644 index 000000000..8d46e119d Binary files /dev/null and b/mover/wasd845/images/Screenshot2.png differ diff --git a/mover/wasd845/readme.md b/mover/wasd845/readme.md index c8abb3fd3..6081933a3 100644 --- a/mover/wasd845/readme.md +++ b/mover/wasd845/readme.md @@ -13,10 +13,10 @@ ## 任务 ## 01 hello move -- [] Sui cli version: -- [] Sui钱包截图: ![Sui钱包截图](./images/你的图片地址) -- [] package id: -- [] package id 在 scan上的查看截图:![Scan截图](./images/你的图片地址) +- [x] Sui cli version:'sui 1.29.1-0e22aedc6f26' +- [x] Sui钱包截图: ![Sui钱包截图](./images/Screenshot.png) +- [x] package id: 0xa8376a9a796495e42a8f8a8d7aacd98d51aef349f10d02d5bbca3cb3ebcbefbc +- [x] package id 在 scan上的查看截图:![Scan截图](./images/Screenshot2.png) ## 02 move coin - [] My Coin package id : diff --git a/mover/web3CL/code/readme.md b/mover/web3CL/code/readme.md new file mode 100644 index 000000000..e69de29bb diff --git a/mover/web3CL/code/readme.md:Zone.Identifier b/mover/web3CL/code/readme.md:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/code/readme.md:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/code/task1/hello/Move.lock b/mover/web3CL/code/task1/hello/Move.lock new file mode 100644 index 000000000..433aa0a69 --- /dev/null +++ b/mover/web3CL/code/task1/hello/Move.lock @@ -0,0 +1,34 @@ +# @generated by Move, please check-in and do not edit manually. + +[move] +version = 2 +manifest_digest = "23C730475A68F1E6BEDDB2CD78A3EB131C4A59425643F732B34CA8F439B08D68" +deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082" +dependencies = [ + { name = "Sui" }, +] + +[[move.package]] +name = "MoveStdlib" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/move-stdlib" } + +[[move.package]] +name = "Sui" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/sui-framework" } + +dependencies = [ + { name = "MoveStdlib" }, +] + +[move.toolchain-version] +compiler-version = "1.27.2" +edition = "2024.beta" +flavor = "sui" + +[env] + +[env.testnet] +chain-id = "4c78adac" +original-published-id = "0x33196c88aa463c55b114f782072298e135b574bd46570eb03ee41d144ed122ff" +latest-published-id = "0x33196c88aa463c55b114f782072298e135b574bd46570eb03ee41d144ed122ff" +published-version = "1" diff --git a/mover/web3CL/code/task1/hello/Move.lock:Zone.Identifier b/mover/web3CL/code/task1/hello/Move.lock:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/code/task1/hello/Move.lock:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/code/task1/hello/Move.toml b/mover/web3CL/code/task1/hello/Move.toml new file mode 100644 index 000000000..f6bf62a02 --- /dev/null +++ b/mover/web3CL/code/task1/hello/Move.toml @@ -0,0 +1,37 @@ +[package] +name = "hello" +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 = "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/web3CL/code/task1/hello/Move.toml:Zone.Identifier b/mover/web3CL/code/task1/hello/Move.toml:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/code/task1/hello/Move.toml:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/code/task1/hello/sources/hello.move b/mover/web3CL/code/task1/hello/sources/hello.move new file mode 100644 index 000000000..9817026f9 --- /dev/null +++ b/mover/web3CL/code/task1/hello/sources/hello.move @@ -0,0 +1,19 @@ +module hello::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 web3CL!"), + }; + transfer(hello_move, sender(ctx)); + } +} \ No newline at end of file diff --git a/mover/web3CL/code/task1/hello/sources/hello.move:Zone.Identifier b/mover/web3CL/code/task1/hello/sources/hello.move:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/code/task1/hello/sources/hello.move:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/code/task1/hello/tests/hello_tests.move b/mover/web3CL/code/task1/hello/tests/hello_tests.move new file mode 100644 index 000000000..34dfcfb57 --- /dev/null +++ b/mover/web3CL/code/task1/hello/tests/hello_tests.move @@ -0,0 +1,19 @@ +/* +#[test_only] +module hello::hello_tests { + // uncomment this line to import the module + // use hello::hello; + + const ENotImplemented: u64 = 0; + + #[test] + fun test_hello() { + // pass + } + + #[test, expected_failure(abort_code = ::hello::hello_tests::ENotImplemented)] + fun test_hello_fail() { + abort ENotImplemented + } +} +*/ diff --git a/mover/web3CL/code/task1/hello/tests/hello_tests.move:Zone.Identifier b/mover/web3CL/code/task1/hello/tests/hello_tests.move:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/code/task1/hello/tests/hello_tests.move:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/code/task2/faucet_coin/Move.lock b/mover/web3CL/code/task2/faucet_coin/Move.lock new file mode 100644 index 000000000..871f809b7 --- /dev/null +++ b/mover/web3CL/code/task2/faucet_coin/Move.lock @@ -0,0 +1,34 @@ +# @generated by Move, please check-in and do not edit manually. + +[move] +version = 2 +manifest_digest = "F8CFCF256E2F1BB7CD401C27799A09C40777C5C100F0DFA253E86DD7F0D4ED1B" +deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082" +dependencies = [ + { name = "Sui" }, +] + +[[move.package]] +name = "MoveStdlib" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/move-stdlib" } + +[[move.package]] +name = "Sui" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/sui-framework" } + +dependencies = [ + { name = "MoveStdlib" }, +] + +[move.toolchain-version] +compiler-version = "1.29.2" +edition = "2024.beta" +flavor = "sui" + +[env] + +[env.testnet] +chain-id = "4c78adac" +original-published-id = "0x54c1d3f374a94596cc79e8691a4354e52e5112841b49b02ced6d721c68ac9ac0" +latest-published-id = "0x54c1d3f374a94596cc79e8691a4354e52e5112841b49b02ced6d721c68ac9ac0" +published-version = "1" diff --git a/mover/web3CL/code/task2/faucet_coin/Move.lock:Zone.Identifier b/mover/web3CL/code/task2/faucet_coin/Move.lock:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/code/task2/faucet_coin/Move.lock:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/code/task2/faucet_coin/Move.toml b/mover/web3CL/code/task2/faucet_coin/Move.toml new file mode 100644 index 000000000..1b517a2be --- /dev/null +++ b/mover/web3CL/code/task2/faucet_coin/Move.toml @@ -0,0 +1,37 @@ +[package] +name = "faucet_coin" +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] +faucet_coin = "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/web3CL/code/task2/faucet_coin/Move.toml:Zone.Identifier b/mover/web3CL/code/task2/faucet_coin/Move.toml:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/code/task2/faucet_coin/Move.toml:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/code/task2/faucet_coin/sources/faucet_coin.move b/mover/web3CL/code/task2/faucet_coin/sources/faucet_coin.move new file mode 100644 index 000000000..9cf81b525 --- /dev/null +++ b/mover/web3CL/code/task2/faucet_coin/sources/faucet_coin.move @@ -0,0 +1,29 @@ +module faucet_coin::faucet_coin { + use sui::coin::{Self, TreasuryCap}; + use sui::url::Url; + use sui::transfer::{public_freeze_object, public_share_object}; + + + public struct FAUCET_COIN has drop {} + + const MAX_MINT_AMOUNT: u64 = 1_000_000_000; + + fun init(witness: FAUCET_COIN, ctx: &mut TxContext) { + + let icon_url = option::none(); + + + let (treasury_cap, coin_metadata) = + coin::create_currency(witness, 8, b"web3CL+faucet", b"web3CL's faucet", b"this is a test faucet from web3CL", icon_url, ctx); + + public_freeze_object(coin_metadata); + + public_share_object(treasury_cap); + + } + + public entry fun mint(treasury_cap: &mut TreasuryCap, amount: u64, ctx: &mut TxContext) { + assert!(amount <= MAX_MINT_AMOUNT, 0); + coin::mint_and_transfer(treasury_cap, amount, tx_context::sender(ctx), ctx); + } +} \ No newline at end of file diff --git a/mover/web3CL/code/task2/faucet_coin/sources/faucet_coin.move:Zone.Identifier b/mover/web3CL/code/task2/faucet_coin/sources/faucet_coin.move:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/code/task2/faucet_coin/sources/faucet_coin.move:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/code/task2/faucet_coin/tests/faucet_coin_tests.move b/mover/web3CL/code/task2/faucet_coin/tests/faucet_coin_tests.move new file mode 100644 index 000000000..88a42bf8e --- /dev/null +++ b/mover/web3CL/code/task2/faucet_coin/tests/faucet_coin_tests.move @@ -0,0 +1,19 @@ +/* +#[test_only] +module faucet_coin::faucet_coin_tests { + // uncomment this line to import the module + // use faucet_coin::faucet_coin; + + const ENotImplemented: u64 = 0; + + #[test] + fun test_faucet_coin() { + // pass + } + + #[test, expected_failure(abort_code = ::faucet_coin::faucet_coin_tests::ENotImplemented)] + fun test_faucet_coin_fail() { + abort ENotImplemented + } +} +*/ diff --git a/mover/web3CL/code/task2/faucet_coin/tests/faucet_coin_tests.move:Zone.Identifier b/mover/web3CL/code/task2/faucet_coin/tests/faucet_coin_tests.move:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/code/task2/faucet_coin/tests/faucet_coin_tests.move:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/code/task2/my_coin/Move.lock b/mover/web3CL/code/task2/my_coin/Move.lock new file mode 100644 index 000000000..3e52f06a1 --- /dev/null +++ b/mover/web3CL/code/task2/my_coin/Move.lock @@ -0,0 +1,34 @@ +# @generated by Move, please check-in and do not edit manually. + +[move] +version = 2 +manifest_digest = "0A4652D38CF3C3FDB79EC6C1C98FCFF7B2E933E12B84A1DA267DB28F66AFECE3" +deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082" +dependencies = [ + { name = "Sui" }, +] + +[[move.package]] +name = "MoveStdlib" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/move-stdlib" } + +[[move.package]] +name = "Sui" +source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/sui-framework" } + +dependencies = [ + { name = "MoveStdlib" }, +] + +[move.toolchain-version] +compiler-version = "1.29.2" +edition = "2024.beta" +flavor = "sui" + +[env] + +[env.testnet] +chain-id = "4c78adac" +original-published-id = "0x05b163c3a5d1fc4dbfde24163d59a1137d977fd320c964a8eacdab78e3e00f86" +latest-published-id = "0x05b163c3a5d1fc4dbfde24163d59a1137d977fd320c964a8eacdab78e3e00f86" +published-version = "1" diff --git a/mover/web3CL/code/task2/my_coin/Move.lock:Zone.Identifier b/mover/web3CL/code/task2/my_coin/Move.lock:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/code/task2/my_coin/Move.lock:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/code/task2/my_coin/Move.toml b/mover/web3CL/code/task2/my_coin/Move.toml new file mode 100644 index 000000000..b9ca003f8 --- /dev/null +++ b/mover/web3CL/code/task2/my_coin/Move.toml @@ -0,0 +1,37 @@ +[package] +name = "my_coin" +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] +my_coin = "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/web3CL/code/task2/my_coin/Move.toml:Zone.Identifier b/mover/web3CL/code/task2/my_coin/Move.toml:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/code/task2/my_coin/Move.toml:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/code/task2/my_coin/sources/my_coin.move b/mover/web3CL/code/task2/my_coin/sources/my_coin.move new file mode 100644 index 000000000..29a265e48 --- /dev/null +++ b/mover/web3CL/code/task2/my_coin/sources/my_coin.move @@ -0,0 +1,28 @@ + +/// Module: coin_test +module my_coin::my_coin { + use sui::coin; + use sui::url::Url; + use sui::transfer::{public_transfer, public_freeze_object}; + use sui::tx_context::sender; + + + + public struct MY_COIN has drop{} + + fun init(witness: MY_COIN, ctx: &mut TxContext) { + + let icon_url = option::none(); + + + let (treasury_cap, coin_metadata) = + coin::create_currency(witness, 8, b"web3CL_coin", b"web3CL's coin", b"this is a test coin from web3CL",icon_url, ctx); + + public_freeze_object(coin_metadata); + + public_transfer(treasury_cap, sender(ctx)); + + } + + +} diff --git a/mover/web3CL/code/task2/my_coin/sources/my_coin.move:Zone.Identifier b/mover/web3CL/code/task2/my_coin/sources/my_coin.move:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/code/task2/my_coin/sources/my_coin.move:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/code/task2/my_coin/tests/my_coin_tests.move b/mover/web3CL/code/task2/my_coin/tests/my_coin_tests.move new file mode 100644 index 000000000..4be556acf --- /dev/null +++ b/mover/web3CL/code/task2/my_coin/tests/my_coin_tests.move @@ -0,0 +1,19 @@ +/* +#[test_only] +module my_coin::my_coin_tests { + // uncomment this line to import the module + // use my_coin::my_coin; + + const ENotImplemented: u64 = 0; + + #[test] + fun test_my_coin() { + // pass + } + + #[test, expected_failure(abort_code = ::my_coin::my_coin_tests::ENotImplemented)] + fun test_my_coin_fail() { + abort ENotImplemented + } +} +*/ diff --git a/mover/web3CL/code/task2/my_coin/tests/my_coin_tests.move:Zone.Identifier b/mover/web3CL/code/task2/my_coin/tests/my_coin_tests.move:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/code/task2/my_coin/tests/my_coin_tests.move:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/images/task1_package.png b/mover/web3CL/images/task1_package.png new file mode 100644 index 000000000..20bf13a7e Binary files /dev/null and b/mover/web3CL/images/task1_package.png differ diff --git a/mover/web3CL/images/task1_package.png:Zone.Identifier b/mover/web3CL/images/task1_package.png:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/images/task1_package.png:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/images/wallet.png b/mover/web3CL/images/wallet.png new file mode 100644 index 000000000..c04b74f11 Binary files /dev/null and b/mover/web3CL/images/wallet.png differ diff --git a/mover/web3CL/images/wallet.png:Zone.Identifier b/mover/web3CL/images/wallet.png:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/images/wallet.png:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/notes/readme.md b/mover/web3CL/notes/readme.md new file mode 100644 index 000000000..e69de29bb diff --git a/mover/web3CL/notes/readme.md:Zone.Identifier b/mover/web3CL/notes/readme.md:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/notes/readme.md:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/web3CL/readme.md b/mover/web3CL/readme.md new file mode 100644 index 000000000..82d1c968f --- /dev/null +++ b/mover/web3CL/readme.md @@ -0,0 +1,54 @@ +## 基本信息 +- Sui钱包地址: `0x692d481fd6fdac699387b4ecbbc7c74359487ec8a81567f4f96196c2ad44483a` +> 首次参与需要完成第一个任务注册好钱包地址才被合并,并且后续学习奖励会打入这个地址 +- github: `web3CL` + +## 个人简介 +- 工作经验: 1年 +- 技术栈: `python`、`machine learning`、`solidity` +> 重要提示 请认真写自己的简介 +- 可以英语为工作语言,擅长数据分析、数据可视化,有以太坊MEV bots开发经验; +- 联系方式: tg: `@chenje.lyu` + +## 任务 + +## 01 hello move +- [x] Sui cli version: sui-client 1.27.2-homebrew +- [x] Sui钱包截图: ![Sui钱包截图](./images/wallet.png) +- [x] package id: `0x33196c88aa463c55b114f782072298e135b574bd46570eb03ee41d144ed122ff` +- [x] package id 在 scan上的查看截图:![Scan截图](./images/task1_package.png) + +## 02 move coin +- [x] My Coin package id : `0x05b163c3a5d1fc4dbfde24163d59a1137d977fd320c964a8eacdab78e3e00f86` +- [x] Faucet package id : `0x54c1d3f374a94596cc79e8691a4354e52e5112841b49b02ced6d721c68ac9ac0` +- [x] 转账 `My Coin` hash: `8krQgZ5DDgareifn7rYXSaEvumbyFwBqdrHGVchcXGuc` +- [x] `Faucet Coin` address1 mint hash: `CPbUmpSdg1wHi3bMZA8BL8r1e9nqxTR8oYRAcKT5G98B` +- [x] `Faucet Coin` address2 mint hash: `A6Tx3PUqu4jFzZBXZ3MQB3mz2ay9MmngkS4D2jb4Zguf` + +## 03 move NFT +- [] nft package id : +- [] nft object id : +- [] 转账 nft hash: +- [] scan上的NFT截图:![Scan截图](./images/你的图片地址) + +## 04 Move Game +- [] game package id : +- [] deposit Coin hash: +- [] withdraw `Coin` hash: +- [] play game hash: + +## 05 Move Swap +- [] swap package id : +- [] call swap CoinA-> CoinB hash : +- [] call swap CoinB-> CoinA hash : + +## 06 Dapp-kit SDK PTB +- [] save hash : + +## 07 Move CTF Check In +- [] CLI call 截图 : ![截图](./images/你的图片地址) +- [] flag hash : + +## 08 Move CTF Lets Move +- [] proof : +- [] flag hash : diff --git a/mover/web3CL/readme.md:Zone.Identifier b/mover/web3CL/readme.md:Zone.Identifier new file mode 100644 index 000000000..a45e1ac4c --- /dev/null +++ b/mover/web3CL/readme.md:Zone.Identifier @@ -0,0 +1,2 @@ +[ZoneTransfer] +ZoneId=3 diff --git a/mover/yemachine/notes/powershell.png b/mover/yemachine/notes/powershell.png new file mode 100644 index 000000000..b192f24e0 Binary files /dev/null and b/mover/yemachine/notes/powershell.png differ diff --git a/mover/yemachine/readme.md b/mover/yemachine/readme.md index 35a18a853..e6f7af38e 100644 --- a/mover/yemachine/readme.md +++ b/mover/yemachine/readme.md @@ -45,3 +45,11 @@ ## 06 Dapp-kit SDK PTB - [x] save hash : GuvhyphywAC4o2FvCFq9vT7V7Ef5sjaesX5HCuoMrGZa + +## 07 Move CTF Check In +- [x] CLI call 截图 : ![截图](./notes/powershell.png) +- [x] flag hash : 4xzV63Qp5rEt9x6LC3JoARQjnuytojjqvr44K93pqSZL + +## 08 Move CTF Lets Move +- [x] proof : f811d6f9f5601e4d4400 +- [x] flag hash : 7C7nBGudiJRjo1kj4S3c4bVJq9tEUyuN92FT7SSBb8mg \ No newline at end of file diff --git a/mover/zipdata1/images/01.png b/mover/zipdata1/images/01.png new file mode 100644 index 000000000..ccd8f6aa3 Binary files /dev/null and b/mover/zipdata1/images/01.png differ diff --git a/mover/zipdata1/images/02.png b/mover/zipdata1/images/02.png new file mode 100644 index 000000000..15625b0a4 Binary files /dev/null and b/mover/zipdata1/images/02.png differ diff --git a/mover/zipdata1/readme.md b/mover/zipdata1/readme.md new file mode 100644 index 000000000..d12177472 --- /dev/null +++ b/mover/zipdata1/readme.md @@ -0,0 +1,53 @@ +## 基本信息 +- Sui钱包地址: `0x9620b4d45bf7f8e7d83dacea7b4bf226382e411b1b289c1d61d1eaa5f2442be6` +> 首次参与需要完成第一个任务注册好钱包地址才被合并,并且后续学习奖励会打入这个地址 +- github: `zipdata1` + +## 个人简介 +- 技术栈: `java` +> 重要提示 请认真写自己的简介 +- 一年java开发经验,对Move特别感兴趣,想通过Move入门区块链 +- 联系方式: qq: `2976003832` + +## 任务 + +## 01 hello move +- [x] Sui cli version:`sui 1.29.2-09db80adf1af` +- [x] Sui钱包截图: ![Sui钱包截图](./images/01.png) +- [x] package id: `0x569df0c06938c7e94ad7308505b9c473b2a09889815a8d74616ff26ee9a14901` +- [x] package id 在 scan上的查看截图:![Scan截图](./images/02.png) + +## 02 move coin +- [] My Coin package id : +- [] Faucet package id : +- [] 转账 `My Coin` hash: +- [] `Faucet Coin` address1 mint hash: +- [] `Faucet Coin` address2 mint hash: + +## 03 move NFT +- [] nft package id : +- [] nft object id : +- [] 转账 nft hash: +- [] scan上的NFT截图:![Scan截图](./images/你的图片地址) + +## 04 Move Game +- [] game package id : +- [] deposit Coin hash: +- [] withdraw `Coin` hash: +- [] play game hash: + +## 05 Move Swap +- [] swap package id : +- [] call swap CoinA-> CoinB hash : +- [] call swap CoinB-> CoinA hash : + +## 06 Dapp-kit SDK PTB +- [] save hash : + +## 07 Move CTF Check In +- [] CLI call 截图 : ![截图](./images/你的图片地址) +- [] flag hash : + +## 08 Move CTF Lets Move +- [] proof : +- [] flag hash :