Interface Contracts
Last updated
Last updated
The interface contracts are used to define the functions that a contract must implement without providing the implementation of those functions. They are similar to abstract contracts but cannot contain any implemented functions or state variables. Interface contracts are particularly useful for defining the expected behaviours of other contracts that will interact with the implementing contract.
The interface contracts make it possible for anyone to build their own version of something while making sure the different implementations can talk to each other.
There are 4 interface contracts that cover the 721J functions. There's 1 interface contract that covers the functions in The Contract Wizard. They are called:
IERC721J / IERC721JUpgradeable
IERC721JEnumerable / IERC721JEnumerableUpgradeable
IERC721JFull / IERC721JFullUpgradeable
IERC721JPromo / IERC721JPromoUpgradeable
IContractWizard
The I stands for Interface.
The 721J interfaces are named that way because the normal 721J ones are for the normal contract and the Upgradeable ones are for the 721J clones to be used with The Contract Wizard.
IERC2981 is for royalties.
IERC721, IERC721Metadata, IERC721Enumerable, and IERC721Receiver are to cover the functionality of a normal ERC721 contract.