From e67951f958b6f8a448662baaa9b4e740773b571b Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Wed, 12 Apr 2017 20:52:01 +0400 Subject: [PATCH] Create README.md --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..0910a9d --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# wasm-tools + +Boiler plate 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 +./start.sh +``` + +and then open `http://localhost:8000`, press `Execute call` to run a contract `call` function, see browser console log for gas counter + +## Prerequisites + +Emscripiten for C/C++ (see [this page](http://kripken.github.io/emscripten-site/docs/getting_started/downloads.html), `emcc` should be in the `PATH`) +Rust with `wasm32-unknown-emscripten` target (see [this instruction](https://hackernoon.com/compiling-rust-to-webassembly-guide-411066a69fde) to setup)