-
Notifications
You must be signed in to change notification settings - Fork 856
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1253 from dongfang223/task
task1
- Loading branch information
Showing
7 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
mover/dongfang223/code/task1/hello_dongfang223/sources/hello_move.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
/// Module: hello_move | ||
module hello_move::hello_move { | ||
} | ||
*/ | ||
module hello_move::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"move"), | ||
}; | ||
transfer(hello_move, sender(ctx)); | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
mover/dongfang223/code/task1/hello_dongfang223/tests/hello_move_tests.move
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/* | ||
#[test_only] | ||
module hello_move::hello_move_tests { | ||
// uncomment this line to import the module | ||
// use hello_move::hello_move; | ||
const ENotImplemented: u64 = 0; | ||
#[test] | ||
fun test_hello_move() { | ||
// pass | ||
} | ||
#[test, expected_failure(abort_code = ::hello_move::hello_move_tests::ENotImplemented)] | ||
fun test_hello_move_fail() { | ||
abort ENotImplemented | ||
} | ||
} | ||
*/ |
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
## 基本信息 | ||
- Sui钱包地址: `0xd28096207c68280dbfac23f534f6ea5e34dbec93995da3f803316444e1680b59` | ||
> 首次参与需要完成第一个任务注册好钱包地址才被合并,并且后续学习奖励会打入这个地址 | ||
- github: `dongfang223` | ||
|
||
## 个人简介 | ||
- 工作经验: 5年 | ||
- 技术栈: `Rust` `C++` `C#` | ||
> 重要提示 请认真写自己的简介 | ||
- 多年web2开发经验,对Move特别感兴趣,想通过Move入门区块链 | ||
- 联系方式: tg: `[xxx](https://t.me/dongfang223)` | ||
|
||
## 任务 | ||
|
||
## 01 hello move | ||
- [] Sui cli version: 1.29.2-09db80adf1af | ||
- [] Sui钱包截图: ![Sui钱包截图](./images/1.png) | ||
- [] package id: 0x18070381a954ad29e199b8a9293cbad22767111cf9f9cb10893f1c159734f562 | ||
- [] package id 在 scan上的查看截图:![Scan截图](./images/2.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 : |