NFTSVG
Inherits: INFTSVG
Functions
isNFTSVG
Checks if the contract is compliant with the NFTSVG interface
function isNFTSVG() external pure returns (bool);
generateVaultURI
Generates a URI for a given vault
function generateVaultURI(SVGParams memory params_)
public
pure
returns (string memory);
Parameters
Name | Type | Description |
---|---|---|
params_ | SVGParams | Parameters for generating the URI |
generateFallbackURI
Generates a fallback URI for a given vault
function generateFallbackURI(SVGParams memory params_)
public
pure
returns (string memory);
Parameters
Name | Type | Description |
---|---|---|
params_ | SVGParams | Parameters for generating the URI |
_generateName
Generates the name of the URI for a given vault
function _generateName(SVGParams memory params_)
internal
pure
returns (string memory);
Parameters
Name | Type | Description |
---|---|---|
params_ | SVGParams | Parameters for generating the URI |
_generateDescription
Generates the description of the URI for a given vault
function _generateDescription(SVGParams memory params_)
internal
pure
returns (string memory);
Parameters
Name | Type | Description |
---|---|---|
params_ | SVGParams | Parameters for generating the URI |
_generateSVGImage
Generates the SVG image of the URI for a given vault
function _generateSVGImage(address vault_)
internal
pure
returns (string memory svg);
Parameters
Name | Type | Description |
---|---|---|
vault_ | address | The vault address represented by the NFT |
_generateSVGDefs
function _generateSVGDefs() internal pure returns (string memory);
_generateSVGMasks
function _generateSVGMasks() internal pure returns (string memory);
_generateSVGFrame
function _generateSVGFrame() internal pure returns (string memory);
_generateSVGDunes
function _generateSVGDunes() internal pure returns (string memory);
_generateSVGFront
function _generateSVGFront() internal pure returns (string memory);
_generateSVGBack
function _generateSVGBack(address vault_)
internal
pure
returns (string memory);