Install
Substrate is under the active development. If you have issues, feel free to ask us on Discord (Tech Chat).
To write smart contracts on Plasm Network, you need to set up the following things on your computer.

Plasm Node

Install a Plasm Node

To use a local development environment, a Plasm node is necessary. Please install the latest Plasm node from here: https://github.com/staketechnologies/Plasm/tree/dusty (build instruction).
The next step is to launch a node in the development environment.
1
plasm-node --dev -l evm=debug
2
Oct 14 15:07:56.998 WARN Running in --dev mode, RPC CORS has been disabled.
3
Oct 14 15:07:56.998 INFO Plasm Node
4
Oct 14 15:07:56.998 INFO ✌️ version 1.6.0-1dc78cce-x86_64-linux-gnu
5
Oct 14 15:07:56.998 INFO ❤️ by Stake Technologies <[email protected]>, 2019-2020
6
Oct 14 15:07:56.998 INFO 📋 Chain specification: Development
7
Oct 14 15:07:56.998 INFO 🏷 Node name: skillful-war-1171
8
Oct 14 15:07:56.998 INFO 👤 Role: AUTHORITY
Copied!

Build from source

Make sure you have already installed Rust
1
> curl https://sh.rustup.rs -sSf | sh
2
# on Windows download and run rustup-init.exe
3
# from https://rustup.rs instead
4
​
5
> rustup update nightly
6
> rustup target add wasm32-unknown-unknown --toolchain nightly
Copied!
You will also need to install the following dependencies:
    Linux: sudo apt install cmake git clang libclang-dev build-essential
    Mac: brew install cmake git llvm
    Windows: Download and install the Pre Build Windows binaries of LLVM from http://releases.llvm.org/download.html​
Run node on the Plasm canary network (Dusty Network)
1
plasm
Copied!
Or run on your local development network:
1
plasm --dev
Copied!
The final tool we will be installing is ink! utility.
1
cargo install cargo-contract --vers ^0.11 --force --locked
Copied!
You can use "cargo contract --help" to understand commands
Any questions? Feel free to ask us.
Last modified 5mo ago