Go to file
Hanh d5f06cc7eb Squashed commit of the following:
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
2022-10-20 14:48:08 +08:00
benches Squashed commit of the following: 2022-10-20 14:48:08 +08:00
docs Comments 2021-06-19 21:41:26 +08:00
integrations Documentation 2022-10-20 14:24:36 +08:00
proto Pass spam filter option upstream 2022-08-31 23:35:21 +08:00
report/scan Witness and Tree State calculations 2021-06-19 10:57:06 +08:00
src Squashed commit of the following: 2022-10-20 14:48:08 +08:00
test-scripts Integration tests 2022-06-11 20:29:14 +08:00
.gitignore Squashed commit of the following: 2022-10-20 14:48:08 +08:00
Cargo.toml Squashed commit of the following: 2022-10-20 14:48:08 +08:00
README.md Some POC nodejs bindings 2022-07-21 19:22:41 +08:00
Rocket.toml GPU bug fix 2022-09-27 20:48:48 +08:00
binding.h API Doc 2022-10-19 11:57:13 +08:00
binding2.h API Doc 2022-10-19 11:57:13 +08:00
build.rs iOS Build 2022-06-09 19:28:37 +08:00
fetch-params.sh Add fetch-params 2022-10-17 23:33:00 +08:00
openapi.yml API Doc 2022-10-19 11:57:13 +08:00
warp.js Some POC nodejs bindings 2022-07-21 19:22:41 +08:00

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