Smart Contracts
Contracts
Metadata
SldMetadataService

SldMetadataService

Git Source (opens in a new tab)

Inherits: IMetadataService

State Variables

sld

IHandshakeSld public sld;

tld

IHandshakeTld public tld;

backgroundColour

string internal backgroundColour;

registrationManager

ISldRegistrationManager public registrationManager;

Functions

constructor

constructor(
    IHandshakeSld _sld,
    IHandshakeTld _tld,
    ISldRegistrationManager _registrationManager,
    string memory _background
);

tokenURI

function tokenURI(bytes32 _namehash) external view returns (string memory);

supportsInterface

function supportsInterface(bytes4 interfaceID) public pure override returns (bool);

getImage

function getImage(bytes32 _namehash, string memory _name) private view returns (string memory _image);

json

function json(bytes32 _namehash, string memory _name, string memory _parentName, uint256 _expiry, uint256 _renewalCost)
    private
    view
    returns (string memory);

svg

function svg(string memory _name) private view returns (string memory _svg);

emptySvg

function emptySvg(string memory _name) private view returns (string memory _svg);

canGetImageFromResolver

function canGetImageFromResolver(address _address, bytes memory _data) public view returns (bool);