Skip to main content

LinearVestingCard

Git Source

SPDX-License-Identifier: BSL-1.1

State Variables

_TEXT_STYLE

string internal constant _TEXT_STYLE =
'font-family="\'Menlo\', monospace" fill="white" text-anchor="middle"';

_NULL

string internal constant _NULL = "";

_addrString

string internal _addrString;

_COLOR_BLUE

string internal constant _COLOR_BLUE = "rgb(110, 148, 240)";

_COLOR_LIGHT_BLUE

string internal constant _COLOR_LIGHT_BLUE = "rgb(118, 189, 242)";

_COLOR_GREEN

string internal constant _COLOR_GREEN = "rgb(206, 244, 117)";

_COLOR_YELLOW_GREEN

string internal constant _COLOR_YELLOW_GREEN = "rgb(243, 244, 189)";

_COLOR_YELLOW

string internal constant _COLOR_YELLOW = "rgb(243, 244, 189)";

_COLOR_ORANGE

string internal constant _COLOR_ORANGE = "rgb(246, 172, 84)";

_COLOR_RED

string internal constant _COLOR_RED = "rgb(242, 103, 64)";

Functions

constructor

constructor();

_attributes

function _attributes(Info memory tokenInfo) internal pure returns (string memory);

_render

function _render(Info memory tokenInfo) internal view returns (string memory);

_title

function _title(string memory symbol) internal pure returns (string memory);
function _logo() internal pure returns (string memory);

_identifier

function _identifier(uint256 tokenId) internal view returns (string memory);

_progressBar

function _progressBar(uint256 start, uint256 end) internal view returns (string memory);

_animateLine

function _animateLine(uint256 len) internal pure returns (string memory);

_progressLabels

function _progressLabels(uint48 start_, uint48 expiry_) internal pure returns (string memory);

_fullGradientStops

function _fullGradientStops() internal pure returns (string memory);

_fullGradientReverseStops

function _fullGradientReverseStops() internal pure returns (string memory);

_fullGradient

function _fullGradient() internal pure returns (string memory);

_fullGradient90

function _fullGradient90() internal pure returns (string memory);

_fullGradientReverse90

function _fullGradientReverse90() internal pure returns (string memory);

_blueGreenGradient

function _blueGreenGradient() internal pure returns (string memory);

_getTimeStrings

function _getTimeStrings(
uint48 start,
uint48 end
) internal pure returns (string memory, string memory);

Structs

Info

struct Info {
uint256 tokenId;
address baseToken;
string baseTokenSymbol;
uint48 start;
uint48 expiry;
uint256 supply;
}