Struct oraiswap::router::RouterController
source · pub struct RouterController(pub String);
Tuple Fields§
§0: String
Implementations§
source§impl RouterController
impl RouterController
pub fn addr(&self) -> String
sourcepub fn execute_operations(
&self,
swap_asset_info: AssetInfo,
amount: Uint128,
operations: Vec<SwapOperation>,
minimum_receive: Option<Uint128>,
swap_to: Option<Addr>
) -> StdResult<CosmosMsg>
pub fn execute_operations( &self, swap_asset_info: AssetInfo, amount: Uint128, operations: Vec<SwapOperation>, minimum_receive: Option<Uint128>, swap_to: Option<Addr> ) -> StdResult<CosmosMsg>
Execute Messages ///
sourcepub fn simulate_swap(
&self,
querier: &QuerierWrapper<'_>,
offer_amount: Uint128,
operations: Vec<SwapOperation>
) -> StdResult<SimulateSwapOperationsResponse>
pub fn simulate_swap( &self, querier: &QuerierWrapper<'_>, offer_amount: Uint128, operations: Vec<SwapOperation> ) -> StdResult<SimulateSwapOperationsResponse>
Query Messages /// query if the given vamm is actually stored
Trait Implementations§
source§impl Clone for RouterController
impl Clone for RouterController
source§fn clone(&self) -> RouterController
fn clone(&self) -> RouterController
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RouterController
impl Debug for RouterController
source§impl<'de> Deserialize<'de> for RouterController
impl<'de> Deserialize<'de> for RouterController
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl JsonSchema for RouterController
impl JsonSchema for RouterController
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq<RouterController> for RouterController
impl PartialEq<RouterController> for RouterController
source§fn eq(&self, other: &RouterController) -> bool
fn eq(&self, other: &RouterController) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RouterController
impl Serialize for RouterController
impl StructuralPartialEq for RouterController
Auto Trait Implementations§
impl RefUnwindSafe for RouterController
impl Send for RouterController
impl Sync for RouterController
impl Unpin for RouterController
impl UnwindSafe for RouterController
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