relevant tag icon
Manifold Burnable Extension
copy icon
manifoldxyz
• version 1.0.0
Manifold
Extension
Burnable

Manifold Burnable Extension

Suggested implementation for extensions that want to receive onBurn callbacks

*Visit desktop site to download or deploy

Version

1.0.0

Last Publish

11/28/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
supportsInterface(bytes4) :
This function checks whether a given interfaceId is supported by the contract. It does this by comparing the given interfaceId to the interfaceId of the IERC1155CreatorExtensionBurnable type. If the two match, the function returns true. If not, it calls the super.supportsInterface() function to check if the interfaceId is supported by the parent contract. (autogenerated documentation)
mintNew(address,uint256[]) :
This function is used to mint new tokens. It takes in four parameters: the address of the creator, an array of addresses to which the tokens should be sent, an array of amounts of tokens to be sent, and an array of strings containing URIs associated with the tokens. The function then calls the _mintNew() internal function, which mints the tokens and returns an array of the token IDs. (autogenerated documentation)
_mintNew(address,uint256[]) :
This function is used to mint new tokens on the Ethereum blockchain. It takes in four parameters: the address of the creator, an array of addresses to send the tokens to, an array of amounts of tokens to send, and an array of URIs associated with the tokens. It then calls the mintExtensionNew function from the IERC1155CreatorCore interface, which creates the tokens and returns an array of token IDs. Finally, it stores the creator address in the _tokenCreators mapping for each token ID. (autogenerated documentation)
onBurn(uint256[],uint256[]) :
This function is an override of the onBurn function in the ERC721 contract. It checks that the sender of the transaction is the creator of the token before allowing the token to be burned. It does this by looping through the array of tokenIds and checking that the sender of the transaction matches the creator of the token stored in the _tokenCreators mapping. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i manifold-burnable-extension
copy icon

Last Publish

11/28/2022

Version

1.0.0

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.