From ec56c14a4872eb631d96e532a3445c27c0dbaae3 Mon Sep 17 00:00:00 2001 From: advait Date: Tue, 12 Sep 2023 13:43:37 +0800 Subject: [PATCH 1/8] Update [...nextauth].ts --- frontend/src/pages/api/auth/[...nextauth].ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/pages/api/auth/[...nextauth].ts b/frontend/src/pages/api/auth/[...nextauth].ts index 7dcc49c..f6b7855 100644 --- a/frontend/src/pages/api/auth/[...nextauth].ts +++ b/frontend/src/pages/api/auth/[...nextauth].ts @@ -9,5 +9,6 @@ export const authOptions: NextAuthOptions = { clientSecret: process.env.GOOGLE_SECRET!, }), ], + secret: process.env.SECRET, }; export default NextAuth(authOptions); From aa428db09c9b4b83cd4b03416a77e9aac2370026 Mon Sep 17 00:00:00 2001 From: advait Date: Tue, 12 Sep 2023 19:22:46 +0800 Subject: [PATCH 2/8] Add Revalidate --- frontend/src/pages/donate/[slug].tsx | 1 + frontend/src/pages/index.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/donate/[slug].tsx b/frontend/src/pages/donate/[slug].tsx index 3e90ae7..bb39a81 100644 --- a/frontend/src/pages/donate/[slug].tsx +++ b/frontend/src/pages/donate/[slug].tsx @@ -117,6 +117,7 @@ export async function getStaticProps({ params }: { params: { slug: string } }) { props: { campaign, }, + revalidate: 10, }; } diff --git a/frontend/src/pages/index.tsx b/frontend/src/pages/index.tsx index c9ba8a0..8ab847a 100644 --- a/frontend/src/pages/index.tsx +++ b/frontend/src/pages/index.tsx @@ -50,7 +50,7 @@ export default function Home({ campaigns }: ExploreCampaignsSegmentProps) { ); } -export async function getStaticProps() { +export async function getServerSideProps() { const campaigns = await getCampaigns(); From f406e65ecc67337ebb3976dd35dc01110bfdca4d Mon Sep 17 00:00:00 2001 From: advait Date: Tue, 12 Sep 2023 19:30:29 +0800 Subject: [PATCH 3/8] Update [...nextauth].ts --- frontend/src/pages/api/auth/[...nextauth].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/api/auth/[...nextauth].ts b/frontend/src/pages/api/auth/[...nextauth].ts index f6b7855..8ce5e77 100644 --- a/frontend/src/pages/api/auth/[...nextauth].ts +++ b/frontend/src/pages/api/auth/[...nextauth].ts @@ -9,6 +9,6 @@ export const authOptions: NextAuthOptions = { clientSecret: process.env.GOOGLE_SECRET!, }), ], - secret: process.env.SECRET, + secret: "RandomSecret" }; export default NextAuth(authOptions); From dab8e0165d5fe3494da69b89eb2a42184b098ac1 Mon Sep 17 00:00:00 2001 From: advait Date: Tue, 12 Sep 2023 19:31:33 +0800 Subject: [PATCH 4/8] Revert "Update [...nextauth].ts" This reverts commit f406e65ecc67337ebb3976dd35dc01110bfdca4d. --- frontend/src/pages/api/auth/[...nextauth].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/api/auth/[...nextauth].ts b/frontend/src/pages/api/auth/[...nextauth].ts index 8ce5e77..f6b7855 100644 --- a/frontend/src/pages/api/auth/[...nextauth].ts +++ b/frontend/src/pages/api/auth/[...nextauth].ts @@ -9,6 +9,6 @@ export const authOptions: NextAuthOptions = { clientSecret: process.env.GOOGLE_SECRET!, }), ], - secret: "RandomSecret" + secret: process.env.SECRET, }; export default NextAuth(authOptions); From 6bc90e5d8b5189384d623309b2800f9e3afaeb4d Mon Sep 17 00:00:00 2001 From: advait Date: Sat, 16 Sep 2023 23:55:00 +0800 Subject: [PATCH 5/8] Update README.md --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9ce1f57..9d7ba06 100644 --- a/README.md +++ b/README.md @@ -1 +1,24 @@ -# giving.eth \ No newline at end of file +# giving.eth +## Description +giving.eth is a project that aims to increase trust and transparency between Charities and Donors. Through the use of Account Abstraction, Charities can easily be onboarded and represented by a contract address. And in the contract address, we can set pre determined rules in how the Charities can spend the funds. This aims to create a trustless relationship between Charities and Donors, and in turn promote more contributions towards reputable Charities within the Crypto community. This project was built for Ethereum Singapore Hackathon 2023. +

+ +

+ +## Process Flow +

+ +

+ +1. Charity will join our platform +2. Once onboarded and verified the Charity can create a Campaign, a smart contract wallet will then be generated for them +3. Users who are interested in the Charity's Campaign can simply donate by sending them some Tokens +4. Once the Campaign is over, the Charity will fulfill their commitments to the beneficiary/suppliers +5. Anyone will be able to see taht the relevant transfers has been made by the Charity on the blockchain + +# Technical Overview +

+ +

+ +For the frontend, we use NextJS for our web application. The backend setup is handled by NextJS's serverless functions. As for the database, we've set up a simple Firebase database, and we used Polygon to deploy our solidity smart contracts. From a0ddfc966a5fa27ded1df5ab2243d61f764a92e4 Mon Sep 17 00:00:00 2001 From: advait Date: Sat, 16 Sep 2023 23:56:01 +0800 Subject: [PATCH 6/8] Update README.md --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9d7ba06..f2f9b48 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,14 @@ ## Description giving.eth is a project that aims to increase trust and transparency between Charities and Donors. Through the use of Account Abstraction, Charities can easily be onboarded and represented by a contract address. And in the contract address, we can set pre determined rules in how the Charities can spend the funds. This aims to create a trustless relationship between Charities and Donors, and in turn promote more contributions towards reputable Charities within the Crypto community. This project was built for Ethereum Singapore Hackathon 2023.

- +![image](https://github.com/crustyapples/giving.eth/assets/24990448/1dc66cb0-48f3-49f3-bb5d-5ad4bddde214) +

## Process Flow

- +![image](https://github.com/crustyapples/giving.eth/assets/24990448/641007a6-90fa-43e0-98a9-f6715eb25e1b) +

1. Charity will join our platform @@ -18,7 +20,8 @@ giving.eth is a project that aims to increase trust and transparency between Cha # Technical Overview

- +![image](https://github.com/crustyapples/giving.eth/assets/24990448/483ac3f8-d0ae-47e1-973d-3b86b7b4eaba) +

For the frontend, we use NextJS for our web application. The backend setup is handled by NextJS's serverless functions. As for the database, we've set up a simple Firebase database, and we used Polygon to deploy our solidity smart contracts. From 3c0fc9a789651ca18ef5d5de38af41d08f1054e1 Mon Sep 17 00:00:00 2001 From: advait Date: Sat, 16 Sep 2023 23:56:32 +0800 Subject: [PATCH 7/8] Update README.md --- README.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f2f9b48..71765dd 100644 --- a/README.md +++ b/README.md @@ -2,13 +2,15 @@ ## Description giving.eth is a project that aims to increase trust and transparency between Charities and Donors. Through the use of Account Abstraction, Charities can easily be onboarded and represented by a contract address. And in the contract address, we can set pre determined rules in how the Charities can spend the funds. This aims to create a trustless relationship between Charities and Donors, and in turn promote more contributions towards reputable Charities within the Crypto community. This project was built for Ethereum Singapore Hackathon 2023.

-![image](https://github.com/crustyapples/giving.eth/assets/24990448/1dc66cb0-48f3-49f3-bb5d-5ad4bddde214) + + ![image](https://github.com/crustyapples/giving.eth/assets/24990448/1dc66cb0-48f3-49f3-bb5d-5ad4bddde214)

## Process Flow

-![image](https://github.com/crustyapples/giving.eth/assets/24990448/641007a6-90fa-43e0-98a9-f6715eb25e1b) + + ![image](https://github.com/crustyapples/giving.eth/assets/24990448/641007a6-90fa-43e0-98a9-f6715eb25e1b)

@@ -20,7 +22,8 @@ giving.eth is a project that aims to increase trust and transparency between Cha # Technical Overview

-![image](https://github.com/crustyapples/giving.eth/assets/24990448/483ac3f8-d0ae-47e1-973d-3b86b7b4eaba) + + ![image](https://github.com/crustyapples/giving.eth/assets/24990448/483ac3f8-d0ae-47e1-973d-3b86b7b4eaba)

From c96ce0a20d71d96d18f4ddd3cee564c3df8e9482 Mon Sep 17 00:00:00 2001 From: advait Date: Fri, 8 Dec 2023 13:36:16 +0800 Subject: [PATCH 8/8] Update README.md --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 71765dd..cba0bc2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,16 @@ -# giving.eth +

+image +

+ +

giving.eth

+ +

+ Frontend + | + Smart-Contracts +

+ + ## Description giving.eth is a project that aims to increase trust and transparency between Charities and Donors. Through the use of Account Abstraction, Charities can easily be onboarded and represented by a contract address. And in the contract address, we can set pre determined rules in how the Charities can spend the funds. This aims to create a trustless relationship between Charities and Donors, and in turn promote more contributions towards reputable Charities within the Crypto community. This project was built for Ethereum Singapore Hackathon 2023.