pub fn unbond_bluna_with_handler_msg<T: Clone + fmt::Debug + PartialEq + JsonSchema>(
    storage: &dyn Storage,
    bluna_amount: Uint128,
    unbond_handler: &Addr,
) -> StdResult<CosmosMsg<T>> {
    let state = STATE.load(storage)?;
    Ok(CosmosMsg::Wasm(WasmMsg::Execute {
        contract_addr: state.bluna_address.to_string(),
        msg: to_binary(&Cw20ExecuteMsg::Send {
            contract: unbond_handler.to_string(),
            amount: bluna_amount,
            msg: to_binary(&UnbondHandlerUnbondMsg {})?,
        })?,
        funds: vec![],
    }))
}
/// Builds message to send bluna to a handler triggering the unbond action
Builds message to send bluna to a handler triggering the unbond action
Builds message to send bluna to a handler triggering the unbond action
pub fn unbond_bluna_with_handler_msg<T: Clone + fmt::Debug + PartialEq + JsonSchema>(
    storage: &dyn Storage,
    bluna_amount: Uint128,
    unbond_handler: &Addr,
) -> StdResult<CosmosMsg<T>> {
    let state = STATE.load(storage)?;
    Ok(CosmosMsg::Wasm(WasmMsg::Execute {
        contract_addr: state.bluna_address.to_string(),
        msg: to_binary(&Cw20ExecuteMsg::Send {
            contract: unbond_handler.to_string(),
            amount: bluna_amount,
            msg: to_binary(&UnbondHandlerUnbondMsg {})?,
        })?,
        funds: vec![],
    }))
}
pub fn unbond_bluna_with_handler_msg < T : Clone + fmt :: Debug + PartialEq + JsonSchema > ( storage : & dyn Storage , bluna_amount : Uint128 , unbond_handler : & Addr , ) -> StdResult < CosmosMsg < T > > { let state = STATE . load ( storage ) ? ; Ok ( CosmosMsg :: Wasm ( WasmMsg :: Execute { contract_addr : state . bluna_address . to_string ( ) , msg : to_binary ( & Cw20ExecuteMsg :: Send { contract : unbond_handler . to_string ( ) , amount : bluna_amount , msg : to_binary ( & UnbondHandlerUnbondMsg { } ) ? , } ) ? , funds : vec ! [ ] , } ) ) }
Builds message to send bluna to a handler triggering the unbond action
Builds message to send bluna to a handler triggering the unbond action
storage
&dyn Storage
bluna_amount
Uint128
unbond_handler
&Addr
storage
&dyn Storage
bluna_amount
Uint128
unbond_handler
&Addr