Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aleph-client/Cargo.lock

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

2 changes: 1 addition & 1 deletion aleph-client/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "aleph_client"
# TODO bump major version when API stablize
version = "2.6.0"
version = "2.7.0"
edition = "2021"
license = "Apache 2.0"

Expand Down
9 changes: 6 additions & 3 deletions aleph-client/src/connections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ pub struct RootConnection {
connection: SignedConnection,
}

pub(crate) trait AsConnection {
/// Castability to a plain connection.
pub trait AsConnection {
fn as_connection(&self) -> &Connection;
}

pub(crate) trait AsSigned {
/// Castability to a signed connection.
pub trait AsSigned {
fn as_signed(&self) -> &SignedConnection;
}

Expand Down Expand Up @@ -337,7 +339,8 @@ impl Connection {
}
}

pub(crate) fn as_client(&self) -> &SubxtClient {
/// Casts self to the underlying RPC client.
pub fn as_client(&self) -> &SubxtClient {
&self.client
}
}
Expand Down
3 changes: 2 additions & 1 deletion aleph-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ pub type Client = OnlineClient<AlephConfig>;
/// An alias for a hash type.
pub type BlockHash = H256;

pub(crate) type SubxtClient = OnlineClient<AlephConfig>;
/// An alias for an RPC client type.
pub type SubxtClient = OnlineClient<AlephConfig>;

pub use connections::{
Connection, ConnectionApi, RootConnection, SignedConnection, SignedConnectionApi, SudoCall,
Expand Down
2 changes: 1 addition & 1 deletion bin/cliain/Cargo.lock

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