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

Create game tiers and add them to the sidebar #195

Open
github-actions bot opened this issue Aug 21, 2023 · 2 comments
Open

Create game tiers and add them to the sidebar #195

github-actions bot opened this issue Aug 21, 2023 · 2 comments
Labels
500 USDT help wanted Extra attention is needed P1 priority 1 issues todo

Comments

@github-actions
Copy link

github-actions bot commented Aug 21, 2023

https://api.github.com/aufacicenta/pulsemarkets/blob/ee5fa9477ce33608924fe8c71a708e41300f1ed0/app/src/ui/pulse/sidebar/PulseSidebar.tsx#L12

import styles from "./PulseSidebar.module.scss";
import { PulseSidebarProps } from "./PulseSidebar.types";

// @TODO Create game tiers and add them to the sidebar
// labels: 500 USDT, P1

export const PulseSidebar: React.FC<PulseSidebarProps> = ({ className, isOpen, handleOpen, handleClose }) => {
  const { t } = useTranslation(["common"]);

This issue is more complex than what the title describes:

Motivation

The original game design requires 10 USDT usdt.tether-token.near in a user's wallet to play only one game. As a new game and given that it runs under the NEAR Protocol, this 10 USDT fact is a big obstacle to onboard new users, because some of them don't even have a NEAR wallet.

This PR is tracking a new feature were a new user is created a "guest wallet" automatically and they can play up to 5 "free" games. These free games are really Rust contracts were the price of playing is 0.01 USDT. We transfer 0.05 USDT to a guest user wallet so they can play. This transfer must be limited to the user's device, so do not create more than 1 wallet per user.

Proposal and Solution

Once users are engaged with the game after having played for free, can we onboard them into paying for new games? How much would they be willing to pay?

Action items:

  • Create 3 or 4 Rust game factories, each factory creates a game with a set price, eg. 5, 10, 20, 100 USDT. To play, a user must transfer this amount of USDT to the current game
    -- For this, only set the new USDT price in constants.rs, build and deploy the factories to testnet and mainnet
  • These factories must have their own NextJS page, so that when a user clicks the "create a new game" button, the button calls each corresponding factory contract
    -- We can also do this by creating a Modal and display the different game price options
@github-actions github-actions bot added 500 USDT help wanted Extra attention is needed P1 priority 1 issues todo labels Aug 21, 2023
@netpoe netpoe moved this to Todo in Prompt Wars Aug 21, 2023
@Udit-takkar
Copy link
Contributor

@netpoe I can work on this issue

@netpoe
Copy link
Contributor

netpoe commented Oct 26, 2023

@Udit-takkar let's complete #200 first. Otherwise the new factories will be deployed with the old contract code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
500 USDT help wanted Extra attention is needed P1 priority 1 issues todo
Projects
Status: Todo
Development

No branches or pull requests

2 participants