Skip to main content

ISablierV2NFTDescriptor

Git Source

This contract generates the URI describing the Sablier V2 stream NFTs.

Inspired by Uniswap V3 Positions NFTs.

Functions

tokenURI

Produces the URI describing a particular stream NFT.

This is a data URI with the JSON contents directly inlined.

function tokenURI(IERC721Metadata sablier, uint256 streamId) external view returns (string memory uri);

Parameters

NameTypeDescription
sablierIERC721MetadataThe address of the Sablier contract the stream was created in.
streamIduint256The id of the stream for which to produce a description.

Returns

NameTypeDescription
uristringThe URI of the ERC721-compliant metadata.