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

Fields

§recipient: String
§token_id: String
§

SendNft

Send is a base message to transfer a token to a contract and trigger an action on the receiving contract.

Fields

§contract: String
§token_id: String
§

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

Fields

§spender: String
§token_id: String
§

Revoke

Remove previously granted Approval

Fields

§spender: String
§token_id: String
§

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

Fields

§operator: String
§

RevokeAll

Remove previously granted ApproveAll permission

Fields

§operator: String
§

Mint

Mint a new NFT, can only be called by the contract minter

Fields

§token_id: String

Unique ID of the NFT

§owner: String

The owner of the newly minter NFT

§token_uri: Option<String>

Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema

§extension: Option<Empty>

Any custom extension used by this contract

§

Burn

Burn an NFT the sender has access to

Fields

§token_id: String
§

Extension

Extension msg

Fields

§msg: Empty
§

UpdateCollectionInfo

Update specific collection info fields

§

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.