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
hiding param builder details
  • Loading branch information
krzysztofziobro committed Dec 29, 2022
commit dbcc5cd1b24176f49b2b0cbf722d83c814441370
10 changes: 6 additions & 4 deletions aleph-client/src/connections.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@ use subxt::{
metadata::DecodeWithMetadata,
rpc::RpcParams,
storage::{address::Yes, StaticStorageAddress, StorageAddress},
tx::{BaseExtrinsicParamsBuilder, PlainTip, TxPayload},
SubstrateConfig,
tx::TxPayload,
};

use crate::{api, sp_weights::weight_v2::Weight, BlockHash, Call, Client, KeyPair, TxStatus};
use crate::{
api, sp_weights::weight_v2::Weight, ParamsBuilder, BlockHash, Call, Client,
KeyPair, TxStatus,
};

#[derive(Clone)]
pub struct Connection {
Expand Down Expand Up @@ -136,7 +138,7 @@ impl SignedConnection {
pub async fn send_tx_with_params<Call: TxPayload>(
&self,
tx: Call,
params: BaseExtrinsicParamsBuilder<SubstrateConfig, PlainTip>,
params: ParamsBuilder,
status: TxStatus,
) -> anyhow::Result<BlockHash> {
if let Some(details) = tx.validation_details() {
Expand Down
4 changes: 3 additions & 1 deletion aleph-client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pub use subxt::ext::sp_core::Pair;
use subxt::{
ext::sp_core::{ed25519, sr25519, H256},
tx::PairSigner,
OnlineClient, PolkadotConfig,
OnlineClient, PolkadotConfig, SubstrateConfig,
};

use crate::api::runtime_types::aleph_runtime::RuntimeCall as Call;
Expand All @@ -30,6 +30,8 @@ pub type Client = OnlineClient<AlephConfig>;
pub type BlockHash = H256;
pub type CodeHash = H256;

pub type ParamsBuilder = subxt::tx::PolkadotExtrinsicParamsBuilder<SubstrateConfig>;

pub use connections::{Connection, RootConnection, SignedConnection, SudoCall};

#[derive(Copy, Clone)]
Expand Down