Type Alias sg721_base::ExecuteMsg
source · pub type ExecuteMsg = ExecuteMsg<Extension, Empty>;
Aliased Type§
enum ExecuteMsg {
Show 13 variants
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 {
token_id: String,
owner: String,
token_uri: Option<String>,
extension: Option<Empty>,
},
Burn {
token_id: String,
},
Extension {
msg: Empty,
},
UpdateCollectionInfo {
collection_info: UpdateCollectionInfoMsg<RoyaltyInfoResponse>,
},
UpdateStartTradingTime(Option<Timestamp>),
FreezeCollectionInfo,
UpdateOwnership(Action),
}
Variants§
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
Mint a new NFT, can only be called by the contract minter
Fields
Burn
Burn an NFT the sender has access to
Extension
Extension msg
UpdateCollectionInfo
Update specific collection info fields
Fields
collection_info: UpdateCollectionInfoMsg<RoyaltyInfoResponse>
UpdateStartTradingTime(Option<Timestamp>)
Called by the minter to update trading start time
FreezeCollectionInfo
UpdateOwnership(Action)
Update the contract’s ownership. The action
to be provided
can be either to propose transferring ownership to an account,
accept a pending ownership transfer, or renounce the ownership
permanently.