To write smart contracts on Plasm Network, you need to set up the following things on your computer.
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.
plasm-node --dev -l evm=debugOct 14 15:07:56.998 WARN Running in --dev mode, RPC CORS has been disabled.Oct 14 15:07:56.998 INFO Plasm NodeOct 14 15:07:56.998 INFO ✌️ version 1.6.0-1dc78cce-x86_64-linux-gnuOct 14 15:07:56.998 INFO ❤️ by Stake Technologies <[email protected]>, 2019-2020Oct 14 15:07:56.998 INFO 📋 Chain specification: DevelopmentOct 14 15:07:56.998 INFO 🏷 Node name: skillful-war-1171Oct 14 15:07:56.998 INFO 👤 Role: AUTHORITY
Make sure you have already installed Rust
> curl https://sh.rustup.rs -sSf | sh# on Windows download and run rustup-init.exe# from https://rustup.rs instead> rustup update nightly> rustup target add wasm32-unknown-unknown --toolchain nightly
You will also need to install the following dependencies:
sudo apt install cmake git clang libclang-dev build-essential
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)
Or run on your local development network:
The final tool we will be installing is ink! utility.
cargo install cargo-contract --vers ^0.11 --force --locked
Any questions? Feel free to ask us.