From e67951f958b6f8a448662baaa9b4e740773b571b Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Wed, 12 Apr 2017 20:52:01 +0400 Subject: [PATCH 1/4] 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) From 05b737937074e0f7cab5091a04b9b1920a137b44 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Wed, 12 Apr 2017 20:52:39 +0400 Subject: [PATCH 2/4] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0910a9d..7f3556c 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # wasm-tools -Boiler plate code to test parity wasm tools and compile rust/c/c++ code to wasm-contracts +Boilerplate code to test Parity WASM tools and compile rust/c/c++ code to wasm-contracts ## How to compile contract From e30212e98e97126381e34ba2b3cb0e45caee3053 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Wed, 12 Apr 2017 20:53:31 +0400 Subject: [PATCH 3/4] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 7f3556c..0b4fbd6 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,8 @@ cd wasm-tools/runner and then open `http://localhost:8000`, press `Execute call` to run a contract `call` function, see browser console log for gas counter +see `/samples` directory for sample contracts that are compiled this way + ## 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`) From 6284cdf60192efc909ded78174afb05d1390ff34 Mon Sep 17 00:00:00 2001 From: Nikolay Volf Date: Wed, 12 Apr 2017 20:55:47 +0400 Subject: [PATCH 4/4] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0b4fbd6..379c2a0 100644 --- a/README.md +++ b/README.md @@ -17,5 +17,5 @@ see `/samples` directory for sample contracts that are compiled this way ## 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) +- 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)