whoabuddy / sip015.xyz

The public UI for displaying voting information around SIP-015
https://sip015.xyz
0 stars 0 forks source link

Add ability to send STX for yes/no in method 2 #2

Closed whoabuddy closed 2 years ago

whoabuddy commented 2 years ago

Right now the UI will load a yes/no button after logging in with a Stacks wallet, and includes a popup overlay for clicking either button with additional text.

This should be setup so that:

  1. the user can send the STX for their yes/no vote by clicking "yes" or "no"
  2. the buttons should be disabled if the user has already voted
    • could check user TX history for stx-transfer to either address
    • could check TXs for either address, and if user shows up as a sender
    • could just disable the button after the event is fired off (and persist in localstorage)

For 2 I think I'm leaning toward option B, considering it should be less data to process and more predictable to cache.