Skip to content

Commit

Permalink
Merge branch 'move-cn:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
uvd authored Jul 31, 2024
2 parents ba5955d + 207e4ac commit 39ce15b
Show file tree
Hide file tree
Showing 407 changed files with 20,528 additions and 303 deletions.
17 changes: 0 additions & 17 deletions .github/pr-commenter.yml

This file was deleted.

20 changes: 14 additions & 6 deletions .github/workflows/pr-commenter.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
name: "PR Commenter"
on:
- pull_request_target
pull_request_target:

jobs:
pr-comment:
pr:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- uses: exercism/[email protected]
- uses: mshick/add-pr-comment@v2
if: always()
with:
github-token: "${{ github.token }}"
config-file: ".github/pr-commenter.yml"
message: |
**必须加入社区发出PR才会被合并, 超过一周不发的默认放弃奖励*
- QQ群: 79489587
- TG群: [Move中文](https://t.me/move_cn)

message-failure: |
Uh oh!
59 changes: 15 additions & 44 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,62 +1,33 @@
# letsmove
## letsmove
Let's Move 一项学Move获得SUI的激励计划,鼓励更多的人学习Move语言

## 如何参与
- 复制 `mover` 目录下的 `001` 并且用自己的 `github id` 命名复制的目录
-`readme.md` 里面填写个人信息 后面的任务模板暂时不管
- 提交PR
- 必须加入社区群发出PR 才会被合并
## 带奖励的学习任务
[学习任务](./task)

## 社区 & 问答
- [move中文 TG](https://t.me/move_cn)
- QQ群: 79489587

## bootcamp视频
| 期数 | 视频 | 源码 |
|:-----------------|-------------------------------------------------|:----------------------------------------:|
| 2024年4-6月 TinTin | [B站](https://www.bilibili.com/video/BV1Rm42177Kx) | [课程源码](https://github.com/move-cn/tintin-bootcamp) |

## 如何完成任务并获取奖励
- 在自己`github id`目录的 readme.md 对应的任务列表填写完成信息
- 提交PR 如果只完成 task 1 用 `完成 task 1` 取名 完成多个 用 `完成 task 1 2 3` 等取名
- 审核任务完成会把Sui打入 `readme.md` 提供的Sui地址

## 重要提醒
- 必须包含作业源代码
- task 1 必须包含自己的`github id` 也就是 hello `github id`
- task 2 必须是自己 `github id` 开头的Coin名字,水龙头的Coin是 `github id` + `Faucet`
- task 3 NFT必须是自己 github 的头像作为图片
- task 4 的game 必须包含自己的 `github id`的元素, 必须包含随机数,必须用task2的 `Faucet Coin`
- task 5 swap 必须是 swap 自己发行的 task2 两个 Coin的互换,包名必须是自己的`github id`
- task 6 必须在一个PTB内完成三步,必须包含当前时间的因子,必须用dapp-kit


## 奖励明细 请仔细阅读要求

| 任务 | 名称 | 人民币等值Token | 说明 |
|:-------------------------------------------|-------------------|:----------:|:-----------------------|
| [task 1](task/01.hello_move.md) | hello move | ¥20 | 完成第一个合约部署上链 |
| [task 2](task/02.move_coin.md) | move coin | ¥20 | 完成Coin协议学习,并发布两个Coin上链 |
| [task 3](task/03.move_nft.md) | move nft | ¥20 | 完成NFT的学习,并发布NFT上链 |
| [task 4](task/04.move_game.md) | move game | ¥20 | 完成链上游戏学习,并上链交互 |
| [task 5](task/05.move_swap.md) | move swap | ¥20 | 完成Swap学习,并上链交互 |
| [task 6](task/06.SDK_PTB_NAVI.md) | sdk ptb | ¥20(NAVX) | 完成SDK学习,并用SDK完成链上交互 |
| [task 7](task/07.move_ctf_check_in.md) | move ctf check in | ¥20 | 完成move ctf check in |
| [task 8](task/08.move_ctf_lets_move.md) | move ctf pow | ¥20 | 完成move ctf pow |
| [defi](https://dacade.org/communities/sui) | defi | 35SUI | 完成Defi学习挑战 |



## 学习资料

[学习路径](learning_map.md)

### 书籍
| 书名 | 中文 | 英文 | 配套视频 |
|:--------------------|-------------------------------------------------|:----------------------------------------------------:|:---------------------------------------------------------:|
| Move Book | [中文](https://move.sui-book.com/index.html) | [英文](https://move-book.com/) | |
| Move Reference | [中文](https://reference.sui-book.com/index.html) | [英文](https://move-book.com/reference/) | |
| Move 导论 | [中文](https://intro-zh.sui-book.com/) | [Sui Move Intro Course](https://intro.sui-book.com/) | [bilibili](https://www.bilibili.com/video/BV1RY411v7YU) [Youtube](https://www.youtube.com/watch?v=lZHjmo2ngu0) |
| Let's Move Sui | [中文](https://movesui.sui-book.com/) | [let's move](https://letsmovesui.com/) | |
| Sui Book | [中文](https://sui-book.com) | | |
| Sui Move by Example | [中文](https://examples.sui-book.com/) | [Sui Move by Example](https://examples.sui.io/) | |
| Move Book | [中文](https://move.sui-book.com/index.html) | [英文](https://move-book.com/) | |
| Move Reference | [中文](https://reference.sui-book.com/index.html) | [英文](https://move-book.com/reference/) | |
| Let's Move Sui | [中文](https://movesui.sui-book.com/) | [let's move](https://letsmovesui.com/) | |
| 轻松入门Move | [轻松入门Move](https://easy.sui-book.com/) | | |
| 轻松入门Move | [轻松入门Move](https://easy.sui-book.com/) | | |
| Move Master | [中文](https://master.sui-book.com/) | [move master](https://metaschool.so/sui) | |
| move castle | [中文](https://movecastle.sui-book.com/) | [move castle](https://learn.movecastle.info/courses/move-on-sui) | |

[学习路径](learning_map.md)

### 文档
- [官方文档](https://docs.sui.io/)
Expand Down
Binary file added mover/001/scan.jpg
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/11532d/images/package id.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/11532d/images/sui钱包.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions mover/11532d/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
## 基本信息
- Sui钱包地址: `0xe15e4705e1fbfbc131bb737df1ebdb6755f7c433724793513041d8946df13448`
> 首次参与需要完成第一个任务注册好钱包地址才被合并,并且后续学习奖励会打入这个地址
- github: `11532d`

## 个人简介
- 工作经验: 2年
- 技术栈: `JAVA`
- 多年大学教书育人、误人子弟、为人师婊
- 联系方式: Discord: `jokers1069`

## 任务

## 01 hello move
- [] Sui cli version:sui 1.28.4-fc0623927416
- [] Sui钱包截图: ![Sui钱包截图](images\sui钱包.png)
- [] package id: 0x40d6176f07920442d66daa3b7bc7ce6639cf35823074cf79dc618e2d422fc6e4
- [] package id 在 scan上的查看截图:![Scan截图](images\package id.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 :
34 changes: 34 additions & 0 deletions mover/11532d/task1/Move.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# @generated by Move, please check-in and do not edit manually.

[move]
version = 2
manifest_digest = "23C730475A68F1E6BEDDB2CD78A3EB131C4A59425643F732B34CA8F439B08D68"
deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082"
dependencies = [
{ name = "Sui" },
]

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

[[move.package]]
name = "Sui"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/sui-framework" }

dependencies = [
{ name = "MoveStdlib" },
]

[move.toolchain-version]
compiler-version = "1.28.4"
edition = "2024.beta"
flavor = "sui"

[env]

[env.testnet]
chain-id = "4c78adac"
original-published-id = "0x70c6df6a7d28db520b1e8d49d0dc1ef3ee9459321a0cd8f16a5a1a5b944ac782"
latest-published-id = "0x70c6df6a7d28db520b1e8d49d0dc1ef3ee9459321a0cd8f16a5a1a5b944ac782"
published-version = "1"
37 changes: 37 additions & 0 deletions mover/11532d/task1/Move.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[package]
name = "hello"
edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move
# license = "" # e.g., "MIT", "GPL", "Apache 2.0"
# authors = ["..."] # e.g., ["Joe Smith ([email protected])", "John Snow ([email protected])"]

[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]
hello = "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"

21 changes: 21 additions & 0 deletions mover/11532d/task1/sources/hello.move
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module hello::hello {
use sui::object::{Self,
};
use sui::tx_context::{Self, TxContext};
use std::string::{Self, String};
use sui::transfer;

public struct Hello has key {
id: UID,
str: String,
}

public fun say_hello(ctx: &mut TxContext) {
let word = Hello {
id: object::new(ctx),
str: string::utf8(b"11532d"),
};
transfer::transfer(word, tx_context::sender(ctx));
}
}

7 changes: 7 additions & 0 deletions mover/11532d/task1/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
curl --location --request POST 'https://faucet.testnet.sui.io/gas' \
--header 'Content-Type: application/json' \
--data-raw '{
"FixedAmountRequest": {
"recipient": "0x40d6176f07920442d66daa3b7bc7ce6639cf35823074cf79dc618e2d422fc6e4"
}
}'
19 changes: 19 additions & 0 deletions mover/11532d/task1/tests/hello_tests.move
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
#[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
}
}
*/
34 changes: 34 additions & 0 deletions mover/404ll/code/task2/FaucetCoin/Move.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# @generated by Move, please check-in and do not edit manually.

[move]
version = 2
manifest_digest = "A3A4289005858BB5EC8B7DFB1830EFFBF1A44FCC005156E36FA379507A61F1BD"
deps_digest = "F8BBB0CCB2491CA29A3DF03D6F92277A4F3574266507ACD77214D37ECA3F3082"
dependencies = [
{ name = "Sui" },
]

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

[[move.package]]
name = "Sui"
source = { git = "https://github.com/MystenLabs/sui.git", rev = "framework/testnet", subdir = "crates/sui-framework/packages/sui-framework" }

dependencies = [
{ name = "MoveStdlib" },
]

[move.toolchain-version]
compiler-version = "1.28.4"
edition = "2024.beta"
flavor = "sui"

[env]

[env.testnet]
chain-id = "4c78adac"
original-published-id = "0x796fe22eb9df4f8d926e111c888d8ef4447d4348c3131f2cb4a82f1ec09c5e63"
latest-published-id = "0x796fe22eb9df4f8d926e111c888d8ef4447d4348c3131f2cb4a82f1ec09c5e63"
published-version = "1"
37 changes: 37 additions & 0 deletions mover/404ll/code/task2/FaucetCoin/Move.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
[package]
name = "FaucetCoin"
edition = "2024.beta" # edition = "legacy" to use legacy (pre-2024) Move
# license = "" # e.g., "MIT", "GPL", "Apache 2.0"
# authors = ["..."] # e.g., ["Joe Smith ([email protected])", "John Snow ([email protected])"]

[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]
faucetcoin = "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"

Loading

0 comments on commit 39ce15b

Please sign in to comment.