Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scavengerhunt UI updates #182

Open
wants to merge 20 commits into
base: scavengerhunt
Choose a base branch
from

Conversation

eccheung4
Copy link

  • Updated UI
  • Answers saved when switching views
  • Added leaderboard
  • Time remaining
  • handle url params (game=contract address, q=question index, a=answer), that will load game at that address and q/a will fill in input for user

Is there QR code creator in the burner wallet?
QR code scanner example to possibly just scan q/a string instead of loading a url?

Things to Do:

  • Handle QR code scanning and generation
  • After owner reveals answers, let user know what answers they got correct and need to reveal to get point.

@eccheung4
Copy link
Author

  1. I've added handling for QR code scanning, idea being that when they find answer to question, they may be a QR code that they can just scan and it will fill in the answer or load the scavenger hunt contract as well
    QRCode: game=0xContractAddress&q=1&a=helloworld
    q - question index
    a - answer

  2. Added some logic to only allow user to reveal answer for ones they got right and show correct answer for ones they got wrong

Things to do:

  • using simple alert() currently for some messages, would like to use some sort of better notification

@eccheung4
Copy link
Author

  • used changeAlert for notifications

@austintgriffith Hope you're doing well after a long blockchain week. I think the UI is in a fairly good state. I was wondering if there is a way to deploy the contract with xDai in one transaction? Otherwise, I could deploy the contract, then when its deployed I can trigger another transaction to send xDai to it. I'll need to add an input field for this. Once this is done, I can create a demo video with the latest updates.

@eccheung4
Copy link
Author

I think this can be merged

@eccheung4
Copy link
Author

Demo: https://www.youtube.com/watch?v=30hiLtOjVyU
I have a medium post describing it a bit more and I'll create another PR if there are more fixes.

iamonuwa added a commit to iamonuwa/burner-wallet that referenced this pull request Jul 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants