feat(pokerchain): NFT prize messages + validator unlock signing (register/confirm/request/submit)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 22/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- blockchain, go
- Lĩnh vực
- blockchain
Hướng nghiên cứu
Start with the design doc at ui/docs/designs/play-for-nft.md, then read the withdrawal path in pokerchain/x/poker/ (keeper, msg server, query, and BuildWithdrawalSignature) that the new messages mirror. Done means NFTPrize state keyed by gameId, the register, confirm, request and submit messages with the SNG start gate on confirmed, the NFTUnlockSigningHash signature, and a query for it, all covered by tests alongside the withdrawal tests.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Part of #196 (Play for NFTs). Design: ui/docs/designs/play-for-nft.md.
Scope
x/poker chain-side support for the NFT prize lifecycle: track the escrowed prize per gameId, gate SNG start on a confirmed deposit, author the unlock request on win/cancel, and have validators sign it — reusing the withdrawal signing path.
State
NFTPrize{ gameId, nftContract, tokenId, depositorEth, confirmed bool, nonce }keyed bygameId.
Messages
MsgRegisterNFTPrize{ gameId, nftContract, tokenId, depositorEth }— creator declares the intended prize (before start), recorded unconfirmed.MsgConfirmNFTPrizeDeposit{ gameId, ethTxRef }— gateway-only; flipsconfirmedafterPrizeDepositedis observed. SNG start must be gated onconfirmed.MsgRequestNFTUnlock{ gameId, recipientEth }— resolution trigger:- Caller's cosmos identity is the recorded winner (
GameState.Results) → authorize a WIN unlock torecipientEth. - Game cancelled pre-winner and caller is the depositor's cosmos identity → authorize a REFUND to the depositor's ETH address.
- Caller's cosmos identity is the recorded winner (
MsgSubmitNFTUnlockSignature{ ... }— twin ofMsgSubmitWithdrawalSignature; validators submit their 65-byte signature.
Signing
- Reuse the withdrawal helper with the escrow payload:
NFTUnlockSigningHash(gameId, recipient, kind, nonce) = EIP-191(keccak256(abi.encodePacked(gameId, recipient, kind, nonce))). Sign withVALIDATOR_ETH_PRIVATE_KEY(same asBuildWithdrawalSignature). Serve the signature via a query likeWithdrawalSignature.
Notes
- SNG-only, winner-takes-all: the winner is the single 1st place in
Results; noplacefield. - Mirror the existing withdrawal keeper / msg-server / query structure in
pokerchain/x/poker/.
- Ngôn ngữ chính
- TypeScript
- Star
- 2
- Fork
- 5
- Merge trung bình
- 23 giờ 37 phút
- Pull request đã merge (30 ngày)
- 96
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của block52/ui
-
guards: accept readonly arrays (and other array-likes) in isEmpty / hasElements / safeLengthĐang mởenhancement tech debt
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug: next-to-act flash stuck on the last folder when their fold closes a called all-in (fold + runout + hand_ended in one snapshot)Có thể đã có người làm @bitcoinbrisbane đã nhận 2 ngày trước. Đang mởanimation bug game-flow sit-and-go UI Week 2
block52/ui#968 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feat(ui): player language setting and translated player screensCó thể đã có người làm @Dzeezbtc đã nhận 4 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
feat(ui): player notes and tags — click a seat to note a player; tag icons (fish, shark, tight, loose…) show by their pillCó thể đã có người làm @Dzeezbtc đã nhận 7 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
-
architecture refactor tech debt
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
danielw-sudo/agentuto#63 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
idea-scout idea:341
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
jeanibarz/agent-notebook#341 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation good first issue roadmap
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nightgauge/nightgauge#3077 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
LibreChat-AI/LibreChat#17915 ·
Maintainer thường phản hồi trong vòng 1 ngày