diff --git a/mover/1pzq/code/task3/my_nft/sources/my_nft.move b/mover/1pzq/code/task3/my_nft/sources/my_nft.move index e54e2654a..402097b39 100644 --- a/mover/1pzq/code/task3/my_nft/sources/my_nft.move +++ b/mover/1pzq/code/task3/my_nft/sources/my_nft.move @@ -1,6 +1,6 @@ /* -/// Module: my_nft -module my_nft::my_nft { +/// Module: task3-my_nft +module task3-my_nft::task3-my_nft { } */ diff --git a/mover/1pzq/code/task3/my_nft/tests/my_nft_tests.move b/mover/1pzq/code/task3/my_nft/tests/my_nft_tests.move index 5d3a60230..bcc79257d 100644 --- a/mover/1pzq/code/task3/my_nft/tests/my_nft_tests.move +++ b/mover/1pzq/code/task3/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = ::my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = ::task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git a/mover/AaronChengHao/code/task_3/my_nft/tests/my_nft_tests.move b/mover/AaronChengHao/code/task_3/my_nft/tests/my_nft_tests.move index da07bc923..b06fbe1f9 100644 --- a/mover/AaronChengHao/code/task_3/my_nft/tests/my_nft_tests.move +++ b/mover/AaronChengHao/code/task_3/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git a/mover/Ch1hiro/code/task3/my_nft/sources/my_nft.move b/mover/Ch1hiro/code/task3/my_nft/sources/my_nft.move index 0aa9eff5c..637d74411 100644 --- a/mover/Ch1hiro/code/task3/my_nft/sources/my_nft.move +++ b/mover/Ch1hiro/code/task3/my_nft/sources/my_nft.move @@ -26,7 +26,7 @@ module my_nft::my_nft { name: name, image_url: image_url, }; - // 这里将铸造好的 my_nft 转移给其他人 + // 这里将铸造好的 task3-my_nft 转移给其他人 public_transfer(my_nft, recipient) } } diff --git a/mover/Ch1hiro/code/task3/my_nft/tests/my_nft_tests.move b/mover/Ch1hiro/code/task3/my_nft/tests/my_nft_tests.move index 5d3a60230..bcc79257d 100644 --- a/mover/Ch1hiro/code/task3/my_nft/tests/my_nft_tests.move +++ b/mover/Ch1hiro/code/task3/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = ::my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = ::task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git a/mover/ChenGongWei/code/readme.md b/mover/ChenGongWei/code/readme.md index e528241b2..51c9186e6 100644 --- a/mover/ChenGongWei/code/readme.md +++ b/mover/ChenGongWei/code/readme.md @@ -95,7 +95,7 @@ sui client publish --gas-budget=50000000 ## mint&转账 ### mint ```bash -sui client call --gas-budget 50000000 --function mint_nft --module my_nft --package 0xb01abee6307b48e001f17f06dcd42db9341aae627a74145859142a03e486ffd0 --args "joker" "twitter joker" "https://png.pngtree.com/png-clipart/20190904/original/pngtree-clown-cartoon-png-material-png-image_4477011.jpg" +sui client call --gas-budget 50000000 --function mint_nft --module task3-my_nft --package 0xb01abee6307b48e001f17f06dcd42db9341aae627a74145859142a03e486ffd0 --args "joker" "twitter joker" "https://png.pngtree.com/png-clipart/20190904/original/pngtree-clown-cartoon-png-material-png-image_4477011.jpg" ``` ``` @@ -104,7 +104,7 @@ sui client call --gas-budget 50000000 --function mint_nft --module my_nft --pac ### 转账 ```bash -sui client call --gas-budget 50000000 --function transfer_nft --module my_nft --package 0xb01abee6307b48e001f17f06dcd42db9341aae627a74145859142a03e486ffd0 --args 0xbf7f5bd4609c1f3cd079e2368e843bb83459f1a494a3342def5860ccc4b7bff1 0x7b8e0864967427679b4e129f79dc332a885c6087ec9e187b53451a9006ee15f2 +sui client call --gas-budget 50000000 --function transfer_nft --module task3-my_nft --package 0xb01abee6307b48e001f17f06dcd42db9341aae627a74145859142a03e486ffd0 --args 0xbf7f5bd4609c1f3cd079e2368e843bb83459f1a494a3342def5860ccc4b7bff1 0x7b8e0864967427679b4e129f79dc332a885c6087ec9e187b53451a9006ee15f2 ``` diff --git a/mover/July-NANA/code/my_nft/tests/my_nft_tests.move b/mover/July-NANA/code/my_nft/tests/my_nft_tests.move index 5d3a60230..bcc79257d 100644 --- a/mover/July-NANA/code/my_nft/tests/my_nft_tests.move +++ b/mover/July-NANA/code/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = ::my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = ::task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git a/mover/LittleMoreInteresting/code/task3/my_nft/sources/my_nft.move b/mover/LittleMoreInteresting/code/task3/my_nft/sources/my_nft.move index 2a1b0a6ef..af0414dbe 100644 --- a/mover/LittleMoreInteresting/code/task3/my_nft/sources/my_nft.move +++ b/mover/LittleMoreInteresting/code/task3/my_nft/sources/my_nft.move @@ -1,6 +1,6 @@ /* -/// Module: my_nft -module my_nft::my_nft { +/// Module: task3-my_nft +module task3-my_nft::task3-my_nft { } */ diff --git a/mover/LittleMoreInteresting/code/task3/my_nft/tests/my_nft_tests.move b/mover/LittleMoreInteresting/code/task3/my_nft/tests/my_nft_tests.move index 5d3a60230..bcc79257d 100644 --- a/mover/LittleMoreInteresting/code/task3/my_nft/tests/my_nft_tests.move +++ b/mover/LittleMoreInteresting/code/task3/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = ::my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = ::task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git a/mover/PhigrosX/code/task3/PhigrosX_NFT/sources/PhigrosX_NFT.move b/mover/PhigrosX/code/task3/PhigrosX_NFT/sources/PhigrosX_NFT.move index 3831b7c9b..e2933aabc 100644 --- a/mover/PhigrosX/code/task3/PhigrosX_NFT/sources/PhigrosX_NFT.move +++ b/mover/PhigrosX/code/task3/PhigrosX_NFT/sources/PhigrosX_NFT.move @@ -1,5 +1,5 @@ -/// Module: my_nft +/// Module: task3-my_nft module PhigrosX_NFT::PhigrosX_nft { use std::string; diff --git a/mover/Sou1ReaPer/code/task3/my_nft/sources/my_nft.move b/mover/Sou1ReaPer/code/task3/my_nft/sources/my_nft.move index 3a2189004..36eb2d8f0 100644 --- a/mover/Sou1ReaPer/code/task3/my_nft/sources/my_nft.move +++ b/mover/Sou1ReaPer/code/task3/my_nft/sources/my_nft.move @@ -1,4 +1,4 @@ -/// Module: my_nft +/// Module: task3-my_nft module my_nft::my_nft { use sui::tx_context::{sender}; use std::string::{utf8}; diff --git a/mover/Sou1ReaPer/code/task3/my_nft/tests/my_nft_tests.move b/mover/Sou1ReaPer/code/task3/my_nft/tests/my_nft_tests.move index 5d3a60230..bcc79257d 100644 --- a/mover/Sou1ReaPer/code/task3/my_nft/tests/my_nft_tests.move +++ b/mover/Sou1ReaPer/code/task3/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = ::my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = ::task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git a/mover/Sou1ReaPer/notes/readme.md b/mover/Sou1ReaPer/notes/readme.md index b17f8ba05..eff8d859b 100644 --- a/mover/Sou1ReaPer/notes/readme.md +++ b/mover/Sou1ReaPer/notes/readme.md @@ -5,12 +5,12 @@ ```shell sui client call --package --module --function --args ... -sui client call --package 0x1f06eec0829cf5cffbb66a24312134830b626d65efc3a92055679351cf0c8546 --module my_nft --function mint --args 0xf9d00c84559e27d556641d2ba1c1cde7a93255a2499eaa3719d71c047d511e1b 0x0027e6bd003338672d2e4aa351227dd04ca5e22f3732719677d5cfbfa1f71eeb +sui client call --package 0x1f06eec0829cf5cffbb66a24312134830b626d65efc3a92055679351cf0c8546 --module task3-my_nft --function mint --args 0xf9d00c84559e27d556641d2ba1c1cde7a93255a2499eaa3719d71c047d511e1b 0x0027e6bd003338672d2e4aa351227dd04ca5e22f3732719677d5cfbfa1f71eeb ``` - mint 一个 nft 发送到地址: `0x7b8e0864967427679b4e129f79dc332a885c6087ec9e187b53451a9006ee15f2` ```shell -sui client call --package 0x1f06eec0829cf5cffbb66a24312134830b626d65efc3a92055679351cf0c8546 --module my_nft --function mint --args 0xf9d00c84559e27d556641d2ba1c1cde7a93255a2499eaa3719d71c047d511e1b 0x7b8e0864967427679b4e129f79dc332a885c6087ec9e187b53451a9006ee15f2 +sui client call --package 0x1f06eec0829cf5cffbb66a24312134830b626d65efc3a92055679351cf0c8546 --module task3-my_nft --function mint --args 0xf9d00c84559e27d556641d2ba1c1cde7a93255a2499eaa3719d71c047d511e1b 0x7b8e0864967427679b4e129f79dc332a885c6087ec9e187b53451a9006ee15f2 ``` diff --git a/mover/a-sky-person/code/task_3/my_nft/tests/my_nft_tests.move b/mover/a-sky-person/code/task_3/my_nft/tests/my_nft_tests.move index da07bc923..b06fbe1f9 100644 --- a/mover/a-sky-person/code/task_3/my_nft/tests/my_nft_tests.move +++ b/mover/a-sky-person/code/task_3/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git a/mover/a981008/notes/readme.md b/mover/a981008/notes/readme.md index 7622d0c5e..575f80dc6 100644 --- a/mover/a981008/notes/readme.md +++ b/mover/a981008/notes/readme.md @@ -22,11 +22,11 @@ sui move build --skip-fetch-latest-git-deps sui client publish --gas-budget=20000000 --skip-fetch-latest-git-deps export PACKAGE_ID=0xfc7875f481a6f62e9622efefbbf359d867eea774b9e226641d734db8af9b57c5 -sui client call --function mint_to_sender --module my_nft --package $PACKAGE_ID --args "a981008" "github a981008 profile" "https://github.com/a981008" --gas-budget 20000000 +sui client call --function mint_to_sender --module task3-my_nft --package $PACKAGE_ID --args "a981008" "github a981008 profile" "https://github.com/a981008" --gas-budget 20000000 export NFT_ID=0x0e12b3a76ddb35c1d02337df090b92924e8a53753fba5d396b6785bfe8b8f5da export RECIPIENT_ID=0x7b8e0864967427679b4e129f79dc332a885c6087ec9e187b53451a9006ee15f2 -sui client call --function transfer --module my_nft --package $PACKAGE_ID --args $NFT_ID $RECIPIENT_ID --gas-budget 20000000 +sui client call --function transfer --module task3-my_nft --package $PACKAGE_ID --args $NFT_ID $RECIPIENT_ID --gas-budget 20000000 sui client object $NFT_ID ``` diff --git a/mover/coconal/code/task3/my_nft/tests/my_nft_tests.move b/mover/coconal/code/task3/my_nft/tests/my_nft_tests.move index 5d3a60230..bcc79257d 100644 --- a/mover/coconal/code/task3/my_nft/tests/my_nft_tests.move +++ b/mover/coconal/code/task3/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = ::my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = ::task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git a/mover/cuijiawei123/code/my_nft/tests/my_nft_tests.move b/mover/cuijiawei123/code/my_nft/tests/my_nft_tests.move index 5d3a60230..bcc79257d 100644 --- a/mover/cuijiawei123/code/my_nft/tests/my_nft_tests.move +++ b/mover/cuijiawei123/code/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = ::my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = ::task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git a/mover/dcwon/code/task03/my_nft/sources/my_nft.move b/mover/dcwon/code/task03/my_nft/sources/my_nft.move index 153b9e9a4..de994f7b4 100644 --- a/mover/dcwon/code/task03/my_nft/sources/my_nft.move +++ b/mover/dcwon/code/task03/my_nft/sources/my_nft.move @@ -1,4 +1,4 @@ -/// Module: my_nft +/// Module: task3-my_nft module my_nft::my_nft { use sui::url::{Self, Url}; use std::string::{Self, String}; diff --git a/mover/digot-dream/code/task3/my_nft/sources/my_ntf.move b/mover/digot-dream/code/task3/my_nft/sources/my_ntf.move index 7ee459f0a..4f0cd9760 100644 --- a/mover/digot-dream/code/task3/my_nft/sources/my_ntf.move +++ b/mover/digot-dream/code/task3/my_nft/sources/my_ntf.move @@ -1,5 +1,5 @@ -/// Module: my_nft +/// Module: task3-my_nft module my_ntf::my_nft { use sui::url::{Self, Url}; diff --git a/mover/fantasyni/code/task3/my_nft/sources/my_nft.move b/mover/fantasyni/code/task3/my_nft/sources/my_nft.move index 71034c72c..575a2aa10 100644 --- a/mover/fantasyni/code/task3/my_nft/sources/my_nft.move +++ b/mover/fantasyni/code/task3/my_nft/sources/my_nft.move @@ -1,4 +1,4 @@ -/// Module: my_nft +/// Module: task3-my_nft module my_nft::justin_nft { use sui::url::{Self, Url}; use std::string; diff --git a/mover/fantasyni/code/task3/my_nft/tests/my_nft_tests.move b/mover/fantasyni/code/task3/my_nft/tests/my_nft_tests.move index da07bc923..b06fbe1f9 100644 --- a/mover/fantasyni/code/task3/my_nft/tests/my_nft_tests.move +++ b/mover/fantasyni/code/task3/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git a/mover/huzm99/code/task3/my_nft/sources/my_nft.move b/mover/huzm99/code/task3/my_nft/sources/my_nft.move index bc7fc65f1..466f54e63 100644 --- a/mover/huzm99/code/task3/my_nft/sources/my_nft.move +++ b/mover/huzm99/code/task3/my_nft/sources/my_nft.move @@ -1,4 +1,4 @@ -/// Module: my_nft +/// Module: task3-my_nft module my_nft::my_nft { use std::string::{utf8,String}; use sui::package; diff --git a/mover/huzm99/code/task3/my_nft/tests/my_nft_tests.move b/mover/huzm99/code/task3/my_nft/tests/my_nft_tests.move index 5d3a60230..bcc79257d 100644 --- a/mover/huzm99/code/task3/my_nft/tests/my_nft_tests.move +++ b/mover/huzm99/code/task3/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = ::my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = ::task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git a/mover/hwwang2/notes/task3.md b/mover/hwwang2/notes/task3.md index 102e0f3f1..47057893f 100644 --- a/mover/hwwang2/notes/task3.md +++ b/mover/hwwang2/notes/task3.md @@ -20,16 +20,16 @@ sui client publish --gas-budget=50000000 ## mint&transfer ```bash #铸造 -sui client call --function mint_to_sender --module my_nft --package 0xe4e1fb9a8bf5dc2017f7ca6d7f4181b1fe7067578495e2ef612d82f6ab87c510 --args "avatar1" "twitter avatar1" "https://pbs.twimg.com/profile_images/1769108278531821569/ZOQ0Mrx5_200x200.jpg" --gas-budget 50000000 +sui client call --function mint_to_sender --module task3-my_nft --package 0xe4e1fb9a8bf5dc2017f7ca6d7f4181b1fe7067578495e2ef612d82f6ab87c510 --args "avatar1" "twitter avatar1" "https://pbs.twimg.com/profile_images/1769108278531821569/ZOQ0Mrx5_200x200.jpg" --gas-budget 50000000 #查看object信息 sui client object 0x5f3697378f9fbb03eee8449bfe67ed9dbfd3a839a6c9fc66534c8cdfa89a8496 -sui client call --function mint_to_sender --module my_nft --package 0xe4e1fb9a8bf5dc2017f7ca6d7f4181b1fe7067578495e2ef612d82f6ab87c510 --args "avatar2" "twitter avatar2" "https://pbs.twimg.com/profile_images/1306422968680148993/PvueXOSO_normal.jpg" --gas-budget 50000000 +sui client call --function mint_to_sender --module task3-my_nft --package 0xe4e1fb9a8bf5dc2017f7ca6d7f4181b1fe7067578495e2ef612d82f6ab87c510 --args "avatar2" "twitter avatar2" "https://pbs.twimg.com/profile_images/1306422968680148993/PvueXOSO_normal.jpg" --gas-budget 50000000 #0x643e08ae93ad3656f127efe6323528010267edd0ba3b73759678ccfda32f052c # 把avatar2转给0x7b8e0864967427679b4e129f79dc332a885c6087ec9e187b53451a9006ee15f2 -sui client call --function transfer --module my_nft --package 0xe4e1fb9a8bf5dc2017f7ca6d7f4181b1fe7067578495e2ef612d82f6ab87c510 --args 0x643e08ae93ad3656f127efe6323528010267edd0ba3b73759678ccfda32f052c 0x7b8e0864967427679b4e129f79dc332a885c6087ec9e187b53451a9006ee15f2 --gas-budget 50000000 +sui client call --function transfer --module task3-my_nft --package 0xe4e1fb9a8bf5dc2017f7ca6d7f4181b1fe7067578495e2ef612d82f6ab87c510 --args 0x643e08ae93ad3656f127efe6323528010267edd0ba3b73759678ccfda32f052c 0x7b8e0864967427679b4e129f79dc332a885c6087ec9e187b53451a9006ee15f2 --gas-budget 50000000 # 查看归属 sui client object 0x643e08ae93ad3656f127efe6323528010267edd0ba3b73759678ccfda32f052c diff --git a/mover/june5753/code/task3/my_nft/sources/my_nft.move b/mover/june5753/code/task3/my_nft/sources/my_nft.move index fa81287c4..d910db06a 100644 --- a/mover/june5753/code/task3/my_nft/sources/my_nft.move +++ b/mover/june5753/code/task3/my_nft/sources/my_nft.move @@ -1,4 +1,4 @@ -/// Module: my_nft +/// Module: task3-my_nft module my_nft::my_nft { use std::string::{String,utf8}; use sui::table::{Self,Table}; @@ -92,6 +92,6 @@ module my_nft::my_nft { // mint中注意 mint_record中的id // https://suiscan.xyz/mainnet/object/0x519749e34e829531fa9f68405d416e3b4bc20bf36c36d4b39ee16f0da45cd6c6 - // sui client call --package 0x70bee25061b84faf1d03692ef5c678fc40ab99207f85255798632d9a5f7d6ead --module my_nft + // sui client call --package 0x70bee25061b84faf1d03692ef5c678fc40ab99207f85255798632d9a5f7d6ead --module task3-my_nft // --function mint --args 0x519749e34e829531fa9f68405d416e3b4bc20bf36c36d4b39ee16f0da45cd6c6 "JUNE5753 NFT" "https://avatars.githubusercontent.com/u/12596742?v=4" 0xba518d8c6db3e2b8b71b06af694198d56ce0e264a6d9c10ad782f7fd969a99c3 } diff --git a/mover/june5753/code/task3/my_nft/tests/my_nft_tests.move b/mover/june5753/code/task3/my_nft/tests/my_nft_tests.move index 5d3a60230..bcc79257d 100644 --- a/mover/june5753/code/task3/my_nft/tests/my_nft_tests.move +++ b/mover/june5753/code/task3/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = ::my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = ::task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git a/mover/rainbow/code/task3/tests/my_nft_tests.move b/mover/rainbow/code/task3/tests/my_nft_tests.move index 5d3a60230..bcc79257d 100644 --- a/mover/rainbow/code/task3/tests/my_nft_tests.move +++ b/mover/rainbow/code/task3/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = ::my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = ::task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git a/mover/refe123/code/task3/my_nft/tests/my_nft_tests.move b/mover/refe123/code/task3/my_nft/tests/my_nft_tests.move index da07bc923..b06fbe1f9 100644 --- a/mover/refe123/code/task3/my_nft/tests/my_nft_tests.move +++ b/mover/refe123/code/task3/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git "a/mover/suiceber/co-learn-2411/images/\347\254\254\344\270\211\345\221\250\350\257\276\347\250\213\345\255\246\344\271\240.png" "b/mover/suiceber/co-learn-2411/images/\347\254\254\344\270\211\345\221\250\350\257\276\347\250\213\345\255\246\344\271\240.png" new file mode 100644 index 000000000..7b37b8951 Binary files /dev/null and "b/mover/suiceber/co-learn-2411/images/\347\254\254\344\270\211\345\221\250\350\257\276\347\250\213\345\255\246\344\271\240.png" differ diff --git a/mover/suiceber/co-learn-2411/readme.md b/mover/suiceber/co-learn-2411/readme.md index 590502570..34bbc58d9 100644 --- a/mover/suiceber/co-learn-2411/readme.md +++ b/mover/suiceber/co-learn-2411/readme.md @@ -12,7 +12,7 @@ - [x] 第一周:![学习记录截图](./images/第一周课程学习.png) - [x] 第二周:![学习记录截图](./images/第二周课程学习.png) -- [] 第三周:![学习记录截图](./images/你的图片地址) +- [x] 第三周:![学习记录截图](./images/第三周课程学习.png) - [] 第四周:![学习记录截图](./images/你的图片地址) ## 参加直播答疑 diff --git a/mover/suiceber/code/task2/suiceber_coin/Move.lock b/mover/suiceber/code/task2/suiceber_coin/Move.lock new file mode 100644 index 000000000..486968730 --- /dev/null +++ b/mover/suiceber/code/task2/suiceber_coin/Move.lock @@ -0,0 +1,34 @@ +# @generated by Move, please check-in and do not edit manually. + +[move] +version = 3 +manifest_digest = "8CF6290DDB30293F6DE60807D49DBDF6A4FC5133F02747A12BAD1406E3A07F97" +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.37.1" +edition = "2024.beta" +flavor = "sui" + +[env] + +[env.mainnet] +chain-id = "35834a8a" +original-published-id = "0x1d7b599b6057756f0a080cbae63637f4960d4dbfc34b084d0984475e298ad95f" +latest-published-id = "0x1d7b599b6057756f0a080cbae63637f4960d4dbfc34b084d0984475e298ad95f" +published-version = "1" diff --git a/mover/suiceber/code/task2/suiceber_coin/Move.toml b/mover/suiceber/code/task2/suiceber_coin/Move.toml new file mode 100644 index 000000000..1704dbcff --- /dev/null +++ b/mover/suiceber/code/task2/suiceber_coin/Move.toml @@ -0,0 +1,37 @@ +[package] +name = "suiceber_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] +suiceber_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/suiceber/code/task2/suiceber_coin/sources/suiceber_coin.move b/mover/suiceber/code/task2/suiceber_coin/sources/suiceber_coin.move new file mode 100644 index 000000000..1a5cfce6d --- /dev/null +++ b/mover/suiceber/code/task2/suiceber_coin/sources/suiceber_coin.move @@ -0,0 +1,47 @@ +module suiceber_coin::suiceber_coin { + use sui::coin::{Self, Coin, TreasuryCap}; + use sui::url::{Self, Url}; + + public struct SUICEBER_COIN has drop {} + + fun init( + witness: SUICEBER_COIN, + ctx: &mut TxContext + ) { + let (treasury_cap, metadata) = coin::create_currency( + witness, + 9, + b"SUICEBER", + b"SUICEBER_COIN", + b"Suiceber Coin", + option::some( + url::new_unsafe_from_bytes( + b"https://avatars.githubusercontent.com/u/182899206?v=4&size=64" + ) + ), + 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/suiceber/code/task2/suiceber_coin/tests/suiceber_coin_tests.move b/mover/suiceber/code/task2/suiceber_coin/tests/suiceber_coin_tests.move new file mode 100644 index 000000000..2c32cdbe9 --- /dev/null +++ b/mover/suiceber/code/task2/suiceber_coin/tests/suiceber_coin_tests.move @@ -0,0 +1,18 @@ +/* +#[test_only] +module suiceber_coin::suiceber_coin_tests; +// uncomment this line to import the module +// use suiceber_coin::suiceber_coin; + +const ENotImplemented: u64 = 0; + +#[test] +fun test_suiceber_coin() { + // pass +} + +#[test, expected_failure(abort_code = ::suiceber_coin::suiceber_coin_tests::ENotImplemented)] +fun test_suiceber_coin_fail() { + abort ENotImplemented +} +*/ diff --git a/mover/suiceber/code/task2/suiceber_faucet_coin/Move.lock b/mover/suiceber/code/task2/suiceber_faucet_coin/Move.lock new file mode 100644 index 000000000..f27870364 --- /dev/null +++ b/mover/suiceber/code/task2/suiceber_faucet_coin/Move.lock @@ -0,0 +1,34 @@ +# @generated by Move, please check-in and do not edit manually. + +[move] +version = 3 +manifest_digest = "A26535F879BC4FFECC64944373A9230663D3E6304C7405BBBB73BA82D9FE5070" +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.37.1" +edition = "2024.beta" +flavor = "sui" + +[env] + +[env.mainnet] +chain-id = "35834a8a" +original-published-id = "0xf5f1f09b51d4a7b7e654cb044a63fd0270b89acbb94f72e013aeb10d6409aba8" +latest-published-id = "0xf5f1f09b51d4a7b7e654cb044a63fd0270b89acbb94f72e013aeb10d6409aba8" +published-version = "1" diff --git a/mover/suiceber/code/task2/suiceber_faucet_coin/Move.toml b/mover/suiceber/code/task2/suiceber_faucet_coin/Move.toml new file mode 100644 index 000000000..14a0dfefe --- /dev/null +++ b/mover/suiceber/code/task2/suiceber_faucet_coin/Move.toml @@ -0,0 +1,37 @@ +[package] +name = "suiceber_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] +suiceber_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/suiceber/code/task2/suiceber_faucet_coin/sources/suiceber_faucet_coin.move b/mover/suiceber/code/task2/suiceber_faucet_coin/sources/suiceber_faucet_coin.move new file mode 100644 index 000000000..65bab33f2 --- /dev/null +++ b/mover/suiceber/code/task2/suiceber_faucet_coin/sources/suiceber_faucet_coin.move @@ -0,0 +1,46 @@ +module suiceber_faucet_coin::suiceber_faucet_coin { + use sui::coin::{Self, Coin, TreasuryCap}; + use sui::url::{Self, Url}; + + public struct SUICEBER_FAUCET_COIN has drop {} + + fun init( + witness: SUICEBER_FAUCET_COIN, + ctx: &mut TxContext + ) { + let (treasury_cap, metadata) = coin::create_currency( + witness, + 9, + b"SUICEBER FAUCE", + b"SUICEBER_FAUCET_COIN", + b"Suiceber Faucet Coin", + option::some( + url::new_unsafe_from_bytes( + b"https://avatars.githubusercontent.com/u/182899206?v=4&size=64" + ) + ), + 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); + + } +} + + diff --git a/mover/suiceber/code/task2/suiceber_faucet_coin/tests/suiceber_faucet_coin_tests.move b/mover/suiceber/code/task2/suiceber_faucet_coin/tests/suiceber_faucet_coin_tests.move new file mode 100644 index 000000000..7d431b222 --- /dev/null +++ b/mover/suiceber/code/task2/suiceber_faucet_coin/tests/suiceber_faucet_coin_tests.move @@ -0,0 +1,18 @@ +/* +#[test_only] +module suiceber_faucet_coin::suiceber_faucet_coin_tests; +// uncomment this line to import the module +// use suiceber_faucet_coin::suiceber_faucet_coin; + +const ENotImplemented: u64 = 0; + +#[test] +fun test_suiceber_faucet_coin() { + // pass +} + +#[test, expected_failure(abort_code = ::suiceber_faucet_coin::suiceber_faucet_coin_tests::ENotImplemented)] +fun test_suiceber_faucet_coin_fail() { + abort ENotImplemented +} +*/ diff --git a/mover/suiceber/readme.md b/mover/suiceber/readme.md index abac531bb..0dcd09a5e 100644 --- a/mover/suiceber/readme.md +++ b/mover/suiceber/readme.md @@ -19,11 +19,11 @@ - [x] package id 在 scan上的查看截图:![Scan截图](./images/Scan截图.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 : 0x1d7b599b6057756f0a080cbae63637f4960d4dbfc34b084d0984475e298ad95f +- [X] Faucet package id : 0xf5f1f09b51d4a7b7e654cb044a63fd0270b89acbb94f72e013aeb10d6409aba8 +- [x] 转账 `My Coin` hash:BDHD4qBxvArNi8ZFGJiBL8BUS1q4ig7Bto3RkRrnG2Re +- [X] `Faucet Coin` address1 mint hash:Bcf5ziocvHMYPSeB6dkpomafnuY51wMqPGwCtpHQ11YZ +- [X] `Faucet Coin` address2 mint hash:3zyE62rihornP8kLHHdmc1URfyHifYf7RvuNbLaQYuoc ## 03 move NFT - [x] nft package id :0x7457fc74ff95c140b4dd4f38360f7b3968d7fd83bd3cb7a96a5e2d1d930a91b0 diff --git a/mover/web3CL/code/task3/my_nft/tests/my_nft_tests.move b/mover/web3CL/code/task3/my_nft/tests/my_nft_tests.move index 5d3a60230..bcc79257d 100644 --- a/mover/web3CL/code/task3/my_nft/tests/my_nft_tests.move +++ b/mover/web3CL/code/task3/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = ::my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = ::task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented } diff --git a/mover/xianglispider/code/task3/my_nft/tests/my_nft_tests.move b/mover/xianglispider/code/task3/my_nft/tests/my_nft_tests.move index 5d3a60230..bcc79257d 100644 --- a/mover/xianglispider/code/task3/my_nft/tests/my_nft_tests.move +++ b/mover/xianglispider/code/task3/my_nft/tests/my_nft_tests.move @@ -1,8 +1,8 @@ /* #[test_only] -module my_nft::my_nft_tests { +module task3-my_nft::my_nft_tests { // uncomment this line to import the module - // use my_nft::my_nft; + // use task3-my_nft::task3-my_nft; const ENotImplemented: u64 = 0; @@ -11,7 +11,7 @@ module my_nft::my_nft_tests { // pass } - #[test, expected_failure(abort_code = ::my_nft::my_nft_tests::ENotImplemented)] + #[test, expected_failure(abort_code = ::task3-my_nft::my_nft_tests::ENotImplemented)] fun test_my_nft_fail() { abort ENotImplemented }