This smart contract is designed to manage a collection of non-fungible tokens (NFTs) on the SUI blockchain, specifically tailored for the Overmind NFT Collection.
- Minting NFTs: Users can mint new NFTs by paying a specified amount of SUI coins. Each NFT has a unique name, description, and image.
- Combining NFTs: Users can combine two existing NFTs into a new one, with a new name, description, and image.
- Withdrawing Sales: The contract owner can withdraw the sales balance accumulated from NFT purchases.
- Burning NFTs: Owners of NFTs can burn (delete) their tokens.
init
- Initializes the smart contract, transferring ownership of the MinterCap object to the sender.
mint_nft
- Mints a new NFT and transfers it to the recipient.
- Returns: Change coin.
- recipient: Address of the recipient.
- nft_name: Name of the NFT.
- nft_description: Description of the NFT.
- nft_image: Image of the NFT.
- payment_coin: Coin used to pay for the NFT.
- minter_cap: MinterCap object.
combine_nfts
- Combines two NFTs into a new NFT.
- Returns: New NFT object.
- nft1: First NFT object.
- nft2: Second NFT object.
- new_image_url: Image of the new NFT.
withdraw_sales
- Withdraws the sales balance from the MinterCap object.
- Returns: Withdrawn coin.
- minter_cap: MinterCap object.
burn_nft
- Deletes an NFT object.
- nft: NFT object to burn.
name
: Gets the name of an NFT.
description
: Gets the description of an NFT.
url
: Gets the image URL of an NFT.
Deploy this smart contract to the SUI blockchain. Interact with the contract through supported blockchain interfaces, providing necessary parameters for minting, combining, withdrawing, and burning NFTs.