Client
Protocol ERC721 Token Minimal Implementation
Purpose
The IProtocolToken interface contains the minimal set of functions that must be implemented in order for an ERC721 token to be compatible with the protocol.
Function Overview
The following functions have been defined in the IProtocolToken interface and must be implemented:
- connectHandlerToToken: Used to connect a deployed Protocol Token Handler to the token.
- getHandlerAddress: used to retrieve the address of the Protocol Token Handler.
checkAllRules Hook
The token must also override the _beforeTokenTransfer function and add a call to the checkAllRules hook defined in the IProtocolTokenHandler interface (using the handler address set in the above functions). Example:
ERC165
The protocol relies on ERC721 tokens inheriting ERC165 interface standard. If your token does not inherit ERC165 rules that rely on pricing may not function as intended.