Skip to content

Commit

Permalink
re-export crates used by subxt
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofziobro committed Jan 4, 2023
1 parent 7e381e1 commit bd4174b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
13 changes: 7 additions & 6 deletions aleph-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@
extern crate core;

pub use contract_transcode;
pub use subxt::ext::sp_core::Pair;
use subxt::{
ext::sp_core::{ed25519, sr25519, H256},
OnlineClient, PolkadotConfig, SubstrateConfig,
};
pub use subxt::ext::{codec, sp_core, sp_runtime};
use subxt::{OnlineClient, PolkadotConfig, SubstrateConfig};

use crate::api::runtime_types::aleph_runtime::RuntimeCall as Call;
pub use crate::sp_core::Pair;
use crate::{
api::runtime_types::aleph_runtime::RuntimeCall as Call,
sp_core::{ed25519, sr25519, H256},
};
// generated by running `subxt codegen --derive Clone Debug Eq PartialEq | rustfmt --edition=2021 > src/aleph_zero.rs`
#[allow(clippy::all)]
mod aleph_zero;
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/src/test/ban.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use std::collections::HashSet;

use aleph_client::{
api::runtime_types::sp_core::bounded::bounded_vec::BoundedVec,
pallets::{
elections::{ElectionsApi, ElectionsSudoApi},
session::SessionApi,
staking::{StakingApi, StakingUserApi},
},
primitives::{BanInfo, BanReason, CommitteeSeats, ElectionOpenness},
sp_core::bounded::bounded_vec::BoundedVec,
waiting::{BlockStatus, WaitingExt},
SignedConnection, TxStatus,
};
Expand Down
5 changes: 3 additions & 2 deletions e2e-tests/src/test/staking.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
use aleph_client::{
account_from_keypair, keypair_from_string,
account_from_keypair,
api::runtime_types::sp_core::bounded::bounded_vec::BoundedVec,
keypair_from_string,
pallet_staking::StakingLedger,
pallets::{
author::AuthorRpc,
Expand All @@ -9,7 +11,6 @@ use aleph_client::{
staking::{StakingApi, StakingUserApi},
},
primitives::CommitteeSeats,
sp_core::bounded::bounded_vec::BoundedVec,
waiting::{BlockStatus, WaitingExt},
AccountId, KeyPair, Pair, SignedConnection, SignedConnectionApi, TxStatus,
};
Expand Down

0 comments on commit bd4174b

Please sign in to comment.