From aaa0fc7a0bb54753eae82546be8d3619cbee1a22 Mon Sep 17 00:00:00 2001 From: osrm <90407222+osrm@users.noreply.github.com> Date: Fri, 2 Aug 2024 20:58:50 +0900 Subject: [PATCH 01/10] chore: typo correction README.md typo correction and polish sentences --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 865f108..a243e8c 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ -# movemnt-hack +# movement-hack Guide material for Movement Hackathons and generally for beginners looking to start projects. ## Using this repository This repository can be used as a guide for learning `movement` or as a template for creating a `movement` project. ### As a guide -To use this repository as a guide, visit [hack.movementlabs.xyz](hack.movement.xyz) or server the `mdBook` located in the `/book` directory. +To use this repository as a guide, visit [hack.movementlabs.xyz](hack.movement.xyz) or serve the `mdBook` located in the `/book` directory. ### As a template -To use this repository as a template for setting up a `movement` project, run `cargo generate -a movemntdev/movement-hack`. +To use this repository as a template for setting up a `movement` project, run `cargo generate -a movementdev/movement-hack`. -When using the containerization features, you may either simply attach to the `movement-dev` devcontainer from VS CODE or run the below to reproduce similar behavior: +When using the containerization features, you may either simply attach to the `movement-dev` devcontainer from VS Code or run the below to reproduce similar behavior: ``` docker image pull mvlbs/m1 @@ -19,4 +19,4 @@ docker run -it -v "$(pwd):/workspace" mvlbs/m1 /bin/bash ## Working on this repository - The easiest way to work on this repository, whether for contributions or your own fork, is to leverage the `devcontainer` [extension](https://code.visualstudio.com/docs/devcontainers/containers) in VsCode and use the `maintainer` container. -- Within the `maintainer` container, to serve the `mdBook` use call `mdbook serve` from the `book` directory. +- Within the `maintainer` container, to serve the `mdBook` use call `mdBook serve` from the `book` directory. From 150df7f53045201626595b803956ccaff379f5a5 Mon Sep 17 00:00:00 2001 From: osrm <90407222+osrm@users.noreply.github.com> Date: Fri, 2 Aug 2024 21:12:08 +0900 Subject: [PATCH 02/10] chore: modify grammar ch01-02-dispersion-of-move.md Modified the grammar --- book/src/ch01-02-dispersion-of-move.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/book/src/ch01-02-dispersion-of-move.md b/book/src/ch01-02-dispersion-of-move.md index 6ef6ad0..9741f7a 100644 --- a/book/src/ch01-02-dispersion-of-move.md +++ b/book/src/ch01-02-dispersion-of-move.md @@ -1,6 +1,6 @@ # The Dispersion of Move -This lesson will walk you through on the history and expansion of Move, a key smart contract language developed originally for the Diem project by Facebook, but now used across various blockchains. +This lesson will walk you through the history and expansion of Move, a key smart contract language developed originally for the Diem project by Facebook, but now used across various blockchains. ## The Origin: Facebook's Dream @@ -24,8 +24,8 @@ Now **Movement** is working on interoperability of Move-EVM, among other innovat ## The Legacy: The Growing Ecosystem of Move -Present times sees Move not just as a programming language, but as an integral part of a growing ecosystem that extends across various blockchains. By addressing the sophisticated needs of digital asset management, Move has set a new standard in blockchain development, emphasizing safety, flexibility, and scalability. +Currently, Move is seen not just as a programming language, but as an integral part of a growing ecosystem that extends across various blockchains. By addressing the sophisticated needs of digital asset management, Move has set a new standard in blockchain development, emphasizing safety, flexibility, and scalability. ## Conclusion -The spread of Move from Diem to platforms like Aptos and Sui highlights the robust design of the language and the innovation drive of the blockchain community. The journey of Move, from a Facebook initiative to a cornerstone of blockchain technology, showcases how good ideas can surpass their origins and adapt to wider applications. \ No newline at end of file +The spread of Move from Diem to platforms like Aptos and Sui highlights the robust design of the language and the innovation drive of the blockchain community. The journey of Move, from a Facebook initiative to a cornerstone of blockchain technology, showcases how good ideas can surpass their origins and adapt to wider applications. From 2f94ee404f3b0a6e27de4a7e0c7e73e1cdc5884e Mon Sep 17 00:00:00 2001 From: osrm <90407222+osrm@users.noreply.github.com> Date: Fri, 2 Aug 2024 21:14:02 +0900 Subject: [PATCH 03/10] Modified the grammar ch01-03-enter-movement.md Modified the grammar and polish text --- book/src/ch01-03-enter-movement.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/book/src/ch01-03-enter-movement.md b/book/src/ch01-03-enter-movement.md index fdd1a4e..afe019e 100644 --- a/book/src/ch01-03-enter-movement.md +++ b/book/src/ch01-03-enter-movement.md @@ -4,11 +4,11 @@ In this guide, you'll learn about the innovative network of modular Move-based b ## What is Movement Labs? -Movement was born from a simple idea: What If you could take advantage of the Move programming language within any distributed environment? +Movement was born from a simple idea: What if you could take advantage of the Move programming language within any distributed environment? At Movement Labs, we've come together to share our passion for Move with the industry and make our favorite programming language available to as many people around the world as possible. By creating seamless standardization across infrastructures, we can unlock innovation for all. -This is about creating a world where crypto is not just a currency or a technology, it's about creating a movement that brings us all closer together. +This is about creating a world where crypto is not just a currency or a technology, it's about creating a Movement that brings us all closer together. ## Core Principles of Movement @@ -30,4 +30,4 @@ At Movement Labs, we're more than a technology provider. We're pioneers leading ## Join the Movement -If you haven't joined the [Discord](https://discord.gg/movementlabsxyz) yet, do it now to stay in sync with all the next moves! \ No newline at end of file +If you haven't joined the [Discord](https://discord.gg/movementlabsxyz) yet, do it now to stay in sync with all the next moves! From d87d06e4aeaf3bf74220790972a01dd6fa856661 Mon Sep 17 00:00:00 2001 From: osrm <90407222+osrm@users.noreply.github.com> Date: Fri, 2 Aug 2024 21:15:57 +0900 Subject: [PATCH 04/10] chore: modify grammar ch02-01-advantages-of-move.md modified the grammar --- book/src/ch02-01-advantages-of-move.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/ch02-01-advantages-of-move.md b/book/src/ch02-01-advantages-of-move.md index 628cb50..100b9a7 100644 --- a/book/src/ch02-01-advantages-of-move.md +++ b/book/src/ch02-01-advantages-of-move.md @@ -45,13 +45,13 @@ Resource-oriented programming languages like Move implement access restrictions ## Type Linearity and Ownership -*Linear type:* a type with an enforced the restriction that variables or values of the type can be used exactly once. In other words, each linear value has a unique owner or consumer, and it must be used or consumed linearly without duplication or uncontrolled consumption. +*Linear type:* a type with an enforces the restriction that variables or values of the type can be used exactly once. In other words, each linear value has a unique owner or consumer, and it must be used or consumed linearly without duplication or uncontrolled consumption. ```javascript f(a) -> g(a) -> h(a) ``` -*Non-linear type:* a type without an enforced the restriction that variables or values of the type can be used exactly once. Variables or values of non-linear types can be used or accessed multiple times without restrictions. +*Non-linear type:* a type without an enforces the restriction that variables or values of the type can be used exactly once. Variables or values of non-linear types can be used or accessed multiple times without restrictions. ```javascript f(a) -> From 4885479946cb80a2d32e036d101c61eb80f5f027 Mon Sep 17 00:00:00 2001 From: osrm <90407222+osrm@users.noreply.github.com> Date: Fri, 2 Aug 2024 21:19:59 +0900 Subject: [PATCH 05/10] Update hyperlink ch02-03-hello-move.md "https://docs.movementlabs.xyz/developers/tutorials/deploy/aptos-module" is not working. Replaced with "https://docs.movementnetwork.xyz/devs/tutorials/Deploy/aptosmodule". --- book/src/ch02-03-hello-move.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/ch02-03-hello-move.md b/book/src/ch02-03-hello-move.md index afd3eb9..a078f18 100644 --- a/book/src/ch02-03-hello-move.md +++ b/book/src/ch02-03-hello-move.md @@ -6,7 +6,7 @@ If not, please [return to the previous lesson](ch02-02-install-movement-cli.md) Now that you have Movement CLI installed, it's time to deploy something to Movement. Ideally and end-to-end (E2E) dApp. -If you'd prefer to build up your confidence first, it's fine to deploy a simple module. Just [follow this guide](https://docs.movementlabs.xyz/developers/tutorials/deploy/aptos-module). It doesn't require any coding experience. +If you'd prefer to build up your confidence first, it's fine to deploy a simple module. Just [follow this guide](https://docs.movementnetwork.xyz/devs/tutorials/Deploy/aptosmodule). It doesn't require any coding experience. An E2E dApp is just an on-chain module or modules paired with a front end like a Next.js or Vite app. So it's not too much more complicated than deploying a module. From 87cb224dc328f519ebaf57c7d8ffe04575fc1d58 Mon Sep 17 00:00:00 2001 From: osrm <90407222+osrm@users.noreply.github.com> Date: Fri, 2 Aug 2024 21:21:20 +0900 Subject: [PATCH 06/10] chore: correction typo ch03-00-domain-modeling.md "archictual" -> "architectural" --- book/src/ch03-00-domain-modeling.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/ch03-00-domain-modeling.md b/book/src/ch03-00-domain-modeling.md index 499f942..d1cb271 100644 --- a/book/src/ch03-00-domain-modeling.md +++ b/book/src/ch03-00-domain-modeling.md @@ -6,4 +6,4 @@ This chapter will guide you to plan your capstone project in the following ways: - [Understanding principles of domain modeling](ch03-01-domain-modeling.md) - [Writing the user journey for your project](ch03-02-user-journey.md) -- [Creating an archictual diagram to model your project's domain](ch03-03-architectural-diagram.md) +- [Creating an architectural diagram to model your project's domain](ch03-03-architectural-diagram.md) From 71b8f2228fcb0a11a5250ebb2002cf86b0d843eb Mon Sep 17 00:00:00 2001 From: osrm <90407222+osrm@users.noreply.github.com> Date: Fri, 2 Aug 2024 21:23:42 +0900 Subject: [PATCH 07/10] chore: typo correction ch03-01-domain-modeling-intro.md Fix typos --- book/src/ch03-01-domain-modeling-intro.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/book/src/ch03-01-domain-modeling-intro.md b/book/src/ch03-01-domain-modeling-intro.md index f9208c4..e799449 100644 --- a/book/src/ch03-01-domain-modeling-intro.md +++ b/book/src/ch03-01-domain-modeling-intro.md @@ -2,11 +2,11 @@ To plan your dApp, you'll write a user journey and then model your dApp's domain. -A domain model is a visual representation of the concepts and objects related to your dApp. There's no "right" or "wrong" format for domain modeling. As long as the model accurately represents all the components of your dApp's domain in a way that helps you buidl, you're good! +A domain model is a visual representation of the concepts and objects related to your dApp. There's no "right" or "wrong" format for domain modeling. As long as the model accurately represents all the components of your dApp's domain in a way that helps you build, you're good! ## Example: The Domain Model for Move -Using the architecture diagram for Move, we can understand how a picture is worth a thousand - or at least a few dozes - words: +Using the architecture diagram for Move, we can understand how a picture is worth a thousand - or at least a few dozen - words: ![Move architecture diagram](./img/move_architecture.png "Move architecture diagram") @@ -38,4 +38,4 @@ You'll even label your diagram with Move code, so when it's time to write your c This will save you tons of time and heavy lifting as you build your dream dApp. -Let's Move! \ No newline at end of file +Let's Move! From fd867684aef4fcee22cea029674c904fb719649a Mon Sep 17 00:00:00 2001 From: osrm <90407222+osrm@users.noreply.github.com> Date: Fri, 2 Aug 2024 21:26:41 +0900 Subject: [PATCH 08/10] chore: typo correction ch04-01-primitive-types.md "lession" => "lesson" --- book/src/ch04-01-primitive-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/ch04-01-primitive-types.md b/book/src/ch04-01-primitive-types.md index 42d42ff..a5edbc2 100644 --- a/book/src/ch04-01-primitive-types.md +++ b/book/src/ch04-01-primitive-types.md @@ -1,6 +1,6 @@ # Primitive types -After completing this lession, you'll be able to define and assign values to primitive types (integer types, as operator, boolean, address). +After completing this lesson, you'll be able to define and assign values to primitive types (integer types, as operator, boolean, address). ## Understanding Primitive Types in Move with Everyday Examples From 4f869bfd7ce4fa2e6b93c6bb704697364c2731a4 Mon Sep 17 00:00:00 2001 From: osrm <90407222+osrm@users.noreply.github.com> Date: Fri, 2 Aug 2024 21:28:30 +0900 Subject: [PATCH 09/10] chore: fix typo ch04-03-expressions-and-scope.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "experssion" → "expression" --- book/src/ch04-03-expressions-and-scope.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/src/ch04-03-expressions-and-scope.md b/book/src/ch04-03-expressions-and-scope.md index d683675..c78fb16 100644 --- a/book/src/ch04-03-expressions-and-scope.md +++ b/book/src/ch04-03-expressions-and-scope.md @@ -1,6 +1,6 @@ # Expressions and scope -By the end of this lesson, you'll demonstrate mastery of expressions and scope, including being able to evaluate when variables are accessible and what the values of experssions will be after execution. +By the end of this lesson, you'll demonstrate mastery of expressions and scope, including being able to evaluate when variables are accessible and what the values of expressions will be after execution. In Move, expressions and scope are fundamental concepts that dictate how data is manipulated and accessed within your programs. Let's delve deeper into these concepts with more examples to illustrate their practical use in blockchain development. From e6e9f123c8bef58309f960f020c91e455412490a Mon Sep 17 00:00:00 2001 From: osrm <90407222+osrm@users.noreply.github.com> Date: Fri, 2 Aug 2024 21:32:09 +0900 Subject: [PATCH 10/10] chore: fix typo ch04-05-modules-and-imports.md polish sentence and fix typo --- book/src/ch04-05-modules-and-imports.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/src/ch04-05-modules-and-imports.md b/book/src/ch04-05-modules-and-imports.md index b2cc01c..570c939 100644 --- a/book/src/ch04-05-modules-and-imports.md +++ b/book/src/ch04-05-modules-and-imports.md @@ -28,7 +28,7 @@ module 0x1::SimpleMath { This SimpleMath module provides two functions, add and subtract, which can be used by other parts of your Move application. -## Importing from Modules +## Importing Modules To use the functionality defined in a module, you must import it. This can be done in scripts or other modules. @@ -104,7 +104,7 @@ module user_manager_addr::UserManager { } ``` -Here we're using a named address. +Here we use a named address. For Aptos, in your `Move.toml` file, under `[addresses]` you would add: