From 299cd8b6651d98a041c843732f3ee4367ee42f50 Mon Sep 17 00:00:00 2001 From: zian Date: Fri, 9 Jun 2023 16:53:46 +0800 Subject: [PATCH] resolve imports --- dhatu/src/error/mod.rs | 2 +- dhatu/src/tx/dhatu_assets/facade.rs | 2 +- dhatu/src/tx/extrinsics/funds_reserve/reserve.rs | 3 ++- dhatu/src/types.rs | 1 - 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dhatu/src/error/mod.rs b/dhatu/src/error/mod.rs index 71a1218..6bed0fb 100644 --- a/dhatu/src/error/mod.rs +++ b/dhatu/src/error/mod.rs @@ -1,6 +1,6 @@ use crate::{ registrar::key_manager::prelude::KeypairGenerationError, - tx::extrinsics::prelude::{reserve::FundsReserveError, CallbackExecutorError}, MandalaClientErorr, + tx::extrinsics::prelude::{reserve::FundsReserveError, CallbackExecutorError}, types::MandalaClientErorr, }; #[derive(thiserror::Error, Debug)] diff --git a/dhatu/src/tx/dhatu_assets/facade.rs b/dhatu/src/tx/dhatu_assets/facade.rs index 0fc36ae..8c0d866 100644 --- a/dhatu/src/tx/dhatu_assets/facade.rs +++ b/dhatu/src/tx/dhatu_assets/facade.rs @@ -1,6 +1,6 @@ use std::{collections::HashMap, sync::Arc}; -use crate::{registrar::key_manager::prelude::{PrivateKey, PublicAddress}, MandalaClient}; +use crate::{registrar::key_manager::prelude::{PrivateKey, PublicAddress}, types::MandalaClient}; use futures::{future, FutureExt}; diff --git a/dhatu/src/tx/extrinsics/funds_reserve/reserve.rs b/dhatu/src/tx/extrinsics/funds_reserve/reserve.rs index 201b049..46b735e 100644 --- a/dhatu/src/tx/extrinsics/funds_reserve/reserve.rs +++ b/dhatu/src/tx/extrinsics/funds_reserve/reserve.rs @@ -7,12 +7,13 @@ use crate::tx::extrinsics::prelude::{ enums::ExtrinsicStatus, extrinsics::Transaction, transfer_balance::constructor::BalanceTransfer, }; +use crate::types::MandalaClient; use subxt::dynamic::{At, DecodedValueThunk}; use subxt::{tx::PairSigner}; -use crate::{registrar::key_manager::prelude::PrivateKey, MandalaClient}; +use crate::{registrar::key_manager::prelude::PrivateKey}; #[derive(thiserror::Error, Debug)] pub enum FundsReserveError { diff --git a/dhatu/src/types.rs b/dhatu/src/types.rs index f040d94..5d5ee2c 100644 --- a/dhatu/src/types.rs +++ b/dhatu/src/types.rs @@ -1,5 +1,4 @@ use subxt::{tx::SubmittableExtrinsic, OnlineClient, PolkadotConfig}; -use types::{Extrinsic, MandalaConfig, NodeClient}; pub(crate) type MandalaConfig = PolkadotConfig; pub(crate) type NodeClient = OnlineClient;