The following dependencies will be required to develop Ownables:
cargoversions 1.61.0 or later
npmversion 8.11.0 or later
nodeversion 16.15.0 or later
wasm-packversion 0.10.2 or later
If you do not have the above dependencies on your machine, see the sections below for instructions.
Ownable packages are built with Rust.
Verify the installation by checking the version:
$ cargo version
The version should be 1.61.0 or later.
npmwill be needed for running the local wallet instance and building the Ownable packages.
Verify the installation with:
$ npm -v
$ node -v
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-packmakes building and working with rust-generated WASM easy.
Once that is done, verify the installation:
$ wasm-pack -V
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.