Hierarchy
Hierarchy is one of the pillars of our architecture, it defines abstraction on top of all supported token standards
Hierarchy of entities consists of 5 levels, some entities does not make sense, so they are virtual
NATIVE | ERC20 | ERC721 | ERC998 | ERC1155 | |
---|---|---|---|---|---|
contract | ✔ | ✔ | ✔ | ✔ | ✔ |
template | ✘ | ✘ | ✔ | ✔ | ✔ |
token | ✘ | ✘ | ✔ | ✔ | ✘ |
balance | ✔ | ✔ | ✘ | ✘ | ✔ |
composition | ✘ | ✘ | ✘ | ✔ | ✘ |
For example token entity of ERC20 and ERC1155 has no metadata thus they have no template, as well as balance entity for ERC721 and ERC998 always has amount equal to 1