pub enum ExecuteMsg {
Show 13 variants
UpdateWhitelist {
to_add: Vec<String>,
to_remove: Vec<String>,
restrict_transfers: Option<bool>,
},
UpdateAdmin {
new_admin: String,
},
Transfer {
recipient: String,
amount: Uint128,
},
Burn {
amount: Uint128,
},
Send {
contract: String,
amount: Uint128,
msg: Binary,
},
IncreaseAllowance {
spender: String,
amount: Uint128,
expires: Option<Expiration>,
},
DecreaseAllowance {
spender: String,
amount: Uint128,
expires: Option<Expiration>,
},
TransferFrom {
owner: String,
recipient: String,
amount: Uint128,
},
SendFrom {
owner: String,
contract: String,
amount: Uint128,
msg: Binary,
},
BurnFrom {
owner: String,
amount: Uint128,
},
Mint {
recipient: String,
amount: Uint128,
},
UpdateMarketing {
project: Option<String>,
description: Option<String>,
marketing: Option<String>,
},
UploadLogo(Logo),
}
Variants§
UpdateWhitelist
UpdateAdmin
Transfer
Transfer is a base message to move tokens to another account without triggering actions
Burn
Burn is a base message to destroy tokens forever
Send
Send is a base message to transfer tokens to a contract and trigger an action on the receiving contract.
IncreaseAllowance
Only with “approval” api. 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
Only with “approval” api. 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
Only with “approval” api. Transfers amount tokens from owner -> recipient
if env.sender
has sufficient pre-approval.
SendFrom
Only with “approval” api. Sends amount tokens from owner -> contract
if env.sender
has sufficient pre-approval.
BurnFrom
Only with “approval” api. Destroys tokens forever
Mint
Only with the “mintable” api. If authorized, creates amount new tokens and adds to the recipient balance.
UpdateMarketing
Only with the “marketing” api. If authorized, updates marketing metadata. Setting None/null for any of these will leave it unchanged. Setting Some(“”) will clear this field on the contract storage
UploadLogo(Logo)
If set as the “marketing” role on the contract, upload a new URL, SVG, or PNG for the token
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 json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl PartialEq<ExecuteMsg> for ExecuteMsg
impl PartialEq<ExecuteMsg> 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 ==
.