-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Nick M
authored
Jan 22, 2021
1 parent
41db7b3
commit 4833f65
Showing
1 changed file
with
4 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,89 +1,5 @@ | ||
# Hardhat Hackathon Boilerplate | ||
## Creator Payment App (name pending) | ||
|
||
This is a project for [EthGlobal Market Make Hackathon](https://marketmake.ethglobal.co/). | ||
|
||
This repository contains a sample project that you can use as the starting point | ||
for your Ethereum project. It's also a great fit for learning the basics of | ||
smart contract development. | ||
|
||
This project is intended to be used with the | ||
[Hardhat Beginners Tutorial](https://hardhat.org/tutorial), but you should be | ||
able to follow it by yourself by reading the README and exploring its | ||
`contracts`, `tests`, `scripts` and `frontend` directories. | ||
|
||
## Quick start | ||
|
||
The first things you need to do are cloning this repository and installing its | ||
dependencies: | ||
|
||
```sh | ||
git clone https://github.com/nomiclabs/hardhat-hackathon-boilerplate.git | ||
cd hardhat-hackathon-boilerplate | ||
npm install | ||
``` | ||
|
||
Once installed, let's run Hardhat's testing network: | ||
|
||
```sh | ||
npx hardhat node | ||
``` | ||
|
||
Then, on a new terminal, go to the repository's root folder and run this to | ||
deploy your contract: | ||
|
||
```sh | ||
npx hardhat run scripts/deploy.js --network localhost | ||
``` | ||
|
||
Finally, we can run the frontend with: | ||
|
||
```sh | ||
cd frontend | ||
npm install | ||
npm start | ||
``` | ||
|
||
> Note: There's [an issue in `ganache-core`](https://github.com/trufflesuite/ganache-core/issues/650) that can make the `npm install` step fail. | ||
> | ||
> If you see `npm ERR! code ENOLOCAL`, try running `npm ci` instead of `npm install`. | ||
Open [http://localhost:3000/](http://localhost:3000/) to see your Dapp. You will | ||
need to have [Metamask](https://metamask.io) installed and listening to | ||
`localhost 8545`. | ||
|
||
## User Guide | ||
|
||
You can find detailed instructions on using this repository and many tips in [its documentation](https://hardhat.org/tutorial). | ||
|
||
- [Project description (Token.sol)](https://hardhat.org/tutorial/4-contracts/) | ||
- [Setting up the environment](https://hardhat.org/tutorial/1-setup/) | ||
- [Testing with Hardhat, Mocha and Waffle](https://hardhat.org/tutorial/5-test/) | ||
- [Setting up Metamask](https://hardhat.org/tutorial/8-frontend/#setting-up-metamask) | ||
- [Hardhat's full documentation](https://hardhat.org/getting-started/) | ||
|
||
For a complete introduction to Hardhat, refer to [this guide](https://hardhat.org/getting-started/#overview). | ||
|
||
## What’s Included? | ||
|
||
Your environment will have everything you need to build a Dapp powered by Hardhat and React. | ||
|
||
- [Hardhat](https://hardhat.org/): An Ethereum development task runner and testing network. | ||
- [Mocha](https://mochajs.org/): A JavaScript test runner. | ||
- [Chai](https://www.chaijs.com/): A JavaScript assertion library. | ||
- [ethers.js](https://docs.ethers.io/ethers.js/html/): A JavaScript library for interacting with Ethereum. | ||
- [Waffle](https://github.com/EthWorks/Waffle/): To have Ethereum-specific Chai assertions/mathers. | ||
- [A sample frontend/Dapp](./frontend): A Dapp which uses [Create React App](https://github.com/facebook/create-react-app). | ||
|
||
## Troubleshooting | ||
|
||
- `Invalid nonce` errors: if you are seeing this error on the `npx hardhat node` | ||
console, try resetting your Metamask account. This will reset the account's | ||
transaction history and also the nonce. Open Metamask, click on your account | ||
followed by `Settings > Advanced > Reset Account`. | ||
|
||
## Feedback, help and news | ||
|
||
We'd love to have your feedback on this tutorial. Feel free to reach us through | ||
this repository or [our Discord server](https://invite.gg/HardhatSupport). | ||
|
||
Also you can [follow us on Twitter](https://twitter.com/HardhatHQ). | ||
|
||
**Happy _buidling_!** | ||
The basic idea is to take advantage of [AAVE's Lending Protocol](https://app.aave.com/) to enable content creators (or anyone with a large following) to get paid for the work they do through accrued interest. Fans will be able to support their creators by staking money in return for interest which will be paid to the creator. Because the initial funds are staked in a smart contract fans will be able to regain their stake at any point (minus transaction fees). This opens up a new world of possibilities for getting paid as a content creator, online personality, freelancer, etc. where fans and followers can support your work financially without having to actually spend their money. As of 1/21/21 AAVE offers stablecoin pools with up to 17% APY. This number can vary from day to day and I've seen it go as high as 22% on certain stablecoins. The amount of interest accrued is determined by the amount of money staked in the pool, so over time the accrued interest has the ability to compound fairly quickly. |