add a metadata view to designate an nft as a pack#148
add a metadata view to designate an nft as a pack#148austinkline wants to merge 1 commit intoonflow:masterfrom
Conversation
| pub enum PackStatus: UInt8 { | ||
| pub case Sealed | ||
| pub case RevealRequested | ||
| pub case Revealed | ||
| pub case OpenRequested | ||
| pub case Opened | ||
| } |
There was a problem hiding this comment.
I'm not sure if an enum is the right call given its finality. We could instead make it a string so we can add to this as needed. Both Gaia and AD packs use an enum, though
There was a problem hiding this comment.
Could we potentially make it an integer, and then have a switch statement to indicate what its status is? that way we can add more to it if needed, but it is still similar to an enum
There was a problem hiding this comment.
No strong feelings on that part either way. I was talking to Chris on the Gaia team and he had suggested maybe going with a "Consumable" standard instead where packs are just a one-time consumable. In which case, we would amend this to let you ask how many charges are left in some capacity.
I'll open a ticket to discuss this and then we can amend this PR as needed, it is just a starting point for discussion 🙂
|
+1 |
joshuahannan
left a comment
There was a problem hiding this comment.
I think this looks pretty good! I'll try to get some of the studio engineers to look at it also
| pub enum PackStatus: UInt8 { | ||
| pub case Sealed | ||
| pub case RevealRequested | ||
| pub case Revealed | ||
| pub case OpenRequested | ||
| pub case Opened | ||
| } |
There was a problem hiding this comment.
Could we potentially make it an integer, and then have a switch statement to indicate what its status is? that way we can add more to it if needed, but it is still similar to an enum
|
Added a ticket so we can discuss: |
|
The semantics of packs is different in every implementation i have seen. Can we open up a bigger discussion around consumable/pack semantics? I tried to create a tax reporting export to koinly and some packs/opening logic does not have enough data to cost-allocate the items in the pack/consumable to the new nfts. This is a pretty huge problem if the tax government comes calling. |
Closes: #149
Description
Some NFTs on Flow are Packs. They can be opened to obtain the contents inside of them, but are largely useless afterwards. Two examples of this are NFL All Day packs, and Gaia NFT Packs. In both of these cases, there isn't a standard metadata view to designate them as opened. Because of that, users are at risk of purchasing a pack they might not know is empty.
This view adds a way to detect if something is a pack, letting marketplaces decide what they should do with that information. Perhaps that just means displaying that the pack is opened, or it could mean disabling trading altogether.
For contributor use:
masterbranchFiles changedin the Github PR explorer