onflow / flow-nft

The non-fungible token standard on the Flow blockchain
https://onflow.org
The Unlicense
464 stars 166 forks source link

View to Describe Actions that can be taken on an NFT #153

Open bluesign opened 1 year ago

bluesign commented 1 year ago

Issue To Be Solved

Inspired by pack view suggestion, I think we need a view to define actions user can take on a resource.

For example:

We can even extend this to take a parameter:

For FT use cases:

I am leaving technical details for discussion.

Contributors

Please respond with any desires or ideas of how this could be implemented

bjartek commented 1 year ago

This is a very nice adition i think, it is not possible to automatically do them from this view, but it still a nice thing to know.

bluesign commented 1 year ago

I am thinking action will direct wallet to a FLIX, but I didn't think all details. It can help with adoption of FLIX too.

joshuahannan commented 1 year ago

I think this is a good idea, though I too am a little confused about how it will be able to route to the actual place to perform that action, so I don't know how useful it is.

bluesign commented 1 year ago

@joshuahannan it will just reference a FLIX; if wallet supports FLIX, it will get the transaction and ask user to fill the parameters if any and ask user to confirm.

joshuahannan commented 1 year ago

Are we far enough along with FLIX that we can make this now? I haven't been paying much attention to FLIX, so I don't know if it is all finalized and ready to use or not

bluesign commented 1 year ago

Are we far enough along with FLIX that we can make this now? I haven't been paying much attention to FLIX, so I don't know if it is all finalized and ready to use or not

oh probably not yet, we can for sure move this after FLIX.