Skip to content

Commit ef2e0fa

Browse files
committed
move the admotion
1 parent 62029d6 commit ef2e0fa

File tree

12 files changed

+25
-24
lines changed

12 files changed

+25
-24
lines changed

develop/smart-contracts/libraries/viem.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ description: This guide covers deploying and interacting with contracts on Polka
99

1010
[viem](https://viem.sh/){target=\_blank} is a lightweight TypeScript library designed for interacting with Ethereum-compatible blockchains. This comprehensive guide will walk you through using viem to interact with and deploy smart contracts to Polkadot Hub.
1111

12+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
13+
1214
## Prerequisites
1315

1416
Before getting started, ensure you have the following installed:
@@ -53,8 +55,6 @@ npm init -y
5355

5456
Install viem along with other necessary dependencies, including [@parity/revive](https://www.npmjs.com/package/@parity/revive){target=\_blank}, which enables to compile smart contracts to [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design/#polkavm){target=\_blank} bytecode:
5557

56-
--8<-- 'text/smart-contracts/polkaVM-warning.md'
57-
5858
```bash
5959
# Install viem and Revive
6060
npm install viem @parity/revive

develop/smart-contracts/libraries/web3-js.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ Interacting with blockchains typically requires an interface between your applic
1414

1515
This guide is intended for developers who are familiar with JavaScript and want to interact with the Polkadot Hub using Web3.js.
1616

17+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
18+
1719
## Prerequisites
1820

1921
Before getting started, ensure you have the following installed:
@@ -97,8 +99,6 @@ For instance, to fetch the latest block number of the chain, you can use the fol
9799

98100
Polkadot Hub requires contracts to be compiled to [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design/){target=\_blank} bytecode. This is achieved using the [`revive`](https://github.com/paritytech/revive){target=\_blank} compiler. Install the [`@parity/revive`](https://github.com/paritytech/js-revive){target=\_blank} library as a development dependency:
99101

100-
--8<-- 'text/smart-contracts/polkaVM-warning.md'
101-
102102
```bash
103103
npm install --save-dev @parity/revive
104104
```

develop/smart-contracts/libraries/web3-py.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Interacting with blockchains typically requires an interface between your applic
1111

1212
This guide illustrates how to utilize Web3.py for interactions with Polkadot Hub.
1313

14+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
15+
1416
## Set Up the Project
1517

1618
1. To start working with Web3.py, begin by initializing your project:
@@ -63,8 +65,6 @@ Before deploying your contracts, make sure you've compiled them and obtained two
6365
- An ABI (.json) file, which provides a JSON interface describing the contract's functions and how to interact with it
6466
- A bytecode (.polkavm) file, which contains the low-level machine code executable on [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design#polkavm){target=\_blank} that represents the compiled smart contract ready for blockchain deployment
6567

66-
--8<-- 'text/smart-contracts/polkaVM-warning.md'
67-
6868
To follow this guide, you can use the following solidity contract as an example:
6969

7070
```solidity title="Storage.sol"

develop/smart-contracts/precompiles/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Precompiles serve a dual purpose in the Polkadot ecosystem: they not only enable
1111

1212
This article explores how Polkadot leverages precompiles within the Revive pallet to enhance efficiency and how they will extend functionality for developers in the future, including planned access to native features like Cross-Consensus Messaging (XCM).
1313

14+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
15+
1416
## What are Precompiles?
1517

1618
Precompiles are special contract implementations that run directly at the runtime level rather than as on-chain PolkaVM contracts. In typical EVM environments, precompiles provide essential cryptographic and utility functionality at addresses that start with specific patterns. Revive follows this design pattern but with its own implementation optimized for PolkaVM.
@@ -37,8 +39,6 @@ flowchart LR
3739
classDef edgeLabel background:#eceff3;
3840
```
3941

40-
--8<-- 'text/smart-contracts/polkaVM-warning.md'
41-
4242
## Standard Precompiles in Polkadot Hub
4343

4444
Revive implements the standard set of Ethereum precompiles:

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ description: Discover PolkaVM, a high-performance smart contract VM for Polkadot
99

1010
The Asset Hub smart contracts solution includes multiple components to ensure Ethereum compatibility and high performance. Its architecture allows for integration with current Ethereum tools, while its innovative virtual machine design enhances performance characteristics.
1111

12+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
13+
1214
## PolkaVM
1315

1416
[**PolkaVM**](https://github.com/paritytech/polkavm){target=\_blank} is a custom virtual machine optimized for performance with [RISC-V-based](https://en.wikipedia.org/wiki/RISC-V){target=\_blank} architecture, supporting Solidity and additional high-performance languages. It serves as the core execution environment, integrated directly within the runtime. It features:
@@ -20,8 +22,6 @@ The Asset Hub smart contracts solution includes multiple components to ensure Et
2022

2123
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.
2224

23-
--8<-- 'text/smart-contracts/polkaVM-warning.md'
24-
2525
## Architecture
2626

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

tutorials/smart-contracts/demo-aplications/deploying-uniswap-v2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ Decentralized exchanges (DEXs) are a cornerstone of the DeFi ecosystem, allowing
1111

1212
This tutorial will guide you through how Uniswap V2 works so you can take advantage of it in your projects deployed to Polkadot Hub. By understanding these contracts, you'll gain hands-on experience with one of the most influential DeFi protocols and understand how it functions across blockchain ecosystems.
1313

14+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
15+
1416
## Prerequisites
1517

1618
Before starting, make sure you have:
@@ -32,8 +34,6 @@ Let's start by cloning the Uniswap V2 project:
3234
cd polkavm-hardhat-examples/uniswap-v2-polkadot/
3335
```
3436
35-
--8<-- 'text/smart-contracts/polkaVM-warning.md'
36-
3737
2. Install the required dependencies:
3838
3939
```bash

tutorials/smart-contracts/deploy-erc20.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ tutorial_badge: Beginner
1010

1111
[ERC-20](https://eips.ethereum.org/EIPS/eip-20){target=\_blank} tokens are fungible tokens commonly used for creating cryptocurrencies, governance tokens, and staking mechanisms. Polkadot Hub enables easy token deployment with Ethereum-compatible smart contracts via PolkaVM.
1212

13-
--8<-- 'text/smart-contracts/polkaVM-warning.md'
14-
1513
This tutorial covers deploying an ERC-20 contract on the Polkadot Hub TestNet using [Polkadot Remix IDE](https://remix.polkadot.io){target=\_blank}, a web-based development tool. [OpenZeppelin's ERC-20 contracts]({{ dependencies.repositories.open_zeppelin_contracts.repository_url}}/tree/{{ dependencies.repositories.open_zeppelin_contracts.version}}/contracts/token/ERC20){target=\_blank} are used for security and compliance.
1614

15+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
16+
1717
## Prerequisites
1818

1919
Before starting, make sure you have:

tutorials/smart-contracts/deploy-nft.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ tutorial_badge: Beginner
1010

1111
Non-Fungible Tokens (NFTs) represent unique digital assets commonly used for digital art, collectibles, gaming, and identity verification. Polkadot Hub supports Ethereum-compatible smart contracts through PolkaVM, enabling straightforward NFT deployment.
1212

13-
--8<-- 'text/smart-contracts/polkaVM-warning.md'
14-
1513
This tutorial guides you through deploying an [ERC-721](https://eips.ethereum.org/EIPS/eip-721){target=\_blank} NFT contract on the Polkadot Hub TestNet using the [Polkadot Remix IDE](https://remix.polkadot.io){target=\_blank}, a web-based development environment. To ensure security and standard compliance, it uses [OpenZeppelin's NFT contracts]({{ dependencies.repositories.open_zeppelin_contracts.repository_url}}/tree/{{ dependencies.repositories.open_zeppelin_contracts.version}}){target=\_blank} implementation.
1614

15+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
16+
1717
## Prerequisites
1818

1919
Before starting, make sure you have:

tutorials/smart-contracts/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ template: index-page.html
88

99
Get started with deploying and interacting with smart contracts on Polkadot through practical, hands-on tutorials. Whether you're a beginner or an experienced developer, these guides will help you navigate the entire development lifecycle.
1010

11+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
12+
1113
## What to Expect from These Tutorials
1214

1315
- **Beginner to advanced** – suitable for developers of all levels
@@ -24,8 +26,6 @@ Jump into the tutorials and learn how to:
2426

2527
Choose a tutorial below and start coding today!
2628

27-
--8<-- 'text/smart-contracts/polkaVM-warning.md'
28-
2929
## In This Section
3030

3131
:::INSERT_IN_THIS_SECTION:::

tutorials/smart-contracts/launch-your-first-project/create-dapp-ethers-js.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ Decentralized applications (dApps) have become a cornerstone of the Web3 ecosyst
1212

1313
In this tutorial, you'll build a complete dApp that interacts with a smart contract deployed on the Polkadot Hub TestNet. It will use [Ethers.js](/develop/smart-contracts/libraries/ethers-js){target=\_blank} to interact with the blockchain and [Next.js](https://nextjs.org/){target=\_blank} as the frontend framework. By the end of this tutorial, you'll have a functional dApp that allows users to connect their wallets, read data from the blockchain, and execute transactions.
1414

15+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
16+
1517
## Prerequisites
1618

1719
Before you begin, make sure you have:
@@ -182,5 +184,4 @@ To get started right away with a working example, you can clone the repository a
182184
```
183185
git clone https://github.com/polkadot-developers/polkavm-storage-contract-dapps.git -b v0.0.2
184186
cd polkavm-storage-contract-dapps/ethers-dapp
185-
```
186-
--8<-- 'text/smart-contracts/polkaVM-warning.md'
187+
```

0 commit comments

Comments
 (0)