Skip to content
LogoLogo

SMCooldownReceipt

Git Source

Inherits: ERC721, Ownable2Step, ISMCooldownReceipt

State Variables

nextTokenId

ID of the next token to be minted.

uint256 public nextTokenId;

Returns

NameTypeDescription
<none>uint256

Functions

constructor

constructor(address _initialMinter)
        ERC721("Makina Security Module Cooldown NFT", "MakinaSMCooldownNFT")
        Ownable(_initialMinter);

Parameters

NameTypeDescription
_initialMinteraddress

mint

Mints a new cooldown receipt NFT to the specified address.

function mint(address to) external onlyOwner returns (uint256);

Parameters

NameTypeDescription
toaddressThe receiver of the minted NFT.

Returns

NameTypeDescription
<none>uint256The ID of the minted NFT.

burn

Burns the specified cooldown receipt NFT.

function burn(uint256 tokenId) external onlyOwner;

Parameters

NameTypeDescription
tokenIduint256The ID of the NFT to burn.