Prerequisites
Last updated
Last updated
The following dependencies will be required to develop OWNABLES:
git
rustc
and cargo
versions 1.61.0 or later
clang
npm
version 8.11.0 or later
node
version 16.15.0 or later
wasm-pack
version 0.10.2 or later
If you do not have the above dependencies on your machine, see the sections below for instructions.
. Git is a version control system. It's used to fetch the Ownables SDK from GitHub.
Alternatively, you can use , which is more user-friendly.
Ownable packages are built with Rust.
To install Rust and its package manager Cargo, follow the official . On Linux and macOS systems, this is done as follows:
Verify the installation by checking the version:
The version should be 1.61.0 or later.
On Mac, clang should come pre-installed. On Linux you should be able to install it from the distro's repository. E.g. on Ubuntu Linux run
npm
will be needed for running the local wallet instance and building the OWNABLES packages.
Verify the installation with:
The node version should be 16.15.0 or later. The npm version should be 8.11.0 or later.
The smart contracts written in Rust need to be compiled to WebAssembly. This way we can easily interact with them in our wallet.
wasm-pack
makes building and working with rust-generated WASM easy.
Once that is done, verify the installation:
The version should be 0.10.2 or later.
Any editor you prefer will do the job, but there are a few recommendations worth looking into here.
Rust may depend on for building an ownable. Install clang, if you come across the following error
Install it as described on the official .
Follow the latest steps described in to install it. On Linux and macOS systems, this is done as follows:
First is the VSCode editor which you can download from the . Along with it, you may consider installing Rust plugin to help with syntax highlighting and other amenities.
Another great pick is the . JetBrains provides a Rust which is very useful to help with the development flow.