Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

完成task2+第三周课程学习__共学营 #2060

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions mover/1pzq/code/task3/my_nft/sources/my_nft.move
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/// Module: my_nft
module my_nft::my_nft {
/// Module: task3-my_nft
module task3-my_nft::task3-my_nft {

}
*/
6 changes: 3 additions & 3 deletions mover/1pzq/code/task3/my_nft/tests/my_nft_tests.move
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion mover/Ch1hiro/code/task3/my_nft/sources/my_nft.move
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down
6 changes: 3 additions & 3 deletions mover/Ch1hiro/code/task3/my_nft/tests/my_nft_tests.move
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions mover/ChenGongWei/code/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```

```
Expand All @@ -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
```


Expand Down
6 changes: 3 additions & 3 deletions mover/July-NANA/code/my_nft/tests/my_nft_tests.move
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/// Module: my_nft
module my_nft::my_nft {
/// Module: task3-my_nft
module task3-my_nft::task3-my_nft {

}
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

/// Module: my_nft
/// Module: task3-my_nft
module PhigrosX_NFT::PhigrosX_nft {

use std::string;
Expand Down
2 changes: 1 addition & 1 deletion mover/Sou1ReaPer/code/task3/my_nft/sources/my_nft.move
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
6 changes: 3 additions & 3 deletions mover/Sou1ReaPer/code/task3/my_nft/tests/my_nft_tests.move
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions mover/Sou1ReaPer/notes/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
```shell
sui client call --package <PACKAGE> --module <MODULE> --function <FUNCTION> --args <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
```

6 changes: 3 additions & 3 deletions mover/a-sky-person/code/task_3/my_nft/tests/my_nft_tests.move
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions mover/a981008/notes/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

Expand Down
6 changes: 3 additions & 3 deletions mover/coconal/code/task3/my_nft/tests/my_nft_tests.move
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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
}
Expand Down
6 changes: 3 additions & 3 deletions mover/cuijiawei123/code/my_nft/tests/my_nft_tests.move
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion mover/dcwon/code/task03/my_nft/sources/my_nft.move
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
2 changes: 1 addition & 1 deletion mover/digot-dream/code/task3/my_nft/sources/my_ntf.move
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

/// Module: my_nft
/// Module: task3-my_nft
module my_ntf::my_nft {

use sui::url::{Self, Url};
Expand Down
2 changes: 1 addition & 1 deletion mover/fantasyni/code/task3/my_nft/sources/my_nft.move
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Module: my_nft
/// Module: task3-my_nft
module my_nft::justin_nft {
use sui::url::{Self, Url};
use std::string;
Expand Down
6 changes: 3 additions & 3 deletions mover/fantasyni/code/task3/my_nft/tests/my_nft_tests.move
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion mover/huzm99/code/task3/my_nft/sources/my_nft.move
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Module: my_nft
/// Module: task3-my_nft
module my_nft::my_nft {
use std::string::{utf8,String};
use sui::package;
Expand Down
6 changes: 3 additions & 3 deletions mover/huzm99/code/task3/my_nft/tests/my_nft_tests.move
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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
}
Expand Down
6 changes: 3 additions & 3 deletions mover/hwwang2/notes/task3.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions mover/june5753/code/task3/my_nft/sources/my_nft.move
Original file line number Diff line number Diff line change
@@ -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};
Expand Down Expand Up @@ -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
}
6 changes: 3 additions & 3 deletions mover/june5753/code/task3/my_nft/tests/my_nft_tests.move
Original file line number Diff line number Diff line change
@@ -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;

Expand All @@ -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
}
Expand Down
Loading