## Inspiration

We were inspired by how there were many instances of fraud with regards to how donations were handled. It is heartbreaking to see how mismanagement can lead to victims of disasters not receiving the help that they desperately need.

## What it does

TrustTrace introduces unparalleled levels of transparency and accountability to charities and fundraisers. Donors will now feel more comfortable donating to causes such as helping earthquake victims since they will now know how their money will be spent, and where every dollar raised is going to.

## How we built it

We created a smart contract that allowed organisations to specify how much money they want to raise and how they want to segment their spending into specific categories. This is then enforced by the smart contract, which puts donors at ease as they know that their donations will not be misused, and will go to those who are truly in need.

## Challenges we ran into

The integration of smart contracts and the web development frameworks were more difficult than we expected, and we overcame them with lots of trial and error.

## Accomplishments that we're proud of

We are proud of being able to create this in under 36 hours for a noble cause. We hope that this creation can eventually evolve into a product that can raise interest, trust, and participation in donating to humanitarian causes across the world.

## What we learned

We learnt a lot about how smart contract works, how they are deployed, and how they can be used to enforce trust.

## What's next for TrustTrace

Expanding towards serving a wider range of fundraisers such as GoFundMes, Kickstarters, etc.
## Inspiration

As college students who recently graduated high school in the last year or two, we know first-hand the sinking feeling that you experience when you open an envelope after your graduation, and see a gift card to a clothing store you'll never set foot into in your life. Instead, you can't stop thinking about the latest generation of AirPods that you wanted to buy. Well, imagine a platform where you could trade your unwanted gift card for something you would actually use... you would actually be able to get those AirPods, without spending money out of your own pocket. That's where the idea of GifTr began.

## What it does

Our website serves as a **decentralized gift card trading marketplace**. A user who wants to trade their own gift card for a different one can log in and connect to their **Sui wallet**. Following that, they will be prompted to select their gift card company and cash value. Once they have confirmed that they would like to trade the gift card, they can browse through options of other gift cards "on the market", and if they find one they like, send a request to swap. If the other person accepts the request, a trustless swap is initiated without the use of a intermediary escrow, and the swap is completed.

## How we built it

In simple terms, the first party locks the card they want to trade, at which point a lock and a key are created for the card. They can request a card held by a second party, and if the second party accepts the offers, both parties swap gift cards and corresponding keys to complete the swap. If a party wants to tamper with their object, they must use their key to do so. The single-use key would then be consumed by the smart contract, and the trade would not be possible.

Our website was built in three stages: the smart contract, the backend, and the frontend.

**The smart contract** hosts all the code responsible for automating a trustless swap between the sender and the recipient. It **specifies conditions** under which the trade will occur, such as the assets being exchanged and their values. It also has **escrow functionality**, responsible for holding the cards deposited by both parties until swap conditions have been satisfied. Once both parties have undergone **verification**, the **swap** will occur if all conditions are met, and if not, the process will terminate.

**The backend\* acts as a bridge between the smart contract and the front end, allowing for \*\*communication** between the code and the user interface. The main way it does this is by **managing all data**, which includes all the user accounts, their gift card inventories, and more. Anything that the user does on the website is communicated to the Sui blockchain. This **blockchain integration** is crucial so that users can initiate trades without having to deal with the complexities of blockchain.

**The frontend** is essentially everything the user sees and does, or the UI. It begins with **user authentication** such as the login process and connection to Sui wallet. It allows the user to **manage transactions** by initiating trades, entering in attributes of the asset they want to trade, and viewing trade offers. This is all done through React to ensure *real-time interaction* so that new offers are seen and updated without refreshing the page.

## Challenges we ran into

This was **our first step into the field** of Sui blockchain and web 3 entirely, so we found it to be really informative, but also really challenging. The first step we had to take to address this challenge was to begin learning Move through some basic tutorials and set up a development environment. Another challenge was the **many aspects of escrow functionality**, which we addressed through embedding many tests within our code. For instance, we had to test that that once an object was created, it would actually lock and unlock, and also that if the second shared party stopped responding or an object was tampered with, the trade would be terminated.

## Accomplishments that we're proud of

We're most proud of the look and functionality of our **user interface**, as user experience is one of our most important focuses. We wanted to create a platform that was clean, easy to use and navigate, which we did by maintaining a sense of consistency throughout our website and keep basic visual hierarchy elements in mind when designing the website. Beyond this, we are also proud of pulling off a project that relies so heavily on **Sui blockchain**, when we entered this hackathon with absolutely no knowledge about it.

## What we learned

Though we've designed a very simple trading project implementing Sui blockchain, we've learnt a lot about the **implications of blockchain** and the role it can play in daily life and cryptocurrency. The two most important aspects to us are decentralization and user empowerment. On such a simple level, we're able to now understand how a dApp can reduce reliance on third party escrows and automate these processes through a smart contract, increasing transparency and security. Through this, the user also gains more ownership over their own financial activities and decisions. We're interested in further exploring DeFi principles and web 3 in our future as software engineers, and perhaps even implementing it in our own life when we day trade.

## What's next for GifTr

Currently, GifTr only facilitates the exchange of gift cards, but we are intent on expanding this to allow users to trade their gift cards for Sui tokens in particular. This would encourage our users to shift from traditional banking systems to a decentralized system, and give them access to programmable money that can be stored more securely, integrated into smart contracts, and used in instant transactions.
## Inspiration

Homelessness affects over half a million Americans on any given night, yet almost 17 million potential homes were standing empty according to a White House report in 2019. This means there are 33 empty properties for each homeless person in the US. Since 2010, the number of empty properties per homeless person has increased 24%

Increasingly, individuals and families needing emergency shelter have a disability, come from unsheltered locations, and face higher barriers to housing. While transitional and emergency housing can immediately provide month-long stays while people reconnect with housing, we saw opportunity in utilizing empty properties for shorter stays — as little as 3 hours worth — for instances where someone needs:

* a safe place to leave their children to run errands/go for job interview
* shelter from unpredictable and inclement weather
* a private space to work safely and remotely

## What it does

That's why we created HOME (Housing Opportunities for Movers Everywhere), a platform that enables homeless shelters to rapidly and efficiently connect people with housing through microtransactions and smart contracts.

Our blockchain-based app collects cryptocurrency from donors to fund temporary stays that can be a little as 3 hours long. Using smart contracts, donors can determine criteria for who ultimately receives their assistance and have transparency in how their donation was used, have a tax write-off via having a receipt of their donation on an immutable ledger and as autogenerated by the homeless shelter they donated to, and donate with peace of mind because of our app's safeguarding mechanism of ensuring that, if donors gave a large amount, only a portion of what's donated is distributed each day.

Those searching for housing and temporary housing would register their information with homeless shelters. Our app would be integrated with this process in a way that allows individuals to remain anonymous to the app. What homeless shelter staff would be able to see is the relevant demographics of their clients, a list of housing available, and potential matches through our app's matching algorithm. Once staff suggests having a verified client take advantage of a housing opportunity, the respective property owner would confirm whether the stay can happen. After confirming that this connection can happen, shelter staff would provide a code to their client or alternative way for verifying who they are to property owners. Once they successfully verify who they are with the property owner and gain access to the property, the payment from one or more smart contracts (depending on the cost of a stay) would be released to the property owner.

All this is done without the app needing to know any information about those experiencing homelessness. Property owners would only know that a homeless shelter has verified that this individual or family has a need. Not only does our app allow individuals to receive housing support with dignity, but it also solves an inefficiency problem whereby not everyone needs to reserve a space for a whole day or even a whole month, or has the means to do something like an airbnb.

## How we built it

We built this using React.js, Next.js, Chakra UI for fast prototyping, MongoDB for database, and Solidity for faciliating smart contracts.

## Challenges we ran into

An app like this has not been created before to our knowledge, so we were exploring new frontiers here. We had many discussions about architecture such as whether we could pare down to one smart contract that does it all or if we needed two. As we were working through the project, we discovered some initial approaches we had planned like using signatures in blockchain were no longer feasible due to synchronization problems.

## Accomplishments that we're proud of

Our project scope was huge for what we wanted to accomplish technically, and we were able to figure out the necessary pieces to have a working app without having to scale down our original vision.

## What we learned

We learned about how blockchain can be applied to help tackle a complex system issue like homelessness. Surprisingly, one mentor mentioned being at one of the world's largest Web3 innovation festivals discussing how blockchain hasn't been used as much to solve high stakes social problems.

For some team members, there was a steep learning curve for learning new frameworks (React/Next.js) and component libraries. For other team members, coding and architecting workflow in blockchain and integrating UI to the back end was most challenging yet rewarding to figure out.

## What's next for HOME

Moving forward with a pilot program—