Skip to content

matterfi/matterfi-contracts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Rust 98.3%
  • Makefile 1.7%