Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed WASM section #39

Merged
merged 2 commits into from
Jul 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Astar is the largest smart contract platform in the Polkadot ecosystem, supporti
- [**Quick Start**](quickstart) gives you the resources you need to get started.
testing, deploying, and interacting with smart contracts on the network.
- [**EVM**](evm) dives deeper into EVM on Astar and explains how EVM contracts can interact with other non-EVM modules through [precompiles](evm/precompiles).
- [**Wasm**](wasm) provides an [overview of the Wasm stack on Astar](wasm/stack/), Wasm [contract frameworks](wasm/stack/dsls), and their [developer tooling](wasm/sc-dev/tools/).
- [**Wasm**](wasm) provides an [overview of the Wasm stack on Astar](wasm/stack/smart-contract-wasm), Wasm [contract frameworks](wasm/stack/dsls), and their [developer tooling](wasm/sc-dev/tools/).
- [**Nodes**](nodes) explains how to run full nodes, collators, indexers, and everything you need to know related to infrastructure.
- [**XCM**](xcm) explains how XCM is used in Astar and how developers can use it to interact with the rest of the Polkadot network.
- [**Integrations**](integrations) provide relevant information about the wallets, indexers, and oracles that are integrated with the network.
Expand Down
4 changes: 2 additions & 2 deletions docs/wasm/sc-dev/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Tutorials",
"position": 3
"label": "Smart-contract development",
"position": 2
}
2 changes: 1 addition & 1 deletion docs/wasm/sc-dev/env-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 1
---

# Wasm Development Environment Setup
# Environment Setup

## Install and Configure the Rust Toolchain

Expand Down
16 changes: 8 additions & 8 deletions docs/wasm/sc-dev/ink-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,26 @@
sidebar_position: 2
---

# ink! Development
# Ink! Development

ink! is a Rust eDSL developed by Parity. It targets specifically smart-contract development for Substrate’s `pallet-contracts`.
Ink! is a Rust eDSL developed by Parity. It targets specifically smart-contract development for Substrate’s `pallet-contracts`.

ink! offers Rust [procedural macros](https://doc.rust-lang.org/reference/procedural-macros.html#procedural-macro-hygiene) and a list of crates to facilitate development and avoid boilerplate code.
Ink! offers Rust [procedural macros](https://doc.rust-lang.org/reference/procedural-macros.html#procedural-macro-hygiene) and a list of crates to facilitate development and avoid boilerplate code.

It is the most supported eDSL currently and will be highly supported in the future too (by Parity and builders community).

It offers a large range of features:

- idiomatic Rust code
- ink! Macros & Attributes - [#[ink::contract]](https://paritytech.github.io/ink/ink_lang/attr.contract.html)
- Ink! Macros & Attributes - [#[ink::contract]](https://paritytech.github.io/ink/ink_lang/attr.contract.html)
- [`Trait` support](https://paritytech.github.io/ink/ink_lang/attr.trait_definition.html)
- Upgradeable contracts - [Delegate Call](https://github.com/paritytech/ink/tree/master/examples/upgradeable-contracts)
- [Chain Extensions](https://github.com/paritytech/ink/tree/master/examples/rand-extension) (interact with Substrate pallets inside a contract)
- Off-chain Testing - `#[ink(test)]`

## Documentation

[ink! Github repo](https://github.com/paritytech/ink)
[ink! Intro repo](https://paritytech.github.io/ink/)
[ink! Official Documentation](https://ink.substrate.io/)
[ink! Rust doc](https://paritytech.github.io/ink/ink_lang/)
[Ink! Github repo](https://github.com/paritytech/ink)
[Ink! Intro repo](https://paritytech.github.io/ink/)
[Ink! Official Documentation](https://ink.substrate.io/)
[Ink! Rust doc](https://paritytech.github.io/ink/ink_lang/)
2 changes: 1 addition & 1 deletion docs/wasm/sc-dev/tools/cargo-contract-cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
sidebar_position: 1
---

# `cargo-contract` CLI
# Cargo-contract CLI

`cargo-contract` is a CLI tool that helps you develop smart contracts in Parity's [ink!].

Expand Down
2 changes: 1 addition & 1 deletion docs/wasm/sc-dev/tutorials/_category_.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"label": "Tools",
"label": "Tutorial",
"position": 4
}
8 changes: 4 additions & 4 deletions docs/wasm/stack/dsls.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
---
sidebar_position: 1
sidebar_position: 2
---

# DSLs

## `ink!`
## `Ink!`

ink! is an eDSL written in Rust and developed by Parity. It targets specifically the API of substrate’s `pallet-contracts`.

ink! offers Rust [procedural macros](https://doc.rust-lang.org/reference/procedural-macros.html#procedural-macro-hygiene) and a list of crates to facilitate development and avoid boilerplate code.

Check the official documentation [[here](https://ink.substrate.io/why-rust-for-smart-contracts)] and the `ink!` GitHub repo [here](https://github.com/paritytech/ink).
Check the official documentation [[here](https://ink.substrate.io/why-rust-for-smart-contracts)] and the `Ink!` GitHub repo [here](https://github.com/paritytech/ink).

## `ask!`
## `Ask!`

ask! is a framework for AssemblyScript developers to write Wasm smart contracts for `pallet-contracts`. Its syntax is similar to TypeScript.

Expand Down
2 changes: 1 addition & 1 deletion docs/wasm/stack/nodes-clients.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
sidebar_position: 2
sidebar_position: 3
---

# Nodes and Clients
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# Astar Wasm Stack
---
sidebar_position: 1
---

# Smart-contract Stack

## Smart Contract Runtime Environment

Expand Down