PostLib

Git Source

Functions

function postNoteWithLink(
    DataTypes.PostNoteData calldata vars,
    uint256 noteId,
    bytes32 linkItemType,
    bytes32 linkKey,
    bytes calldata data
) external;

mintNote

function mintNote(uint256 characterId, uint256 noteId, address to, bytes calldata mintModuleData, address mintNFTImpl)
    external
    returns (uint256 tokenId);

setNoteUri

function setNoteUri(uint256 characterId, uint256 noteId, string calldata newUri) external;

lockNote

function lockNote(uint256 characterId, uint256 noteId) external;

deleteNote

function deleteNote(uint256 characterId, uint256 noteId) external;

setLinkModule4Note

Sets link module for a given note.

function setLinkModule4Note(uint256 characterId, uint256 noteId, address linkModule, bytes calldata linkModuleInitData)
    external;

Parameters

NameTypeDescription
characterIduint256The character ID to set link module for.
noteIduint256The note ID to set link module for.
linkModuleaddressThe link module to set.
linkModuleInitDatabytesThe data to pass to the link module for initialization, if any.

setMintModule4Note

Sets the mint module for a given note.

function setMintModule4Note(uint256 characterId, uint256 noteId, address mintModule, bytes calldata mintModuleInitData)
    external;

Parameters

NameTypeDescription
characterIduint256The character ID of note to set the mint module for.
noteIduint256The note ID of note.
mintModuleaddressThe mint module to set for note.
mintModuleInitDatabytesThe data to pass to the mint module.

_deployMintNFT

function _deployMintNFT(uint256 characterId, uint256 noteId, address mintNFTImpl) internal returns (address mintNFT);

_setLinkModule4Note

function _setLinkModule4Note(
    uint256 characterId,
    uint256 noteId,
    address linkModule,
    bytes calldata linkModuleInitData,
    DataTypes.Note storage _note
) internal;

_setMintModule4Note

function _setMintModule4Note(
    uint256 characterId,
    uint256 noteId,
    address mintModule,
    bytes calldata mintModuleInitData,
    DataTypes.Note storage _note
) internal;