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:
the user can send the STX for their yes/no vote by clicking "yes" or "no"
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.
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:
For 2 I think I'm leaning toward option B, considering it should be less data to process and more predictable to cache.