From 24ababb5d33e2efa557a88c6f59208842c714d3a Mon Sep 17 00:00:00 2001 From: Fionna Chan Date: Mon, 4 Sep 2023 10:25:22 +0100 Subject: [PATCH 1/2] fix: small typos on stylus gentle intro page --- .../stylus/stylus-gentle-introduction.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/arbitrum-docs/stylus/stylus-gentle-introduction.md b/arbitrum-docs/stylus/stylus-gentle-introduction.md index ce5445d63..322988bd1 100644 --- a/arbitrum-docs/stylus/stylus-gentle-introduction.md +++ b/arbitrum-docs/stylus/stylus-gentle-introduction.md @@ -1,16 +1,16 @@ --- -title: 'A gentle introduction to Stylus' -sidebar_label: 'A gentle introduction to Stylus' -description: 'An educational introduction that provides a high-level understanding of Stylus, a new way to write EVM-compatible smart contracts using your favorite programming languages.' +title: "A gentle introduction to Stylus" +sidebar_label: "A gentle introduction to Stylus" +description: "An educational introduction that provides a high-level understanding of Stylus, a new way to write EVM-compatible smart contracts using your favorite programming languages." author: amarrazza sme: amarrazza -target_audience: 'Developers who want to build on Arbitrum using popular programming languages, like Rust' +target_audience: "Developers who want to build on Arbitrum using popular programming languages, like Rust" sidebar_position: 1 --- # A gentle introduction: Stylus -import PublicPreviewBannerPartial from './partials/_stylus-public-preview-banner-partial.md'; +import PublicPreviewBannerPartial from './partials/\_stylus-public-preview-banner-partial.md'; @@ -27,7 +27,7 @@ This introduction is for developers who want to build on Arbitrum using popular ### What's Stylus? -Stylus is an upgrade to Arbitrum Nitro, the tech stack powering Arbitrum One, Arbitrum Nova, and Arbitrum Orbit chains. This upgrade adds a second, coequal virtual machine to the EVM, where EVM contracts continue to behave exactly as they would in Ethereum. We call this paradigm \*EVM**+\*** since **everything is entirely additive.** +Stylus is an upgrade to Arbitrum Nitro, the tech stack powering Arbitrum One, Arbitrum Nova, and Arbitrum Orbit chains. This upgrade adds a second, coequal virtual machine to the EVM, where EVM contracts continue to behave exactly as they would in Ethereum. We call this paradigm **EVM\+** since **everything is entirely additive.** ![Stylus gives you EVM+](./assets/stylus-gives-you-evm-plus.png) @@ -81,7 +81,7 @@ In principle, developers can write smart contracts in any programming language t Initially, there will be support for Rust, C, and C++. However, the levels of support will differ at first. Rust has rich language support from day one, with an open-source SDK that makes writing smart contracts in Rust as easy as possible. C and C++ are supported off the bat too, which will enable deploying existing contracts in those languages on-chain with minimal modifications. -The Stylus SDK for Rust contains the smart contract development framework and language features most developers will need to use Stylus. The SDK also makes it possible to perform all of the EVM-specific functionalities that smart contract developers are used to. Check out the [Rust SDK Guide](https://docs.arbitrum.io/stylus/rust-sdk-guide) and the [Crate Docs](https://docs.rs/crate/stylus-sdk). +The Stylus SDK for Rust contains the smart contract development framework and language features most developers will need to use in Stylus. The SDK also makes it possible to perform all of the EVM-specific functionalities that smart contract developers are used to. Check out the [Rust SDK Guide](https://docs.arbitrum.io/stylus/rust-sdk-guide) and the [Crate Docs](https://docs.rs/crate/stylus-sdk). #### Compilation @@ -89,7 +89,7 @@ Stylus programs are compiled twice. Once from a high-level language (such as Rus The first stage of compilation happens either using the CLI tool provided in the Stylus SDK for Rust or by using any other compiler, such as Clang for C and C++. Once compiled, the WASM is posted on-chain. While the contract's behavior is now defined, it still cannot be called until after it's activated. -Activating a Stylus program requires a new precompile, `ArbWasm`. This precompile produces efficient binary code tailored to a node's native assembly. During this step, a series of middlewares ensure user programs can be safely executed and deterministically fraud proven. Instrumentation includes gas metering, depth-checking, memory charging, and more to guarantee all WASM programs are safe for the chain to execute. +Activating a Stylus program requires a new precompile, `ArbWasm`. This precompile produces efficient binary code tailored to a node's native assembly. During this step, a series of middlewares ensure user programs can be safely executed and deterministically fraud-proven. Instrumentation includes gas metering, depth-checking, memory charging, and more to guarantee all WASM programs are safe for the chain to execute.