feat(ui): Play-for-NFT escrow-at-creation and winner claim flows
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 12/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- blockchain, typescript
- 領域
- blockchain, frontend
調査の方向性
Start with the linked design doc at ui/docs/designs/play-for-nft.md, since the issue defers much of the flow detail to it. Read nftImageResolver.ts to see how prize NFTs are displayed, and locate the existing cosmos-to-ETH wallet hooks and withdrawal-signature query the issue says to reuse. Done means the creator escrow and winner or refund claim flows work end to end, with the prize state shown as unconfirmed until the chain confirms it.
索引モデルが issue の本文から書いたものです。
説明
Part of #196 (Play for NFTs). Design: ui/docs/designs/play-for-nft.md.
Scope
UI for the two user-facing flows: escrow the NFT at SNG creation, and claim it as the winner.
Escrow-at-creation (creator)
- In the SNG creation flow, option to add an NFT prize (contract + tokenId).
- After
MsgCreateGamereturns thegameId, submitMsgRegisterNFTPrize, then prompt the ETH wallet to callERC721.safeTransferFrom(creator, escrow, tokenId, abi.encode(gameId))— one tx, no approve. - Show prize state: "unconfirmed" until the chain reports
confirmed(SNG start is gated on it). - Display the prize NFT on the table (reuse
nftImageResolver.ts).
Claim (winner)
- On SNG finish, if the connected wallet is the winner, surface a "Claim NFT prize" action.
- Collect the winner's ETH recipient address, call
MsgRequestNFTUnlock(gameId, recipientEth), poll for the validator signature (query, like the withdrawal signature), then prompt the ETH wallet to callNFTPrizeEscrow.release(gameId, recipientEth, WIN, nonce, sig)— winner pays gas. - Refund path (creator) when the SNG is cancelled: same shape with
REFUNDto the depositor.
Notes
- SDK types only (12 Commandments), double quotes,
yarninui/. - Reuse the existing cosmos↔ETH wallet hooks and the withdrawal-signature query pattern.
- 主要言語
- TypeScript
- スター
- 2
- フォーク
- 5
- 平均マージ
- 23時間 23分
- マージ済み PR(30日)
- 97
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
block52/ui のほかの issue
-
enhancement tech debt
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
feat(ui): player notes and tags — click a seat to note a player; tag icons (fish, shark, tight, loose…) show by their pill対応中かも @Dzeezbtc が 2 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
chore(ui): move existing inline null/empty and typeof checks to the guards対応中かも @bitcoinbrisbane が 3 日前に担当しました。 オープンrefactor tech debt UI
メンテナーはふだん 1 日以内に返信
-
architecture refactor tech debt
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
test: claim-conflict drop leaves both facts active and is never re-proposed (untested review cell)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 1 日以内に返信
-
[Feature]: Usage page should show API-equivalent cost and say when a connected plan shows info onlyオープンenhancement from-x
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
nightly-labs/openbot#4867 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
egonSchiele/agency-lang#1377 ·
メンテナーはふだん 1 日以内に返信
-
normalizePath removes the Windows device namespace prefix対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
caprover/caprover-frontend#273 ·
メンテナーはふだん 1 日以内に返信