flow-nft icon indicating copy to clipboard operation
flow-nft copied to clipboard

View to Describe Actions that can be taken on an NFT

Open bluesign opened this issue 2 years ago • 6 comments

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:

  • if user has a Pack, it can define Open Pack action.
  • if I have a .find name, close to expiring, it can show: Renew action ( I forgot to renew my name recently, this would help me )
  • if I have a loan on Flowty, it can have an action to show: Pay Back

We can even extend this to take a parameter:

For FT use cases:

  • It can have an action to Send To someone FT tokens, with action parameters amount and recipient

I am leaving technical details for discussion.

Contributors

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

bluesign avatar Feb 03 '23 09:02 bluesign

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.

bjartek avatar Feb 03 '23 09:02 bjartek

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.

bluesign avatar Feb 03 '23 09:02 bluesign

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.

joshuahannan avatar Feb 10 '23 20:02 joshuahannan

@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.

bluesign avatar Feb 10 '23 21:02 bluesign

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

joshuahannan avatar Feb 10 '23 22:02 joshuahannan

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.

bluesign avatar Feb 10 '23 22:02 bluesign