An open API service indexing awesome lists of open source software.

https://github.com/reaperdragon/buymeacoffee-defi

This Repo contains the BuyMeACoffee Challenge Web3.
https://github.com/reaperdragon/buymeacoffee-defi

alchemy contracts hardhat js nextjs remix-ide solidity

Last synced: about 2 months ago
JSON representation

This Repo contains the BuyMeACoffee Challenge Web3.

Awesome Lists containing this project

README

        

# Buy Me A Coffee Defi

Second Week Challenge Completed. This Project is made with Hardhat, Alchemy and Next js.

Frontend - [Next Js Replit](https://buymeacoffee.aakrut.repl.co/)

### Challenges :
- [x] Allow your smart contract to update the withdrawal address.
- [x] Allow your smart contract to buyLargeCoffee for 0.003 ETH, and create a button on the frontend website that shows a "Buy Large Coffee for 0.003ETH" button.

### Getting Started

clone the repo

```shell
git clone https://github.com/Aakrut/BuyMeACoffee-Defi
```

> set up the .env file in root directory
```
GOERLI_URL="YOUR_GOERLI_HTTP_URL"
GOERLI_API_KEY="YOUR_API_KEY"
PRIVATE_KEY="YOUR_METAMASK_SECRET_KEY"
```

> ⚠️WARNING : **Before Uploading the project to github, make sure you don't have any real money in your account, so create a test account.**

Try running some of the following tasks:

```shell
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat help
```