Skip to content

Commit 2d025b8

Browse files
committed
LLMS
1 parent 38bd98d commit 2d025b8

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

llms.txt

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6830,6 +6830,9 @@ These block explorers provide essential capabilities for interacting with smart
68306830

68316831
The following block explorers are available for PolkaVM smart contracts, providing specialized tools for monitoring and analyzing contract activity within the Polkadot ecosystem:
68326832

6833+
!!! warning "PolkaVM is in Alpha"
6834+
Smart contracts built with PolkaVM are still experimental, handle with care.
6835+
68336836
<!-- ### Subscan
68346837

68356838
Subscan is the flagship Polkadot ecosystem block explorer with comprehensive support for PolkaVM smart contracts. It provides robust transaction indexing, account analysis, and monitoring tools specifically optimized for Polkadot SDK-based networks.
@@ -7633,6 +7636,9 @@ Choose a parachain if:
76337636

76347637
Polkadot Hub uses [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design){target=\_blank} instead of traditional EVM:
76357638

7639+
!!! warning "PolkaVM is in Alpha"
7640+
Smart contracts built with PolkaVM are still experimental, handle with care.
7641+
76367642
- **Performance**: RISC-V register-based architecture vs. stack-based EVM.
76377643
- **Resource metering**: Three dimensions (`ref_time`, `proof_size`, `storage_deposit`) vs. single gas metric.
76387644
- **Memory management**: Hard memory limits per contract vs. gas-based soft limits.
@@ -7764,6 +7770,9 @@ Follow this step-by-step process to develop and deploy smart contracts in the Po
77647770

77657771
[timeline(polkadot-docs/.snippets/text/develop/smart-contracts/index/index-timeline.json)]
77667772

7773+
!!! warning "PolkaVM is in Alpha"
7774+
Smart contracts built with PolkaVM are still experimental, handle with care.
7775+
77677776
## Additional Resources
77687777
<div class="grid cards" markdown>
77697778

@@ -9352,6 +9361,9 @@ npm init -y
93529361

93539362
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:
93549363

9364+
!!! warning "PolkaVM is in Alpha"
9365+
Smart contracts built with PolkaVM are still experimental, handle with care.
9366+
93559367
```bash
93569368
# Install viem and Revive
93579369
npm install viem @parity/revive
@@ -10407,6 +10419,9 @@ main();
1040710419

1040810420
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:
1040910421

10422+
!!! warning "PolkaVM is in Alpha"
10423+
Smart contracts built with PolkaVM are still experimental, handle with care.
10424+
1041010425
```bash
1041110426
npm install --save-dev @parity/revive
1041210427
```
@@ -10789,6 +10804,9 @@ Before deploying your contracts, make sure you've compiled them and obtained two
1078910804
- An ABI (.json) file, which provides a JSON interface describing the contract's functions and how to interact with it
1079010805
- 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
1079110806

10807+
!!! warning "PolkaVM is in Alpha"
10808+
Smart contracts built with PolkaVM are still experimental, handle with care.
10809+
1079210810
To follow this guide, you can use the following solidity contract as an example:
1079310811

1079410812
```solidity title="Storage.sol"
@@ -11179,6 +11197,9 @@ These guides explore the diverse smart contract options available in the Polkado
1117911197

1118011198
Polkadot Hub enables smart contract deployment and execution through PolkaVM, a cutting-edge virtual machine designed specifically for the Polkadot ecosystem. This native integration allows developers to deploy smart contracts directly on Polkadot's system chain while maintaining compatibility with Ethereum development tools and workflows.
1118111199

11200+
!!! warning "PolkaVM is in Alpha"
11201+
Smart contracts built with PolkaVM are still experimental, handle with care.
11202+
1118211203
### Smart Contract Development
1118311204

1118411205
The smart contract platform on Polkadot Hub combines _Polkadot's robust security and scalability_ with the extensive Ethereum development ecosystem. Developers can utilize familiar Ethereum libraries for contract interactions and leverage industry-standard development environments for writing and testing smart contracts.
@@ -11296,6 +11317,9 @@ flowchart LR
1129611317
classDef edgeLabel background:#eceff3;
1129711318
```
1129811319

11320+
!!! warning "PolkaVM is in Alpha"
11321+
Smart contracts built with PolkaVM are still experimental, handle with care.
11322+
1129911323
## Standard Precompiles in Polkadot Hub
1130011324

1130111325
Revive implements the standard set of Ethereum precompiles:
@@ -24158,6 +24182,9 @@ description: Compares EVM and PolkaVM, highlighting key architectural difference
2415824182

2415924183
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.
2416024184

24185+
!!! warning "PolkaVM is in Alpha"
24186+
Smart contracts built with PolkaVM are still experimental, handle with care.
24187+
2416124188
## Core Virtual Machine Architecture
2416224189

2416324190
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.
@@ -24431,6 +24458,9 @@ Explore foundational concepts that shape smart contract functionality on Polkado
2443124458
- **Networks** – an overview of smart contract-enabled networks within the Polkadot ecosystem
2443224459
- **Blocks, transactions, and fees** – understanding transaction lifecycle, execution fees, and resource management
2443324460

24461+
!!! warning "PolkaVM is in Alpha"
24462+
Smart contracts built with PolkaVM are still experimental, handle with care.
24463+
2443424464
## In This Section
2443524465

2443624466
:::INSERT_IN_THIS_SECTION:::
@@ -24540,6 +24570,9 @@ This guide outlines the primary approaches to developing smart contracts in the
2454024570
- **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
2454124571
- **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
2454224572

24573+
!!! warning "PolkaVM is in Alpha"
24574+
Smart contracts built with PolkaVM are still experimental, handle with care.
24575+
2454324576
You'll explore the key differences between these development paths, along with considerations for parachain developers integrating smart contract functionality.
2454424577

2454524578
!!!note "Parachain Developer?"
@@ -24694,6 +24727,9 @@ The Asset Hub smart contracts solution includes multiple components to ensure Et
2469424727

2469524728
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.
2469624729

24730+
!!! warning "PolkaVM is in Alpha"
24731+
Smart contracts built with PolkaVM are still experimental, handle with care.
24732+
2469724733
## Architecture
2469824734

2469924735
The smart contract solution consists of the following key components that work together to enable Ethereum compatibility on Polkadot-based chains:
@@ -35072,6 +35108,9 @@ Let's start by cloning the Uniswap V2 project:
3507235108
cd polkavm-hardhat-examples/uniswap-v2-polkadot/
3507335109
```
3507435110

35111+
!!! warning "PolkaVM is in Alpha"
35112+
Smart contracts built with PolkaVM are still experimental, handle with care.
35113+
3507535114
2. Install the required dependencies:
3507635115

3507735116
```bash
@@ -35316,6 +35355,9 @@ tutorial_badge: Beginner
3531635355

3531735356
[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.
3531835357

35358+
!!! warning "PolkaVM is in Alpha"
35359+
Smart contracts built with PolkaVM are still experimental, handle with care.
35360+
3531935361
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.
3532035362

3532135363
## Prerequisites
@@ -35479,6 +35521,9 @@ tutorial_badge: Beginner
3547935521

3548035522
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.
3548135523

35524+
!!! warning "PolkaVM is in Alpha"
35525+
Smart contracts built with PolkaVM are still experimental, handle with care.
35526+
3548235527
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.
3548335528

3548435529
## Prerequisites
@@ -35655,6 +35700,9 @@ Jump into the tutorials and learn how to:
3565535700

3565635701
Choose a tutorial below and start coding today!
3565735702

35703+
!!! warning "PolkaVM is in Alpha"
35704+
Smart contracts built with PolkaVM are still experimental, handle with care.
35705+
3565835706
## In This Section
3565935707

3566035708
:::INSERT_IN_THIS_SECTION:::
@@ -36489,6 +36537,8 @@ To get started right away with a working example, you can clone the repository a
3648936537
git clone https://github.com/polkadot-developers/polkavm-storage-contract-dapps.git -b v0.0.2
3649036538
cd polkavm-storage-contract-dapps/ethers-dapp
3649136539
```
36540+
!!! warning "PolkaVM is in Alpha"
36541+
Smart contracts built with PolkaVM are still experimental, handle with care.
3649236542
--- END CONTENT ---
3649336543

3649436544
Doc-Content: https://docs.polkadot.com/tutorials/smart-contracts/launch-your-first-project/create-dapp-viem/
@@ -37295,6 +37345,9 @@ git clone https://github.com/polkadot-developers/polkavm-storage-contract-dapps.
3729537345
cd polkavm-storage-contract-dapps/viem-dapp
3729637346
```
3729737347

37348+
!!! warning "PolkaVM is in Alpha"
37349+
Smart contracts built with PolkaVM are still experimental, handle with care.
37350+
3729837351
## Where to Go Next
3729937352

3730037353
<div class="grid cards" markdown>
@@ -37453,6 +37506,9 @@ module.exports = {
3745337506
- `localNode` - runs a PolkaVM instance on `http://127.0.0.1:8545` for local development and testing
3745437507
- `passetHub` - connects to the the Polkadot Hub TestNet network using a predefined RPC URL and a private key stored in environment variables
3745537508

37509+
!!! warning "PolkaVM is in Alpha"
37510+
Smart contracts built with PolkaVM are still experimental, handle with care.
37511+
3745637512
7. Export your private key and save it in your Hardhat environment:
3745737513

3745837514
```bash

0 commit comments

Comments
 (0)