Hello, maybe someone could suggest a nice way of solving this problem:
I am trying to build a DApp that uses ERC721 standard. There will be teams and players. I am thinking of tokenizing both (ERC721), teams and players. However, teams will have players, so technically, they are the owners of player tokens. but ERC721 mints tokens to specific addresses, so how do I assign a player to specific team?

Apr 2, 2020, 6:57 AM
You may create erc721 tokens contracts for both teams and team members
Team tokens would create tokens for team contract, hence team contract would mint tokens for team members respectively.
Apr 2, 2020, 7:13 AM
But ERC721 has mint function that accepts address and token id, what should I pass to address field? What happens if a player decides to sell his team, how the players will be transfered?
Apr 2, 2020, 7:46 AM
For teams you should put the address of team’s token contract
Player will not sell the team
Your token is a record only
Each address assigned to something
The sell or buy means reassign something to another address
Look it up in erc721 eip description
Apr 2, 2020, 8:11 AM
sorry, I mean real person, the owner of the team
Apr 2, 2020, 8:22 AM
Real person can transfer the team token to another real person.
Apr 2, 2020, 11:32 AM

© 2024 Draquery.com All rights reserved.