Skip to content

Commit dcdb2f5

Browse files
committed
add banner develop/smart contract
1 parent defc73b commit dcdb2f5

File tree

8 files changed

+16
-0
lines changed

8 files changed

+16
-0
lines changed

develop/smart-contracts/block-explorers/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ These block explorers provide essential capabilities for interacting with smart
2424

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

27+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
28+
2729
<!-- ### Subscan
2830
2931
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.

develop/smart-contracts/faqs.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ Choose a parachain if:
3535

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

38+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
39+
3840
- **Performance**: RISC-V register-based architecture vs. stack-based EVM.
3941
- **Resource metering**: Three dimensions (`ref_time`, `proof_size`, `storage_deposit`) vs. single gas metric.
4042
- **Memory management**: Hard memory limits per contract vs. gas-based soft limits.

develop/smart-contracts/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Follow this step-by-step process to develop and deploy smart contracts in the Po
1616

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

19+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
20+
1921
## Additional Resources
2022
<div class="grid cards" markdown>
2123

develop/smart-contracts/libraries/viem.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ npm init -y
5353

5454
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:
5555

56+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
57+
5658
```bash
5759
# Install viem and Revive
5860
npm install viem @parity/revive

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@ For instance, to fetch the latest block number of the chain, you can use the fol
9797

9898
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:
9999

100+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
101+
100102
```bash
101103
npm install --save-dev @parity/revive
102104
```

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ Before deploying your contracts, make sure you've compiled them and obtained two
6363
- An ABI (.json) file, which provides a JSON interface describing the contract's functions and how to interact with it
6464
- 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
6565

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

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

develop/smart-contracts/overview.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ These guides explore the diverse smart contract options available in the Polkado
1919

2020
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.
2121

22+
--8<-- 'text/smart-contracts/polkaVM-warning.md'
23+
2224
### Smart Contract Development
2325

2426
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.

develop/smart-contracts/precompiles/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ flowchart LR
3737
classDef edgeLabel background:#eceff3;
3838
```
3939

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

4244
Revive implements the standard set of Ethereum precompiles:

0 commit comments

Comments
 (0)