I have read about ERC 1155 that how it can be used to mint both fungible(ERC20) and non-fungible(ERC721) tokens. So my question is:
- Fungible tokens that we mint using ERC1155 will have exact same functions as a token minted from ERC20 contract will have or more functions can be added in it from ERC721 standard?
- I guess what I mean is that can functions of ERC20 and ERC721 be mixed to create kind of a semi fungable token?
ERC1155
supports bothERC20
andERC721
. It is usually used in game applications.In gaming, gold, iron, or gem are exchanged by the game players so those should support
ERC20
. They are fungible because they are interchangeable. But swords, spaceships, knights, or shields are implemented asERC721
. There can be many of them, so they are called collections but since they are not interchanged they are implemented asERC721
.It would cost too much to run two different smart contracts. There would be alot of transactions between those two contracts. That is why
ERC1155
is created