Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
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
Prev Previous commit
Next Next commit
re-export crates used by subxt
  • Loading branch information
krzysztofziobro committed Jan 4, 2023
commit bd4174b58c3a42e8a341f6e6559327c4ae8bb051
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