Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/priyaksing/buymeacoffee-defi
Decentralized "Buy me a coffee" App
https://github.com/priyaksing/buymeacoffee-defi
alchemy ethersjs hardhat nextjs solidity tailwind
Last synced: 8 days ago
JSON representation
Decentralized "Buy me a coffee" App
- Host: GitHub
- URL: https://github.com/priyaksing/buymeacoffee-defi
- Owner: priyaksing
- Created: 2024-10-01T22:26:17.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-10-24T05:29:28.000Z (14 days ago)
- Last Synced: 2024-10-24T23:28:55.695Z (14 days ago)
- Topics: alchemy, ethersjs, hardhat, nextjs, solidity, tailwind
- Language: JavaScript
- Homepage: https://buy-me-a-coffee-de-fi.vercel.app
- Size: 229 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Buy me a Coffee - DeFi
This project is a decentralized 'Buy Me A Coffee' smart contract that allows visitors to leave tips and messages for the owner, utilizing Solidity, Hardhat, Ethers.js, Next.js and Alchemy.
This includes 3 main functions:
**buyCoffee(name, message)** : to send 0.001 ETH(test) to the deployed smart contract
**withdrawCoffee()** : for the owner to withdraw the tips sent
**getMemos()** : to retrieve the memos left by the visitorsContract owner view:
![Screenshot (68)](https://github.com/user-attachments/assets/3a89cbac-1079-4685-9aa0-927956f8e4e3)Visitor view:
![Screenshot (69)](https://github.com/user-attachments/assets/d025916f-b0c5-40f6-9786-3434c9898c4c)