Skip to content

Commit

Permalink
api v2 (mimblewimble#2)
Browse files Browse the repository at this point in the history
* APIv2 Rewrite first draft

Add WIP JSON RPC handler for APIOwner via proc-macro generated API, using the easy-jsonrpc crate.

* patch dependency on grin core to get serializable errors

* doctest ownerapi, update easyjsonrpc version

* begin impl ForeignApi

* mimblewimble/grin#2659 is merged, switch from using forked repo

* write jsonrpc doctests for ForeignApi
  • Loading branch information
bddap authored and yeastplume committed Mar 12, 2019
1 parent 63f4a8a commit b452909
Show file tree
Hide file tree
Showing 5 changed files with 973 additions and 37 deletions.
96 changes: 88 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions apiwallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ failure = "0.1"
failure_derive = "0.1"
log = "0.4"
uuid = { version = "0.6", features = ["serde", "v4"] }
easy-jsonrpc = "0.4.1"

grin_libwallet = { path = "../libwallet", version = "1.1.0" }
grin_wallet_config = { path = "../config", version = "1.1.0" }
Expand All @@ -25,3 +26,8 @@ grin_chain = { git = "https://github.com/mimblewimble/grin", branch = "milestone
grin_util = { git = "https://github.com/mimblewimble/grin", branch = "milestone/1.1.0" }
grin_api = { git = "https://github.com/mimblewimble/grin", branch = "milestone/1.1.0" }
grin_store = { git = "https://github.com/mimblewimble/grin", branch = "milestone/1.1.0" }

[dev-dependencies]
grin_refwallet = { path = "../refwallet", version = "1.1.0" }
serde_json = "1"
tempfile = "3.0.7"
Loading

0 comments on commit b452909

Please sign in to comment.