Skip to content

Commit

Permalink
Merge pull request #1 from zy88866/feature-zy-study
Browse files Browse the repository at this point in the history
Feature zy study
  • Loading branch information
zy88866 authored Nov 16, 2024
2 parents c5f9475 + 4cf6953 commit b8b1139
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 0 deletions.
40 changes: 40 additions & 0 deletions mover/zy88866/code/task1/Move.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# @generated by Move, please check-in and do not edit manually.

[move]
version = 3
manifest_digest = "29790E85A2CADD06A047AF5D7FCA7D07CECE69BFC5A505FF9089804481DECCEA"
deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082"
dependencies = [
{ id = "Sui", name = "Sui" },
]

[[move.package]]
id = "MoveStdlib"
source = { git = "https://gitee.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/move-stdlib" }

[[move.package]]
id = "Sui"
source = { git = "https://gitee.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.devnet]
chain-id = "0fc07bbe"
original-published-id = "0xe672171fa25f6c2b2e01e9ebccbab56f88efca8f0179b210c6584e7878490398"
latest-published-id = "0xe672171fa25f6c2b2e01e9ebccbab56f88efca8f0179b210c6584e7878490398"
published-version = "1"

[env.testnet]
chain-id = "4c78adac"
original-published-id = "0x4e6ea58130b1c64aa25967f10659f1af865c8c2338d724cadb920f565bdfae26"
latest-published-id = "0x4e6ea58130b1c64aa25967f10659f1af865c8c2338d724cadb920f565bdfae26"
published-version = "1"
13 changes: 13 additions & 0 deletions mover/zy88866/code/task1/Move.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[package]
name = "task1"
version = "1.0.0"
edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move

[dependencies]
Sui = { git = "https://gitee.com/MystenLabs/sui.git", subdir = "crates/sui-framework/packages/sui-framework", rev = "framework/testnet" }

[addresses]
task1 = "0x0"



23 changes: 23 additions & 0 deletions mover/zy88866/code/task1/sources/task1.move
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
/// Module: task1
module task1::hello;
*/
module task1::hello{

use std::string;

public struct HelloWorldObject has key, store {
id: UID,
text: string::String
}

#[lint_allow(self_transfer)]
public fun mint(ctx: &mut TxContext) {
let object = HelloWorldObject {
id: object::new(ctx),
text: string::utf8(b"Hello zy88866")
};
transfer::public_transfer(object, tx_context::sender(ctx));
}

}
18 changes: 18 additions & 0 deletions mover/zy88866/code/task1/tests/task1_tests.move
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
#[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
}
*/
Binary file added mover/zy88866/images/scan.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added mover/zy88866/images/wallet.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions mover/zy88866/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
## 基本信息
- Sui钱包地址: `0x5f5fdde75def86cf3449cd9f8e5b33d87d34bbd3080f892c1af185aec0bf3797`
> 首次参与需要完成第一个任务注册好钱包地址才被合并,并且后续学习奖励会打入这个地址
- github: `zy88866`

## 个人简介
- 工作经验: 5年
- 技术栈: `Java` `Solidity` `Vue`
- 5年web2开发经验,1年智能合约开发经验 对Move特别感兴趣,想深入学习Move
- 联系方式: tg: `@zy88686`

## 任务

## 01 hello move
- [] Sui cli version: sui 1.37.1
- [] Sui钱包截图: ![Sui钱包截图](./images/wallet.png)
- [] package id: 0x4e6ea58130b1c64aa25967f10659f1af865c8c2338d724cadb920f565bdfae26
- [] package id 在 scan上的查看截图:![Scan截图](./images/scan.png)


### 02 move coin



## 03 move NFT


### 04 Move Game



### 05 Move Swap



## 06 SDK PTB


## 07 Move CTF Check In


## 08 Move CTF Lets Move

0 comments on commit b8b1139

Please sign in to comment.