Play for NFTs
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Da chiarire
- Stato di attività
- Tranquilla
- Stack tecnologico
- blockchain, typescript
- Ambito
- blockchain, frontend
Direzione di ricerca
The repository is described as front-end TypeScript code for tables and lobbies, but no files, tests, or entry points are named. Trace table creation for tournament and SNG flows, then examine how the vault contract and Cosmos wallet plus MetaMask signing would fit. Done means an owner can deposit an NFT as the prize and the winner can redeem it.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Epic: Play for NFTs — ETH escrow keyed by gameId, validator-signed release
Design doc: ui/docs/designs/play-for-nft.md (committed on the Play-for-NFT design branch).
A Sit & Go creator escrows an ERC-721 NFT on Ethereum as the prize. The poker-chain runs the SNG as normal. When it resolves, the winner pulls the NFT out of escrow by presenting a validator-signed unlock — the same single-validator ECDSA scheme the USDC withdrawal bridge already uses. If the SNG is cancelled before a winner exists, the chain issues a validator-signed refund to the depositor.
Locked decisions
- Scope: SNG only, winner-takes-all (one prize NFT → 1st place; no place tiers).
- Prize source: creator escrows the NFT at table creation.
- Escrow deposit: one transaction via
onERC721Received(NFT's ownsafeTransferFrom(creator, escrow, tokenId, abi.encode(gameId))— noapprove, no separate entrypoint). - Unlock auth: reuse the bridge's single-validator signing — EIP-191 keccak256, verified against
Vault.isValidator. - Release: winner pulls and pays ETH gas; no relayer / gasless path.
- Refund: chain-signed REFUND to the depositor on cancellation.
- Winner ETH address: provided at claim; the chain signs only for the recorded winner's cosmos identity.
Why it's mostly reuse
SngWinNFT.claim(...) is already a validator-signed, double-claim-guarded ERC-721 grant verified by IValidator(vault).isValidator(). The escrow is the same pattern with the asset held and released instead of minted. Signing reuses WithdrawalSigningHash / BuildWithdrawalSignature; the whitelist reuses Vault.isValidator. The genuinely new pieces are one contract and a few x/poker messages.
Signed unlock message
EIP-191( keccak256( abi.encodePacked(gameId, recipient, kind, nonce) ) ), kind ∈ {1 WIN, 2 REFUND}. Structurally identical to the withdrawal hash (receiver, amount, nonce).
Work breakdown (child issues)
- #755 —
NFTPrizeEscrow.solcontract + tests - #756 —
x/pokerchain messages + signing helper - #757 — Gateway indexer: observe
PrizeDeposited/PrizeReleased - #758 — UI: escrow-at-creation flow + winner claim flow
End-to-end flow
CREATE creator → MsgCreateGame → gameId
creator → ERC721.safeTransferFrom(creator, escrow, tokenId, abi.encode(gameId)) [1 tx]
gateway observes PrizeDeposited → MsgConfirmNFTPrizeDeposit(gameId) (SNG start gated on confirmed)
PLAY normal SNG; engine records winner in GameState.Results
WIN winner → MsgRequestNFTUnlock(gameId, recipientEth) (chain verifies caller == winner)
validators sign → winner → NFTPrizeEscrow.release(gameId, recipientEth, WIN, nonce, sig) [winner pays gas]
CANCEL chain marks cancelled → depositor → MsgRequestNFTUnlock(gameId, depositorEth)
validators sign → depositor → release(gameId, depositorEth, REFUND, nonce, sig)
See the design doc for the full contract sketch, chain state/messages, edge cases, and reuse map.
- Lingua principale
- TypeScript
- Stelle
- 2
- Fork
- 5
- Merge medio
- 22h 35m
- PR unite (30g)
- 91
Preparare l'ambiente
Non abbiamo ancora controllato i file di configurazione di questo progetto. Parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di block52/ui
-
enhancement tech debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Hero hole cards render face down after ~1h on a table (auth signature never renewed)Forse già presa @bitcoinbrisbane l’ha presa oggi. Apertabug UI Week 2
block52/ui#953 · 2 assegnatari ·
I maintainer di solito rispondono entro 1 giorno
-
Time bank clock is hidden under the NFT avatar: move it left of the seat numberForse già presa @Dzeezbtc l’ha presa oggi. Apertagame-flow UI ux Week 2
block52/ui#950 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
feat(ui): player notes and tags — click a seat to note a player; tag icons (fish, shark, tight, loose…) show by their pillForse già presa @Dzeezbtc l’ha presa 1 giorno fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
chore(ui): move existing inline null/empty and typeof checks to the guardsForse già presa @bitcoinbrisbane l’ha presa 2 giorni fa. Apertarefactor tech debt UI
block52/ui#937 · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
unocss/unocss#5421 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
needs-area
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Azure/typespec-azure#5936 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 Mezza giornata Idoneità per principianti 72/100
vercel-labs/scriptc#2910 ·
I maintainer di solito rispondono entro 1 giorno
-
automation missing-model model-sync provider:fireworks-ai
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anomalyco/models.dev#12458 ·
I maintainer di solito rispondono entro 1 giorno