Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement MarketplaceListing Entity #4

Open
5 tasks
Josue19-08 opened this issue Feb 3, 2025 · 0 comments
Open
5 tasks

Implement MarketplaceListing Entity #4

Josue19-08 opened this issue Feb 3, 2025 · 0 comments

Comments

@Josue19-08
Copy link
Contributor

📌 Issue: Implement MarketplaceListing Entity

🔹 Description

Define and develop the MarketplaceListing entity, managing NFTs listed for sale.


📂 Project Structure

  • Entity: src/modules/marketplace/entities/marketplace-listing.entity.ts
  • Repository: src/modules/marketplace/repositories/marketplace-listing.repository.ts
  • Service: src/modules/marketplace/services/marketplace-listing.service.ts
  • Controller: src/modules/marketplace/controllers/marketplace-listing.controller.ts
  • DTOs: src/modules/marketplace/dtos/marketplace-listing.dto.ts

🛠️ MarketplaceListing Entity Attributes

Attribute Data Type Description
id number Unique listing identifier (Primary Key).
nftId number ID of the NFT being sold.
sellerId number ID of the user selling the NFT.
price number Price of the NFT in cryptocurrency.
isActive boolean Indicates if the listing is still available.

📌 Tasks

  • Create MarketplaceListing entity.
  • Implement repository logic for listings.
  • Develop marketplace listing service.
  • Create controller with listing endpoints.
  • Validate data in DTOs.

✅ Acceptance Criteria

  • Users should be able to list and delist NFTs.
  • Listings should include seller, NFT details, and price.
  • The marketplace should only show active listings.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants