Skip to content

Commit

Permalink
added links to pallet-contracts API
Browse files Browse the repository at this point in the history
  • Loading branch information
midegdugarova committed Mar 22, 2023
1 parent 827e049 commit adf6a11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/build/wasm/dsls.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ EDSLs can also provide features such as error checking, debugging, and testing,

## `Ink!`

Ink! is an eDSL written in Rust and developed by Parity. It specifically targets Substrate’s `pallet-contracts` API.
Ink! is an eDSL written in Rust and developed by Parity. It specifically targets Substrate’s `pallet-contracts` [API](https://docs.rs/pallet-contracts/latest/pallet_contracts/api_doc/trait.Current.html).

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

Expand Down
2 changes: 1 addition & 1 deletion docs/build/wasm/smart-contract-wasm.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sidebar_position: 1

## Smart Contract Runtime Environment

Astar & Shiden runtimes are based on Substrate, and both networks incorporate `pallet-contracts`, a sandboxed environment used to deploy and execute WebAssembly smart contracts. Any language that compiles to Wasm may be deployed and run on this Wasm Virtual Machine, however, the code should be compatible with the `pallet-contracts` API.
Astar & Shiden runtimes are based on Substrate, and both networks incorporate `pallet-contracts`, a sandboxed environment used to deploy and execute WebAssembly smart contracts. Any language that compiles to Wasm may be deployed and run on this Wasm Virtual Machine, however, the code should be compatible with the `pallet-contracts` [API](https://docs.rs/pallet-contracts/latest/pallet_contracts/api_doc/trait.Current.html).

To avoid unnecessary complexity, and writing boilerplate code, the most appropriate method of building will involve the use of an eDSL specifically targeting `pallet-contracts`, such as [ink!] (based on Rust), or [ask!] (based on AssemblyScript), or possibly others as the ecosystem grows.

Expand Down

0 comments on commit adf6a11

Please sign in to comment.