pub enum ExecuteMsg {
Transfer {
recipient: RawAddr,
amount: Uint128,
},
Send {
contract: RawAddr,
amount: Uint128,
msg: Binary,
},
IncreaseAllowance {
spender: RawAddr,
amount: Uint128,
expires: Option<Expiration>,
},
DecreaseAllowance {
spender: RawAddr,
amount: Uint128,
expires: Option<Expiration>,
},
TransferFrom {
owner: RawAddr,
recipient: RawAddr,
amount: Uint128,
},
SendFrom {
owner: RawAddr,
contract: RawAddr,
amount: Uint128,
msg: Binary,
},
}
Expand description
Execute message for liquidity token proxy
Variants§
Transfer
Transfer is a base message to move tokens to another account without triggering actions
Send
Send is a base message to transfer tokens to a contract and trigger an action on the receiving contract.
IncreaseAllowance
Fields
amount: Uint128
Amount they can spend
Allows spender to access an additional amount tokens from the owner’s (env.sender) account. If expires is Some(), overwrites current allowance expiration with this one.
DecreaseAllowance
Fields
amount: Uint128
Amount to reduce by
Lowers the spender’s access of tokens from the owner’s (env.sender) account by amount. If expires is Some(), overwrites current allowance expiration with this one.
TransferFrom
Fields
amount: Uint128
Amount to send
Transfers amount tokens from owner -> recipient
if env.sender
has sufficient pre-approval.
SendFrom
Sends amount tokens from owner -> contract
if env.sender
has sufficient pre-approval.
Trait Implementations§
source§impl Clone for ExecuteMsg
impl Clone for ExecuteMsg
source§fn clone(&self) -> ExecuteMsg
fn clone(&self) -> ExecuteMsg
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ExecuteMsg
impl Debug for ExecuteMsg
source§impl<'de> Deserialize<'de> for ExecuteMsg
impl<'de> Deserialize<'de> for ExecuteMsg
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>,
source§impl JsonSchema for ExecuteMsg
impl JsonSchema for ExecuteMsg
source§fn schema_name() -> String
fn schema_name() -> String
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq for ExecuteMsg
impl PartialEq for ExecuteMsg
source§fn eq(&self, other: &ExecuteMsg) -> bool
fn eq(&self, other: &ExecuteMsg) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ExecuteMsg
impl Serialize for ExecuteMsg
impl StructuralPartialEq for ExecuteMsg
Auto Trait Implementations§
impl RefUnwindSafe for ExecuteMsg
impl Send for ExecuteMsg
impl Sync for ExecuteMsg
impl Unpin for ExecuteMsg
impl UnwindSafe for ExecuteMsg
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>,
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 more