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: 2 additions & 0 deletions aleph-client/src/connections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,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;
}

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 @@ -58,7 +58,8 @@ pub type TxHash = H256;
pub type SubxtClient = OnlineClient<AlephConfig>;

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.
Expand Down