Smart contracts using Odra Framework. Note that the Odra is still under heavy development.
First install Rust, Make, WebAssembly Binary Toolkit (wabt), Perl and Git.
Install Cargo Odra.
$ git clone https://github.com/odradev/cargo-odra
$ cd cargo-odra
$ git fetch -a
$ git checkout release/0.0.1
$ make install
$ cargo odra -h
Add Rust target.
$ rustup target add wasm32-unknown-unknown
Add wasm-strip
.
$ sudo apt install wabt
# or for Fedora
$ sudo dnf install wabt
Install Perl
$ sudo apt install perl
# or for Fedora
$ sudo dnf install perl-core
$ cargo test
$ cargo odra build -b casper
Check the wasm
directory that was created for *.wasm
files.
To build and test against CasperVM run:
$ cargo odra test -b casper