Build on Agoric
Project 2: Marketplace
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!
Project
Comments
You need to enroll in the course to be able to comment!