Skip to content

Latest commit

 

History

History
56 lines (44 loc) · 954 Bytes

README.md

File metadata and controls

56 lines (44 loc) · 954 Bytes

MatterFi Casper Smart Contracts

Smart contracts using Odra Framework. Note that the Odra is still under heavy development.

Prepare

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

Test on MockVM

$ cargo test

Build WASM

$ cargo odra build -b casper

Check the wasm directory that was created for *.wasm files.

Test on CasperVM

To build and test against CasperVM run:

$ cargo odra test -b casper