Porta Docs
Blog
Search…
Porta Docs
Porta Network Documentation
Developer guide
Getting Started
Porta Node Setup
Smart Contracts
Installation checklist
Install wasm-opt version 101
Ink! Smart Contract tutorial
Add a smart contract to Porta
Interact with your contract
Update your smart contract
Assets
Staking
Governance
Council
Technical Committee
Identity
Security and Privacy
Walk-through
Deep-Dive
Powered By
GitBook
Installation checklist
A guide giving a quick overview of the installation process for getting Ink! smart contracts working
Requirements: Ubuntu 20.04
1. Build Dependencies
Use a terminal shell to execute the following commands:
1
sudo apt update
Copied!
1
sudo apt install -y git clang curl libssl-dev llvm libudev-dev
Copied!
2. Rust Developer Environment
Use a terminal shell to execute the automation script:
1
curl https://getsubstrate.io -sSf | bash -s -- --fast
Copied!
3. Rustup configuration
Use a terminal shell to execute the following commands:
1
rustup component add rust-src --toolchain nightly
Copied!
1
rustup target add wasm32-unknown-unknown --toolchain nightly
Copied!
4. Install the Canvas Node
Use a terminal shell to execute the following commands:
1
cargo install canvas-node --git https://github.com/paritytech/canvas-node.git --tag v0.1.9 --force --locked
Copied!
5. Install Ink!
Use a terminal shell to execute the following commands:
1
sudo apt install binaryen
Copied!
After you've installed the package execute:
1
cargo install cargo-contract --vers ^0.13 --force –locked
Copied!
6. Manual update of binaryen to version 101
Go to here:
https://github.com/WebAssembly/binaryen/releases
Download the tar.gz
Extract the file
To create this
You have to install the files manually
Navigate to the following directory
You will need to replace the word ‘linux’ with term right for you.
The following commands copy the contents of the bin, lib64 and include directories from binaryen download to your computer.
Command 1:
1
sudo cp -r home/linux/Downloads/binaryen-version_101-x86_64-linux/binaryen-version_101/bin/* /bin
Copied!
Command 2:
1
sudo cp -r home/linux/Downloads/binaryen-version_101-x86_64-linux/binaryen-version_101/include/* /usr/include
Copied!
Command 3:
1
sudo cp -r home/linux/Downloads/binaryen-version_101-x86_64-linux/binaryen-version_101/lib64/* /lib64
Copied!
Developer guide - Previous
Smart Contracts
Next
Install wasm-opt version 101
Last modified
2mo ago
Copy link