Skip to content

Commit 21bb733

Browse files
committed
add banner to pokadot protocol/ smart contracts basics
1 parent dcdb2f5 commit 21bb733

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

polkadot-protocol/smart-contract-basics/evm-vs-polkavm.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ description: Compares EVM and PolkaVM, highlighting key architectural difference
99

1010
While [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design/){target=\_blank} strives for maximum Ethereum compatibility, several fundamental design decisions create necessary divergences from the [EVM](https://ethereum.org/en/developers/docs/evm/){target=\_blank}. These differences represent trade-offs that enhance performance and resource management while maintaining accessibility for Solidity developers.
1111

12+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
13+
1214
## Core Virtual Machine Architecture
1315

1416
The most significant departure from Ethereum comes from PolkaVM's foundation itself. Rather than implementing the EVM, PolkaVM utilizes a RISC-V instruction set. For most Solidity developers, this architectural change remains transparent thanks to the [Revive compiler's](https://github.com/paritytech/revive){target=\_blank} complete Solidity support, including inline assembler functionality.

polkadot-protocol/smart-contract-basics/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ Explore foundational concepts that shape smart contract functionality on Polkado
2020
- **Networks** – an overview of smart contract-enabled networks within the Polkadot ecosystem
2121
- **Blocks, transactions, and fees** – understanding transaction lifecycle, execution fees, and resource management
2222

23+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
24+
2325
## In This Section
2426

2527
:::INSERT_IN_THIS_SECTION:::

polkadot-protocol/smart-contract-basics/overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ This guide outlines the primary approaches to developing smart contracts in the
1515
- **EVM-compatible contracts** - which support languages like [Solidity](https://soliditylang.org/){target=\_blank} and [Vyper](https://vyperlang.org/){target=\_blank}, offering compatibility with popular Ethereum tools and wallets
1616
- **Wasm-based smart contracts** - using [ink!](https://use.ink/){target=\_blank}, a Rust-based embedded domain-specific language (eDSL), enabling developers to leverage Rust’s safety and tooling
1717

18+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
19+
1820
You'll explore the key differences between these development paths, along with considerations for parachain developers integrating smart contract functionality.
1921

2022
!!!note "Parachain Developer?"

polkadot-protocol/smart-contract-basics/polkavm-design.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ The Asset Hub smart contracts solution includes multiple components to ensure Et
2020

2121
The interpreter remains particularly beneficial for contracts with minimal code execution, as it eliminates JIT compilation overhead and enables immediate code execution through lazy interpretation.
2222

23+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
24+
2325
## Architecture
2426

2527
The smart contract solution consists of the following key components that work together to enable Ethereum compatibility on Polkadot-based chains:

0 commit comments

Comments
 (0)