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.
- Host: GitHub
- URL: https://github.com/reaperdragon/buymeacoffee-defi
- Owner: reaperdragon
- Created: 2022-07-30T13:11:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-31T13:13:46.000Z (almost 3 years ago)
- Last Synced: 2025-02-13T00:44:29.372Z (4 months ago)
- Topics: alchemy, contracts, hardhat, js, nextjs, remix-ide, solidity
- Language: JavaScript
- Homepage:
- Size: 157 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 Startedclone 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
```