Sign In / Up

In this homework, you will modify the smart contract that is designed to mint, sell and resell event tickets as non-fungible tokens (NFTs) in the form of a semi-fungible asset. The contract includes three categories of tickets with different pricing:

In the below mentioned github repository, you can find the smart-contract.

GitHub Repo: https://github.com/Agoric/dapp-agoric-basics/tree/main

  • Tickets near the front are the most expensive.
  • Tickets in the middle rows are priced between the expensive and cheap seats.
  • Tickets in the back are the lowest priced.

Task:

  • To improve the contract’s efficiency by directly using the vault address instead of deriving it from the admin address. Once modified, test and deploy the updated contract.
  • Add a ticket re-sell feature: Implement a function that enables users to re-sell tickets they have already purchased.

Good luck with your homework assignment!

Veri

Submit your work to complete this lesson.

Join the project workspace to share your solution and receive feedback.

Lesson discussion

Swap insights and ask questions about “Build on Agoric”.

Be the first to start the discussion

Ask a question or share your thoughts about this lesson.