diasjuniorr / tip-tweet

Tip Tweet is a hybrid dApp that provides a simple way to tip a tweet using Ethereum. Authors can claim their tips using their Twitter account. You only need the tweet URL to tip. 🚀 😎
https://tip-tweet.vercel.app/
23 stars 3 forks source link
blockchain dapp ethereum ethersjs hardhat nextjs supabase tailwind

Tip Tweet

Table of Contents

About

Tip Tweet is hybrid dApp that allows users to tip a tweet with crypto currency without needing the author's wallet address or any other information but the tweet URL. The author can claim the tip just by logging with their Twitter account. It's under development and currently only supports Ethereum. At the moment it uses Rinkeby network.

Folder structure

Contract Development

The root directory contains the smart contract development environment. It uses Hardhat. as mentioned above. To set up the development environment, run the following command in the root directory:

npm install
## or
yarn

Now you can compile, test and deploy the contract.

Compiling the contract

in the root directory, run the following command:

npx hardhat compile

Testing the contract

in the root directory, run the following command:

npx hardhat test

Deploying the contract

in the root directory, run the following command:

npx hardhat run scripts/deploy.ts --network <network>

Copying contract ABI to the app

Every time you compile a new version of the contract you will need to provide the ABI of the contract to the app. To do so, run the following command in the root directory:

make abi

Starting the App

To start the app to interact with the contract on the blockchain, you need to cd app and run the following command:

To install the dependencies, run:

npm install
## or
yarn

To start it:

npm run dev
## or
yarn dev

Usage

Under construction.