Skip to content

Commit 769cf99

Browse files
Update ink! to reflect Rust instead of Wasm (#765)
* Update ink! to reflect Rust instead of Wasm. Closes #750 * python3 scripts/generate_llms.py * Update .snippets/text/develop/smart-contracts/index/index-timeline.json Co-authored-by: Nicolás Hussein <[email protected]> * point to v6 docs * python3 scripts/generate_llms.py * ink! is moving towards PolkaVM * python3 scripts/generate_llms.py * Update to PolkaVM ink * python3 scripts/generate_llms.py --------- Co-authored-by: Nicolás Hussein <[email protected]>
1 parent 8894150 commit 769cf99

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
[
22
{
33
"title": "Choose a Smart Contract Platform",
4-
"content": "Select the platform that best fits your project requirements and development expertise: <br><br> - [**PolkaVM**](/develop/smart-contracts/overview#native-smart-contracts){target=_blank} - Native smart contracts on Polkadot Hub <br> - [**EVM (Parachain-based)**](/develop/smart-contracts/overview#parachain-contracts){target=_blank} - Ethereum Virtual Machine compatibility on parachains <br> - [**Wasm (ink!)**](/develop/smart-contracts/overview#wasm-ink){target=_blank} - WebAssembly contracts using Rust and ink!",
4+
"content": "Select the platform that best fits your project requirements and development expertise: <br><br> - [**PolkaVM**](/develop/smart-contracts/overview#native-smart-contracts){target=_blank} - Native smart contracts on Polkadot Hub <br> - [**EVM (Parachain-based)**](/develop/smart-contracts/overview#parachain-contracts){target=_blank} - Ethereum Virtual Machine compatibility on parachains <br> - [**Rust (ink!)**](/develop/smart-contracts/overview#other-smart-contract-environments){target=_blank} - contracts using Rust and ink!",
55
"icon": ":fontawesome-solid-1:"
66
},
77
{
88
"title": "Get Network Configuration Details",
9-
"content": "Configure your development environment with the appropriate network settings for your chosen platform: <br><br> - **PolkaVM** - [Connect to Polkadot](/develop/smart-contracts/connect-to-polkadot/){target=_blank} <br> - **EVM** - [Moonbeam Documentation](https://docs.moonbeam.network/){target=_blank}, [Astar Documentation](https://docs.astar.network/){target=_blank}, [Acala Documentation](https://wiki.acala.network/){target=_blank} <br> - **Wasm (ink!)** - depends on those parachains that implement `pallet-contracts`, for more information check the [ink! documentation](https://use.ink/how-it-works#why-include-pallet-contracts-on-a-parachain){target=_blank}",
9+
"content": "Configure your development environment with the appropriate network settings for your chosen platform: <br><br> - **PolkaVM** - [Connect to Polkadot](/develop/smart-contracts/connect-to-polkadot/){target=_blank} <br> - **EVM** - [Moonbeam Documentation](https://docs.moonbeam.network/){target=_blank}, [Astar Documentation](https://docs.astar.network/){target=_blank}, [Acala Documentation](https://wiki.acala.network/){target=_blank} <br> - **Rust (ink!)** - for more information check the [ink! documentation](https://use.ink){target=_blank}",
1010
"icon": ":fontawesome-solid-2:"
1111
},
1212
{
1313
"title": "Set Up Your Development Environment",
14-
"content": "Install and configure the necessary tools and frameworks for your chosen smart contract platform: <br><br> - **PolkaVM/EVM** - [Development Environments](/develop/smart-contracts/dev-environments/){target=_blank} <br> - **Wasm (ink!)** - [Development Environment Setup](https://use.ink/getting-started/setup){target=_blank}",
14+
"content": "Install and configure the necessary tools and frameworks for your chosen smart contract platform: <br><br> - **PolkaVM/EVM** - [Development Environments](/develop/smart-contracts/dev-environments/){target=_blank} <br> - **Rust (ink!)** - [Development Environment Setup](https://use.ink/getting-started/setup){target=_blank}",
1515
"icon": ":fontawesome-solid-3:"
1616
},
1717
{
1818
"title": "Write, Compile, Test, and Deploy Your Contracts",
19-
"content": "Develop your smart contracts, test their functionality, and deploy them to your chosen network: <br><br> - **PolkaVM/EVM** - [Solidity Development Guide](https://docs.soliditylang.org/en/v0.8.29/introduction-to-smart-contracts.html){target=_blank} <br> - **Wasm (ink!)** - [ink! Contract Structure](https://use.ink/basics/contract-template#librs){target=_blank}",
19+
"content": "Develop your smart contracts, test their functionality, and deploy them to your chosen network: <br><br> - **PolkaVM/EVM** - [Solidity Development Guide](https://docs.soliditylang.org/en/v0.8.29/introduction-to-smart-contracts.html){target=_blank} <br> - **Rust (ink!)** - [ink! Contract Structure](https://use.ink/basics/contract-template#librs){target=_blank}",
2020
"icon": ":fontawesome-solid-4:"
2121
},
2222
{
2323
"title": "Interact With Your Deployed Contracts",
24-
"content": "Utilize libraries and tools to interact with your deployed smart contracts and integrate them into applications: <br><br> - **PolkaVM/EVM** - [Contract Libraries](/develop/smart-contracts/libraries/) <br> - **Wasm (ink!)** - [Contract Interaction](https://use.ink/getting-started/calling-your-contract){target=_blank}",
24+
"content": "Utilize libraries and tools to interact with your deployed smart contracts and integrate them into applications: <br><br> - **PolkaVM/EVM** - [Contract Libraries](/develop/smart-contracts/libraries/) <br> - **Rust (ink!)** - [Contract Interaction](https://use.ink/getting-started/calling-your-contract){target=_blank}",
2525
"icon": ":fontawesome-solid-5:"
2626
}
2727
]

develop/smart-contracts/index.md

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

99
--8<-- 'text/smart-contracts/polkaVM-warning.md'
1010

11-
Polkadot allows scalable execution of smart contracts, offering cross-chain compatibility and lower fees than legacy L1 platforms. Polkadot provides developers with flexibility in building smart contracts, supporting both Solidity contracts executed by the [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design#polkavm){target=\_blank} (a Polkadot-native virtual machine for programming languages that can be compiled down to RISC-V) and EVM (Ethereum Virtual Machine), as well as Wasm-based contracts using ink! (written in Rust).
11+
Polkadot allows scalable execution of smart contracts, offering cross-chain compatibility and lower fees than legacy L1 platforms. Polkadot provides developers with flexibility in building smart contracts, supporting both Solidity contracts executed by the [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design#polkavm){target=\_blank} (a Polkadot-native virtual machine for programming languages that can be compiled down to RISC-V) and EVM (Ethereum Virtual Machine), as well as Rust-based contracts using ink!.
1212

13-
This section provides tools, resources, and guides for building and deploying smart contracts on parachains. [Parachains](/polkadot-protocol/architecture/parachains/overview/){target=\_blank} are specialized blockchains connected to the relay chain, benefiting from shared security and interoperability. Depending on your language and environment preference, you can develop contracts using Wasm/ink! or EVM-based solutions.
13+
This section provides tools, resources, and guides for building and deploying smart contracts on parachains. [Parachains](/polkadot-protocol/architecture/parachains/overview/){target=\_blank} are specialized blockchains connected to the relay chain, benefiting from shared security and interoperability. Depending on your language and environment preference, you can develop contracts using Rust/ink! or EVM-based solutions.
1414

1515
## Smart Contract Development Process
1616

develop/smart-contracts/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ description: Learn about smart contract development capabilities in the Polkadot
1111

1212
Polkadot offers developers multiple approaches to building and deploying smart contracts within its ecosystem. As a multi-chain network designed for interoperability, Polkadot provides various environments optimized for different developer preferences and application requirements. From native smart contract support on Polkadot Hub to specialized parachain environments, developers can choose the platform that best suits their technical needs while benefiting from Polkadot's shared security model and cross-chain messaging capabilities.
1313

14-
Whether you're looking for Ethereum compatibility through EVM-based parachains like [Moonbeam](https://docs.moonbeam.network/){target=\_blank}, [Astar](https://docs.astar.network/){target=\_blank}, and [Acala](https://evmdocs.acala.network/){target=\_blank} or prefer WebAssembly-based development with [ink!](https://use.ink/docs/v5/){target=\_blank}, the Polkadot ecosystem accommodates a range of diverse developers.
14+
Whether you're looking for Ethereum compatibility through EVM-based parachains like [Moonbeam](https://docs.moonbeam.network/){target=\_blank}, [Astar](https://docs.astar.network/){target=\_blank}, and [Acala](https://evmdocs.acala.network/){target=\_blank} or prefer PolkaVM-based development with [ink!](https://use.ink/docs/v6/){target=\_blank}, the Polkadot ecosystem accommodates a range of diverse developers.
1515

1616
These guides explore the diverse smart contract options available in the Polkadot ecosystem, helping developers understand the unique advantages of each approach and make informed decisions about where to deploy their decentralized applications.
1717

@@ -65,7 +65,7 @@ Beyond Polkadot Hub's native PolkaVM support, the ecosystem offers two main alte
6565

6666
- **EVM-compatible parachains**: Provide access to Ethereum's extensive developer ecosystem, smart contract portability, and established tooling like Hardhat, Remix, Foundry, and OpenZeppelin. The main options include Moonbeam (the first full Ethereum-compatible parachain serving as an interoperability hub), Astar (featuring dual VM support for both EVM and WebAssembly contracts), and Acala (DeFi-focused with enhanced Acala EVM+ offering advanced DeFi primitives).
6767

68-
- **WebAssembly (ink!)**: `pallet-contracts` supports any language that compiles to WebAssembly, with ink! being the primary actively maintained Rust-based framework. It uses [`#[ink(...)]`](https://use.ink/docs/v5/macros-attributes/){target=\_blank} attribute macros to create Polkadot SDK-compatible Wasm bytecode, offering strong memory safety from Rust, an advanced type system, high-performance Wasm execution, and platform independence with sandboxed security.
68+
- **Rust (ink!)**: ink! is a Rust-based framework that can compile to PolkaVM. It uses [`#[ink(...)]`](https://use.ink/docs/v6/macros-attributes/){target=\_blank} attribute macros to create Polkadot SDK-compatible PolkaVM bytecode, offering strong memory safety from Rust, an advanced type system, high-performance PolkaVM execution, and platform independence with sandboxed security.
6969

7070

7171
Each environment provides unique advantages based on developer preferences and application requirements.

llms.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8291,9 +8291,9 @@ template: index-page.html
82918291
!!! smartcontract "PolkaVM Preview Release"
82928292
PolkaVM smart contracts with Ethereum compatibility are in **early-stage development and may be unstable or incomplete**.
82938293

8294-
Polkadot allows scalable execution of smart contracts, offering cross-chain compatibility and lower fees than legacy L1 platforms. Polkadot provides developers with flexibility in building smart contracts, supporting both Solidity contracts executed by the [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design#polkavm){target=\_blank} (a Polkadot-native virtual machine for programming languages that can be compiled down to RISC-V) and EVM (Ethereum Virtual Machine), as well as Wasm-based contracts using ink! (written in Rust).
8294+
Polkadot allows scalable execution of smart contracts, offering cross-chain compatibility and lower fees than legacy L1 platforms. Polkadot provides developers with flexibility in building smart contracts, supporting both Solidity contracts executed by the [PolkaVM](/polkadot-protocol/smart-contract-basics/polkavm-design#polkavm){target=\_blank} (a Polkadot-native virtual machine for programming languages that can be compiled down to RISC-V) and EVM (Ethereum Virtual Machine), as well as Rust-based contracts using ink!.
82958295

8296-
This section provides tools, resources, and guides for building and deploying smart contracts on parachains. [Parachains](/polkadot-protocol/architecture/parachains/overview/){target=\_blank} are specialized blockchains connected to the relay chain, benefiting from shared security and interoperability. Depending on your language and environment preference, you can develop contracts using Wasm/ink! or EVM-based solutions.
8296+
This section provides tools, resources, and guides for building and deploying smart contracts on parachains. [Parachains](/polkadot-protocol/architecture/parachains/overview/){target=\_blank} are specialized blockchains connected to the relay chain, benefiting from shared security and interoperability. Depending on your language and environment preference, you can develop contracts using Rust/ink! or EVM-based solutions.
82978297

82988298
## Smart Contract Development Process
82998299

@@ -11727,7 +11727,7 @@ description: Learn about smart contract development capabilities in the Polkadot
1172711727

1172811728
Polkadot offers developers multiple approaches to building and deploying smart contracts within its ecosystem. As a multi-chain network designed for interoperability, Polkadot provides various environments optimized for different developer preferences and application requirements. From native smart contract support on Polkadot Hub to specialized parachain environments, developers can choose the platform that best suits their technical needs while benefiting from Polkadot's shared security model and cross-chain messaging capabilities.
1172911729

11730-
Whether you're looking for Ethereum compatibility through EVM-based parachains like [Moonbeam](https://docs.moonbeam.network/){target=\_blank}, [Astar](https://docs.astar.network/){target=\_blank}, and [Acala](https://evmdocs.acala.network/){target=\_blank} or prefer WebAssembly-based development with [ink!](https://use.ink/docs/v5/){target=\_blank}, the Polkadot ecosystem accommodates a range of diverse developers.
11730+
Whether you're looking for Ethereum compatibility through EVM-based parachains like [Moonbeam](https://docs.moonbeam.network/){target=\_blank}, [Astar](https://docs.astar.network/){target=\_blank}, and [Acala](https://evmdocs.acala.network/){target=\_blank} or prefer PolkaVM-based development with [ink!](https://use.ink/docs/v6/){target=\_blank}, the Polkadot ecosystem accommodates a range of diverse developers.
1173111731

1173211732
These guides explore the diverse smart contract options available in the Polkadot ecosystem, helping developers understand the unique advantages of each approach and make informed decisions about where to deploy their decentralized applications.
1173311733

@@ -11781,7 +11781,7 @@ Beyond Polkadot Hub's native PolkaVM support, the ecosystem offers two main alte
1178111781

1178211782
- **EVM-compatible parachains**: Provide access to Ethereum's extensive developer ecosystem, smart contract portability, and established tooling like Hardhat, Remix, Foundry, and OpenZeppelin. The main options include Moonbeam (the first full Ethereum-compatible parachain serving as an interoperability hub), Astar (featuring dual VM support for both EVM and WebAssembly contracts), and Acala (DeFi-focused with enhanced Acala EVM+ offering advanced DeFi primitives).
1178311783

11784-
- **WebAssembly (ink!)**: `pallet-contracts` supports any language that compiles to WebAssembly, with ink! being the primary actively maintained Rust-based framework. It uses [`#[ink(...)]`](https://use.ink/docs/v5/macros-attributes/){target=\_blank} attribute macros to create Polkadot SDK-compatible Wasm bytecode, offering strong memory safety from Rust, an advanced type system, high-performance Wasm execution, and platform independence with sandboxed security.
11784+
- **Rust (ink!)**: ink! is a Rust-based framework that can compile to PolkaVM. It uses [`#[ink(...)]`](https://use.ink/docs/v6/macros-attributes/){target=\_blank} attribute macros to create Polkadot SDK-compatible PolkaVM bytecode, offering strong memory safety from Rust, an advanced type system, high-performance PolkaVM execution, and platform independence with sandboxed security.
1178511785

1178611786

1178711787
Each environment provides unique advantages based on developer preferences and application requirements.

0 commit comments

Comments
 (0)