Struct rhaki_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
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
fn query( &self, api: &dyn Api, storage: &dyn Storage, _querier: &dyn Querier, _block: &BlockInfo, request: BankQuery ) -> AnyResult<Binary>
impl Bank for BankKeeper
Auto Trait Implementations§
impl RefUnwindSafe for BankKeeper
impl Send for BankKeeper
impl Sync for BankKeeper
impl Unpin for BankKeeper
impl UnwindSafe for BankKeeper
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more