Skip to main content

SMCooldownReceipt

Git Source

Inherits: ERC721, Ownable2Step, ISMCooldownReceipt

State Variables

nextTokenId

ID of the next token to be minted.

uint256 public nextTokenId;

Functions

constructor

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

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>uint256tokenId The 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.