Skip to content

Commit

Permalink
fix review suggests:merge the rpc_wasm to rpc_client in wasm
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-zkp committed Oct 9, 2023
1 parent 8cdc06c commit 931bc22
Show file tree
Hide file tree
Showing 13 changed files with 397 additions and 787 deletions.
5 changes: 5 additions & 0 deletions bindings/wasm/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,19 @@ crate-type = ["cdylib","rlib"]
zklink_sdk_signers = { path = "../../signers" }
zklink_sdk_types = { path = "../../types" }
zklink_sdk_provider = { path = "../../provider" }
serde_json = "1.0"
wasm-bindgen = { version = "0.2.87",features = ["serde-serialize"] }
serde-wasm-bindgen = "0.5"
getrandom = { version = "0.2.10", features = ["js"] }
web-sys = "0.3"
hex = "0.4.3"
reqwest = { version = "0.11", default-features = false, features = ["blocking", "json", "rustls-tls"] }

[target.'cfg(target_arch = "wasm32")'.dependencies]
wasm-bindgen-futures = "0.4"
jsonrpsee = { version = "0.20.1", features = ["macros","jsonrpsee-types","client-core"] }
uuid = "0.8"

[features]
default = []
ffi = []
Expand Down
4 changes: 2 additions & 2 deletions bindings/wasm/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![cfg(target_arch = "wasm32")]
pub mod crypto;
pub mod provider;
pub mod rpc;
pub mod rpc_client;
pub mod rpc_type_converter;
pub mod tx_types;
// pub mod wallet;
// pub mod error;
Expand Down
240 changes: 0 additions & 240 deletions bindings/wasm/src/provider.rs

This file was deleted.

Loading

0 comments on commit 931bc22

Please sign in to comment.