diff --git a/src/app.rs b/src/app.rs index a1852635..8cefa186 100644 --- a/src/app.rs +++ b/src/app.rs @@ -6,7 +6,7 @@ use crate::gov::Gov; use crate::ibc::Ibc; use crate::module::{FailingModule, Module}; use crate::staking::{Distribution, DistributionKeeper, StakeKeeper, Staking, StakingSudo}; -use crate::stargate::{FailingStargate, Stargate, StargateMsg, StargateQuery}; +use crate::stargate::{Stargate, StargateFailingModule, StargateMsg, StargateQuery}; use crate::transactions::transactional; use crate::wasm::{ContractData, Wasm, WasmKeeper, WasmSudo}; use crate::{AppBuilder, GovFailingModule, IbcFailingModule}; @@ -37,7 +37,7 @@ pub type BasicApp = App< DistributionKeeper, IbcFailingModule, GovFailingModule, - FailingStargate, + StargateFailingModule, >; /// Router is a persisted state. You can query this. @@ -54,7 +54,7 @@ pub struct App< Distr = DistributionKeeper, Ibc = IbcFailingModule, Gov = GovFailingModule, - Stargate = FailingStargate, + Stargate = StargateFailingModule, > { pub(crate) router: Router, pub(crate) api: Api, @@ -88,7 +88,7 @@ impl BasicApp { DistributionKeeper, IbcFailingModule, GovFailingModule, - FailingStargate, + StargateFailingModule, >, &dyn Api, &mut dyn Storage, @@ -113,7 +113,7 @@ where DistributionKeeper, IbcFailingModule, GovFailingModule, - FailingStargate, + StargateFailingModule, >, &dyn Api, &mut dyn Storage, diff --git a/src/app_builder.rs b/src/app_builder.rs index b17b4f05..35db5711 100644 --- a/src/app_builder.rs +++ b/src/app_builder.rs @@ -1,6 +1,6 @@ //! Implementation of the builder for [App]. -use crate::stargate::{FailingStargate, Stargate}; +use crate::stargate::{Stargate, StargateFailingModule}; use crate::{ App, Bank, BankKeeper, Distribution, DistributionKeeper, FailingModule, Gov, GovFailingModule, Ibc, IbcFailingModule, Module, Router, StakeKeeper, Staking, Wasm, WasmKeeper, @@ -36,7 +36,7 @@ pub type BasicAppBuilder = AppBuilder< DistributionKeeper, IbcFailingModule, GovFailingModule, - FailingStargate, + StargateFailingModule, >; /// Utility to build [App] in stages. @@ -66,7 +66,7 @@ impl Default DistributionKeeper, IbcFailingModule, GovFailingModule, - FailingStargate, + StargateFailingModule, > { fn default() -> Self { @@ -85,7 +85,7 @@ impl DistributionKeeper, IbcFailingModule, GovFailingModule, - FailingStargate, + StargateFailingModule, > { /// Creates builder with default components working with empty exec and query messages. @@ -101,7 +101,7 @@ impl distribution: DistributionKeeper::new(), ibc: IbcFailingModule::new(), gov: GovFailingModule::new(), - stargate: FailingStargate::new(), + stargate: StargateFailingModule::new(), } } } @@ -117,7 +117,7 @@ impl DistributionKeeper, IbcFailingModule, GovFailingModule, - FailingStargate, + StargateFailingModule, > where ExecC: Debug + Clone + PartialEq + JsonSchema + DeserializeOwned + 'static, @@ -137,7 +137,7 @@ where distribution: DistributionKeeper::new(), ibc: IbcFailingModule::new(), gov: GovFailingModule::new(), - stargate: FailingStargate::new(), + stargate: StargateFailingModule::new(), } } } diff --git a/src/lib.rs b/src/lib.rs index 77900bd3..5d2aac63 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -40,5 +40,5 @@ pub use crate::module::{AcceptingModule, FailingModule, Module}; pub use crate::staking::{ Distribution, DistributionKeeper, StakeKeeper, Staking, StakingInfo, StakingSudo, }; -pub use crate::stargate::{FailingStargate, Stargate, StargateMsg, StargateQuery}; +pub use crate::stargate::{Stargate, StargateFailingModule, StargateMsg, StargateQuery}; pub use crate::wasm::{ContractData, Wasm, WasmKeeper, WasmSudo}; diff --git a/src/staking.rs b/src/staking.rs index 78a27c2f..70b06d9d 100644 --- a/src/staking.rs +++ b/src/staking.rs @@ -988,7 +988,7 @@ impl Module for DistributionKeeper { #[cfg(test)] mod test { use super::*; - use crate::stargate::FailingStargate; + use crate::stargate::StargateFailingModule; use crate::{ app::MockRouter, BankKeeper, FailingModule, GovFailingModule, IbcFailingModule, Router, WasmKeeper, @@ -1008,7 +1008,7 @@ mod test { DistributionKeeper, IbcFailingModule, GovFailingModule, - FailingStargate, + StargateFailingModule, >; fn mock_router() -> BasicRouter { @@ -1020,7 +1020,7 @@ mod test { distribution: DistributionKeeper::new(), ibc: IbcFailingModule::new(), gov: GovFailingModule::new(), - stargate: FailingStargate::new(), + stargate: StargateFailingModule::new(), } } diff --git a/src/stargate.rs b/src/stargate.rs index 2c8d1cf4..1e951274 100644 --- a/src/stargate.rs +++ b/src/stargate.rs @@ -19,9 +19,9 @@ pub struct StargateQuery { pub trait Stargate: Module {} -pub type FailingStargate = FailingModule; +pub type StargateFailingModule = FailingModule; -impl Stargate for FailingStargate {} +impl Stargate for StargateFailingModule {} impl From for CosmosMsg { fn from(msg: StargateMsg) -> Self { diff --git a/src/wasm.rs b/src/wasm.rs index 95424170..ae2cacc2 100644 --- a/src/wasm.rs +++ b/src/wasm.rs @@ -1117,7 +1117,7 @@ mod test { use crate::bank::BankKeeper; use crate::module::FailingModule; use crate::staking::{DistributionKeeper, StakeKeeper}; - use crate::stargate::FailingStargate; + use crate::stargate::StargateFailingModule; use crate::test_helpers::{caller, error, payout}; use crate::transactions::StorageTransaction; use crate::{GovFailingModule, IbcFailingModule}; @@ -1136,7 +1136,7 @@ mod test { DistributionKeeper, IbcFailingModule, GovFailingModule, - FailingStargate, + StargateFailingModule, >; fn wasm_keeper() -> WasmKeeper { @@ -1152,7 +1152,7 @@ mod test { distribution: DistributionKeeper::new(), ibc: IbcFailingModule::new(), gov: GovFailingModule::new(), - stargate: FailingStargate::new(), + stargate: StargateFailingModule::new(), } }