cw_multi_test/gov.rs
1use crate::featured::GovMsg;
2use crate::{AcceptingModule, FailingModule, Module};
3use cosmwasm_std::Empty;
4
5/// This trait implements the interface of the governance module.
6pub trait Gov: Module<ExecT = GovMsg, QueryT = Empty, SudoT = Empty> {}
7
8/// Implementation of the always accepting governance module.
9pub type GovAcceptingModule = AcceptingModule<GovMsg, Empty, Empty>;
10
11impl Gov for GovAcceptingModule {}
12
13/// Implementation of the always failing governance module.
14pub type GovFailingModule = FailingModule<GovMsg, Empty, Empty>;
15
16impl Gov for GovFailingModule {}