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
Use re-exports
  • Loading branch information
krzysztofziobro committed Jan 4, 2023
commit ff0051992bafd8db19907944e2d90fb3adb2e920
5 changes: 2 additions & 3 deletions aleph-client/src/connections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ use anyhow::anyhow;
use codec::Decode;
use log::info;
use subxt::{
ext::sp_core::Bytes,
metadata::DecodeWithMetadata,
rpc::RpcParams,
storage::{address::Yes, StaticStorageAddress, StorageAddress},
tx::TxPayload,
};

use crate::{
api, sp_weights::weight_v2::Weight, AccountId, BlockHash, Call, KeyPair, ParamsBuilder,
SubxtClient, TxStatus,
api, sp_core::Bytes, sp_weights::weight_v2::Weight, AccountId, BlockHash, Call, KeyPair,
ParamsBuilder, SubxtClient, TxStatus,
};

#[derive(Clone)]
Expand Down
2 changes: 1 addition & 1 deletion aleph-client/src/pallets/balances.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use primitives::Balance;
use subxt::ext::sp_runtime::MultiAddress;

use crate::{
aleph_zero::{self, api, api::runtime_types::pallet_balances::BalanceLock},
pallet_balances::pallet::Call::transfer,
pallets::utility::UtilityApi,
sp_runtime::MultiAddress,
AccountId, BlockHash,
Call::Balances,
ConnectionApi, ParamsBuilder, SignedConnectionApi, TxStatus,
Expand Down
6 changes: 3 additions & 3 deletions aleph-client/src/pallets/contract.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
use codec::{Compact, Encode};
use pallet_contracts_primitives::ContractExecResult;
use primitives::Balance;
use subxt::{ext::sp_core::Bytes, rpc_params};
use subxt::rpc_params;

use crate::{
api, pallet_contracts::wasm::OwnerInfo, sp_weights::weight_v2::Weight, AccountId, BlockHash,
CodeHash, ConnectionApi, SignedConnectionApi, TxStatus,
api, pallet_contracts::wasm::OwnerInfo, sp_core::Bytes, sp_weights::weight_v2::Weight,
AccountId, BlockHash, CodeHash, ConnectionApi, SignedConnectionApi, TxStatus,
};

#[derive(Encode)]
Expand Down
10 changes: 3 additions & 7 deletions aleph-client/src/pallets/staking.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
use primitives::{Balance, EraIndex};
use subxt::{
ext::{
sp_core::storage::StorageKey,
sp_runtime::{MultiAddress, Perbill as SPerbill},
},
storage::address::{StorageHasher, StorageMapKey},
};
use subxt::storage::address::{StorageHasher, StorageMapKey};

use crate::{
api,
Expand All @@ -21,6 +15,8 @@ use crate::{
pallet_sudo::pallet::Call::sudo_as,
pallets::utility::UtilityApi,
sp_arithmetic::per_things::Perbill,
sp_core::storage::StorageKey,
sp_runtime::{MultiAddress, Perbill as SPerbill},
AccountId, BlockHash,
Call::{Staking, Sudo},
ConnectionApi, RootConnection, SignedConnectionApi, SudoCall, TxStatus,
Expand Down
2 changes: 1 addition & 1 deletion aleph-client/src/pallets/system.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
use primitives::Balance;
use subxt::ext::sp_runtime::Perbill as SPerbill;

use crate::{
api,
frame_system::pallet::Call::{fill_block, set_code},
sp_arithmetic::per_things::Perbill,
sp_runtime::Perbill as SPerbill,
AccountId, BlockHash,
Call::System,
ConnectionApi, RootConnection, SudoCall, TxStatus,
Expand Down
2 changes: 1 addition & 1 deletion aleph-client/src/pallets/treasury.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
use frame_support::PalletId;
use primitives::{Balance, MILLISECS_PER_BLOCK};
use sp_runtime::traits::AccountIdConversion;
use subxt::ext::sp_runtime::MultiAddress;

use crate::{
api,
connections::AsConnection,
pallet_treasury::pallet::Call::{approve_proposal, reject_proposal},
pallets::{elections::ElectionsApi, staking::StakingApi},
sp_runtime::MultiAddress,
AccountId, BlockHash,
Call::Treasury,
ConnectionApi, RootConnection, SignedConnectionApi, SudoCall, TxStatus,
Expand Down
6 changes: 2 additions & 4 deletions aleph-client/src/pallets/vesting.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use subxt::ext::sp_runtime::MultiAddress;

use crate::{
api, pallet_vesting::vesting_info::VestingInfo, AccountId, BlockHash, ConnectionApi,
SignedConnectionApi, TxStatus,
api, pallet_vesting::vesting_info::VestingInfo, sp_runtime::MultiAddress, AccountId, BlockHash,
ConnectionApi, SignedConnectionApi, TxStatus,
};

#[async_trait::async_trait]
Expand Down