d5f06cc7eb
commit 3dca82d62e10252555fcfe498e63c41a5ca967af Author: Hanh <hanh425@gmail.com> Date: Sun Sep 18 01:30:56 2022 +0800 WIP commit 32013d4eea0bff3321e4bb82a4c878aa4feaea7b Author: Hanh <hanh425@gmail.com> Date: Sat Sep 17 19:48:32 2022 +0800 WIP commit 0f4b16d1b3874f9377b7144591a602aa97e6747d Author: Hanh <hanh425@gmail.com> Date: Sat Sep 17 12:45:41 2022 +0800 WIP commit 90cf116c230b2845d43bdc9b81057f8b761b6773 Author: Hanh <hanh425@gmail.com> Date: Fri Sep 16 21:05:52 2022 +0800 WIP commit d8a8db0a29564c98b3f7dc331d5d37f4b7a87c18 Author: Hanh <hanh425@gmail.com> Date: Fri Sep 16 18:03:56 2022 +0800 WIP commit cb467ea2cd7bada9a9cbf9fbc59b265bb3be4968 Author: Hanh <hanh425@gmail.com> Date: Fri Sep 16 17:17:51 2022 +0800 WIP commit ba3b4de96e19329a317cc4164cf69442e9b1aa8a Author: Hanh <hanh425@gmail.com> Date: Fri Sep 16 14:41:07 2022 +0800 Sapling Pedersen hash commit 3e9be116a68342c22da147dba011e2d6a9e68cbc Author: Hanh <hanh425@gmail.com> Date: Thu Sep 15 10:16:54 2022 +0800 WIP commit 94e0e8b0d5601ed48227bae89ea3a6c1bb093abc Author: Hanh <hanh425@gmail.com> Date: Wed Sep 14 01:22:22 2022 +0800 WIP commit 95708029ab4b94d85f9d565a16505d767bb4598b Author: Hanh <hanh425@gmail.com> Date: Tue Sep 13 21:27:51 2022 +0800 Db API for Orchard commit 170a31fd7cf79fba74f710fcd1bf7404235c8e51 Author: Hanh <hanh425@gmail.com> Date: Tue Sep 13 20:57:38 2022 +0800 Add support for orchard to db schema |
||
---|---|---|
benches | ||
docs | ||
integrations | ||
proto | ||
report/scan | ||
src | ||
test-scripts | ||
.gitignore | ||
Cargo.toml | ||
README.md | ||
Rocket.toml | ||
binding.h | ||
binding2.h | ||
build.rs | ||
fetch-params.sh | ||
openapi.yml | ||
warp.js |
README.md
Build as standalone server
cargo b --release --bin warp-rpc --features=rpc
./target/release/warp-rpc
Configuration
Edit Rocket.toml
[default]
allow_backup = true
allow_send = true
yec = { db_path = "./yec.db", lwd_url = "https://lite.ycash.xyz:9067" }
zec = { db_path = "./zec.db", lwd_url = "https://mainnet.lightwalletd.com:9067" }
RPC
TODO
set_lwd,
set_active,
new_account,
list_accounts,
sync,
rewind,
get_latest_height,
get_backup,
get_balance,
get_address,
get_tx_history,
pay,
NodeJS
NodeJS bindings are incomplete/unsupported and maybe dropped at any time.
- Install
nj-cli
(one time) - Edit
Cargo.toml
- Build
- Use
Ex:
$ cargo install nj-cli
$ vim Cargo.toml
...
[lib]
#name = "warp_api_ffi"
crate-type = ["cdylib"]
...
$ nj-cli build --release -- --features=nodejs
$ node warp.js