Skip to content

Commit 87a0c52

Browse files
committed
llms
1 parent 71d9175 commit 87a0c52

File tree

5 files changed

+74
-54
lines changed

5 files changed

+74
-54
lines changed

.ai/categories/polkadot-protocol.md

Lines changed: 23 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8352,7 +8352,7 @@ This guide explains how assets are created, managed, and moved across chains, in
83528352

83538353
## Why Use Polkadot Hub?
83548354

8355-
The Polkadot relay chain supports only its native token (DOT). Polkadot Hub fills this gap by providing a standardized framework for creating and managing fungible and non-fungible assets. It enables projects to issue tokens, manage supply, and transfer assets across parachains.
8355+
Polkadot Hub provides a standardized framework for creating and managing fungible and non-fungible assets. Projects can issue tokens, manage supply, and transfer assets across parachains, extending the functionality of the Polkadot relay chain, which only supports its native token (DOT).
83568356

83578357
**Key features**:
83588358

@@ -8380,7 +8380,7 @@ Each asset is identified by a unique ID and stores:
83808380
- Sufficiency–whether the asset can keep an account alive without DOT
83818381
- Metadata (name, symbol, decimals)
83828382

8383-
If a balance falls below the configured minimum, it may be removed as “dust.” This ensures efficient storage while giving developers control over asset economics.
8383+
If a balance falls below the configured minimum, called the [existential deposit](/reference/glossary/#existential-deposit){target=\_blank}, it may be removed as “dust.” This ensures efficient storage while giving developers control over asset economics.
83848384

83858385
## How Native Assets Work
83868386

@@ -8453,9 +8453,9 @@ Delegated transfers simplify multi-step transactions and enable complex asset fl
84538453

84548454
## How Foreign Assets Work
84558455

8456-
Foreign assets are assets originating from other chains and are managed on Polkadot Hub via the Foreign Assets pallet. This pallet provides similar operations as the native Assets pallet, enabling transfers, balance checks, and other standard asset operations. Most operations—like transfers and balance queries—use the same API, but with a few key differences:
8456+
Foreign assets are assets originating from other chains and are managed on Polkadot Hub via an instance of the Assets pallet that is configured specifically for foreign assets. It enables transfers, balance checks, and other standard asset operations, while handling foreign-asset specifics such as:
84578457

8458-
- **Asset Identifier**: Foreign assets use an XCM multilocation as their identifier, rather than a numeric AssetId. This ensures assets from different chains can be referenced and moved safely across parachains.
8458+
- **Asset identifiers**: Foreign assets use an XCM multilocation as their identifier, rather than a numeric AssetId. This ensures assets from different chains can be referenced and moved safely across parachains.
84598459

84608460
- **Transfers**: Once registered on Polkadot Hub, foreign assets can be transferred between accounts just like native assets. If supported, they can also be returned to their original blockchain using cross-chain messaging.
84618461

@@ -8478,31 +8478,38 @@ Page Title: Polkadot Hub Smart Contracts
84788478

84798479
# Smart Contracts on Polkadot Hub
84808480

8481-
!!! smartcontract "PolkaVM Preview Release"
8482-
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
84838481
## Introduction
84848482

8485-
Polkadot Hub introduces native support for smart contracts through REVM, a high-performance, Rust-based implementation of the Ethereum Virtual Machine. This enables developers to deploy and interact with Solidity contracts directly on Polkadot Hub, combining Ethereum compatibility with Polkadot’s cross-chain interoperability and shared security.
8486-
8487-
REVM brings Ethereum compatibility to Polkadot Hub, letting developers run Solidity contracts alongside Polkadot’s native features—such as governance, treasury, multisig, and XCM—within a unified, interoperable runtime environment.
8488-
8489-
This guide explains how smart contracts are deployed, executed, and integrated on Polkadot Hub using REVM.
8490-
8483+
Polkadot Hub enables developers to deploy and interact with Solidity contracts through REVM, a high-performance, Rust-based Ethereum Virtual Machine implementation. This brings Ethereum compatibility to Polkadot Hub, letting teams use familiar Solidity tooling, integrate with on-chain features like governance and XCM, and take advantage of cross-chain interoperability.
84918484

8485+
For projects that require maximum computational performance, Polkadot Hub also supports PolkaVM (PVM), a native RISC-V execution engine. PVM is optional and designed for high-throughput, performance-intensive smart contracts.
84928486

84938487
### REVM Smart Contracts
84948488

8495-
8496-
8497-
REVM brings full EVM compatibility to Polkadot Hub through a fast, memory-safe Rust implementation of the Ethereum Virtual Machine. Unlike PolkaVM, which compiles contracts to RISC-V for native execution, REVM executes standard Ethereum bytecode directly—making it ideal for teams who want to migrate existing Solidity projects to Polkadot with minimal changes.
8489+
[REVM](https://github.com/bluealloy/revm){target=_blank} brings full EVM compatibility to Polkadot Hub through a fast, memory-safe Rust implementation of the Ethereum Virtual Machine. Unlike PolkaVM, which compiles contracts to RISC-V for native execution, REVM executes standard Ethereum bytecode directly—making it ideal for teams who want to migrate existing Solidity projects to Polkadot with minimal changes.
84988490

84998491
With REVM, developers can:
85008492

85018493
- Deploy existing Solidity contracts without rewriting them.
85028494
- Use familiar Ethereum tooling like Hardhat, Foundry, Remix, and MetaMask.
85038495
- Interact with other parachains and on-chain assets using XCM and Polkadot Hub features.
85048496

8505-
REVM builds on Rust’s safety guarantees and performance optimizations while retaining full opcode compatibility with the EVM. This provides a reliable path for Ethereum-native developers to access Polkadot’s cross-chain ecosystem.
8497+
REVM builds on Rust’s safety guarantees and performance optimizations while retaining full opcode compatibility with the EVM. This provides a reliable path for Ethereum-native developers to access Polkadot’s native features—such as governance, treasury, multisig, and XCM—within a unified, interoperable runtime environment.
8498+
8499+
### PVM Smart Contracts
8500+
8501+
PVM is Polkadot Hub’s native, high-performance smart contract engine. Instead of emulating EVM bytecode, it runs contracts compiled to a [RISC-V](https://en.wikipedia.org/wiki/RISC-V){target=_blank} instruction set, unlocking higher performance and parallel execution while staying friendly to Ethereum-style development.
8502+
8503+
With PVM, developers can:
8504+
8505+
- Write Solidity contracts and use familiar tooling (e.g., Hardhat, Foundry) targeting PVM
8506+
- Benefit from fast, predictable execution with carefully metered gas/weight.
8507+
- Access detailed observability through Substrate events and contract logs for indexing and debugging.
8508+
8509+
PolkaVM delivers maximum performance for computationally intensive contracts, offering a native, high-throughput option for Ethereum-style developers on Polkadot Hub.
8510+
8511+
!!! smartcontract "PolkaVM Preview Release"
8512+
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
85068513

85078514

85088515
---

.ai/pages/reference-polkadot-hub-assets.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This guide explains how assets are created, managed, and moved across chains, in
1717

1818
## Why Use Polkadot Hub?
1919

20-
The Polkadot relay chain supports only its native token (DOT). Polkadot Hub fills this gap by providing a standardized framework for creating and managing fungible and non-fungible assets. It enables projects to issue tokens, manage supply, and transfer assets across parachains.
20+
Polkadot Hub provides a standardized framework for creating and managing fungible and non-fungible assets. Projects can issue tokens, manage supply, and transfer assets across parachains, extending the functionality of the Polkadot relay chain, which only supports its native token (DOT).
2121

2222
**Key features**:
2323

@@ -45,7 +45,7 @@ Each asset is identified by a unique ID and stores:
4545
- Sufficiency–whether the asset can keep an account alive without DOT
4646
- Metadata (name, symbol, decimals)
4747

48-
If a balance falls below the configured minimum, it may be removed as “dust.” This ensures efficient storage while giving developers control over asset economics.
48+
If a balance falls below the configured minimum, called the [existential deposit](/reference/glossary/#existential-deposit){target=\_blank}, it may be removed as “dust.” This ensures efficient storage while giving developers control over asset economics.
4949

5050
## How Native Assets Work
5151

@@ -118,9 +118,9 @@ Delegated transfers simplify multi-step transactions and enable complex asset fl
118118

119119
## How Foreign Assets Work
120120

121-
Foreign assets are assets originating from other chains and are managed on Polkadot Hub via the Foreign Assets pallet. This pallet provides similar operations as the native Assets pallet, enabling transfers, balance checks, and other standard asset operations. Most operations—like transfers and balance queries—use the same API, but with a few key differences:
121+
Foreign assets are assets originating from other chains and are managed on Polkadot Hub via an instance of the Assets pallet that is configured specifically for foreign assets. It enables transfers, balance checks, and other standard asset operations, while handling foreign-asset specifics such as:
122122

123-
- **Asset Identifier**: Foreign assets use an XCM multilocation as their identifier, rather than a numeric AssetId. This ensures assets from different chains can be referenced and moved safely across parachains.
123+
- **Asset identifiers**: Foreign assets use an XCM multilocation as their identifier, rather than a numeric AssetId. This ensures assets from different chains can be referenced and moved safely across parachains.
124124

125125
- **Transfers**: Once registered on Polkadot Hub, foreign assets can be transferred between accounts just like native assets. If supported, they can also be returned to their original blockchain using cross-chain messaging.
126126

.ai/pages/reference-polkadot-hub-smart-contracts.md

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,35 @@ url: https://docs.polkadot.com/reference/polkadot-hub/smart-contracts/
77

88
# Smart Contracts on Polkadot Hub
99

10-
!!! smartcontract "PolkaVM Preview Release"
11-
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
1210
## Introduction
1311

14-
Polkadot Hub introduces native support for smart contracts through REVM, a high-performance, Rust-based implementation of the Ethereum Virtual Machine. This enables developers to deploy and interact with Solidity contracts directly on Polkadot Hub, combining Ethereum compatibility with Polkadot’s cross-chain interoperability and shared security.
15-
16-
REVM brings Ethereum compatibility to Polkadot Hub, letting developers run Solidity contracts alongside Polkadot’s native features—such as governance, treasury, multisig, and XCM—within a unified, interoperable runtime environment.
17-
18-
This guide explains how smart contracts are deployed, executed, and integrated on Polkadot Hub using REVM.
19-
12+
Polkadot Hub enables developers to deploy and interact with Solidity contracts through REVM, a high-performance, Rust-based Ethereum Virtual Machine implementation. This brings Ethereum compatibility to Polkadot Hub, letting teams use familiar Solidity tooling, integrate with on-chain features like governance and XCM, and take advantage of cross-chain interoperability.
2013

14+
For projects that require maximum computational performance, Polkadot Hub also supports PolkaVM (PVM), a native RISC-V execution engine. PVM is optional and designed for high-throughput, performance-intensive smart contracts.
2115

2216
### REVM Smart Contracts
2317

24-
25-
26-
REVM brings full EVM compatibility to Polkadot Hub through a fast, memory-safe Rust implementation of the Ethereum Virtual Machine. Unlike PolkaVM, which compiles contracts to RISC-V for native execution, REVM executes standard Ethereum bytecode directly—making it ideal for teams who want to migrate existing Solidity projects to Polkadot with minimal changes.
18+
[REVM](https://github.com/bluealloy/revm){target=_blank} brings full EVM compatibility to Polkadot Hub through a fast, memory-safe Rust implementation of the Ethereum Virtual Machine. Unlike PolkaVM, which compiles contracts to RISC-V for native execution, REVM executes standard Ethereum bytecode directly—making it ideal for teams who want to migrate existing Solidity projects to Polkadot with minimal changes.
2719

2820
With REVM, developers can:
2921

3022
- Deploy existing Solidity contracts without rewriting them.
3123
- Use familiar Ethereum tooling like Hardhat, Foundry, Remix, and MetaMask.
3224
- Interact with other parachains and on-chain assets using XCM and Polkadot Hub features.
3325

34-
REVM builds on Rust’s safety guarantees and performance optimizations while retaining full opcode compatibility with the EVM. This provides a reliable path for Ethereum-native developers to access Polkadot’s cross-chain ecosystem.
26+
REVM builds on Rust’s safety guarantees and performance optimizations while retaining full opcode compatibility with the EVM. This provides a reliable path for Ethereum-native developers to access Polkadot’s native features—such as governance, treasury, multisig, and XCM—within a unified, interoperable runtime environment.
27+
28+
### PVM Smart Contracts
29+
30+
PVM is Polkadot Hub’s native, high-performance smart contract engine. Instead of emulating EVM bytecode, it runs contracts compiled to a [RISC-V](https://en.wikipedia.org/wiki/RISC-V){target=_blank} instruction set, unlocking higher performance and parallel execution while staying friendly to Ethereum-style development.
31+
32+
With PVM, developers can:
33+
34+
- Write Solidity contracts and use familiar tooling (e.g., Hardhat, Foundry) targeting PVM
35+
- Benefit from fast, predictable execution with carefully metered gas/weight.
36+
- Access detailed observability through Substrate events and contract logs for indexing and debugging.
37+
38+
PolkaVM delivers maximum performance for computationally intensive contracts, offering a native, high-throughput option for Ethereum-style developers on Polkadot Hub.
39+
40+
!!! smartcontract "PolkaVM Preview Release"
41+
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.

.ai/site-index.json

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8618,12 +8618,12 @@
86188618
}
86198619
],
86208620
"stats": {
8621-
"chars": 7357,
8622-
"words": 1055,
8621+
"chars": 7397,
8622+
"words": 1054,
86238623
"headings": 11,
8624-
"estimated_token_count_total": 1474
8624+
"estimated_token_count_total": 1485
86258625
},
8626-
"hash": "sha256:cb64c965363eca622b5a8e82915ee52546a906c2451d70f8ea62917af4900c46",
8626+
"hash": "sha256:0d59eef1edd07a4d4d1d45e64a4c0c74c7a1b06ff9bc3695541164e8806e2467",
86278627
"token_estimator": "heuristic-v1"
86288628
},
86298629
{
@@ -8988,7 +8988,7 @@
89888988
],
89898989
"raw_md_url": "https://raw.githubusercontent.com/polkadot-developers/polkadot-docs/master/.ai/pages/reference-polkadot-hub-smart-contracts.md",
89908990
"html_url": "https://docs.polkadot.com/reference/polkadot-hub/smart-contracts/",
8991-
"preview": "!!! smartcontract \"PolkaVM Preview Release\" PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**. ## Introduction",
8991+
"preview": "Polkadot Hub enables developers to deploy and interact with Solidity contracts through REVM, a high-performance, Rust-based Ethereum Virtual Machine implementation. This brings Ethereum compatibility to Polkadot Hub, letting teams use familiar Solidity tooling, integrate with on-chain features like governance and XCM, and take advantage of cross-chain interoperability.",
89928992
"outline": [
89938993
{
89948994
"depth": 2,
@@ -8999,15 +8999,20 @@
89998999
"depth": 3,
90009000
"title": "REVM Smart Contracts",
90019001
"anchor": "revm-smart-contracts"
9002+
},
9003+
{
9004+
"depth": 3,
9005+
"title": "PVM Smart Contracts",
9006+
"anchor": "pvm-smart-contracts"
90029007
}
90039008
],
90049009
"stats": {
9005-
"chars": 1792,
9006-
"words": 246,
9007-
"headings": 2,
9008-
"estimated_token_count_total": 272
9010+
"chars": 2661,
9011+
"words": 366,
9012+
"headings": 3,
9013+
"estimated_token_count_total": 489
90099014
},
9010-
"hash": "sha256:85e49e0aeeb7e40838972df91e1e93e446448a916bdab5495e0a6aa89b135bb1",
9015+
"hash": "sha256:5424e83946769eca436bd195d528b46a3f530bfadd9bdcceff54f9178a5e5ccb",
90119016
"token_estimator": "heuristic-v1"
90129017
},
90139018
{

0 commit comments

Comments
 (0)