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
Revert "re-export crates used by subxt"
This reverts commit bd4174b.
  • Loading branch information
krzysztofziobro committed Jan 13, 2023
commit 9e64eae4bc4595d01e9a98f51bace73efd60919f
16 changes: 8 additions & 8 deletions aleph-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ use anyhow::anyhow;
pub use contract_transcode;
use serde::Serialize;
use serde_json::value::RawValue;
pub use subxt::ext::{codec, sp_core, sp_runtime};
use subxt::{rpc::RpcParams, OnlineClient, PolkadotConfig, SubstrateConfig};

pub use crate::sp_core::Pair;
use crate::{
api::runtime_types::aleph_runtime::RuntimeCall as Call,
sp_core::{ed25519, sr25519, H256},
pub use subxt::ext::sp_core::Pair;
use subxt::{
ext::sp_core::{ed25519, sr25519, H256},
rpc::RpcParams,
OnlineClient, PolkadotConfig, SubstrateConfig,
};

use crate::api::runtime_types::aleph_runtime::RuntimeCall as Call;
// generated by running `subxt codegen --derive Clone Debug Eq PartialEq | rustfmt --edition=2021 > src/aleph_zero.rs`
#[allow(clippy::all)]
mod aleph_zero;
Expand All @@ -45,7 +45,7 @@ pub type AlephKeyPair = ed25519::Pair;
/// An alias for a type of a key pair that signs chain transactions.
pub type RawKeyPair = sr25519::Pair;
/// An alias for an account id type.
pub type AccountId = crate::sp_core::crypto::AccountId32;
pub type AccountId = subxt::ext::sp_core::crypto::AccountId32;
/// An alias for a client type.
pub type Client = OnlineClient<AlephConfig>;
/// An alias for a hash type.
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: 2 additions & 3 deletions e2e-tests/src/test/staking.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use aleph_client::{
account_from_keypair,
api::runtime_types::sp_core::bounded::bounded_vec::BoundedVec,
keypair_from_string,
account_from_keypair, keypair_from_string,
pallet_staking::StakingLedger,
pallets::{
author::AuthorRpc,
Expand All @@ -11,6 +9,7 @@ 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