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

As Example dApp, I should provide the possibility to play #14

Open
melpadden opened this issue Mar 25, 2024 · 0 comments
Open

As Example dApp, I should provide the possibility to play #14

melpadden opened this issue Mar 25, 2024 · 0 comments
Assignees
Labels

Comments

@melpadden
Copy link
Collaborator

The play logic starts by clicking the “Play” button, which opens the “Play” popup. Depending on the state, it can be in one of the following forms:

  1. Onboarding state (user is not connected)
    1. A message saying “Please connect your Casper account to play!”
    2. A button saying “Connect” that triggers the CSPR.click connection popup
  2. Play state:
    1. A message saying “Buy a ticket for 50 CSPR to get a chance to win the jackpot!”
      1. The ticket price should come from the configuration
    2. A button saying “Play” that creates a deploy that calls the play entry point through the WASM proxy.
  3. Waiting state should be a popup with:
    1. A message saying: “Waiting for the results of your play…”
  4. Winning state:
    1. A message saying “Congratulations, you have won 1,000 CSPR!”
    2. A button saying “Play more” that creates a deploy that calls the play entry point through the WASM proxy
  5. Jackpot winning state:
    1. A message saying “Congratulations, you have won the jackpot of 20,000 CSPR!!!”
    2. A button saying “Play more” that creates a deploy that calls the play entry point through the WASM proxy
  6. Losing state
    1. A message saying “You did not win this time. Try again!”
    2. A button saying “Try again” that creates a deploy that calls the play entry point through the WASM proxy

Note, that you may see a bit different messaging in the design. Please use what you think is appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants