pub enum ExecuteMsg<T> {
Show 19 variants
SetNameMarketplace {
address: String,
},
AssociateAddress {
name: String,
address: Option<String>,
},
UpdateImageNft {
name: String,
nft: Option<NFT>,
},
AddTextRecord {
name: String,
record: TextRecord,
},
RemoveTextRecord {
name: String,
record_name: String,
},
UpdateTextRecord {
name: String,
record: TextRecord,
},
VerifyTextRecord {
name: String,
record_name: String,
result: bool,
},
UpdateVerifier {
verifier: Option<String>,
},
TransferNft {
recipient: String,
token_id: String,
},
SendNft {
contract: String,
token_id: String,
msg: Binary,
},
Approve {
spender: String,
token_id: String,
expires: Option<Expiration>,
},
Revoke {
spender: String,
token_id: String,
},
ApproveAll {
operator: String,
expires: Option<Expiration>,
},
RevokeAll {
operator: String,
},
Mint(MintMsg<T>),
Burn {
token_id: String,
},
UpdateCollectionInfo {
collection_info: UpdateCollectionInfoMsg<RoyaltyInfoResponse>,
},
UpdateStartTradingTime(Option<Timestamp>),
FreezeCollectionInfo {},
}Variants§
SetNameMarketplace
Set name marketplace contract address
AssociateAddress
Set an address for name reverse lookup and updates token_uri Can be an EOA or a contract address.
UpdateImageNft
Update image NFT
AddTextRecord
Add text record ex: twitter handle, discord name, etc
RemoveTextRecord
Remove text record ex: twitter handle, discord name, etc
UpdateTextRecord
Update text record ex: twitter handle, discord name, etc
VerifyTextRecord
Verify a text record as true or false (via oracle)
UpdateVerifier
Update the reset the verification oracle
TransferNft
Transfer is a base message to move a token to another account without triggering actions
SendNft
Send is a base message to transfer a token to a contract and trigger an action on the receiving contract.
Approve
Allows operator to transfer / send the token from the owner’s account. If expiration is set, then this allowance has a time/height limit
Revoke
Remove previously granted Approval
ApproveAll
Allows operator to transfer / send any token from the owner’s account. If expiration is set, then this allowance has a time/height limit
RevokeAll
Remove previously granted ApproveAll permission
Mint(MintMsg<T>)
Mint a new NFT, can only be called by the contract minter
Burn
Burn an NFT the sender has access to
UpdateCollectionInfo
Update specific collection info fields
Fields
collection_info: UpdateCollectionInfoMsg<RoyaltyInfoResponse>UpdateStartTradingTime(Option<Timestamp>)
Called by the minter to update trading start time
FreezeCollectionInfo
Freeze collection info from further updates
Trait Implementations§
Source§impl<T: Clone> Clone for ExecuteMsg<T>
impl<T: Clone> Clone for ExecuteMsg<T>
Source§fn clone(&self) -> ExecuteMsg<T>
fn clone(&self) -> ExecuteMsg<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<T: Debug> Debug for ExecuteMsg<T>
impl<T: Debug> Debug for ExecuteMsg<T>
Source§impl<'de, T> Deserialize<'de> for ExecuteMsg<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ExecuteMsg<T>where
T: Deserialize<'de>,
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<T, E> From<ExecuteMsg<T>> for ExecuteMsg<T, E>
impl<T, E> From<ExecuteMsg<T>> for ExecuteMsg<T, E>
Source§fn from(msg: ExecuteMsg<T>) -> Sg721ExecuteMsg<T, E>
fn from(msg: ExecuteMsg<T>) -> Sg721ExecuteMsg<T, E>
Source§impl<T: JsonSchema> JsonSchema for ExecuteMsg<T>
impl<T: JsonSchema> JsonSchema for ExecuteMsg<T>
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(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more