From 0059ab6308470b2636c3b1c9a6e22b7be90c4be5 Mon Sep 17 00:00:00 2001 From: Krzysztof Ziobro Date: Fri, 13 Jan 2023 12:19:25 +0100 Subject: [PATCH 1/2] pub use for AsConnection and SignedConnection --- aleph-client/src/connections.rs | 2 ++ aleph-client/src/lib.rs | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/aleph-client/src/connections.rs b/aleph-client/src/connections.rs index b21c1b54f8..c377458b8d 100644 --- a/aleph-client/src/connections.rs +++ b/aleph-client/src/connections.rs @@ -36,11 +36,13 @@ pub struct RootConnection { /// Castability to a plain connection. pub trait AsConnection { + /// Allows cast to [`Connection`] reference fn as_connection(&self) -> &Connection; } /// Castability to a signed connection. pub trait AsSigned { + /// Allows cast to [`SignedConnection`] reference fn as_signed(&self) -> &SignedConnection; } diff --git a/aleph-client/src/lib.rs b/aleph-client/src/lib.rs index 74d232850f..600f5d2f15 100644 --- a/aleph-client/src/lib.rs +++ b/aleph-client/src/lib.rs @@ -56,7 +56,8 @@ pub type BlockHash = H256; pub type SubxtClient = OnlineClient; pub use connections::{ - Connection, ConnectionApi, RootConnection, SignedConnection, SignedConnectionApi, SudoCall, + AsConnection, AsSigned, Connection, ConnectionApi, RootConnection, SignedConnection, + SignedConnectionApi, SudoCall, }; /// When submitting a transaction, wait for given status before proceeding. From a7cd6d2c8f6c65ab280302a236ad7b57aee8f9f1 Mon Sep 17 00:00:00 2001 From: Krzysztof Ziobro Date: Fri, 13 Jan 2023 12:23:10 +0100 Subject: [PATCH 2/2] bump --- aleph-client/Cargo.lock | 2 +- aleph-client/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aleph-client/Cargo.lock b/aleph-client/Cargo.lock index 4ecf994c0a..16f592794f 100644 --- a/aleph-client/Cargo.lock +++ b/aleph-client/Cargo.lock @@ -49,7 +49,7 @@ dependencies = [ [[package]] name = "aleph_client" -version = "2.7.0" +version = "2.8.0" dependencies = [ "anyhow", "async-trait", diff --git a/aleph-client/Cargo.toml b/aleph-client/Cargo.toml index 95961566c2..41268b2787 100644 --- a/aleph-client/Cargo.toml +++ b/aleph-client/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "aleph_client" # TODO bump major version when API stablize -version = "2.7.0" +version = "2.8.0" edition = "2021" license = "Apache 2.0"