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

finsh task2 #48

Merged
merged 5 commits into from
Jul 22, 2024
Merged
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
7 changes: 6 additions & 1 deletion members/Al17er/journal.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ bitcoind -daemon
查看交易信息:
bitcoin-cli getblockhash 高度

bitcoin-cli getblock hash值
bitcoin-cli getblock hash值

rooch account balance 查看余额
rooch account switch 切换账户
rooch env list 查看当前有哪些环境
rooch env switch --alias 环境名称 切换环境
2 changes: 1 addition & 1 deletion members/Al17er/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@

1.学会了bitcoin的命令的使用,明白了区块链的一些基础知识。

2.
2.学会了如何领水,和发布简单的合约,能够使用rooch cli的基本命令。

3.
5 changes: 4 additions & 1 deletion members/Al17er/summary.md
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
14 changes: 14 additions & 0 deletions members/Al17er/task02/hello_rooch/Move.toml
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 members/Al17er/task02/hello_rooch/sources/hello_rooch.move
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);
}
}
Binary file added members/Al17er/task02/publish.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.