feat(gateway): index NFTPrizeEscrow PrizeDeposited/PrizeReleased and relay to chain
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
- 35/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, typescript
- Lĩnh vực
- backend, blockchain
Hướng nghiên cứu
Start with the design doc at ui/docs/designs/play-for-nft.md, then find the existing gateway listener that handles the USDC Deposited event and its MsgProcessDeposit submission, since the issue asks to reuse that plumbing. Add handlers for PrizeDeposited and PrizeReleased on NFTPrizeEscrow, with the same confirmation depth and an idempotency guard. Done when both events map to their chain messages and re-observing an event submits nothing new.
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
Gateway/indexer: observe the escrow contract's Ethereum events and drive the matching chain messages — the same observe-and-relay role the gateway already plays for USDC Deposited.
Requirements
- Watch
NFTPrizeEscrowfor:PrizeDeposited(gameId, nftContract, tokenId, depositor)→ submitMsgConfirmNFTPrizeDeposit(gameId, ethTxRef)once the deposit has sufficient confirmations.PrizeReleased(gameId, recipient, kind, nonce)→ mark the prize released on-chain (so the UI can reflect WIN/REFUND completion and the chain won't re-authorize).
- Confirmation depth consistent with the existing USDC deposit path.
- Idempotent: re-observing the same event must not double-submit.
Notes
- Reuse the existing event-listener + chain-submit plumbing used for
Deposited/MsgProcessDeposit.
- 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