SMCooldownReceipt
Inherits: ERC721, Ownable2Step, ISMCooldownReceipt
State Variables
nextTokenId
ID of the next token to be minted.
uint256 public nextTokenId;Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 |
Functions
constructor
constructor(address _initialMinter)
ERC721("Makina Security Module Cooldown NFT", "MakinaSMCooldownNFT")
Ownable(_initialMinter);Parameters
| Name | Type | Description |
|---|---|---|
| _initialMinter | address |
mint
Mints a new cooldown receipt NFT to the specified address.
function mint(address to) external onlyOwner returns (uint256);Parameters
| Name | Type | Description |
|---|---|---|
| to | address | The receiver of the minted NFT. |
Returns
| Name | Type | Description |
|---|---|---|
| <none> | uint256 | The ID of the minted NFT. |
burn
Burns the specified cooldown receipt NFT.
function burn(uint256 tokenId) external onlyOwner;Parameters
| Name | Type | Description |
|---|---|---|
| tokenId | uint256 | The ID of the NFT to burn. |