To write smart contracts on Plasm Network, you need to set up the following things on your computer.
Currently, we have 2 ways to install **the Plasm Node as follows.
①Install from the latest release
②Build from source
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
Install additional build tools:
cargo install --git https://github.com/alexcrichton/wasm-gc
Install the Plasm node from git source:
cargo install --force --locked --git https://github.com/staketechnologies/Plasm --tag v1.4.0-dusty plasm-cli
Alternatively, you can use the following commands to compile directly from the repo (unstable bleeding edge)git clone https://github.com/staketechnologies/Plasm.gitcd Plasmrustup override set nightlycargo build --release./target/release/plasm-node
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.6.1 --force
Any questions? Feel free to ask us.