ApprovalLinkModule4Note
Inherits: ILinkModule4Note, ModuleBase
This is a simple LinkModule implementation, inheriting from the ILinkModule4Note interface.
State Variables
_approvedByCharacterByNoteByOwner
mapping(address => mapping(uint256 => mapping(uint256 => mapping(address => bool)))) internal
_approvedByCharacterByNoteByOwner;
Functions
constructor
constructor(address web3Entry_) ModuleBase(web3Entry_);
initializeLinkModule
function initializeLinkModule(uint256 characterId, uint256 noteId, bytes calldata data)
external
override
returns (bytes memory);
approve
function approve(uint256 characterId, uint256 noteId, address[] calldata addresses, bool[] calldata toApprove)
external;
processLink
function processLink(address caller, uint256 characterId, uint256 noteId, bytes calldata)
external
view
override
onlyWeb3Entry;
isApproved
function isApproved(address characterOwner, uint256 characterId, uint256 noteId, address toCheck)
external
view
returns (bool);