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 streamingModel,
string memory assetAddress,
string memory assetSymbol
)
internal
pure
returns (string memory);
generateHrefs
function generateHrefs(
uint256 progressXPosition,
uint256 statusXPosition,
uint256 streamedXPosition,
uint256 durationXPosition
)
internal
pure
returns (string memory);
Structs
SVGParams
struct SVGParams {
string accentColor;
string assetAddress;
string assetSymbol;
string duration;
string progress;
uint256 progressNumerical;
string sablierAddress;
string status;
string streamed;
string streamingModel;
}
SVGVars
struct SVGVars {
string cards;
uint256 cardsWidth;
string durationCard;
uint256 durationWidth;
uint256 durationXPosition;
string progressCard;
uint256 progressWidth;
uint256 progressXPosition;
string statusCard;
uint256 statusWidth;
uint256 statusXPosition;
string streamedCard;
uint256 streamedWidth;
uint256 streamedXPosition;
}