-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* finish task1 * finish task2 * finish task02 add source
- Loading branch information
Showing
7 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
|
@@ -21,6 +21,6 @@ | |
|
||
1.学会了bitcoin的命令的使用,明白了区块链的一些基础知识。 | ||
|
||
2. | ||
2.学会了如何领水,和发布简单的合约,能够使用rooch cli的基本命令。 | ||
|
||
3. |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
# 学习成果 | ||
### 第一次作业(完成本地部署bitcore全节点并同步数据) | ||
|
||
![alt text](image.png) | ||
![alt text](image.png) | ||
|
||
## 第二次作业 (部署hello_rooch合约) | ||
1.学会如何领取水,与发布合约 |
File renamed without changes
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,14 @@ | ||
[package] | ||
name = "hello_rooch" | ||
version = "0.0.1" | ||
|
||
[dependencies] | ||
MoveStdlib = { git = "https://github.com/rooch-network/rooch.git", subdir = "frameworks/move-stdlib", rev = "main" } | ||
MoveosStdlib = { git = "https://github.com/rooch-network/rooch.git", subdir = "frameworks/moveos-stdlib", rev = "main" } | ||
RoochFramework = { git = "https://github.com/rooch-network/rooch.git", subdir = "frameworks/rooch-framework", rev = "main" } | ||
|
||
[addresses] | ||
hello_rooch = "0xe5566e5c7c6a210da0cfcf802ced3d72010a1293568bccea398fb59325f4e237" | ||
std = "0x1" | ||
moveos_std = "0x2" | ||
rooch_framework = "0x3" |
11 changes: 11 additions & 0 deletions
11
members/Al17er/task02/hello_rooch/sources/hello_rooch.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,11 @@ | ||
module hello_rooch::hello_rooch { | ||
use moveos_std::account; | ||
use std::string; | ||
struct HelloMessage has key { | ||
text: string::String | ||
} | ||
entry fun say_hello(owner: &signer) { | ||
let hello = HelloMessage { text: string::utf8(b"Hello Rooch!") }; | ||
account::move_resource_to(owner, hello); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.