Vagabonds-Labs / cofiblocks

Welcome to Cofiblocks marketplace: A Starknet web3 platform to innovate Costa Rica coffee industry. Cofiblocks connects small coffee farmers directly with coffee lovers, cutting out unnecessary intermediaries.
https://www.cofiblocks.com/
12 stars 26 forks source link

Implement Marketplace Listing for Minted Coffee NFTs #61

Open brolag opened 4 days ago

brolag commented 4 days ago

Objective

Allow producers to list their minted coffee NFTs on the marketplace.

Steps

  1. Validate Ownership

    • Ensure the producer owns the minted NFT before listing it.
    • Use the cofi_collection contract to verify ownership via the balanceOf method.
  2. Listing on Marketplace

    • Integrate with the marketplace contract’s create_product method.
    • Extract listing details (e.g., price, stock) from the form and pass them to the contract.
  3. UI Updates

    • Add options in the user/register-coffee form for marketplace listing details (e.g., stock, price).
    • Provide feedback during the listing process (e.g., loading spinner, success, or error notifications).

Deliverables

brolag commented 4 days ago

Blocked by https://github.com/Vagabonds-Labs/cofiblocks/issues/17

MrRoudyk commented 4 days ago

Can I handle this task?

ryzen-xp commented 4 days ago

Can I work on this, please?

josephpdf commented 4 days ago

Hi! @brolag I'm Joseph Poveda, I'm a member of the Dojo Coding community. A bit about my background is that I'm just starting out with Only Dust and I want to contribute as much as I can to the project. My knowledge of different programming languages ​​will allow me to better solve problems.

  1. Ownership Validation:
    • Use the cofi_collection contract's balanceOfmethod to confirm NFT ownership before allowing listing.
  2. Marketplace Integration:
    • Implement the create_product method from the marketplace contract.
    • Extract necessary data like price and stock from the producer's input form.
  3. UI Enhancements:
    • Update the register-coffee form with fields for price and stock.
    • Provide user feedback during listing (e.g., spinners or notifications).
GoSTEAN commented 4 days ago

I am a smart contract developer with hands-on experience in writing and deploying decentralized applications (dApps). I specialize in using Cairo, the programming language for StarkNet, to develop scalable and efficient smart contracts.

Steps to Enable NFT Listing on the Marketplace Validate Ownership Use the cofi_collection contract's balanceOf method to confirm the producer owns the NFT. Extract Listing Details Gather details like price and stock from the form inputs. Call Marketplace Contract Use the create_product method on the marketplace contract to list the NFT with the extracted details. Update the UI Add form fields for price and stock. Show loading spinners and notifications for success or errors. Complete Listing Confirm the NFT is listed on the marketplace and display success feedback to the user.

Michaelkingsdev commented 4 days ago

Could I be assigned to this?