misc: Date display type added for 'minted at' NFT trait

This commit is contained in:
donosonaumczuk
2023-11-14 11:58:53 -03:00
parent 2521ef4a29
commit b32d22386e
3 changed files with 5 additions and 5 deletions

View File

@@ -32,11 +32,11 @@ contract FollowTokenURI is IFollowTokenURI {
followedProfileIdAsString,
'","image":"data:image/svg+xml;base64,',
Base64.encode(bytes(FollowSVG.getFollowSVG(followTokenId))),
'","attributes":[{"display_type": "number", "trait_type":"ID","value":"',
'","attributes":[{"display_type":"number","trait_type":"ID","value":"',
followTokenIdAsString,
'"},{"trait_type":"DIGITS","value":"',
bytes(followTokenIdAsString).length.toString(),
'"},{"trait_type":"MINTED AT","value":"',
'"},{"display_type":"date","trait_type":"MINTED AT","value":"',
originalFollowTimestamp.toString(),
'"}]}'
)

View File

@@ -27,7 +27,7 @@ contract HandleTokenURI is IHandleTokenURI {
localName,
'","image":"data:image/svg+xml;base64,',
Base64.encode(bytes(HandleSVG.getHandleSVG(localName))),
'","attributes":[{"display_type": "number", "trait_type":"ID","value":"',
'","attributes":[{"display_type":"number","trait_type":"ID","value":"',
tokenId.toString(),
'"},{"trait_type":"NAMESPACE","value":"',
namespace,

View File

@@ -25,13 +25,13 @@ contract ProfileTokenURI is IProfileTokenURI {
profileIdAsString,
'","image":"data:image/svg+xml;base64,',
Base64.encode(bytes(ProfileSVG.getProfileSVG(profileId))),
'","attributes":[{"display_type": "number", "trait_type":"ID","value":"',
'","attributes":[{"display_type":"number","trait_type":"ID","value":"',
profileIdAsString,
'"},{"trait_type":"HEX ID","value":"',
profileId.toHexString(),
'"},{"trait_type":"DIGITS","value":"',
bytes(profileIdAsString).length.toString(),
'"},{"trait_type":"MINTED AT","value":"',
'"},{"display_type":"date","trait_type":"MINTED AT","value":"',
mintTimestamp.toString(),
'"}]}'
)