Struct cw_multi_test::BankKeeper
source · pub struct BankKeeper {}
Implementations§
Trait Implementations§
source§impl Default for BankKeeper
impl Default for BankKeeper
source§fn default() -> BankKeeper
fn default() -> BankKeeper
Returns the “default value” for a type. Read more
source§impl Module for BankKeeper
impl Module for BankKeeper
type ExecT = BankMsg
type QueryT = BankQuery
type SudoT = BankSudo
source§fn execute<ExecC, QueryC>(
&self,
_api: &dyn Api,
storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
sender: Addr,
msg: BankMsg
) -> AnyResult<AppResponse>
fn execute<ExecC, QueryC>(
&self,
_api: &dyn Api,
storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
sender: Addr,
msg: BankMsg
) -> AnyResult<AppResponse>
execute runs any ExecT message, which can be called by any external actor
or smart contract Read more
source§fn sudo<ExecC, QueryC>(
&self,
api: &dyn Api,
storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
msg: BankSudo
) -> AnyResult<AppResponse>
fn sudo<ExecC, QueryC>(
&self,
api: &dyn Api,
storage: &mut dyn Storage,
_router: &dyn CosmosRouter<ExecC = ExecC, QueryC = QueryC>,
_block: &BlockInfo,
msg: BankSudo
) -> AnyResult<AppResponse>
sudo runs privileged actions, like minting tokens, or governance proposals.
This allows modules to have full access to these privileged actions,
that cannot be triggered by smart contracts. Read more