NFTSVG
State Variables
CARD_MARGIN
uint256 internal constant CARD_MARGIN = 16;
Functions
generateSVG
function generateSVG(SVGParams memory params) internal pure returns (string memory);
generateDefs
function generateDefs(
string memory accentColor,
string memory status,
string memory cards
)
internal
pure
returns (string memory);
generateFloatingText
function generateFloatingText(
string memory sablierAddress,
string memory sablierModel,
string memory assetAddress,
string memory assetSymbol
)
internal
pure
returns (string memory);
generateHrefs
function generateHrefs(
uint256 progressXPosition,
uint256 statusXPosition,
uint256 amountXPosition,
uint256 durationXPosition
)
internal
pure
returns (string memory);
Structs
SVGParams
struct SVGParams {
string accentColor;
string amount;
string assetAddress;
string assetSymbol;
string duration;
string progress;
uint256 progressNumerical;
string sablierAddress;
string sablierModel;
string status;
}
SVGVars
struct SVGVars {
string amountCard;
uint256 amountWidth;
uint256 amountXPosition;
string cards;
uint256 cardsWidth;
string durationCard;
uint256 durationWidth;
uint256 durationXPosition;
string progressCard;
uint256 progressWidth;
uint256 progressXPosition;
string statusCard;
uint256 statusWidth;
uint256 statusXPosition;
}