https://github.com/sravantp7/hardhat-fund-me
Fund-Me project where people can fund the contract and only the owner can withdraw the funds.
https://github.com/sravantp7/hardhat-fund-me
alchemy chainlink hardhat hardhat-deploy javascript solidity
Last synced: about 2 months ago
JSON representation
Fund-Me project where people can fund the contract and only the owner can withdraw the funds.
- Host: GitHub
- URL: https://github.com/sravantp7/hardhat-fund-me
- Owner: sravantp7
- Created: 2023-02-12T11:05:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-12T11:08:07.000Z (over 3 years ago)
- Last Synced: 2025-03-29T12:24:16.619Z (about 1 year ago)
- Topics: alchemy, chainlink, hardhat, hardhat-deploy, javascript, solidity
- Language: JavaScript
- Homepage:
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hardhat Fund Me
This project allow people to fund the contract and only the owner of the contract can withdraw the funds.
# Getting Started
## Requirements
- [git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git)
- [Nodejs](https://nodejs.org/en/)
- [yarn](https://yarnpkg.com/getting-started/install) or `npm`
## Quickstart
```
git clone https://github.com/sravantp03/hardhat-fund-me
cd hardhat-fund-me
yarn
```
# Usage
Deploy:
```
yarn hardhat deploy
```
Deploy to Goerli Testnet(configure network details in .env file):
```
yarn hardhat deploy --network goerli
```
## Testing
```
yarn hardhat test
```
### Test Coverage
```
yarn hardhat coverage
```
## Scripts
After deploy to a testnet or local net, you can run the scripts.
```
yarn hardhat run scripts/fund.js
```
or
```
yarn hardhat run scripts/withdraw.js
```
## Estimate gas
You can estimate how much gas things cost by running:
```
yarn hardhat test
```
And you'll see and output file called `gas-report.txt`