Update to jsonrpsee 0.5.1 (#332)

* Update to jsonrpsee 0.5.1

* Use jsonrpsee wrapper crate
This commit is contained in:
Andrew Jones
2021-11-26 10:36:33 +00:00
committed by GitHub
parent e2ab01d061
commit 7e26f9559c
4 changed files with 22 additions and 23 deletions
+19 -17
View File
@@ -33,24 +33,26 @@ use core::{
marker::PhantomData,
};
use frame_metadata::RuntimeMetadataPrefixed;
use jsonrpsee_http_client::{
HttpClient,
HttpClientBuilder,
};
use jsonrpsee_types::{
to_json_value,
traits::{
Client,
SubscriptionClient,
use jsonrpsee::{
http_client::{
HttpClient,
HttpClientBuilder,
},
types::{
to_json_value,
traits::{
Client,
SubscriptionClient,
},
DeserializeOwned,
Error as RpcError,
JsonValue,
Subscription,
},
ws_client::{
WsClient,
WsClientBuilder,
},
DeserializeOwned,
Error as RpcError,
JsonValue,
Subscription,
};
use jsonrpsee_ws_client::{
WsClient,
WsClientBuilder,
};
use serde::{
Deserialize,