IMintModule4Note
Functions
initializeMintModule
Initialize the MintModule for a specific note.
function initializeMintModule(uint256 characterId, uint256 noteId, bytes calldata data)
external
returns (bytes memory);
Parameters
Name | Type | Description |
---|---|---|
characterId | uint256 | The character ID of the note to initialize. |
noteId | uint256 | The note ID to initialize. |
data | bytes | The data passed from the user to be decoded. |
Returns
Name | Type | Description |
---|---|---|
<none> | bytes | bytes The returned data of calling initializeMintModule. |
processMint
Processes the mint logic.
Triggered when the mintNote
of web3Entry is called, if mint module of note is set.
function processMint(address to, uint256 characterId, uint256 noteId, bytes calldata data) external;
Parameters
Name | Type | Description |
---|---|---|
to | address | The receive address of the NFT. |
characterId | uint256 | The character ID of the note owner. |
noteId | uint256 | The note ID. |
data | bytes | The data passed from the user to be decoded. |