2017-05-12 20:50:09 +03:00
2017-05-05 16:06:16 +03:00
2017-05-05 16:06:16 +03:00
2017-05-10 14:28:56 +03:00
2017-05-12 20:50:09 +03:00
2017-05-04 19:49:40 +03:00
2017-05-09 18:16:49 +03:00
2017-05-04 15:59:22 +03:00
2017-05-05 15:51:42 +03:00
2017-05-04 13:21:13 +04:00

wasm-tools

Boilerplate code to test Parity WASM tools and compile rust/c/c++ code to wasm-contracts

How to compile contract

git clone https://github.com/NikVolf/wasm-tools
cd wasm-tools/runner
./build.sh <PATH TO C/C++/Rust source file>
./start.sh

and then open http://localhost:8000, specify input stream in Input input, press Execute call to run a contract call function, see storage update (if contract produced any) as well as Result stream (again, if contract produced any).

see /samples directory for sample contracts that are compiled this way

Prerequisites

  • Emscripiten for C/C++ (see this page, emcc should be in the PATH)
  • Rust with wasm32-unknown-emscripten target (see this instruction to setup)
Description
No description provided
Readme 532 KiB
Languages
Rust 96.5%
WebAssembly 3.5%