VaultFactoryERC721

Git Source

Inherits:VaultFactoryCore, VaultFactoryDeployment

Functions

mint

Mints a new ERC721 token for a specific vault (vaultId_) to a specified user (user_). Only the corresponding vault is authorized to mint a token.

function mint(uint256 vaultId_, address user_) external returns (uint256 tokenId_);

Parameters

NameTypeDescription
vaultId_uint256The ID of the vault that's minting the token.
user_addressThe address receiving the minted token.

Returns

NameTypeDescription
tokenId_uint256The ID of the newly minted token.

tokenURI

Returns the URI of the specified token ID (id_). In this implementation, an empty string is returned as no specific URI is defined.

function tokenURI(uint256 id_) public view virtual override returns (string memory);

Parameters

NameTypeDescription
id_uint256The ID of the token to query.

Returns

NameTypeDescription
<none>stringAn empty string since no specific URI is defined in this implementation.