Project translated automatically.
Log in
or
register,
to view the original
Develop smart contracts on the Solana blockchain to enable buying, storing, selling, and renting digital products.
Main requirements:
Creation and registration of digital products:
- Function to create a new digital product.
- Function to assign a product owner.
- Ability to register products with unique identifiers.
Buying products:
- Function to carry out a purchase transaction of a product.
- Checking buyer's balance before the transaction.
- Transfer of ownership rights after a successful transaction.
Selling products:
- Function to sell a product to other users.
- Checking the possibility of sale (ownership of the product, availability of the product in the list of items available for sale).
Renting products:
- Function to rent a product for a specific period.
- Storing information about the rental (renter, start and end of rental).
- Returning the product after the rental period ends.
Checking product ownership:
- Function to check the current owner of the product.
- Function to check the renters of the product.
User's product list:
- Function to get a list of products owned by a specific user.
Technical details:
- Programming language: Rust.
- Platform: Solana.
- Use of Anchor framework for development acceleration (optional).
- Data storage: Solana blockchain.
- Transactions: Buying, selling, renting, ownership verification.