|
12 months ago | |
---|---|---|
bin | 12 months ago | |
configs | 2 years ago | |
dist | 12 months ago | |
docs | 1 year ago | |
external | 1 year ago | |
src | 12 months ago | |
.gitignore | 3 years ago | |
.gitmodules | 3 years ago | |
.project | 1 year ago | |
CMakeLists.txt | 12 months ago | |
LICENSE.txt | 1 year ago | |
README.md | 1 year ago | |
donate.png | 3 years ago | |
index.js | 1 year ago | |
package-lock.json | 1 year ago | |
package.json | 1 year ago | |
todo.txt | 2 years ago | |
wasm_exception_whitelist.txt | 1 year ago | |
webpack.base.js | 1 year ago | |
webpack.tests.js | 1 year ago | |
webpack.worker.js | 2 years ago |
Builds townforge as a wasm for the browser.
This project uses WebAssembly to package and execute Townforge's source code for use in a browser.
Compiled WebAssembly binaries are committed to ./dist for convenience, but these files can be built independently from source code:
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
git pull && ./emsdk install latest-upstream && ./emsdk activate latest-upstream && source ./emsdk_env.sh
export EMSCRIPTEN=path/to/emsdk/upstream/emscripten
(change for your system)git clone https://github.com/woodser/townforge-wasm.git
cd townforge-wasm
./bin/update_submodules.sh
set(MONERO_WALLET_CRYPTO_LIBRARY "auto" ...
to set(MONERO_WALLET_CRYPTO_LIBRARY "cn" ...
../bin/build_all.sh
(install townforge dependencies as needed for your system)git clone https://github.com/woodser/townforge-wasm.git
cd townforge-wasm
./monerod --stagenet
(or use a remote daemon)../monero-wallet-rpc --daemon-address http://localhost:38081 --stagenet --rpc-bind-port 38084 --rpc-login rpc_user:abc123 --wallet-dir ./
WALLET_RPC_CONFIG
and DAEMON_RPC_CONFIG
).npm test
npm run test -- --grep "Can get transactions"
./bin/start_wallet_rpc_test_servers.sh
./bin/build_browser_tests.sh
This project is licensed under MIT.