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

完成task3 #1978

Closed
wants to merge 3 commits 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
6 changes: 3 additions & 3 deletions mover/0xAiboo/code/task2/tests/task2_tests.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests {
module my_first_sui_dapp::task2_tests {
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ module task2::task2_tests {
// pass
}

#[test, expected_failure(abort_code = ::task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = ::my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
2 changes: 1 addition & 1 deletion mover/5255b64/code/task2/sources/faucet_coin_demo.move
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Module: task2
/// Module: my_first_sui_dapp
module task2::faucet_coin_demo {
// use std::option;
use sui::coin::{Self, Coin, TreasuryCap};
Expand Down
2 changes: 1 addition & 1 deletion mover/5255b64/code/task2/sources/my_coin_demo.move
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Module: task2
/// Module: my_first_sui_dapp
module task2::my_coin_demo {
// use std::option;
use sui::coin::{Self, Coin, TreasuryCap};
Expand Down
6 changes: 3 additions & 3 deletions mover/5255b64/code/task2/tests/task2_tests.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests {
module my_first_sui_dapp::task2_tests {
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ module task2::task2_tests {
// pass
}

#[test, expected_failure(abort_code = task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
2 changes: 1 addition & 1 deletion mover/5255b64/code/task3/sources/nft_5255b64.move
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Module: task2
/// Module: my_first_sui_dapp
module task3::nft_5255b64 {
use std::string;
use sui::object::UID;
Expand Down
6 changes: 3 additions & 3 deletions mover/AlwenXX/code/task2/tests/task2_tests.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests {
module my_first_sui_dapp::task2_tests {
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ module task2::task2_tests {
// pass
}

#[test, expected_failure(abort_code = ::task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = ::my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
6 changes: 3 additions & 3 deletions mover/ArchieR7/code/task2/tests/task2_tests.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests {
module my_first_sui_dapp::task2_tests {
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ module task2::task2_tests {
// pass
}

#[test, expected_failure(abort_code = ::task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = ::my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
4 changes: 2 additions & 2 deletions mover/CY-missinged/code/task2/sources/task2.move
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
/// Module: task2
module task2::task2 {
/// Module: my_first_sui_dapp
module my_first_sui_dapp::my_first_sui_dapp {

}
*/
6 changes: 3 additions & 3 deletions mover/CY-missinged/code/task2/tests/task2_tests.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests {
module my_first_sui_dapp::task2_tests {
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ module task2::task2_tests {
// pass
}

#[test, expected_failure(abort_code = task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
6 changes: 3 additions & 3 deletions mover/Draculabo/code/task2/tests/task2_tests.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests {
module my_first_sui_dapp::task2_tests {
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ module task2::task2_tests {
// pass
}

#[test, expected_failure(abort_code = ::task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = ::my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
2 changes: 1 addition & 1 deletion mover/Flopdian/code/task2/sources/task2_coin.move
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Module: task2
/// Module: my_first_sui_dapp
module task2::flopdian_coin {
use sui::coin::{Self, Coin, TreasuryCap};
use sui::url::{Self,Url};
Expand Down
2 changes: 1 addition & 1 deletion mover/Flopdian/code/task2/sources/task2_faucet.move
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// Module: task2
/// Module: my_first_sui_dapp
module task2::flopdian_faucet_coin {
use sui::coin::{Self, Coin, TreasuryCap};
use sui::url::{Self,Url};
Expand Down
6 changes: 3 additions & 3 deletions mover/GreenJoee/code/task2/tests/task2_tests.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests;
module my_first_sui_dapp::task2_tests;
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ fun test_task2() {
// pass
}

#[test, expected_failure(abort_code = ::task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = ::my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
6 changes: 3 additions & 3 deletions mover/JintolChan/code/task2/tests/task2_tests.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests {
module my_first_sui_dapp::task2_tests {
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ module task2::task2_tests {
// pass
}

#[test, expected_failure(abort_code = ::task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = ::my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
6 changes: 3 additions & 3 deletions mover/JoJo-Ben/code/task2/tests/task2_tests.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests {
module my_first_sui_dapp::task2_tests {
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ module task2::task2_tests {
// pass
}

#[test, expected_failure(abort_code = ::task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = ::my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
6 changes: 3 additions & 3 deletions mover/JonathanSimon123/code/task2/tests/task2_tests.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests {
module my_first_sui_dapp::task2_tests {
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ module task2::task2_tests {
// pass
}

#[test, expected_failure(abort_code = ::task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = ::my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
2 changes: 1 addition & 1 deletion mover/LBiyou/code/task2/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Sui = { git = "https://gitee.com/mystenLabs/sui.git", subdir = "crates/sui-frame

[addresses]
task2 = "0x0"
# task2 = "0x5ab9138caf5feda50e25691b9748c0a53338e5e4d00ff6ffbe3ea7ac5afe45d5"
# my_first_sui_dapp = "0x5ab9138caf5feda50e25691b9748c0a53338e5e4d00ff6ffbe3ea7ac5afe45d5"

# Named addresses will be accessible in Move as `@name`. They're also exported:
# for example, `std = "0x1"` is exported by the Standard Library.
Expand Down
6 changes: 3 additions & 3 deletions mover/LBiyou/code/task2/tests/task2_tests.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests {
module my_first_sui_dapp::task2_tests {
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ module task2::task2_tests {
// pass
}

#[test, expected_failure(abort_code = task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
6 changes: 3 additions & 3 deletions mover/Lahepard/code/task2/tests/task2_tests.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests {
module my_first_sui_dapp::task2_tests {
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ module task2::task2_tests {
// pass
}

#[test, expected_failure(abort_code = ::task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = ::my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
6 changes: 3 additions & 3 deletions mover/MartinYeung5/code/task2/tests/task2_tests.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests {
module my_first_sui_dapp::task2_tests {
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ module task2::task2_tests {
// pass
}

#[test, expected_failure(abort_code = task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
2 changes: 1 addition & 1 deletion mover/Mulander-J/code/task2/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Sui = { git = "https://gitee.com/MystenLabs/sui.git", subdir = "crates/sui-frame
# Override = { local = "../conflicting/version", override = true }

[addresses]
# task2 = "0x0"
# my_first_sui_dapp = "0x0"
task2 = "0x052d69241b3ded4f1455dd7163814ac4472e589da7641764892f918f6f167f03"

# Named addresses will be accessible in Move as `@name`. They're also exported:
Expand Down
8 changes: 4 additions & 4 deletions mover/Mulander-J/notes/task002.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
部署两个Coins合约

```bash
task2 git:(main) ✗ sui client envs;sui client addresses;sui client gas
my_first_sui_dapp git:(main) ✗ sui client envs;sui client addresses;sui client gas
╭─────────┬─────────────────────────────────────┬────────╮
│ alias │ url │ active │
├─────────┼─────────────────────────────────────┼────────┤
Expand All @@ -33,11 +33,11 @@
│ 0x2f6c8718a9f7c8438feab4e507532599c81bb2d9bfd3a4775da47026bd0b0d20 │ 100000000 │ 0.10 │
│ 0xa0b2789d0ce4ef924d3a88d233979b8b98101f0818670050a85ad8533a5a89ec │ 6970360 │ 0.00 │
╰────────────────────────────────────────────────────────────────────┴────────────────────┴──────────────────╯
task2 git:(main) ✗ sui client publish
my_first_sui_dapp git:(main) ✗ sui client publish
UPDATING GIT DEPENDENCY https://github.com/MystenLabs/sui.git
INCLUDING DEPENDENCY Sui
INCLUDING DEPENDENCY MoveStdlib
BUILDING task2
BUILDING my_first_sui_dapp
Successfully verified dependencies on-chain against source.
Transaction Digest: mbBAaj5BviCuJa6UBBgorhiRZVKTYhqvQHBDXeiJ8ov
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
Expand Down Expand Up @@ -229,7 +229,7 @@ Transaction Digest: mbBAaj5BviCuJa6UBBgorhiRZVKTYhqvQHBDXeiJ8ov
Transfer MyCoin to `0x7b8e0864967427679b4e129f79dc332a885c6087ec9e187b53451a9006ee15f2`

```bash
task2 git:(main) ✗ sui client call --function mint --module mulander_coin --package 0x052d69241b3ded4f1455dd7163814ac4472e589da7641764892f918f6f167f03 --args 0x4d7298be521749e87e18cc341092ff2cfe89bc4e6b78144977b62490c329c5af 100000000 0x7b8e0864967427679b4e129f79dc332a885c6087ec9e187b53451a9006ee15f2 --gas-budget 74958120
my_first_sui_dapp git:(main) ✗ sui client call --function mint --module mulander_coin --package 0x052d69241b3ded4f1455dd7163814ac4472e589da7641764892f918f6f167f03 --args 0x4d7298be521749e87e18cc341092ff2cfe89bc4e6b78144977b62490c329c5af 100000000 0x7b8e0864967427679b4e129f79dc332a885c6087ec9e187b53451a9006ee15f2 --gas-budget 74958120
Transaction Digest: 75Q61r9pmedw4GUHnGJZqBjtjFQo4zZHyenpepsaqW1z
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Transaction Data │
Expand Down
6 changes: 3 additions & 3 deletions mover/Nauxscript/code/task2/tests/code.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests {
module my_first_sui_dapp::task2_tests {
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ module task2::task2_tests {
// pass
}

#[test, expected_failure(abort_code = ::task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = ::my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
6 changes: 3 additions & 3 deletions mover/Ocrand/code/task2/tests/task2_tests.move
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
#[test_only]
module task2::task2_tests {
module my_first_sui_dapp::task2_tests {
// uncomment this line to import the module
// use task2::task2;
// use my_first_sui_dapp::my_first_sui_dapp;

const ENotImplemented: u64 = 0;

Expand All @@ -11,7 +11,7 @@ module task2::task2_tests {
// pass
}

#[test, expected_failure(abort_code = task2::task2_tests::ENotImplemented)]
#[test, expected_failure(abort_code = my_first_sui_dapp::task2_tests::ENotImplemented)]
fun test_task2_fail() {
abort ENotImplemented
}
Expand Down
2 changes: 1 addition & 1 deletion mover/Pithos23/code/task4/Move.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ task4 = "0x0"
# 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" }
#Local = { local = "/Users/xx/Documents/Web3/tintin-tasks/task2" }
#Local = { local = "/Users/xx/Documents/Web3/tintin-tasks/my_first_sui_dapp" }

[dev-addresses]
# The dev-addresses section allows overwriting named addresses for the `--test`
Expand Down
Loading