PostLib
Functions
postNoteWithLink
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
Name | Type | Description |
---|---|---|
characterId | uint256 | The character ID to set link module for. |
noteId | uint256 | The note ID to set link module for. |
linkModule | address | The link module to set. |
linkModuleInitData | bytes | The 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
Name | Type | Description |
---|---|---|
characterId | uint256 | The character ID of note to set the mint module for. |
noteId | uint256 | The note ID of note. |
mintModule | address | The mint module to set for note. |
mintModuleInitData | bytes | The 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;