create BEP-129 for GameFi Non-fungible Token #129
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
BEP-129: Non-fungible Token for GameFi
1. Summary
This BEP describes a proposal for GameFi specific NFT on the Binance Smart Chain.
2. Abstract
Games using non-fungible tokens to stand for their internal objects including roles, assets etc. and there will be some dynamic data asscociated with them, e.g.
The existing ERC721 standard does not compatible with these kind of use-cases, and the new protocol introduce a simple data structure to store attributes.
3. Status
This BEP is already implemented.
4. Motivation
The existing NFT protocol stores Metadata externally and links through URI. This link relationship is fragile, and developers can even modify the URI. In addition, the storage location of Metadata is also uncertain and may be stored on a centralized server. Through this protocol:
You can find the specific implementation case here.
5. Specification
5.1 Attribute standard
BEP-129 is an extension of EIP-721. Following attribute-related functions and events are suggested to be added:
5.2 Implementation
5.2.1 The flow of NFT in the protocol
5.2.2 BEP-129 implementation
The attribute operation permission of NFT is controlled by the treasure contract.
5.2.3 Treasure contract implementation
There are two permissions that need to be controlled:
Solutions:
Refer to this treasure contract example:
6. License
The content is licensed under CC0.