Struct big_strats_pkg::grid::action_module::warp_action_module::ActionWarp
source · pub struct ActionWarp<'a> {
pub warp_accounts: Map<'a, Addr, ActionWarpAccounts>,
pub being_creation: Item<'a, ActionWarpGridBeingCreated>,
}Expand description
ActionInterface for warp
Fields§
§warp_accounts: Map<'a, Addr, ActionWarpAccounts>Map of warps accounts (middle and registered) for any users
being_creation: Item<'a, ActionWarpGridBeingCreated>Trait Implementations§
source§impl<'a> ActionInterface for ActionWarp<'a>
impl<'a> ActionInterface for ActionWarp<'a>
type UserInfo = WarpUserInfo
fn on_init(&self, _deps: Deps<'_>, _config: &Config) -> StdResult<Vec<SubMsg>>
fn on_grid_creation<SIC: SwapInterfaceCollector + Serialize>( &self, deps: DepsMut<'_>, env: Env, info: &MessageInfo, config: &Config, position: &UserPosition<SIC> ) -> StdResult<Vec<SubMsg>>
fn on_before_swap_execution( &self, _deps: DepsMut<'_>, _config: &Config, _position_id: u64 ) -> StdResult<Vec<CosmosMsg>>
fn on_after_swap_execution<SIC: SwapInterfaceCollector>( &self, _deps: DepsMut<'_>, _config: &Config, _position: &UserPosition<SIC> ) -> StdResult<Vec<SubMsg>>
fn on_remove_grid<SIC: SwapInterfaceCollector>( &self, _deps: DepsMut<'_>, _config: &Config, _position: &UserPosition<SIC> ) -> StdResult<Vec<SubMsg>>
fn on_query_check( &self, _deps: Deps<'_>, _config: &Config, _position_id: u64 ) -> StdResult<()>
fn on_reply<SIC: SwapInterfaceCollector + Serialize>( &self, deps: DepsMut<'_>, env: Env, config: &Config, reply: Reply ) -> StdResult<Vec<SubMsg>>
fn execute_feature<SIC: SwapInterfaceCollector + Serialize + Clone + DeserializeOwned>( &self, deps: DepsMut<'_>, env: Env, info: &MessageInfo, config: &Config, feature: Binary ) -> StdResult<Vec<SubMsg>>
fn user_info( &self, deps: Deps<'_>, user: String, config: &Config ) -> StdResult<Self::UserInfo>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ActionWarp<'a>
impl<'a> Send for ActionWarp<'a>
impl<'a> Sync for ActionWarp<'a>
impl<'a> Unpin for ActionWarp<'a>
impl<'a> UnwindSafe for ActionWarp<'a>
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