1

The idea is to have two contracts:

  • OrderManager Contract
  • NFTMinting Contract

OrderManager will manage the funds transfer for the vehicle; buyer will deposit the funds, the seller will withdraw them; they can both cancel the order in which case the funds will be returned deposit

NFTMinting Contract will be used to mint the NFT of the vehicle to the address of teh buyer upon successufl transaction of funds.

What shall be a good design to design these contracts esp the NFTMinting contract for a vehicle?

Since each vehicle (say a car) is unique or can be one of thousands of the available car models in the world; as per the provisions of the ERC721 Contract i would have to create contracts for all of them?

Either that or i have the following other options:

  • Mint a new NFT for each new vehicle regardless of its make/model
  • Make an ERC1155 contract but then i would have to assign IDs to every available car model (see ERC1155 OpenZepplin Docs)

Besides these what other options do I have for an elegant solution to this problem?

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.