Inspiration
Within the agricultural industry, prevalent uncertain agreements and biased payments highlight a critical need for heightened assurance and security in transactions. Ambiguities in dealings between farmers and merchants necessitate a framework that ensures transparency, reliability, and fair practices. Prioritizing assurance and security aims to fortify economic foundations, creating an environment where contractual agreements are transparent, payments are equitable, and the agricultural industry flourishes on the pillars of integrity and fairness.
What it does
A meticulously crafted smart contract stands as the digital embodiment of an agreement between a diligent farmer and a discerning merchant, underpinned by advanced technology to ensure transparency and trust. The merchant, using their Web3 wallet, securely deposits funds into the contract, establishing a locked financial commitment through blockchain technology, protecting both parties' interests. Upon successful receipt of the farmer's goods, the merchant signals their satisfaction through a dedicated app, automatically triggering the release of funds from the contract to the farmer's wallet. This seamless process, without intermediaries, underscores the efficiency and reliability of blockchain technology. It ensures the agreement's fulfillment and facilitates secure, direct peer-to-peer commerce, where trust is reinforced by code, and the digital landscape enables a frictionless exchange between these diligent parties.
How we built it
This streamlined transaction process was orchestrated using a combination of advanced technologies and applications. The user interface was crafted using React, Tailwind CSS, and DaisyUI, ensuring a visually appealing and user-friendly platform for both farmers and merchants. CircleWallet was used to establish and manage individual wallets for the farmers and merchants, enabling secure fund storage and transfers between parties. To underpin the agreement, smart contracts were written in Cairo, defining the logic of the arrangement, and these contracts were deployed on StarkNet The harmonious use of these applications and technologies resulted in a seamless, trust-driven transaction process. Parties could interact, transfer funds, and execute agreements with confidence and efficiency in a digital landscape fortified by cutting-edge solutions.
Challenges we ran into
We were able to comprehend and write the contracts in Cairo using the REMIx editor. However, deploying them locally proved challenging. Additionally, Starkliup posed compatibility issues with Windows, and despite efforts, we couldn't resolve them. Challenges persisted with creating accounts through wallet linking (Agent X or Braavos Wallet). This issue consumed a significant amount of time, and unfortunately, we couldn't find mentors to assist with Starknet integration. Consequently, we couldn't fully integrate Starknet into our project.
Accomplishments that we're proud of
Built a user-friendly, mobile-first app with minimal clicks, aimed at both farmers and merchants, successfully integrating CircleWallet to enable payments and track transactions. Learned a new programming language, Cario, and burned ourselves out integrating StarkNet.
What we learned
- New Programming language Cairo
- Learnt React and build user friendly mobile-first app
- Basic understanding of Web-3 wallet through Circle
What's next for Agro Chain
As of now, there are only two user bases: one farmer and the other merchant. We are trying to bring the bank into the picture so that the bank can provide loans to the farmer by reviewing the contract already agreed upon by the farmer and merchant. The bank can automatically pay the loan once the merchant approves the payment to a farmer. This way, trust is built across everyone involved
Built With
- blockchain
- cairo
- circlewallet
- finallywithsomebrain:-d
- git
- hardwork
- javascript
- node.js
- react
Log in or sign up for Devpost to join the conversation.