SvgFacet.sol
Documentation for SvgFacet.sol

READ FUNCTIONS

function bytes3ToColorString(bytes3) internal

‌This is some information about the function.

function getAavegotchiSvgLayers(address, int256) internal

‌Returns the SVG layers for an Aavegotchi, given its _collateralType and _numericTraits. Used for retrieving SVG files for unclaimed Portal Aavegotchis.

function getAavegotchiSvgLayers(uint256) internal

‌Returns the SVG layers for an Aavegotchi, given its _tokenId. Used for retrieving SVG files for claimed Portal Aavegotchis.

function getAavegotchiSvg(uint256) external

‌Given an aavegotchi token id, return the combined SVG of its layers and its wearables
RETURNS string

function portalAavegotchisSvg(uint256) external

‌Returns all of the SVG files for the 10 unclaimed Portal Aavegotchis.
RETURNS string[10]

function previewAavegotchi(uint256 _hauntId, address _collateralType, int16[6] _numericTraits, uint16[16] equippedWearables) external

Returns SVG of a Gotchi for given haunt, collateral, numeric traits and equipped wearables. RETURNS string

WRITE FUNCTIONS

function storeSvg(string, SvgTypeAndSizes[]) external

‌Adds the given SVG file to contract memory.

function storeSvgInContract(string) internal

‌Adds the given SVG file to contract memory.

Last modified 1mo ago