Welcome to the Decentralised Marketplace project repository! This decentralized solana-based project from RiseIn's Solidity Fundamentals Course leverages the Solidity blockchain programming language to design, implement, and test a decentralised Marketplace smart contract for the Ethereum network. Market Authorities can verify sellers. Sellers can add and update items, as well as receive payments. Every participant; Market Authority, sellers and buyers can buy items.
Now updated in the Foundry framework.
The Decentralised Marketplace Solidity smart contract provides an intuitive overview of the inner workings of a potential Marketplace dApp. You can think of it as a decentralised Facebook Marketplace on an Ethereum network. This project ensures transparency and trust in the local business or products in a controlled, yet free environment through the use of smart contracts. You'll find the presence of market authorities in the smart contract whose major purpose serves to verify a seller (any address submitted to become a seller on the platform) and remove a seller should the seller be in violation. The marketplace is to serve all items that can be listed for sale. Visitors / buyers can verify seller information linked with an item, view items from a specific seller,ake purchases. Sellers can also perform same functions as buyers.
- Owner and market authorities can add other market authorities
- Market authorities can verify Sellers
- Sellers can add & delete their listed items
- Sellers can view and withdraw sales balances from contract
- Buyers can retrieve seller and item information
- Contract returns excess value sent by buyres during purchase
The Solidity smart contracts in this project facilitate the workings of the Decentralised Marketplace as described above. The unit tests tests the smart contract.
Contributions to this project are welcome! Check for comments in Rise_In_Decentralised_Market.sol
and Rise_In_Decentralised_Market_Test.t.sol
to identify possible areas of contributions.
To contribute:
- Fork the repository.
- Create a new branch for your feature/bug fix.
- Make changes and test thoroughly.
- Commit with clear and concise messages.
- Push changes to your fork.
- Submit a pull request describing your changes.
Step-by-step guide found on Github
Open the latest of this smart contract (DecentralisedMarketplaceV2.sol
) in Remix, deploy to a testnet or the Remix VM and have fun interacting. OR Clone this repository and interact with it on thirdweb via
npx thirdweb deploy
Must have installed npm
to work with thirdweb.
Thank you for your interest in the Decentralised Marketplace project! For questions or suggestions, reach out to us or open an issue on GitHub. Happy reviewing! 🚀