A developer is creating a decentralized application for a video game that includes both a fungible in-game currency (like 'gold coins') and unique, non-fungible in-game items (like a 'legendary sword'). To optimize for gas fees and contract management, which token standard would be the most efficient choice for this scenario?
-
A
Deploying two separate contracts: one ERC-20 for the currency and one ERC-721 for the items.
-
B
ERC-1155, which can manage multiple token types (both fungible and non-fungible) within a single contract.
-
C
ERC-20, with a mapping to track ownership of unique items off-chain.
-
D
ERC-721, representing the fungible currency as a large collection of identical NFTs.