Skip to content

Commit c64b29d

Browse files
committed
llms
1 parent ef2e0fa commit c64b29d

File tree

1 file changed

+34
-33
lines changed

1 file changed

+34
-33
lines changed

llms.txt

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

93389338
[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.
93399339

9340+
!!! smartcontract "PolkaVM Alpha Release"
9341+
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
9342+
93409343
## Prerequisites
93419344

93429345
Before getting started, ensure you have the following installed:
@@ -9381,9 +9384,6 @@ npm init -y
93819384

93829385
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:
93839386

9384-
!!! smartcontract "PolkaVM Alpha Release"
9385-
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
9386-
93879387
```bash
93889388
# Install viem and Revive
93899389
npm install viem @parity/revive
@@ -10320,6 +10320,9 @@ Interacting with blockchains typically requires an interface between your applic
1032010320

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

10323+
!!! smartcontract "PolkaVM Alpha Release"
10324+
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
10325+
1032310326
## Prerequisites
1032410327

1032510328
Before getting started, ensure you have the following installed:
@@ -10442,9 +10445,6 @@ main();
1044210445

1044310446
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:
1044410447

10445-
!!! smartcontract "PolkaVM Alpha Release"
10446-
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
10447-
1044810448
```bash
1044910449
npm install --save-dev @parity/revive
1045010450
```
@@ -10742,6 +10742,9 @@ Interacting with blockchains typically requires an interface between your applic
1074210742

1074310743
This guide illustrates how to utilize Web3.py for interactions with Polkadot Hub.
1074410744

10745+
!!! smartcontract "PolkaVM Alpha Release"
10746+
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
10747+
1074510748
## Set Up the Project
1074610749

1074710750
1. To start working with Web3.py, begin by initializing your project:
@@ -10827,9 +10830,6 @@ Before deploying your contracts, make sure you've compiled them and obtained two
1082710830
- An ABI (.json) file, which provides a JSON interface describing the contract's functions and how to interact with it
1082810831
- 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
1082910832

10830-
!!! smartcontract "PolkaVM Alpha Release"
10831-
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
10832-
1083310833
To follow this guide, you can use the following solidity contract as an example:
1083410834

1083510835
```solidity title="Storage.sol"
@@ -11317,6 +11317,9 @@ Precompiles serve a dual purpose in the Polkadot ecosystem: they not only enable
1131711317

1131811318
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).
1131911319

11320+
!!! smartcontract "PolkaVM Alpha Release"
11321+
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
11322+
1132011323
## What are Precompiles?
1132111324

1132211325
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.
@@ -11343,9 +11346,6 @@ flowchart LR
1134311346
classDef edgeLabel background:#eceff3;
1134411347
```
1134511348

11346-
!!! smartcontract "PolkaVM Alpha Release"
11347-
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
11348-
1134911349
## Standard Precompiles in Polkadot Hub
1135011350

1135111351
Revive implements the standard set of Ethereum precompiles:
@@ -24757,6 +24757,9 @@ description: Discover PolkaVM, a high-performance smart contract VM for Polkadot
2475724757

2475824758
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.
2475924759

24760+
!!! smartcontract "PolkaVM Alpha Release"
24761+
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
24762+
2476024763
## PolkaVM
2476124764

2476224765
[**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:
@@ -24768,9 +24771,6 @@ The Asset Hub smart contracts solution includes multiple components to ensure Et
2476824771

2476924772
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.
2477024773

24771-
!!! smartcontract "PolkaVM Alpha Release"
24772-
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
24773-
2477424774
## Architecture
2477524775

2477624776
The smart contract solution consists of the following key components that work together to enable Ethereum compatibility on Polkadot-based chains:
@@ -35128,6 +35128,9 @@ Decentralized exchanges (DEXs) are a cornerstone of the DeFi ecosystem, allowing
3512835128

3512935129
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.
3513035130

35131+
!!! smartcontract "PolkaVM Alpha Release"
35132+
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
35133+
3513135134
## Prerequisites
3513235135

3513335136
Before starting, make sure you have:
@@ -35149,9 +35152,6 @@ Let's start by cloning the Uniswap V2 project:
3514935152
cd polkavm-hardhat-examples/uniswap-v2-polkadot/
3515035153
```
3515135154

35152-
!!! smartcontract "PolkaVM Alpha Release"
35153-
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
35154-
3515535155
2. Install the required dependencies:
3515635156

3515735157
```bash
@@ -35399,11 +35399,11 @@ tutorial_badge: Beginner
3539935399

3540035400
[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.
3540135401

35402+
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.
35403+
3540235404
!!! smartcontract "PolkaVM Alpha Release"
3540335405
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
3540435406

35405-
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.
35406-
3540735407
## Prerequisites
3540835408

3540935409
Before starting, make sure you have:
@@ -35565,11 +35565,11 @@ tutorial_badge: Beginner
3556535565

3556635566
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.
3556735567

35568+
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.
35569+
3556835570
!!! smartcontract "PolkaVM Alpha Release"
3556935571
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
3557035572

35571-
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.
35572-
3557335573
## Prerequisites
3557435574

3557535575
Before starting, make sure you have:
@@ -35728,6 +35728,9 @@ template: index-page.html
3572835728

3572935729
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.
3573035730

35731+
!!! smartcontract "PolkaVM Alpha Release"
35732+
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
35733+
3573135734
## What to Expect from These Tutorials
3573235735

3573335736
- **Beginner to advanced** – suitable for developers of all levels
@@ -35744,9 +35747,6 @@ Jump into the tutorials and learn how to:
3574435747

3574535748
Choose a tutorial below and start coding today!
3574635749

35747-
!!! smartcontract "PolkaVM Alpha Release"
35748-
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
35749-
3575035750
## In This Section
3575135751

3575235752
:::INSERT_IN_THIS_SECTION:::
@@ -35964,6 +35964,9 @@ Decentralized applications (dApps) have become a cornerstone of the Web3 ecosyst
3596435964

3596535965
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.
3596635966

35967+
!!! smartcontract "PolkaVM Alpha Release"
35968+
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
35969+
3596735970
## Prerequisites
3596835971

3596935972
Before you begin, make sure you have:
@@ -36584,8 +36587,6 @@ To get started right away with a working example, you can clone the repository a
3658436587
git clone https://github.com/polkadot-developers/polkavm-storage-contract-dapps.git -b v0.0.2
3658536588
cd polkavm-storage-contract-dapps/ethers-dapp
3658636589
```
36587-
!!! smartcontract "PolkaVM Alpha Release"
36588-
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
3658936590
--- END CONTENT ---
3659036591

3659136592
Doc-Content: https://docs.polkadot.com/tutorials/smart-contracts/launch-your-first-project/create-dapp-viem/
@@ -36602,6 +36603,9 @@ Decentralized applications (dApps) are a key component of the Web3 ecosystem, en
3660236603

3660336604
This tutorial will guide you through building a fully functional dApp that interacts with a smart contract on Polkadot Hub. You'll use [Viem](https://viem.sh/){target=\_blank} for blockchain interactions and [Next.js](https://nextjs.org/){target=\_blank} for the frontend. By the end, you'll have a dApp that lets users connect their wallets, retrieve on-chain data, and execute transactions.
3660436605

36606+
!!! smartcontract "PolkaVM Alpha Release"
36607+
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
36608+
3660536609
## Prerequisites
3660636610

3660736611
Before getting started, ensure you have the following:
@@ -37392,9 +37396,6 @@ git clone https://github.com/polkadot-developers/polkavm-storage-contract-dapps.
3739237396
cd polkavm-storage-contract-dapps/viem-dapp
3739337397
```
3739437398

37395-
!!! smartcontract "PolkaVM Alpha Release"
37396-
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
37397-
3739837399
## Where to Go Next
3739937400

3740037401
<div class="grid cards" markdown>
@@ -37459,6 +37460,9 @@ tutorial_badge: Intermediate
3745937460

3746037461
After creating a smart contract, the next crucial steps are testing and deployment. Proper testing ensures your contract behaves as expected, while deployment makes your contract available on the blockchain. This tutorial will guide you through using Hardhat, a popular development environment, to test and deploy the `Storage.sol` contract you created in the [Create a Smart Contract](/tutorials/smart-contracts/launch-your-first-project/create-contracts/){target=\_blank} tutorial. For more information about Hardhat usage, check the [Hardhat guide](/develop/smart-contracts/dev-environments/hardhat/){target=\_blank}.
3746137462

37463+
!!! smartcontract "PolkaVM Alpha Release"
37464+
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
37465+
3746237466
## Prerequisites
3746337467

3746437468
Before starting, make sure you have:
@@ -37556,9 +37560,6 @@ module.exports = {
3755637560
- `localNode` - runs a PolkaVM instance on `http://127.0.0.1:8545` for local development and testing
3755737561
- `passetHub` - connects to the the Polkadot Hub TestNet network using a predefined RPC URL and a private key stored in environment variables
3755837562

37559-
!!! smartcontract "PolkaVM Alpha Release"
37560-
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
37561-
3756237563
7. Export your private key and save it in your Hardhat environment:
3756337564

3756437565
```bash

0 commit comments

Comments
 (0)