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

Update first contract #1870

Merged
merged 3 commits into from
Jun 12, 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
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ You can use `rooch account list` to view the corresponding hex type address.
[joe@mx sources]$ rooch account create
Generated new keypair for address with key pair type [rooch1p0ng4kpllwsahrd69ywpv9sfdgpgajtt777vq6f9c9sdu4t2e2es6txz5d]
Secret Recovery Phrase : [eagle warm pull merit hunt visual top pig arctic derive observe village]
"0xbe68ad83ffba1db8dba291c1616096a028ec96bf7bcc06925c160de556acab3"
```

A new account is manually created here, `rooch1p0ng4kpllwsahrd69ywpv9sfdgpgajtt777vq6f9c9sdu4t2e2es6txz5d`, and the corresponding `hex` type address is `0xbe68ad83ffba1db8dba291c1616096a028ec96bf7bcc06925c160de556acab3`.
A new account is manually created here, `rooch1p0ng4kpllwsahrd69ywpv9sfdgpgajtt777vq6f9c9sdu4t2e2es6txz5d`.

This account address is derived from the same set of mnemonic words, so it can also be recovered using the same mnemonic word.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,9 @@ null
[joe@mx sources]$ rooch account create
Generated new keypair for address with key pair type [rooch1p0ng4kpllwsahrd69ywpv9sfdgpgajtt777vq6f9c9sdu4t2e2es6txz5d]
Secret Recovery Phrase : [eagle warm pull merit hunt visual top pig arctic derive observe village]
"0xbe68ad83ffba1db8dba291c1616096a028ec96bf7bcc06925c160de556acab3"
```

这里手动创建了一个新的账户,`rooch1p0ng4kpllwsahrd69ywpv9sfdgpgajtt777vq6f9c9sdu4t2e2es6txz5d`,对应的 `hex` 类型地址为 `0xbe68ad83ffba1db8dba291c1616096a028ec96bf7bcc06925c160de556acab3`
这里手动创建了一个新的账户,`rooch1p0ng4kpllwsahrd69ywpv9sfdgpgajtt777vq6f9c9sdu4t2e2es6txz5d`。

这个账户地址属于同一套助记词派生而来,因此也可以使用相同的助记词来恢复。

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rooch move new hello_rooch

After executing this Rooch CLI command, a Rooch contract project will be created and automatically initialized. The root directory of the project contains a `sources` directory for storing the Move contract code, and a manifest file named `Move.toml` for declaring the current project. The name, version, address alias (named address) and project dependencies.

Contents of the `Move.toml` file of the `hello-rooch` project:
Contents of the `Move.toml` file of the `hello_rooch` project:

```toml
[package]
Expand All @@ -23,7 +23,7 @@ MoveosStdlib = { git = "https://github.com/rooch-network/rooch.git", subdir = "f
RoochFramework = { git = "https://github.com/rooch-network/rooch.git", subdir = "frameworks/rooch-framework", rev = "main" }

[addresses]
hello_rooch = "0xf5ecfc49f55e283119104978b60995b0ec84a5bd760a0305b24b9a4175deff7b"
hello_rooch = "0xbc34dd9a140ab26f88f466c9ea7ea14507bc2795dcfd4b6c7ac694dd3c2e1c8d"
std = "0x1"
moveos_std = "0x2"
rooch_framework = "0x3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ rooch move new hello_rooch

执行这个 Rooch CLI 命令后会创建并自动初始化一个 Rooch 合约项目,在项目的根目录,包含一个用于存放 Move 合约代码的 `sources` 目录,以及一个名为 `Move.toml` 的清单文件,用于声明当前项目的名称、版本、地址别名(命名地址)和项目的依赖。

`hello-rooch` 项目的 `Move.toml` 文件内容:
`hello_rooch` 项目的 `Move.toml` 文件内容:

```toml
[package]
Expand All @@ -23,7 +23,7 @@ MoveosStdlib = { git = "https://github.com/rooch-network/rooch.git", subdir = "f
RoochFramework = { git = "https://github.com/rooch-network/rooch.git", subdir = "frameworks/rooch-framework", rev = "main" }

[addresses]
hello_rooch = "0xf5ecfc49f55e283119104978b60995bcontext0ec84a5bd760a0305b24b9a4175deff7b"
hello_rooch = "0xbc34dd9a140ab26f88f466c9ea7ea14507bc2795dcfd4b6c7ac694dd3c2e1c8d"
std = "0x1"
moveos_std = "0x2"
rooch_framework = "0x3"
Expand Down
Loading