Skip to content

ISSUE-003-CU03: Implement Real NFT IntegrationΒ #324

Description

@davidmelendez

✨ Issue Request

Replace the NFT minting simulation with real integration to the LottoTicketNFT contract. Each ticket must generate an intransferible NFT.

πŸ“Œ Description

Currently the system uses a simulation for minting lottery ticket NFTs. Real integration with the LottoTicketNFT contract is required so that each purchased ticket generates an intransferible NFT representing the user's participation.

πŸ› οΈ Steps to Reproduce (if applicable)

  1. Purchase a lottery ticket
  2. Verify that a real NFT is generated
  3. Confirm that the NFT is intransferible
  4. Validate that the NFT contains the selected numbers

πŸ–ΌοΈ Screenshots (if applicable)

Not applicable - contract integration.

🎯 Expected Behavior

  • Each purchased ticket must generate a real NFT
  • The NFT must be intransferible (cannot be transferred to other wallets)
  • The NFT must contain the selected lottery numbers
  • The NFT must have correct metadata (date, numbers, etc.)
  • The NFT must appear in the user's wallet

πŸš€ Suggested Solution / Feature Request

Phase 1: LottoTicketNFT Contract Analysis

  • Review available functions in LottoTicketNFT
  • Identify mint function for tickets
  • Verify required parameters
  • Confirm that the NFT is intransferible

Phase 2: Scaffold-Starknet Integration

  • Add useScaffoldContractWrite hook for mint
  • Connect with ticket purchase component
  • Implement transaction handling
  • Add loading states during mint

Phase 3: UI/UX Updates

  • Show mint progress in real time
  • Add NFT generation confirmation
  • Display NFT metadata (numbers, date)
  • Implement error handling

Phase 4: Testing and Validation

  • Test NFT mint with valid numbers
  • Verify that the NFT is intransferible
  • Test with different number combinations
  • Validate NFT metadata

πŸ“Œ Additional Notes

  • Priority: High - core system functionality
  • Estimated time: 2-3 days
  • Risk: Medium - contract integration
  • Dependencies: LottoTicketNFT contract, scaffold-starknet hooks

⚠️ Before Applying

Please read this guide: Contributor Guidelines

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions