GithubHelp home page GithubHelp logo

wasm-api's Introduction

Install SpiderMonkey 64.0 (Ubuntu 18.10)

sudo apt update
sudo apt upgrade
sudo apt install build-essential cmake libboost-all-dev git libpq-dev libpqxx-dev autoconf2.13 rustc cargo clang-7
cd ~
wget https://archive.mozilla.org/pub/firefox/releases/64.0/source/firefox-64.0.source.tar.xz
tar xf firefox-64.0.source.tar.xz
cd firefox-64.0/js/src/
autoconf2.13

SpiderMonkey Debug build (Ubuntu 18.10)

mkdir build_DBG.OBJ
cd build_DBG.OBJ
../configure --enable-debug --disable-optimize --disable-jemalloc --disable-replace-malloc
make -j
sudo make install

SpiderMonkey Release build (Ubuntu 18.10)

mkdir build_REL.OBJ
cd build_REL.OBJ
../configure --disable-debug --enable-optimize --disable-jemalloc --disable-replace-malloc
make -j
sudo make install

Build wasm-ql (Ubuntu 18.10)

Debug build (Ubuntu 18.10)

cd ~
git clone --recursive [email protected]:EOSIO/wasm-api.git
cd wasm-api
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
make -j
../build-test
export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
sudo apt install nodejs
cd ../src
npm install node-fetch

Release build (Ubuntu 18.10)

cd ~
git clone --recursive [email protected]:EOSIO/wasm-api.git
cd wasm-api
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j
../build-test
export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
sudo apt install nodejs
cd ../src
npm install node-fetch

Install SpiderMonkey 64.0 (OSX)

brew install [email protected] llvm@7 rust
cd ~
wget https://archive.mozilla.org/pub/firefox/releases/64.0/source/firefox-64.0.source.tar.xz
tar xf firefox-64.0.source.tar.xz
cd firefox-64.0/js/src/
autoconf213

SpiderMonkey Debug build (OSX)

mkdir build_DBG.OBJ
cd build_DBG.OBJ
export LIBCLANG_PATH=/usr/local/opt/llvm@7/lib
../configure --enable-debug --disable-optimize
make -j
make install

SpiderMonkey Release build (OSX)

mkdir build_REL.OBJ
cd build_REL.OBJ
export LIBCLANG_PATH=/usr/local/opt/llvm@7/lib
../configure --disable-debug --enable-optimize
make -j
make install

Build wasm-ql (OSX)

Debug build (OSX)

cd ~
git clone --recursive [email protected]:EOSIO/wasm-api.git
cd wasm-api
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Debug
cp ~/firefox-64.0/js/src/build_DBG.OBJ/dist/bin/libmozglue.dylib .
make -j
../build-test
brew install node
cd ../src
npm install node-fetch

Release build (OSX)

cd ~
git clone --recursive [email protected]:EOSIO/wasm-api.git
cd wasm-api
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
cp ~/firefox-64.0/js/src/build_DBG.OBJ/dist/bin/libmozglue.dylib .
make -j
../build-test
brew install node
cd ../src
npm install node-fetch

Run wasm-ql (common steps for Ubuntu 18.10 and OSX)

cd ../build
./wasm-ql -e 0.0.0.0:8880 
curl localhost:8880/v1/chain/get_table_rows -d '{"code":"eosio", "scope":"eosio", "table":"namebids", "show_payer":true, "json":true, "key_type": "name", "index_position": "2", "limit":100}' | json_pp
node ../src/test-client.js

wasm-api's People

Contributors

tbfleming avatar nksanthosh avatar kesar avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.