-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from vbi-academy/feat/sui-move-analyzer
docs: sui mover analyzer
- Loading branch information
Showing
10 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
|
||
# Sử dụng Sui Move Analyzer (Thêm công cụ cho move coding) | ||
|
||
Nếu bạn là người dùng vscode để code Sui move thì đây là một extension hữu ích cho việc cung cấp definitions của các package để mọi người hiểu ý nghĩa của nó | ||
|
||
|
||
![](../assets/hello_move_image/sui_move_analyzer.png) | ||
|
||
|
||
|
||
# Cài đặt [sui-move-analyzer](https://marketplace.visualstudio.com/items?itemName=MoveBit.sui-move-analyzer&ref=blog.sui.io) | ||
Các cách tải sui-move-analyzer: | ||
|
||
A. Tải từ file các binaries file bằng cách truy cập vào đây: [sui-move-analyzer](https://github.com/movebit/sui-move-analyzer/releases)<br/> | ||
B. Sử dụng Cargo: | ||
|
||
```bash | ||
cargo install --git http://github.com/movebit/sui-move-analyzer --branch master sui-move-analyzer | ||
``` | ||
|
||
|
||
![](../assets/hello_move_image/sui_command_line_analyzer.png) | ||
|
||
C. Cài đặt trực tiếp trên Visual Studio Code extension | ||
|
||
![](../assets/hello_move_image/sui_move_anlyzer_extension.png) | ||
|
||
|
||
# Cách sử dụng sui-move-analyzer | ||
|
||
* Trả các definition trong Sui Move | ||
|
||
Ví dụ bạn có thể click chuột vào module "sui::transfer" để jump to definition của nó. | ||
|
||
![](../assets/hello_move_image/go_to_definition.png) | ||
|
||
* Hover các infor về các functions(): | ||
|
||
![](../assets/hello_move_image/Hover_infor.png) | ||
|
||
* Auto complete các modules, functions, fields, structs, etc: | ||
|
||
![](../assets/hello_move_image/autocomplete.png) | ||
|
||
|
||
* Create Sui template | ||
![](../assets/hello_move_image/Sui_move_commands.png) | ||
|
||
* Coding với MSL | ||
|
||
|
||
Sui move analyzer còn hỗ trợ generate [Move Specification Language (MSL)](https://github.com/move-language/move/blob/main/language/move-prover/doc/user/spec-lang.md?ref=blog.sui.io). MSL được coi là một phần của Move prover, một tool quan trọng cho hỗ trợ các builder trong việc code move chính xác hơn. CÁc builder muốn làm việc trên quy tắc MSL sẽ thấy đây là tool bổ ích | ||
|
||
![](../assets/hello_move_image/MSL_image.png) |
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